Can somebody show me how to calculate this integral?
$$ \int\limits_{-\infty}^\infty \exp \left[-\frac{(x-x_o)^2}{2 \sigma_x^2}-i (p - p_0) \frac{x}{\hbar}\right] \, dx $$
$x_0$, $p_0$, $\hbar$ are constants and $\sigma_x$ is a standard deviation of the Gaussian which we are integrating here. Somebody told me that i should complete the square.
EDIT: Thank you @Michael Hardy for a superb explaination. I did continue your calculation and got this:
$$ \begin{split} &\phantom{=}\int\limits_{-\infty}^\infty e^{-w^2} \cdot \underbrace{\exp \, -\left\{2x_o\dfrac{\sigma_x^2 i (p-p_0)}{\hbar} - \left( \frac{\sigma_x^2 i (p-p_0)}{\hbar} \right)^2 \right\}}_{constant}\, \mathrm{d} w =\\ &= \sqrt{\pi} \exp \, \left\{- 2x_o\dfrac{\sigma_x^2 i (p-p_0)}{\hbar} + \left( \frac{\sigma_x^2 \cdot i (p-p_0)}{\hbar} \right)^2 \right\} \end{split} $$
To get this result i used Gaussian integral. What i expected to get was the result in the below picture but my result is somewhat different. Why would that be? Was my integration wrong? In the picture there are some constants before the integral which do not play any signifficant role here.
Could someone explain, how author of the integral in the picture gets the result he does?