$\int \frac{d x}{\cos x-\sin x}$ is equal to

$\int \frac{d x}{\cos x-\sin x}$ is equal to
  1. $\frac{1}{\sqrt{2}} \log \left|\tan \left(\frac{x}{2}-\frac{\pi}{8}\right)\right|+C$
  2. $\frac{1}{\sqrt{2}} \log \left|\cot \left(\frac{x}{2}\right)\right|+C$
  3. $\frac{1}{\sqrt{2}} \log \left|\tan \left(\frac{x}{2}-\frac{3 \pi}{8}\right)\right|+C$
  4. $\frac{1}{\sqrt{2}} \log \left|\tan \left(\frac{x}{2}+\frac{3 \pi}{8}\right)\right|+C$

Solution

$\int \frac{d x}{\cos x-\sin x}=\frac{1}{\sqrt{2}} \int \frac{1}{\cos \left(x+\frac{\pi}{4}\right)} d x=\frac{1}{\sqrt{2}} \int \sec \left(x+\frac{\pi}{4}\right) d x=\frac{1}{\sqrt{2}} \log \left|\tan \left(\frac{x}{2}+\frac{3 \pi}{8}\right)\right|+C$

Asked in: JEE Main 2004

Practice more Indefinite Integration questions on Aicharya