Logo

MonoCalc

/

Partial Fraction Decomposition

Math

Quick examples:

About This Tool

🔢 Partial Fraction Decomposition – Complete Guide

Partial fraction decomposition is the technique of rewriting a rational expression — a quotient of two polynomials — as a sum of simpler fractions. It is one of the most important algebraic tools in calculus, engineering, and signal processing, turning complex integrals and transforms into manageable pieces.

What Is a Rational Expression?

A rational expression has the form P(x) / Q(x) where both P(x) (numerator) and Q(x) (denominator) are polynomials. The expression is proper when the degree of P is strictly less than the degree of Q, and improper otherwise.

Tip: Improper Fractions
If your fraction is improper (numerator degree ≥ denominator degree), the tool automatically performs polynomial long division first, then decomposes the proper remainder into partial fractions.

How the Decomposition Works

The process follows six well-defined steps, each of which this calculator performs automatically:

  1. Parse polynomials — convert your input strings into coefficient arrays.
  2. Check if proper — if not, perform polynomial long division to extract a quotient and a proper remainder.
  3. Factor the denominator — apply the rational root theorem to find all linear factors, then detect any irreducible quadratic factors.
  4. Build the template — assign unknown constants (A, B, C…) according to the type and multiplicity of each factor.
  5. Set up and solve the linear system — multiply through, compare coefficients of equal powers of x, and solve by Gaussian elimination.
  6. Write the final expression — substitute the solved constants back into the template.

Decomposition Templates by Factor Type

Factor TypeFactor in DenominatorTemplate Terms
Distinct Linear(x − a)A / (x − a)
Repeated Linear(x − a)ⁿA₁/(x−a) + A₂/(x−a)² + ··· + Aₙ/(x−a)ⁿ
Irreducible Quadraticx² + bx + c(disc < 0)(Bx + C) / (x² + bx + c)
Repeated Quadratic(x² + bx + c)ⁿ(B₁x+C₁)/(…) + ··· + (Bₙx+Cₙ)/(…)ⁿ

Worked Example – Distinct Linear Factors

Decompose (5x + 1) / ((x − 1)(x + 2)):

(5x + 1) / ((x−1)(x+2)) = A/(x−1) + B/(x+2)

Multiply through:  5x + 1 = A(x+2) + B(x−1)

x = 1:   6 = 3A          →  A = 2
x = −2: −9 = −3B         →  B = 3

Result:  2/(x−1) + 3/(x+2)

Worked Example – Repeated Linear Factor

Decompose (7x + 4) / ((x − 3)²(x + 1)):

7x + 4 = A(x−3)(x+1) + B(x+1) + C(x−3)²

x = 3:   25 = 4B            →  B = 25/4
x = −1: −3  = 16C           →  C = −3/16
Compare x²:  A + C = 0      →  A = 3/16

Worked Example – Irreducible Quadratic

Decompose (2x² + 3) / ((x − 1)(x² + 4)):

2x² + 3 = A(x²+4) + (Bx+C)(x−1)

x = 1:   5 = 5A            →  A = 1
Expand and compare coefficients:
  x²: 2 = A + B            →  B = 1
  x¹: 0 = −B + C           →  C = 1

Result:  1/(x−1) + (x+1)/(x²+4)

Applications of Partial Fractions

Integration

The most common use is in calculus. Each simple term integrates to a logarithm or inverse-tangent, making otherwise intractable integrals routine:

∫ (5x+1)/((x−1)(x+2)) dx
= ∫ 2/(x−1) dx + ∫ 3/(x+2) dx
= 2 ln|x−1| + 3 ln|x+2| + C

Inverse Laplace Transforms

Control-system engineers and signal-processing specialists decompose transfer functions using partial fractions to apply standard Laplace tables and recover time-domain responses. A factor (s − a) corresponds to the exponential e^(at), while irreducible quadratics yield damped sinusoids.

Z-Transforms and Discrete Systems

Exactly the same technique applies to Z-transforms in digital signal processing, where the variable is z instead of s or x.

Input Tips

✅ You can enter polynomials in expanded form: x^2 + 3x - 4

✅ Or in factored form: (x - 1)(x + 4) — the tool expands it automatically.

✅ Use ^ for powers: x^3, (x+2)^2

✅ Implicit multiplication is supported: 3x, 2(x-1)

❌ Multi-variable, trigonometric, or exponential expressions are not supported — polynomials only.

Denominator Restrictions
The denominator must not be zero. The tool displays domain restrictions (e.g. x ≠ 1, x ≠ −2) in the result so you know which x-values are excluded.

Why Coefficient Comparison?

This calculator uses the coefficient comparison method (also called the method of undetermined coefficients): after clearing denominators, both sides are polynomials that must be identical. Setting the coefficients of each power of x equal gives a square linear system that can be solved by Gaussian elimination — a numerically stable and general approach that handles all factor types uniformly.

Frequently Asked Questions

Is the Partial Fraction Decomposition free?

Yes, Partial Fraction Decomposition is totally free :)

Can I use the Partial Fraction Decomposition offline?

Yes, you can install the webapp as PWA.

Is it safe to use Partial Fraction Decomposition?

Yes, any data related to Partial Fraction Decomposition only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How does the Partial Fraction Decomposition Calculator work?

Enter the numerator and denominator polynomials and click Calculate. The tool parses both expressions, checks whether the fraction is proper (numerator degree < denominator degree), performs polynomial long division if needed, factors the denominator into irreducible linear and quadratic components, builds the partial fraction template, then solves for all unknown coefficients using a coefficient-comparison linear system.

What types of denominators are supported?

The calculator handles denominators with distinct linear factors (e.g. (x−1)(x+2)), repeated linear factors (e.g. (x−3)²(x+1)), and irreducible quadratic factors (e.g. (x−1)(x²+4)). Mixed combinations of all three types are also supported. Factorisation uses the rational root theorem with exact integer arithmetic wherever possible.

How are improper fractions handled?

If the numerator degree is greater than or equal to the denominator degree, the tool first performs polynomial long division to extract an integer polynomial quotient plus a proper remainder. The proper remainder is then decomposed into partial fractions. The final result is the sum of the quotient and the partial fraction terms.

Can I enter a denominator in factored form like (x−1)(x+2)²?

Yes. The calculator automatically expands factored expressions before processing them. You can enter the denominator as either an expanded polynomial (x³+3x²−4) or in factored form ((x−1)(x+2)²). Both are equivalent — the tool will factor the denominator regardless of the input form.

What is the accuracy of the computed coefficients?

For denominators with rational roots (integer or simple fraction coefficients), the solved partial fraction coefficients are exact. You can control how many decimal places are displayed using the Precision setting (0–8 places). The tool automatically formats exact fractions like 3/4 or 25/4 when they can be recognised.

Where is partial fraction decomposition used?

Partial fractions are a cornerstone of calculus integration (∫ 1/(x²−1) dx), inverse Laplace and Z-transforms in engineering, control systems analysis, and solving differential equations. They also simplify complex algebraic expressions for sum-of-series problems in discrete mathematics.