Find the following integral by first resolving the integrand into its partial fractions.

\[ \int \frac{x^3 + x^2 + x + 2}{(x+1)(x+2)(x+3)} \, dx \]