How can we integrate $$ \int \sqrt{\frac{x-1}{x+1}}\frac 1{x^2} \, dx $$
I thought about substituting $u=\frac 1x$ to transform the integral into a slightly-simpler looking one: $$ -\int \sqrt{\frac{1-u}{1+u}} \, du $$ Am I on the right track?
Following @Shobhit's comment, I let $u=\cos (2w)=\cos^2 w - \sin^2 w$, so that $du=-2 \sin(2w) \, dw = -4 \sin w \cos w \, dw$ and so \begin{align} \int \sqrt{\frac{x-1}{x+1}}\frac 1{x^2} dx &= -\int \sqrt{\frac{1-u}{1+u}} \, du \\ &= 4 \int |\tan w| \sin w \cos w \, dw \\ &= 4 \int \sin^2 w \, dw \end{align} If this is correct, then I can finish the rest of this integral on my own.