I'm learning Feynman's path-integral from Tuckerman's statistical mechanics textbook. I got stuck a bit at chapter 12.6.1 Path-integral molecular dynamics, I wish I can get some hints here! 
The part that confuses me is from (12.6.1) to (12.6.2), I can clearly see how the 2nd and 3rd term in the exponential function were obtained, but $\frac{P_{k}^2}{2m'}$ I must assume it comes from by recasting the prefactor, $(\frac{mP}{2\pi \beta \hslash^2})^{P/2}$, as a set of Gaussian integrals, but Im not certain how it is derived, if someone can interpret more detail about the derivation.
