For partial fractions, if you have a repeated factor such as in the denominator, you must have degrees 1 through in your partial fraction sum.

This is really thorough: https://www.mathsisfun.com/algebra/partial-fractions.html

Example

Use partial fractions on the integrand

Finish the integral