Integrate (5x^2 + 3x - 2)/(x^3 + 2x^2)

Use partial fractions to see that you have

-1/x^2 + 2/x + 3/(x+2)

Now it's a piece of cake, right?