How can I evaluate the following integral $$\int \frac{dx}{\sqrt{1+x}-\sqrt{1-x}}$$
This is taken from a definite integral where $x$ varies from $0$ to $1$.
My attempt:
Multiplied by conjugate $$\int \frac{dx}{\sqrt{1+x}-\sqrt{1-x}}\\=\int \frac{(\sqrt{1+x}+\sqrt{1-x})dx}{(\sqrt{1+x}-\sqrt{1-x})(\sqrt{1+x}+\sqrt{1-x})}$$ $$=\int \frac{\sqrt{1+x}+\sqrt{1-x})dx}{1+x-1+x}$$ $$=\int \frac{\sqrt{1+x}+\sqrt{1-x})dx}{2x}$$
- If I use $x=\sin^2\theta$ $$\int \frac{\left(\sqrt{1+\sin^2\theta}+\cos\theta\right)}{2\sin^2\theta}\sin2\theta\ d\theta\\ =\int \left(\sqrt{1+\sin^2\theta}+\cos\theta\right)\cot\theta d\theta$$
- If I use $x=\tan^2\theta$ $$\int \frac{\left(\sec\theta-\sqrt{1-\tan^2\theta}\right)}{2\tan^2\theta}2\tan\theta\sec^2\theta d\theta\ d\theta\\ =\int \frac{\left(\sec\theta-\sqrt{1-\tan^2\theta}\right)}{\sin\theta\cos\theta} d\theta$$
Should I use substitution $x=\sin^2\theta$ or $x=\tan^2\theta$?. I can't decide which substitution will work further. Please help me solve this integration.
Thanks