Skip to content
Math & Scientific

Fraction Decomposition Calculator

Fraction Decomposition Calculator

Split a rational expression into partial fractions. Enter the numerator coefficients and the denominator’s roots — repeated roots are fine.

Example: for 2x² − x + 4 type 2, -1, 4. Degree must be lower than the denominator’s.

Repeat a root for each power, e.g. 3, 3, 3 means (x − 3)³.

Solves the coefficient system exactly by evaluating the identity at distinct sample points. Only denominators that factor into linear factors are supported.

Partial fraction decomposition is the algebra trick that turns one intimidating rational expression into a sum of simple ones. It is the gateway step for integration, Laplace transforms, and series expansions — and doing it by hand means solving a system of equations where one sign error ruins everything.

The Fraction Decomposition Calculator does the solving for you. Enter the numerator's coefficients and the denominator's roots (repeating a root for each power), and it returns the full decomposition: each term with its coefficient, plus the denominator shown in factored form.

It handles distinct roots, repeated roots, and any mix — the cases where hand computation gets genuinely tedious. What follows is both a user guide and a refresher on why the method works.

What Does the Fraction Decomposition Calculator Do?

This calculator splits a proper rational expression into partial fractions. You type the numerator coefficients (highest degree first, comma-separated) and the denominator roots (comma-separated, repeating roots for powers, e.g. -1, 2, 2 for (x+1)(x−2)²).

It solves the underlying coefficient system by evaluating the decomposition identity at distinct sample points, then displays the result as a sum of terms like 0.222222/(x + 1), with each term also listed separately alongside the factored denominator.

How to Use the Fraction Decomposition Calculator

In the first field, enter your numerator coefficients from highest degree to constant, separated by commas. For 3x + 5 type 3, 5; for 2x² − x + 4 type 2, -1, 4.

In the second field, enter the denominator roots as a comma list. A root repeated k times means that factor raised to the kth power: 3, 3, 3 is (x−3)³. The numerator's degree must be lower than the number of roots. Press Calculate and read the decomposition.

What Partial Fractions Are For

Many operations are easy on simple fractions and hard on complicated ones. Integrating 1/(x−1) is a one-line logarithm; integrating (3x+5)/((x+1)(x−2)²) directly is a project. Decomposition converts the project into a sum of one-liners.

The same split powers inverse Laplace transforms in control engineering, partial sums in series work, and residue calculations in complex analysis. Whenever a method handles 1/(x − a) gracefully, decomposition extends that method to arbitrary rational functions — which is why the technique appears in every differential equations course.

There is also a conceptual payoff: decomposition reveals the "atoms" of a rational function. The poles (roots) and their strengths (coefficients) describe long-term behavior — which exponential terms dominate, where a system resonates, how fast transients decay. The sum-of-simple-pieces view is often more informative than the original single fraction.

Setting Up: Numerator Coefficients

Coefficients are entered highest-degree first because that order is unambiguous: 3, 5 can only mean 3x + 5. Include zeros for missing interior terms — for x² + 4 type 1, 0, 4, not 1, 4, or the calculator will read a different polynomial.

Decimals and negatives are fine: 0.5, -2.25, 1 is a valid numerator. The calculator evaluates the polynomial by Horner's method, so any real coefficients work. Just keep the degree below the denominator's — count your roots first.

Setting Up: Denominator Roots

The denominator is described by its roots rather than its expanded coefficients, because roots are what the decomposition needs. Each root you list becomes one term: the kth occurrence of root r produces a term over (x − r)ᵏ. So -1, 2, 2 yields terms in 1/(x+1), 1/(x−2), and 1/(x−2)².

This covers every denominator that factors into linear factors — the standard classroom case. Denominators with irreducible quadratics (like x² + 1) need a different term shape (Ax+B over the quadratic) and are outside this calculator's scope; the factored display will make clear what was assumed.

Worked Example: (3x+5)/((x+1)(x−2)²)

First: enter numerator 3, 5 and roots -1, 2, 2.

Then: the calculator sets up A/(x+1) + B/(x−2) + C/(x−2)² and solves.

Then: read the coefficients. A = 0.222222, B = −0.222222, C = 3.666667.

Then: verify at x = 0. Original: 5/((1)(4)) = 1.25. Split: 0.222222 − 0.111111 + 0.916667 = 1.25. It matches.

Answer: 0.222222/(x + 1) − 0.222222/(x − 2) + 3.666667/(x − 2)².

Worked Example: Distinct Roots (2x+3)/((x−1)(x+1))

First: enter numerator 2, 3 and roots 1, -1.

Then: the form is A/(x−1) + B/(x+1).

Then: solving gives A = 2.5, B = −0.5.

Then: check at x = 2. Original: 7/3 ≈ 2.3333. Split: 2.5 − 0.1667 = 2.3333. It matches.

Answer: 2.5/(x − 1) − 0.5/(x + 1). Distinct linear roots are the simplest case — one term per root, no powers.

Worked Example: A Triple Root (x+2)/(x−1)³

First: enter numerator 1, 2 and roots 1, 1, 1.

Then: the form is A/(x−1) + B/(x−1)² + C/(x−1)³.

Then: solving gives A = 0, B = 1, C = 3. The calculator skips the zero term.

Then: check at x = 0. Original: 2/(−1) = −2. Split: 1 − 3 = −2. It matches.

Answer: 1/(x − 1)² + 3/(x − 1)³. Zero coefficients vanish from the display — a term that contributes nothing is not shown.

Worked Example: A Quick Two-Root Check (5x−1)/((x+2)(x−3))

First: enter numerator 5, -1 and roots -2, 3.

Then: the form is A/(x+2) + B/(x−3).

Then: solving gives A = 2.2, B = 2.8.

Then: check at x = 0. Original: −1/(2 × −3) = 0.1667. Split: 2.2/2 + 2.8/−3 = 1.1 − 0.9333 = 0.1667. It matches.

Answer: 2.2/(x + 2) + 2.8/(x − 3). A handy template whenever you want to test the tool against hand-computed fractions.

How the Calculator Solves It

Behind the display is honest linear algebra. For n roots, the calculator picks n sample x-values (avoiding the roots themselves), and at each one writes the equation: the sum of coefficient × (denominator ÷ term-denominator) equals the numerator's value. That is an n×n linear system in the unknown coefficients.

It solves the system with Gaussian elimination and partial pivoting — the same algorithm numerical software uses. This approach handles repeated roots uniformly, with no special-case algebra, which is why the tool stays reliable where hand methods get tangled.

Choosing sample points away from the roots is the one subtlety: at a root the expression is undefined, so the candidates (0, 1, −1, 2, −2, ½, …) are filtered to skip any root neighborhood. With n valid points for n unknowns, the system has a unique solution whenever the roots are listed correctly.

Repeated Roots and Powers

A repeated root needs the full ladder of powers: (x−2)³ requires terms in 1/(x−2), 1/(x−2)², AND 1/(x−2)³. Beginners often write only the highest power, but the lower rungs carry independent information — dropping them makes the system unsolvable.

The calculator builds the ladder automatically from repetition count: list the root three times and all three powers appear. If one of the solved coefficients is zero, that rung simply drops out of the final display, as the triple-root example showed.

Why the Fraction Must Be Proper

Decomposition assumes the numerator's degree is strictly lower than the denominator's. If it is not — say (x³+1)/(x²−1) — you must do polynomial long division first, splitting off a polynomial plus a proper remainder fraction, and decompose only the remainder.

The calculator enforces this: enter too many numerator coefficients and it refuses with an explanation rather than producing garbage. Count your roots, keep the numerator shorter, and divide first when the degrees demand it.

Common Decomposition Mistakes

The classic hand-computation errors are: forgetting the lower powers of a repeated root, mis-signing when moving terms (the (x+1) root is x = −1, not +1), and arithmetic slips in the elimination. The calculator sidesteps all three, but you should still know them to sanity-check output.

Another subtle trap: assuming roots you have not verified. If the denominator does not actually factor as listed — a sign error in factoring — the "decomposition" is fiction. The factored-denominator display lets you confirm the tool factored what you intended before trusting the terms.

Where Partial Fractions Are Useful

Calculus students meet decomposition as the prerequisite for integrating rational functions — every term integrates to a logarithm or a power. Engineers use it to invert Laplace transforms, turning s-domain transfer functions into time-domain responses term by term.

It also appears in series expansions, partial-sum identities, and even probability (partial fractions of generating functions). Anywhere a complicated rational object needs to become a sum of simple ones, this is the move — and now the arithmetic is one form submission.

Students get a second benefit: instant feedback. Work a decomposition by hand, then run the same problem through the calculator to check each coefficient. The tool is strict about form — proper fraction, linear factors — so disagreements usually expose exactly which hand step went wrong.

Checking Your Answer by Hand

Trust but verify: pick an x-value that is not a root, evaluate the original fraction, and evaluate your decomposition at the same point. Equal (up to rounding) means correct. The worked examples above each include such a check — make it a habit.

Also check the leading behavior. For large x, each term behaves like its coefficient over xᵏ; the dominant terms should roughly match the original's tail. And confirm the term count: n roots in, n candidate terms out (minus any zero coefficients the display dropped).

How to Interpret Your Result Correctly

The headline is the complete decomposition — the sum that equals your original fraction wherever both are defined. The term cards break it into pieces for integration or transform work, and the factored-denominator card confirms the input reading.

Remember the scope: denominators must factor into linear factors over the reals. Irreducible quadratics, complex roots, and improper fractions need preprocessing or a different tool. Within its scope, though, the result is exact up to the displayed rounding — recombine the terms and you recover the original.

Frequently Asked Questions

1. What is partial fraction decomposition?

Rewriting a rational expression as a sum of simpler fractions, e.g. (2x+3)/((x−1)(x+1)) = 2.5/(x−1) − 0.5/(x+1). Each term is easy to integrate or transform individually.

2. How do I enter the numerator?

As comma-separated coefficients, highest degree first: 3, 5 for 3x + 5, 1, 0, 4 for x² + 4. Include zeros for missing powers.

3. How do I enter repeated roots?

Repeat the root once per power: 2, 2, 2 means (x − 2)³. The calculator builds the full ladder of terms 1/(x−2), 1/(x−2)², 1/(x−2)³ automatically.

4. Why must the fraction be proper?

The decomposition form only has enough free coefficients for a proper fraction. With a higher-degree numerator, do polynomial long division first and decompose the remainder.

5. What if a coefficient comes out zero?

That term contributes nothing and is omitted from the display. It is normal — as in the triple-root example, where the 1/(x−1) term vanished.

6. Can it handle irreducible quadratics like x² + 1?

No. Terms like (Ax+B)/(x²+1) need a different form this calculator does not build. It covers denominators that split into linear factors only.

7. How does the calculator actually solve it?

It evaluates the decomposition identity at n distinct sample points, forming an n×n linear system, and solves it with Gaussian elimination and partial pivoting.

8. How can I check the answer?

Evaluate both the original and the decomposition at an x that is not a root. Matching values (up to rounding) confirm correctness.

9. Why are my coefficients decimals instead of fractions?

The solver works in floating point and rounds to six decimals. 0.222222 is 2/9; for exact rational arithmetic, convert the rounded values back to fractions by hand.

10. What are sample points?

X-values (0, 1, −1, 2, …) where the identity is evaluated to build equations. They must avoid the roots, since the expression is undefined there.

11. Can the denominator have complex roots?

Only via their real linear factors — which do not exist for true complex pairs. A denominator like (x²+1)(x−2) is outside this tool's scope.

12. Why do repeated roots need all the lower powers?

Each power carries independent information. Omitting 1/(x−2) when (x−2)² is present leaves the system underdetermined — the equations cannot fix all coefficients.

13. What is the factored denominator display for?

Confirmation. It shows how the calculator read your root list, so a typo like 2, 2 versus 2, -2 is visible before you trust the terms.

14. Where is decomposition actually used?

Integrating rational functions, inverse Laplace transforms, series expansions, and residue calculus — anywhere a hard rational problem splits into easy pieces.

15. Is the result exact?

Up to floating-point rounding (six decimals shown). Recombining the displayed terms recovers the original fraction to that precision; for proofs, convert to exact fractions.