I am trying to check that this integral evaluates to 1, but so far I haven't had much success doing so. I tried expanding out the exponent so that I'd have
$$\frac{1}{\sqrt{2\pi\sigma^2}} \int_{-\infty}^{\infty} e^{-\frac{x^2 - 2\mu x + \mu^2}{2 \sigma ^2}} \,dx$$
This can be re-written as
$$\frac{1}{\sqrt{2\pi\sigma^2}} (\int_{-\infty}^{\infty} e^{-\frac{x^2}{2 \sigma ^2}} \,dx \cdot \int_{-\infty}^{\infty} e^{\frac{2 \mu x}{2 \sigma ^2}} \,dx \cdot \int_{-\infty}^{\infty} e^{-\frac{\mu ^2}{2 \sigma ^2}} \,dx)$$
The first integral gives $\frac{\sqrt{\pi}}{1/\sqrt{2 \sigma^2}}$, which does cancel out with the coefficient, but I'm not sure how to evaluate the other two integrals. Ideally those two would multiply to be 1, but their integration seems divergent to me.
Could someone help me see what I did wrong or if there are other ways to get the desired output?