You know that x−11−x1 combines into x(x−1)1. Partial fractions runs that addition backward: it splits a rational function into simpler fractions, each of which integrates to a natural log. On the AP Calculus BC exam, you need this for denominators that factor into distinct linear factors, and it shows up again when you solve the logistic differential equation.
The idea
Each simple fraction x−aA has an easy antiderivative, Aln∣x−a∣+C. So if you can rewrite a complicated fraction as a sum of these, the integral is finished.
Partial fraction decomposition (distinct linear factors)
If p(x) has smaller degree than (x−a)(x−b) and a=b, then there are constants A and B with
(x−a)(x−b)p(x)=x−aA+x−bB,
and therefore
∫(x−a)(x−b)p(x)dx=Aln∣x−a∣+Bln∣x−b∣+C.
The same pattern extends to three or more distinct linear factors.
Finding A and B
Here is the procedure, step by step.
Check the degree. The numerator must have lower degree than the denominator. If it doesn't, divide first.
Factor the denominator into linear factors.
Write the decomposition with unknown constants A, B, and so on.
Clear denominators by multiplying both sides by the full denominator.
Solve for the constants. The fastest way is to substitute the roots of the denominator, since each root makes all but one term vanish.
Worked example: Decomposing a fraction
Decompose (x+1)(x−2)5x−1.
Write
(x+1)(x−2)5x−1=x+1A+x−2B.
Multiply both sides by (x+1)(x−2):
5x−1=A(x−2)+B(x+1).
Let x=2: 9=3B, so B=3.
Let x=−1: −6=−3A, so A=2.
So (x+1)(x−2)5x−1=x+12+x−23.
Tip
Check a decomposition by plugging in any convenient value that isn't a root. With x=0 above: the left side is (1)(−2)−1=21, and the right side is 12+−23=21. They match.
You can also expand the right side and match coefficients. In the example, A(x−2)+B(x+1)=(A+B)x+(−2A+B), so A+B=5 and −2A+B=−1. Solving gives the same A=2, B=3. Substituting roots is usually quicker, but matching coefficients is a useful backup.
Integrating
Once the fraction is split, each piece is a log.
Worked example: An indefinite integral
Find ∫x2−1dx.
Factor: x2−1=(x−1)(x+1). Write (x−1)(x+1)1=x−1A+x+1B, so 1=A(x+1)+B(x−1).
The interval [2,3] stays away from the roots 0 and 1, so the integrand is continuous there and the Fundamental Theorem applies.
Common mistake
Partial fractions only works on proper fractions. For x2−xx2+2, you cannot write xA+x−1B right away, because no choice of A and B produces an x2 term in the numerator. Divide first.
Improper fractions: divide first
Worked example: Long division, then partial fractions
Find ∫x2−xx2+2dx.
The degrees are equal, so divide: x2+2=1⋅(x2−x)+(x+2), which gives
x2−xx2+2=1+x(x−1)x+2.
Now decompose the remainder: x+2=A(x−1)+Bx. At x=0, 2=−A, so A=−2. At x=1, 3=B.
∫(1−x2+x−13)dx=x−2ln∣x∣+3ln∣x−1∣+C.
Why this matters for logistic growth
The logistic differential equation dtdP=kP(M−P) separates into ∫P(M−P)dP=∫kdt. The left side is a partial fractions integral with distinct linear factors P and M−P. Solving it is exactly how the familiar logistic formula is derived, which you will see in the differential equations unit.
Practice
Practice 1
Given (x−1)(x+3)x+7=x−1A+x+3B, find A.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
Given x2+x−24x+2=x−1A+x+2B, find B.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
∫x2−4x+32dx=
Practice 4
Evaluate ∫01(x+1)(x+2)dx. Give an exact answer.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
For x>0, find the antiderivative F(x) of f(x)=x(x+1)1 that satisfies F(1)=0.
Enter an expression, e.g. 3x^2 - 2x + 1
Practice 6
Evaluate ∫35x2−3x+2x+1dx. Give an exact answer.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
∫x2−1x2dx=
Practice 8
Evaluate ∫12x2+3x3dx. Give an exact answer.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.