I know how to solve the following integral $$\int \frac{\tan^{-1}x}{(1+x^2)}dx$$ . We have to substitute $\tan^{-1}x$ as $t$ and we will be done.
After this one, I tried to find out $$\int \frac{\tan^{-1}x}{(1+x)^2}dx $$ but unfortunately I could not figure out how to solve it.
What I thought was, substitution $x=\tan^2 t$ but could not complete the track. Would you please help me on this regard?
Thanks in advance
Integrate by parts, $$\int \frac{\arctan x}{(1+x)^2}dx=\arctan x\int\frac{dx}{(1+x)^2}-\int\left(\frac{d(\arctan x)}{dx}\int\frac{dx}{(1+x)^2}\right)dx$$
$$=-\frac{\arctan x}{1+x}+\int\frac1{(1+x)(1+x^2)}dx$$
Now use Partial Fraction Decomposition, $$\frac1{(1+x)(1+x^2)}=\frac A{1+x}+\frac{Bx+C}{1+x^2}$$