AP Calculus BC only · Unit 6 · Topic 6.12

    6.12 Integrating Using Linear Partial Fractions

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    A rational function whose denominator factors into distinct linear factors can be split into simpler fractions, for example 1(x−1)(x+2)=1/3x−1−1/3x+2\frac{1}{(x - 1)(x + 2)} = \frac{1/3}{x - 1} - \frac{1/3}{x + 2}. Each piece integrates to a natural logarithm. On the BC exam, partial fractions are limited to non-repeated linear factors.

    What you need to know

    • Decompose a rational function with distinct linear factors into partial fractions.
    • Find the constants by substituting convenient values of x.
    • Integrate each partial fraction to a logarithm.
    • Recognise when long division is needed first.

    Splitting the fraction

    Adding fractions combines them over a common denominator: 1x−1+1x+1=2xx2−1\frac{1}{x - 1} + \frac{1}{x + 1} = \frac{2x}{x^2 - 1}. Partial fractions run this in reverse, starting from the combined fraction and recovering the simple pieces, which are easy to integrate.

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

    1(x−1)(x+2)=Ax−1+Bx+2\frac{1}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2}

    Multiply both sides by (x−1)(x+2)(x - 1)(x + 2): 1=A(x+2)+B(x−1)1 = A(x + 2) + B(x - 1). This holds for every xx, so choose values that make a term vanish. At x=1x = 1: 1=3A1 = 3A, so A=13A = \frac{1}{3}. At x=−2x = -2: 1=−3B1 = -3B, so B=−13B = -\frac{1}{3}.

    It is worth checking the result before integrating. Recombining, 1/3x−1−1/3x+2=13(x+2)−13(x−1)(x−1)(x+2)=1(x−1)(x+2)\frac{1/3}{x - 1} - \frac{1/3}{x + 2} = \frac{\frac{1}{3}(x + 2) - \frac{1}{3}(x - 1)}{(x - 1)(x + 2)} = \frac{1}{(x - 1)(x + 2)}, as required. If the substitution trick feels unfamiliar, you can also expand A(x+2)+B(x−1)A(x + 2) + B(x - 1) and match coefficients: A+B=0A + B = 0 for the xx terms and 2A−B=12A - B = 1 for the constants. Both routes give the same answer; substitution is simply faster when every factor is linear.

    Integrating the pieces

    Each piece is a constant over a linear factor, which integrates to a logarithm:

    ∫dx(x−1)(x+2)=13ln⁡∣x−1∣−13ln⁡∣x+2∣+C=13ln⁡∣x−1x+2∣+C\begin{aligned} \int \frac{dx}{(x - 1)(x + 2)} &= \frac{1}{3}\ln|x - 1| - \frac{1}{3}\ln|x + 2| + C \\ &= \frac{1}{3}\ln\left|\frac{x - 1}{x + 2}\right| + C \end{aligned}

    Another example. For ∫5x+1(x+2)(x−1) dx\int \frac{5x + 1}{(x + 2)(x - 1)}\,dx, set 5x+1=A(x−1)+B(x+2)5x + 1 = A(x - 1) + B(x + 2). At x=1x = 1: 6=3B6 = 3B, B=2B = 2. At x=−2x = -2: −9=−3A-9 = -3A, A=3A = 3. The integral is 3ln⁡∣x+2∣+2ln⁡∣x−1∣+C3\ln|x + 2| + 2\ln|x - 1| + C.

    When to divide first

    Partial fractions need a proper fraction: the degree of the numerator must be less than the degree of the denominator. If it is not, divide first (topic 6.10). For example, x2x2−1=1+1x2−1\frac{x^2}{x^2 - 1} = 1 + \frac{1}{x^2 - 1}, and only the remainder is split into partial fractions.

    The denominator must also be factored completely. x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1) and x2+x−2=(x+2)(x−1)x^2 + x - 2 = (x + 2)(x - 1) are typical. A denominator like x2+1x^2 + 1 does not factor over the real numbers; its integral is an inverse tangent, not a partial fraction question. Before you start, ask three questions in order: is the fraction proper, does the denominator factor into distinct linear pieces, and is a simple substitution quicker? For ∫2xx2−1 dx\int \frac{2x}{x^2 - 1}\,dx, the substitution u=x2−1u = x^2 - 1 gives ln⁡∣x2−1∣+C\ln|x^2 - 1| + C in one line, so partial fractions would be the long way round.

    Definite integrals and where this leads

    Since 1x2−1=12(1x−1−1x+1)\frac{1}{x^2 - 1} = \frac{1}{2}\left(\frac{1}{x - 1} - \frac{1}{x + 1}\right), we get ∫23dxx2−1=12[ln⁡∣x−1∣−ln⁡∣x+1∣]23=12(ln⁡24−ln⁡13)=12ln⁡32\int_2^3 \frac{dx}{x^2 - 1} = \frac{1}{2}\Big[\ln|x - 1| - \ln|x + 1|\Big]_2^3 = \frac{1}{2}\left(\ln\frac{2}{4} - \ln\frac{1}{3}\right) = \frac{1}{2}\ln\frac{3}{2}. Combining the logarithms with log laws at the end keeps the arithmetic tidy.

    Partial fractions matter most for what comes next. Solving the logistic differential equation dPdt=kP(L−P)\frac{dP}{dt} = kP(L - P) by separation of variables requires ∫dPP(L−P)\int \frac{dP}{P(L - P)}, which is exactly a partial fraction integral (topic 7.9). They also appear in telescoping series in Unit 10.

    Key terms

    Partial fractions
    Writing a rational function as a sum of simpler fractions with linear denominators.
    Proper fraction
    A rational function whose numerator has lower degree than its denominator.
    Linear factor
    A factor of the form ax + b in the denominator.
    Cover-up values
    Values of x that make all but one term vanish, used to find each constant quickly.

    Common mistakes

    • Splitting an improper fraction directly.

      Divide first so the numerator's degree is less than the denominator's.

    • Dropping the absolute value in ln|x − a|.

      Keep the bars unless the inside is known to be positive.

    • Forgetting the chain rule factor for ∫1/(ax + b) dx.

      It is (1/a) ln|ax + b| + C.

    How this topic is tested

    • Factor the denominator completely before anything else.
    • Find A and B by substituting the zeros of each factor.
    • Combine logs at the end with log laws for a clean exact answer.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      Which is the partial fraction decomposition of 1x(x+1)\frac{1}{x(x + 1)}?

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      Which is ∫dxx2−1\int \frac{dx}{x^2 - 1}?

    3. Question 3 · MP 1 · Implementing Mathematical Processes

      If x+5(x−1)(x+2)=Ax−1+Bx+2\frac{x + 5}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2}, what are AA and BB?

    4. Question 4 · MP 1 · Implementing Mathematical Processes

      What is ∫23dxx2−1\int_2^3 \frac{dx}{x^2 - 1}?

    5. Question 5 · MP 3 · Justification

      Which integral needs long division before partial fractions?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 4 points

    Let g(x)=3x(x−2)(x+1)g(x) = \frac{3x}{(x - 2)(x + 1)} for x>2x > 2.

    1. (a) Find constants AA and BB with g(x)=Ax−2+Bx+1g(x) = \frac{A}{x - 2} + \frac{B}{x + 1}.
    2. (b) Find ∫g(x) dx\int g(x)\,dx.
    3. (c) Evaluate ∫35g(x) dx\int_3^5 g(x)\,dx.

    Connected topics

    Frequently asked questions

    Is this on the AB exam?

    No. Partial fractions are BC only (topic 6.12).

    What if the denominator has a repeated factor?

    Repeated linear factors are outside the AP course, so they will not be tested.

    Can I use a calculator for the constants?

    On the no-calculator section you cannot, but substituting the zeros of the factors makes the arithmetic short.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the BC exam is laid out.

    Free Unit 6 cheat sheet

    Every topic in Unit 6: Integration and Accumulation of Change on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus BC practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus BC practice examsUnit 6 is one of 10 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Related lessons in other AP courses

    All topics in Unit 6: Integration and Accumulation of Change

    1. 6.11 Integrating Using Integration by Parts
    2. 6.12 Integrating Using Linear Partial Fractions
    3. 6.13 Evaluating Improper Integrals

    Other units in AP Calculus BC

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