0

Is there any faster method to solve this integral besides tangent half-angle substitution

$$\int \frac{dx}{\sin x-\cos x}$$

I was trying

$$\int \frac{\sin^2 x+\cos^2 x}{\sin x-\cos x}$$ $$\int \frac{\sin^2 x}{\sin x-\cos x}dx + \int \frac{\cos^2 x}{\sin x-\cos x}dx$$

O M
  • 2,094

1 Answers1

1

HINT

I would recommend you to notice that:

\begin{align*} \sin(x) - \cos(x) & = \sqrt{2}\left(\sin(x)\frac{1}{\sqrt{2}} - \frac{1}{\sqrt{2}}\cos(x)\right)\\\\ & = \sqrt{2}\left(\sin(x)\cos\left(\frac{\pi}{4}\right) - \sin\left(\frac{\pi}{4}\right)\cos(x)\right)\\\\ & = \sqrt{2}\sin\left(x - \frac{\pi}{4}\right) \end{align*}

Can you proceed from here?