Skip to main content

Code Scholars Tutoring · AP Calculus BC

Linear partial fractions and logarithmic antiderivatives

Unit 6 · Topics 6.12 · Detailed notes, a worked example, and a self-check with reasoning.

Understand the idea

Partial fractions rewrites a rational function as a sum of simpler rational functions. When the denominator factors into distinct linear factors, each resulting term has a constant numerator and a logarithmic antiderivative. The decomposition is an algebraic identity on the original function's domain.

First compare degrees. If the numerator's degree is at least the denominator's, perform polynomial division before decomposing the proper rational remainder. Factor the denominator completely enough to identify the linear factors; do not cancel terms that are joined by addition.

After clearing denominators, solve for the unknown constants by matching coefficients or substituting convenient values. Integrate each fraction separately and use absolute values in logarithms. The antiderivative is defined on intervals that do not cross a zero of the original denominator.

Ax+B(x−a)(x−b)=Px−a+Qx−b,∫dxx−a=ln⁡∣x−a∣+C\frac{Ax+B}{(x-a)(x-b)}=\frac{P}{x-a}+\frac{Q}{x-b},\qquad \int\frac{dx}{x-a}=\ln|x-a|+C

A method you can apply

  1. Make the rational function proper, then factor its denominator.
  2. Write one constant numerator over each distinct linear factor and solve the resulting identity.
  3. Integrate the pieces and check both the derivative and the excluded input values.

Worked example

Find ∫3x+5(x+1)(x+2) dx\displaystyle \int \frac{3x+5}{(x+1)(x+2)}\,dx.

  1. Write the integrand as P/(x+1)+Q/(x+2)\displaystyle P/(x+1)+Q/(x+2).
  2. Clearing denominators gives 3x+5=P(x+2)+Q(x+1)\displaystyle 3x+5=P(x+2)+Q(x+1).
  3. Matching coefficients gives P+Q=3\displaystyle P+Q=3 and 2P+Q=5\displaystyle 2P+Q=5, so P=2\displaystyle P=2 and Q=1\displaystyle Q=1.
  4. Integrate 2/(x+1)+1/(x+2)\displaystyle 2/(x+1)+1/(x+2) term by term.
The result is 2ln⁡∣x+1∣+ln⁡∣x+2∣+C\displaystyle 2\ln|x+1|+\ln|x+2|+C, on an interval excluding −1\displaystyle -1 and −2\displaystyle -2.

Try it yourself

Find ∫5x+1(x−1)(x+2) dx\displaystyle \int \frac{5x+1}{(x-1)(x+2)}\,dx.

Show solution and reasoning

Use P/(x−1)+Q/(x+2)\displaystyle P/(x-1)+Q/(x+2). The equations are P+Q=5\displaystyle P+Q=5 and 2P−Q=1\displaystyle 2P-Q=1, giving P=2\displaystyle P=2 and Q=3\displaystyle Q=3. Therefore the antiderivative is 2ln⁡∣x−1∣+3ln⁡∣x+2∣+C\displaystyle 2\ln|x-1|+3\ln|x+2|+C.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this material.