Suppose we have a fraction of polynomials to be integrated as below:
First set up the partial fractions as follows.
Since the highest degree term in the polynomial in P(x) is 2 x⁶ and the highest degree term in Q(x) is x⁵, quotient is 2 x. Now split the fraction into simpler fractions with each term containing only one factor of Q(x) or its powers. Then in each term, select the expression in the numerator as a coefficient multiplied by the derivative of the denominator.
The main idea is the the partial fractions should be such that the numerator is in the format of the derivative of the factor in the denominator. Before that, the denominator must be split in to smallest factors.