A rational function whose denominator factors can be split into simpler fractions, each of which integrates to a logarithm: 1/((x − 1)(x + 2)) = (1/3)/(x − 1) − (1/3)/(x + 2). Write one term A/(x − r) for each distinct linear factor, find the constants by clearing denominators and substituting convenient values of x, then integrate term by term. Divide first if the numerator's degree is not lower than the denominator's; a repeated factor (x − r)² needs the two terms A/(x − r) and B/(x − r)².
What you'll learn
Decompose a rational function with distinct linear factors
Find the constants by substituting convenient values
Adding two fractions over a common denominator merges them:
x−11−x+11=(x−1)(x+1)(x+1)−(x−1)=x2−12
Integrating the left side is immediate: two logarithms. Integrating the right
side is not. Partial fractions runs the addition backward, splitting a
fraction into pieces that each integrate to a logarithm.
Take (x−1)(x+2)1=x−1A+x+2B. Multiplying
by (x−1)(x+2) gives
1=A(x+2)+B(x−1)
This is an identity: it holds for everyx, not only for one. So choose
the values of x that make terms vanish. At x=1 the B term drops out and
1=3A. At x=−2 the A term drops out and 1=−3B. The decomposition
is an identity, so substitute the roots, and each one reveals a constant.
x2+x−6=(x−2)(x+3), and 5=A(x+3)+B(x−2) gives A=1 and B=−1.
Find ∫x2−13x+1dx.
Answer
2ln∣x−1∣+ln∣x+1∣+C
Full solution
3x+1=A(x+1)+B(x−1). At x=1, 4=2A; at x=−1, −2=−2B.
Find ∫x2−4dx.
Answer
41lnx+2x−2+C
Full solution
1=A(x+2)+B(x−2) gives A=41 and B=−41.
Find ∫x2−3xx+1dx.
Answer
−31ln∣x∣+34ln∣x−3∣+C
Full solution
x2−3x=x(x−3), and x+1=A(x−3)+Bx. At x=0, 1=−3A; at x=3, 4=3B.
Find ∫2x2+x−1dx.
Answer
31ln∣2x−1∣−31ln∣x+1∣+C
Full solution
2x2+x−1=(2x−1)(x+1), and 1=A(x+1)+B(2x−1). At x=21, A=32; at x=−1, B=−31. Then ∫2x−12/3dx=31ln∣2x−1∣.
Evaluate ∫01x2+3x+2dx.
Answer
ln34≈0.288
Full solution
(x+1)(x+2)1=x+11−x+21, so the integral is [lnx+2x+1]01=ln32−ln21=ln34.
Find ∫x2−1x2+1dx.
Answer
x+lnx+1x−1+C
Full solution
Divide: x2−1x2+1=1+x2−12, and x2−12=x−11−x+11.
Find ∫x2(x+1)dx.
Answer
−ln∣x∣−x1+ln∣x+1∣+C
Full solution
1=Ax(x+1)+B(x+1)+Cx2. At x=0, B=1; at x=−1, C=1; the x2 terms give 0=A+C, so A=−1. Then ∫x−2dx=−x1.
A student writes x2−91=x21−91 and integrates to −x1−9x+C. What went wrong?
Hint
Test the student’s first step with x=4.
Answer
A fraction does not split over a difference in its denominator. The integral is 61lnx+3x−3+C.
Full solution
At x=4, 16−91=71, but 161−91 is negative.
Factor instead: x2−9=(x−3)(x+3) and 1=A(x+3)+B(x−3) give A=61 and B=−61.
Frequently asked questions
What is partial fraction decomposition?
Rewriting a fraction of polynomials as a sum of simpler fractions, one for each factor of the denominator. It is adding fractions run backward.
How do I find the constants A and B?
Multiply both sides by the denominator. The result holds for every x, so substitute each root of the denominator: each substitution makes all but one term vanish.
What if the numerator's degree is too high?
Divide first. Partial fractions apply only to the proper fraction left after long division.
What do I do with a repeated factor like (x − 1)²?
Include a term for each power: A/(x − 1) + B/(x − 1)². The second term integrates to −B/(x − 1).
What about a factor like x² + 1 that does not factor?
Give it a term (Bx + C)/(x² + 1), which integrates to a logarithm and an arctangent after completing the square.