I was given this problem,
$$\int{\frac{x^2+1}{x^4-x^2+1}}\ln{(1+x-\frac{1}{x})}dx$$
Putting $x-\frac{1}{x}=t$,
We get $$\int{\frac{\ln(1+t)}{1+t^2}}dt$$
But I am struggling to integrate after this step? How should I continue?
Any hints would be helpful. Thank you.
HINT:
For solving $$\int \frac {ln(1+t)} {1+t^2} dt$$ You can substitute $t=tan\theta$, this will bring the integral down to $$\int ln(1+tan\theta )d\theta$$
You can use by parts in this integration and this should be pretty much solvable.