I have Divided the numerator and Denominator by $x^2$ to get $\dfrac{1+x^{-2}}{x^2+x^{-2}}$ then changed it into $(1+(x^{-2}))/[(x-x^{-1})^2 +2]$ then took $x-(1/x)$ as $u$ and Differentiated it with respect to $x$ to get $dx=du/(1+x^{-2})$ Finally I got this expression:
$$ \int\frac{x^2+1}{x^4+1} \, dx = \int (u^2+2)^{-1} \, du $$
After this I need help!