How to calculate the indefinite integral of ∫ 1 / [x ^ 2 (x ^ 2 + 1)] DX

How to calculate the indefinite integral of ∫ 1 / [x ^ 2 (x ^ 2 + 1)] DX

∫dx/[x^2(x^2+1)]
=∫[1/x^2 -1/(x^2+1)] dx
= -1/x - arctanx + C