Partial Fraction Decomposition Calculator
This Partial Fraction Decomposition Calculator splits a fraction of polynomials into a sum of simpler fractions, and shows the working line by line. The denominator is factorised first, and each factor gets its own fraction with an unknown number on top. Multiplying through by the denominator turns the problem into an identity, and the unknown numbers are found by putting in useful values of x and matching coefficients. Simpler fractions are much easier to integrate and to invert in Laplace transforms.
Step-by-step method
- Set up the problem.
- Write the form of the answer.
- Divide if the top is not smaller.
- Factorise the denominator.
- Write the fractions with unknown numbers.
- Multiply through by the denominator.
- Find the unknown numbers.
- Write the answer.
Formula: Partial Fractions for Linear Factors
Each linear factor of the denominator gets its own fraction with a number on top. Repeated factors get one fraction for each power, and quadratic factors that cannot be factorised get Ax + B on top.
Useful Tips to Remember
Check the degrees first: if the top is not smaller than the bottom, divide before splitting. Factorise the denominator completely, because every factor needs its own fraction. Putting in the root of each linear factor finds its number straight away, and matching coefficients finds the rest. Check the answer by adding the fractions back together.
Required knowledge
- How to factorise the denominator, covered in the Factoring Higher Degree Polynomials Calculator.
- How to divide polynomials, covered in the Polynomial Long Division Calculator.
- How to solve for each unknown number, covered in the Linear Equation Calculator.
Where Is Partial Fraction Decomposition Used?
Partial fractions turn one complicated fraction into several simple ones, which is the key step in many calculations. In calculus it is how rational functions are integrated, since each simple fraction integrates to a logarithm or an inverse tangent. Engineers use it to invert Laplace transforms when solving differential equations for circuits and control systems, and it also appears when summing series and in signal processing.
- Integrating rational functions in calculus
- Inverse Laplace transforms in engineering
- Control systems and transfer functions
- Telescoping sums of series
- Signal processing with z-transforms
Partial Fraction Decomposition Practice Problems
Example 1 splits \(\frac{3x + 5}{x^{2} + 3x + 2}\), whose denominator has two different linear factors, and Example 2 splits \(\frac{2x + 3}{(x - 1)^{2}}\), which has a repeated factor. Factorise, write the form and find the numbers. For two more free worked examples, check out the Partial Fraction Decomposition Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the form of the answer.
- Divide if the top is not smaller.
- Factorise the denominator.
- Write the fractions with unknown numbers.
- Multiply through by the denominator.
- Find the unknown numbers.
- Write the answer.
Formula
Formula: Partial Fractions for Linear Factors
Each linear factor of the denominator gets its own fraction with a number on top. Repeated factors get one fraction for each power, and quadratic factors that cannot be factorised get Ax + B on top.
Step 1
Step 1 - Set up the problem.
In this problem: We are writing \(\frac{3 x + 5}{x^{2} + 3 x + 2}\) as a sum of simpler fractions, one for each factor of the denominator.
Step 2
Step 2 - Write the form of the answer.
In this problem: Each factor of the denominator gives its own fraction. A linear factor \(x - a\) gives \(\frac{A}{x - a}\), a repeated factor \((x - a)^{2}\) gives \(\frac{A}{x - a} + \frac{B}{(x - a)^{2}}\), and a quadratic that cannot be factorised gives \(\frac{Ax + B}{x^{2} + px + q}\). The top must have a lower degree than the bottom.
Step 3
Step 3 - Divide if the top is not smaller.
In this problem: The top has degree 1, which is lower than the degree 2 of the bottom, so no division is needed.
Step 4
Step 4 - Factorise the denominator.
In this problem: Factorising the denominator, covered in the Factoring Higher Degree Polynomials Calculator, gives \(x^{2} + 3 x + 2 = \left(x + 2\right) \left(x + 1\right)\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Take out the common factor.
- Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
- Do the same again on what is left, until it cannot be broken down.
- Factor what is left.
- Write the polynomial as a product of its factors.
Depending on the polynomial, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The polynomial to factor is \(x^{2} + 3x + 2\). Factoring means writing it as a product of simpler polynomials.
Step 2
Step 2 - Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
In this problem: Look for a bracket that comes out of \(x^{2} + 3x + 2\).
Step 2a
Step 2a - List the numbers to try.
In this problem: Look at the last number, \(2\). The numbers that go into \(2\), both positive and negative, are \(\pm 1, \pm 2\). Try them in order until one gives \(0\).
Step 2b
Step 2b - Try \(x = 1\).
In this problem: Set \(x = 1\) in \(x^{2} + 3x + 2\). It gives \(6\), not \(0\), so \(x = 1\) is not a root.
Step 2c
Step 2c - Try \(x = -1\).
In this problem: Set \(x = -1\) in \(x^{2} + 3x + 2\). It gives \(0\), so \(x = -1\) is a root. One root is enough to carry on, so the rest of the list is not tested here.
Step 2d
Step 2d - Use the root to find a factor.
In this problem: Start from the root \(x = -1\) found in the test. Add \(1\) to both sides so that one side becomes \(0\). That leaves \(x + 1 = 0\), so the bracket \((x + 1)\) is \(0\) exactly at the root. A bracket like that always divides \(x^{2} + 3x + 2\) exactly (the Factor Theorem), so \((x + 1)\) is a factor.
Step 2e
Step 2e - Divide by the factor.
In this problem: Divide \(x^{2} + 3x + 2\) by \((x + 1)\). It gives \(x + 2\) with no remainder, so \(x^{2} + 3x + 2 = (x + 1)(x + 2)\), which splits it into two brackets.
Problem
Approach
Step-by-step method
- Set up the problem.
- Bring down the leading coefficient.
- Multiply by the divisor's number and add down each column.
- Read off the quotient and the remainder.
Step 1
Step 1 - Set up the problem.
In this problem: The table needs two things: a number for the corner, which comes from the divisor, and the coefficients of the dividend, which go along the top.
Step 1a
Step 1a - Find the number for the corner.
In this problem: The corner number is the value of \(x\) that makes the divisor zero: \(x + 1 = 0\) gives \(x = -1\). So \(-1\) goes in the corner.
Step 1b
Step 1b - Write down the coefficients of the dividend.
In this problem: The numbers in front of each power, in order, are \(1\), \(3\) and \(2\).
Step 1c
Step 1c - Draw the table.
In this problem: The corner number \(-1\) goes on the left, and the coefficients \(1\), \(3\) and \(2\) go along the top row. The row under them stays empty for now, it is where the multiplied numbers will go. The answers are written under the line, and the last column is fenced off because the number that ends up there is the remainder.
| \(-1\) | \(1\) | \(3\) | \(2\) |
Step 2
Step 2 - Bring down the leading coefficient.
In this problem: The leading coefficient \(1\) comes straight down to the bottom row.
| \(-1\) | \(1\) | \(3\) | \(2\) |
| \(1\) |
Step 3
Step 3 - Multiply by the divisor's number and add down each column.
In this problem: There are \(2\) columns left. For each one, the last number on the bottom row is multiplied by \(-1\), written in the next column, and added to the number above it.
Step 3a
Step 3a - Work through the second column.
In this problem: \(\left(-1\right) \times 1 = -1\) goes under \(3\), and \(3 + \left(-1\right) = 2\) goes on the bottom row.
| \(-1\) | \(1\) | \(3\) | \(2\) |
| \(-1\) | |||
| \(1\) | \(2\) |
Step 3b
Step 3b - Work through the third column.
In this problem: \(\left(-1\right) \times 2 = -2\) goes under \(2\), and \(2 + \left(-2\right) = 0\) goes on the bottom row.
| \(-1\) | \(1\) | \(3\) | \(2\) |
| \(-1\) | \(-2\) | ||
| \(1\) | \(2\) | \(0\) |
Step 4
Step 4 - Read off the quotient and the remainder.
In this problem: The last number on the bottom row, \(0\), is the remainder, and \(1\) and \(2\) are the coefficients of the quotient. Dividing by \(x + 1\) lowers every power by one, so the quotient starts at \(x\) instead of \(x^{2}\), giving \(x + 2\).
Final Answer
Step 3
Step 3 - Write the polynomial as a product of its factors.
In this problem: Putting all the factors together gives \((x + 1)(x + 2)\).
Final Answer
Step 5
Step 5 - Write the fractions with unknown numbers.
In this problem: Each factor gives its own fraction: \(\left(x + 2\right)\) is linear, so it gives one fraction and \(\left(x + 1\right)\) is linear, so it gives one fraction. This gives \(\frac{3 x + 5}{\left(x + 2\right) \left(x + 1\right)} = \frac{A}{x + 2} + \frac{B}{x + 1}\).
Step 6
Step 6 - Multiply through by the denominator.
In this problem: Multiplying both sides by \(\left(x + 2\right) \left(x + 1\right)\) clears every fraction and leaves \(3 x + 5 = A \left(x + 1\right) + B \left(x + 2\right)\). This must be true for every value of \(x\).
Step 7
Step 7 - Find the unknown numbers.
In this problem: The unknown numbers are found by choosing useful values of \(x\) and by matching coefficients, which gives \(A = 1,\; B = 2\).
Step 7a
Step 7a - Put x = -2.
In this problem: Putting \(x = -2\) makes \(x + 2\) zero, so every term with that factor disappears and leaves \(-1 = -1 A \;\Rightarrow\; A = 1\).
Step 7b
Step 7b - Put x = -1.
In this problem: Putting \(x = -1\) makes \(x + 1\) zero, so every term with that factor disappears and leaves \(2 = B \;\Rightarrow\; B = 2\).
Step 8
Step 8 - Write the answer.
In this problem: Putting the numbers into the fractions gives \(\frac{3 x + 5}{x^{2} + 3 x + 2} = \frac{1}{x + 2} + \frac{2}{x + 1}\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the form of the answer.
- Divide if the top is not smaller.
- Factorise the denominator.
- Write the fractions with unknown numbers.
- Multiply through by the denominator.
- Find the unknown numbers.
- Write the answer.
Formula
Formula: Partial Fractions for Linear Factors
Each linear factor of the denominator gets its own fraction with a number on top. Repeated factors get one fraction for each power, and quadratic factors that cannot be factorised get Ax + B on top.
Step 1
Step 1 - Set up the problem.
In this problem: We are writing \(\frac{2 x + 3}{x^{2} - 2 x + 1}\) as a sum of simpler fractions, one for each factor of the denominator.
Step 2
Step 2 - Write the form of the answer.
In this problem: Each factor of the denominator gives its own fraction. A linear factor \(x - a\) gives \(\frac{A}{x - a}\), a repeated factor \((x - a)^{2}\) gives \(\frac{A}{x - a} + \frac{B}{(x - a)^{2}}\), and a quadratic that cannot be factorised gives \(\frac{Ax + B}{x^{2} + px + q}\). The top must have a lower degree than the bottom.
Step 3
Step 3 - Divide if the top is not smaller.
In this problem: The top has degree 1, which is lower than the degree 2 of the bottom, so no division is needed.
Step 4
Step 4 - Factorise the denominator.
In this problem: Factorising the denominator, covered in the Factoring Higher Degree Polynomials Calculator, gives \(x^{2} - 2 x + 1 = \left(x - 1\right)^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Take out the common factor.
- Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
- Do the same again on what is left, until it cannot be broken down.
- Factor what is left.
- Write the polynomial as a product of its factors.
Depending on the polynomial, some of these steps are not needed, so they are skipped.
Step 1
Step 1 - Set up the problem.
In this problem: The polynomial to factor is \(x^{2} - 2x + 1\). Factoring means writing it as a product of simpler polynomials.
Step 2
Step 2 - Break the polynomial down: list the numbers to try, test them, turn the root into a bracket and divide.
In this problem: Look for a bracket that comes out of \(x^{2} - 2x + 1\).
Step 2a
Step 2a - List the numbers to try.
In this problem: Look at the last number, \(1\). The numbers that go into \(1\), both positive and negative, are \(\pm 1\). Try them in order until one gives \(0\).
Step 2b
Step 2b - Try \(x = 1\).
In this problem: Set \(x = 1\) in \(x^{2} - 2x + 1\). It gives \(0\), so \(x = 1\) is a root. One root is enough to carry on, so the rest of the list is not tested here.
Step 2c
Step 2c - Use the root to find a factor.
In this problem: Start from the root \(x = 1\) found in the test. Take \(1\) away from both sides so that one side becomes \(0\). That leaves \(x - 1 = 0\), so the bracket \((x - 1)\) is \(0\) exactly at the root. A bracket like that always divides \(x^{2} - 2x + 1\) exactly (the Factor Theorem), so \((x - 1)\) is a factor.
Step 2d
Step 2d - Divide by the factor.
In this problem: Divide \(x^{2} - 2x + 1\) by \((x - 1)\). It gives \(x - 1\) with no remainder, so \(x^{2} - 2x + 1 = (x - 1)(x - 1)\), which splits it into two brackets.
Problem
Approach
Step-by-step method
- Set up the problem.
- Bring down the leading coefficient.
- Multiply by the divisor's number and add down each column.
- Read off the quotient and the remainder.
Step 1
Step 1 - Set up the problem.
In this problem: The table needs two things: a number for the corner, which comes from the divisor, and the coefficients of the dividend, which go along the top.
Step 1a
Step 1a - Find the number for the corner.
In this problem: The corner number is the value of \(x\) that makes the divisor zero: \(x - 1 = 0\) gives \(x = 1\). So \(1\) goes in the corner.
Step 1b
Step 1b - Write down the coefficients of the dividend.
In this problem: The numbers in front of each power, in order, are \(1\), \(-2\) and \(1\).
Step 1c
Step 1c - Draw the table.
In this problem: The corner number \(1\) goes on the left, and the coefficients \(1\), \(-2\) and \(1\) go along the top row. The row under them stays empty for now, it is where the multiplied numbers will go. The answers are written under the line, and the last column is fenced off because the number that ends up there is the remainder.
| \(1\) | \(1\) | \(-2\) | \(1\) |
Step 2
Step 2 - Bring down the leading coefficient.
In this problem: The leading coefficient \(1\) comes straight down to the bottom row.
| \(1\) | \(1\) | \(-2\) | \(1\) |
| \(1\) |
Step 3
Step 3 - Multiply by the divisor's number and add down each column.
In this problem: There are \(2\) columns left. For each one, the last number on the bottom row is multiplied by \(1\), written in the next column, and added to the number above it.
Step 3a
Step 3a - Work through the second column.
In this problem: \(1 \times 1 = 1\) goes under \(-2\), and \(-2 + 1 = -1\) goes on the bottom row.
| \(1\) | \(1\) | \(-2\) | \(1\) |
| \(1\) | |||
| \(1\) | \(-1\) |
Step 3b
Step 3b - Work through the third column.
In this problem: \(1 \times \left(-1\right) = -1\) goes under \(1\), and \(1 + \left(-1\right) = 0\) goes on the bottom row.
| \(1\) | \(1\) | \(-2\) | \(1\) |
| \(1\) | \(-1\) | ||
| \(1\) | \(-1\) | \(0\) |
Step 4
Step 4 - Read off the quotient and the remainder.
In this problem: The last number on the bottom row, \(0\), is the remainder, and \(1\) and \(-1\) are the coefficients of the quotient. Dividing by \(x - 1\) lowers every power by one, so the quotient starts at \(x\) instead of \(x^{2}\), giving \(x - 1\).
Final Answer
Step 3
Step 3 - Write the polynomial as a product of its factors.
In this problem: Putting all the factors together gives \((x - 1)(x - 1)\), and a factor that appears more than once is written as a power.
Final Answer
Step 5
Step 5 - Write the fractions with unknown numbers.
In this problem: Each factor gives its own fraction: \(\left(x - 1\right)^{2}\) is repeated 2 times, so it gives a fraction for each power up to 2. This gives \(\frac{2 x + 3}{\left(x - 1\right)^{2}} = \frac{A}{x - 1} + \frac{B}{\left(x - 1\right)^{2}}\).
Step 6
Step 6 - Multiply through by the denominator.
In this problem: Multiplying both sides by \(\left(x - 1\right)^{2}\) clears every fraction and leaves \(2 x + 3 = A \left(x - 1\right) + B\). This must be true for every value of \(x\).
Step 7
Step 7 - Find the unknown numbers.
In this problem: The unknown numbers are found by choosing useful values of \(x\) and by matching coefficients, which gives \(A = 2,\; B = 5\).
Step 7a
Step 7a - Put x = 1.
In this problem: Putting \(x = 1\) makes \(x - 1\) zero, so every term with that factor disappears and leaves \(5 = B \;\Rightarrow\; B = 5\).
Step 7b
Step 7b - Compare coefficients.
In this problem: Expanding the right side with the values found so far and matching the coefficient of each power of \(x\) on both sides gives 2 equations.
Step 7c
Step 7c - Find A.
In this problem: The equation \(A = 2\) has only \(A\) left in it, so \(A = 2\).
Step 8
Step 8 - Write the answer.
In this problem: Putting the numbers into the fractions gives \(\frac{2 x + 3}{x^{2} - 2 x + 1} = \frac{2}{x - 1} + \frac{5}{\left(x - 1\right)^{2}}\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Partial Fraction Decomposition Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Partial Fraction Decomposition Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.
Login and upgrade to Plus to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.