I've tried to do long division with quickmath but didn't get a reasonable result. (I assume that I don't know the appropriate command).
If you are allowed to use a TI89 then you can do long divisions by propFrac(...). Instead of the three dots write the fraction. You find this command in the F2 Algebra menu.
then later you have:
The first is correct, but the latter is not.
Earboth's original decomposition is correct, and there is no need to use
partial fractions after this as we now have the sum of a polynomial and
a rational function who's numerator is a numeric multiple of the derivative
of the denominator, and so its integral can be written down immediately.