The value of the definite integral \(\int_{0}^{\frac{\pi}{2}}\displaystyle\sqrt{\tan x}\,dx\) is
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(\displaystyle\frac{\pi}{\sqrt{2}}\)
Let
\( \displaystyle I = \int_{0}^{\pi/2}\sqrt{\tan x}\,dx \qquad (1) \)
By the property \(\int_{0}^{a} f(x)\,dx = \int_{0}^{a} f(a-x)\,dx\), and \(\tan\left(\frac{\pi}{2}-x\right) = \cot x\):
\( \displaystyle I = \int_{0}^{\pi/2}\sqrt{\cot x}\,dx \qquad (2) \)
Adding (1) and (2):
\( \displaystyle 2I = \int_{0}^{\pi/2}\left(\sqrt{\frac{\sin x}{\cos x}}+\sqrt{\frac{\cos x}{\sin x}}\right)dx \)
\( \displaystyle = \int_{0}^{\pi/2}\frac{\sin x+\cos x}{\sqrt{\sin x\cos x}}\,dx \)
Put \(t = \sin x - \cos x\). Then
\(dt = (\cos x + \sin x)\,dx\)
\(t^2 = 1 - 2\sin x\cos x\)
\( \displaystyle \sin x\cos x = \frac{1-t^2}{2} \)
The limits change: x = 0 gives t = −1, and \(x = \frac{\pi}{2}\) gives t = 1.
\( \displaystyle 2I = \int_{-1}^{1}\frac{dt}{\sqrt{(1-t^2)/2}} \)
\( \displaystyle = \sqrt{2}\int_{-1}^{1}\frac{dt}{\sqrt{1-t^2}} \)
\( \displaystyle = \sqrt{2}\Big[\sin^{-1}t\Big]_{-1}^{1} \)
\( \displaystyle = \sqrt{2}\left(\frac{\pi}{2}+\frac{\pi}{2}\right) = \sqrt{2}\,\pi \)
So
\( \displaystyle I = \frac{\sqrt{2}\,\pi}{2} = \frac{\pi}{\sqrt{2}} \)