Partial Fraction Decomposition Calculator
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
Step-by-step solution
- Denominator factors: (x − 1) (x + 2).
- Set up: 3x + 5 over the denominator equals A(x − 1) + B(x + 2).
- Multiply both sides by the full denominator, then match the coefficients of each power of x.
- Solve the 2 equations: A = 83, B = 13.
- 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.
How to use the Partial Fractions
- Type your numbers into the boxes above.
- Press Calculate (or hit Enter).
- Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
- Use Copy answer to paste the result into your homework or notes.
Formula and method
| Distinct factors | N / ((x−a)(x−b)) = A/(x−a) + B/(x−b) |
|---|---|
| Repeated factor | N / (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)
- Denominator factors: (x − 1) (x + 2).
- Set up: 3x + 5 over the denominator equals A(x − 1) + B(x + 2).
- Multiply both sides by the full denominator, then match the coefficients of each power of x.
- Solve the 2 equations: A = 83, B = 13.
- 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)
- Denominator factors: (x − 1)2 (x + 2).
- Set up: x2 + 1 over the denominator equals A(x − 1) + B(x − 1)2 + C(x + 2).
- Multiply both sides by the full denominator, then match the coefficients of each power of x.
- Solve the 3 equations: A = 49, B = 23, C = 59.
- 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
- Denominator factors: (x − 1) (x + 1).
- The numerator's degree (3) is not smaller than the denominator's (2), so divide first. Quotient: x; remainder: x.
- Set up: x over the denominator equals A(x − 1) + B(x + 1).
- Multiply both sides by the full denominator, then match the coefficients of each power of x.
- Solve the 2 equations: A = 12, B = 12.
- 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
- Denominator factors: (x + 1) (x − 2).
- Set up: 5x − 3 over the denominator equals A(x + 1) + B(x − 2).
- Multiply both sides by the full denominator, then match the coefficients of each power of x.
- Solve the 2 equations: A = 83, B = 73.
- 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
Fraction Calculator
Free fraction calculator. Add, subtract, multiply and divide fractions and mixed numbers, with step-by-step working, a bar-model picture and the decimal answer.
Simplify Fractions
Reduce any fraction to its simplest form. See the GCF used, the division steps and a before-and-after picture.
GCF Calculator
Find the greatest common factor, also called GCD or HCF, of two or more numbers. Shows prime factors and a Venn diagram.
Calculators are for learning and general use. If a result matters (an exam, a build, a purchase), double-check it. Read the disclaimer.