Math Core

Lesson 9.5 · Systems and Matrices

Partial fractions

You already know how to add fractions like 2x−1−1x+3\dfrac{2}{x - 1} - \dfrac{1}{x + 3} into a single fraction. Partial fraction decomposition runs that process backward: it takes one complicated rational expression and splits it into a sum of simpler ones. It is a natural end to this unit because finding the pieces comes down to solving a system of linear equations, and it is a tool you will use constantly in calculus, where simple fractions are far easier to work with than complicated ones.

The idea

Start with a sum you can compute:

2x−1−1x+3=2(x+3)−(x−1)(x−1)(x+3)=x+7(x−1)(x+3).\frac{2}{x - 1} - \frac{1}{x + 3} = \frac{2(x + 3) - (x - 1)}{(x - 1)(x + 3)} = \frac{x + 7}{(x - 1)(x + 3)}.

Now suppose you were handed only the right side. Because its denominator factors into (x−1)(x - 1) and (x+3)(x + 3), you can guess that it came from fractions with those denominators, and write

x+7(x−1)(x+3)=Ax−1+Bx+3\frac{x + 7}{(x - 1)(x + 3)} = \frac{A}{x - 1} + \frac{B}{x + 3}

for some constants AA and BB. The job is to find them.

Step 0: make sure the fraction is proper

Partial fractions work directly only on a proper rational expression, one where the degree of the numerator is less than the degree of the denominator. If it is not, divide first (long division or synthetic division) to write it as a polynomial plus a proper fraction, then decompose the proper part.

For example, x2+1x2−1\dfrac{x^2 + 1}{x^2 - 1} has equal degrees, so divide: x2+1x2−1=1+2x2−1\dfrac{x^2 + 1}{x^2 - 1} = 1 + \dfrac{2}{x^2 - 1}. Only 2x2−1\dfrac{2}{x^2 - 1} gets decomposed.

The forms to use

Factor the denominator completely into linear factors and irreducible quadratic factors (quadratics like x2+4x^2 + 4 that have no real zeros). Each factor contributes its own terms.

Partial fraction forms

  • Each distinct linear factor (ax+b)(ax + b) contributes Aax+b\dfrac{A}{ax + b}.
  • A repeated linear factor (ax+b)k(ax + b)^k contributes one term for each power up to kk: A1ax+b+A2(ax+b)2+⋯+Ak(ax+b)k\dfrac{A_1}{ax + b} + \dfrac{A_2}{(ax + b)^2} + \cdots + \dfrac{A_k}{(ax + b)^k}.
  • Each irreducible quadratic factor (ax2+bx+c)(ax^2 + bx + c) contributes Bx+Cax2+bx+c\dfrac{Bx + C}{ax^2 + bx + c}, with a linear numerator.

For example, x+3(x−1)(x2+4)\dfrac{x + 3}{(x - 1)(x^2 + 4)} has the form Ax−1+Bx+Cx2+4\dfrac{A}{x - 1} + \dfrac{Bx + C}{x^2 + 4}, and 5x(x+2)3\dfrac{5}{x(x + 2)^3} has the form Ax+Bx+2+C(x+2)2+D(x+2)3\dfrac{A}{x} + \dfrac{B}{x + 2} + \dfrac{C}{(x + 2)^2} + \dfrac{D}{(x + 2)^3}.

Finding the constants

Multiply both sides by the full denominator to clear fractions. You get a polynomial identity that must hold for every xx. Then use either (or both) of these methods:

  1. Substitute convenient values. Plug in the zeros of the linear factors; each one wipes out every term but one.
  2. Match coefficients. Expand, collect like powers of xx, and set coefficients on each side equal. This gives a system of linear equations in the unknown constants, exactly the kind of system from the start of this unit.

Worked example: Distinct linear factors

Decompose x+7(x−1)(x+3)\dfrac{x + 7}{(x - 1)(x + 3)}.

Write x+7(x−1)(x+3)=Ax−1+Bx+3\dfrac{x + 7}{(x - 1)(x + 3)} = \dfrac{A}{x - 1} + \dfrac{B}{x + 3} and multiply by (x−1)(x+3)(x - 1)(x + 3):

x+7=A(x+3)+B(x−1).x + 7 = A(x + 3) + B(x - 1).

Set x=1x = 1: 8=4A8 = 4A, so A=2A = 2. Set x=−3x = -3: 4=−4B4 = -4B, so B=−1B = -1. Therefore

x+7(x−1)(x+3)=2x−1−1x+3,\frac{x + 7}{(x - 1)(x + 3)} = \frac{2}{x - 1} - \frac{1}{x + 3},

which matches the sum we started with. Matching coefficients works too: x+7=(A+B)x+(3A−B)x + 7 = (A + B)x + (3A - B) gives the system A+B=1A + B = 1 and 3A−B=73A - B = 7, whose solution is again A=2A = 2, B=−1B = -1.

Worked example: Factor first

Decompose 3x+11x2−x−6\dfrac{3x + 11}{x^2 - x - 6}.

The denominator factors as (x−3)(x+2)(x - 3)(x + 2). Write 3x+11=A(x+2)+B(x−3)3x + 11 = A(x + 2) + B(x - 3).

Set x=3x = 3: 20=5A20 = 5A, so A=4A = 4. Set x=−2x = -2: 5=−5B5 = -5B, so B=−1B = -1.

3x+11x2−x−6=4x−3−1x+2.\frac{3x + 11}{x^2 - x - 6} = \frac{4}{x - 3} - \frac{1}{x + 2}.

Worked example: A repeated linear factor

Decompose x2+2x(x−1)2\dfrac{x^2 + 2}{x(x - 1)^2}.

The factor (x−1)(x - 1) appears twice, so it needs two terms:

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

Multiply by x(x−1)2x(x - 1)^2:

x2+2=A(x−1)2+Bx(x−1)+Cx.x^2 + 2 = A(x - 1)^2 + Bx(x - 1) + Cx.

Set x=0x = 0: 2=A2 = A. Set x=1x = 1: 3=C3 = C. No value of xx isolates BB, so compare the x2x^2 coefficients: on the left it is 11, and on the right it is A+BA + B. So A+B=1A + B = 1, giving B=−1B = -1.

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

Worked example: An irreducible quadratic factor

Decompose 3x2−x−5(x−2)(x2+1)\dfrac{3x^2 - x - 5}{(x - 2)(x^2 + 1)}.

Since x2+1x^2 + 1 has no real zeros, its numerator must be linear:

3x2−x−5=A(x2+1)+(Bx+C)(x−2).3x^2 - x - 5 = A(x^2 + 1) + (Bx + C)(x - 2).

Set x=2x = 2: 12−2−5=5A12 - 2 - 5 = 5A, so A=1A = 1. Expand the right side with A=1A = 1:

x2+1+Bx2−2Bx+Cx−2C=(1+B)x2+(C−2B)x+(1−2C).x^2 + 1 + Bx^2 - 2Bx + Cx - 2C = (1 + B)x^2 + (C - 2B)x + (1 - 2C).

Matching: 1+B=31 + B = 3 gives B=2B = 2, and 1−2C=−51 - 2C = -5 gives C=3C = 3. Check the middle coefficient: C−2B=3−4=−1C - 2B = 3 - 4 = -1. ✓

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

Common mistake

Two setups cause most wrong answers. First, a repeated factor (x−1)2(x - 1)^2 needs both Bx−1\dfrac{B}{x - 1} and C(x−1)2\dfrac{C}{(x - 1)^2}; leaving out the lower power makes the system impossible to solve. Second, an irreducible quadratic needs the linear numerator Bx+CBx + C, not just a constant.

Tip

Check your answer by plugging in a value of xx that you did not use, such as x=0x = 0 or x=5x = 5, into both the original expression and your decomposition. In the first example at x=0x = 0: the original is 7−3\dfrac{7}{-3}, and the decomposition gives 2−1−13=−73\dfrac{2}{-1} - \dfrac{1}{3} = -\dfrac{7}{3}. ✓

Practice

Practice 1

Find the constants AA and BB so that 5x+1(x−1)(x+1)=Ax−1+Bx+1\dfrac{5x + 1}{(x - 1)(x + 1)} = \dfrac{A}{x - 1} + \dfrac{B}{x + 1}. Give your answer as (A,B)(A, B).

Enter a point like (2, -3)

Practice 2

Find AA and BB so that 6x2−9=Ax−3+Bx+3\dfrac{6}{x^2 - 9} = \dfrac{A}{x - 3} + \dfrac{B}{x + 3}. Give your answer as (A,B)(A, B).

Enter a point like (2, -3)

Practice 3

Write 4x+1x2−x−2\dfrac{4x + 1}{x^2 - x - 2} as Ax−2+Bx+1\dfrac{A}{x - 2} + \dfrac{B}{x + 1}. Give (A,B)(A, B).

Enter a point like (2, -3)

Practice 4

Find AA and BB so that 3x−1(x−2)2=Ax−2+B(x−2)2\dfrac{3x - 1}{(x - 2)^2} = \dfrac{A}{x - 2} + \dfrac{B}{(x - 2)^2}. Give (A,B)(A, B).

Enter a point like (2, -3)

Practice 5

Which is the correct form of the partial fraction decomposition of x+3(x−1)(x2+4)\dfrac{x + 3}{(x - 1)(x^2 + 4)}?

Practice 6

The expression 2x2−3x−1x3−x\dfrac{2x^2 - 3x - 1}{x^3 - x} can be written as Ax+Bx+1+Cx−1\dfrac{A}{x} + \dfrac{B}{x + 1} + \dfrac{C}{x - 1}. Find BB.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Find AA, BB and CC so that x2+x+4x(x2+2)=Ax+Bx+Cx2+2\dfrac{x^2 + x + 4}{x(x^2 + 2)} = \dfrac{A}{x} + \dfrac{Bx + C}{x^2 + 2}. Give (A,B,C)(A, B, C).

Enter a point like (2, -3)

Practice 8

Divide first, then decompose: 2x2+x−5x2−1=2+Ax−1+Bx+1\dfrac{2x^2 + x - 5}{x^2 - 1} = 2 + \dfrac{A}{x - 1} + \dfrac{B}{x + 1}. Find (A,B)(A, B).

Enter a point like (2, -3)