- #1
walking_edges
- 5
- 0
Homework Statement
My question has two parts.
The first part is the solution of the following integral:
[tex]\int^{\infty}_{-\infty}\frac{cos\:x\:dx}{1+x^{2}}[/tex]
They give the answer as being [tex]\frac{\pi}{e}[/tex]
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 [tex]cos\:x=e^{ix}[/tex] 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 [tex]\int^{\infty}_{-\infty}\frac{sin\:x\:dx}{1+x^{2}}[/tex] My best guess would be that I could let [tex]sin\:x=e^{ix}[/tex] 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
[tex]\int^{\infty}_{0}\frac{cos\:x+x\:sin\:x\:dx}{1+x^{2}}[/tex]
I have tried to change that Integral to
[tex]\int^{\infty}_{-\infty}\frac{1}{2}\frac{e^{ix}(1+x)\:dx}{1+x^{2}}[/tex]
and drawing my infinite arc of the closed curve in the top half of the complex plane where it encloses the singularity [tex]z=i[/tex], but I get the answer
[tex]=(2\pi i)\frac{(e^{-1})(1+i)}{2i}=\frac{\pi}{2}(e^{-1})(1+i)[/tex]
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