Primitive of x squared over x fourth plus a fourth

Theorem

 * $\displaystyle \int \frac {x^2 \ \mathrm d x} {x^4 + a^4} = \frac 1 {4 a \sqrt 2} \ln \left({\frac {x^2 - a x \sqrt 2 + a^2} {x^2 + a x \sqrt 2 + a^2} }\right) - \frac 1 {2 a \sqrt 2} \left({\arctan \left({1 - \frac {x \sqrt 2} a}\right) - \arctan \left({1 + \frac {x \sqrt 2} a}\right)}\right)$

Proof
Then:

Similarly:

Thus: