How to solve this indefinite integral using integral substitution? So while working on some physics problem for differential equations,  I landed at this weird integral $$ \int \frac 1 {\sqrt{1-\left(\frac 2x\right)}}\,dx $$
So since there is a square root, I thought I could use trig substitution, but I couldn't find anything that works out. How can one solve this integral in a nice simple manner? If you can solve it in a different way, it is still fine. $Thank$ $you!$
This is the answer given to me by symbolab $$ 4\left(-\frac{1}{4\left(\sqrt{1-\frac{2}{x}}-1\right)}-\frac{1}{4\left(\sqrt{1-\frac{2}{x}}+1\right)}-\frac{1}{4}\ln \left|\sqrt{1-\frac{2}{x}}-1\right|+\frac{1}{4}\ln \left|\sqrt{1-\frac{2}{x}}+1\right|\right)+C $$

Adding to Dr. MV's hint,
$$\int\frac{1}{\sqrt{1-\frac2x}}\ \mathrm dx=\int\frac{\sqrt x}{\sqrt{x-2}}\ \mathrm dx$$
Using trigonometric substitution, we have
$$\sqrt x=\sqrt 2\sec\phi$$
Which implies that
$$x=2\sec^2\phi\Rightarrow \mathrm dx=4\tan\phi\sec^2\phi\ \mathrm d\phi$$
So now the integral becomes
$$\int\frac{4\sqrt 2\tan\phi\sec^3\phi}{\sqrt{2\sec^2\phi-2}}\ \mathrm d\phi$$
$$=4\int\frac{\tan\phi\sec^3\phi}{\sqrt{\sec^2\phi-1}}\ \mathrm d\phi$$
$$=4\int\frac{\tan\phi\sec^3\phi}{\sqrt{\tan^2\phi}}\ \mathrm d\phi$$
$$=4\int\sec^3\phi\ \mathrm d\phi$$
This integral has been answered numerous times. Study this to see how the following solution is derived. 
$$2\sec\phi\tan\phi+2\ln\left|\sec\phi+\tan\phi\right|+C$$
Now let's get an answer in terms of $x$. Note that
$$\sqrt x=\sqrt 2\sec\phi\Rightarrow\phi=\mathrm{arcsec}\left(\frac{\sqrt x}{\sqrt 2}\right)$$
And
$$ \tan\left(\mathrm{arcsec}(x)\right)=\sqrt{x^2-1}$$
Therefore
$$\frac{2\sqrt x}{\sqrt 2}\tan\left(\mathrm{arcsec}\left(\frac{\sqrt x}{\sqrt 2}\right)\right)+2\ln\left|\frac{\sqrt x}{\sqrt 2}+\tan\left(\mathrm{arcsec}\left(\frac{\sqrt x}{\sqrt 2}\right)\right)\right|+C$$
$$=\sqrt{x^2-2x}+2\ln\left|\sqrt{x-2}+\sqrt x\right|+C$$
