Saved

Press the star next to a tool's name to save it.

All my tools

Partial Fraction Decomposition Calculator

Use this partial fraction decomposition calculator to split a rational function into simpler fractions, with polynomial division, repeated factors and quadratic factors.

Type the numerator as a polynomial in x. Type the denominator already factored: lines such as (x - 1) and quadratics such as (x^2 + x + 1), with powers written after a bracket, as in (x + 2)^2. A number in front, such as 2(x - 1)(x + 1), is allowed. If the numerator has the same degree as the denominator or higher, the calculator divides first.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Enter the numerator and the denominator as factors, then press Decompose.

A partial fraction decomposition calculator splits a rational function into a sum of simpler fractions. Type the numerator, and type the denominator as a product of factors such as (x − 1)(x² + x + 1). The calculator divides first if it needs to, sets up the terms for each factor, solves for the unknown coefficients and shows the decomposition with a check. It is useful for integration and for inverse Laplace transforms. Everything is done in your browser.

How to use the partial fraction decomposition calculator

  1. Type the numerator as a polynomial in x.
  2. Type the denominator as a product of linear and quadratic factors, with powers after brackets.
  3. Press Decompose.
  4. Read the polynomial part, the partial fractions and the coefficients.

What partial fractions are

The Wikipedia article on partial fraction decomposition says that a rational function can be written as a polynomial plus a sum of fractions, in which each denominator is a power of an irreducible polynomial and each numerator has a lower degree than its denominator.[1] Over the real numbers, a linear factor (x − a) raised to the power r gives the terms A₁ ÷ (x − a) + … + A_r ÷ (x − a)^r. An irreducible quadratic factor (x² + bx + c) raised to the power r gives the terms (B₁x + C₁) ÷ (x² + bx + c) + … + (B_r x + C_r) ÷ (x² + bx + c)^r.[1] The calculator sets up exactly these terms for the factors you enter.

When the numerator is too large

The page says that if the degree of the numerator is not less than the degree of the denominator, you first perform the Euclidean division by polynomial long division. This gives a quotient and a remainder with a lower degree, and then you decompose the remainder over the denominator.[1] The calculator does this step for you and shows the quotient as the polynomial part. For (x³ + 16) ÷ (x³ − 4x² + 8x), the polynomial part is 1, and the rest is 2 ÷ x + 2x ÷ (x² − 4x + 8), which matches the page's worked example. The page notes that x² − 4x + 8 is irreducible because its discriminant is −16.[1]

Distinct linear factors

The first example on the page is 1 ÷ (x² + 2x − 3) = 1 ÷ ((x + 3)(x − 1)) = A ÷ (x + 3) + B ÷ (x − 1). Substituting x = −3 gives A = −1/4, and x = 1 gives B = 1/4, so the result is (1/4)(−1 ÷ (x + 3) + 1 ÷ (x − 1)).[1] Enter 1 as the numerator and (x + 3)(x − 1) as the denominator and the calculator gives the same coefficients. The calculator uses a different but equivalent method: it multiplies out the terms, matches the coefficients of each power of x, and solves the linear equations.

Repeated linear factors

A repeated factor needs one term for each power. The page's illustration is (3x + 5) ÷ (1 − 2x)² = (13/2) ÷ (1 − 2x)² + (−3/2) ÷ (1 − 2x), found from a system of equations.[1] Enter 3x + 5 and (1 − 2x)^2 and you get those two coefficients, one for the first power and one for the second. For a factor such as (x − 1)³ the calculator creates three terms, with the denominators (x − 1), (x − 1)² and (x − 1)³.

Quadratic factors

Another example on the page is 1 ÷ (x³ − 1) = 1 ÷ ((x − 1)(x² + x + 1)) = A ÷ (x − 1) + (Bx + C) ÷ (x² + x + 1). The limit method gives A = 1/3, B = −1/3 and C = −2/3, so the result is (1/3)(1 ÷ (x − 1) + (−x − 2) ÷ (x² + x + 1)).[1] Enter 1 and (x − 1)(x² + x + 1) and the calculator finds the same values. Only enter a quadratic that has no real roots. If it can be factored into two lines, enter the lines instead.

A worked example with division

The page integrates (x⁴ + x³ + x² + 1) ÷ (x² + x − 2). Long division gives x² + 3 + (−3x + 7) ÷ ((x + 2)(x − 1)), and then A = −13/3 and B = 4/3 for the terms A ÷ (x + 2) + B ÷ (x − 1).[1] Enter x^4 + x^3 + x^2 + 1 and (x + 2)(x − 1) and you get x² + 3 − (13/3) ÷ (x + 2) + (4/3) ÷ (x − 1). With these terms the integral is straightforward: the polynomial integrates to x³ ÷ 3 + 3x, and the two fractions integrate to logarithms.

Why the check helps

The last row evaluates the original fraction and the sum of the terms at one value of x, normally 2.5. If the two numbers agree, the decomposition is right. If you typed the denominator in a different form from the one in your problem, the numbers help you see it at once. You can also use any other value of x to test the result by hand.

Using the result to integrate

Partial fractions turn a hard integral into a sum of easy ones. A term A ÷ (x − a) integrates to A ln|x − a|, and a term A ÷ (x − a)² integrates to −A ÷ (x − a). A term with a quadratic denominator usually leads to a logarithm and an inverse tangent. After you decompose the fraction with the calculator, integrate each term separately and add the results. The same idea is used to find inverse Laplace transforms and to sum series that telescope.

Common mistakes

  • Typing an expanded denominator. Enter it as factors.
  • Entering a quadratic that has real roots. Split it into two linear factors.
  • Forgetting the polynomial part. It appears when the numerator has the same or a higher degree.
  • Leaving out a power. A repeated factor needs a term for each power up to its exponent.

What next

Use this often? Add Partial Frac to your Home screen.

Frequently asked questions

What is a partial fraction decomposition calculator?

A tool that writes a rational function as a polynomial plus a sum of fractions with simple denominators, and finds the coefficient of each term.

When do I need polynomial division first?

When the numerator's degree is the same as or higher than the denominator's. The quotient is the polynomial part, and the remainder is decomposed.

How are repeated factors handled?

A factor (x − a) to the power 3 gets three terms, with denominators (x − a), (x − a)² and (x − a)³.

What term does a quadratic factor get?

A numerator of the form Bx + C over the quadratic, for each power of the quadratic. The quadratic must have no real roots.

How can I check the answer?

Evaluate the original fraction and the sum of the terms at the same x. They should be equal, and the calculator shows both values.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools