Is there someone show me how I evaluate this integral:$$\int\frac{\mathrm{d}x}{1+\sin x−\cos x} $$
I used $t=\tan\frac{x}{2}$ but i didn't succeed .
Thank you for any help .
Is there someone show me how I evaluate this integral:$$\int\frac{\mathrm{d}x}{1+\sin x−\cos x} $$
I used $t=\tan\frac{x}{2}$ but i didn't succeed .
Thank you for any help .
$$\int\frac {\mathrm{dx}}{1+\sin x -\cos x}= \int\frac {\mathrm{dx}}{2\sin^2 \frac{x}{2}+2\sin \frac{x}{2} \cos \frac{x}{2}}\\= \frac{1}{2}\int\frac {\mathrm{dx}}{\sin^2 \frac{x}{2}+\sin \frac{x}{2} \cos \frac{x}{2}}= \frac{1}{2}\int\frac{\sec^2 \frac{x}{2}}{\tan^2 \frac{x}{2} +\tan \frac{x}{2}}\mathrm{dx}$$
put, $\tan \frac{x}{2} =t$
Hence $\displaystyle \int\frac{\mathrm{dt}}{t^2+t}$
$$ = \int\frac{\mathrm{dt}}{t}- \int\frac{\mathrm{dt}}{t+1}= \log \frac{t}{t+1}+C$$ We must substitute $\tan \frac{x}{2}=t$ back into $\log \frac{t}{t+1}+C$ to get $\boxed{\log \tan \frac{x}{2}-\log\left(\tan \frac{x}{2}+1\right)+C}$ as the final answer .