I have to calculate the indefinite integral $$\int\frac{x^4-1}{x^2\sqrt{x^4+x^2+1}}$$
I tried a lot of unsuccessful substitutions and finally decided to try this Integral Calculator.
It did calculate the answer but I can't understand the steps it gave.
Particularly this step below is what I'm unable to get. I am familiar with partial fraction decomposition but I have no idea how to break the expression like this.
Can someone explain it to me or suggest some other way?
