Partial Fraction Decomposition Calculator

Enter a numerator and a denominator to split the fraction into simpler fractions.

Use one variable, brackets and whole powers.

Up to degree 6, with the same variable as the numerator.

Try

Result

You enteredx+2x2−2x+1\frac{x + 2}{x^{2} - 2x + 1}

1(x−1)+3(x−1)2\displaystyle \frac{1}{\left(x - 1\right)} + \frac{3}{\left(x - 1\right)^{2}}

Factored denominator

(x−1)2\displaystyle \left(x - 1\right)^{2}

Check

x+2x2−2x+1\displaystyle \frac{x + 2}{x^{2} - 2x + 1}
Show the work
  1. Factoring the denominator

    A partial fraction decomposition starts from the denominator written as a product of linear factors and irreducible quadratic factors, since each kind of factor gets its own term.

    D(x)=x2−2x+1=(x−1)2\begin{aligned} D\left(x\right) &= x^{2} - 2x + 1 \\ &= \left(x - 1\right)^{2} \end{aligned}
  2. Partial fraction template

    Write the fraction as a sum with one unknown constant for each part. The factor (x−1)\left(x - 1\right) is repeated 2 times, so it needs a term for every power from 1 to 2.

    x+2x2−2x+1=A(x−1)+B(x−1)2\frac{x + 2}{x^{2} - 2x + 1} = \frac{A}{\left(x - 1\right)} + \frac{B}{\left(x - 1\right)^{2}}
  3. Clearing the denominators

    Multiply both sides by the denominator x2−2x+1x^{2} - 2x + 1. Each fraction on the right loses its own factor and keeps the others, which turns the equation into one with no fractions.

    x+2=A(x−1)+Bx + 2 = A\left(x - 1\right) + B
  4. Equating coefficients

    Two polynomials are equal only when the numbers in front of each power of the variable match. Expand the right side, collect like powers and set the coefficients equal, power by power.

    x:A=1constant:−A+B=2\begin{array}{l} x: \quad A = 1 \\ \text{constant}: \quad -A + B = 2 \end{array}
  5. Solving the linear system

    These equations are linear in the unknown constants, so they can be solved by elimination or substitution. Solving them gives the value of every constant.

    A=1B=3\begin{array}{l} A = 1 \\ B = 3 \end{array}
  6. Result

    So the fraction equals 1(x−1)+3(x−1)2\frac{1}{\left(x - 1\right)} + \frac{3}{\left(x - 1\right)^{2}}.

Worked examples