Partial fraction decomposition

From testwiki
Jump to navigation Jump to search

Template:Short description Template:More footnotes 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]

The importance of the partial fraction decomposition lies in the fact that it provides algorithms for various computations with rational functions, including the explicit computation of antiderivatives,[2] Taylor series expansions, inverse Z-transforms, and inverse Laplace transforms. The concept was discovered independently in 1702 by both Johann Bernoulli and Gottfried Leibniz.[3]

In symbols, the partial fraction decomposition of a rational fraction of the form f(x)g(x), where Template:Math and Template:Math are polynomials, is the expression of the rational fraction as

f(x)g(x)=p(x)+∑jfj(x)gj(x)

where Template:Math is a polynomial, and, for each Template:Mvar, the denominator Template:Math is a power of an irreducible polynomial (i.e. not factorizable into polynomials of positive degrees), and the numerator Template:Math 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.

Basic principles

Let R(x)=FG be a rational fraction, where Template:Mvar and Template:Mvar are univariate polynomials in the indeterminate Template:Math over a field. The existence of the partial fraction decomposition can be proved by applying inductively the following reduction steps.

Polynomial part

There exist two polynomials Template:Mvar and Template:Math such that FG=E+F1G, and deg⁡F1<deg⁡G, where deg⁡P denotes the degree of the polynomial Template:Mvar.

This results immediately from the Euclidean division of Template:Mvar by Template:Mvar, which asserts the existence of Template:Mvar and Template:Math such that F=EG+F1 and deg⁡F1<deg⁡G.

This allows supposing in the next steps that deg⁡F<deg⁡G.

Factors of the denominator

If deg⁡F<deg⁡G, and G=G1G2, where Template:Math and Template:Math are coprime polynomials, then there exist polynomials F1 and F2 such that FG=F1G1+F2G2, and deg⁡F1<deg⁡G1anddeg⁡F2<deg⁡G2.

This can be proved as follows. Bézout's identity asserts the existence of polynomials Template:Math and Template:Math such that CG1+DG2=1 (by hypothesis, Template:Math is a greatest common divisor of Template:Math and Template:Math).

Let DF=G1Q+F1 with deg⁡F1<deg⁡G1 be the Euclidean division of Template:Mvar by G1. Setting F2=CF+QG2, one gets FG=F(CG1+DG2)G1G2=DFG1+CFG2=F1+G1QG1+F2−G2QG2=F1G1+Q+F2G2−Q=F1G1+F2G2. It remains to show that deg⁡F2<deg⁡G2. By reducing the last sum of fractions to a common denominator, one gets F=F2G1+F1G2, and thus deg⁡F2=deg⁡(F−F1G2)−deg⁡G1≤max⁡(deg⁡F,deg⁡(F1G2))−deg⁡G1<max⁡(deg⁡G,deg⁡(G1G2))−deg⁡G1=deg⁡G2

Powers in the denominator

Using the preceding decomposition inductively one gets fractions of the form FGk, with deg⁡F<deg⁡Gk=kdeg⁡G, where Template:Mvar is an irreducible polynomial. If Template:Math, one can decompose further, by using that an irreducible polynomial is a square-free polynomial, that is, 1 is a greatest common divisor of the polynomial and its derivative. If G′ is the derivative of Template:Mvar, Bézout's identity provides polynomials Template:Mvar and Template:Mvar such that CG+DG′=1 and thus F=FCG+FDG′. Euclidean division of FDG′ by G gives polynomials Hk and Q such that FDG′=QG+Hk and deg⁡Hk<deg⁡G. Setting Fk−1=FC+Q, one gets FGk=HkGk+Fk−1Gk−1, with deg⁡Hk<deg⁡G.

Iterating this process with Fk−1Gk−1 in place of FGk leads eventually to the following theorem.

Statement

Template:Math theorem

The uniqueness can be proved as follows. Let Template:Math. All together, Template:Math and the Template:Math have Template:Mvar coefficients. The shape of the decomposition defines a linear map from coefficient vectors to polynomials Template:Mvar of degree less than Template:Mvar. 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 Template:Math is the field of complex numbers, the fundamental theorem of algebra implies that all Template:Math have degree one, and all numerators aij are constants. When Template:Math is the field of real numbers, some of the Template:Math 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 Template:Math may be the factors of the square-free factorization of Template:Math. When Template:Math 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.

Application to symbolic integration

For the purpose of symbolic integration, the preceding result may be refined into

Template:Math theorem

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.

Procedure

Given two polynomials P(x) and Q(x)=(x−α1)(x−α2)⋯(x−αn), where the αn are distinct constants and Template:Math, explicit expressions for partial fractions can be obtained by supposing that P(x)Q(x)=c1x−α1+c2x−α2+⋯+cnx−αn 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 P(x)Q(x)=∑i=1nP(αi)Q′(αi)1(x−αi) where Q′ is the derivative of the polynomial Q. The coefficients of 1x−αj are called the residues of f/g.

This approach does not account for several other cases, but can be modified accordingly:

  • If deg⁡P≥deg⁡Q, then it is necessary to perform the Euclidean division of P by Q, using polynomial long division, giving Template:Math with Template:Math. Dividing by Q(x) this gives P(x)Q(x)=E(x)+R(x)Q(x), and then seek partial fractions for the remainder fraction (which by definition satisfies Template:Math).
  • If Q(x) contains nonlinear 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 Template:Math, rather than as a constant. For example, take the following decomposition over R: x2+1(x+2)(x−1)(x2+x+1)=ax+2+bx−1+cx+dx2+x+1.
  • Suppose Template:Math and Template:Math, that is Template:Math is a root of Template:Math of multiplicity Template:Mvar. In the partial fraction decomposition, the Template:Mvar first powers of Template:Math will occur as denominators of the partial fractions (possibly with a zero numerator). For example, if Template:Math the partial fraction decomposition has the form P(x)Q(x)=P(x)(x−α)r=c1x−α+c2(x−α)2+⋯+cr(x−α)r.

Illustration

In an example application of this procedure, Template:Math can be decomposed in the form

3x+5(1−2x)2=A(1−2x)+B(1−2x).

Clearing denominators shows that Template:Math. Expanding and equating the coefficients of powers of Template:Math gives Template:Block indent

Solving this system of linear equations for Template:Math and Template:Math yields Template:Math. Hence,

3x+5(1−2x)2=13/2(1−2x)2+−3/2(1−2x).

Residue method

Template:See also Over the complex numbers, suppose f(x) is a rational proper fraction, and can be decomposed into

f(x)=∑i(ai1x−xi+ai2(x−xi)2+⋯+aiki(x−xi)ki).

Let gij(x)=(x−xi)j−1f(x), then according to the uniqueness of Laurent series, aij is the coefficient of the term Template:Math in the Laurent expansion of gij(x) about the point xi, i.e., its residue aij=Res⁡(gij,xi).

This is given directly by the formula aij=1(ki−j)!limx→xidki−jdxki−j((x−xi)kif(x)), or in the special case when xi is a simple root, ai1=P(xi)Q′(xi), when f(x)=P(x)Q(x).

Over the reals

Partial fractions are used in real-variable integral calculus to find real-valued antiderivatives of rational functions. Partial fraction decomposition of real rational functions is also used to find their Inverse Laplace transforms. For applications of partial fraction decomposition over the reals, see

General result

Let f(x) be any rational function over the real numbers. In other words, suppose there exist real polynomials functions p(x) and q(x)≠0, such that f(x)=p(x)q(x)

By dividing both the numerator and the denominator by the leading coefficient of q(x), we may assume without loss of generality that q(x) is monic. By the fundamental theorem of algebra, we can write

q(x)=(x−a1)j1⋯(x−am)jm(x2+b1x+c1)k1⋯(x2+bnx+cn)kn

where a1,…,am, b1,…,bn, c1,…,cn are real numbers with bi2−4ci<0, and j1,…,jm, k1,…,kn are positive integers. The terms (x−ai) are the linear factors of q(x) which correspond to real roots of q(x), and the terms (xi2+bix+ci) are the irreducible quadratic factors of q(x) which correspond to pairs of complex conjugate roots of q(x).

Then the partial fraction decomposition of f(x) is the following:

f(x)=p(x)q(x)=P(x)+∑i=1m∑r=1jiAir(x−ai)r+∑i=1n∑r=1kiBirx+Cir(x2+bix+ci)r

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).

Examples

Example 1

f(x)=1x2+2x−3

Here, the denominator splits into two distinct linear factors:

q(x)=x2+2x−3=(x+3)(x−1)

so we have the partial fraction decomposition

f(x)=1x2+2x−3=Ax+3+Bx−1

Multiplying through by the denominator on the left-hand side gives us the polynomial identity

1=A(x−1)+B(x+3)

Substituting x = −3 into this equation gives A = −1/4, and substituting x = 1 gives B = 1/4, so that

f(x)=1x2+2x−3=14(−1x+3+1x−1)

Example 2

f(x)=x3+16x3−4x2+8x

After long division, we have

f(x)=1+4x2−8x+16x3−4x2+8x=1+4x2−8x+16x(x2−4x+8)

The factor Template:Math is irreducible over the reals, as its discriminant Template:Math is negative. Thus the partial fraction decomposition over the reals has the shape

4x2−8x+16x(x2−4x+8)=Ax+Bx+Cx2−4x+8

Multiplying through by Template:Math, we have the polynomial identity

4x2−8x+16=A(x2−4x+8)+(Bx+C)x

Taking Template:Math, we see that Template:Math, so Template:Math. Comparing the x2 coefficients, we see that Template:Math, so Template:Math. Comparing linear coefficients, we see that Template:Math, so Template:Math. Altogether,

f(x)=1+2(1x+xx2−4x+8)

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:

xx2−4x+8=Dx−(2+2i)+Ex−(2−2i)

Multiplying through by the denominator gives:

x=D(x−(2−2i))+E(x−(2+2i))

Equating the coefficients of Template:Math and the constant (with respect to Template:Math) coefficients of both sides of this equation, one gets a system of two linear equations in Template:Math and Template:Math, whose solution is

D=1+i2i=1−i2,E=1−i−2i=1+i2.

Thus we have a complete decomposition:

f(x)=x3+16x3−4x2+8x=1+2x+1−ix−(2+2i)+1+ix−(2−2i)

One may also compute directly Template:Math and Template:Math with the residue method (see also example 4 below).

Example 3

This example illustrates almost all the "tricks" we might need to use, short of consulting a computer algebra system.

f(x)=x9−2x6+2x5−7x4+13x3−11x2+12x−4x7−3x6+5x5−7x4+7x3−5x2+3x−1

After long division and factoring the denominator, we have

f(x)=x2+3x+4+2x6−4x5+5x4−3x3+x2+3x(x−1)3(x2+1)2

The partial fraction decomposition takes the form

2x6−4x5+5x4−3x3+x2+3x(x−1)3(x2+1)2=Ax−1+B(x−1)2+C(x−1)3+Dx+Ex2+1+Fx+G(x2+1)2.

Multiplying through by the denominator on the left-hand side we have the polynomial identity

2x6−4x5+5x4−3x3+x2+3x=A(x−1)2(x2+1)2+B(x−1)(x2+1)2+C(x2+1)2+(Dx+E)(x−1)3(x2+1)+(Fx+G)(x−1)3

Now we use different values of x to compute the coefficients:

{4=4Cx=12+2i=(Fi+G)(2+2i)x=i0=A−B+C−E−Gx=0

Solving this we have:

{C=1F=0,G=1E=A−B

Using these values we can write:

2x6−4x5+5x4−3x3+x2+3x=A(x−1)2(x2+1)2+B(x−1)(x2+1)2+(x2+1)2+(Dx+(A−B))(x−1)3(x2+1)+(x−1)3=(A+D)x6+(−A−3D)x5+(2B+4D+1)x4+(−2B−4D+1)x3+(−A+2B+3D−1)x2+(A−2B−D+3)x

We compare the coefficients of x6 and x5 on both side and we have:

{A+D=2−A−3D=−4⇒A=D=1.

Therefore:

2x6−4x5+5x4−3x3+x2+3x=2x6−4x5+(2B+5)x4+(−2B−3)x3+(2B+1)x2+(−2B+3)x

which gives us B = 0. Thus the partial fraction decomposition is given by:

f(x)=x2+3x+4+1(x−1)+1(x−1)3+x+1x2+1+1(x2+1)2.

Alternatively, instead of expanding, one can obtain other linear dependences on the coefficients computing some derivatives at x=1,ı 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

2⋅6−4⋅5+5⋅4−3⋅3+2+3=A⋅(0+0)+B⋅(4+0)+8+D⋅0

that is 8 = 4B + 8 so B = 0.

Example 4 (residue method)

f(z)=z2−5(z2−1)(z2+1)=z2−5(z+1)(z−1)(z+i)(z−i)

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 P(zi)Q′(zi)=zi2−54zi3, are 1,−1,3i2,−3i2, respectively, and

f(z)=1z+1−1z−1+3i21z+i−3i21z−i.

Example 5 (limit method)

Limits can be used to find a partial fraction decomposition.[4] Consider the following example:

1x3−1

First, factor the denominator which determines the decomposition:

1x3−1=1(x−1)(x2+x+1)=Ax−1+Bx+Cx2+x+1.

Multiplying everything by x−1, and taking the limit when x→1, we get

limx→1((x−1)(Ax−1+Bx+Cx2+x+1))=limx→1A+limx→1(x−1)(Bx+C)x2+x+1=A.

On the other hand,

limx→1(x−1)(x−1)(x2+x+1)=limx→11x2+x+1=13,

and thus:

A=13.

Multiplying by Template:Math and taking the limit when x→∞, we have

limx→∞x(Ax−1+Bx+Cx2+x+1)=limx→∞Axx−1+limx→∞Bx2+Cxx2+x+1=A+B,

and

limx→∞x(x−1)(x2+x+1)=0.

This implies Template:Math and so B=−13.

For Template:Math, we get −1=−A+C, and thus C=−23.

Putting everything together, we get the decomposition

1x3−1=13(1x−1+−x−2x2+x+1).

Example 6 (integral)

Suppose we have the indefinite integral:

∫x4+x3+x2+1x2+x−2dx

Before performing decomposition, it is obvious we must perform polynomial long division and factor the denominator. Doing this would result in:

∫(x2+3+−3x+7(x+2)(x−1))dx

Upon this, we may now perform partial fraction decomposition.

∫(x2+3+−3x+7(x+2)(x−1))dx=∫(x2+3+A(x+2)+B(x−1))dx so: A(x−1)+B(x+2)=−3x+7. Upon substituting our values, in this case, where x=1 to solve for B and x=-2 to solve for A, we will result in:

A=−133 ,B=43

Plugging all of this back into our integral allows us to find the answer:

∫(x2+3+−13/3(x+2)+4/3(x−1))dx=x33 +3x−133ln⁡(|x+2|)+43ln⁡(|x−1|)+C

The role of the Taylor polynomial

The partial fraction decomposition of a rational function can be related to Taylor's theorem as follows. Let

P(x),Q(x),A1(x),…,Ar(x)

be real or complex polynomials assume that

Q=∏j=1r(x−λj)νj,

satisfies deg⁡A1<ν1,…,deg⁡Ar<νr,anddeg⁡(P)<deg⁡(Q)=∑j=1rνj.

Also define

Qi=∏j≠i(x−λj)νj=Q(x−λi)νi,1⩽i⩽r.

Then we have

PQ=∑j=1rAj(x−λj)νj

if, and only if, each polynomial Ai(x) is the Taylor polynomial of PQi of order νi−1 at the point λi:

Ai(x):=∑k=0νi−11k!(PQi)(k)(λi) (x−λi)k.

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.

Sketch of the proof

The above partial fraction decomposition implies, for each 1 ≤ i ≤ r, a polynomial expansion

PQi=Ai+O((x−λi)νi),for x→λi,

so Ai is the Taylor polynomial of PQi, because of the unicity of the polynomial expansion of order νi−1, and by assumption deg⁡Ai<νi.

Conversely, if the Ai are the Taylor polynomials, the above expansions at each λi hold, therefore we also have

P−QiAi=O((x−λi)νi),for x→λi,

which implies that the polynomial P−QiAi is divisible by (x−λi)νi.

For j≠i,QjAj is also divisible by (x−λi)νi, so

P−∑j=1rQjAj

is divisible by Q. Since

deg⁡(P−∑j=1rQjAj)<deg⁡(Q)

we then have

P−∑j=1rQjAj=0,

and we find the partial fraction decomposition dividing by Q.

Fractions of integers

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:

118=12−13−132.

See also

Notes

Template:Reflist

References

Template:Authority control

  1. ↑ Template:Cite book
  2. ↑ Horowitz, Ellis. "Algorithms for partial fraction decomposition and rational function integration." Proceedings of the second ACM symposium on Symbolic and algebraic manipulation. ACM, 1971.
  3. ↑ Template:Cite book
  4. ↑ Template:Cite book