3.4 Partial Fractions

We have seen some techniques that allow us to integrate specific rational functions. For example, we know that

∫duu=ln|u|+Cand∫duu2+a2=1atan−1(ua)+C.

However, we do not yet have a technique that allows us to tackle arbitrary quotients of this type. Thus, it is not immediately obvious how to go about evaluating ∫3xx2−x−2dx. However, we know from material previously developed that

∫(1x+1+2x−2)dx=ln|x+1|+2ln|x−2|+C.

In fact, by getting a common denominator, we see that

1x+1+2x−2=3xx2−x−2.

Consequently,

∫3xx2−x−2dx=∫(1x+1+2x−2)dx.

In this section, we examine the method of partial fraction decomposition, which allows us to decompose rational functions into sums of simpler, more easily integrated rational functions. Using this method, we can rewrite an expression such as: 3xx2−x−2 as an expression such as 1x+1+2x−2.

The key to the method of partial fraction decomposition is being able to anticipate the form that the decomposition of a rational function will take. As we shall see, this form is both predictable and highly dependent on the factorization of the denominator of the rational function. It is also extremely important to keep in mind that partial fraction decomposition can be applied to a rational function P(x)Q(x) only if deg(P(x))<deg(Q(x)). In the case when deg(P(x))≥deg(Q(x)), we must first perform long division to rewrite the quotient P(x)Q(x) in the form A(x)+R(x)Q(x), where deg(R(x))<deg(Q(x)). We then do a partial fraction decomposition on R(x)Q(x). The following example, although not requiring partial fraction decomposition, illustrates our approach to integrals of rational functions of the form ∫P(x)Q(x)dx, where deg(P(x))≥deg(Q(x)).

Integrating ∫P(x)Q(x)dx, where deg(P(x))≥deg(Q(x))

Evaluate ∫x2+3x+5x+1dx.

Since deg(x2+3x+5)≥deg(x+1), we perform long division to obtain

x2+3x+5x+1=x+2+3x+1.

Thus,

∫x2+3x+5x+1dx=∫(x+2+3x+1)dx=12x2+2x+3ln|x+1|+C.

Visit this website for a review of long division of polynomials.

Evaluate ∫x−3x+2dx.

x−5ln|x+2|+C

Hint

Use long division to obtain x−3x+2=1−5x+2.

To integrate ∫P(x)Q(x)dx, where deg(P(x))<deg(Q(x)), we must begin by factoring Q(x).

Nonrepeated Linear Factors

If Q(x) can be factored as (a1x+b1)(a2x+b2)…(anx+bn), where each linear factor is distinct, then it is possible to find constants A1,A2,…An satisfying

P(x)Q(x)=A1a1x+b1+A2a2x+b2+⋯+Ananx+bn.

The proof that such constants exist is beyond the scope of this course.

In this next example, we see how to use partial fractions to integrate a rational function of this type.

Partial Fractions with Nonrepeated Linear Factors

Evaluate ∫3x+2x3−x2−2xdx.

Since deg(3x+2)<deg(x3−x2−2x), we begin by factoring the denominator of 3x+2x3−x2−2x. We can see that x3−x2−2x=x(x−2)(x+1). Thus, there are constants A, B, and C satisfying

3x+2x(x−2)(x+1)=Ax+Bx−2+Cx+1.

We must now find these constants. To do so, we begin by getting a common denominator on the right. Thus,

3x+2x(x−2)(x+1)=A(x−2)(x+1)+Bx(x+1)+Cx(x−2)x(x−2)(x+1).

Now, we set the numerators equal to each other, obtaining

3x+2=A(x−2)(x+1)+Bx(x+1)+Cx(x−2).3.8

There are two different strategies for finding the coefficients A, B, and C. We refer to these as the method of equating coefficients and the method of strategic substitution.

Rule: Method of Equating Coefficients

Rewrite Equation 3.8 in the form

3x+2=(A+B+C)x2+(−A+B−2C)x+(−2A).

Equating coefficients produces the system of equations

A+B+C=0−A+B−2C=3−2A=2.

To solve this system, we first observe that −2A=2⇒A=−1. Substituting this value into the first two equations gives us the system

B+C=1B−2C=2.

Multiplying the second equation by −1 and adding the resulting equation to the first produces

−3C=1,

which in turn implies that C=−13. Substituting this value into the equation B+C=1 yields B=43. Thus, solving these equations yields A=−1, B=43, and C=−13.

It is important to note that the system produced by this method is consistent if and only if we have set up the decomposition correctly. If the system is inconsistent, there is an error in our decomposition.

Rule: Method of Strategic Substitution

The method of strategic substitution is based on the assumption that we have set up the decomposition correctly. If the decomposition is set up correctly, then there must be values of A, B, and C that satisfy Equation 3.8 for all values of x. That is, this equation must be true for any value of x we care to substitute into it. Therefore, by choosing values of x carefully and substituting them into the equation, we may find A, B, and C easily. For example, if we substitute x=0, the equation reduces to 2=A(−2)(1). Solving for A yields A=−1. Next, by substituting x=2, the equation reduces to 8=B(2)(3), or equivalently B=4/3. Last, we substitute x=−1 into the equation and obtain −1=C(−1)(−3). Solving, we have C=−13.

It is important to keep in mind that if we attempt to use this method with a decomposition that has not been set up correctly, we are still able to find values for the constants, but these constants are meaningless. If we do opt to use the method of strategic substitution, then it is a good idea to check the result by recombining the terms algebraically.

Now that we have the values of A, B, and C, we rewrite the original integral:

∫3x+2x3−x2−2xdx=∫(−1x+43·1(x−2)−13·1(x+1))dx.

Evaluating the integral gives us

∫3x+2x3−x2−2xdx=−ln|x|+43ln|x−2|−13ln|x+1|+C.

In the next example, we integrate a rational function in which the degree of the numerator is not less than the degree of the denominator.

Dividing before Applying Partial Fractions

Evaluate ∫x2+3x+1x2−4dx.

Since degree(x2+3x+1)≥degree(x2−4), we must perform long division of polynomials. This results in

x2+3x+1x2−4=1+3x+5x2−4.

Next, we perform partial fraction decomposition on 3x+5x2−4=3x+5(x+2)(x−2). We have

3x+5(x−2)(x+2)=Ax−2+Bx+2.

Thus,

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

Solving for A and B using either method, we obtain A=11/4 and B=1/4.

Rewriting the original integral, we have

∫x2+3x+1x2−4dx=∫(1+114·1x−2+14·1x+2)dx.

Evaluating the integral produces

∫x2+3x+1x2−4dx=x+114ln|x−2|+14ln|x+2|+C.

As we see in the next example, it may be possible to apply the technique of partial fraction decomposition to a nonrational function. The trick is to convert the nonrational function to a rational function through a substitution.

Applying Partial Fractions after a Substitution

Evaluate ∫cosxsin2x−sinxdx.

Let’s begin by letting u=sinx. Consequently, du=cosxdx. After making these substitutions, we have

∫cosxsin2x−sinxdx=∫duu2−u=∫duu(u−1).

Applying partial fraction decomposition to 1/u(u−1) gives 1u(u−1)=−1u+1u−1.

Thus,

∫cosxsin2x−sinxdx=−ln|u|+ln|u−1|+C=−ln|sinx|+ln|sinx−1|+C.

Evaluate ∫x+1(x+3)(x−2)dx.

25ln|x+3|+35ln|x−2|+C

Hint

x+1(x+3)(x−2)=Ax+3+Bx−2

Repeated Linear Factors

For some applications, we need to integrate rational expressions that have denominators with repeated linear factors—that is, rational functions with at least one factor of the form (ax+b)n, where n is a positive integer greater than or equal to 2. If the denominator contains the repeated linear factor (ax+b)n, then the decomposition must contain

A1ax+b+A2(ax+b)2+⋯+An(ax+b)n.

As we see in our next example, the basic technique used for solving for the coefficients is the same, but it requires more algebra to determine the numerators of the partial fractions.

Partial Fractions with Repeated Linear Factors

Evaluate ∫x−2(2x−1)2(x−1)dx.

We have degree(x−2)<degree((2x−1)2(x−1)), so we can proceed with the decomposition. Since (2x−1)2 is a repeated linear factor, include A2x−1+B(2x−1)2 in the decomposition. Thus,

x−2(2x−1)2(x−1)=A2x−1+B(2x−1)2+Cx−1.

After getting a common denominator and equating the numerators, we have

x−2=A(2x−1)(x−1)+B(x−1)+C(2x−1)2.3.9

We then use the method of equating coefficients to find the values of A, B, and C.

x−2=(2A+4C)x2+(−3A+B−4C)x+(A−B+C).

Equating coefficients yields 2A+4C=0, −3A+B−4C=1, and A−B+C=−2. Solving this system yields A=2, B=3, and C=−1.

Alternatively, we can use the method of strategic substitution. In this case, substituting x=1 and x=1/2 into Equation 3.9 easily produces the values B=3 and C=−1. At this point, it may seem that we have run out of good choices for x, however, since we already have values for B and C, we can substitute in these values and choose any value for x not previously used. The value x=0 is a good option. In this case, we obtain the equation −2=A(−1)(−1)+3(−1)+(−1)(−1)2 or, equivalently, A=2.

Now that we have the values for A, B, and C, we rewrite the original integral and evaluate it:

∫x−2(2x−1)2(x−1)dx=∫(22x−1+3(2x−1)2−1x−1)dx=ln|2x−1|−32(2x−1)−ln|x−1|+C.

Set up the partial fraction decomposition for ∫x+2(x+3)3(x−4)2dx. (Do not solve for the coefficients or complete the integration.)

x+2(x+3)3(x−4)2=Ax+3+B(x+3)2+C(x+3)3+D(x−4)+E(x−4)2

Hint

Use the problem-solving method of Example 3.32 for guidance.

The General Method

Now that we are beginning to get the idea of how the technique of partial fraction decomposition works, let’s outline the basic method in the following problem-solving strategy.

Partial Fraction Decomposition

To decompose the rational function P(x)/Q(x), use the following steps:

  1. Make sure that degree(P(x))<degree(Q(x)). If not, perform long division of polynomials.
  2. Factor Q(x) into the product of linear and irreducible quadratic factors. An irreducible quadratic is a quadratic that has no real zeros.
  3. Assuming that deg(P(x))<deg(Q(x)), the factors of Q(x) determine the form of the decomposition of P(x)/Q(x).
    1. If Q(x) can be factored as (a1x+b1)(a2x+b2)…(anx+bn), where each linear factor is distinct, then it is possible to find constants A1,A2,...An satisfying
      P(x)Q(x)=A1a1x+b1+A2a2x+b2+⋯+Ananx+bn.
    2. If Q(x) contains the repeated linear factor (ax+b)n, then the decomposition must contain
      A1ax+b+A2(ax+b)2+⋯+An(ax+b)n.
    3. For each irreducible quadratic factor ax2+bx+c that Q(x) contains, the decomposition must include
      Ax+Bax2+bx+c.
    4. For each repeated irreducible quadratic factor (ax2+bx+c)n, the decomposition must include
      A1x+B1ax2+bx+c+A2x+B2(ax2+bx+c)2+⋯+Anx+Bn(ax2+bx+c)n.
    5. After the appropriate decomposition is determined, solve for the constants.
    6. Last, rewrite the integral in its decomposed form and evaluate it using previously developed techniques or integration formulas.

Simple Quadratic Factors

Now let’s look at integrating a rational expression in which the denominator contains an irreducible quadratic factor. Recall that the quadratic ax2+bx+c is irreducible if ax2+bx+c=0 has no real zeros—that is, if b2−4ac<0.

Rational Expressions with an Irreducible Quadratic Factor

Evaluate ∫2x−3x3+xdx.

Since deg(2x−3)<deg(x3+x), factor the denominator and proceed with partial fraction decomposition. Since x3+x=x(x2+1) contains the irreducible quadratic factor x2+1, include Ax+Bx2+1 as part of the decomposition, along with Cx for the linear term x. Thus, the decomposition has the form

2x−3x(x2+1)=Ax+Bx2+1+Cx.

After getting a common denominator and equating the numerators, we obtain the equation

2x−3=(Ax+B)x+C(x2+1).

Solving for A,B, and C, we get A=3, B=2, and C=−3.

Thus,

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

Substituting back into the integral, we obtain

∫2x−3x3+xdx=∫(3x+2x2+1−3x)dx=3∫xx2+1dx+2∫1x2+1dx−3∫1xdxSplit up the integral.=32ln|x2+1|+2tan−1x−3ln|x|+C.Evaluate each integral.

Note: We may rewrite ln|x2+1|=ln(x2+1), if we wish to do so, since x2+1>0.

Partial Fractions with an Irreducible Quadratic Factor

Evaluate ∫dxx3−8.

We can start by factoring x3−8=(x−2)(x2+2x+4). We see that the quadratic factor x2+2x+4 is irreducible since 22−4(1)(4)=−12<0. Using the decomposition described in the problem-solving strategy, we get

1(x−2)(x2+2x+4)=Ax−2+Bx+Cx2+2x+4.

After obtaining a common denominator and equating the numerators, this becomes

1=A(x2+2x+4)+(Bx+C)(x−2).

Applying either method, we get A=112,B=−112,andC=−13.

Rewriting ∫dxx3−8, we have

∫dxx3−8=112∫1x−2dx−112∫x+4x2+2x+4dx.

We can see that

∫1x−2dx=ln|x−2|+C, but ∫x+4x2+2x+4dx requires a bit more effort. Let’s begin by completing the square on x2+2x+4 to obtain

x2+2x+4=(x+1)2+3.

By letting u=x+1 and consequently du=dx, we see that

∫x+4x2+2x+4dx=∫x+4(x+1)2+3dxComplete the square on thedenominator.=∫u+3u2+3duSubstituteu=x+1,x=u−1,anddu=dx.=∫uu2+3du+∫3u2+3duSplit the numerator apart.=12ln|u2+3|+33tan−1u3+CEvaluate each integral.=12ln|x2+2x+4|+3tan−1(x+13)+C.Rewrite in terms ofxandsimplify.

Substituting back into the original integral and simplifying gives

∫​dxx3−8=112ln|x−2|−124ln|x2+2x+4|−312tan−1(x+13)+C.

Here again, we can drop the absolute value if we wish to do so, since x2+2x+4>0 for all x.

Finding a Volume

Find the volume of the solid of revolution obtained by revolving the region enclosed by the graph of f(x)=x2(x2+1)2 and the x-axis over the interval [0,1] about the y-axis.

Let’s begin by sketching the region to be revolved (see Figure 3.11). From the sketch, we see that the shell method is a good choice for solving this problem.

This figure is the graph of the function f(x) = x^2/(x^2+1)^2. It is a curve above the x-axis. It is decreasing in the second quadrant, intersects at the origin, and increases in the first quadrant. Between x = 0 and x = 1, there is shaded area under the curve.
Figure 3.11 We can use the shell method to find the volume of revolution obtained by revolving the region shown about the y-axis.

The volume is given by

V=2π∫01x·x2(x2+1)2dx=2π∫01x3(x2+1)2dx.

Since deg((x2+1)2)=4>3=deg(x3), we can proceed with partial fraction decomposition. Note that (x2+1)2 is a repeated irreducible quadratic. Using the decomposition described in the problem-solving strategy, we get

x3(x2+1)2=Ax+Bx2+1+Cx+D(x2+1)2.

Finding a common denominator and equating the numerators gives

x3=(Ax+B)(x2+1)+Cx+D.

Solving, we obtain A=1, B=0, C=−1, and D=0. Substituting back into the integral, we have

V=2π∫01x3(x2+1)2dx=2π∫01(xx2+1−x(x2+1)2)dx=2π(12ln(x2+1)+12·1x2+1)|01=π(ln2−12).

Set up the partial fraction decomposition for ∫x2+3x+1(x+2)(x−3)2(x2+4)2dx.

x2+3x+1(x+2)(x−3)2(x2+4)2=Ax+2+Bx−3+C(x−3)2+Dx+Ex2+4+Fx+G(x2+4)2

Hint

Use the problem-solving strategy.

Key Concepts

Express the rational function as a sum or difference of two simpler rational expressions.

1(x−3)(x−2)

x2+1x(x+1)(x+2)

−2x+1+52(x+2)+12x

1x3−x

3x+1x2

1x2+3x

3x2x2+1 (Hint: Use long division first.)

2x4x2−2x

2x2+4x+8+16x−2

1(x−1)(x2+1)

1x2(x−1)

−1x2−1x+1x−1

xx2−4

1x(x−1)(x−2)(x−3)

−12(x−2)+12(x−1)−16x+16(x−3)

1x4−1=1(x+1)(x−1)(x2+1)

3x2x3−1=3x2(x−1)(x2+x+1)

1x−1+2x+1x2+x+1

2x(x+2)2

3x4+x3+20x2+3x+31(x+1)(x2+4)2

2x+1+xx2+4−1(x2+4)2

Use the method of partial fractions to evaluate each of the following integrals.

∫dx(x−3)(x−2)

∫3xx2+2x−8dx

ln|x−2|+2ln|x+4|+C

∫dxx3−x

∫xx2−4dx

12ln|4−x2|+C

∫dxx(x−1)(x−2)(x−3)

∫2x2+4x+22x2+2x+10dx

2(x+13arctan(1+x3))+C

∫dxx2−5x+6

∫2−xx2+xdx

2ln|x|−3ln|1+x|+C

∫2x2−x−6dx

∫dxx3−2x2−4x+8

116(−4−2+x−ln|−2+x|+ln|2+x|)+C

∫dxx4−10x2+9

Evaluate the following integrals, which have irreducible quadratic factors.

∫2(x−4)(x2+2x+6)dx

130(−25arctan[1+x5]+2ln|−4+x|−ln|6+2x+x2|)+C

∫x2x3−x2+4x−4dx

∫x3+6x2+3x+6x3+2x2dx

−3x+4ln|x+2|+x+C

∫x(x−1)(x2+2x+2)2dx

Use the method of partial fractions to evaluate the following integrals.

∫3x+4(x2+4)(3−x)dx

−ln|3−x|+12ln|x2+4|+C

∫2(x+2)2(2−x)dx

∫3x+4x3−2x−4dx (Hint: Use the rational root theorem.)

ln|x−2|−12ln|x2+2x+2|+C

Use substitution to convert the integrals to integrals of rational functions. Then use partial fractions to evaluate the integrals.

∫01ex36−e2xdx (Give the exact answer and the decimal equivalent. Round to five decimal places.)

∫exe2x−exdx

−x+ln|1−ex|+C

∫sinxdx1−cos2x

∫sinxcos2x+cosx−6dx

15ln|cosx+3cosx−2|+C

∫1−x1+xdx

∫dt(et−e−t)2

12−2e2t+C

∫1+ex1−exdx

∫dx1+x+1

21+x−2ln|1+1+x|+C

∫dxx+x4

∫cosxsinx(1−sinx)dx

ln|sinx1−sinx|+C

∫ex(e2x−4)2dx

∫121x24−x2dx

34

∫12+e−xdx

∫11+exdx

x−ln(1+ex)+C

Use the given substitution to convert the integral to an integral of a rational function, then evaluate.

∫1t−t3dtt=x3

∫1x+x3dx;x=u6

6x1/6−3x1/3+2x−6ln(1+x1/6)+C

Graph the curve y=x1+x over the interval [0,5]. Then, find the area of the region bounded by the curve, the x-axis, and the line x=4.

This figure is a graph of the function y = x/(1 + x). The graph is only in the first quadrant. It begins at the origin and increases into the first quadrant. The curve stops at x = 5.

Find the volume of the solid generated when the region bounded by y=1/x(3−x), y=0, x=1, and x=2 is revolved about the x-axis.

43πarctanh[13]=13πln4

The velocity of a particle moving along a line is a function of time given by v(t)=88t2t2+1. Find the distance that the particle has traveled after t=5 sec.

Solve the initial-value problem for x as a function of t.

(t2−7t+12)dxdt=1,(t>4,x(5)=0)

x=−ln|t−3|+ln|t−4|+ln2

(t+5)dxdt=x2+1,t>−5,x(1)=tan1

(2t3−2t2+t−1)dxdt=3,x(2)=0

x=ln|t−1|−2arctan(2t)−12ln(t2+12)+2arctan(22)+12ln4.5

Find the x-coordinate of the centroid of the area bounded by

y(x2−9)=1, y=0,x=4,andx=5. (Round the answer to two decimal places.)

Find the volume generated by revolving the area bounded by y=1x3+7x2+6x,x=1,x=7,andy=0 about the y-axis.

25πln2813

Find the area bounded by y=x−12x2−8x−20, y=0,x=2,andx=4. (Round the answer to the nearest hundredth.)

Evaluate the integral ∫dxx3+1.

arctan[−1+2x3]3+13ln|1+x|−16ln|1−x+x2|+C

For the following problems, use the substitutions tan(x2)=t, dx=21+t2dt, sinx=2t1+t2, and cosx=1−t21+t2.

∫dx3−5sinx

Find the area under the curve y=11+sinx between x=0 and x=π. (Assume the dimensions are in inches.)

2.0 in.2

Given tan(x2)=t, derive the formulas dx=21+t2dt, sinx=2t1+t2, and cosx=1−t21+t2.

Evaluate ∫x−83xdx.

3(−8+x)1/3
−23arctan[−1+(−8+x)1/33]
−2ln[2+(−8+x)1/3]
+ln[4−2(−8+x)1/3+(−8+x)2/3]+C

Glossary

partial fraction decomposition
a technique used to break down a rational function into the sum of simple rational functions