- #1
Saitama
- 4,243
- 93
Homework Statement
[tex]\int_{0}^{2\pi} \frac{dx}{1+e^{\sin x}}[/tex]
Homework Equations
The Attempt at a Solution
Let ##I=\int_{0}^{2\pi} \frac{dx}{1+e^{\sin x}}##
Since ##\int_{a}^{b}f(x) dx=\int_{a}^{b} f(a+b-x)dx##
Hence,
[tex]I=\int_{0}^{2\pi} \frac{dx}{1+e^{-\sin x}}=\int_{0}^{2\pi} \frac{e^{\sin x}dx}{1+e^{\sin x}}[/tex]
[tex]2I=\int_{0}^{2 \pi}dx[/tex]
[tex]I=\pi[/tex]
This is the right answer but when I try it with the following method it turns out to be zero.
Let ##\sin x=t## or ##\cos xdx=dt##. Multiply the numerator and denominator by ##\cos x## & ##\cos x=\sqrt{1-t^2}##
The integral transforms to
[tex]I=\int_{0}^{0} \frac{dt}{\sqrt{1-t^2} (1+e^t)}[/tex]
Both the upper and lower limits are zero. The value of I should be zero. What have I done wrong?
Any help is appreciated. Thanks!