What you'll learn
- How to recognise when integration by partial fractions is appropriate.
- How to decompose rational functions with distinct or repeated linear factors.
- How to integrate the resulting fractions using logarithms.
- How to handle improper fractions and definite integrals accurately.
Prerequisites
Rational functions
A rational function is a fraction in which both the numerator and denominator are polynomials, such as
3x+7(x−1)(x+2).\frac{3x+7}{(x-1)(x+2)}.(x−1)(x+2)3x+7.The degree of a polynomial is its highest power of xxx. For example, 3x2−5x+13x^2-5x+13x2−5x+1 has degree 2.
A rational function is proper if the degree of its numerator is smaller than the degree of its denominator. Otherwise, it is improper.
Partial fractions
A partial-fraction decomposition rewrites one rational function as a sum of simpler rational functions. These simpler fractions can often be integrated directly.
For example, an expression with two distinct linear factors may have the form
3x+7(x−1)(x+2)=Ax−1+Bx+2,\frac{3x+7}{(x-1)(x+2)} = \frac{A}{x-1}+\frac{B}{x+2},(x−1)(x+2)3x+7=x−1A+x+2B,where AAA and BBB are constants to be found.
The logarithmic integral
The key standard result is
∫1x dx=ln∣x∣+C.\int \frac{1}{x}\,dx=\ln|x|+C.∫x1dx=ln∣x∣+C.More generally,
∫1ax+b dx=1aln∣ax+b∣+C.\int \frac{1}{ax+b}\,dx = \frac{1}{a}\ln|ax+b|+C.∫ax+b1dx=a1ln∣ax+b∣+C.The factor 1a\frac{1}{a}a1 appears because the derivative of ax+bax+bax+b is aaa.
Integrating a linear denominator
Evaluate ∫53x−4 dx\displaystyle \int \frac{5}{3x-4}\,dx∫3x−45dx.
-
Use the standard form with a=3a=3a=3, so integrating 13x−4\frac{1}{3x-4}3x−41 introduces a factor of 13\frac{1}{3}31.
-
Multiply this by the numerator 5:
∫53x−4 dx=53ln∣3x−4∣+C.\int \frac{5}{3x-4}\,dx = \frac{5}{3}\ln|3x-4|+C.∫3x−45dx=35ln∣3x−4∣+C. -
Differentiate to check:
ddx(53ln∣3x−4∣)=53⋅33x−4=53x−4.\frac{d}{dx}\left(\frac{5}{3}\ln|3x-4|\right) = \frac{5}{3}\cdot\frac{3}{3x-4} = \frac{5}{3x-4}.dxd(35ln∣3x−4∣)=35⋅3x−43=3x−45.
Forgetting the inner derivative
In ∫1ax+b dx\int \frac{1}{ax+b}\,dx∫ax+b1dx, do not write simply ln∣ax+b∣\ln|ax+b|ln∣ax+b∣. You must divide by the coefficient aaa.
Distinct linear factors
A linear factor has the form ax+bax+bax+b. If the denominator contains different linear factors, assign one constant numerator to each factor.
For example,
px+q(x−a)(x−b)=Ax−a+Bx−b,a≠b.\frac{px+q}{(x-a)(x-b)} = \frac{A}{x-a}+\frac{B}{x-b}, \qquad a\neq b.(x−a)(x−b)px+q=x−aA+x−bB,a=b.You can find AAA and BBB by multiplying through by the original denominator:
px+q=A(x−b)+B(x−a).px+q=A(x-b)+B(x-a).px+q=A(x−b)+B(x−a).You may then substitute convenient values of xxx, usually the values that make individual factors zero.
Decompose before integrating
Partial fractions change one difficult rational integral into a sum of standard integrals. Find the decomposition first, then integrate each term separately.
Integrating with two distinct linear factors
Evaluate
∫5x+1(x−1)(x+2) dx.\int \frac{5x+1}{(x-1)(x+2)}\,dx.∫(x−1)(x+2)5x+1dx.-
Write the correct decomposition:
5x+1(x−1)(x+2)=Ax−1+Bx+2.\frac{5x+1}{(x-1)(x+2)} = \frac{A}{x-1}+\frac{B}{x+2}.(x−1)(x+2)5x+1=x−1A+x+2B. -
Multiply by (x−1)(x+2)(x-1)(x+2)(x−1)(x+2):
5x+1=A(x+2)+B(x−1).5x+1=A(x+2)+B(x-1).5x+1=A(x+2)+B(x−1). -
Substitute x=1x=1x=1 to eliminate the term containing BBB:
6=3A⇒A=2.6=3A \quad\Rightarrow\quad A=2.6=3A⇒A=2. -
Substitute x=−2x=-2x=−2 to eliminate the term containing AAA:
−9=−3B⇒B=3.-9=-3B \quad\Rightarrow\quad B=3.−9=−3B⇒B=3. -
Integrate the decomposition:
∫5x+1(x−1)(x+2) dx=∫(2x−1+3x+2) dx=2ln∣x−1∣+3ln∣x+2∣+C.\begin{aligned} \int \frac{5x+1}{(x-1)(x+2)}\,dx &= \int\left(\frac{2}{x-1}+\frac{3}{x+2}\right)\,dx\\ &= 2\ln|x-1|+3\ln|x+2|+C. \end{aligned}∫(x−1)(x+2)5x+1dx=∫(x−12+x+23)dx=2ln∣x−1∣+3ln∣x+2∣+C.
Use the roots strategically
After clearing the denominator, substitute the root of each linear factor. This makes one term survive while the others become zero.
Linear factors with coefficients
A denominator factor might be 2x+12x+12x+1 rather than x+1x+1x+1. The decomposition method is unchanged, but the coefficient of xxx matters when you integrate.
Accounting for linear coefficients
Evaluate
∫7x+1(2x+1)(x−1) dx.\int \frac{7x+1}{(2x+1)(x-1)}\,dx.∫(2x+1)(x−1)7x+1dx.-
Decompose the fraction:
7x+1(2x+1)(x−1)=A2x+1+Bx−1.\frac{7x+1}{(2x+1)(x-1)} = \frac{A}{2x+1}+\frac{B}{x-1}.(2x+1)(x−1)7x+1=2x+1A+x−1B. -
Clear the denominator:
7x+1=A(x−1)+B(2x+1).7x+1=A(x-1)+B(2x+1).7x+1=A(x−1)+B(2x+1). -
Substitute x=1x=1x=1:
8=3B⇒B=83.8=3B \quad\Rightarrow\quad B=\frac{8}{3}.8=3B⇒B=38. -
Substitute x=−12x=-\frac{1}{2}x=−21:
−52=−32A⇒A=53.-\frac{5}{2}=-\frac{3}{2}A \quad\Rightarrow\quad A=\frac{5}{3}.−25=−23A⇒A=35. -
Integrate, remembering that the derivative of 2x+12x+12x+1 is 2:
∫(53(2x+1)+83(x−1)) dx=56ln∣2x+1∣+83ln∣x−1∣+C.\begin{aligned} \int\left(\frac{5}{3(2x+1)}+\frac{8}{3(x-1)}\right)\,dx &= \frac{5}{6}\ln|2x+1| +\frac{8}{3}\ln|x-1|+C. \end{aligned}∫(3(2x+1)5+3(x−1)8)dx=65ln∣2x+1∣+38ln∣x−1∣+C.
Repeated linear factors
A factor is repeated when it occurs more than once, as in (x−2)2(x-2)^2(x−2)2.
You must include a fraction for every power of the repeated factor:
P(x)(x−a)2(x−b)=Ax−a+B(x−a)2+Cx−b.\frac{P(x)}{(x-a)^2(x-b)} = \frac{A}{x-a} +\frac{B}{(x-a)^2} +\frac{C}{x-b}.(x−a)2(x−b)P(x)=x−aA+(x−a)2B+x−bC.Leaving out one of these terms gives an incomplete decomposition.
Integrating with a repeated linear factor
Evaluate
∫3x+5x(x+1)2 dx.\int \frac{3x+5}{x(x+1)^2}\,dx.∫x(x+1)23x+5dx.-
Include every required partial fraction:
3x+5x(x+1)2=Ax+Bx+1+C(x+1)2.\frac{3x+5}{x(x+1)^2} = \frac{A}{x} +\frac{B}{x+1} +\frac{C}{(x+1)^2}.x(x+1)23x+5=xA+x+1B+(x+1)2C. -
Multiply through by x(x+1)2x(x+1)^2x(x+1)2:
3x+5=A(x+1)2+Bx(x+1)+Cx.3x+5=A(x+1)^2+Bx(x+1)+Cx.3x+5=A(x+1)2+Bx(x+1)+Cx. -
Substitute x=0x=0x=0 to obtain A=5A=5A=5, and substitute x=−1x=-1x=−1 to obtain C=−2C=-2C=−2.
-
Compare the coefficients of x2x^2x2. The left side has coefficient zero, so
0=A+B⇒B=−5.0=A+B \quad\Rightarrow\quad B=-5.0=A+B⇒B=−5. -
Integrate each term, writing (x+1)−2(x+1)^{-2}(x+1)−2 in power form:
∫(5x−5x+1−2(x+1)2) dx=5ln∣x∣−5ln∣x+1∣+2x+1+C.\begin{aligned} \int\left(\frac{5}{x}-\frac{5}{x+1}-\frac{2}{(x+1)^2}\right)\,dx &= 5\ln|x|-5\ln|x+1|+\frac{2}{x+1}+C. \end{aligned}∫(x5−x+15−(x+1)22)dx=5ln∣x∣−5ln∣x+1∣+x+12+C.
Treating every term as a logarithm
Only a denominator to the first power produces a logarithm directly. Integrate 1(x−a)2\frac{1}{(x-a)^2}(x−a)21 using the power rule.
Improper rational functions
Partial-fraction decomposition requires a proper rational function. If the numerator has degree greater than or equal to the denominator, first use polynomial division.
Dividing before decomposition
Evaluate
∫x2+2x+3x(x+1) dx.\int \frac{x^2+2x+3}{x(x+1)}\,dx.∫x(x+1)x2+2x+3dx.-
Since the numerator and denominator both have degree 2, divide first:
x2+2x+3x2+x=1+x+3x(x+1).\frac{x^2+2x+3}{x^2+x} = 1+\frac{x+3}{x(x+1)}.x2+xx2+2x+3=1+x(x+1)x+3. -
Decompose the proper remainder:
x+3x(x+1)=Ax+Bx+1.\frac{x+3}{x(x+1)} = \frac{A}{x}+\frac{B}{x+1}.x(x+1)x+3=xA+x+1B.Clearing the denominator gives
x+3=A(x+1)+Bx.x+3=A(x+1)+Bx.x+3=A(x+1)+Bx. -
Substituting x=0x=0x=0 gives A=3A=3A=3. Comparing coefficients of xxx then gives 1=A+B1=A+B1=A+B, so B=−2B=-2B=−2.
-
Integrate the complete expression:
∫x2+2x+3x(x+1) dx=∫(1+3x−2x+1) dx=x+3ln∣x∣−2ln∣x+1∣+C.\begin{aligned} \int \frac{x^2+2x+3}{x(x+1)}\,dx &= \int\left(1+\frac{3}{x}-\frac{2}{x+1}\right)\,dx\\ &= x+3\ln|x|-2\ln|x+1|+C. \end{aligned}∫x(x+1)x2+2x+3dx=∫(1+x3−x+12)dx=x+3ln∣x∣−2ln∣x+1∣+C.
Definite integrals
For a definite integral, find an antiderivative and evaluate it at the limits. Check that the original integrand is defined throughout the interval.
Discontinuities inside the interval
If a denominator is zero between the limits, the ordinary definite integral is improper and may not exist. Do not substitute into a logarithmic antiderivative without checking the interval.
Evaluating a definite integral
Evaluate
∫231x(x+1) dx.\int_2^3 \frac{1}{x(x+1)}\,dx.∫23x(x+1)1dx.-
Decompose the integrand:
1x(x+1)=1x−1x+1.\frac{1}{x(x+1)} = \frac{1}{x}-\frac{1}{x+1}.x(x+1)1=x1−x+11. -
Integrate and apply the limits:
∫231x(x+1) dx=[ln∣x∣−ln∣x+1∣]23.\int_2^3 \frac{1}{x(x+1)}\,dx = \left[\ln|x|-\ln|x+1|\right]_2^3.∫23x(x+1)1dx=[ln∣x∣−ln∣x+1∣]23. -
Substitute the upper and lower limits:
(ln3−ln4)−(ln2−ln3)=ln(98).\begin{aligned} \left(\ln 3-\ln 4\right) -\left(\ln 2-\ln 3\right) &= \ln\left(\frac{9}{8}\right). \end{aligned}(ln3−ln4)−(ln2−ln3)=ln(89).
Checking your result
You can check a decomposition by recombining the fractions over a common denominator. You can check the final integral by differentiating it.
Keep absolute-value signs in indefinite logarithmic integrals unless the domain guarantees that the expression inside the logarithm is positive.
In the exam
- Check that the rational function is proper; use polynomial division first if it is not.
- Factorise the denominator fully and include one partial fraction for every distinct factor and every power of a repeated factor.
- Clear the denominator, then use convenient substitutions and coefficient comparison to find the constants.
- Integrate each term carefully, allowing for the derivative of each linear denominator.
- Use absolute values in logarithms and check for denominator zeros before evaluating a definite integral.
Check yourself
- How would you decompose 4x+1(x−2)(x+3)\frac{4x+1}{(x-2)(x+3)}(x−2)(x+3)4x+1 before integrating?
- Which partial-fraction terms are required when the denominator is (x+1)3(x−4)(x+1)^3(x-4)(x+1)3(x−4)?
- Why must polynomial division come before partial fractions for x3+1x2−x\frac{x^3+1}{x^2-x}x2−xx3+1?