3

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.

Integreek
  • 8,530
Dev
  • 1,260
  • 1
    Please try to make the titles of your questions more informative. For example, Why does $a<b$ imply $a+c<b+c$? is much more useful for other users than A question about inequality. See also the section on titles in How to ask a good question. (The part entitled "Make your title your question" is especially relevant to this.) – Martin Brandenburg Feb 05 '25 at 16:45
  • But what is the relation between $x$ and $\theta$ ? Why can't we take negative values of $\theta$. Yes of course we can't take negative values of $x$ – Dev Feb 05 '25 at 16:52
  • I think it's worth to mention Beta function after all. – Quý Nhân Feb 05 '25 at 17:00
  • So as far as considering the answers of all the members what I understood is that we can take anyone among $-\frac{\pi}{2}$ and $+\frac{\pi}{2}$. Am I correct or wrong ? Do confirm – Dev Feb 05 '25 at 18:19
  • Letting $\sqrt{x}=\sin \theta$ avoids having $\theta=-\pi/2$. – Ali Olaikhan Feb 06 '25 at 09:01
  • Ok. Then you are saying to assume $\sqrt{x}=\sin(\theta)$ to avoid these controversy of $+\frac{\pi}{2}$ and $-\frac{\pi}{2}$ @AliShadhar – Dev Feb 06 '25 at 09:04
  • Yes. I faced your issue couple times before by the way. – Ali Olaikhan Feb 06 '25 at 09:07
  • Ok. Thank you very much @AliShadhar – Dev Feb 06 '25 at 09:08
  • There is no controversy. Please see this for why your method above and beeclu's method are correct. – Accelerator Feb 06 '25 at 09:22
  • No, the upper bound can only be $\frac\pi2$ if the lower bound is zero. If you want $-\frac\pi2$ to be one of the bounds, either let $0$ be the upper bound or $-\pi$ the lower bound. In general, the lower and the upper bounds can be any of $\left(0,\frac\pi2\right)$, $\left(\frac\pi2,\pi\right)$, $\left(2\pi,\frac{5\pi}2\right)\cdots$, $\left(-\frac\pi2,0\right)$, $\left(-\pi,-\frac\pi2\right)$, $\left(\frac{3\pi}2,2\pi\right)\cdots$ respectively as mentioned in my answer. – Integreek Feb 06 '25 at 13:52
  • Is your confusion clear, @Mathematics? – Integreek Feb 07 '25 at 08:58
  • Yes it's clear now @MathGuy – Dev Feb 08 '25 at 07:46

2 Answers2

3

I don't see why we can't consider $-\pi/2$. Then our integral becomes $$ 2\int_0^{-\pi/2} \frac{\sin^4\theta\sin\theta\cos\theta}{\sqrt{\sin^2\theta\cos^2\theta}} = -2\int_{-\pi/2}^0 \frac{\sin^4\theta\sin\theta\cos\theta}{\sqrt{\sin^2\theta\cos^2\theta}}. $$When $\theta$ ranges from $-\pi/2$ to $0$, we have that $\sin\theta$ is negative. However, when we square $\sin$ and take a square root, it becomes positive. Thus our integral becomes $$ 2\int_{-\pi/2}^0 \sin^4\theta. $$And it shouldn't be hard to convince yourself this value is the same as your integral.

beeclu
  • 628
  • 3
  • 9
  • The expression obtained after taking a square root may be negative also. The function $\sqrt x$ is defined to have range $[0,\infty)$, but its word equivalent 'square root' when non-zero can be positive or negative. – Integreek Feb 05 '25 at 17:32
  • @MathGuy I am not sure what you mean. I am using the fact that on $[-\pi/2, 0]$ we have the identity $\sin\theta\cos\theta = -\sqrt{\sin^2\theta\cos^2\theta}$ to cancel out the $-2$. – beeclu Feb 05 '25 at 17:35
  • I was talking in reference to your statement "when we square a $\sin$ and take a square root, it becomes positive". – Integreek Feb 05 '25 at 18:19
  • @MathGuy, I think the statement of Beeclu is correct because for example $\sqrt{\sin^{2}(\frac{-\pi}{2})}=1$ because we know that $\sin(\frac{-\pi}{2})=-1$ but when we square it and take the square root then the value is $1$ because $\sqrt{(-1)^2}=\sqrt{1}=|1|=1$. – Dev Feb 05 '25 at 18:25
  • @Mathematics if you write it using the $\sqrt{}$ symbol, then the result obtained is always non-negative, but if the term 'square root' is used, it can be both. For example, the square root of $4$ is $2$ as well as $-2$. I may be wrong, but I have heard the usage of the term 'square root' in this manner only. For the square root function, yes I agree that its range is the set of non-negative reals. – Integreek Feb 05 '25 at 18:29
  • @MathGuy, no that is not the fact. If you solve the equation $x^2=4$ then the values of $x$ are ${+2,-2}$ but $\sqrt{4}=+2$ and not $-2$. – Dev Feb 05 '25 at 18:37
  • @Mathematics Ok thanks, I understood my mistake. I was confused between 'square root' and $\sqrt{}$. – Integreek Feb 06 '25 at 07:26
2

Note that whenever we make a substitution to evaluate an integral, it must be bijective so that back-substitution can be done. Your substitution $x=\sin^2\theta$ can be broken down into $2$ cases as follows so that it is bijective:

  • $\sqrt x=\sin\theta$, then the domain of $\theta$ can be $\left[2n\pi,2n\pi+\frac\pi2\right]$ or $\left[2n\pi+\frac\pi2,(2n+1)\pi\right]$ for $n\in\mathbb Z$. A convenient choice can be $\left[0,\frac\pi2\right]$
  • $-\sqrt x=\sin\theta$, then the domain of $\theta$ can be $\left[2n\pi-\frac\pi2,2n\pi\right]$ or $\left[(2n+1)\pi,(2n+1)\pi+\frac\pi2\right]$ for $n\in\mathbb Z$. A convenient choice can be $\left[-\frac\pi2,0\right]$.

So that's why if $0$ is the lower bound, the upper bound has to be $\frac\pi2$. If you want to involve $0$ and $-\frac\pi2$, the bounds would be $\displaystyle\int_{-\frac\pi2}^0\cdots\mathrm d\theta$.

Integreek
  • 8,530