\(\int\displaystyle\left(x + \frac{1}{x}\right)^2 dx\) equals:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{x^3}{3} - \frac{1}{x} + 2x + c\)
Expanding the square first:
\( \displaystyle \left(x + \frac{1}{x}\right)^2 = x^2 + 2 + \frac{1}{x^2} \)
Integrating term by term with \(\int x^n\,dx = \frac{x^{n+1}}{n+1}\):
\( \displaystyle \int\left(x^2 + 2 + x^{-2}\right)dx = \frac{x^3}{3} + 2x + \frac{x^{-1}}{-1} + c \)
\( \displaystyle = \frac{x^3}{3} - \frac{1}{x} + 2x + c \)
The minus sign in \(-\frac{1}{x}\) comes from dividing by the new power −1.