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 entered2x2+x+1x3+x\frac{2x^{2} + x + 1}{x^{3} + x}

1x+x+1(x2+1)\displaystyle \frac{1}{x} + \frac{x + 1}{\left(x^{2} + 1\right)}

Factored denominator

x(x2+1)\displaystyle x\left(x^{2} + 1\right)

Check

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

    Write the fraction as a sum with one unknown constant for each part. The quadratic x2+1x^{2} + 1 cannot be factored further, so its term needs a linear numerator, not just a constant.

    2x2+x+1x3+x=Ax+Bx+C(x2+1)\frac{2x^{2} + x + 1}{x^{3} + x} = \frac{A}{x} + \frac{Bx + C}{\left(x^{2} + 1\right)}
  3. Clearing the denominators

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

    2x2+x+1=A(x2+1)+(Bx+C)x2x^{2} + x + 1 = A\left(x^{2} + 1\right) + \left(Bx + C\right)x
  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.

    x2:A+B=2x:C=1constant:A=1\begin{array}{l} x^{2}: \quad A + B = 2 \\ x: \quad C = 1 \\ \text{constant}: \quad A = 1 \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=1C=1\begin{array}{l} A = 1 \\ B = 1 \\ C = 1 \end{array}
  6. Result

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

Worked examples