Skip to main content
Logo image

Coordinated Calculus

Section 5.7 The Method of Partial Fractions

So far, we’ve learned two integration techniques: u-substitution and integration by parts. The former is used to reverse the chain rule, while the latter is used to reverse the product rule. But we have seen that each works only in specialized circumstances. For example, while 2x+4x2+4x+13dx may be evaluated by u-substitution and xexdx by integration by parts, neither method provides a route to evaluate 1x2+4x+13dx.
In the following two sections, we’ll study two more integration techniques: the method of partial fractions and trigonometric substitution. Before introducing them, we’ll walk through an example to help build intuition about the techniques we’ve already learned, and where they might fall short.

Example 5.54.

For each of the indefinite integrals below, decide whether the integral can be evaluated using u-substitution, integration by parts, a combination of the two, or neither. For integrals for which your answer is affirmative, state the substitution(s) you would use. It is not necessary to actually evaluate any of the integrals completely, unless the integral can be evaluated immediately using a familiar basic antiderivative.
  1. x2sin(x3)dx,  x2sin(x)dx,   sin(x3)dx,   x5sin(x3)dx
  2. 11+x2dx,   x1+x2dx,   2x+31+x2dx,  ex1+(ex)2dx,
  3. xln(x)dx,   ln(x)xdx,   ln(1+x2)dx,  xln(1+x2)dx,
  4. x1x2dx,   11x2dx,   x1x2dx,  1x1x2dx,
Solution.
  1. The first integral may be solved by substitution using u=x3 ,du=3x2dx. The second may be solved using IBP with u=x2 ,dv=sin(x)dx The third can not be solved using substitution or IBP. The last one can be solve using a combination. First do a substitution with w=x3 ,dw=3x2dx to convert the integral to 13wsin(w)dw. This may be solved using IBP with u=w and dv=sin(w)dw.
  2. The first integral can be evaluated by following Table 5.16 which has antiderivatives of some basic functions. The second integral can be solved using the u-substitution u=1+x2 ,du=2xdx. This transforms the integral to 121udu. The third integral requires algebraic manipulation before you can successfully use a substitution. We can evaluate 2x+31+x2dx by recognizing that 2x+31+x2=2x1+x2+31+x2 so we can split the original integral into two integrals. Then, evaluate 2x1+x2dx with the substitution u=1+x2 ,du=2xdx and evaluate 31+x2dx by following Table 5.16. The fourth integral can be found by using the substitution u=ex ,du=exdx which transforms the integral to 11+u2du. The antiderivative of 11+u2du is in Table 5.16.
  3. The first integral can be evaluated by using integration by parts with u=ln(x) and dv=xdx. The second integral is evaluated by using the substitution u=ln(x) ,du=1xdx. The third integral cannot be solved by only using the methods of integration by parts or substitution. In fact, one solution to evaluate it involves first using integration by parts then using a method called partial fractions 5.7.1. The fourth integral can be evaluated by using both a substitution and integration by parts. First, perform the substitution w=1+x2 ,dw=2xdx which transforms the integral to 12ln(w)dw. Integration by parts can be used to evaluate this with u=ln(w) and dv=dx.
  4. The first integral can be found by using the substitution u=1x2 ,du=2xdx. The second integral can be evaluated by following Table 5.16. The third integral can be evaluated by using the substitution u=1x2 ,du=2xdx. The fourth integral cannot be solved with standard substitution, integration by parts, or a combination of both. We will need a new style of substitution called trigonometric substitution 5.8.1 which will be discussed in this section.

Subsection 5.7.1 The Method of Partial Fractions

The method of partial fractions is used to integrate rational functions, which are functions that can we written as a quotient of polynomials.
For example, the function f(x)=1x(x1) is the quotient of the polynomial funtions p(x)=1 and q(x)=x(x1). While it is not immediately clear how to compute 1x(x1)dx as written, it turns out that a simple algebraic maneuver will make the task much simpler. In particular, before attempting to integrate we rewrite the integrand as
1x(x1)=1x1x1.
One can check that this equality holds by finding a common denominator for the right-hand side and simplifying. The integral can then be calculated as
1x(x1)dx=1xdx1x1dx=ln|x|ln|x1|+C.
The expression 1x1x1 is a partial fraction decomposition of 1x(x1).
A partial fraction decomposition can be thought of as reversing the process of finding a common denominator. Thus, the method is applicable when the denominator of a rational function can be factored into smaller degree polynomials. In the examples that follow, we’ll demonstrate how to find more complicated partial fraction decompositions and use them to integrate rational functions.

Example 5.55.

Evaluate
5xx2x2dx.
Solution.
If we factor the denominator of the integrand, we can see how 5xx2x2=5x(x2)(x+1) might be the sum of two fractions of the form Ax2+Bx+1, so we suppose that
(5.11)5x(x2)(x+1)=Ax2+Bx+1
and look for the constants A and B.
Multiplying both sides of this equation by the denominator of the left hand side, (x2)(x+1), we find that
5x=A(x+1)+B(x2).
To find A and B, we will rearrange the right hand side of the equation so that similar terms are grouped.
5x=Ax+A+Bx2B5x+0=(A+B)x+(A2B)
Notice that if this equation is going to hold, then the coefficients for x on each side of the equation need to match, and we need the constant terms on each side of the equation to match. This gives us the following system of equations:
5=A+B and 0=A2B
We find that A=103 and B=53. Thus, using Equation (5.11), we can rewrite the original integral as
5xx2x2dx=10/3x2+5/3x+1dx.
This integral can be evaluated by using the fact that 1udu=ln|u|+C and by using substitutions, and hence we find that
5xx2x2dx=103ln|x2|+53ln|x+1|+C.

Example 5.56.

Evaluate
2x2+5x32x2+xdx.
Solution.
If we factor the denominator of the integrand, we can see that 2x2+5x32x2+x=2x2+5x(x1)2. Notice that the factor (x1) shows up twice in the denominator. We call (x1)2 a repeated linear root. The repeated linear root slightly changes our partial fraction decomposition. 2x2+5x(x1)2 can be decomposed into the sum of fractions Ax+Bx1+C(x1)2. We need both Bx1 and C(x1)2 since both x1 and (x1)2 divide x(x1)2. Suppose
(5.12)2x2+5x(x1)2=Ax+Bx1+C(x1)2
and look for constants A, B, and C.
Multiplying both sides of this equation by the denominator of the left hand side, x(x1)2, we find that
2x2+5=A(x1)2+Bx(x1)+Cx
To find A, B, and C, we will rearrange the right hand side of the equation so that similar terms are grouped.
2x2+5=A(x22x+1)+B(x2x)+Cx2x2+0x+5=(A+B)x2+(2AB+C)x+A
Like the previous example, we need the coefficients for x2 to be the same on each side of the equation, the coeffiecients for x to be the same on each side of the equation, and the constant terms to be the same on each side of the equation. Thus, we obtain the system of equations
A+B=2 ,2AB+C=0 , and A=5.
We find that A=5, B=3, and C=7. Thus, using Equation (5.12), we can rewrite the original integral as
2x2+5x(x1)2dx=5x3x1+7(x1)2dx
This integral can be evaluated by using the fact that 1udu=ln|u|+C and by using appropriate substitutions, and hence we find that
2x2+5x(x1)2dx=5xdx31x1dx+7(x2)2dx=5ln|x|3ln|x1|7(x1)1+C

Example 5.57.

Evaluate
3x21(x2+2x+3)(x2)dx.
Solution.
The denominator of the integrand is already factored, and the quadratic polynomial x2+2x+3 cannot be factored anymore. We call this factor an irreducible quadratic factor. The irreducible quadratic factor slightly changes our partial fraction decomposition. 3x21(x2+2x+3)(x2) can be decomposed into the sum of fractions Ax+Bx2+2x+3+Cx2. We need the term Ax+Bx2+2x+3 to include all possibilities where the degree of the numerator is less than the degree of the denominator. Suppose
(5.13)3x21(x2+2x+3)(x2)=Ax+Bx2+2x+3+Cx2
and look for constants A, B, and C.
Multiplying both sides of this equation by the denominator of the left hand side, (x2+2x+3)(x2), we find that
3x21=(Ax+B)(x2)+C(x2+2x+3)
To find A, B, and C, we will rearrange the right hand side of the equation so that similar terms are grouped.
3x21=Ax22Ax+Bx2B+Cx2+2Cx+3C3x2+0x1=(A+C)x2+(2A+B2C)x+(2B+3C)
Like the first example, we need the coefficients for x2 to be the same on each side of the equation, the coeffiecients for x to be the same on each side of the equation, and the constant terms to be the same on each side of the equation. Thus, we obtain the system of equations
A+C=3 ,2A+B2C=0 , and 2B+3C=1.
We find that A=2, B=2, and C=1. Thus, using Equation (5.13), we can rewrite the original integral as
3x21(x2+2x+3)(x2)dx=2x+2x2+2x+3+1x2dx
This integral can be evaluated by using the fact that 1udu=ln|u|+C and by using appropriate substitutions, and hence we find that
3x21(x2+2x+3)(x2)dx=2x+2x2+2x+3dx+1x2dx=ln|x2+2x+3|+ln|x2|+C

Example 5.58.

Evaluate
3x3+9x29x+7x2+3x2dx.
Solution.
Before decomposing the integrand into partial fractions, we need to perform polynomial long division because the degree of the numerator, 3, is greater than the degree of the denominator, 2. We need to do this because partial fraction decompsition leads to a sum of rational functions where the degree of the numerator is less than the degree of the denominator.
After completing polynomial long division, we find that
3x3+9x29x+7x2+3x2=3x+73xx2+3x2,
hence, we can change the original integral
(5.14)3x3+9x29x+7x2+3x2dx=3xdx+73xx2+3x2dx
We’ll proceed by using the method of partial fraction decomposition on the integrand 73xx2+3x2.
Notice that the denominator factors as x2+3x2=(x1)(2x), so we’ll suppose the integrand decomposes as
73x(x1)(2x)=Ax1+B2x
and we’ll look for constants A and B.
Multiplying both sides of the equation by the denominator of the left hand side, (x1)(2x), we find that
73x=A(2x)+B(x1)
To find A and B, we will rearrange the right hand side of the equation so that similar terms are grouped.
73x=2AAx+BxB73x=(BA)x+(2AB)
To make sure the coefficients of x match on each side of the equation and that the constant terms are the same on each side of the equation, we obtain the following system of equations:
3=BA and 7=2AB
We find that A=4 and B=1. Thus, using Equation (5.14), we can rewrite the original integral as
3x3+9x29x+7x2+3x2dx=3xdx+73xx2+3x2dx=3xdx+4x1+12xdx
These integrals can be evaluated by using the antidifferentiation rules from Table 5.16 and using appropriate substitutions, and hence we find that
3x3+9x29x+7x2+3x2dx=3xdx+4x1dx+12xdx=32x2+4ln|x1|ln|2x|+C
Now that we’ve seen some examples, we give a general description of the method of partial fractions.

Method of Partial Fraction Decomposition for a Rational Function R(x)=P(x)Q(x).

Note: This method works best on rational functions when Q(x) can be factored into linear and irreducible quadratic terms.
  • If the degree of P(x) is greater than or equal to the degree Q(x), then perform polynomial long division to calculate P(x)Q(x), else move on to the next step. The result gives a new way to write R(x). We know that R(x)=S(x)+P2(x)Q(x) where S(x) is the quotient of the polynomial long division and P2(x) is the remainder of the polynomial long division. Now the degree of P2(x) is less than the degree of Q(x), so follow the remaining steps to decompose P2(x)Q(x) .
  • If the degree of P(x) is less than the degree of Q(x), then factor Q(x) and add a partial fraction for the decomposition based on the following rules:
    • For each distinct linear factor (xc) of Q(x), add
      Axc.
    • For each repeated linear factor (xc)n of Q(x) where n is a positive whole number, add
      A1xc+A2(xc)2++An(xc)n.
    • For each irreducible quadratic factor t(x) of Q(x), add
      Ax+Bt(x).
    • For each repeated irreducible quadratic factor t(x)n of Q(x) where n is a positive whole number, add
      A1x+B1t(x)+A2x+B2t(x)2++Anx+Bnt(x)n.
    Now algebraically solve for the value of the constants A1,A2,...,B1,B2,... and integrate each piece separately.
The smaller blocks that R(x) is broken into often lead to more manageable antidifferentiation. For example if A and k are real numbers, then Axkdx=Aln|xk|+C by using the substitution u=xk. We also know the antiderivative of other common partial fractions like Ax2+1dx=Aarctan(x)+C.

Example 5.59.

For each of the following problems, evaluate the integral by finding the partial fraction decomposition of each integrand.
  1. 1x22x3dx
  2. x2+1x3x2dx
  3. x2x4+x2dx
  4. 4x2+x2x2+x1dx
Hint.
  1. The partial fraction decomposition of the integrand has the form
    1x22x3=Ax3+Bx+1.
  2. The partial fraction decomposition of the integrand has the form
    x2+1x3x2=Ax+Bx2+Cx1
  3. The partial fraction decomposition of the integrand has the form
    x2x4+x2=Ax+Bx2+Cx+Dx2+1
  4. First, use polynomial long division then the partial fraction decomposition of the remainder will have the form A2x1+Bx+1.
Answer.
  1. 1x22x3dx=14ln|x3|14ln|x+1|+C.
  2. x2+1x3x2dx=ln|x|+x1+2ln|x1|+C.
  3. x2x4+x2dx=ln|x|+2x112ln|1+x2|+2arctan(x)+C.
  4. 4x2+x2x2+x1dx=2x+12ln|2x1|ln|x+1|+C
Solution.
  1. To use partial fraction decomposition on the integrand, we’ll assume that
    1x22x2=1(x3)(x+1)=Ax3+Bx+1
    To solve for A and B, we’ll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We’ll have the following sequence of steps:
    1=A(x+1)+B(x3)1=(A+B)x+(A3B)
    We know that
    A+B=0 and A3B=1,
    so A=1/4 and B=1/4. This implies that
    1x22x3dx=1/4x31/4x+1dx=14ln|x3|14ln|x+1|+C
  2. To use partial fraction decomposition on the integrand, we’ll assume that
    x2+1x3x2=x2+1x2(x1)=Ax+Bx2+Cx1
    To solve for A, B, and C, we’ll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We’ll have the following sequence of steps:
    x2+1=Ax(x1)+B(x1)+Cx2x2+0x+1=(A+C)x2+(BA)x+(B)
    We know that
    A+C=1 ,BA=0 , and B=1,
    so A=1, B=1, and C=2. This implies that
    x2+1x3x2dx=(1x1x2+2x1)dx=ln|x|+x1+2ln|x1|+C
  3. To use partial fraction decomposition on the integrand, we’ll assume that
    x2x4+x2=x2x2(x2+1)=Ax+Bx2+Cx+Dx2+1
    To solve for A, B, C, and D, we’ll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We’ll have the following sequence of steps:
    x2=Ax(x2+1)+B(x2+1)+(Cx+D)x2x2=(A+C)x3+(B+D)x2+Ax+B
    We know that
    A+C=0 ,B+D=0 ,A=1 and B=2,
    so A=1, B=2, C=1, and D=2. Observing that x+21+x2=x1+x2+21+x2, it now follows that
    x2x4+x2dx=1x2x2x1+x2+21+x2dx.
    Noting that x1+x2dx can be evaluated by the u-substitution u=1+x2, we see that x1+x2dx=12ln(1+x2)+C. Thus
    x2x4+x2dx=1x2x2x1+x2+21+x2dx=ln|x|+2x112ln(1+x2)+2arctan(x)+C
  4. First, use polynomial long division since the degree of the numerator is the same as the degree of the denominator. We’ll find that
    4x2+x2x2+x1=2+2x2x2+x1.
    To use partial fraction decomposition on the remainder, we’ll assume that
    2x2x2+x1=2x(2x1)(x+1)=A2x1+Bx+1
    To solve for A and B, we’ll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We’ll have the following sequence of steps:
    2x=A(x+1)+B(2x1)2x=(A+2B)x+(AB)
    We know that
    A+2B=1 and AB=2,
    so A=1 and B=1. This implies that
    4x2+x2x2+x1dx=(2+12x11x+1)dx=2x+12ln|2x1|ln|x+1|+C

Subsection 5.7.2 Summary

  • We can antidifferentiate any rational function with the method of partial fractions. Any polynomial function can be factored into a product of linear and irreducible quadratic terms, so any rational function may be written as the sum of:
    1. a polynomial (integrated using the power rule)
    2. rational terms of the form A(xc)n where n is a natural number (integrated using the power rule)
    3. and rational terms of the form Bx+Ct(x) where t(x) is an irreducible quadratic (integrated using a u-substitution or a trigonometric substituion)

Exercises 5.7.3 Exercises

1. Partial fractions: linear over difference of squares.

Calculate the integral below by partial fractions and by using the indicated substitution. Be sure that you can show how the results you obtain are the same.
2xx21dx
First, rewrite this with partial fractions:
2xx21dx= dx+ dx= + +C.
(Note that you should not include the +C in your entered answer, as it has been provided at the end of the expression.)
Next, use the substitution w=x21 to find the integral:
2xx21dx= dw= +C= +C.
(For the second answer blank, give your antiderivative in terms of the variable w. Again, note that you should not include the +C in your answer.)

2. Partial fractions: constant over product.

Calculate the integral:
1(x+6)(x+8)dx=

3. Partial fractions: linear over quadratic.

Calculate the integral
3x+3x23x+2dx=

4. Partial fractions: cubic over 4th degree.

Consider the following indefinite integral.
5x3+6x2+18x+36x4+9x2dx
The integrand has partial fractions decomposition:
ax2+bx+cx+dx2+9
where
a=
b=
c=
d=
Now integrate term by term to evaluate the integral.
Answer: +C

5. Partial fractions: quadratic over factored cubic.

The form of the partial fraction decomposition of a rational function is given below.
x2+2x+15(x+3)(x2+9)=Ax+3+Bx+Cx2+9
A= B= C=
Now evaluate the indefinite integral.
x2+2x+15(x+3)(x2+9)dx=