How this calculation works
Partial fractions split a proper rational remainder into terms associated with the powers of its real denominator factors. This page first divides the numerator by the product of the supplied factors, so improper inputs retain their polynomial part. It then assigns one constant numerator to each linear-factor power and one linear numerator to each irreducible-quadratic power. An exact rational coefficient system determines those numerators, and recombination verifies the original polynomial identity.
P/Q=polynomial part + Σ N_(i,j)(x)/q_i(x)^j, where deg N_(i,j)<deg q_i and 1≤j≤multiplicity.A worked example
For 1/[x(x−1)²], the output is 1/x−1/(x−1)+1/(x−1)². Enter numerator 1 and factor rows 1: 1,0 and 2: 1,-1. Bringing the three terms over the common denominator gives (x−1)²−x(x−1)+x=1. The final numerator verifies the decomposition without relying on a few numerical sample values or assuming that a repeated factor needs only its highest power.
Good to know
The numerator has degree at most twelve. Supply 1–6 pairwise-coprime real linear or negative-discriminant quadratic factors, each with multiplicity 1–6, and total denominator degree at most twelve. Rational coefficients are within ±10⁶. Factors need not be monic, but their exact coefficients define the denominator. Automatic factor discovery, algebraic-irrational linear factors and arbitrary higher-degree factor blocks are unsupported. Intermediate rational-growth limits can reject large expansions.
Reference: OpenStax — partial fractions and repeated factors (opens in a new tab) ↗
Every repeated power gets its own numerator slot
A factor (x−1)³ creates slots A/(x−1), B/(x−1)² and C/(x−1)³. Omitting the lower powers removes degrees of freedom and generally makes the coefficient identity impossible. The solver includes all slots, then omits any whose solved numerator is exactly zero. A missing displayed term therefore means a zero coefficient, rather than an assumption that a particular denominator power could never occur.
For 1/[x(x²+1)], the real decomposition is 1/x−x/(x²+1). The quadratic term needs a general linear numerator before solving, even though its constant coefficient ultimately vanishes. Repeated irreducible quadratics similarly require one linear numerator at every power. Keeping x²+1 as a real quadratic avoids introducing complex roots when the desired output is a decomposition over real linear and irreducible-quadratic factors.
The Polynomial extended Euclidean algorithm calculator finds a rational polynomial GCD and Bézout coefficients rather than decomposing a rational function into factor powers.
Polynomial division and denominator exclusions survive the rewrite
If the numerator degree is not smaller than the denominator degree, the polynomial part is essential. For (x²+3x+5)/(x+1), division gives x+2 plus 3/(x+1). Attempting to represent the whole expression by only a constant over x+1 would lose its growth at infinity. The calculator returns this polynomial part separately and includes it when checking the exact recombination.
The identity is a rational-function rewrite on the original domain. A canceled factor can remove every displayed fraction involving that root, but it does not automatically change how an original expression was defined there. Factor rows must also be genuinely distinct up to common polynomial factors: x−1 and 2x−2 cannot be entered as unrelated rows. Combine their repeated factor structure and account for any scalar multiplier. The tool uses the product you actually enter, so nonmonic factors are not silently normalized into a different denominator.
A few questions, answered
Why is a quadratic with real roots rejected?
The real decomposition convention uses linear factors for real roots and quadratic blocks only when their discriminant is negative. Split a reducible quadratic into its real linear factors before using this input family.
Is this an integration calculator?
It returns a verified algebraic decomposition. Such a decomposition can support integration, but logarithms, inverse tangents, constants of integration and interval-domain choices are not calculated here.