Partial Fraction Decomposition Calculator

Quick answerPartial fraction decomposition rewrites a rational expression as a sum of simpler fractions. Factor the denominator, write one term per factor (with an unknown constant on top), multiply out and match coefficients. For (3x+5)/((x−1)(x+2)) the result is 8/3 over (x−1) plus 1/3 over (x+2).

Write the denominator as bracketed linear factors, e.g. (x-1)(x+2) or (x+1)^2(x-3). Quadratic factors are not supported yet.

3x + 5 over (x − 1)(x + 2) = 8/3(x − 1) + 1/3(x + 2)

  • Constants: A = 8/3, B = 1/3
Partial fraction decomposition3x + 5 ÷ (x − 1)(x + 2)↓8/3 / (x − 1) + 1/3 / (x + 2)

Step-by-step solution

  1. Denominator factors: (x − 1) (x + 2).
  2. Set up: 3x + 5 over the denominator equals A(x − 1) + B(x + 2).
  3. Multiply both sides by the full denominator, then match the coefficients of each power of x.
  4. Solve the 2 equations: A = 83, B = 13.
  5. Write the answer: 8/3(x − 1) + 1/3(x + 2).

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the Partial Fractions. A numerator and a factored denominator → Set up unknowns, match coefficients, solve → The sum of simpler fractionsWhat you get from the Partial FractionsYOU ENTERA numerator and afactored denominatorTHE CALCULATORSet up unknowns,match coefficients,solveYOU GETThe sum of simplerfractions

How to use the Partial Fractions

  1. Type your numbers into the boxes above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Distinct factorsN / ((x−a)(x−b)) = A/(x−a) + B/(x−b)
Repeated factorN / (x−a)² = A/(x−a) + B/(x−a)²

Worked examples

Example 1: 3x+5 ÷ (x-1)(x+2)

3x + 5 over (x − 1)(x + 2) = 8/3(x − 1) + 1/3(x + 2)

  1. Denominator factors: (x − 1) (x + 2).
  2. Set up: 3x + 5 over the denominator equals A(x − 1) + B(x + 2).
  3. Multiply both sides by the full denominator, then match the coefficients of each power of x.
  4. Solve the 2 equations: A = 83, B = 13.
  5. Write the answer: 8/3(x − 1) + 1/3(x + 2).

Example 2: x^2+1 ÷ (x-1)^2(x+2)

x2 + 1 over (x − 1)2(x + 2) = 4/9(x − 1) + 2/3(x − 1)2 + 5/9(x + 2)

  1. Denominator factors: (x − 1)2 (x + 2).
  2. Set up: x2 + 1 over the denominator equals A(x − 1) + B(x − 1)2 + C(x + 2).
  3. Multiply both sides by the full denominator, then match the coefficients of each power of x.
  4. Solve the 3 equations: A = 49, B = 23, C = 59.
  5. Write the answer: 4/9(x − 1) + 2/3(x − 1)2 + 5/9(x + 2).

Example 3: x^3 ÷ (x-1)(x+1)

x3 over (x − 1)(x + 1) = x + 1/2(x − 1) + 1/2(x + 1)

Show the steps
  1. Denominator factors: (x − 1) (x + 1).
  2. The numerator's degree (3) is not smaller than the denominator's (2), so divide first. Quotient: x; remainder: x.
  3. Set up: x over the denominator equals A(x − 1) + B(x + 1).
  4. Multiply both sides by the full denominator, then match the coefficients of each power of x.
  5. Solve the 2 equations: A = 12, B = 12.
  6. Write the answer: x + 1/2(x − 1) + 1/2(x + 1).

Example 4: 5x-3 ÷ (x+1)(x-2)

5x − 3 over (x + 1)(x − 2) = 8/3(x + 1) + 7/3(x − 2)

Show the steps
  1. Denominator factors: (x + 1) (x − 2).
  2. Set up: 5x − 3 over the denominator equals A(x + 1) + B(x − 2).
  3. Multiply both sides by the full denominator, then match the coefficients of each power of x.
  4. Solve the 2 equations: A = 83, B = 73.
  5. Write the answer: 8/3(x + 1) + 7/3(x − 2).

Practice problems

Try each one on paper first, then open the answer.

Problem 1: 7x+1 ÷ (x-2)(x+3)

7x + 1 over (x − 2)(x + 3) = 3(x − 2) + 4(x + 3)

Problem 2: 2x+4 ÷ (x-1)^2

2x + 4 over (x − 1)2 = 2(x − 1) + 6(x − 1)2

Problem 3: 4x^2+x+1 ÷ (x-1)(x+1)(x+2)

4x2 + x + 1 over (x − 1)(x + 1)(x + 2) = 1(x − 1) − 2(x + 1) + 5(x + 2)

Frequently asked questions

What is partial fraction decomposition used for?

It splits a complicated rational function into simple pieces that are easy to integrate or to invert in Laplace transforms.

What if the numerator degree is too high?

If the numerator degree is not smaller than the denominator degree, divide first. The calculator does this automatically and shows the polynomial part.

Does it handle quadratic factors?

Not yet. This version covers distinct and repeated linear factors. Irreducible quadratics need a linear numerator (Ax + B) and are planned for a later update.

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.