Partial fractions · Mathematics Class 11–12 | StemPy Lab
Course 11.2·Lesson 2 of 3
Partial fractions
A fraction whose bottom factorises can be split into simpler fractions, one for each factor. Distinct linear factors give x−aA, a repeated factor gives one term for each power, and an irreducible quadratic factor gives x2+p2Bx+C
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
split a fraction of polynomials into partial fractions of the right form;
find the constants with the cover-up rule or by comparing coefficients;
integrate each piece, dividing first when the fraction is improper.
One fraction from two
You know how to add x−12+x+31. The sum is (x−1)(x+3)2(x+3)+(x−1)=(x−1)(x+3)3x+5. Partial fractions run this backwards. Starting from (x−1)(x+3)3x+5, we split it into the two simple parts, and each part is easy to integrate.
One graph of y = (3x + 5) over (x - 1)(x + 3) in blue, with two dashed vertical lines at x = -3 and x = 1. Between them the blue curve is a single branch running from the top near x = -3 to the bottom near x = 1, and outside them there are two more branches. Two thinner curves, orange for 2 over (x - 1) and green for 1 over (x + 3), add up to the blue curve, and a dotted orange line lies on top of the blue curve to show the sum.
The forms
Let Q(x)P(x) be a fraction in which the degree of P is less than the degree of Q. Factorise Q. Then each factor of Q gives terms of a fixed shape.
A factor (x−a) gives the term x−aA.
A repeated factor (x−a)2 gives two terms, x−aA+(x−a)2B.
A quadratic factor x2+p2 gives x2+p2Bx+C.
A repeated factor needs one term for each power up to the repeat. A quadratic that does not factorise over the real numbers needs a top of the form Bx+C.
Finding the constants
The cover-up rule works for distinct linear factors. To find the constant over (x−a), hide that factor in the original fraction, and put x=a in what is left.
Comparing coefficients works every time. Multiply both sides by the bottom, expand, and compare the coefficients of each power of x. You can also put in convenient values of x.
The integrals
Each type of term has a known integral.
∫x−aAdx=Aln∣x−a∣.
∫(x−a)2Bdx=−x−aB.
∫x2+p2Bx+Cdx splits into 2Bln(x2+p2) and pCtan−1px.
Worked examples
Example 1 (distinct factors). Find ∫(x−1)(x+3)3x+5dx.
Write (x−1)(x+3)3x+5=x−1A+x+3B.
Cover up x−1 and put x=1: A=1+33+5=2.
Cover up x+3 and put x=−3: B=−3−1−9+5=1.
The integral is 2ln∣x−1∣+ln∣x+3∣+C.
Example 2 (a repeated factor). Find ∫(x−1)2(x+2)x2+1dx.
Write (x−1)2(x+2)x2+1=x−1A+(x−1)2B+x+2C.
Cover up (x−1)2 and put x=1: B=32. Cover up x+2 and put x=−2: C=95.
For A, put x=0 in the original: 21=−A+B+2C, so A=32+185−21=94.
The integral is 94ln∣x−1∣−3(x−1)2+95ln∣x+2∣+C.
Example 3 (a quadratic factor). Find ∫(x+1)(x2+1)dx.
Write (x+1)(x2+1)1=x+1A+x2+1Bx+C. Cover up x+1: A=21.
Multiply out: 1=A(x2+1)+(Bx+C)(x+1). The x2 terms give 0=A+B, so B=−21. At x=0, 1=A+C, so C=21.
The integral is 21ln∣x+1∣−41ln(x2+1)+21tan−1x+C.
Example 4 (divide first). Find ∫x2−1x2dx. The top and the bottom have the same degree, so divide.
x2−1x2=1+x2−11=1+21(x−11−x+11).
The integral is x+21lnx+1x−1+C.
Practise with new numbers
Try it in Python
The program finds A and B for (x−1)(x+3)3x+5 by the cover-up rule. Then it compares the original fraction with the sum of the parts at four values of x.
Common mistakes
Not dividing first. If the top has degree at least as large as the bottom, the split is wrong until you divide.
A missing term for a repeated factor.(x−1)2 needs both x−1A and (x−1)2B.
A constant top over a quadratic. An irreducible quadratic needs Bx+C on top.
Wrong signs in the cover-up rule. Put the root in every other factor, with its sign.
Dropping the logarithm's modulus.ln∣x−a∣ is safe for any x with x=a.
Remember these
Factorise the bottom. Each linear factor gives x−aA, a repeated factor gives all its powers, and a quadratic factor gives x2+p2Bx+C.
The cover-up rule finds the constants for distinct linear factors. Comparing coefficients works for all.
If the degree of the top is at least the degree of the bottom, divide first.
The integrals are Aln∣x−a∣, −x−aB, and a logarithm with an inverse tangent for the quadratic.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Split (x−1)(x−2)7x−5 into partial fractions.
Find ∫(x−1)(x+2)dx.
What is the form of the split of (x−1)(x2+4)1?
Find ∫x+1x2+1dx.
Why can (x−1)(x+1)x2 not be written at once as x−1A+x+1B?