Mathematica can do this integral, $$\int_{0}^{\pi/2} \frac{\sin x~ \mathrm dx}{\sin x+\cos x+ e^x}\,,$$ the question is: how to do it by hand?
Asked
Active
Viewed 80 times
2 Answers
3
$$\int_{0}^{\pi/2} \frac{\sin x~ dx}{\sin x+\cos x+ e^x}dx$$
$$=\int_{0}^{\pi/2} \frac{e^{-x}\sin x~ dx}{e^{-x}(\sin x+\cos x)+ 1}dx$$
Put $1+e^{-x}(\sin x+\cos x)=t$. Then, $-2e^{-x}\sin x dx=dt$.
The integral changes to
$$=\int_{2}^{1+e^{-\pi/2}} \frac{-1}{2t}dt$$
$$=\frac{1}{2}\ln\left(\frac{2}{1+e^{-\pi/2}}\right)$$
Amit Rajaraman
- 3,248
-
Don't you miss a $\frac \pi 4$ ? – Claude Leibovici Jun 25 '19 at 06:17
-
@ClaudeLeibovici No, both our answers are the exact same. It's just represented in a different way. – Amit Rajaraman Jun 25 '19 at 06:26
-
Do you know what ? I just feel stupid ! Cheers :-( – Claude Leibovici Jun 25 '19 at 06:35
3
Rewrite $$ \frac{\sin(x)}{e^x+\sin (x)+\cos (x)}=\frac{1}{2}-\frac{1}{2}\frac{e^x+\cos (x)-\sin (x)}{e^x+\sin (x)+\cos (x)}$$ $$\int \frac{\sin(x)}{e^x+\sin (x)+\cos (x)}\,dx=\frac{x}{2}-\frac{1}{2} \log \left(e^x+\sin (x)+\cos (x)\right)$$
Claude Leibovici
- 260,315