I am trying to find an appropriate substitution in the following indefinite integral $$\int \frac{x^n}{\sqrt{x-x^2}}dx$$ for an arbitrary power $n$ to obtainthe intermidiate steps to the same answer as in Mathematica expressed through the hypergeometric function as following
$$\int\frac{x^ndx}{\sqrt{x(1-x)}}=-\sqrt{1-x}\;_2F_1\left(\frac{1}{2},\frac{1}{2}-n;\frac{3}{2};1-x\right)$$
Using this formula I could also compute the definite integral from $0$ to $1$, which is given as
$$\int_{0}^{1} \frac{x^{n}dx}{\sqrt{x(1-x)}}=\frac{\sqrt{\pi}\Gamma\left(n+\frac{1}{2}\right)}{\Gamma(n+1)}$$
Any ideas are very welcome!