Partial Fraction Decomposition Solver

Decomposes P(x)/Q(x) with linear, repeated and irreducible quadratic factors, showing long division, the cover-up method and the coefficient equations.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter the fraction

    Type the numerator P(x) and denominator Q(x), or press an example such as Repeated linear.

  2. 2
    Read the result

    The Result box shows the decomposition, with the factored denominator beside it.

  3. 3
    Check each factor

    The table lists each factor, its partial fraction term and the coefficients found.

  4. 4
    Follow the method

    Working shows long division, the form with unknowns, cover-up values and the coefficient equations.

  5. 5
    Compare the graphs

    The original function and the sum of fractions should lie on top of each other.

  6. 6
    Practise

    Practice generates fractions with whole-number answers; type the coefficients separated by commas.

About this tool

Partial fractions turn one awkward fraction into a sum of simple ones. You need the technique to integrate rational functions, to find inverse Laplace transforms and to sum telescoping series. This solver does the whole procedure and shows it the way it is marked in exams. If the numerator's degree is not lower than the denominator's, it divides first and shows the quotient and remainder. It factors the denominator into linear factors, repeated linear factors and irreducible quadratics, writes the general form with unknown constants A, B, C and so on, then finds them. Simple linear factors are solved with the cover-up method, and the remaining constants come from comparing the coefficients of each power of x; the equations are listed so you can see where every number comes from. The result is checked by evaluating both sides at several points, and a graph overlays the original function and the sum of the pieces.

Entering the fraction

Type the numerator and the denominator separately. Both may be written factored or expanded: (x + 1)(x^2 + 4) works as well as x^3 + x^2 + 4x + 4. Coefficients can be decimals or fractions. The denominator may have degree up to eight.

The three kinds of factor

A linear factor (x - r) gives a term A/(x - r). A repeated factor (x - r)^k gives k terms A1/(x - r) + A2/(x - r)^2 + … + Ak/(x - r)^k. An irreducible quadratic x^2 + px + q, one with no real roots, gives (Bx + C)/(x^2 + px + q), and a repeated quadratic gives one such term for each power. The factor table in the result lists which kind each factor is and its coefficients.

Cover-up versus comparing coefficients

For a simple linear factor (x - r), cover that factor in the original fraction and substitute x = r into what is left; the number you get is its coefficient. This is quick but only works for non-repeated linear factors. Everything else comes from multiplying out and matching coefficients, which gives a system of linear equations solved by elimination.

Worked example

(3x + 5)/(x^2 - x - 2): the denominator factors as (x + 1)(x - 2). Cover (x + 1) and put x = -1: A = 2/(-3) = -2/3. Cover (x - 2) and put x = 2: B = 11/3. So the fraction equals -2/(3(x + 1)) + 11/(3(x - 2)), and integrating gives -(2/3)ln|x + 1| + (11/3)ln|x - 2| + C.

Limits

Roots of the denominator are found numerically and then rounded to exact values where they are close to simple fractions. If a root is irrational, coefficients are shown as decimals rather than surds. The tool does not decompose functions with symbolic constants (such as a/(x^2 - a^2)); substitute numbers first. It is a learning aid, not a replacement for your own written method.

Worked example

(3x + 5)/((x + 1)(x - 2)) = -2/(3(x + 1)) + 11/(3(x - 2)) using cover-up at x = -1 and x = 2.

Quick facts

Frequently asked questions

When do I need long division first?

When the degree of the numerator is equal to or greater than the degree of the denominator. The tool does this automatically and adds the quotient polynomial to the answer.

What is the cover-up method?

For a non-repeated factor (x - r), hide that factor in the fraction and substitute x = r into the rest. The value is the coefficient of 1/(x - r).

How are repeated factors handled?

A factor (x - r)^k produces k terms with powers 1 to k. Their coefficients are found by comparing coefficients after multiplying through by the denominator.

What is an irreducible quadratic?

A quadratic with a negative discriminant, such as x^2 + 4, which has no real roots. It keeps a linear numerator Bx + C in the decomposition.

How do I know the answer is correct?

The Check box compares both sides at several values of x, and the graph draws the original function and the sum of the pieces on top of each other.

Can I print a worksheet?

Yes. Print / PDF gives the question, the result and every step; Text file saves a one-line result.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages