AP · Calculus BC · Integration by Parts and Partial Fractions
Integration Using Partial Fractions
18 min readUpdated November 30, 2026FreeAP Calculus BC, Further Integration Techniques
Partial fractions split a rational function whose denominator factors into distinct linear factors into a sum of simpler fractions, such as (x−1)(x+2)x+5=x−12−x+21. Each simple fraction integrates to a natural logarithm, so the whole integral becomes a sum of logs. If the numerator's degree is not less than the denominator's, you divide first.
Quick check
1Find ∫x+41dx.Show answerHide answer
ln∣x+4∣+C. The derivative of ln∣x+4∣ is x+41.
2Factor x2−5x+6.Show answerHide answer
(x−2)(x−3). The two numbers multiply to 6 and add to −5.
3Write x−11−x+11 as a single fraction.Show answerHide answer
x2−12. Over the common denominator (x−1)(x+1), the numerator is (x+1)−(x−1)=2. Partial fractions run this process in reverse.
Explain why splitting a rational function into partial fractions makes it possible to integrate.
Find the constants in a decomposition by substituting the roots of the denominator.
Find integrals of the form ∫(x−a)(x−b)px+qdx as sums of natural logarithms.
Determine when to divide first, and integrate the quotient and the remainder.
Evaluate definite integrals by partial fractions and simplify the logs exactly.
Key terms
Partial fractions
A sum of fractions with linear denominators that equals a given rational function, such as x−12−x+21 for (x−1)(x+2)x+5.
In plain English
The single fraction broken back into the pieces it could have come from.
Don't write
(x−1)(x+2)x+5=x−1x+5+x+2x+5; the numerator does not split across the factors.
Proper rational function
A fraction of two polynomials in which the degree of the numerator is less than the degree of the denominator.
In plain English
The top is "smaller" than the bottom, so no division is needed.
Don't write
That x2−1x2+3 is proper; equal degrees mean you divide first.
Why split a fraction before integrating?
Take ∫(x−1)(x+2)x+5dx. The numerator is not a multiple of the derivative of the denominator, 2x+1, so u-substitution fails. But the fraction equals
x−12−x+21
and each piece has the form x−aA, which integrates straight to a logarithm. So
∫(x−1)(x+2)x+5dx=2ln∣x−1∣−ln∣x+2∣+C
Learn this: when the denominator is a product of two different linear factors and the fraction is proper,
(x−a)(x−b)px+q=x−aA+x−bB
for some constants A and B. Three different linear factors work the same way, with one constant for each factor. The constants are fixed numbers; the next section shows how to find them.
Key idea
One linear factor in the denominator gives one fraction with a constant on top, and each of those fractions integrates to a logarithm.
Check yourself
Combine x1−x+31 into a single fraction.
Show answerHide answer
x(x+3)3. The numerator is (x+3)−x=3, so x(x+3)3 splits as x1−x+31.
How do you find the constants?
Multiply both sides by the whole denominator. That clears every fraction and leaves an identity, true for every x.
For (x−2)(x+1)5x−4=x−2A+x+1B, multiplying through gives
5x−4=A(x+1)+B(x−2)
Now substitute the root of each factor. Each root makes one bracket zero, so one constant drops out:
x=2:6=3A, so A=2.
x=−1:−9=−3B, so B=3.
So (x−2)(x+1)5x−4=x−22+x+13.
You can also expand the right side and match coefficients: 5x−4=(A+B)x+(A−2B), so A+B=5 and A−2B=−4. This gives the same answer, but it takes longer, so keep it as a check.
To test your constants, pick any other value, such as x=0. The left side gives −2−4=2, and the right side gives −22+13=2.
Check yourself
Find A and B so that (x+3)(x−1)x+11=x+3A+x−1B.
Show answerHide answer
A=−2 and B=3. From x+11=A(x−1)+B(x+3): x=1 gives 12=4B, and x=−3 gives 8=−4A.
How does each piece integrate?
Each piece integrates to a log, divided by the coefficient of x inside it. Learn this:
∫ax+bAdx=aAln∣ax+b∣+C
The factor a1 comes from the chain rule: differentiating ln∣ax+b∣ gives ax+ba. For example, ∫2x−11dx=21ln∣2x−1∣+C.
Keep the absolute value bars. The function x−31 is defined for x<3, but ln(x−3) is not, so ln∣x−3∣ is the antiderivative that works on both sides of x=3.
For a definite integral, evaluate the logs and then combine them with the log laws, lna−lnb=lnba and klna=lnak. An exact answer such as ln34 is what a no-calculator question expects.
Check yourself
Evaluate ∫01(x+1)(x+2)1dx.
Show answerHide answer
ln34. The integrand is x+11−x+21, so the value is (ln2−ln3)−(ln1−ln2)=2ln2−ln3.
What if the numerator's degree is too high?
The split into x−aA+x−bB only works for a proper fraction, because the right side is always proper. If the numerator's degree is equal to or greater than the denominator's, divide first (see the AP® Calculus AB note on long division and completing the square). Then split the proper remainder.
For x2−1x2+3, the degrees are equal. Write the numerator as (x2−1)+4:
x2−1x2+3=1+x2−14=1+x−12−x+12
The quotient 1 integrates to x, and the two fractions give logs, so
∫x2−1x2+3dx=x+2ln∣x−1∣−2ln∣x+1∣+C
Examiner's eye
Marks are lost when the polynomial part from the division is dropped. Compare the degrees before you set up A and B.
Check yourself
Write x2−4x2 as a polynomial plus partial fractions.
Show answerHide answer
1+x−21−x+21. Dividing gives 1+x2−44, and (x−2)(x+2)4 splits with A=1 and B=−1.
Which method fits the fraction?
What you see
Method
The numerator is a multiple of the derivative of the denominator, such as x2+3x2x+3
u-substitution, giving ln∣x2+3x∣
A proper fraction whose denominator factors into different linear factors
Partial fractions
Numerator degree equal to or above the denominator's
Divide first, then split the remainder if needed
A denominator such as x2+4 that does not factor
An arctan form, from AP® Calculus AB
A polynomial times lnx or ex
Integration by parts: see the note on integration by parts
Worked example 1: Two linear factors
Question: Find ∫x2−x−6x+7dx.
What tells you the method
The fraction is proper, the denominator factors into two different linear factors, and the numerator is not a multiple of the denominator's derivative, 2x−1.
1
Step 1: Factor and set up.
x2−x−6=(x−3)(x+2), so write (x−3)(x+2)x+7=x−3A+x+2B.
Why
One constant for each linear factor.
2
Step 2: Clear the fractions.
x+7=A(x+2)+B(x−3).
Why
Multiplying by (x−3)(x+2) leaves an identity in x.
3
Step 3: Substitute the roots.
x=3:10=5A, so A=2.x=−2:5=−5B, so B=−1.
Why
Each root makes one bracket zero.
4
Step 4: Integrate each piece.
∫(x−32−x+21)dx=2ln∣x−3∣−ln∣x+2∣+C.
Why
The coefficient of x in each factor is 1, so no extra factor appears.
Check it
At x=0 the original fraction is −67, and −32−21=−67, so the split is right.
Answer
2ln∣x−3∣−ln∣x+2∣+C
Worked example 2: A factor with 2x and limits
Question: Evaluate ∫152x2+3x−25x+5dx. Give the exact value as a single logarithm.
What tells you the method
A proper fraction whose denominator factors, with limits that keep you away from the roots x=21 and x=−2.
1
Step 1: Factor and find the constants.
2x2+3x−2=(2x−1)(x+2). From 5x+5=A(x+2)+B(2x−1): x=21 gives 215=25A, so A=3;x=−2 gives −5=−5B, so B=1.
Why
The root of 2x−1 is x=21, not x=1.
2
Step 2: Integrate.
∫(2x−13+x+21)dx=23ln∣2x−1∣+ln∣x+2∣.
Why
The 2x inside the first log brings a factor of 21.
3
Step 3: Apply the limits.
(23ln9+ln7)−(23ln1+ln3)=3ln3+ln7−ln3=2ln3+ln7.
Why
23ln9=23⋅2ln3=3ln3.
4
Step 4: Combine the logs.
2ln3+ln7=ln9+ln7=ln63.
Why
klna=lnak and lna+lnb=lnab.
Check it
The integrand falls from 310≈3.33 at x=1 to 6330≈0.48 at x=5, so an average height near 1 over a width of 4 is reasonable; ln63≈4.143.
Answer
ln63≈4.143
Worked example 3: Divide first, exam style
Question: The function g satisfies g′(x)=x2−1x2+x+2 for x>1, and g(2)=5. Find the exact value of g(3), then give it to three decimal places.
What tells you the method
g(3)=g(2)+∫23g′(x)dx, and the integrand has equal degrees top and bottom, so you divide before you split.
1
Step 1: Divide.
x2+x+2=(x2−1)+(x+3), so g′(x)=1+x2−1x+3.
Why
The remainder x+3 has a lower degree than x2−1.
2
Step 2: Split the remainder.
x+3=A(x+1)+B(x−1). x=1:4=2A, so A=2.x=−1:2=−2B, so B=−1.
The integral of a rate of change is the change in g.
Check it
On [2,3],g′ falls from 38 to 814=1.75, so g rises by between 1.75 and 2.67; the rise 1+ln3≈2.099 fits.
Answer
g(3)=6+ln3≈7.099
Your turn
Question: Find ∫x2−x−27x−5dx.
1
Step 1:
x2−x−2=(x−2)(x+1), so write (x−2)(x+1)7x−5=x−2A+x+1B.
2
Step 2:
Clearing fractions gives 7x−5=A(x+1)+B(x−2).
3
Step 3: Your go: find A and B, then integrate.
Substitute x=2 and x=−1.
Show the full solutionHide the solution
x=2:9=3A, so A=3.x=−1:−12=−3B, so B=4.
So the integral is ∫(x−23+x+14)dx.
Answer:3ln∣x−2∣+4ln∣x+1∣+C
Traps
Trap
Writing ∫2x+11dx=ln∣2x+1∣+C.
It seems right because ∫x1dx=ln∣x∣+C. But differentiating ln∣2x+1∣ gives 2x+12, twice the integrand, so the antiderivative is 21ln∣2x+1∣+C.
Check yourself
Evaluate ∫122x+11dx.
Show answerHide answer
21ln35. The antiderivative is 21ln∣2x+1∣, and 21(ln5−ln3)=21ln35.
Trap
Splitting x2−4x2 straight into x−2A+x+2B.
It seems right because the denominator factors. But any sum x−2A+x+2B is a proper fraction, so it can never equal a fraction whose numerator has the same degree as its denominator. Divide first to get 1+x2−44, then split the remainder.
Check yourself
Does x−21−x+21 equal x2−4x2?
Show answerHide answer
No. It equals x2−44. You need the extra 1 from the division: x2−4x2=1+x−21−x+21.
Trap
Dropping the absolute value and writing ln(x−3) for every x.
It seems right because the bars look like decoration. But on an interval where x−3<0,ln(x−3) is undefined, while ln∣x−3∣ is still an antiderivative of x−31. Keep the bars until you know each bracket is positive.
Check yourself
Evaluate ∫02x−31dx.
Show answerHide answer
−ln3. The value is ln∣−1∣−ln∣−3∣=0−ln3; it is negative because the integrand is negative on [0,2].
What's examined
Integration using partial fractions is part of Unit 6 (Further Integration Techniques) of the AP® Calculus BC exam. It can appear in multiple choice, where options written as logs can look alike, and in free-response parts that need an antiderivative, an exact definite integral or a function value from its derivative. It is also how the logistic differential equation is solved. Expect to work by hand: show the factorization, the constants and each log, and give exact answers unless a decimal is asked for. Not on your syllabus: repeated linear factors and quadratic factors in the denominator; this note sticks to distinct linear factors.
Practice questions
Recall Which of the following is equal to x2+3x1?
A) x1+x+31
B) 3x1−3(x+3)1
C) x3−x+33
D) x1−x+31
Show answer
Answer: B, 3x1−3(x+3)1.
Marking points:
1=A(x+3)+Bx:x=0 gives A=31, and x=−3 gives B=−31.
D combines to x2+3x3, three times too big; C multiplies by 3 instead of dividing; A has the wrong sign on the second term.
Apply Find ∫x2−91dx.
Show answer
Answer:61ln∣x−3∣−61ln∣x+3∣+C
Marking points:
1=A(x+3)+B(x−3): x=3 gives A=61, and x=−3 gives B=−61.
Each piece integrates to a log with coefficient 1 inside, so no extra factor.
Apply What is the value of ∫01(x+1)(x+3)2dx?
A) ln21
B) ln32
C) ln49
D) ln23
Show answer
Answer: D, ln23.
Marking points:
(x+1)(x+3)2=x+11−x+31.
(ln2−ln4)−(ln1−ln3)=ln42⋅3=ln23.
A ignores the lower limit; B swaps the signs of the two constants; C uses constants 2 and −2, skipping the division by 2 when solving for them.
Apply Find ∫x2+x2x2+3dx.
Show answer
Answer:2x+3ln∣x∣−5ln∣x+1∣+C
Marking points:
Equal degrees, so divide: x2+x2x2+3=2+x(x+1)−2x+3.
−2x+3=A(x+1)+Bx: x=0 gives A=3, and x=−1 gives B=−5.
Integrate: 2x+3ln∣x∣−5ln∣x+1∣+C.
Exam-style What is the value of ∫35x2−3x+2x+1dx?
A) ln427
B) ln1627
C) ln98
D) ln108
Show answer
Answer: A, ln427.
Marking points:
x2−3x+2=(x−1)(x−2), and x+1=A(x−2)+B(x−1) gives A=−2 and B=3.
B ignores the lower limit; C swaps A and B; D uses A=2 instead of −2.
Exam-style For 0<y<10, which of the following is ∫y(10−y)1dy?
A) 101ln∣y(10−y)∣+C
B) ln∣y∣−ln∣10−y∣+C
C) 101ln10−yy+C
D) 101lny10−y+C
Show answer
Answer: C, 101ln10−yy+C.
Marking points:
1=A(10−y)+By:y=0 gives A=101, and y=10 gives B=101.
∫10−y1dy=−ln∣10−y∣, because the derivative of 10−y is −1.
So the integral is 101(ln∣y∣−ln∣10−y∣)+C. A misses the minus sign from 10−y; B drops the 101; D has the fraction upside down.
Exam-style Let f(x)=x2+3x6. (a) Find the exact area of the region bounded by the graph of f, the x-axis and the lines x=1 and x=3. (b) Find the average value of f on [1,3], exact and to three decimal places.
Show answer
Answer: (a) 2ln2, about 1.386. (b) ln2≈0.693.
Marking points:
f(x)>0 on [1,3], so the area is ∫13f(x)dx.
x(x+3)6=x2−x+32.
[2lnx−2ln(x+3)]13=(2ln3−2ln6)−(0−2ln4)=2ln2.
Average value =3−11∫13f(x)dx=ln2.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
A proper fraction over two different linear factors splits as x−aA+x−bB.
Clear the fractions, then substitute each root to make one constant drop out.
∫ax+bAdx=aAln∣ax+b∣+C: keep the a1 and the bars.
If the numerator's degree is at least the denominator's, divide first and keep the polynomial part.
Combine logs with the log laws to give an exact answer.