Partial Fraction Decomposition Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter the numerator's coefficients and the roots of the denominator's distinct linear factors (x − a)(x − b)(x − c).
Result
A, the numerator over (x − a)
B, the numerator over (x − b)
- C, the numerator over (x − c)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Denominator: choose Two factors (x − a)(x − b), numerator qx + r or Three factors (x − a)(x − b)(x − c), numerator px² + qx + r.
- p (coefficient of x² in the numerator; three factors only): enter a number.
- q (coefficient of x): enter a number.
- r (constant term): enter a number.
- a in (x − a): enter a number.
- b in (x − b): enter a number.
- c in (x − c) (three factors only): enter a number.
- Read the result: A, the numerator over (x − a); the panel also shows B, the numerator over (x − b) and C, the numerator over (x − c).
How this calculator works
When the denominator is a product of distinct linear factors and the numerator has a lower degree, N(x) ÷ ((x − a)(x − b)(x − c)) = A/(x − a) + B/(x − b) + C/(x − c).
Each coefficient comes from the Heaviside cover-up method: cover the factor (x − a) and evaluate the rest at x = a, so A = N(a) ÷ ((a − b)(a − c)), and likewise for B and C. With two factors, A = N(a) ÷ (a − b) and B = N(b) ÷ (b − a).
Repeated factors, irreducible quadratic factors and numerators of higher degree need further steps (long division first) and are not handled here. Equal roots show a dash.
The formula
| Symbol | Meaning |
|---|---|
| Denominator (2: Two factors (x − a)(x − b), numerator qx + r; 3: Three factors (x − a)(x − b)(x − c), numerator px² + qx + r) | |
| p (coefficient of x² in the numerator; three factors only) | |
| q (coefficient of x) | |
| r (constant term) | |
| a in (x − a) | |
| b in (x − b) | |
| c in (x − c) (three factors only) | |
| A, the numerator over (x − a) |
Worked example
| Denominator | Three factors (x − a)(x − b)(x − c), numerator px² + qx + r |
|---|---|
| p (coefficient of x² in the numerator; three factors only) | 2 |
| q (coefficient of x) | -3 |
| r (constant term) | 7 |
| a in (x − a) | 2 |
| b in (x − b) | -1 |
| c in (x − c) (three factors only) | 3 |
| B, the numerator over (x − b) | 1 |
|---|---|
| C, the numerator over (x − c) | 4 |
A, the numerator over (x − a) -3
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the partial fraction decomposition of (x + 5) ÷ ((x − 1)(x + 2))?
2/(x − 1) − 1/(x + 2): A = (1 + 5) ÷ (1 + 2) = 2 and B = (−2 + 5) ÷ (−2 − 1) = −1.
What about (2x² − 3x + 7) ÷ ((x − 2)(x + 1)(x − 3))?
−3/(x − 2) + 1/(x + 1) + 4/(x − 3).