Integrate the function $\frac{1}{1-\tan x}$.

Vedclass pdf generator app on play store
Vedclass iOS app on app store
Let $I = \int \frac{1}{1-\tan x} dx$.
$= \int \frac{1}{1-\frac{\sin x}{\cos x}} dx = \int \frac{\cos x}{\cos x-\sin x} dx$.
Multiply and divide by $2$:
$= \frac{1}{2} \int \frac{2 \cos x}{\cos x-\sin x} dx$.
Rewrite the numerator:
$= \frac{1}{2} \int \frac{(\cos x-\sin x)+(\cos x+\sin x)}{\cos x-\sin x} dx$.
$= \frac{1}{2} \int 1 dx + \frac{1}{2} \int \frac{\cos x+\sin x}{\cos x-\sin x} dx$.
$= \frac{x}{2} + \frac{1}{2} \int \frac{\cos x+\sin x}{\cos x-\sin x} dx$.
Let $t = \cos x - \sin x$,then $dt = -(\sin x + \cos x) dx$,so $(\cos x + \sin x) dx = -dt$.
$= \frac{x}{2} - \frac{1}{2} \int \frac{1}{t} dt$.
$= \frac{x}{2} - \frac{1}{2} \ln |\cos x - \sin x| + C$,where $C$ is the constant of integration.

Explore More

Similar Questions

$\int e^{\tan \theta} (\sec \theta - \sin \theta) d\theta$ equals:

If $I_n = \int \frac{t^{2n}}{1+t^2} dt$,then $I_{n+1} =$

If $\int \frac{2 \cos x+3 \sin x}{4 \cos x+5 \sin x} dx = \left(\frac{23}{41}\right) x + K \log |4 \cos x+5 \sin x| + c$,then $K$ is equal to

Find the integral of the function $\frac{1}{\sin x \cos ^{3} x}$.

$\int \frac{d x}{\sqrt{\left(5+2 x+x^2\right)^3}}$ is equal to

Vedclass Products

For Students

Vedclass Test Series

Mock tests in real JEE/NEET style with performance analysis. 5-day free trial.

Start Free Trial
For Teachers

Exam Paper Generator

Generate Set A/B/C/D exam papers from 7.5L+ questions in 2 minutes. 3 chapters free.

Try Free
For Institutes

Online Exam Module

Live online exams with unlimited students, 360° analytics & white-label branding.

See Demo