I'm reading Keith Conrad's article "Differentiating Under the Integral Sign", exercise 8 is:
If you are familiar with integration of complex-valued functions, show for $y \in R$ that $$\int_{-\infty}^{\infty}e^{-(x+iy)^2}dx = \sqrt{\pi}$$.* In other words, show the integral on the left side is independent of $y$. (Hint: Use diffrentiation under the integral sign to compute the $y$-derivative of the left side.)
Note: the original article is asking to prove $\int_{-\infty}^{\infty}e^{-(x+iy)^2}dx = \sqrt{2\pi}$, but I guess here the "2" is a typo.
I can prove the conclusion: $$I = \int_{-\infty}^{\infty}e^{-(x+iy)^2}dx = \int_{-\infty}^{\infty}e^{-x^2+y^2-2xyi}dx= \int_{-\infty}^{\infty}e^{-x^2+y^2}[\cos{(2xy)}-i\sin{(2xy)}]dx$$
, as $e^{-x^2+y^2}$ and $\cos{(2xy)}$ are even and $\sin{(2xy)}$ odd function of $x$,
$$I=2\int_{0}^{\infty}e^{-x^2+y^2}\cos{(2xy)}dx$$
, substitue with $x=u/\sqrt{2}$,
$$I=\sqrt{2}e^{y^2}\int_{0}^{\infty}e^{-u^2/2}\cos{(\sqrt{2}yu)}du$$
, since $\int_0^\infty\cos{(tx)}e^{-x^2/2}dx = \sqrt{\frac{\pi}{2}}e^{-t^2/2}$,
$$I=\sqrt{2}e^{y^2} \sqrt{\frac{\pi}{2}}e^{-(\sqrt{2}y)^2/2}=\sqrt{\pi}$$
But, how to prove the conclusion following the hint, using the "differentiating under the integral sign" trick?