indefinite integration $ \int \frac { x^2 dx} {x^4 + x^2 -2}$ problem : $ \int \frac { x^2 dx}  {x^4 + x^2 -2}$
solution : divide numerator and denominator by $x^2$
$ \int \frac { dx}  {x^2 + 1 -\frac{1}{x^2}}$
Now whats the next step $?$
Am I doing right $?$

Hint: $x^4+x^2-2$ can be factored as $(x-1)(x+1)(x^2+2)$. then find $A,B,C$, and $D$ which are constants, such that
$$
\frac{x^2}{x^4+x^2-2}=\frac{A}{x-1}+\frac{B}{x+1}+\frac{Cx+D}{x^2+2}
$$
and integrate termwise.
