How do I evaluate $\int \frac{2x}{(1-x^2)\sqrt{x^4-1}}dx$ ?
Note that this is a Q&A post and I've presented my solution below.
Let $x=\sqrt{\sec({2\tan^{-1}}t)}$
$\Rightarrow dx=\frac{2\tan^{2}(2\tan^{-1}t)}{2(1+t^2)\sqrt{\sec(2tan^{-1}t)}}$
$\Rightarrow xdx=\frac{\tan^2(2\tan^{-1}t)}{1+t^2}$
Substituting in the original integral- $$\Rightarrow \int \frac{2\tan^2(2\tan^{-1}t)}{(1+t^2)(1-\sec(2\tan^{-1}t))(\sqrt{\sec^2(2tan^{-1}t)-1})}dt$$ $$\Rightarrow \int \frac{2\tan(2\tan^{-1}t)}{(1+t^2)(1-\sec(2tan^{-1}t))}dt$$ $$\Rightarrow \int \frac{4t(1-t^2)}{(-2t^2)(1-t^4)}dt$$ $$\Rightarrow -2\int \frac{1}{t(1+t^2)}$$ $$\Rightarrow -2(\log t-\frac{1}{2}\log(t^2+1))$$
Letting $x^2=\sec \theta$ transform the integral into \begin{aligned} I & =\int \frac{\sec \theta \tan \theta d \theta}{(1-\sec \theta) \tan \theta} \\ & =\int \frac{1}{\cos \theta-1} d \theta \\ & =\int \frac{\cos \theta+1}{-\sin ^2 \theta} d \theta \\ & =-\int \cot \theta \csc \theta d \theta-\int \csc ^2 \theta d \theta \\ & =\csc \theta+\cot \theta+C \\ & =\frac{x^2+1}{\sqrt{x^4-1}}+C \end{aligned}