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