The correct option is C xtan−1(x)−12ln|1+x2|+c
This is a function, whose integral, we can’t find directly. We saw that in those cases, even if there is only one function, we can apply integration by parts to find the solution by taking ‘1’ as the second function. We are not sure if we will be able to find the integral this way. We will get to know that as we proceed. Another approach to solve this problem would be to proceed by the substitution x = tan(t). We will proceed by applying integration by parts.
∫tan−1(x)dx=∫(tan−1(x)×1)dx
=tan1(x)∫1dx−∫[ddx(tan1(x)∫1dx]dx
=tan−1(x)x−∫11+x2xdx
=xtan−1(x)−12∫2x1+x2dx
In the second term, if substitute, t=1+x2 , dt=2xdx, which is the numerator. So we get
∫tan−1(x)dx=xtan−1(x)−12∫dtt
=xtan−1(x)−12ln|t|
Substituting back t = 1+x2
∫tan−1(x)dx=xtan−1(x)−12ln|1+x2|+c