Write the integrand as \( \frac{\sin x + \cos x}{\sqrt{\sin x \cos x}} \) and put \( t = \sin x - \cos x \). Then \( \sin x \cos x = \frac{1 - t^2}{2} \) and the limits become \( -1 \) to \( 1 \).
Step 1: Rewrite the integrand:
Let \( I = \displaystyle\int_0^{\pi/2}\left(\sqrt{\tan x} + \sqrt{\cot x}\right)dx \). Write tangent and cotangent in terms of sine and cosine:
\[ \sqrt{\tan x} + \sqrt{\cot x} = \frac{\sin x}{\sqrt{\sin x \cos x}} + \frac{\cos x}{\sqrt{\sin x \cos x}} = \frac{\sin x + \cos x}{\sqrt{\sin x \cos x}} \]
Step 2: Choose a substitution:
The numerator \( \sin x + \cos x \) is the derivative of \( \sin x - \cos x \). So let
\[ t = \sin x - \cos x, \qquad dt = (\cos x + \sin x)\,dx \]
Step 3: Express sin x cos x in t:
Square the substitution: \( t^2 = \sin^2 x + \cos^2 x - 2\sin x\cos x = 1 - 2\sin x\cos x \).
\[ \sin x \cos x = \frac{1 - t^2}{2} \]
Step 4: Change the limits:
When \( x = 0 \): \( t = 0 - 1 = -1 \).
When \( x = \dfrac{\pi}{2} \): \( t = 1 - 0 = 1 \).
Step 5: Evaluate the integral:
\[ I = \int_{-1}^{1}\frac{dt}{\sqrt{\dfrac{1 - t^2}{2}}} = \sqrt{2}\int_{-1}^{1}\frac{dt}{\sqrt{1 - t^2}} \]
\[ I = \sqrt{2}\left[\sin^{-1} t\right]_{-1}^{1} = \sqrt{2}\left(\frac{\pi}{2} + \frac{\pi}{2}\right) = \pi\sqrt{2} \]
Final Answer:
The value of the integral is \( \pi\sqrt{2} \), which proves the result.
\[ \boxed{\int_0^{\pi/2}\left(\sqrt{\tan x} + \sqrt{\cot x}\right)dx = \pi\sqrt{2}} \]