Integrate $\int_{-\infty}^\infty \frac{e^{\frac{-1}{1+x^2}}}{1+x^2}dx$ using complex integration

complex integrationcomplex-analysiscontour-integration

I would like to calculate the integral

$$ \int_{-\infty}^\infty \frac{e^{\frac{-1}{1+x^2}}}{1+x^2}dx. $$

Using contour integration and the residue theorem I managed to show that it is equal to

$$2\pi i \, Res(\frac{e^{\frac{-1}{1+z^2}}}{1+z^2},i) $$
However, as this is not a pole, and I see no apparent decomposition to known Laurent series, I'm not sure how to calculate the residue.

Best Answer

With substitution $x=\tan(t/2)$ $$\int_{-\infty}^\infty \frac{e^{\frac{-1}{1+x^2}}}{1+x^2}dx=\dfrac{1}{2\sqrt{e}}\int_{-\pi}^{\pi}e^{-\frac12\cos t}\ dt= \dfrac{\pi}{\sqrt{e}}I_0(\frac12)$$