Partial fraction decomposition for more than calculating integrals
https://www.johndcook.com/blog/2026/06/16/partial-fraction-decomposition/
Nearly everyone who as seen partial fraction decomposition was introduced to it as a way to compute integrals. If _P_(_x_) and _Q_(_x_) are polynomials, then you can break their ratio _P_(_x_)/_Q_(_x_) into a sum of terms that can each be integrated in closed form. As with most topics in a calculus class, partial fractions go by in a blur.
This post will look at partial fractions more generally.
## Computation
Every polynomial with real coefficients can be factored into a product of linear and irreducible quadratic terms. But actually calculating this factorization is difficult if the degree of the denominator is large.
The quadratic equation is easy to use. There are analogs for 3rd and 4th order polynomials, but they’re cumbersome. And there is no formula in general for finding roots of polynomials of degree 5 or higher.
You could find the roots numerically, but if you’re going to go that route, maybe you should evaluate your integral numerically.
Still, it is useful in proving theorems to know that a partial fraction decomposition exists, even if in practice you cannot calculate it.
## Complex numbers
Rational polynomials over the real numbers can be factored into powers of linear terms and irreducible quadratic terms. There are no irreducible quadratics over the complex numbers thanks to the Fundamental Theorem of Algebra, and every polynomial can be factored into a product of linear terms.
This means every rational in _z_ can be broken into a sum of a polynomial in _z_ and polynomials in 1/(_z_ − _z_ _i_) where the _z_ _i_ are the roots of the denominator. This fact is important, for example, in contour integration.
## Principle ideal domains
The concept of partial fraction decomposition can be generalized to the field of fractions over a ring _R_ [1].
If the ring _R_ is a principle ideal domain (PID) [2], then every element _c_ of the field _K_ of fractions over _R_ can be written in the form
where the _p_ _i_ are nonassociate [3] irreducible elements of _R_ , the _r_ _i_ are non-negative integers, and the elements _a_ _i_ and _p_ _i_ are relatively prime.
When _R_ is the ring of of polynomials over a field, _R_ is a PID, and the field of fractions is the set of rational functions over that field. When the field is the real or complex numbers, we get the results above. But the field could be something else, such as a finite field.
## Integers
When _R_ is the ring of integers, the irreducible elements are prime numbers. The nonassociate condition means you can’t count _p_ and − _p_ as distinct elements, so practically this means we only look at positive primes. The field of fractions is the rational numbers. So the theorem above says that every rational number can be written as a sum of fractions where the denominators of the fractions are prime powers and the numerators are relatively prime to the denominators.
The way you would decompose a rational number into fractions with prime power denominators is analogous to the way you’d do partial fraction decomposition in a calculus class. For example, suppose we want to decompose 46/75. The distinct prime factors of 75 are 3 and 5, and so we’d look for fractions with denominators 3, 5, and 25, and in fact
## Footnotes
[1] The field of fractions over _R_ is the set of formal terms _a_ /_b_ where _a_ and _b_ are in _R_ and _b_ ≠ 0. Operations are defined by analogy with rational numbers. If _R_ is an integral domain, the field of fractions really is a field.
[2] A ring is an PID if every ideal can be generated by a single element.
[3] Two elements of an integral domain are said to be associate if they generate the same ideal.