impera Open Impera

AP Calculus BC · Integration and accumulation of change

Partial fractions

1The idea

A rational function such as $\frac{5x - 1}{(x - 1)(x + 2)}$ is hard to integrate as it stands, but it can be split into simpler fractions:

$$\frac{5x - 1}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2}$$

Each simple fraction integrates to a logarithm:

$$\int \frac{A}{x - a}\,dx = A\ln|x - a| + C$$

In AP Calculus BC, you need distinct linear factors in the denominator (no repeated or irreducible quadratic factors).

Check yourself

∫ 3/(x − 4) dx =

  • ln|3x − 12| + C

  • 3 ln|x − 4| + C

  • 3/(x − 4)² + C

  • −3/(x − 4)² + C

Show the answer

3 ln|x − 4| + C

A/(x − a) integrates to A ln|x − a|.

2Finding A and B

  1. Multiply both sides by the full denominator to clear fractions.
  2. Substitute the roots of each factor to make terms vanish (the "cover-up" approach), or compare coefficients.
Worked example

$\frac{5x - 1}{(x - 1)(x + 2)}$

  1. $5x - 1 = A(x + 2) + B(x - 1)$.
  2. Let $x = 1$: $4 = 3A$, so $A = \frac{4}{3}$.
  3. Let $x = -2$: $-11 = -3B$, so $B = \frac{11}{3}$.
  4. Check by recombining: $\frac{4}{3}(x + 2) + \frac{11}{3}(x - 1) = \frac{15x - 3}{3} = 5x - 1$. ✓
Worked example

$\frac{1}{x^2 - 9}$

  1. Factor: $x^2 - 9 = (x - 3)(x + 3)$.
  2. $1 = A(x + 3) + B(x - 3)$.
  3. $x = 3$: $A = \frac{1}{6}$. $x = -3$: $B = -\frac{1}{6}$.
Check yourself

For 1 = A(x + 3) + B(x − 3), substituting x = 3 gives A =

  • 6

  • 1/3

  • 1/6

  • −1/6

Show the answer

1/6

1 = 6A.

3Integrating

Once split, integrate term by term.

Worked example

$\int \frac{1}{x^2 - 9}\,dx$

  1. $= \int \left(\frac{1/6}{x - 3} - \frac{1/6}{x + 3}\right)dx$.
  2. $= \frac{1}{6}\ln|x - 3| - \frac{1}{6}\ln|x + 3| + C$.
  3. $= \frac{1}{6}\ln\left|\frac{x - 3}{x + 3}\right| + C$.
Worked example

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

  1. $\frac{2}{x(x - 1)} = \frac{A}{x} + \frac{B}{x - 1}$; $2 = A(x - 1) + Bx$.
  2. $x = 0$: $A = -2$. $x = 1$: $B = 2$.
  3. $\int_2^4 \left(\frac{2}{x - 1} - \frac{2}{x}\right)dx = \big[2\ln|x - 1| - 2\ln|x|\big]_2^4$.
  4. $= (2\ln 3 - 2\ln 4) - (0 - 2\ln 2) = 2\ln 3 - 2\ln 2 = 2\ln\frac{3}{2}$.
Check yourself

∫ (1/(x − 1) − 1/(x + 1)) dx can be written as:

  • ln|(x − 1)/(x + 1)| + C

  • 1/(x² − 1) + C

  • ln|(x − 1)(x + 1)| + C

  • ln|x² − 1| + C

Show the answer

ln|(x − 1)/(x + 1)| + C

Subtracting logs divides their arguments.

4When the top degree is too high

Partial fractions needs the numerator's degree to be less than the denominator's. If not, do polynomial long division first.

Worked example

$\int \frac{x^2 + 1}{x^2 - 1}\,dx$

  1. Divide: $\frac{x^2 + 1}{x^2 - 1} = 1 + \frac{2}{x^2 - 1}$.
  2. $\frac{2}{(x - 1)(x + 1)} = \frac{1}{x - 1} - \frac{1}{x + 1}$.
  3. Integral: $x + \ln|x - 1| - \ln|x + 1| + C$.

Link to logistic models: separating $\frac{dP}{dt} = kP(M - P)$ needs $\int \frac{dP}{P(M - P)}$, which is a partial fractions integral: $\frac{1}{P(M - P)} = \frac{1}{M}\left(\frac{1}{P} + \frac{1}{M - P}\right)$.

Check yourself

Before using partial fractions on (x³ + 2)/(x² − 4), you should:

  • Use polynomial long division

  • Integrate by parts

  • Substitute u = x² − 4

  • Nothing; split it directly

Show the answer

Use polynomial long division

Degree 3 on top is not less than degree 2 below.

5Going deeper: decomposing, integrating and the cases to watch

Partial fractions rewrites a rational function as a sum of simpler fractions that integrate to logarithms. The exam requires only distinct (non-repeated) linear factors in the denominator.

Method

  1. If the numerator's degree is greater than or equal to the denominator's, divide first.
  2. Factor the denominator.
  3. Write $\frac{A}{x - r_1} + \frac{B}{x - r_2} + \dots$
  4. Multiply through by the denominator and find the constants by substituting the roots.
  5. Integrate each term: $\int\frac{A}{x - r}\,dx = A\ln|x - r| + C$.
Worked example

$\int\frac{5x - 4}{(x - 2)(x + 1)}\,dx$.

  1. $\frac{5x - 4}{(x - 2)(x + 1)} = \frac{A}{x - 2} + \frac{B}{x + 1}$.
  2. $5x - 4 = A(x + 1) + B(x - 2)$.
  3. x = 2: 6 = 3A, so A = 2. x = −1: −9 = −3B, so B = 3.
  4. $\int = 2\ln|x - 2| + 3\ln|x + 1| + C$.
Worked example

$\int\frac{1}{x^2 - 1}\,dx$.

  1. $\frac{1}{(x - 1)(x + 1)} = \frac{A}{x - 1} + \frac{B}{x + 1}$; 1 = A(x + 1) + B(x − 1).
  2. x = 1: A = ½. x = −1: B = −½.
  3. $\frac{1}{2}\ln|x - 1| - \frac{1}{2}\ln|x + 1| + C = \frac{1}{2}\ln\left|\frac{x - 1}{x + 1}\right| + C$.

Worked example (definite): $\int_2^3\frac{1}{x^2 - 1}\,dx$.

  1. $\frac{1}{2}\left[\ln\left|\frac{x - 1}{x + 1}\right|\right]_2^3 = \frac{1}{2}\left(\ln\frac{2}{4} - \ln\frac{1}{3}\right)$.
  2. $= \frac{1}{2}\ln\frac{3}{2} \approx 0.203$.

Worked example (divide first): $\int\frac{x^2}{x^2 - 1}\,dx$.

  1. $\frac{x^2}{x^2 - 1} = 1 + \frac{1}{x^2 - 1}$.
  2. $\int = x + \frac{1}{2}\ln\left|\frac{x - 1}{x + 1}\right| + C$.

The cover-up shortcut: to find the constant over (x − r), cover that factor in the original fraction and substitute x = r into what remains. For $\frac{5x - 4}{(x - 2)(x + 1)}$: A = $\frac{5(2) - 4}{2 + 1} = 2$.

Three factors

Worked example

$\frac{6}{x(x - 1)(x + 2)}$.

  1. A (over x): $\frac{6}{(-1)(2)} = -3$.
  2. B (over x − 1): $\frac{6}{(1)(3)} = 2$.
  3. C (over x + 2): $\frac{6}{(-2)(-3)} = 1$.
  4. Integral: $-3\ln|x| + 2\ln|x - 1| + \ln|x + 2| + C$.

Link to the logistic equation: separating $\frac{dP}{dt} = kP\left(1 - \frac{P}{L}\right)$ leads to $\int\frac{L}{P(L - P)}\,dP$, which is done by partial fractions: $\frac{L}{P(L - P)} = \frac{1}{P} + \frac{1}{L - P}$.

When not to use partial fractions

  • The numerator is (a multiple of) the derivative of the denominator: use substitution: $\int\frac{2x}{x^2 - 1}\,dx = \ln|x^2 - 1| + C$.
  • The denominator does not factor over the reals: $\int\frac{1}{x^2 + 1}\,dx = \arctan x + C$.

Check: recombine the partial fractions over a common denominator; you should recover the original fraction.

Common mistakes

  • Not dividing first for an improper fraction.
  • Forgetting absolute values in the logarithms.
  • Sign errors with $\int\frac{1}{L - P}dP = -\ln|L - P|$.
  • Using partial fractions when a substitution is immediate.
  • Evaluating a definite integral across a vertical asymptote without noticing it is improper.
Check yourself

The partial fraction decomposition of 3 ÷ ((x − 1)(x + 2)) is:

  • 1 ÷ (x − 1) + 1 ÷ (x + 2)

  • 3 ÷ (x − 1) + 3 ÷ (x + 2)

  • 3 ÷ (x − 1) − 3 ÷ (x + 2)

  • 1 ÷ (x − 1) − 1 ÷ (x + 2)

Show the answer

1 ÷ (x − 1) − 1 ÷ (x + 2)

Substituting x = 1 gives A = 1, and x = −2 gives B = −1.

6For top marks

  • Factor the denominator completely first.
  • Show the identity $\text{numerator} = A(\dots) + B(\dots)$ and the substitutions you use.
  • Keep absolute values inside logarithms.
  • Combine logs neatly at the end, but only if it is correct to do so.
  • Check A and B by recombining the fractions.
Example

"$\frac{x + 7}{(x - 1)(x + 3)} = \frac{2}{x - 1} - \frac{1}{x + 3}$ because at $x = 1$, $8 = 4A$ and at $x = -3$, $4 = -4B$."

Check yourself

A student writes ∫ 2/(x − 1) dx = 2 ln(x − 1) + C. What is missing?

  • A negative sign in front of the log

  • Nothing; the answer is fully correct

  • A factor of 1/2 in front of the log

  • Absolute value bars: 2 ln|x − 1|

Show the answer

Absolute value bars: 2 ln|x − 1|

The log needs |x − 1| for x < 1.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera