I really need help in evaluating the following integral from MIT-BEE Quarterfinals $2025$.
The question is to evaluate the integral $$\int_{0}^{1}\frac{x^{2}}{\sqrt{x(1-x)}}\mathrm dx$$
Now I evaluated this given integral in the following way :
I substituted $x=\sin^{2}(\theta)$ and found the lower and the upper limits to be $0$ and $\frac{\pi}{2}$.
The integral becomes
$$2\int_{0}^{\frac{\pi}{2}}\frac{\sin^{4}(\theta)\times\sin(\theta)\times\cos(\theta)}{\sqrt{\sin^{2}(\theta)\times\cos^{2}(\theta)}}\mathrm d\theta$$
which gives the result as
$$2\int_{0}^{\frac{\pi}{2}}\sin^{4}(\theta)\mathrm d\theta$$
because $\sqrt{\sin^{2}(\theta)×\cos^{2}(\theta)}$ is equal to $[\sin(\theta)×\cos(\theta)]$ and it will cancel out in both the numerator and denominator.
Now, I evaluated $2\int_{0}^{\frac{\pi}{2}}\sin^{4}(\theta)\mathrm d\theta$ very easily.
$$\begin{align}2\int_{0}^{\frac{\pi}{2}}\sin^{4}(\theta)\mathrm d\theta&=2\int_{0}^{\frac{\pi}{2}}\sin^{2}\theta(1-\cos^{2}\theta)\mathrm d\theta\\&=2\int_{0}^{\frac{\pi}{2}}\sin^{2}\theta\mathrm d\theta-2\int_{0}^{\frac{\pi}{2}}\sin^{2}\theta×\cos^{2}\theta\,\mathrm d\theta\end{align}$$
Now, the integral became very easy after this step.
But I am having a small doubt in this process.
When I am substituting $$x=\sin^{2}\theta$$ I am getting $2$ values of $\theta$ for $$\sin^{2}\theta=1$$ which are $+\frac{\pi}{2}$ and $-\frac{\pi}{2}$.
But why should I consider only $+\frac{\pi}{2}$ and neglect $-\frac{\pi}{2}$?
I discussed this integral with many of my lecturers, but they are also unable to guide me in my doubt.
Please help me out with the logic.