You already know how to add fractions like x−12−x+31 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.
Now suppose you were handed only the right side. Because its denominator factors into (x−1) and (x+3), you can guess that it came from fractions with those denominators, and write
(x−1)(x+3)x+7=x−1A+x+3B
for some constants A and B. 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 has equal degrees, so divide: x2−1x2+1=1+x2−12. Only x2−12 gets decomposed.
The forms to use
Factor the denominator completely into linear factors and irreducible quadratic factors (quadratics like x2+4 that have no real zeros). Each factor contributes its own terms.
Partial fraction forms
Each distinct linear factor(ax+b) contributes ax+bA.
A repeated linear factor(ax+b)k contributes one term for each power up to k: ax+bA1+(ax+b)2A2+⋯+(ax+b)kAk.
Each irreducible quadratic factor(ax2+bx+c) contributes ax2+bx+cBx+C, with a linear numerator.
For example, (x−1)(x2+4)x+3 has the form x−1A+x2+4Bx+C, and x(x+2)35 has the form xA+x+2B+(x+2)2C+(x+2)3D.
Finding the constants
Multiply both sides by the full denominator to clear fractions. You get a polynomial identity that must hold for everyx. Then use either (or both) of these methods:
Substitute convenient values. Plug in the zeros of the linear factors; each one wipes out every term but one.
Match coefficients. Expand, collect like powers of x, 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−1)(x+3)x+7.
Write (x−1)(x+3)x+7=x−1A+x+3B and multiply by (x−1)(x+3):
x+7=A(x+3)+B(x−1).
Set x=1: 8=4A, so A=2. Set x=−3: 4=−4B, so B=−1. Therefore
(x−1)(x+3)x+7=x−12−x+31,
which matches the sum we started with. Matching coefficients works too: x+7=(A+B)x+(3A−B) gives the system A+B=1 and 3A−B=7, whose solution is again A=2, B=−1.
Worked example: Factor first
Decompose x2−x−63x+11.
The denominator factors as (x−3)(x+2). Write 3x+11=A(x+2)+B(x−3).
Set x=3: 20=5A, so A=4. Set x=−2: 5=−5B, so B=−1.
x2−x−63x+11=x−34−x+21.
Worked example: A repeated linear factor
Decompose x(x−1)2x2+2.
The factor (x−1) appears twice, so it needs two terms:
x(x−1)2x2+2=xA+x−1B+(x−1)2C.
Multiply by x(x−1)2:
x2+2=A(x−1)2+Bx(x−1)+Cx.
Set x=0: 2=A. Set x=1: 3=C. No value of x isolates B, so compare the x2 coefficients: on the left it is 1, and on the right it is A+B. So A+B=1, giving B=−1.
x(x−1)2x2+2=x2−x−11+(x−1)23.
Worked example: An irreducible quadratic factor
Decompose (x−2)(x2+1)3x2−x−5.
Since x2+1 has no real zeros, its numerator must be linear:
3x2−x−5=A(x2+1)+(Bx+C)(x−2).
Set x=2: 12−2−5=5A, so A=1. Expand the right side with A=1:
x2+1+Bx2−2Bx+Cx−2C=(1+B)x2+(C−2B)x+(1−2C).
Matching: 1+B=3 gives B=2, and 1−2C=−5 gives C=3. Check the middle coefficient: C−2B=3−4=−1. ✓
(x−2)(x2+1)3x2−x−5=x−21+x2+12x+3.
Common mistake
Two setups cause most wrong answers. First, a repeated factor (x−1)2 needs bothx−1B and (x−1)2C; leaving out the lower power makes the system impossible to solve. Second, an irreducible quadratic needs the linear numerator Bx+C, not just a constant.
Tip
Check your answer by plugging in a value of x that you did not use, such as x=0 or x=5, into both the original expression and your decomposition. In the first example at x=0: the original is −37, and the decomposition gives −12−31=−37. ✓
Practice
Practice 1
Find the constants A and B so that (x−1)(x+1)5x+1=x−1A+x+1B. Give your answer as (A,B).
Enter a point like (2, -3)
Practice 2
Find A and B so that x2−96=x−3A+x+3B. Give your answer as (A,B).
Enter a point like (2, -3)
Practice 3
Write x2−x−24x+1 as x−2A+x+1B. Give (A,B).
Enter a point like (2, -3)
Practice 4
Find A and B so that (x−2)23x−1=x−2A+(x−2)2B. Give (A,B).
Enter a point like (2, -3)
Practice 5
Which is the correct form of the partial fraction decomposition of (x−1)(x2+4)x+3?
Practice 6
The expression x3−x2x2−3x−1 can be written as xA+x+1B+x−1C. Find B.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Find A, B and C so that x(x2+2)x2+x+4=xA+x2+2Bx+C. Give (A,B,C).
Enter a point like (2, -3)
Practice 8
Divide first, then decompose: x2−12x2+x−5=2+x−1A+x+1B. Find (A,B).