The Partial-Fraction Decomposer: Splitting to Integrate
One awkward rational function is really a sum of simple ones hiding in disguise — unmask them and the integral falls out.
Running fraction addition backwards
You know that 1⁄(x−1) − 1⁄(x+1), placed over a common denominator, collapses into a single fraction with denominator (x−1)(x+1) = x²−1. Partial-fraction decomposition is the reverse trip: start from the messy combined fraction and recover the simple pieces.
Why bother? Because you cannot integrate 1⁄(x²−1) at a glance, but you can integrate each of 1⁄(x−1) and 1⁄(x+1) instantly — each gives a logarithm.
One fraction per factor
Factor the denominator into distinct linear pieces. Each factor (x − r) contributes one term of the form (a constant) ÷ (x − r). The whole rational function equals the sum of these terms — once we find the right constants.
The cover-up method
To find the constants, clear denominators to get a polynomial identity, then substitute the value of x that makes one factor zero. Each such substitution kills all but one unknown, revealing it immediately. This shortcut is often called the cover-up method.
- Write \( \dfrac{1}{(x-1)(x+1)} = \dfrac{A}{x-1} + \dfrac{B}{x+1} \).
- Clear denominators: \( 1 = A(x+1) + B(x-1) \).
- Let x = 1: \( 1 = A(2) \Rightarrow A = \tfrac12 \). Let x = −1: \( 1 = B(-2) \Rightarrow B = -\tfrac12 \).
- So the fraction equals \( \tfrac12\cdot\dfrac{1}{x-1} - \tfrac12\cdot\dfrac{1}{x+1} \), and integrating each term gives \( \tfrac12\ln|x-1| - \tfrac12\ln|x+1| + C \).
- Factor the denominator: \( x^2 - x - 2 = (x - 2)(x + 1) \).
- Set \( \dfrac{5x - 4}{(x-2)(x+1)} = \dfrac{A}{x-2} + \dfrac{B}{x+1} \), so \( 5x - 4 = A(x+1) + B(x-2) \).
- Let x = 2: \( 10 - 4 = A(3) \Rightarrow A = 2 \). Let x = −1: \( -5 - 4 = B(-3) \Rightarrow B = 3 \).
- Check: \( 2(x+1) + 3(x-2) = 5x - 4 \). ✓
Check your understanding
- Partial-fraction decomposition reverses fraction addition, splitting one rational function into simpler pieces.
- For distinct linear factors, write one term A/(x − r) per factor and solve for the constants.
- The cover-up method: clear denominators, then substitute each root to isolate one constant at a time.
- Each simple piece a/(x − r) integrates to a ln|x − r|, turning a hard integral into a sum of logarithms.
- The fraction must be proper (numerator degree < denominator degree); otherwise do long division first.
- Example: 1/(x² − 1) = ½/(x − 1) − ½/(x + 1), so its integral is ½·ln|(x − 1)/(x + 1)| + C.