Partial Fractions
A fraction whose bottom factors into different linear pieces can be split into simpler fractions, each with a logarithm as its antiderivative. This guide shows how to find the pieces quickly and when to divide first.
If the denominator factors into distinct linear factors, the fraction can be written as a sum: \(\dfrac{P(x)}{(x - a)(x - b)} = \dfrac{A}{x - a} + \dfrac{B}{x - b}\). Multiply through by the denominator and substitute \(x = a\) and \(x = b\) to find \(A\) and \(B\). Each piece integrates to a natural log. If the top’s degree is not smaller than the bottom’s, divide first.
1The idea
Adding fractions is easy: \(\frac{1/3}{x - 1} - \frac{1/3}{x + 2}\) combines to \(\frac{1}{(x - 1)(x + 2)}\). Partial fractions runs that addition backward, because the separate pieces are each easy to integrate.
2Finding the constants
\(\displaystyle\int\frac{dx}{(x - 1)(x + 2)}\)
- 1Write \(\dfrac{1}{(x - 1)(x + 2)} = \dfrac{A}{x - 1} + \dfrac{B}{x + 2}\). Multiply both sides by \((x - 1)(x + 2)\): \(1 = A(x + 2) + B(x - 1)\).
- 2Choose \(x\)-values that wipe out one letter: \(x = 1\) gives \(1 = 3A\), so \(A = \frac13\). \(x = -2\) gives \(1 = -3B\), so \(B = -\frac13\).
- 3Integrate each piece: \(\tfrac13\ln|x - 1| - \tfrac13\ln|x + 2|\).
“\(\dfrac{1}{(x - 1)(x + 2)} = \dfrac{1/3}{x - 1} - \dfrac{1/3}{x + 2}\), by linear partial fractions with distinct linear factors in the denominator.”
\(\displaystyle\int\frac{5x - 4}{x^2 - x - 2}\,dx\)
- 1Factor the bottom: \((x - 2)(x + 1)\). Set \(5x - 4 = A(x + 1) + B(x - 2)\).
- 2\(x = 2\): \(6 = 3A\), \(A = 2\). \(x = -1\): \(-9 = -3B\), \(B = 3\).
- 3\(\displaystyle\int\left(\frac{2}{x - 2} + \frac{3}{x + 1}\right)dx\).
\(\int\frac{dx}{x - 1}\) is \(\ln|x - 1|\), not \(\frac{(x - 1)^0}{0}\). Exponent \(-1\) is the exception to the power rule. Keep the absolute value bars.
3Definite integrals
\(\displaystyle\int_2^4\frac{dx}{x^2 - 1}\)
- 1\(\dfrac{1}{(x - 1)(x + 1)} = \dfrac{1/2}{x - 1} - \dfrac{1/2}{x + 1}\).
- 2Antiderivative: \(\tfrac12\ln\left|\dfrac{x - 1}{x + 1}\right|\). Evaluate: \(\tfrac12\left(\ln\tfrac35 - \ln\tfrac13\right) = \tfrac12\ln\tfrac95\).
\(\displaystyle\int_0^2\frac{dx}{x^2 - 1}\) passes through \(x = 1\), where the integrand blows up. The formula cannot be used across that point; such integrals are improper and must be handled with limits.
4When the top is too big
\(\displaystyle\int\frac{x^2 + 1}{x^2 - 1}\,dx\)
- 1Top and bottom have the same degree, so divide: \(\dfrac{x^2 + 1}{x^2 - 1} = 1 + \dfrac{2}{x^2 - 1}\).
- 2Partial fractions on the remainder: \(\dfrac{2}{(x - 1)(x + 1)} = \dfrac{1}{x - 1} - \dfrac{1}{x + 1}\).
Partial fractions with constants on top only works when the top has smaller degree than the bottom. For \(\frac{x^2 + 1}{x^2 - 1}\), trying \(\frac{A}{x - 1} + \frac{B}{x + 1}\) directly cannot produce the \(x^2\) on top.
Quick reference
| Step | Action |
|---|---|
| 1 | Degree of top ≥ degree of bottom? Divide first |
| 2 | Factor the bottom into distinct linear factors |
| 3 | Write \(\frac{A}{x - a} + \frac{B}{x - b}\); multiply by the bottom |
| 4 | Plug in x = a and x = b to find A and B |
| 5 | Integrate: \(A\ln|x - a| + B\ln|x - b| + C\) |