Partial Fraction Decomposition, Explained

After reading this you can split any proper rational expression into a sum of simple fractions by hand, check the result, and recognize the standard shapes an integral or an inverse Laplace transform needs.

What partial fraction decomposition does

A rational expression is one polynomial divided by another, like (3*x + 5)/(x^2 - 1). Partial fraction decomposition rewrites it as a sum of fractions whose denominators are the factors of the original denominator. For the example above the answer is

\frac{3x + 5}{x^2 - 1} = \frac{4}{x - 1} - \frac{1}{x + 1}

Both sides are equal for every x except 1 and -1, where the denominator is zero. You can confirm the split at a test point: at x = 0 the left side is 5/(-1) = -5, and the right side is 4/(-1) - 1/1 = -4 - 1 = -5. They match.

The pieces on the right are easy to work with. Each has a linear denominator, so each integrates to a logarithm and each has a known inverse Laplace transform. That is the whole point: trade one hard fraction for a sum of textbook fractions.

When to use it, and when not to

Reach for decomposition when you need to integrate a rational function, invert a Laplace transform, or sum a telescoping series. In all three cases the simple fractions are the form the next step expects.

Two conditions must hold before you start. First, the fraction must be proper: the numerator degree must be strictly less than the denominator degree. (3*x + 5)/(x^2 - 1) is proper because 1 < 2. Second, you must be able to factor the denominator. If it will not factor over the reals, you keep an irreducible quadratic factor and handle it with a linear numerator.

If the numerator degree is greater than or equal to the denominator degree, do polynomial long division first. For example (x^2)/(x^2 - 1) becomes 1 + 1/(x^2 - 1), and only the remainder 1/(x^2 - 1) gets decomposed.

The forms you set up

The shape of the decomposition follows the factored denominator. Each factor contributes a specific set of terms with unknown constants on top.

Distinct linear factor (x - a)
Contributes one term \frac{A}{x - a}.
Repeated linear factor (x - a)^m
Contributes m terms: \frac{A_1}{x - a} + \frac{A_2}{(x - a)^2} + \cdots + \frac{A_m}{(x - a)^m}.
Irreducible quadratic (x^2 + bx + c)
Contributes \frac{Bx + C}{x^2 + bx + c}, a linear numerator over the quadratic.
Repeated quadratic (x^2 + bx + c)^k
Contributes one such term for each power from 1 to k.

Count your unknowns against the numerator degree. A proper fraction over a degree n denominator always produces exactly n unknown constants, so the linear system you solve is square.

The formula and the intuition

For distinct linear factors there is a direct shortcut called the cover-up method (also the Heaviside cover-up). Write the fraction over the fully factored denominator

\frac{P(x)}{(x - a_1)(x - a_2)\cdots(x - a_n)} = \sum_{i=1}^{n} \frac{A_i}{x - a_i}

Here P(x) is the numerator, the a_i are the distinct roots of the denominator, and each A_i is the constant you want. The value of A_i is

A_i = \left. \frac{P(x)}{\prod_{j \ne i}(x - a_j)} \right|_{x = a_i}

In words: cover the factor (x - a_i) in the original denominator, then evaluate what is left at x = a_i. The intuition is that multiplying both sides by (x - a_i) and setting x = a_i kills every other term, leaving A_i alone.

Worked example: the demo expression

Decompose (3*x + 5)/(x^2 - 1)

  1. Factor the denominator: x^2 - 1 = (x - 1)(x + 1). Both factors are linear and distinct.
  2. Set up the form: \frac{3x + 5}{(x - 1)(x + 1)} = \frac{A}{x - 1} + \frac{B}{x + 1}.
  3. Find A by cover-up. Cover (x - 1) and evaluate at x = 1: A = \frac{3(1) + 5}{1 + 1} = \frac{8}{2} = 4.
  4. Find B. Cover (x + 1) and evaluate at x = -1: B = \frac{3(-1) + 5}{-1 - 1} = \frac{2}{-2} = -1.
  5. Write the result: \frac{4}{x - 1} - \frac{1}{x + 1}.

Check by clearing denominators. Combine the right side over (x-1)(x+1): the numerator is 4(x + 1) - 1(x - 1) = 4x + 4 - x + 1 = 3x + 5. That is the original numerator, so the split is correct.

The original fraction over a range where it is smooth. Away from the poles at x = 1 and x = -1 it behaves like a gentle decreasing curve, and the two partial fractions add up to exactly these values.

Explore the coefficients

For the family (p*x + q)/(x^2 - 1), the decomposition is always A/(x-1) + B/(x+1) with A = (p + q)/2 and B = (q - p)/2. With p = 3 and q = 5 you get A = 4 and B = -1.

Reading and interpreting the output

Read each term as a self-contained piece of the whole. A term \frac{4}{x - 1} tells you the function blows up near x = 1 with residue 4. In integration that term contributes 4\ln|x - 1|. In an inverse Laplace transform, a factor like \frac{4}{s - 1} corresponds to 4e^{t}.

A quadratic term \frac{Bx + C}{x^2 + 4} splits into a piece that integrates to a logarithm (the Bx part) and a piece that integrates to an arctangent (the C part). Seeing the numerator degree helps you predict the function type before you compute anything.

The constants also carry a sanity check. For a proper fraction, the sum of the residues at simple linear poles often relates to the leading behavior. Here A + B = 4 - 1 = 3, which matches the coefficient of x in the numerator, since the denominator has no x term.

Common mistakes

The errors below account for most wrong answers.

  • Skipping long division. Decomposing an improper fraction without first dividing gives a system with no consistent solution. Divide until the remainder is proper.
  • Forgetting powers on repeated factors. For (x - 2)^2 you need both \frac{A}{x - 2} and \frac{B}{(x - 2)^2}. Using only one term leaves the system underdetermined.
  • Using a constant over a quadratic. An irreducible quadratic needs a full linear numerator Bx + C, not just C.
  • Sign slips when clearing denominators. Always verify at one test point, as done above with x = 0 giving -5 on both sides.

To decide whether a quadratic is irreducible, check its discriminant. For x^2 + bx + c the value b^2 - 4c \lt 0 means no real roots, so keep it as a quadratic factor. The Quadratic solver reports the discriminant directly.

Related tools

Decomposition starts with a factored denominator, so a few other tools pair naturally with this one. Use the Polynomial Toolkit to factor the denominator or to carry out the long division step when the fraction is improper. When the denominator is a general polynomial, the Equation Solver finds its roots so you know which linear factors appear. If your decomposition produces logarithm terms after integration, the Exponent & Logarithm Calculator handles the arithmetic. Solving the linear system for the unknown constants by hand is straightforward for small cases, but for many unknowns the Matrix Calculator can solve the system directly.

Frequently asked questions

What if the denominator has complex roots?

Group each conjugate pair into a real irreducible quadratic and use a Bx + C numerator. This keeps the whole decomposition in real numbers, which is what integration and Laplace tables expect. You can convert to complex partial fractions separately with the Complex Number Calculator if you prefer.

Why does the numerator over a quadratic have degree one?

The numerator over any factor must have degree one less than that factor. A linear factor takes a constant (degree 0), and an irreducible quadratic takes a linear numerator (degree 1). That rule keeps the total number of unknowns equal to the denominator degree.

How do I check my answer quickly?

Pick a value of x that is not a root, plug it into both the original fraction and your sum, and confirm they agree. For the demo, x = 0 gives -5 on each side.

Can I decompose if I only have decimal roots?

Yes. The cover-up method works with numerical roots the same way it works with exact ones, though rounding can accumulate. Keep at least four significant digits, and verify at a test point to catch drift.

Does the order of the terms matter?

No. The decomposition is a sum, so \frac{4}{x-1} - \frac{1}{x+1} and -\frac{1}{x+1} + \frac{4}{x-1} are the same result. The constants are unique for a given proper fraction.