Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Partial Fraction Decomposition Calculator

Denominator: choose Two factors (x − a)(x − b), numerator qx + r or Three factors (x − a)(x − b)(x − c), numerator px² + qx + r. Prefilled example: 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. Prefilled example: 2.

q (coefficient of x): enter a number. Prefilled example: -3.

r (constant term): enter a number. Prefilled example: 7.

a in (x − a): enter a number. Prefilled example: 2.

b in (x − b): enter a number. Prefilled example: -1.

c in (x − c) (three factors only): enter a number. Prefilled example: 3.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Denominator: choose Two factors (x − a)(x − b), numerator qx + r or Three factors (x − a)(x − b)(x − c), numerator px² + qx + r.
  2. p (coefficient of x² in the numerator; three factors only): enter a number.
  3. q (coefficient of x): enter a number.
  4. r (constant term): enter a number.
  5. a in (x − a): enter a number.
  6. b in (x − b): enter a number.
  7. c in (x − c) (three factors only): enter a number.
  8. 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

  1. A2={q×a+ka−bif m=2p×a2+q×a+k(a−b)×(a−c)otherwise+0
Symbols used in the formula
SymbolMeaning
mDenominator (2: Two factors (x − a)(x − b), numerator qx + r; 3: Three factors (x − a)(x − b)(x − c), numerator px² + qx + r)
pp (coefficient of x² in the numerator; three factors only)
qq (coefficient of x)
kr (constant term)
aa in (x − a)
bb in (x − b)
cc in (x − c) (three factors only)
A2A, the numerator over (x − a)

Worked example

DenominatorThree 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
  1. A2=2×22+−3×2+7(2−−1)×(2−3)+0=−3

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).

Related calculators