How do you integrate a fraction like (5x − 1)/(x² − x − 2)? There is no rule for it directly. But if you split it into simpler fractions, 2/(x + 1) + 3/(x − 2), each piece integrates to a logarithm. This splitting is called partial fractions, and it is the standard way to integrate any rational function (a polynomial divided by a polynomial). In this lesson you will learn the four cases of partial fractions, two quick ways to find the unknown constants, and what to do when the top is “too big”.
In this lesson you will learn
- When partial fractions are needed
- Distinct linear factors and the cover-up method
- Repeated linear factors
- Irreducible quadratic factors and the tan⁻¹ result
- Polynomial long division for improper fractions
You should know ∫ 1/x dx = ln|x|, u-substitution and factorising quadratics.
The Idea
Adding fractions combines them: 2/(x + 1) + 3/(x − 2) = (5x − 1)/((x + 1)(x − 2)). Partial fractions runs this backwards. Once split, each piece is easy:
∫ (5x − 1)/(x² − x − 2) dx = ∫ [2/(x + 1) + 3/(x − 2)] dx
= 2 ln|x + 1| + 3 ln|x − 2| + C
Step 0: Is the Fraction Proper?
Partial fractions only works when the degree of the top is less than the degree of the bottom. If not, divide first.
(x³ + x)/(x − 1): long division gives x² + x + 2 remainder 2
So (x³ + x)/(x − 1) = x² + x + 2 + 2/(x − 1)
∫ = x³/3 + x²/2 + 2x + 2 ln|x − 1| + C
Case 1: Distinct Linear Factors
(5x − 1)/((x + 1)(x − 2)) = A/(x + 1) + B/(x − 2)
Multiply through: 5x − 1 = A(x − 2) + B(x + 1)
x = 2: 9 = 3B → B = 3
x = −1: −6 = −3A → A = 2
Choosing x to make one bracket zero kills one unknown at a time. A quicker version is the cover-up method: to find A, cover up (x + 1) in the original fraction and put x = −1 in what is left: (5(−1) − 1)/(−1 − 2) = −6/−3 = 2.
Case 2: Repeated Linear Factors
A squared factor needs a term for each power:
(x + 5)/((x − 1)²(x + 2)) = A/(x − 1) + B/(x − 1)² + C/(x + 2)
x + 5 = A(x − 1)(x + 2) + B(x + 2) + C(x − 1)²
x = 1: 6 = 3B → B = 2
x = −2: 3 = 9C → C = 1/3
x = 0: 5 = −2A + 2B + C = −2A + 4 + 1/3 → A = −1/3
∫ = −(1/3) ln|x − 1| − 2/(x − 1) + (1/3) ln|x + 2| + K
The B term integrates with the power rule, not a logarithm: ∫ (x − 1)⁻² dx = −(x − 1)⁻¹.
Case 3: Irreducible Quadratic Factors
A quadratic that cannot be factorised (like x² + 4) gets a linear top, Bx + C:
(3x² + 4)/(x(x² + 4)) = A/x + (Bx + C)/(x² + 4)
3x² + 4 = A(x² + 4) + (Bx + C)x
x = 0: 4 = 4A → A = 1
Compare x²: 3 = A + B → B = 2; compare x: 0 = C
∫ [1/x + 2x/(x² + 4)] dx = ln|x| + ln(x² + 4) + K
When a constant sits over the quadratic, use the inverse tangent: ∫ 1/(x² + a²) dx = (1/a) tan⁻¹(x/a).
Application: Logistic Growth
The logistic equation dP/dt = kP(1 − P/M) models populations that level off at a maximum M. Separating variables leads to ∫ M/(P(M − P)) dP, which partial fractions splits into ∫ [1/P + 1/(M − P)] dP. This is how the S-shaped logistic curve, used for everything from fish stocks to the spread of new technology, is derived.
Common Mistakes
- Skipping the division when the fraction is improper.
- Missing a term for a repeated factor: (x − 1)² needs both A/(x − 1) and B/(x − 1)².
- Putting a constant over a quadratic that needs Bx + C.
- Forgetting the coefficient inside the log: ∫ 1/(2x + 1) dx = ½ ln|2x + 1|.
Practice Exercises
Exercise 1. Find ∫ 1/(x² − 1) dx.
Show answer
1/((x − 1)(x + 1)) = ½/(x − 1) − ½/(x + 1): ½ ln|(x − 1)/(x + 1)| + C.
Exercise 2. Find ∫ (x + 7)/(x² − x − 6) dx.
Show answer
(x − 3)(x + 2): A = 10/5 = 2 at x = 3, B = 5/(−5) = −1 at x = −2. 2 ln|x − 3| − ln|x + 2| + C.
Exercise 3. Evaluate ∫₂³ 1/(x(x − 1)) dx.
Show answer
1/(x − 1) − 1/x: [ln|(x − 1)/x|]₂³ = ln(2/3) − ln(1/2) = ln(4/3) ≈ 0.288.
Frequently Asked Questions
When do you use partial fractions in integration?
Use partial fractions to integrate a rational function, a polynomial divided by a polynomial, whose denominator can be factorised. Splitting it into simpler fractions turns the integral into a sum of logarithms, powers and inverse tangents.
What is the cover-up method?
It is a shortcut for distinct linear factors. To find the constant over (x – a), cover that factor in the original fraction and substitute x = a into what remains. The result is the constant. It does not work directly for repeated or quadratic factors.
Summary
- Divide first if the top’s degree is not less than the bottom’s.
- Distinct linear factors: A/(x − a) + B/(x − b) + …; use the cover-up method.
- Repeated factor (x − a)²: A/(x − a) + B/(x − a)².
- Irreducible quadratic: (Bx + C)/(x² + bx + c), often giving ln and tan⁻¹.
- Each simple fraction integrates to a log, a power or an inverse tangent.
Next: Improper Integrals.
