Assume a>0.
Using real method:
$$\int_{-\infty}^{\infty}{\frac{e^{-x^2}}{x^2+a^2}dx}=\frac{e^{a^2}\pi\operatorname{erfc}(a)}{a}$$
Using residue:
Let $C_L:|\Re z|\leq R$ , $C_R:|z|=R, \Im z>0$, their positive union is $C$.
$$\int_C{f(z)dz}=2\pi i\operatorname{Res}(f,ai)=\frac\pi ae^{a^2}$$
I can easily prove $\int{_{C_R}}{f(z)dz}\to0$, so
$$\int_{-\infty}^{\infty}{\frac{e^{-x^2}}{x^2+a^2}dx}=\frac\pi{2a}e^{a^2}$$
Mathematica shows that the first one is correct. So where is the mistake?
2026-04-11 16:49:32.1775926172
A confusing mistake in evaluating $\int_{-\infty}^{\infty}{\frac{e^{-x^2}}{x^2+a^2}dx}$
101 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
So the problem here is in the line
because unfortunately, it's false. Write $z = Re^{it}$; then
$$|\exp (-z^2)| = |\exp(-R e^{2it})| = \exp \Re(Re^{2it}) = \exp\big(-R \cos(2t)\big).$$
Now $t$ varies between $0$ and $\pi$; when $t \approx \pi/2$, the exponential is not decreasing much. There is a little angular sector whose angle is of order $1/R$ on which we have a uniform lower bound on the exponential; this has length of order $R$, and so we have a non-vanishing error term.