Unit 6, lesson 74

Partial Fraction Decomposition (Linear Factors)

How to split a rational function whose denominator factors into linear factors into a sum of simple fractions, by dividing first, choosing the right form and solving for the constants.

  • Theory part 147
  • Practice part 148
  • Partial Fractions

Adding fractions with different denominators is routine. For example,

2x−1+3x+2=2(x+2)+3(x−1)(x−1)(x+2)=5x+1(x−1)(x+2).\begin{aligned} &\frac{2}{x - 1} + \frac{3}{x + 2} \\[0.8em] &\quad = \frac{2(x + 2) + 3(x - 1)}{(x - 1)(x + 2)} \\[0.8em] &\quad = \frac{5x + 1}{(x - 1)(x + 2)}. \end{aligned}

Partial fraction decomposition runs this backward. Given the single fraction on the right, it recovers the simple pieces on the left, which are easier to graph near each vertical asymptote and which calculus can integrate one at a time.

Key terms

Proper rational function

Definition A rational function is a quotient P(x)Q(x)\frac{P(x)}{Q(x)} of polynomials, where QQ is not the zero polynomial. It is proper if deg⁡P<deg⁡Q\deg P < \deg Q and improper if deg⁡P≥deg⁡Q\deg P \ge \deg Q. Partial fraction decomposition, as described below, applies only to proper rational functions.

In plain words A proper rational function has a top of lower degree than its bottom, just as the proper fraction 27\frac{2}{7} has a top smaller than its bottom.

Example The function 5x+1x2+x−2\frac{5x + 1}{x^2 + x - 2} is proper, with degrees 11 and 22. The function x3x2−1\frac{x^3}{x^2 - 1} is improper, with degrees 33 and 22. So is x2x2+1\frac{x^2}{x^2 + 1}, because equal degrees also count as improper.

Polynomial division first

Definition If PQ\frac{P}{Q} is improper, divide first. The division algorithm gives unique polynomials SS and RR with

P(x)=S(x) Q(x)+R(x),R=0 or deg⁡R<deg⁡Q.\begin{gathered} P(x) = S(x) \, Q(x) + R(x), \\[0.4em] R = 0 \ \text{or} \ \deg R < \deg Q. \end{gathered}

Then P(x)Q(x)=S(x)+R(x)Q(x)\frac{P(x)}{Q(x)} = S(x) + \frac{R(x)}{Q(x)} for every xx with Q(x)≠0Q(x) \ne 0, and only the proper part RQ\frac{R}{Q} is decomposed. Skipping this step cannot work, because a sum of partial fractions is always proper.

In plain words Pull out the polynomial part with long division, exactly as 175=3+25\frac{17}{5} = 3 + \frac{2}{5} pulls out the whole number. Then split up the leftover fraction.

Example For 2x2+3x−1x2−1\frac{2x^2 + 3x - 1}{x^2 - 1} the degrees are equal, so divide. The quotient is 22 and the remainder is 3x+13x + 1, since 2x2+3x−1=2(x2−1)+3x+12x^2 + 3x - 1 = 2(x^2 - 1) + 3x + 1. Decomposing the proper part as in the next section gives

2x2+3x−1x2−1=2+3x+1x2−1=2+2x−1+1x+1.\begin{aligned} &\frac{2x^2 + 3x - 1}{x^2 - 1} = 2 + \frac{3x + 1}{x^2 - 1} \\[0.8em] &\quad = 2 + \frac{2}{x - 1} + \frac{1}{x + 1}. \end{aligned}

Without the division, the form Ax−1+Bx+1\frac{A}{x - 1} + \frac{B}{x + 1} combines to (A+B)x+(A−B)x2−1\frac{(A + B)x + (A - B)}{x^2 - 1}, whose numerator never has an x2x^2 term, so no choice of AA and BB could match.

Distinct linear factors

Definition Suppose the denominator factors as

Q(x)=c(x−r1)(x−r2)⋯(x−rn)\begin{aligned} Q(x) = c&(x - r_1)(x - r_2) \\[0.4em] &\cdots (x - r_n) \end{aligned}

with c≠0c \ne 0 and distinct real numbers r1,…,rnr_1, \ldots, r_n, and suppose deg⁡P<n\deg P < n. Then there are unique real constants A1,…,AnA_1, \ldots, A_n with

P(x)Q(x)=A1x−r1+A2x−r2+⋯+Anx−rn\begin{aligned} \frac{P(x)}{Q(x)} &= \frac{A_1}{x - r_1} + \frac{A_2}{x - r_2} \\[0.8em] &\quad + \cdots + \frac{A_n}{x - r_n} \end{aligned}

for every xx other than r1,…,rnr_1, \ldots, r_n. A factor written as ax+bax + b with a≠0a \ne 0 gets a term Aax+b\frac{A}{ax + b} in the same way.

In plain words Factor the bottom completely. Each different linear factor gets its own fraction with an unknown constant on top.

Example Since x3−x=x(x−1)(x+1)x^3 - x = x(x - 1)(x + 1), the form is

x2+2x−1x3−x=Ax+Bx−1+Cx+1.\begin{aligned} \frac{x^2 + 2x - 1}{x^3 - x} &= \frac{A}{x} + \frac{B}{x - 1} \\[0.8em] &\quad + \frac{C}{x + 1}. \end{aligned}

Multiply both sides by x(x−1)(x+1)x(x - 1)(x + 1) to get

x2+2x−1=A(x−1)(x+1)+Bx(x+1)+Cx(x−1).\begin{aligned} x^2 + 2x - 1 &= A(x - 1)(x + 1) \\[0.4em] &\quad + Bx(x + 1) \\[0.4em] &\quad + Cx(x - 1). \end{aligned}

Putting x=0x = 0 gives −1=−A-1 = -A, so A=1A = 1. Putting x=1x = 1 gives 2=2B2 = 2B, so B=1B = 1. Putting x=−1x = -1 gives −2=2C-2 = 2C, so C=−1C = -1. The answer is

x2+2x−1x3−x=1x+1x−1−1x+1.\begin{aligned} \frac{x^2 + 2x - 1}{x^3 - x} &= \frac{1}{x} + \frac{1}{x - 1} \\[0.8em] &\quad - \frac{1}{x + 1}. \end{aligned}

A quick check at x=2x = 2 gives 76\frac{7}{6} on the left and 12+1−13=76\frac{1}{2} + 1 - \frac{1}{3} = \frac{7}{6} on the right.

Repeated linear factors

Definition If x−rx - r divides QQ exactly kk times, so that (x−r)k(x - r)^k is a factor of QQ but (x−r)k+1(x - r)^{k + 1} is not, then the decomposition of a proper PQ\frac{P}{Q} contains the kk terms

A1x−r+A2(x−r)2+⋯+Ak(x−r)k,\frac{A_1}{x - r} + \frac{A_2}{(x - r)^2} + \cdots + \frac{A_k}{(x - r)^k},

one for every power from 11 to kk. A factor written as (ax+b)k(ax + b)^k with a≠0a \ne 0 gets the same kk terms with ax+bax + b in place of x−rx - r. Together with the terms of the other factors this gives a unique decomposition, valid wherever Q(x)≠0Q(x) \ne 0.

In plain words A squared factor gets two fractions, one over the factor and one over its square. A cubed factor gets three. Leave out a lower power and there is usually no way to find the constants.

Example The factor (x−1)2(x - 1)^2 needs two terms.

2x2+x+1x(x−1)2=Ax+Bx−1+C(x−1)2.\begin{aligned} \frac{2x^2 + x + 1}{x(x - 1)^2} &= \frac{A}{x} + \frac{B}{x - 1} \\[0.8em] &\quad + \frac{C}{(x - 1)^2}. \end{aligned}

Clearing denominators gives

2x2+x+1=A(x−1)2+Bx(x−1)+Cx.\begin{aligned} 2x^2 + x + 1 &= A(x - 1)^2 \\[0.4em] &\quad + Bx(x - 1) + Cx. \end{aligned}

Putting x=0x = 0 gives A=1A = 1, and putting x=1x = 1 gives C=4C = 4. No value of xx isolates BB, so compare the coefficients of x2x^2 instead, which gives 2=A+B2 = A + B and B=1B = 1. The decomposition is

2x2+x+1x(x−1)2=1x+1x−1+4(x−1)2.\begin{aligned} \frac{2x^2 + x + 1}{x(x - 1)^2} &= \frac{1}{x} + \frac{1}{x - 1} \\[0.8em] &\quad + \frac{4}{(x - 1)^2}. \end{aligned}

Coefficient matching

Definition If a decomposition holds, multiplying both sides by Q(x)Q(x) gives two polynomials that agree at every xx with Q(x)≠0Q(x) \ne 0, which is all but finitely many numbers. Two polynomials that agree at infinitely many numbers are identical, because their difference would otherwise be a nonzero polynomial with infinitely many zeros. So the coefficients of each power of xx must match. The identity then holds at every xx, including the zeros of QQ, which is why substituting those zeros is allowed.

In plain words After clearing denominators you have the same polynomial written two ways. Its x2x^2 coefficients must agree, its xx coefficients must agree, and so must its constants.

Example Since x2−3x+2=(x−1)(x−2)x^2 - 3x + 2 = (x - 1)(x - 2), the form is

4x−7x2−3x+2=Ax−1+Bx−2.\frac{4x - 7}{x^2 - 3x + 2} = \frac{A}{x - 1} + \frac{B}{x - 2}.

Clear denominators and collect powers of xx.

4x−7=A(x−2)+B(x−1)=(A+B)x+(−2A−B).\begin{aligned} 4x - 7 &= A(x - 2) + B(x - 1) \\[0.4em] &= (A + B)x + (-2A - B). \end{aligned}

Matching the coefficients of xx and the constants gives A+B=4A + B = 4 and −2A−B=−7-2A - B = -7. Adding the two equations gives −A=−3-A = -3, so A=3A = 3 and B=1B = 1.

Solving a linear system

Definition If deg⁡Q=n\deg Q = n, then after clearing denominators both sides have degree at most n−1n - 1. Matching the coefficients of 1,x,…,xn−11, x, \ldots, x^{n - 1} gives nn linear equations in the nn unknown constants, and by the uniqueness of the decomposition this system has exactly one solution. Solve it by substitution, elimination or matrices, as for any linear system. Substituting the zeros of QQ is a shortcut that gives equations with a single unknown.

In plain words Coefficient matching always hands you a square linear system, as many equations as unknowns, with exactly one answer.

Example Since x3+x2=x2(x+1)x^3 + x^2 = x^2(x + 1), write

6x2+3x−2x2(x+1)=Ax+Bx2+Cx+1.\frac{6x^2 + 3x - 2}{x^2(x + 1)} = \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x + 1}.

Clearing denominators gives 6x2+3x−2=Ax(x+1)+B(x+1)+Cx26x^2 + 3x - 2 = Ax(x + 1) + B(x + 1) + Cx^2, and collecting powers of xx gives

6x2+3x−2=(A+C)x2+(A+B)x+B.\begin{aligned} 6x^2 + 3x - 2 &= (A + C)x^2 \\[0.4em] &\quad + (A + B)x + B. \end{aligned}

The system is

A+C=6,A+B=3,B=−2.\begin{aligned} A + C &= 6, \\ A + B &= 3, \\ B &= -2. \end{aligned}

Working from the bottom, B=−2B = -2, then A=5A = 5, then C=1C = 1. So

6x2+3x−2x2(x+1)=5x−2x2+1x+1.\frac{6x^2 + 3x - 2}{x^2(x + 1)} = \frac{5}{x} - \frac{2}{x^2} + \frac{1}{x + 1}.

Original-domain equality

Definition A partial fraction decomposition is an equality of functions on the domain of the original rational function, the set of all real xx with Q(x)≠0Q(x) \ne 0. At a zero of QQ the original function is undefined, even when every piece of the decomposition happens to be defined there. This can happen only when PP and QQ share a factor, as in rational functions with holes.

In plain words The new form describes the same function only where the old one made sense. A hole in the original graph stays a hole.

Example Decompose 2x−2x2−1\frac{2x - 2}{x^2 - 1} as Ax−1+Bx+1\frac{A}{x - 1} + \frac{B}{x + 1}. From 2x−2=A(x+1)+B(x−1)2x - 2 = A(x + 1) + B(x - 1), putting x=1x = 1 gives A=0A = 0 and putting x=−1x = -1 gives B=2B = 2. So

2x−2x2−1=2x+1\frac{2x - 2}{x^2 - 1} = \frac{2}{x + 1}

for x≠1x \ne 1 and x≠−1x \ne -1. The right side equals 11 at x=1x = 1, but the left side is undefined there. The graph of the original function is the graph of y=2x+1y = \frac{2}{x + 1} with a hole at (1,1)(1, 1).

Check yourself

  1. Decompose x+7x2−x−6\frac{x + 7}{x^2 - x - 6}.
Show the answer

The denominator factors as (x−3)(x+2)(x - 3)(x + 2). From x+7=A(x+2)+B(x−3)x + 7 = A(x + 2) + B(x - 3), putting x=3x = 3 gives 10=5A10 = 5A and putting x=−2x = -2 gives 5=−5B5 = -5B. So A=2A = 2 and B=−1B = -1, and

x+7x2−x−6=2x−3−1x+2\frac{x + 7}{x^2 - x - 6} = \frac{2}{x - 3} - \frac{1}{x + 2}

for x≠3x \ne 3 and x≠−2x \ne -2.

  1. Decompose x3+x2+2x2+x\frac{x^3 + x^2 + 2}{x^2 + x}.
Show the answer

The function is improper, so divide first. Since x3+x2+2=x(x2+x)+2x^3 + x^2 + 2 = x(x^2 + x) + 2, it equals x+2x(x+1)x + \frac{2}{x(x + 1)}. From 2=A(x+1)+Bx2 = A(x + 1) + Bx you get A=2A = 2 and B=−2B = -2, so the answer is

x+2x−2x+1.x + \frac{2}{x} - \frac{2}{x + 1}.
  1. Decompose x2+3x(x+1)2\frac{x^2 + 3}{x(x + 1)^2}.
Show the answer

Use the form Ax+Bx+1+C(x+1)2\frac{A}{x} + \frac{B}{x + 1} + \frac{C}{(x + 1)^2}, so x2+3=A(x+1)2+Bx(x+1)+Cxx^2 + 3 = A(x + 1)^2 + Bx(x + 1) + Cx. Putting x=0x = 0 gives A=3A = 3, putting x=−1x = -1 gives 4=−C4 = -C, so C=−4C = -4, and the x2x^2 coefficients give 1=A+B1 = A + B, so B=−2B = -2. The answer is

3x−2x+1−4(x+1)2.\frac{3}{x} - \frac{2}{x + 1} - \frac{4}{(x + 1)^2}.

At x=1x = 1 both sides equal 11.

How this lesson connects

Where this leads in Calculus