Question
Evaluate: $\int \frac{1}{\cos x-\sin x} d x$

Answer

Let the given integral be,
$ I =\int \frac{1}{\cos x-\sin x} d x$
Putting  $\cos x =\frac{1-\tan ^2\left(\frac{x}{2}\right)}{1+\tan ^2\left(\frac{x}{2}\right)}$ and $\sin x =\frac{2 \tan \frac{x}{2}}{1+\tan ^2 \frac{x}{2}}$
$\Rightarrow I=\int \frac{d x}{\frac{1-\tan ^2\left(\frac{x}{2}\right)}{1+\tan ^2\left(\frac{x}{2}\right)}-\frac{2 \tan \frac{x}{2}}{1+\tan ^2 \frac{x}{2}}}$
$=\int \frac{\sec ^2\left(\frac{x}{2}\right) d x}{1-\tan ^2\left(\frac{x}{2}\right)-2 \tan \left(\frac{x}{2}\right)}$
Let  $\tan \left(\frac{x}{2}\right)= t$
$\Rightarrow \frac{1}{2} \sec ^2\left(\frac{x}{2}\right) dx = dt$
$\sec ^2\left(\frac{x}{2}\right) dx =2 dt $
$\therefore I=\int \frac{2 d t}{1-t^2-2 t}$
$=\int \frac{-2 d t}{t^2+2 t-1}$
$=\int \frac{-2 d t}{t^2+2 t+1-2}$
$=-\int \frac{2 d t}{(t+1)^2-(\sqrt{2})^2}$
$=\int \frac{2 d t}{(\sqrt{2})^2-(t-1)^2}$
$=\frac{2}{2 \sqrt{2}} \ln \left|\frac{\sqrt{2}+t+1}{\sqrt{2}-t-1}\right|+C$
$=\frac{1}{\sqrt{2}} \ln \left|\frac{\sqrt{2}+\tan \frac{x}{2}+1}{\sqrt{2}-\tan \frac{x}{2}-1}\right|+C$

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

Examine the continuity of f, where f is defined by
$​​​​\text{f(x)}=\begin{cases} \sin{\text{x}- \cos\text{x}}, \text{if} \ \text{x}\neq0\\-1, \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \text{if}\ \text{x} = 0\end{cases}$
Find the values of k so that the function f is continuous at the indicated point in Exercises 26 to 29.
$\text{If y}=\text{e}^{\text{y}}(\text{x}+1)=1,\text{ show that }\frac{\text{d}^2\text{y}}{\text{dx}^2}=\Big(\frac{\text{dy}}{\text{dx}}\Big)^2$
Find the equation of the plane through the untersection of the planes 3x - y + 2z = 4 and x + y + z = 2 and the point (2, 2, 1).
$\overrightarrow{a} = \hat{i} + 2\hat{j} - 3\hat{k}, \overrightarrow{b} = 3\hat{i} - \hat{j} + 2\hat{k}, \text{show that}\bigg(\overrightarrow{a} +\overrightarrow{b}\bigg) \text{and} \bigg(\overrightarrow{a} -\overrightarrow{b}\bigg)$ are perpendicular to each other.
Find the slope of the tangent to the curve $x = t^2 + 3t - 8, y = 2t^2 - 2t - 5$ at $t = 2$.
Find the least value of $\text{f}(\text{x})=\text{ax}+\frac{\text{b}}{\text{x}}$, where a > 0, b > 0 and x > 0.
Evaluate the following integrals:
$\int\tan^5\text{x }\sec^4\text{x}\text{dx}$
On the set Z of integers a binary operation * is defined by a * b = ab + 1 for all a, b ∈ Z. Prove that * is not associative on Z.
Evaluate the following definite integrals:
$\int_{0}^\limits{2}\frac{1}{\sqrt{3+2\text{x}-\text{x}^2}}\text{ dx}$
Integrated the function: $\int \frac { e ^ { 2 x } - e ^ { - 2 x } } { e ^ { 2 x } + e ^ { - 2 x } } d x.$