I would like to evaluate in a closed form the integral $$\int_{\mathbb{R}}\frac{\exp(-x^2)}{1+x^2}\,\mathrm{d}x$$

I tried various methods :

  • integration by parts
  • some changes of variables ($y=x^2$, $x=\tan$)
  • residue calculus (but the factor $\exp(-x^2)$ forbid to send the contour to infinity)
  • developping $\exp(-x^2)$ or $\frac{1}{1+x^2} $ in power series (but in both cases one cannot exchange sum and integral)

Does anyone knows if this integral is known, or how to evaluate it ? At least I would like to find an exact expression.

The reason for me to believe that a closed form exists is that this integral arose in a problem of probability where I expect - if I haven't made any mistake previously - a very simple expression.

  • $\begingroup$ I just noticed that some of the answers to this question solve this integral as an intermediate step. $\endgroup$ – Mårten W Dec 12 '13 at 21:30

Let $$I(a) = \int_{\mathbb{R}} \dfrac{\exp(-ax^2)}{1+x^2} dx$$ Recall that $$\int_{\mathbb{R}} \exp(-ax^2) dx = \dfrac{\sqrt{\pi}}{\sqrt{a}}$$ We then have \begin{align} I'(a) & = \int_{\mathbb{R}} \dfrac{-x^2\exp(-ax^2)}{1+x^2} dx\\ I(a) - I'(a) & = \int_{\mathbb{R}} \exp(-ax^2) dx = \dfrac{\sqrt{\pi}}{\sqrt{a}}\\ \dfrac{d}{da} \left(I(a) e^{-a}\right) &= -\sqrt{\pi}\dfrac{e^{-a}}{\sqrt{a}}\\ I(a)e^{-a} - I(0) & = - \sqrt{\pi} \int_0^a \dfrac{e^{-t}}{\sqrt{t}}dt \end{align} This gives us $$I(a) = e^a \pi - e^a \pi \cdot \text{erf}(\sqrt{a}) = e^a \pi \left(1-\text{erf}(a)\right)$$ Hence, $$I(1) = e \pi \left(1-\text{erf}(1)\right) \approx 1.34329$$ Wolframalpha integrates this approximately to give $\approx 1.34329$

  • $\begingroup$ I don't understand your final equation. For me $I(0)=\pi$, isn't it ? $\endgroup$ – saposcat Apr 23 '13 at 16:54
  • $\begingroup$ @saposcat Corrected. $\endgroup$ – user17762 Apr 23 '13 at 16:58

Using Parseval's theorem, we get $$ \int_{-\infty}^\infty \frac{e^{-x^2}}{1+x^2}dx= \frac{1}{2\pi}\int_{-\infty}^\infty \sqrt{\pi}e^{-\xi^2/4}\pi e^{-|\xi|}\,d\xi= \sqrt{\pi}\int_0^\infty e^{-\xi^2/4-\xi}\,d\xi= $$ $$ e\sqrt{\pi}\int_0^\infty e^{-(\xi^2+4\xi+4)/4}\,d\xi=\left[u=\frac{\xi+2}{2}\right]= 2e\sqrt{\pi}\int_1^\infty e^{-u^2}du= e\pi(1-\operatorname{erf}(1)). $$

  • $\begingroup$ Which definition for the Fourier transform are you using? Unitary, angular frequency? $\endgroup$ – Cameron Williams Apr 23 '13 at 17:05
  • $\begingroup$ I believe it is right now. I use the following version of the Fourier transform, $\displaystyle (\mathcal{F}f)(\xi)=\int_{-\infty}^\infty e^{-i\xi x}f(x)\,dx.$ $\endgroup$ – Mårten W Apr 23 '13 at 17:25
  • $\begingroup$ Oh then I think you should omit the factor of pi in the integral and you also should pick up a sqrt(pi) when you do the Fourier transform of the Gaussian. I think that is where the missing factor of sqrt(pi) comes from. $\endgroup$ – Cameron Williams Apr 23 '13 at 17:28
  • $\begingroup$ @CameronWilliams: Ah, yes, I get $\sqrt{\pi}$ from the Gaussian. But the $\pi$ inside is correct, since indeed $\mathcal{F}\left(\frac{1}{1+x^2}\right)=\pi e^{-|\xi|}$. $\endgroup$ – Mårten W Apr 23 '13 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.