Integrate a rational function using the method of partial fractions
Recognize simple linear factors in a rational function
Recognize repeated linear factors in a rational function
We have seen some techniques that allow us to integrate specific rational functions. For example, we know that
∫duu=ln|u|+C and ∫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.
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)).
Example: Integrating ∫P(x)Q(x)dx, where deg(P(x))≥deg(Q(x))
Evaluate ∫x2+3x+5x+1dx.
Show Solution
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.
Recall: Polynomial Long Division
Set up the division problem as the numerator divided by the denominator
Determine the first term of the quotient by dividing the leading term of the dividend by the leading term of the divisor.
Multiply the answer by the divisor and write it below the like terms of the dividend.
Subtract the bottom binomial from the top binomial.
Bring down the next term of the dividend.
Repeat steps 2–5 until reaching the last term of the dividend.
If the remainder is non-zero, express as a fraction using the divisor as the denominator.
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
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.
Example: Partial Fractions with Nonrepeated Linear Factors
Evaluate ∫3x+2x3−x2−2xdx.
Show Solution
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,
Now, we set the numerators equal to each other, obtaining
3x+2=A(x−2)(x+1)+Bx(x+1)+Cx(x−2).
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 the previous equation 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 the equation 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=43. 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.
Example: Dividing before Applying Partial Fractions
Evaluate ∫x2+3x+1x2−4dx.
Show Solution
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=114 and B=14.
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.
Example: Applying Partial Fractions after a Substitution
Evaluate ∫cosxsin2x−sinxdx.
Show Solution
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 1u(u−1) gives 1u(u−1)=−1u+1u−1.
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
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.
Example: Partial Fractions with Repeated Linear Factors
Evaluate ∫x−2(2x−1)2(x−1)dx.
Show Solution
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.
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=12 into the previous equation 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:
Watch the following video to see the worked solution to the above Try It
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.