∫1/x²(1+x²)dx
=∫(1+x²-x²)/x²(1+x²)dx
=∫(1+x²)/x²(1+x²)dx-∫x²/x²(1+x²)dx
=∫1/x²dx-∫1/(1+x²)dx
=-1/x-arctanx+C