Q:
Integrate $I=\int_{0}^{\infty}\frac{\tan^{-1}x}{x\left(1+x^{2}\right)}dx$
My Approach:
Put $$\tan^{-1}x=t\to x=\tan t$$
Also we have, $$\frac{dx}{1+x^{2}}=dt$$
We get, $$I=\int_{0}^{\frac{\pi}{2}}\frac{t}{\tan t}dt$$
I'm stuck here, how do I proceed further? I tried integration by parts but it doesn't seem to work out for me.
Edit: I tried again and I got the answer