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$
$\text { Putting } \cos x =\frac{1-\tan ^2\left(\frac{x}{2}\right)}{1+\tan ^2\left(\frac{x}{2}\right)} \text { 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)}$
$\text { 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

A bag contains 7 green, 4 white and 5 red balls. If four balls are drawn one by one with replacement, what is the probability that one is red?
Prove that: $\tan ^{-1} 1+\tan ^{-1} \frac{1}{2}+\tan ^{-1} \frac{1}{3}=\frac{\pi}{2}$.
In answering a question on a multiple choice test a student either knows the answer or guesses. Let $\frac{3}{4}$ be the probability that he knows the answer and $\frac{1}{4}$ be the probability that he guesses. Assuming that a student who guesses at the answer will be correct with probability $\frac{1}{4}$. What is the probability that a student knows the answer given that he answered it correctly$?$
Evaluate the following integrals:
$\int\cot \text{x}. \text{log}\ \sin\text{x dx}$
Find the general solution of $\frac{{dy}}{{dx}} + \left( {\sec x} \right)y = \tan x\left( {0 \leq x < \frac{\pi }{2}} \right)$
Show that $\text{f}(\text{x})=\cos^2\text{x}$ is a decreasing function on $\Big(0,\frac{\pi}{2}\Big).$
If $\text{A}=\begin{bmatrix}0&-1&2\\4&3&-4\end{bmatrix}$ and $\text{B}=\begin{bmatrix}4&0\\1&3\\2&6\end{bmatrix},$ then verify that $(\text{AB})'=\text{B}'\text{A}'.$
Differentiate the following functions with respect to x:
$\log\Big\{\cot\Big(\frac{\pi}{4}+\frac{\pi}{2}\Big)\Big\}$
Two dice are rolled once. Find the probability that:
  1. the numbers on two dice are different.
  2. the total of numbers on the two dice is at least.
Evaluate the following integrals:$\int\text{e}^{\text{x}}\big(\cot\text{x}-\text{cosec}^2\text{x}\big)\text{dx}$