Partial Fraction Decomposition Calculator
A partial fraction decomposition calculator is an advanced algebra and calculus utility that breaks down a complex rational function into a sum of simpler rational expressions. The calculator factors the denominator polynomial, determines the appropriate form of the decomposition coefficients based on linear or quadratic factors, and solves the resulting system of linear equations to find the constant numerators. It provides the expanded mathematical steps required to solve for each coefficient. Calculus students use this tool to simplify rational integrands for integration.
Enter the numerator (ax + b) and the two distinct real roots of the denominator. The calculator returns A and B in the decomposition A / (x − r₁) + B / (x − r₂).
Quick Answer
Decompose complex rational expressions into simpler partial fractions. Enter the numerator and denominator polynomials to see the step-by-step algebraic expansion.
Numerator and roots
The form supported is (ax + b) / ((x − r₁)(x − r₂)), where r₁ and r₂ are distinct real roots of the denominator.
Numerator coefficients
Denominator roots
Scope
Supported: distinct linear factors in the denominator. The numerator is a degree-1 polynomial.
Out of scope: repeated factors (A/(x−r) + B/(x−r)²), irreducible quadratic factors (Ax + B over x² + 1), and numerators of higher degree than the denominator (use polynomial long division first).
Decomposition
-4 / (x − 1) + 7 / (x − 2)
Original: (3x + 1) / ((x − 1)(x − 2))
Partial fraction decomposition is the standard preparation step for integrating rational functions and for inverse Laplace transforms.
Examples
(3x + 1) / ((x − 1)(x − 2))
A = −4, B = 7
(x) / ((x − 1)(x + 1))
A = 0.5, B = 0.5
(2x + 5) / ((x − 0)(x − 3))
A = −1.667, B = 3.667
(1) / ((x − 1)(x − 2))
A = −1, B = 1
How it works
Multiply both sides of (ax + b) / ((x − r₁)(x − r₂)) = A/(x − r₁) + B/(x − r₂) by the common denominator and pick clever x values to isolate A and B.
A · A = (a·r₁ + b) / (r₁ − r₂)
B · B = (a·r₂ + b) / (r₂ − r₁)
Related calculators
- Fraction calculator for basic arithmetic on proper, improper, and mixed fractions.
- Factoring calculator to find the two roots of the denominator before plugging into this page.
- Polynomial long division calculator for the first step when the numerator degree is at least the denominator degree.
- Synthetic division calculator for the shortcut version of polynomial division by (x − c).
- Integral calculator for the integration step that typically follows partial fractions.
- All education calculators.
Related Calculators
More tools from Education



