In algebra, the partial fraction decomposition or partial fraction expansion of a rational fraction (that is, a fraction such that the numerator and the denominator are both polynomials) is an operation that consists of expressing the fraction as a sum of a polynomial (possibly zero) and one or several fractions with a simpler denominator.[1]
In symbols, the partial fraction decomposition of a rational fraction of the form where f and g are polynomials, is its expression as
where
p(x) is a polynomial, and, for each j,
the denominatorgj (x) is a power of an irreducible polynomial (that is not factorable into polynomials of positive degrees), and
the numeratorfj (x) is a polynomial of a smaller degree than the degree of this irreducible polynomial.
When explicit computation is involved, a coarser decomposition is often preferred, which consists of replacing "irreducible polynomial" by "square-free polynomial" in the description of the outcome. This allows replacing polynomial factorization by the much easier-to-compute square-free factorization. This is sufficient for most applications, and avoids introducing irrational coefficients when the coefficients of the input polynomials are integers or rational numbers.
Let
be a rational fraction, where F and G are univariate polynomials in the indeterminatex over a field. The existence of the partial fraction can be proved by applying inductively the following reduction steps.
If and
where G1 and G2 are coprime polynomials, then there exist polynomials and such that
and
This can be proved as follows. Bézout's identity asserts the existence of polynomials C and D such that
(by hypothesis, 1 is a greatest common divisor of G1 and G2).
Let with be the Euclidean division of DF by Setting one gets
It remains to show that By reducing the last sum of fractions to a common denominator, one gets
and thus
Using the preceding decomposition inductively one gets fractions of the form with where G is an irreducible polynomial. If k > 1, one can decompose further, by using that an irreducible polynomial is a square-free polynomial, that is, is a greatest common divisor of the polynomial and its derivative. If is the derivative of G, Bézout's identity provides polynomials C and D such that and thus Euclidean division of by gives polynomials and such that and Setting one gets
with
Iterating this process with in place of leads eventually to the following theorem.
Theorem — Let f and g be nonzero polynomials over a field K. Write g as a product of powers of distinct irreducible polynomials :
There are (unique) polynomials b and aij with deg aij < deg pi such that
If deg f < deg g, then b = 0.
The uniqueness can be proved as follows. Let d = max(1 + deg f, deg g). All together, b and the aij have d coefficients. The shape of the decomposition defines a linear map from coefficient vectors to polynomials f of degree less than d. The existence proof means that this map is surjective. As the two vector spaces have the same dimension, the map is also injective, which means uniqueness of the decomposition. By the way, this proof induces an algorithm for computing the decomposition through linear algebra.
If K is the field of complex numbers, the fundamental theorem of algebra implies that all pi have degree one, and all numerators are constants. When K is the field of real numbers, some of the pi may be quadratic, so, in the partial fraction decomposition, quotients of linear polynomials by powers of quadratic polynomials may also occur.
In the preceding theorem, one may replace "distinct irreducible polynomials" by "pairwise coprime polynomials that are coprime with their derivative". For example, the pi may be the factors of the square-free factorization of g. When K is the field of rational numbers, as it is typically the case in computer algebra, this allows to replace factorization by greatest common divisor computation for computing a partial fraction decomposition.
For the purpose of symbolic integration, the preceding result may be refined into
Theorem — Let f and g be nonzero polynomials over a field K. Write g as a product of powers of pairwise coprime polynomials which have no multiple root in an algebraically closed field:
There are (unique) polynomials b and cij with deg cij < deg pi such that
where denotes the derivative of
This reduces the computation of the antiderivative of a rational function to the integration of the last sum, which is called the logarithmic part, because its antiderivative is a linear combination of logarithms.
There are various methods to compute decomposition in the Theorem. One simple way is called Hermite's method. First, b is immediately computed by Euclidean division of f by g, reducing to the case where deg(f) < deg(g). Next, one knows deg(cij) < deg(pi), so one may write each cij as a polynomial with unknown coefficients. Reducing the sum of fractions in the Theorem to a common denominator, and equating the coefficients of each power of x in the two numerators, one gets a system of linear equations which can be solved to obtain the desired (unique) values for the unknown coefficients.
Given two polynomials and , where the αn are distinct constants and deg P < n, explicit expressions for partial fractions can be obtained by supposing that
and solving for the ci constants, by substitution, by equating the coefficients of terms involving the powers of x, or otherwise. (This is a variant of the method of undetermined coefficients. After both sides of the equation are multiplied by Q(x), one side of the equation is a specific polynomial, and the other side is a polynomial with undetermined coefficients. The equality is possible only when the coefficients of like powers of x are equal. This yields n equations in n unknowns, the ck.)
A more direct computation, which is strongly related to Lagrange interpolation, consists of writing
where is the derivative of the polynomial . The coefficients of are called the residues of f/g.
This approach does not account for several other cases, but can be modified accordingly:
If then it is necessary to perform the Euclidean division of P by Q, using polynomial long division, giving P(x) = E(x) Q(x) + R(x) with deg R < n. Dividing by Q(x) this gives and then seek partial fractions for the remainder fraction (which by definition satisfies deg R < deg Q).
If Q(x) contains factors which are irreducible over the given field, then the numerator N(x) of each partial fraction with such a factor F(x) in the denominator must be sought as a polynomial with deg N < deg F, rather than as a constant. For example, take the following decomposition over R:
Suppose Q(x) = (x − α)rS(x) and S(α) ≠ 0, that is α is a root of Q(x) of multiplicityr. In the partial fraction decomposition, the r first powers of (x − α) will occur as denominators of the partial fractions (possibly with a zero numerator). For example, if S(x) = 1 the partial fraction decomposition has the form
Over the complex numbers, suppose f(x) is a rational proper fraction, and can be decomposed into
Let
then according to the uniqueness of Laurent series, aij is the coefficient of the term (x − xi)−1 in the Laurent expansion of gij(x) about the point xi, i.e., its residue
This is given directly by the formula
or in the special case when xi is a simple root,
when
where , , are real numbers with , and , are positive integers. The terms are the linear factors of which correspond to real roots of , and the terms are the irreducible quadratic factors of which correspond to pairs of complex conjugate roots of .
Then the partial fraction decomposition of is the following:
Here, P(x) is a (possibly zero) polynomial, and the Air, Bir, and Cir are real constants. There are a number of ways the constants can be found.
The most straightforward method is to multiply through by the common denominator q(x). We then obtain an equation of polynomials whose left-hand side is simply p(x) and whose right-hand side has coefficients which are linear expressions of the constants Air, Bir, and Cir. Since two polynomials are equal if and only if their corresponding coefficients are equal, we can equate the coefficients of like terms. In this way, a system of linear equations is obtained which always has a unique solution. This solution can be found using any of the standard methods of linear algebra. It can also be found with limits (see Example 5).
The factor x2 − 4x + 8 is irreducible over the reals, as its discriminant(−4)2 − 4×8 = −16 is negative. Thus the partial fraction decomposition over the reals has the shape
Multiplying through by x3 − 4x2 + 8x, we have the polynomial identity
Taking x = 0, we see that 16 = 8A, so A = 2. Comparing the x2 coefficients, we see that 4 = A + B = 2 + B, so B = 2. Comparing linear coefficients, we see that −8 = −4A + C = −8 + C, so C = 0. Altogether,
The fraction can be completely decomposed using complex numbers. According to the fundamental theorem of algebra every complex polynomial of degree n has n (complex) roots (some of which can be repeated). The second fraction can be decomposed to:
Multiplying through by the denominator gives:
Equating the coefficients of x and the constant (with respect to x) coefficients of both sides of this equation, one gets a system of two linear equations in D and E, whose solution is
Thus we have a complete decomposition:
One may also compute directly A, D and E with the residue method (see also example 4 below).
Multiplying through by the denominator on the left-hand side we have the polynomial identity
Now we use different values of x to compute the coefficients:
Solving this we have:
Using these values we can write:
We compare the coefficients of x6 and x5 on both side and we have:
Therefore:
which gives us B = 0. Thus the partial fraction decomposition is given by:
Alternatively, instead of expanding, one can obtain other linear dependences on the coefficients computing some derivatives at in the above polynomial identity. (To this end, recall that the derivative at x = a of (x − a)mp(x) vanishes if m > 1 and is just p(a) for m = 1.) For instance the first derivative at x = 1 gives
Thus, f(z) can be decomposed into rational functions whose denominators are z+1, z−1, z+i, z−i. Since each term is of power one, −1, 1, −i and i are simple poles.
Hence, the residues associated with each pole, given by
are
respectively, and
The partial fraction decomposition of a rational function can be related to Taylor's theorem as follows. Let
be real or complex polynomials
assume that
satisfies
Also define
Then we have
if, and only if, each polynomial is the Taylor polynomial of of order at the point :
Taylor's theorem (in the real or complex case) then provides a proof of the existence and uniqueness of the partial fraction decomposition, and a characterization of the coefficients.
The idea of partial fractions can be generalized to other integral domains, say the ring of integers where prime numbers take the role of irreducible denominators. For example:
Rao, K. R.; Ahmed, N. (1968). "Recursive techniques for obtaining the partial fraction expansion of a rational function". IEEE Trans. Educ. 11 (2): 152–154. Bibcode:1968ITEdu..11..152R. doi:10.1109/TE.1968.4320370.
Chang, Feng-Cheng (1973). "Recursive formulas for the partial fraction expansion of a rational function with multiple poles". Proc. IEEE. 61 (8): 1139–1140. doi:10.1109/PROC.1973.9216.
Eustice, Dan; Klamkin, M. S. (1979). "On the coefficients of a partial fraction decomposition". American Mathematical Monthly. Vol. 86, no. 6. pp. 478–480. JSTOR2320421.
Velleman, Daniel J. (2002). "Partial fractions, binomial coefficients and the integral of an odd power of sec theta". Amer. Math. Monthly. 109 (8): 746–749. doi:10.2307/3072399. JSTOR3072399.
Slota, Damian; Witula, Roman (2005). "Three brick method of the partial fraction decomposition of some type of rational expression". Computational Science – ICCS 2005. Lect. Not. Computer Sci. Vol. 33516. pp. 659–662. doi:10.1007/11428862_89. ISBN978-3-540-26044-8.
Kung, Sidney H. (2006). "Partial fraction decomposition by division". Coll. Math. J. 37 (2): 132–134. doi:10.2307/27646303. JSTOR27646303.
Witula, Roman; Slota, Damian (2008). "Partial fractions decompositions of some rational functions". Appl. Math. Comput. 197: 328–336. doi:10.1016/j.amc.2007.07.048. MR2396331.