Question Number 118340 by bramlexs22 last updated on 17/Oct/20
$$\:\:\:\underset{\pi/\mathrm{3}} {\overset{\pi/\mathrm{2}} {\int}}\:\frac{{dx}}{\mathrm{1}+\mathrm{sin}\:{x}−\mathrm{cos}\:{x}} \\ $$
Commented by Dwaipayan Shikari last updated on 17/Oct/20
$$\int_{\frac{\pi}{\mathrm{3}}} ^{\frac{\pi}{\mathrm{2}}} \frac{{dx}}{\mathrm{1}−{cosx}+{sinx}}=\mathrm{2}\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \frac{{dt}}{\mathrm{1}−\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\mathrm{1}+{t}^{\mathrm{2}} }+\frac{\mathrm{2}{t}}{\mathrm{1}+{t}^{\mathrm{2}} }}.\frac{\mathrm{1}}{\mathrm{1}+{t}^{\mathrm{2}} }\:\:\:\:\:\:\:{x}={tan}\frac{{x}}{\mathrm{2}} \\ $$$$=\mathrm{2}\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \frac{{dt}}{\mathrm{2}{t}^{\mathrm{2}} +\mathrm{2}{t}}=\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \frac{{dt}}{{t}\left({t}+\mathrm{1}\right)}=\left[{log}\left(\frac{{t}}{{t}+\mathrm{1}}\right)\right]_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \\ $$$$={log}\left(\frac{\mathrm{1}}{\mathrm{2}}\right)−{log}\left(\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}+\mathrm{1}}\right)={log}\left(\frac{\sqrt{\mathrm{3}}+\mathrm{1}}{\mathrm{2}}\right) \\ $$$$ \\ $$
Answered by Bird last updated on 17/Oct/20
$${I}\:=\int_{\frac{\pi}{\mathrm{3}}} ^{\frac{\pi}{\mathrm{2}}} \:\:\frac{{dx}}{\mathrm{1}+{sinx}−{cosx}} \\ $$$${we}\:{do}\:{the}\:{ch}.{tan}\left(\frac{{x}}{\mathrm{2}}\right)={t}\:\Rightarrow \\ $$$${I}\:=\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \:\:\:\frac{\mathrm{2}{dt}}{\left(\mathrm{1}+{t}^{\mathrm{2}} \right)\left(\mathrm{1}+\frac{\mathrm{2}{t}}{\mathrm{1}+{t}^{\mathrm{2}} }−\frac{\mathrm{1}−{t}^{\mathrm{2}} }{\mathrm{1}+{t}^{\mathrm{2}} }\right)} \\ $$$$=\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \:\:\frac{\mathrm{2}{dt}}{\mathrm{1}+{t}^{\mathrm{2}} +\mathrm{2}{t}−\mathrm{1}+{t}^{\mathrm{2}} } \\ $$$$=\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \:\:\frac{\mathrm{2}{dt}}{\mathrm{2}{t}^{\mathrm{2}} +\mathrm{2}{t}}\:=\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \:\frac{{dt}}{{t}\left({t}+\mathrm{1}\right)} \\ $$$$=\int_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} \:\left(\frac{\mathrm{1}}{{t}}−\frac{\mathrm{1}}{{t}+\mathrm{1}}\right){dt} \\ $$$$=\left[{ln}\mid\frac{{t}}{{t}+\mathrm{1}}\mid\right]_{\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}} ^{\mathrm{1}} ={ln}\left(\frac{\mathrm{1}}{\mathrm{2}}\right)−{ln}\left(\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}\left(\mathrm{1}+\frac{\mathrm{1}}{\:\sqrt{\mathrm{3}}}\right)}\right) \\ $$$$=−{ln}\left(\mathrm{2}\right)+{ln}\left(\mathrm{1}+\sqrt{\mathrm{3}}\right) \\ $$$$ \\ $$