Saitama
- 4,244
- 93
Homework Statement
\int_{0}^{2\pi} \frac{dx}{1+e^{\sin x}}
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,
I=\int_{0}^{2\pi} \frac{dx}{1+e^{-\sin x}}=\int_{0}^{2\pi} \frac{e^{\sin x}dx}{1+e^{\sin x}}
2I=\int_{0}^{2 \pi}dx
I=\pi
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
I=\int_{0}^{0} \frac{dt}{\sqrt{1-t^2} (1+e^t)}
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!