Integration of Rational Functions (Section 6.4)
Section 6.4
Difference Equations
to
Differential Equations
Integration of Rational Functions
In this section we will take a more detailed look at the use of partial fraction decompositions in evaluating integrals of rational functions, a technique we first encountered in the
inhibited growth model example in the previous section. However, we will not be able to
complete the story until after the introduction of the inverse tangent function in Section
6.5.
We begin with a few examples to illustrate how some integration problems involving
rational functions may be simplified either by a long division or by a simple substitution.
Z
x2
dx, we first perform a long division of x + 1 into x2 to
Example To evaluate
x+1
obtain
x2
1
=x−1+
.
x+1
x+1
Then
Z
Z
x2
1
1
dx =
x−1+
dx = x2 − x + log |x + 1| + c.
x+1
x+1
2
Z
2x + 1
Example To evaluate
dx, we make the substitution
x2 + x
u = x2 + x
du = (2x + 1)dx.
Then
Example
Z
Z
2x + 1
1
dx =
du = log |u| + c = log |x2 + x| + c.
2
x +x
u
Z
x
To evaluate
dx, we perform a long division of x + 1 into x to obtain
x+1
x
1
=1−
.
x+1
x+1
Then
Z
x
dx =
x+1
Z
1
1−
x+1
dx = x − log |x + 1| + c.
Alternatively, we could evaluate this integral with the substitution
u=x+1
du = dx.
1
Copyright c by Dan Sloughter 2000
2
Integration of Rational Functions
Section 6.4
With this substitution, x = u − 1, so we have
Z
Z
x
u−1
dx =
du
x+1
u
Z
1
=
1−
du
u
= u − log |u| + c
= x + 1 − log |x + 1| + c.
Note that this is the same answer we obtained above, although with a different constant
of integration.
Partial fraction decomposition: Distinct linear factors
Now we consider the general problem of evaluating
Z
f (x)
dx
g(x)
where both f and g are polynomials. We will assume that the degree of g is less than the
degree of f . As illustrated in the first and third examples above, if this is not the case,
we can first perform a long division to simplify the quotient into the form of a polynomial
plus a remainder term which is a rational function with numerator of degree less than the
denominator. To begin we will suppose that g factors completely into n distinct linear
factors. That is, suppose there are constants a1 , a2 , . . . , an and b1 , b2 , . . . , bn such that
g(x) = (a1 x + b1 )(a2 x + b2 ) · · · (an x + bn ),
(6.4.1)
where the factors on the right are all distinct. From a theorem of linear algebra, which we
will not attempt to prove here, there exist constants A1 , A2 , . . . , An such that
A1
A2
An
f (x)
=
+
+ ··· +
.
g(x)
a1 x + b1
a2 x + b2
an x + bn
(6.4.2)
The expression on the right of (6.4.2) is called the partial fraction decomposition of
f (x)
.
g(x)
Once the constants A1 , A2 , . . . , An are determined, the evaluation of
Z
f (x)
dx
g(x)
becomes a routine problem. The next examples will illustrate one method for finding these
constants.
Z
1
Example To evaluate
dx, we need to find constants A and B such
(x − 2)(x − 3)
that
A
B
1
=
+
.
(x − 2)(x − 3)
x−2 x−3
Section 6.4
Integration of Rational Functions
3
Combining the terms on the right, we have
1
A(x − 3) + B(x − 2)
=
.
(x − 2)(x − 3)
(x − 2)(x − 3)
Now two rational functions with equal denominators are equal only if their numerators are
also equal; hence we must have
1 = A(x − 3) + B(x − 2)
for all values of x. In particular, for x = 2 we obtain
1 = −A,
from which it follows that A = −1, and for x = 3 we have
1 = B.
Thus
so
1
1
1
=−
+
,
(x − 2)(x − 3)
x−2 x−3
Z
Z
Z
1
1
1
dx = −
dx +
dx
(x − 2)(x − 3)
x−2
x−3
= − log |x − 2| + log |x − 3| + c.
Z
Example
To evaluate
that
3x
dx, we need to find constants A and B such
(x + 5)(2x − 1)
3x
A
B
=
+
.
(x + 5)(2x − 1)
x + 5 2x − 1
Combining the terms on the right, we have
3x
A(2x − 1) + B(x + 5)
=
.
(x + 5)(2x − 1)
(x + 5)(2x − 1)
As before, it follows that
3x = A(2x − 1) + B(x + 5)
for all values of x. In particular, for x = −5 we obtain
−15 = −11A,
from which it follows that
A=
15
,
11
4
Integration of Rational Functions
and for x =
1
we have
2
3
11
=
B,
2
2
from which it follows that
B=
Hence
so
Section 6.4
3
.
11
3x
15 1
3
1
=
+
,
(x + 5)(2x − 1)
11 x + 5 11 2x − 1
Z
Z
1
15
1
3
1
dx +
dx
dx =
(x + 5)(2x − 1)
11
x+5
11 2x − 1
15
3
log |x + 5| +
log |2x − 1| + c.
=
11
22
Partial fraction decomposition: Repeated linear factors
Returning to the general problem of evaluating
Z
f (x)
dx,
g(x)
where f and g are both polynomials and the degree of f is less than the degree of g,
we will now consider the case where g factors completely into linear factors, allowing for
the possibility that one or more of these factors may be repeated. Specifically, suppose
the factor ax + b occurs n times in the factorization of g. Then the partial fraction
f (x)
decomposition of
must contain a sum of terms of the form
g(x)
A2
An
A1
+
+ ··· +
,
2
ax + b (ax + b)
(ax + b)n
(6.4.3)
for some constants A1 , A2 , . . . , An , in addition to similar terms for every other factor of g.
This is best illustrated in an example.
x+1
Example To evaluate
dx, we need to find constants A, B, C, and D
(x − 1)3 (x − 2)
such that
x+1
A
B
C
D
=
+
+
+
.
(6.4.4)
3
2
3
(x − 1) (x − 2)
x − 1 (x − 1)
(x − 1)
x−2
That is, this partial fraction decomposition contains three terms corresponding to the
factor x − 1, since it is repeated three times, and only one term corresponding to the factor
x − 2, since it occurs only once. Moreover, the degrees of the denominators of the terms
for x − 1 increase from 1 to 3. Now combining the terms on the right of (6.4.4), we have
A(x − 1)2 (x − 2) + B(x − 1)(x − 2) + C(x − 2) + D(x − 1)3
x+1
=
.
(x − 1)3 (x − 2)
(x − 1)3 (x − 2)
Section 6.4
Integration of Rational Functions
5
Again, it follows that
x + 1 = A(x − 1)2 (x − 2) + B(x − 1)(x − 2) + C(x − 2) + D(x − 1)3
(6.4.5)
for all values of x. However, because of the repeated factors, we cannot choose values for x
which will isolate each of the constants one at a time as we did in the previous examples.
Instead, we will illustrate another technique for finding the constants. By multiplying out
(6.4.5) and collecting terms, we obtain
x + 1 = A(x3 − 4x2 + 5x − 2) + B(x2 − 3x + 2) + C(x − 2) + D(x3 − 3x2 + 3x − 1)
= (A + D)x3 + (−4A + B − 3D)x2 + (5A − 3B + C + 3D)x − 2A + 2B − 2C − D
for all values of x. Since two polynomials are equal only if they have equal coefficients, we
can equate the coefficients of x + 1 with the coefficients of the polynomial on the right to
obtain the four equations
A+D =0
−4A + B − 3D = 0
(6.4.6)
5A − 3B + C + 3D = 1
−2A + 2B − 2C − D = 1.
From the first equation we learn that
D = −A.
Substituting this into the second equation gives us
B = A.
Substituting both of these values into the third equation results in
C = A + 1.
Finally, substituting for D, B, and C in the fourth equation gives us
−2A + 2A − 2(A + 1) + A = 1,
which gives us A = −3. Hence B = −3, C = −2, and D = 3. Thus
Z
Z
Z
x+1
3
3
dx = −
dx −
dx
3
(x − 1) (x − 2)
(x − 1)
(x − 1)2
Z
Z
2
3
−
dx +
dx
3
(x − 1)
x−2
3
1
= −3 log |x − 1| +
+
+ 3 log |x − 2| + c.
x − 1 (x − 1)2
6
Integration of Rational Functions
Section 6.4
Note that in solving for A, B, C, and D, we could have first substituted x = 1 and x = 2
into (6.4.5) to obtain values for C and D, respectively. These values could have then been
used to simplify (6.4.6) before solving for A and B.
The Fundamental Theorem of Algebra states that every polynomial factors into a
product of linear factors and irreducible quadratic factors; hence, to complete the story of
integrating rational functions, we need to consider the case where the factorization of the
denominator includes irreducible quadratic factors. However, we will learn in Section 6.5
that for an irreducible quadratic polynomial g,
Z
1
dx
g(x)
involves the inverse tangent function. Thus we need to discuss the inverse trigonometric
functions before continuing the story of integrating rational functions.
Problems
1. Evaluate each of the following integrals.
Z
x−1
dx
(a)
x
Z
3x2
dx
(c)
x−2
Z
4x + 1
dx
(e)
2x2 + x − 3
2. Evaluate each of the following integrals.
Z
1
(a)
dx
(x + 2)(x − 4)
Z
3x
(c)
dx
(2x + 3)(x + 1)
Z
x
(e)
dx
2
x +x−6
Z
3
(g)
dx
2
x + 5x + 6
3. Evaluate each of the following integrals.
Z
1
(a)
dx
(x − 1)2
Z
x
(c)
dx
2
x + 2x + 1
Z
5
(e)
dx
(x + 2)3
Z
x
dx
x−1
Z 3
x +1
(d)
dx
x+2
Z
x+2
(f)
dx
x2 + 4x + 1
(b)
Z
3
dx
(x − 3)(x − 7)
Z
3x + 1
(d)
dx
(x − 2)(x + 3)
Z
3x
(f)
dx
(x + 2)(x − 3)(x + 1)
Z
3x + 2
(h)
dx
2
(x − 4)(x2 − 9)
(b)
1
dx
(x − 1)2 (x + 2)
Z
3x + 1
(d)
dx
(x + 2)3 (x − 1)
Z
4
(f)
dx
2
(x − 4)2
(b)
Section 6.4
Z
(g)
Integration of Rational Functions
3x2
dx
(x + 1)2 (x − 3)
Z
(h)
4. Evaluate each of the following integrals.
Z
1
(a)
dx
(3x + 2)2
Z
9x2 − 4x
(c)
dx
3x3 − 2x2 + 5
Z 1
1
(e)
dx
2
−1 x − 4
Z
4x + 5
(g)
dx
(x − 2)2 (x + 5)
5x − 1
dx
(2x + 1)2 (x + 2)
Z
(b)
3
x2 + 7x + 10
Z
(d)
dx
2x
(x2 − 1)(x2 − 4)
Z 1
1
0
x2 − x − 6
(f)
Z
(h)
7
dx
dx
x3
dx
x2 − 1
5. Solve the differential equation
ẋ(t) = (x(t) − 1)(x(t) + 1)
using the method used to solve the logistic differential equation in Section 6.3. Assume
x(0) = 0 and −1 < x(t) < 1 for all t.