I had come across a question as follows:
Compute the integral $$\int_{}{(x^3+x+1)/(x^4+x^2+1)}dx$$
I tried a lot manipulating the numerator but I couldn't convert the terms into standard forms. Factorisation of the denominator didn't prove to be helpful either. I have run out of ideas. Would someone please help?
Thanks in advance!
Extended hint: $$ \frac{x^3+x+1}{x^4+x^2+1}=\frac12\left[\frac1{x^2-x+1}+\frac{2x+1}{x^2+x+1}\right]. $$