AP® CALCULUS BC · UNIT 6

Using Linear Partial Fractions

Split a rational function into simpler fractions. Find and verify the coefficients, integrate each term, and keep the original domain in view.

Topic 6.12 study notes8 worked examples · 8 practice questionsUpdated 11 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. What Topic 6.12 asks you to do

Partial fraction decomposition reverses adding rational expressions. Split a proper rational function into simpler fractions, verify the identity, then integrate each term.

AP Calculus BC only · Topic 6.12. The required scope is linear, nonrepeating denominator factors. Use the decomposition to determine indefinite integrals and evaluate definite integrals on an interval that avoids the original poles.

There are six core examples and six core practice questions below. Two repeated-factor examples and two additional questions are preserved in the optional extension.

2. Find, verify, and integrate the coefficients

  1. Check degrees. If the numerator degree is at least the denominator degree, divide first. Decompose only the proper remainder.
  2. Factor the denominator. For distinct linear factors, use one constant numerator over each factor.
  3. Clear denominators. Multiply through by their common denominator to get a polynomial identity.
  4. Find the constants. Substitute the roots of individual factors into that polynomial identity, or expand and compare coefficients.
  5. Recombine to verify. Check the numerator before integrating the simple fractions.
  6. Integrate and state the domain. Use logarithmic absolute values and one final constant on each interval of the original domain.

After denominators have been cleared, the polynomial identity can be evaluated at their roots to solve for constants. This does not assign values to the original rational function at its excluded inputs.

For a nonzero constant m, the term Amx+b has a primitive

F(x)=Amln|mx+b|.

Differentiation checks the factor 1m. Work on an interval where mx+b≠0.

Equivalent antiderivatives can keep logarithms separate or combine them using logarithm rules. The combined forms below retain the same coefficients and derivative.

3. Set up the nonrepeating linear factors

Use these setups for proper fractions whose denominators are (x−a)(x−b) or (x−a)(x−b)(x−c), with the displayed roots distinct. Each coefficient is a constant. The letter D below is a decomposition coefficient, separate from the final constant C in an antiderivative.

Core setup for nonrepeating linear factors
Distinct rootsPartial fraction form
2Ax−a+Bx−b
3Ax−a+Bx−b+Dx−c

For factors such as 2x+1, keep that linear factor intact in the setup, then account for its coefficient when integrating.

4. Six core worked examples

Example 1 · Find two coefficients by strategic substitution

Find I=∫5x+1x2+x−2dx.

1 · Factor and clear the denominators

The denominator is (x−1)(x+2), and the fraction is proper. Use coefficients A over x−1 and B over x+2.

5x+1=A(x+2)+B(x−1)

2 · Solve the polynomial identity

Choose values that isolate one coefficient
Set xRemaining equationCoefficient
16=3AA=2
−2−9=−3BB=3
5x+1x2+x−2=2x−1+3x+2

3 · Integrate and differentiate to check

I=ln|(x−1)2(x+2)3|+C

Differentiating recovers the two simple fractions. Use the result on each interval separated by −2 and 1.

The original rational function

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −4 −2 0 1 2 4 x −10 −5 0 5 10 f x ( )
The original function excludes x=−2 and x=1. Its three branches stay separate, and its zero is x=−15.

The two simpler summands

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −4 −2 0 1 2 4 x −10 −5 0 5 10 y First Second
The solid curve is 2x−1 and the dashed curve is 3x+2. Their sum equals the original function wherever both are defined. At x=2, their values add to 2+34=114.

Example 2 · Use three distinct linear factors

Find I=∫2x2−x+4x(x−1)(x+2)dx.

1 · Clear all three factors

Use A over x, B over x−1, and D over x+2. In the cleared identity their multipliers are (x−1)(x+2), x(x+2), and x(x−1), respectively.

2 · Evaluate at the three roots

Setting x=0, x=1, and x=−2 gives the equations below.

4=−2A
5=3B,14=6D

Thus A=−2, B=53, and D=73. Recombining the fractions gives the original numerator.

3 · Add the three logarithmic primitives

The logarithmic coefficients are −2, 53, and 73. Combine them into one logarithm if desired:

I=13ln|(x−1)5(x+2)7x6|+C

The excluded inputs are −2, 0, and 1. On every remaining interval, differentiating gives the original integrand.

Example 3 · Use polynomial division before decomposition

Find I=∫x3+2x+1x2−1dx.

1 · Separate the polynomial part

Dividing by x2−1 gives quotient x and remainder 3x+1. The denominator factors as (x−1)(x+1).

x3+2x+1x2−1=x+3x+1x2−1

2 · Decompose only the proper remainder

3x+1=A(x+1)+B(x−1)

At x=1, 4=2A. At x=−1, −2=−2B. Hence A=2 and B=1.

3 · Integrate both parts

L(x)=ln|(x−1)2(x+1)|
I=x22+L(x)+C

The polynomial term contributes derivative x, and L′ supplies the proper remainder. Work on an interval avoiding x=±1.

Example 4 · Keep the coefficient of a nonmonic factor

Find I=∫3x+5(2x+1)(x+2)dx.

1 · Solve the cleared identity

Use A over 2x+1 and B over x+2. For the numerator N=3x+5, the cleared identity is

N=A(x+2)+B(2x+1)

At x=−12, 72=32A, so A=73. At x=−2, −1=−3B, so B=13.

2 · Account for the inside derivative

The primitive of the first fraction needs the factor 12, because the derivative of 2x+1 is 2.

P(x)=76ln|2x+1|
Q(x)=13ln|x+2|

3 · Combine and check

I=P(x)+Q(x)+C

The derivatives are 73(2x+1) and 13(x+2). Recombining gives the original fraction. Exclude x=−12 and x=−2.

Example 5 · Evaluate on an interval that avoids every pole

Evaluate I=∫235x+1x2+x−2dx.

1 · Check the interval and use the decomposition

The poles at −2 and 1 are outside [2,3]. From Example 1, the two logarithmic contributions have coefficients 2 and 3.

Values needed at the two bounds
xx−1x+2
214
325

2 · Subtract the logarithmic endpoint values

All arguments are positive on the interval, so the first term contributes 2ln2 and the second contributes 3[ln5−ln4].

I=2ln2+3ln(54)

3 · Combine the result and check its sign

I=ln(12516)

The value is positive, consistent with the positive integrand on [2,3]. It equals the shaded geometric area.

The definite integral stays away from the poles

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 2.0 2.5 3.0 x 0 1 2 3 f x ( )
The shaded interval is [2,3]. Its endpoint heights are 114 and 85, and its exact area is ln(12516).

Example 6 · Compare coefficients instead of substituting roots

Find I=∫2x+7(x+1)(x+3)dx.

1 · Expand the cleared identity

2x+7=A(x+3)+B(x+1)

The coefficient of x is A+B; the constant term is 3A+B.

A+B=2,3A+B=7

2 · Solve and verify

Subtract the first equation from the second. This gives 2A=5, so A=52 and B=−12.

3 · Write the logarithmic primitive

P(x)=ln|(x+1)5x+3|
I=12P(x)+C

Differentiating gives 52(x+1)−12(x+3). Work on intervals avoiding −1 and −3.

5. Core practice with step-by-step solutions

Problem 1

Find I=∫7x2−4dx.

Show solution 1

Solution

Factor the denominator as (x−2)(x+2). The coefficients are 74 over x−2 and −74 over x+2.

I=74ln|x−2x+2|+C

Use this answer on any interval excluding −2 and 2.

Problem 2

Find I=∫x+5x2+3x+2dx.

Show solution 2

Solution

The factors are x+1 and x+2. The identity x+5=A(x+2)+B(x+1) gives A=4, B=−3.

I=ln|(x+1)4(x+2)3|+C

Recombining the derivative gives numerator x+5. Exclude −1 and −2.

Problem 3

Find I=∫1x(x−3)dx.

Show solution 3

Solution

The coefficients are −13 over x and 13 over x−3.

I=13ln|x−3x|+C

The original domain excludes 0 and 3.

Problem 4

Find I=∫1(2x−1)(x+1)dx.

Show solution 4

Solution

Use coefficients 23 over 2x−1 and −13 over x+1. The first primitive needs the factor 12.

I=13ln|2x−1x+1|+C

Exclude x=12 and x=−1.

Problem 5

Evaluate I=∫011(x+1)(x+2)dx.

Show solution 5

Solution

The decomposition is 1x+1−1x+2. The integrand is continuous throughout [0,1]. Subtract the endpoint values of ln(x+1)−ln(x+2).

I=ln(43)

Problem 6

Find I=∫x2+1x2−x−2dx.

Show solution 6

Solution

Division gives quotient 1 and remainder x+3. Decompose that remainder over (x−2)(x+1) with coefficients 53 and −23.

L(x)=13ln|(x−2)5(x+1)2|
I=x+L(x)+C

Exclude 2 and −1.

6. Optional extension: repeated factors

The framework specifies nonrepeating linear factors for this topic. The original repeated-factor material is retained below as extra practice beyond that core requirement.

Explore repeated linear factors: optional extension

A factor (x−a)n contributes one term for every power from 1 through n, including terms whose coefficients may turn out to be zero. The cases in the table are the square (x−a)2, the cube (x−a)3, and the mixed denominator x(x−a)2.

Additional setups for repeated linear factors
CasePartial fraction setup
SquareA1x−a+A2(x−a)2
CubeA1x−a+A2(x−a)2+A3(x−a)3
MixedAx+Bx−a+D(x−a)2

For n≥2 an integer, use the power rule on higher reciprocal powers. The shift has derivative 1. Keep x≠a.

Primitives of the simple terms
IntegrandAntiderivative family
Kx−aKln|x−a|+C
K(x−a)2−Kx−a+C
K(x−a)3−K2(x−a)2+C
K(x−a)nK(1−n)(x−a)n−1+C

Example 7 · Extension: include both powers of a repeated factor

Find I=∫3x+5(x−1)2dx.

1 · Retain every power in the setup

Use A over x−1 and B over (x−1)2. Clearing the denominator gives

3x+5=A(x−1)+B.

At x=1, B=8. Comparing the x-coefficient gives A=3.

2 · Use a logarithm and the power rule

I=3ln|x−1|−8x−1+C

The repeated-power term has a rational primitive, not another logarithm. Differentiating it gives 8(x−1)2. Exclude x=1.

Example 8 · Extension: a repeated factor and a distinct factor

Find I=∫x2+1x(x+1)2dx.

1 · Solve for all three coefficients

Use A over x, B over x+1, and D over (x+1)2. Write the numerator as N=x2+1. The cleared identity can be grouped as

N=A(x+1)2+xQ(x)
Q(x)=B(x+1)+D

At x=0, A=1. At x=−1, D=−2. Setting x=1 then gives B=0.

2 · Integrate the two nonzero terms

I=ln|x|+2x+1+C

The derivative is 1x−2(x+1)2, which recombines to the original integrand. The original domain still excludes 0 and −1.

Problem 7

Extension: find I=∫2x−1(x+1)2dx.

Show solution 7

Solution

The decomposition is 2x+1−3(x+1)2. Apply the logarithmic rule to the first term and the power rule to the second.

I=2ln|x+1|+3x+1+C

Exclude x=−1.

Problem 8

Extension: find I=∫x+1x2(x−1)dx.

Show solution 8

Solution

Use coefficients −2 over x, −1 over x2, and 2 over x−1. Clearing the denominator recovers x+1.

I=1x+2ln|x−1x|+C

Differentiate to recover all three terms. Exclude 0 and 1.

7. Check the identity, logarithms, and domain

  • Recombine before integrating. The cleared numerator must match the original polynomial, including every sign.
  • Separate coefficients from the final constant. The coefficients of the partial fractions are fixed by the identity; C remains arbitrary in the antiderivative.
  • Keep logarithmic absolute values. Drop them only when the argument is positive throughout the interval you use.
  • Account for nonmonic factors. A linear denominator's coefficient also enters its logarithmic primitive.
  • Check every excluded input. The identity is used on the original domain; cancellation or coefficient solving does not fill missing points.
  • Check a definite interval before subtracting. If a pole lies inside it, an ordinary endpoint subtraction cannot replace the separate improper-integral analysis from Topic 6.13.

In an AP response, show the setup, a cleared identity or coefficient system, and the integrated terms. Differentiate an indefinite answer; for a definite answer, verify the interval and use the correct endpoint order.

8. Continue studying integration

Use Topic 6.10's long division before partial fractions when needed. The next topic explains how to interpret integrals with poles or unbounded intervals.