AP Calculus BC · Study guide

Integrating Using Linear Partial Fractions

AP® Calculus BC · Unit 6 · Integration and Accumulation of Change

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.

The idea in one paragraph

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.

Figure 1. The solid curve is the original fraction. The dashed curves are its partial fractions. Adding their heights at any x gives the solid curve, and each dashed piece integrates to a simple logarithm.

2Finding the constants

Worked Example 1 Distinct linear factors

\(\displaystyle\int\frac{dx}{(x - 1)(x + 2)}\)

  1. 1
    Write \(\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)\).
  2. 2
    Choose \(x\)-values that wipe out one letter: \(x = 1\) gives \(1 = 3A\), so \(A = \frac13\). \(x = -2\) gives \(1 = -3B\), so \(B = -\frac13\).
  3. 3
    Integrate each piece: \(\tfrac13\ln|x - 1| - \tfrac13\ln|x + 2|\).
Answer: \(\tfrac13\ln\left|\dfrac{x - 1}{x + 2}\right| + C\)
Write it like this

“\(\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.”

Worked Example 2 A variable numerator

\(\displaystyle\int\frac{5x - 4}{x^2 - x - 2}\,dx\)

  1. 1
    Factor the bottom: \((x - 2)(x + 1)\). Set \(5x - 4 = A(x + 1) + B(x - 2)\).
  2. 2
    \(x = 2\): \(6 = 3A\), \(A = 2\). \(x = -1\): \(-9 = -3B\), \(B = 3\).
  3. 3
    \(\displaystyle\int\left(\frac{2}{x - 2} + \frac{3}{x + 1}\right)dx\).
Answer: \(2\ln|x - 2| + 3\ln|x + 1| + C\)
Common Mistake 1 · Integrating 1/(x − 1) as a power

\(\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

Worked Example 3 Definite integral

\(\displaystyle\int_2^4\frac{dx}{x^2 - 1}\)

  1. 1
    \(\dfrac{1}{(x - 1)(x + 1)} = \dfrac{1/2}{x - 1} - \dfrac{1/2}{x + 1}\).
  2. 2
    Antiderivative: \(\tfrac12\ln\left|\dfrac{x - 1}{x + 1}\right|\). Evaluate: \(\tfrac12\left(\ln\tfrac35 - \ln\tfrac13\right) = \tfrac12\ln\tfrac95\).
Answer: \(\tfrac12\ln\tfrac95 \approx 0.294\)
Common Mistake 2 · Integrating across a zero of the denominator

\(\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

Worked Example 4 Divide first

\(\displaystyle\int\frac{x^2 + 1}{x^2 - 1}\,dx\)

  1. 1
    Top and bottom have the same degree, so divide: \(\dfrac{x^2 + 1}{x^2 - 1} = 1 + \dfrac{2}{x^2 - 1}\).
  2. 2
    Partial fractions on the remainder: \(\dfrac{2}{(x - 1)(x + 1)} = \dfrac{1}{x - 1} - \dfrac{1}{x + 1}\).
Answer: \(x + \ln|x - 1| - \ln|x + 1| + C\)
Common Mistake 3 · Skipping the division

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

StepAction
1Degree of top ≥ degree of bottom? Divide first
2Factor the bottom into distinct linear factors
3Write \(\frac{A}{x - a} + \frac{B}{x - b}\); multiply by the bottom
4Plug in x = a and x = b to find A and B
5Integrate: \(A\ln|x - a| + B\ln|x - b| + C\)