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+5x2+x−2\frac{x + 5}{x^{2} + x - 2}

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

Factored denominator

(x−1)(x+2)\displaystyle \left(x - 1\right)\left(x + 2\right)

Check

x+5x2+x−2\displaystyle \frac{x + 5}{x^{2} + x - 2}
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+x−2=(x−1)(x+2)\begin{aligned} D\left(x\right) &= x^{2} + x - 2 \\ &= \left(x - 1\right)\left(x + 2\right) \end{aligned}
  2. Partial fraction template

    Write the fraction as a sum with one unknown constant for each part. Each linear factor gets one constant over it.

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

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

    x+5=A(x−1)+B(x+2)x + 5 = A\left(x - 1\right) + B\left(x + 2\right)
  4. Cover-up method (Heaviside)

    Every factor here is linear and appears once, so a root of each factor can be substituted. At the root of one factor every other term on the right becomes 0, and only that factor's own constant is left.

    x=−2⇒3=−3Ax=1⇒6=3B\begin{array}{l} x = -2 \quad\Rightarrow\quad 3 = -3A \\ x = 1 \quad\Rightarrow\quad 6 = 3B \end{array}
  5. Solving for the constants

    Divide each side by the number multiplying the unknown constant.

    A=3−3=−1B=63=2\begin{array}{l} A = \frac{3}{-3} = -1 \\ B = \frac{6}{3} = 2 \end{array}
  6. Result

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

Worked examples