if the degree of the numerator is greater than or equal to the degree of the denominator, we must divide before doing partial fractions.

the highest power in the top is the same as that of the bottom. thus we must first divide the numerator by the denominator by long division of polynomials, or alternatively, note that

so your integral is

integrating 1 is easy, use partial fractions for the latter part