Evaluate: $\int \sqrt {\dfrac {x}{a-x}}\, dx$
My Attempt: $$\int \sqrt {\dfrac {x}{a-x}} \, dx$$
Let $x=a\cos (2\theta)$ $$dx=-2a\sin (2\theta ) d\theta$$ Then, $$=-\int \sqrt {\dfrac {a \cos (2\theta)}{a-a\cos (2\theta )}} 2a\sin (2\theta ) d\theta$$ $$=-\int \sqrt {\dfrac {\cos (2\theta)}{1-\cos (2\theta)}} 2a\sin (2\theta) d\theta$$
I feel a better substitution would be: $$x =a\cos^2 \theta \implies dx =-a\sin 2\theta \, d\theta$$ giving us: $$I = \int \sqrt{\frac{x} {a-x}} \, dx$$ $$=-a\int \cot \theta \sin 2\theta\, d\theta$$ $$=-2a\int \cos^2 \theta \, d\theta$$
Hope you can take it from here.