Enter a numerator and a denominator to get the partial fraction decomposition with exact fractions, the factored denominator and every step. For example (5x − 3)/(x² − 2x − 3) = 3/(x − 3) + 2/(x + 1), and repeated factors work too: (3x + 5)/((x − 1)²(x + 2)) = 1/(9(x − 1)) + 8/(3(x − 1)²) − 1/(9(x + 2)).
3/(x − 3) + 2/(x + 1)
(x − 3)(x + 1)
A = 3, B = 2
Check: x = 0.37: 0.319169604 = 0.319169604 · x = 1.91: -2.065008355 = -2.065008355 · x = -2.73: -1.679629574 = -1.679629574
Decompose (5x − 3)/(x² − 2x − 3).
3/(x − 3) + 2/(x + 1)
Decompose (3x + 5)/((x − 1)²(x + 2)).
1/(9(x − 1)) + 8/(3(x − 1)²) − 1/(9(x + 2))
Decompose (2x² + x + 4)/(x(x² + 4)).
1/x + (x + 1)/(x² + 4)
Decompose (x³ + 2x)/(x² − 1).
x + 3/(2(x − 1)) + 3/(2(x + 1))
1. Exact arithmetic: coefficients are stored as exact fractions, never decimals, so answers like 8/3 and −1/9 are exact.
2. Factor the denominator: rational roots are found with the rational root theorem; what remains is split into irreducible quadratics (including quartics such as x⁴ + 5x² + 4 = (x² + 1)(x² + 4)).
3. Solve for the constants: the template A/(x − a) + … + (Bx + C)/(x² + bx + c) is multiplied out and the coefficients are matched, giving a linear system solved exactly by Gaussian elimination.
4. Check: the original and decomposed functions are compared at several x values.
Press Explain the steps with AI under any answer and the MathAI GPT math solver opens with your numbers already filled in, then explains the method line by line and answers follow-up questions. You can also type or photograph the whole question. On your phone, use MathAI GPT for iPhone or MathAI GPT for Android.
It rewrites a rational function P(x)/Q(x) as a sum of simpler fractions whose denominators are the factors of Q(x). For example (5x − 3)/(x² − 2x − 3) = 3/(x − 3) + 2/(x + 1). It is used to integrate rational functions and to find inverse Laplace transforms.
Each linear factor (x − a) gets A/(x − a). A repeated factor (x − a)ᵏ gets A₁/(x − a) + A₂/(x − a)² + … + Aₖ/(x − a)ᵏ. An irreducible quadratic factor (x² + bx + c) gets (Bx + C)/(x² + bx + c), and a repeated quadratic gets one such term for each power.
Do polynomial long division first. The quotient is a polynomial part and only the remainder is decomposed. For (x³ + 2x)/(x² − 1) the quotient is x and the remainder 3x gives 3/(2(x − 1)) + 3/(2(x + 1)).
For a non-repeated linear factor (x − a), cover that factor in the denominator and substitute x = a into what is left. For (5x − 3)/((x − 3)(x + 1)), A = (15 − 3)/(3 + 1) = 3 and B = (−5 − 3)/(−1 − 3) = 2. The calculator solves the full linear system exactly, so it also handles repeated and quadratic factors.
Copy this URL into your resource list, syllabus, LibGuide or assignment:
https://mathaigpt.com/calculators/partial-fractions-calculatorMathAI GPT. (2026). Partial Fractions Calculator. https://mathaigpt.com/calculators/partial-fractions-calculator