Education
Partial Fraction Decomposition Calculator
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₂).
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
- 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.
Frequently asked questions
A way to rewrite a rational function as a sum of simpler rational functions. For example, (3x + 1) / ((x − 1)(x − 2)) can be split into A / (x − 1) + B / (x − 2). The simpler pieces are easier to integrate or invert.
Multiply both sides by the common denominator, then evaluate at strategic x values (the roots of the original denominator). The calculator uses the closed-form A = (a·r₁ + b)/(r₁ − r₂) and B = (a·r₂ + b)/(r₂ − r₁).
When the denominator has a repeated factor (x − r)², the decomposition takes a different shape: A/(x − r) + B/(x − r)². That case is out of scope for this calculator.
If the denominator includes a factor like x² + 1 that has no real roots, the partial fraction piece uses (Ax + B)/(x² + 1). That is also out of scope for this calculator's distinct-linear-factor form.
Use polynomial long division first to write the rational function as a polynomial plus a proper rational remainder. Then decompose the remainder. The polynomial long division calculator handles the first step.
Mostly in integration (so you can integrate each simpler fraction with the log rule) and in inverse Laplace transforms (so you can invert each piece using a standard table).
Related calculators
Education
Final Grade Calculator
Calculate your final course grade from your current grade and your final exam score.
Education
Weighted Grade Calculator
Combine assignments, quizzes, and exams by weight to get a precise weighted course average.
Education
Final Exam Calculator
Find out exactly what you need to score on your final exam to hit your target course grade.