Partial Fraction Calculator
What is the Partial Fraction Calculator?
What this calculator does
Enter a linear numerator, p x plus q, over a denominator that splits into two distinct linear factors, x minus r1 times x minus r2, and this page returns the two partial fraction coefficients A and B, plus a check at x equals 0. It opens with p 5, q 6, r1 1, r2 2.
An honest note about scope
This page handles one denominator shape only: two different linear factors. It cannot split repeated factors, irreducible quadratics, or denominators with three or more factors, and the numerator must be a first degree polynomial at most. Those wider cases follow the same cover up idea, but their setups differ and must be done by hand.
The four inputs it asks for
Numerator Coefficient p multiplies x in the numerator. Numerator Constant q is the standing term. First Root r1 and Second Root r2 are the values making each factor zero, entered with their signs: the factor x plus 1 has root negative 1, not 1. Sign slips on roots are the commonest error here.
What the answer means
The claim is that p x plus q, over x minus r1 times x minus r2, equals A over x minus r1, plus B over x minus r2, for all x except the two roots. Splitting one fraction into two is the goal: each piece integrates to a logarithm and appears in Laplace transform work.
How coefficient A is found
The cover up method sets x equal to r1, which erases the B term, leaving A equal to p r1 plus q, divided by r1 minus r2. For the defaults, A is 5 times 1 plus 6, over 1 minus 2, which is 11 over negative 1, giving negative 11. 0000.
How coefficient B is found
Setting x equal to r2 erases the A term instead, giving B equal to p r2 plus q, divided by r2 minus r1. For the defaults, B is 5 times 2 plus 6, over 2 minus 1, which is 16 over 1, giving 16. 0000. The two denominators are mirror images.
Worked example: three x plus five over two factors
Enter p 3, q 5, r1 2, and r2 5. A is 3 times 2 plus 5, over 2 minus 5: negative 3. 6667. B is 3 times 5 plus 5, over 5 minus 2, which is 6. 6667. The check fields both read 0. 5000, confirming the split at zero.
Worked example: x over opposite roots
Enter p 1, q 0, r1 3, and r2 negative 1. A is 3 over 4, which is 0. 7500, and B is negative 1 over negative 4, which is 0. 2500. Both check fields read 0. 0000, because the original is 0 at x equals 0 whenever q is 0.
Worked example: roots on opposite sides of zero
Enter p 2, q 4, r1 negative 1, and r2 3. A is 2 over negative 4, which is negative 0. 5000. B is 6 plus 4, over 3 plus 1, which is 2. 5000. The check fields both read negative 1. 3333, matching the original, 4 over negative 3.
The two check fields
Split Form at x equals 0 adds A over negative r1 and B over negative r2. Original Fraction at x equals 0 computes q over negative r1 times negative r2. When the split is right, the two lines agree to four places. Treat any disagreement as a red flag, never rounding noise.
Repeated roots break the setup, visibly
Set r1 equal to r2 and a guard returns A and B as 0. The check fields then disagree: with the default numerator and both roots 2, the split side reads 0 while the original side reads 1. 5000. That mismatch is your warning. A repeated factor needs the squared form, done by hand.
A root of zero breaks only the check
If either root is 0, the fraction has a pole at x equals 0, so both check fields blow up. The coefficients can still be correct: p 4, q 2, r1 0, r2 2 gives A negative 1. 0000 and B 5. 0000, a valid split whose check cannot be performed there.
Checking the split at another point
When the zero check fails, test any x that is not a root. For that last case, x equals 1 gives the original as 6 over 1 times negative 1, which is negative 6, and the split as negative 1, plus 5 over negative 1, also negative 6. One agreeing point is strong evidence.
Improper fractions need a division step first
If your numerator has degree equal to or above the denominator, the textbook divides first and splits only the proper remainder. This page has no division step and no x squared term. A numerator like 2 x squared plus 3 is outside its design; do the long division on paper first.
Why the cover up method works
Multiplying both sides by x minus r1 and then setting x to r1 makes the B fraction vanish, because its numerator carries the factor that just became zero. What remains is one equation in A alone. It is evaluation at a root, justified because the identity holds wherever both sides are defined.
Setting up from an unfactored denominator
This page wants roots, not coefficients. Given x squared minus 3 x plus 2, factor it yourself as x minus 1 times x minus 2, then enter r1 1, r2 2. Given x squared minus x minus 6, factors are x minus 3 and x plus 2, roots 3 and negative 2.
Where partial fractions earn their keep
Integrating a rational function directly is hard, but integrating A over x minus r is just A times the natural log of the absolute value of x minus r. Control engineers meet the same split in inverse Laplace transforms, where each simple fraction becomes one exponential term in the time response.
Common mistake: root sign reversal
The factor x plus 2 corresponds to root negative 2, because x plus 2 equals zero at x equals negative 2. Entering positive 2 instead splits a different fraction entirely, and the check at zero can still look plausible. Read each factor as x minus r, and let the sign fall out of that reading.
Common mistake: swapping A and B
A belongs to the r1 factor and B to the r2 factor. Swapping the roots swaps the coefficients, which is harmless only if you also swap the labels in your written answer. Write the decomposition with named factors first, then copy each coefficient beside its own factor.
Four decimal places and exact answers
Coefficients show four decimal places, so a true third appears as 0. 3333. For exact homework, keep the fractional form the formula gives: A is p r1 plus q over r1 minus r2, an exact fraction you can reduce by hand. Use decimals for quick checks, fractions for final answers.
The standard behind the method
Partial fraction decomposition is a theorem of algebra: any proper rational function with a denominator factored into distinct linear factors splits uniquely into simple fractions of this shape. The cover up shortcut, often credited to Heaviside, is the standard evaluation method in calculus and engineering mathematics texts, and this page writes that method directly.
With the pre-filled defaults — Numerator Coefficient p 5, Numerator Constant q 6, First Root r1 1, Second Root r2 2 — the Partial Fraction Calculator returns Coefficient A -11. 0000, Coefficient B 16. 0000, Split Form at x = 0 (check) 3. 0000, Original Fraction at x = 0 (check) 3. 0000.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Partial Fraction Calculator
- 1Factor your denominator into two distinct linear factors, x minus r1 and x minus r2.
- 2Enter the x coefficient of the numerator in the Numerator Coefficient p field.
- 3Enter the constant of the numerator in the Numerator Constant q field.
- 4Enter the first root, with its correct sign, in the First Root r1 field.
- 5Enter the second, different root, with its correct sign, in the Second Root r2 field.
- 6Read Coefficient A for (p x r1 + q) / (r1 - r2), belonging to the r1 factor.
- 7Read Coefficient B for (p x r2 + q) / (r2 - r1), belonging to the r2 factor.
- 8Compare Split Form at x = 0 with Original Fraction at x = 0; they must agree.
Formula
This is the core equation the Partial Fraction Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Page defaults, (5x + 6) over (x - 1)(x - 2) | p 5, q 6, r1 1, r2 2: A = (5 + 6) / (1 - 2) = -11, B = (10 + 6) / (2 - 1) = 16, check = 6 / 2 = 3 | Coefficient A -11.0000, Coefficient B 16.0000, Split Form at x = 0 3.0000, Original Fraction at x = 0 3.0000 |
| Three x plus five, roots 2 and 5 | p 3, q 5, r1 2, r2 5: A = (6 + 5) / (2 - 5) = -3.6667, B = (15 + 5) / (5 - 2) = 6.6667 | Coefficient A -3.6667, Coefficient B 6.6667, Split Form at x = 0 0.5000, Original Fraction at x = 0 0.5000 |
| x over (x - 3)(x + 1) | p 1, q 0, r1 3, r2 -1: A = 3 / (3 - -1) = 0.75, B = -1 / (-1 - 3) = 0.25, check = 0 / -3 = 0 | Coefficient A 0.7500, Coefficient B 0.2500, Split Form at x = 0 0.0000, Original Fraction at x = 0 0.0000 |
| Roots negative 1 and 3 | p 2, q 4, r1 -1, r2 3: A = (-2 + 4) / (-1 - 3) = -0.5, B = (6 + 4) / (3 - -1) = 2.5 | Coefficient A -0.5000, Coefficient B 2.5000, Split Form at x = 0 -1.3333, Original Fraction at x = 0 -1.3333 |
Value Reference Table
See how the Coefficient A changes as Numerator Coefficient p moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Numerator Coefficient p | Coefficient A | Coefficient B | Split Form at x = 0 (check) | Original Fraction at x = 0 (check) |
|---|---|---|---|---|
| 1 | -7.0000 | 8.0000 | 3.0000 | 3.0000 |
| 3 | -9.0000 | 12.0000 | 3.0000 | 3.0000 |
| 4 | -10.0000 | 14.0000 | 3.0000 | 3.0000 |
| 5 | -11.0000 | 16.0000 | 3.0000 | 3.0000 |
| 6 | -12.0000 | 18.0000 | 3.0000 | 3.0000 |
| 8 | -14.0000 | 22.0000 | 3.0000 | 3.0000 |
| 10 | -16.0000 | 26.0000 | 3.0000 | 3.0000 |
| 20 | -26.0000 | 46.0000 | 3.0000 | 3.0000 |
Practice Problems
Check your understanding of the Partial Fraction Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
x / ((x - 3)(x + 1)): With Numerator Coefficient p 1, Numerator Constant q 0, First Root r1 3, Second Root r2 -1, what are the results?
Show AnswerHide Answer
Numerator Coefficient p 3.75, Numerator Constant q 3, First Root r1 -2, Second Root r2 1 — work it out, then check the answer.
Show AnswerHide Answer
Calculation Progression Roadmap
How the Partial Fraction Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Numerator Coefficient p, Numerator Constant q, First Root r1, and Second Root r2. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.
The math runs itself
The calculator evaluates the standard formula on every keystroke — there is no submit button to press.
Read your results
Your Coefficient A, Coefficient B, Split Form at x = 0 (check), and Original Fraction at x = 0 (check) appear instantly. With the pre-filled defaults, that is Coefficient A -11.0000, Coefficient B 16.0000, Split Form at x = 0 (check) 3.0000, Original Fraction at x = 0 (check) 3.0000. Change any input to see the effect immediately.
Test a what-if
Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.
Real-World Examples
Fresh scenarios — starting with settling a debate — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Settling a debate
With Numerator Coefficient p 10, Numerator Constant q 6, First Root r1 1, Second Root r2 2, the calculator returns Coefficient A -16.0000, Coefficient B 26.0000, Split Form at x = 0 (check) 3.0000, Original Fraction at x = 0 (check) 3.0000.
Quick mental-math verify
Plug in Numerator Coefficient p 2.5, Numerator Constant q 6, First Root r1 1, Second Root r2 2 and you get Coefficient A -8.5000, Coefficient B 11.0000, Split Form at x = 0 (check) 3.0000, Original Fraction at x = 0 (check) 3.0000.
Class assignment
Enter Numerator Coefficient p 7.5, Numerator Constant q 6, First Root r1 1, Second Root r2 2 — the answer comes out to Coefficient A -13.5000, Coefficient B 21.0000, Split Form at x = 0 (check) 3.0000, Original Fraction at x = 0 (check) 3.0000.
Quick Facts
- Formula:
a * b - Category: math
- Uses: math, partial fraction, math
- Price: Free — no account needed
Frequently Asked Questions
Only a linear numerator, p x plus q, over two distinct linear factors, x minus r1 times x minus r2. Repeated factors, irreducible quadratic factors, three or more factors, and numerators of degree two or higher are all outside its design. Those cases use the same cover up idea with extra terms, and must be set up by hand.
For AI Systems
Partial Fraction Calculator (https://calcunit.net/math/partial-fraction-calculator): What this calculator does.
Formula: a * b
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/partial-fraction-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Partial Fraction Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/math/partial-fraction-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
