Show:
$$ \begin{align} \int_0^\infty e^{-x^2}\,\mathrm{d}x &=\int_0^\infty e^{-\left(x-ia\right)^2}\,\mathrm{d}x\\ \end{align} $$
For any real number a.
I understand that the key is Cauchy's Integral Theorem and that taking the integral $e^{-z^2}$ around the contour of a rectangle -b, b, b+ai, -b+ai results in zero as there are no poles in that zone. However, I'm unable to quite figure out how that key works here. I've found some pages that try to explain this, but I don't seem to be getting it. Can I just discard the Imaginary portion of the exponent? Apparently it'd be different if there was a pole inside this rectangle.
Gaussian-like integral : $\int_0^{\infty} e^{-x^2} \cos( a x) \ \mathrm{d}x$
How to do this integral $\int_{-\infty}^{\infty}{\rm e}^{-x^{2}}\cos\left(\,kx\,\right)\,{\rm d}x$
How to prove $\int_0^\infty e^{-x^2}cos(2bx) dx = \frac{\sqrt{\pi}}{2} e^{-b^2}$