Question 12 Marks
Evaluate: $\int \frac{x^2 \tan ^{-1} x}{\left(1+x^2\right)} d x$
Answer
View full question & answer→Let $I =\int \frac{x^2 \tan ^{-1} x}{\left(1+x^2\right)} d x$
Now let $\tan ^{-1} x = t$ and $x =\tan t$
Differentiating both sides, we get
$\frac{1}{1+x^2} d x=d t$
Now we have
$I=\int \frac{x^2 \tan ^{-1} x}{\left(1+x^2\right)} d x=\int \tan ^2 t \cdot t d t=\int t\left(\sec ^2 t-1\right) dt$
$=\int tsec^2 tdt-\int tdt$
Here $t$ is the first function and $\sec ^2 t$ as the second function.
$I=\int tsec^2 tdt-\int tdt=t \int \sec ^2 tdt-\int\left(\frac{d t}{d t} \cdot \int \sec ^2 t d t\right) d t-\frac{t^2}{2}$
$=t \cdot \tan t-\int \tan tdt-\frac{t^2}{2}$
$=t \cdot \tan t-\ln |\sec t|-\frac{t^2}{2}+c$
We know that $\sec t =\sqrt{\tan ^2 t+1}$
$I=\tan ^{-1} x \cdot x-\ln \left|\sqrt{\tan ^2 t+1}\right|-\frac{\tan ^2 x}{2}+c$
$=x \tan ^{-1} x-\ln \left|\sqrt{x^2+1}\right|-\frac{\tan ^2 x}{2}+c$
Now let $\tan ^{-1} x = t$ and $x =\tan t$
Differentiating both sides, we get
$\frac{1}{1+x^2} d x=d t$
Now we have
$I=\int \frac{x^2 \tan ^{-1} x}{\left(1+x^2\right)} d x=\int \tan ^2 t \cdot t d t=\int t\left(\sec ^2 t-1\right) dt$
$=\int tsec^2 tdt-\int tdt$
Here $t$ is the first function and $\sec ^2 t$ as the second function.
$I=\int tsec^2 tdt-\int tdt=t \int \sec ^2 tdt-\int\left(\frac{d t}{d t} \cdot \int \sec ^2 t d t\right) d t-\frac{t^2}{2}$
$=t \cdot \tan t-\int \tan tdt-\frac{t^2}{2}$
$=t \cdot \tan t-\ln |\sec t|-\frac{t^2}{2}+c$
We know that $\sec t =\sqrt{\tan ^2 t+1}$
$I=\tan ^{-1} x \cdot x-\ln \left|\sqrt{\tan ^2 t+1}\right|-\frac{\tan ^2 x}{2}+c$
$=x \tan ^{-1} x-\ln \left|\sqrt{x^2+1}\right|-\frac{\tan ^2 x}{2}+c$