Integrate \((x - \frac{1}{x})^{2}\) with respect to x.
Answer Details
To integrate \((x-\frac{1}{x})^2\) with respect to x, we need to expand the square first:
$$(x-\frac{1}{x})^2 = x^2 - 2 + \frac{1}{x^2}$$
Now we can integrate term by term:
$$\int (x^2 - 2 + \frac{1}{x^2}) dx = \frac{x^3}{3} - 2x - \frac{1}{x} + c$$
where c is the constant of integration. Therefore, the answer is the option (D).