<s>[INST] Integrate $ \int\frac{1+x^2}{(1-x^2)(\sqrt{1+x^4})}dx $ $$ \int\frac{1+x^2}{(1-x^2)(\sqrt{1+x^4})}dx $$
I thought of substituting $ x-\frac{1}{x}  $ as $t$ but it gets stuck midway. I am close but I think I need to sustitute something else here.
 [/INST] Given expression is also equal to:
$$\int\frac{1+\frac{1}{x^2}}{(x-\frac{1}{x})(\sqrt{\frac{1}{x^2}+x^2})}dx$$Which further reduces to
$$\int\frac{1+\frac{1}{x^2}}{(x-\frac{1}{x})\sqrt{(x-\frac{1}{x})^2-2}}dx$$Now let $x-\frac{1}{x}=t$ The rest is evident.
</s>