The value of \(\int\left(\sqrt{x}+\displaystyle\frac{1}{\sqrt{x}}\right)^2 dx\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{x^2}{2}+\log|x|+2x+C\), (where C is constant of integration)
Expanding the square, using \((a + b)^2 = a^2 + 2ab + b^2\):
\( \displaystyle \left(\sqrt{x}+\frac{1}{\sqrt{x}}\right)^2 = x + 2\sqrt{x}\cdot\frac{1}{\sqrt{x}} + \frac{1}{x} \)
\( \displaystyle = x + 2 + \frac{1}{x} \)
Integrating term by term:
\( \displaystyle \int\left(x + 2 + \frac{1}{x}\right)dx = \frac{x^2}{2} + 2x + \log|x| + C \)
which is \(\frac{x^2}{2}+\log|x|+2x+C\).