You need to simplify the integrand using long division since its not a proper fraction. When you do the long division, you get something of the form ax+b, plus a remainder. It is from that remainder that you get the partial fraction decomposition.
Does this make sense?