back to the math tutorial index back to the math tutorial index

Partial Fractions

Consider the integral

ó
õ
3x3-2x2-19x-7
x2-x-6
 dx.

The integrand is an improper rational function. By "long division" of polynomials, we can rewrite the integrand as the sum of a polynomial and a proper rational function "remainder":

               3x + 1                     
x2-x-6 ø 3x3 - 2x2 - 19x - 7
3x3 - 3x2 - 18x

x2- x- 7
x2- x- 6

- 1

So

ó
õ
3x3-2x2-19x-7
x2-x-6
 dx = ó
õ
æ
ç
è
3x+1+ -1
x2-x-6
ö
÷
ø
 dx.

This looks much easier to work with! We can integrate 3x+1 immediately, but what about -1/(x2-x-6)?

Notice that

-1
x2-x-6
= -1
(x+2)(x-3)

which suggests that we try to write -1/( x2-x-6) as the sum of two rational functions of the form A/(x+2) and B/(x-3):

-1
x2-x-6
= A
x+2
+ B
x-3

This is called the Partial Fraction Decomposition for -1/(x2-x-6).

Our goal now is to determine A and B. Multiplying both sides of the equation by (x+2)(x-3) to clear the fractions,

-1 = A(x-3)+B(x+2).

There are two methods for solving for A and B:

Method 1         Method 2
Collect like terms on the right: The equation holds for all x.
-1 = (A+B)x+(-3A+2B). Let x = -2:
Now equate coefficients of -1 = A(-2-3)+B(-2+2)
corresponding powers of x: -1 = -5A      ® A = 1/5.
A+B = 0,    -3A+2B = -1. Now let x = 3:
Solving this system, -1 = A(3-3)+B(3+2)
A = 1/5, B = -1/5. -1 = 5B   ® B = -1/5.

So

-1
x2-x-6
= 1/5
x+2
- 1/5
x-3
.

Returning to the original integral,

ó
õ
3x3-2x2-19x-7
x2-x-6
 dx
=
ó
õ
æ
ç
è
3x+1+ [1/ 5]
x+2
- [1/ 5]
x-3
ö
÷
ø
 dx
=
3
2
x2+x+ 1
5
ln ê
ê
ê
x+2
x-3
ê
ê
ê
+C.

In the next example, we have repeated factors in the denominator, as well as an irreducible quadratic factor.

Example

We will evaluate

ó
õ
x-1
x2(x2+x+2)
 dx.

The integrand is a proper rational function, which we would like to decompose into proper rational functions of the form

A
x
,    B
x2
,    and    Cx+D
x2+x+1

[Notice that we have two factors of x in the denominator of the integrand, leading to terms of the form A/x and B/(x2) in the decomposition. The factor x2+x+1 is irreducible and quadratic, so any proper rational function with x2+x+1 as denominator has the form (Cx+D)/( x2+x+1) where C or D may be 0.]

Set

x-1
x2(x2+x+1)
= A
x
+ B
x2
+ Cx+D
x2+x+1

Multiplying through by x2(x2+x+1),

x-1 = Ax(x2+x+1)+B(x2+x+1)+(Cx+D)x2.

Since x2+x+1 has no real roots, it is easiest to solve for A and B using Method 1:

Collecting like terms on the right,

x-1 = (A+C)x3+(A+B+D)x2+(A+B)x+B

Equating corresponding powers of x,

A+C = 0
A+B+D = 0
A+B = 1
B = -1
ü
ï
ý
ï
þ
   ®   
A = 2
B = -1
C = -2
D = -1
   ®    2
x
- 1
x2
- 2x+1
x2+x+1

So

ó
õ
x-1
x2(x2+x+1)
 dx
=
ó
õ
æ
ç
è
2
x
- 1
x2
- 2x+1
x2+x+1
ö
÷
ø
 dx
=
2ln|x|+ 1
x
-ln|x2+x+1|+C
=
1
x
+ln ê
ê
ê
x2
x2+x+1
ê
ê
ê
+C.


Key Concepts

Partial Fraction Decomposition of a Rational Function

  • If the rational function is improper, use "long division" of polynomials to write it as the sum of a polynomial and a proper rational function "remainder."

  • Decompose the proper rational function as a sum of rational functions of the form

    A
    (x-a)k
       and    Bx+C
    (x2+bx+g)k
        (x2+bx+g irreducible)
    where:

    • Each factor (x-a)m in the denominator of the proper rational function suggests terms

      A1
      (x-a)
      + A2
      (x-a)2
      +¼+ Am
      (x-a)m

    • Each factor (x2+bx+g)n suggests terms

      B1x+C1
      (x2+bx+g)
      + B2x+C2
      (x2+bx+g)2
      +¼+ Bnx+Cn
      (x2+bx+g)n

  • Determine the (unique) values of all the constants involved.

    • Use either Method 1 or Method 2, or a combination of both.

The partial fraction decomposition is often used to rewrite a complicated rational function integrand as a sum of terms, each of which is straightforward to integrate.