Skip to main content
United StatesCalculusSyllabus dot point

How do you integrate a rational function by splitting it into linear partial fractions?

Topic 6.12 Using Linear Partial Fractions: rewrite a rational function with distinct linear factors in the denominator as a sum of partial fractions and integrate each to a logarithm (BC).

A focused answer to AP Calculus BC Topic 6.12, decomposing a rational function with distinct linear denominator factors into partial fractions and integrating each piece to a natural logarithm, with worked examples.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The method for distinct linear factors
  3. Making the fraction proper first
  4. A worked decomposition and integration
  5. The cover-up shortcut
  6. Why every answer is a sum of logarithms

What this topic is asking

The College Board (Topic 6.12, BC only) covers integrating a rational function whose denominator factors into distinct linear factors. You cannot integrate 1x(xβˆ’1)\frac{1}{x(x-1)} directly, but you can split it into a sum of simpler fractions, each of which integrates to a logarithm. The technique is called partial fraction decomposition.

The method for distinct linear factors

Making the fraction proper first

Partial fractions requires the numerator degree to be less than the denominator degree. If it is not, you must divide first. For x2x2βˆ’1\frac{x^2}{x^2 - 1}, long division gives 1+1x2βˆ’11 + \frac{1}{x^2 - 1}, and only the remainder fraction 1x2βˆ’1\frac{1}{x^2 - 1} is then decomposed. Skipping this check is a common error: applying the partial-fraction template to an improper fraction produces an inconsistent system with no solution. Always confirm deg⁑P<deg⁑Q\deg P < \deg Q, and divide if it is not.

A worked decomposition and integration

The cover-up shortcut

The substitution step in the worked example is the cover-up method in disguise: to find the constant over (xβˆ’r)(x - r), mentally cover that factor in the original and evaluate the rest at x=rx = r. For 3x+1(x+2)(xβˆ’1)\frac{3x+1}{(x+2)(x-1)}, the constant over (xβˆ’1)(x-1) is 3(1)+11+2=43\frac{3(1)+1}{1+2} = \frac{4}{3}, matching BB above. This is faster than setting up the full equation and is reliable whenever the factors are distinct and linear. It works because substituting x=rx = r annihilates every other term, leaving only the constant you want times a known number.

Why every answer is a sum of logarithms

Each partial fraction has the form Axβˆ’r\frac{A}{x - r}, whose antiderivative is Aln⁑∣xβˆ’r∣A\ln|x - r| by the basic reciprocal rule (a substitution u=xβˆ’ru = x - r). So a distinct-linear-factor integral always produces a linear combination of logarithms. This is worth knowing as a sanity check: if your answer to a Topic 6.12 integral is not a sum of ln⁑\ln terms, something has gone wrong in the decomposition. The logarithms can then be combined using log laws (for example 53ln⁑∣x+2∣+43ln⁑∣xβˆ’1∣\frac{5}{3}\ln|x+2| + \frac{4}{3}\ln|x-1| stays as is, but ln⁑∣x+2∣+ln⁑∣xβˆ’1∣=ln⁑∣(x+2)(xβˆ’1)∣\ln|x+2| + \ln|x-1| = \ln|(x+2)(x-1)|), though leaving them separated is perfectly acceptable on the exam.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2022 (BC, style)1 marksSection I (multiple choice, no calculator). The partial fraction form of 1x(xβˆ’1)\frac{1}{x(x-1)} is (A) 1x+1xβˆ’1\frac{1}{x} + \frac{1}{x-1} (B) βˆ’1x+1xβˆ’1-\frac{1}{x} + \frac{1}{x-1} (C) 1xβˆ’1xβˆ’1\frac{1}{x} - \frac{1}{x-1} (D) 1x+1x+1\frac{1}{x} + \frac{1}{x+1}
Show worked answer β†’

The correct answer is (B), βˆ’1x+1xβˆ’1-\frac{1}{x} + \frac{1}{x-1}.

Write 1x(xβˆ’1)=Ax+Bxβˆ’1\frac{1}{x(x-1)} = \frac{A}{x} + \frac{B}{x-1}, so 1=A(xβˆ’1)+Bx1 = A(x-1) + Bx. At x=0x = 0: 1=βˆ’A1 = -A, giving A=βˆ’1A = -1. At x=1x = 1: 1=B1 = B. Thus 1x(xβˆ’1)=βˆ’1x+1xβˆ’1\frac{1}{x(x-1)} = -\frac{1}{x} + \frac{1}{x-1}.

AP 2024 (BC, style)4 marksSection II (free response, no calculator). Evaluate ∫5xβˆ’3x2βˆ’2xβˆ’3 dx\int \frac{5x - 3}{x^2 - 2x - 3}\,dx using partial fractions.
Show worked answer β†’

A 4-point partial-fractions integral.

(1 point) Factor: x2βˆ’2xβˆ’3=(xβˆ’3)(x+1)x^2 - 2x - 3 = (x-3)(x+1). Write 5xβˆ’3(xβˆ’3)(x+1)=Axβˆ’3+Bx+1\frac{5x-3}{(x-3)(x+1)} = \frac{A}{x-3} + \frac{B}{x+1}, so 5xβˆ’3=A(x+1)+B(xβˆ’3)5x - 3 = A(x+1) + B(x-3).
(1 point) At x=3x = 3: 12=4A12 = 4A, A=3A = 3. At x=βˆ’1x = -1: βˆ’8=βˆ’4B-8 = -4B, B=2B = 2.
(2 points) ∫(3xβˆ’3+2x+1)dx=3ln⁑∣xβˆ’3∣+2ln⁑∣x+1∣+C\int\left(\frac{3}{x-3} + \frac{2}{x+1}\right)dx = 3\ln|x-3| + 2\ln|x+1| + C.

Related dot points

Sources & how we know this