walking_edges
- 4
- 0
Homework Statement
My question has two parts.
The first part is the solution of the following integral:
\int^{\infty}_{-\infty}\frac{cos\:x\:dx}{1+x^{2}}
They give the answer as being \frac{\pi}{e}
This is actually an example problem in the book, but I don't understand how they reached the answer. I understand how to use Cauchy's Residue Theorem and how it is used here, but there is a step in the book where they go
"Let cos\:x=e^{ix} and then take only the real part of the solution"
that I do not understand. They don't explain why I'm allowed to do this, and so I don't really know how I'm allowed to generalize this result. I don't think I would know what I would be allowed to do if the problem was \int^{\infty}_{-\infty}\frac{sin\:x\:dx}{1+x^{2}} My best guess would be that I could let sin\:x=e^{ix} and only take the imaginary part of the answer, but I'm not sure.
Here's the second part of my question:
I also have little idea of what to do when I come across more involved integrals like
\int^{\infty}_{0}\frac{cos\:x+x\:sin\:x\:dx}{1+x^{2}}
I have tried to change that Integral to
\int^{\infty}_{-\infty}\frac{1}{2}\frac{e^{ix}(1+x)\:dx}{1+x^{2}}
and drawing my infinite arc of the closed curve in the top half of the complex plane where it encloses the singularity z=i, but I get the answer
=(2\pi i)\frac{(e^{-1})(1+i)}{2i}=\frac{\pi}{2}(e^{-1})(1+i)
Which I know is not the right answer. After looking at it for a while, I realized I am not allowed to to double the limits of integration like that because the function is not even. Then I became lost on how I could draw my contour so as to enclose a singularity.
If I could have help on why I am allowed to use the identity they used in the book, and how I could possibly draw my contour for the second integral, that would be appreciated.
Thank You