A Why can't I use contour integration for this integral?

ShayanJ
Science Advisor
Insights Author
Messages
2,801
Reaction score
606
Consider the integral ##\displaystyle \int_{-\infty}^\infty \frac{e^{-|x|}}{1+x^2}dx ##. I should be able to use contour integration to solve it because it vanishes faster than ## \frac 1 x ## in the limit ## x \to \infty ## in the upper half plane. It has two poles at i and -i. If I use a semicircle in the upper half of the plane, I should only consider the residue at i which is:

## \displaystyle \lim_{z\to i} \frac{e^{-|z|}}{i+z}=\frac{e^{-|i|}}{2i}=\frac{1}{2ie} ##

So the integral is equal to ## \frac{2\pi i}{2ie}=\frac \pi e \approx 1.15 ##. But wolframalpha.com gives an expression involving Ci(x) and Si(x) that approximates to 1.24. What is wrong here?

Thanks
 
Physics news on Phys.org
Looks to me Wolfram is doing some numerical integration. When I do a primitive numerical integration with excel I get about the same answers they do.
Your answer is correct

(How did you get this Ci and Si answer from wolfie ?)
 
I don't know off the bat how to derive the right answer, but contour integration by using residues only works for analytic functions, and the use of an absolute value, |x|, makes your integrand non-analytic.
 
  • Like
Likes ShayanJ
BvU said:
Looks to me Wolfram is doing some numerical integration. When I do a primitive numerical integration with excel I get about the same answers they do.
Your answer is correct

(How did you get this Ci and Si answer from wolfie ?)

That link is for the integrand \dfrac{e^{itz}}{1+z^2}, not \dfrac{e^{-|z|}}{1+z^2}
 
stevendaryl said:
I don't know off the bat how to derive the right answer, but contour integration by using residues only works for analytic functions, and the use of an absolute value, |x|, makes your integrand non-analytic.
Yeah, I missed that completely. o:) o:) o:) though to be smart and use ##t=i##

(For the numerics looked at ##[0,\infty>##)

Changed your avatar, didn't you ? Less colorful but more cultural !
 
Back
Top