Linear Partial Fractions

Adding fractions combines them over a common denominator. Partial fractions runs that in reverse: a fraction with a factored denominator is split back into simpler fractions, each of which integrates to a logarithm.

The decomposition

To find the constants, multiply both sides by Q(x)Q(x). The result, P(x)=A(a2x+b2)+B(a1x+b1)P(x) = A(a_2x + b_2) + B(a_1x + b_1), is called the basic equation. Both sides are polynomials that agree everywhere except possibly at the two zeros, so they agree there too. Substituting the zero of a1x+b1a_1x + b_1 makes the BB term 0 and gives AA, and the other zero gives BB.
A factor written with xx last, such as 4−x4 - x, has derivative −1-1. Its integral is ∫dx4−x=−ln⁡∣4−x∣+C\int \frac{dx}{4 - x} = -\ln|4 - x| + C.

Before decomposing

Two checks come first. If the numerator is a constant multiple of the derivative of the denominator, a substitution finishes the integral at once. And if the numerator's degree is at least the denominator's, divide first and decompose only the remainder over the divisor.