First, let's expand the integrand:
$$\int(x+1)^{2}\left(1-\frac{1}{x}\right) dx = \int(x^2 + 2x + 1)\left(1-\frac{1}{x}\right) dx$$
Now, distribute the terms:
$$\int(x^2 + 2x + 1 - x - 2 - \frac{1}{x}) dx = \int(x^2 + x - 1 - \frac{1}{x}) dx$$
Now, we can
Show more…