0% found this document useful (0 votes)
78 views33 pages

Section 8.1: Using Basic Integration Formulas

The document provides examples of using basic integration formulas and techniques to evaluate indefinite integrals. It includes a table listing common integral formulas for basic functions like polynomials, exponentials, trigonometric functions, and inverse trigonometric functions. It then works through four examples applying techniques like u-substitution, completing the square, and using trigonometric identities to evaluate more complicated indefinite integrals that can be reduced to a standard form.

Uploaded by

Free Fire 2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views33 pages

Section 8.1: Using Basic Integration Formulas

The document provides examples of using basic integration formulas and techniques to evaluate indefinite integrals. It includes a table listing common integral formulas for basic functions like polynomials, exponentials, trigonometric functions, and inverse trigonometric functions. It then works through four examples applying techniques like u-substitution, completing the square, and using trigonometric identities to evaluate more complicated indefinite integrals that can be reduced to a standard form.

Uploaded by

Free Fire 2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

Section 8.

1: Using Basic Integration


Formulas

A Review: The basic integration formulas summarise the forms of indefinite integrals for may of the functions we have
studied so far, and the substitution method helps us use the table below to evaluate more complicated functions involving
these basic ones. So far, we have seen how to apply the formulas directly and how to make certain u-substitutions.
Sometimes we can rewrite an integral to match it to a standard form. More often however, we will need more advanced
techniques for solving integrals. First, let’s look at some examples of our known methods.

Basic integration formulas

ˆ ˆ
1. k dx = kx + C (any number k) 12. tan(x) dx = ln | sec(x)| + C

ˆ ˆ
n xn+1
2. x dx = +C (n 6= −1) 13. cot(x) dx = ln | sin(x)| + C
n+1
ˆ ˆ
1
3. dx = ln |x| + C 14. sec(x) dx = ln | sec(x) + tan(x)| + C
x
ˆ ˆ
x x
4. e dx = e + C 15. csc(x) dx = − ln | csc(x) + cot(x)| + C

ˆ ˆ
ax
5. ax dx = +C (a > 0, a 6= 1) 16. sinh(x) dx = cosh(x) + C
ln(a)
ˆ ˆ
6. sin(x) dx = − cos(x) + C 17. cosh(x) dx = sinh(x) + C

ˆ ˆ x
1
7. cos(x) dx = sin(x) + C 18. √ dx = sin−1 +C (a > 0)
a2 − x2 a
ˆ ˆ
1 1 −1 x
 
2
8. sec (x) dx = tan(x) + C 19. dx = tan +C (a > 0)
a2 + x2 a a
ˆ ˆ
1 1 x
9. csc2 (x) dx = − cot(x) + C 20. √ dx = sec−1 +C (a > 0)
2
x x −a2 a a
ˆ ˆ x
1
10. sec(x) tan(x) dx = sec(x) + C 21. √ dx = sinh−1 +C (a > 0)
a2 + x2 a
ˆ ˆ x
1
11. csc(x) cot(x) dx = − csc(x) + C 22. √ dx = cosh−1 +C (x > a > 0)
x2 − a 2 a
Section 8.1: Techniques of Integration MATH 142

Example 1 - Substitution: Evaluate the integral


ˆ 5
2x − 3
√ dx.
3 x2− 3x + 1

ˆ 5 ˆ 11
2x − 3 1
2 √ dx = √ du
u = x − 3x + 1 3
2
x − 3x + 1 1 u
ˆ 11
du = 2x − 3 dx = u−1/2 du
1
hi 11
2
u = (3) − 3(3) + 1 = 1 = 2u1/2
1
u = (5)2 − 3(5) + 1 = 11 √ √
= 2 11 − 2 1
√ 
= 2 11 − 1

Example 2 - Complete the Square: Find


ˆ
1
√ dx.
8x − x2

8x − x2 = −(x2 − 8x) ˆ ˆ
1 1
= −((x − 4) − 4 )2 2 √ dx = p dx
8x − x2 42 − (x − 4)2
ˆ
= 42 − (x − 4)2 1
= p du
hi 4 − (u)2
2
u
u=x−4 = sin−1 +C
4
 
du = dx x−4
= sin−1 +C
4

Example 3 - Trig Identities: Calculate


ˆ
cos(x) sin(2x) + sin(x) cos(2x) dx.

ˆ ˆ
cos(x) sin(2x) + sin(x) cos(2x) dx = sin (x + 2x) dx
hi ˆ
u = 3x = sin (3x) dx
ˆ
du = 3 dx 1
= sin (u) du
1 3
du = dx 1
3 = − cos (u) + C
3
1
= − cos (3x) + C
3

Page 2 of 33
Section 8.1: Techniques of Integration MATH 142

Example 4 - Trig Identities: Find


ˆ π
4 1
dx.
0 1 − sin(x)
ˆ π ˆ π
4 1 4 1 1 + sin(x)
dx = · dx
0 1 − sin(x) 0 1 − sin(x) 1 + sin(x)
ˆ π
4 1 + sin(x)
= dx
0 1 − sin2 (x)
ˆ π
4 1 1 sin(x)
= + dx
0 cos2 (x) cos(x) cos(x)
ˆ π
4
= sec2 (x) + sec(x) tan(x) dx
0
π
4

= tan(x) + sec(x)
π  0π 
= tan + sec − (tan(0) + sec(0))
4 4

= 1 + 2 − (0 + 1)

= 2

Example 5 - Clever Substitution Evaluate


ˆ
1
√ dx.
(1 + x)3
ˆ ˆ
1 2(u − 1)
√ dx = du
(1 + x)3 u3
√ ˆ
u=1+ x 2 2
= 2
− 3 du
1 u u
du = √ dx ˆ
2 x = 2u − 2u−3 du
−2

2 x du = dx
= −2u−1 + u−2 + C
2(u − 1) du = dx
2 1
=− + 2 +C
u u
2 1
= − √ + √ +C
1 + x (1 + x)2

Example 6 - Properties of Trig Integrals


ˆ π
2
x3 cos(x) dx.
−π
2

f (x) = x3 =⇒ f (−x) = (−x)3 = −x3 = −f (x) g(x) = cos(x) =⇒ f (−x) = cos(−x) = cos(x) = f (x)
3
=⇒ x is an odd function =⇒ x3 is an even function

Putting these two facts together we see that x3 cos(x) is an odd function and is symmetric over the interval − π2 , π2 . Thus
 

(by Theorem 8, Section 5.6)


ˆ π
2
x3 cos(x) dx = 0
−π
2

Page 3 of 33
Section 8.2: Techniques of Integration

A New Technique: Integration is a technique used to simplify integrals of the form


ˆ
f (x)g(x) dx.

It is useful when one of the functions (f (x) or g(x)) can be differentiated repeatedly and the other function can be
integrated repeatedly without difficulty. The following are two such integrals:
ˆ ˆ
x cos(x) dx and x2 ex dx.

Notice f (x) = x or f (x) = x2 can be differentiated repeatedly (they are even eventually zero) and g(x) = cos(x) and
g(x) = ex can be integrated repeatedly without difficulty.

An Application of the Product Rule: If f (x) and g(x) are differentiable functions of x, the product rule says that

d
[f (x)g(x)] = f 0 (x)g(x) + f (x)g 0 (x).
dx

Integrating both sides and rearranging gives us the Integration by Parts formula!

ˆ ˆ ˆ
d
[f (x)g(x)] dx = f 0 (x)g(x) dx + f (x)g 0 (x) dx
dx
ˆ ˆ ˆ
d
=⇒ f (x)g 0 (x) dx = [f (x)g(x)] dx − f 0 (x)g(x) dx
dx
ˆ ˆ
=⇒ f (x)g 0 (x) dx = f (x)g(x) − f 0 (x)g(x) dx

In differential form, let u = f (x) and v = g(x). Then,

Integration by Parts Formula:


ˆ ˆ
u dv = uv − v du.

Remember, all of the techniques that we talk about are supposed to make integrating easier! Even though this formula
´
expresses one integral in terms of a second integral, the idea is that the second integral, v du, is easier to evaluate. The
key to integration by parts is making the right choice for u and v. Sometimes we may need to try multiple options before
we can apply the formula.
Section 8.2: Integration by Parts MATH 142

Example 1: Find
ˆ
x cos(x) dx.

We have to decide what to assign to u and what to assign to dv. Our goal is to make the integral easier. One thing to bear
in mind is that whichever term we let equal u we need to differentiate - so if differentiating makes a part of the integrand
simpler that’s probably what we want! In this cases differentiating cos(x) gives − sin(x), which is no easier to deal with.
But differentiating x gives 1 which is simpler. So we have,

ˆ ˆ
u=x dv = cos(x) dx x cos(x) dx = x sin(x) − sin(x) dx

du = dx v = sin(x) = x sin(x) + cos(x) + C

Example 2: Evaluate
ˆ
x2 ex dx.

Here we go through the same thought process. If u = ex then du = ex dx, which doesn’t make the problem any easier (though
it doesn’t make it any harder either). But in this case dv = x2 would give v = 13 x3 which arguably is not simpler that x2 . So,

ˆ ˆ
u = x2 dv = ex dx
x2 ex dx = x2 ex − 2 xex dx.
x
du = 2x dx v=e

It’s at this point we see that we still cannot integrate the integral on the write easily. This is okay. Sometimes we may
have to apply the integration by parts formula more than once!
ˆ ˆ
x2 ex dx = x2 ex − 2xex dx
 ˆ 
2 x x x
u=x dv = ex dx = x e − 2 xe − e dx
du = dx v = ex = x2 ex − 2xex + 2ex + C

= x2 − 2x + 2 ex + C


ˆ
The previous technique works for any integral of the form xn emx dx, where n is any positive integer and m is any integer.
What if n was negative? Then this case we would set u = ex .

Page 5 of 33
Section 8.2: Integration by Parts MATH 142

Example 3 - Integration by Parts for Definite Integrals: Find the area of the region bounded by the curve y = xe−x
and the x-axis from x = 0 to x = 4.

ˆ 4
A= xe−x dx
0

u=x dv = e−x dx
4
du = dx v = −e−x

ˆ 4
4 ˆ 4
−x −x
xe dx = −xe − −e−x dx
0 0
0
4 ˆ 4
= −xe−x + e−x dx
0
0
4

= −4e−4 − 0 − e−x


= −4e−4 − e−4 − 1


= −4e−4 − e−4 − 1


= −5e−4 + 1

Example 4 - Tabular Method: In Example 2 we have to apply the Integration by Parts Formula multiple times. There
is a convenient way to “book-keep” our work. This is done by creating a table. Let’s see how by examining Example 2
again.
Evaluate
ˆ
x2 ex dx.

Let f (x) = x2 and g(x) = ex . Then,

Differentiate f (x) Integrate g(x)

x2 + ex
2x − ex
2 + ex
0 ex

Then the integral is,


ˆ
x2 ex dx = +x2 · ex − 2x · ex + 2 · ex + C

x2 − 2x + 2 ex + C

=

We have actually used the integration by parts formula, but we have just made our lives easier by condensing the work into
a neat table. This method is extremely useful when Integration by Parts needs to be used over and over again.

Page 6 of 33
Section 8.2: Integration by Parts MATH 142

Example 5: Find the integral


ˆ π
1
x3 cos (nx) dx,
π 0

where n is a positive integer.


Let f (x) = x2 and g(x) = cos(nx). Then,

Differentiate f (x) Integrate g(x)

x3 + cos(nx)
2 1
3x − n sin(nx)
1
6x + − n2 cos(nx)
6 − − n13 sin(nx)
1
0 n4 cos(nx)

Then the integral is,

ˆ       π
1 3 1 3 1 2 1 1 1
x cos(nx) dx = +x · sin(nx) − 3x · − 2 cos(nx) + 6x · − 3 sin(nx) − 6 · 4 cos(nx)
π π n n n n
0
 3 π
3x2

1 x 6x 6
= sin(nx) + 2 cos(nx) − 3 sin(nx) − 4 cos(nx)
π n n n n
0
3π 2
   
1 6 6
= 0 + 2 cos(nπ) − 0 + 4 − 0 + 0 − 0 − 4
π n n n
n n
 2 
1 3π (−1) 6(−1) 6
= − + 4
π n2 n4 n
3 π 2 n2 (−1)n − 2(−1)n + 2
=
π n4

cos(x):
π 2π 3π 4π

−1

sin(x):
π 2π 3π 4π

−1

Page 7 of 33
Section 8.2: Integration by Parts MATH 142

Example 6 - Recurring Integrals: Find the integral


ˆ
ex sin(x) dx.

We need to apply Integration by


Parts twice before we see something: ˆ ˆ
ex sin(x) dx = −ex cos(x) + ex cos(x) dx
(1)  ˆ 
x x x
= −e cos(x) + e sin(x) − e sin(x) dx
ˆ
u = ex dv = sin(x)
= −e cos(x) + e sin(x) − ex sin(x) dx
x x

du = ex dx v = − cos(x)
ˆ
(2) Notice that now the integral we are interested in, ex sin(x) dx, appears on both the
left and right hand side of the equation. So, if we add this integral to both sides we get
u = ex dv = cos(x) ˆ
=⇒ 2 ex sin(x) dx = ex (− cos(x) + sin(x))
du = ex dx v = sin(x)
ˆ
ex (sin(x) − cos(x))
=⇒ ex sin(x) dx =
2

This “trick” comes up often when we are dealing with the product of two functions with “non-terminating” derivatives.
By this we mean that you can keep differentiating functions like ex and trig functions indefinitely and never reach 0.
Polynomials on the other hand will eventually “terminate” and their nth derivative (where n is the degree of the polynomial)
is identically 0.

Page 8 of 33
Section 8.3: Trigonometric Integrals -
Worksheet

Goal: By using trig identities combined with u-substitution, we’d like to find antiderivatives of the form
ˆ
sinm (x) cosn (x) dx

(for integer values of m and n). The goal of this worksheet1 is for you to work together in groups of 2-3 to discover the
techniques that work for these anti-derivatives.

Example 1 - Warm-up: Find


ˆ
cos4 (x) sin(x) dx.

ˆ ˆ
u = cos(x) cos4 (x) sin(x) dx = − u4 du
du = − sin(x) dx u5
=− +C
5
cos5 (x)
= − +C
5

Example 2: Find
ˆ
sin3 (x) dx.

(Hint: Use the identity sin2 (x) + cos2 (x) = 1, then make a substitution.)
ˆ ˆ
sin3 (x) dx = 1 − cos2 (x) sin(x) dx

u = cos(x)
ˆ
du = − sin(x) dx 1 − u2 du

=−

u3
= −u + +C
3
cos3 (x)
= − cos(x) + +C
3

1 Worksheet adapted from BOALA, math.colorado.edu/activecalc


Section 8.3: Trigonometric Integrals MATH 142

Example 3: Find
ˆ
sin5 (x) cos2 (x) dx.

2
(Hint: Write sin5 (x) as sin2 (x) sin(x).)
ˆ ˆ
2
sin5 (x) cos2 (x) dx = sin2 (x) cos2 (x) sin(x) dx
ˆ
2
= 1 − cos2 (x) cos2 (x) sin(x) dx
u = cos(x) ˆ
2
du = − sin(x) dx =− 1 − u2 u2 du
ˆ
1 − 2u2 + u4 du

=−
ˆ
=− u2 − 2u4 + u6 du

u3 2u5 u7
=− + − +C
3 5 7
cos3 (x) 2 cos5 (x) cos7 (x)
= − + − +C
3 5 7

Example 4: Find
ˆ
sin7 (x) cos5 (x) dx.

(The algebra here is long. Only set up the substitution - you do not need to fully evaluate.)
ˆ ˆ
3
sin7 (x) cos5 (x) dx = sin2 (x) cos5 (x) sin(x) dx
ˆ
3
= 1 − cos2 (x) cos5 (x) sin(x) dx
u = cos(x)
ˆ
du = − sin(x) dx = − 1 − u2
3
u5 du

Example 5: In general, how would you go about trying to find


ˆ
sinm (x) cosn (x) dx,

where m is odd? (Hint: consider the previous three problems.)


ˆ ˆ
m n
(m−1)/2
sin (x) cos (x) dx = sin2 (x) cosn (x) sin(x) dx
ˆ
(m−1)/2
= 1 − cos2 (x) cosn (x) sin(x) dx
u = cos(x)
ˆ
du = − sin(x) dx = − 1 − u2
(m−1)/2
un du

Page 10 of 33
Section 8.3: Trigonometric Integrals MATH 142

Example 6: Note that the same kind of trick works when the power on cos(x) is odd. To check that you understand,
what trig identity and what u-substitution would you use to integrate
ˆ
cos3 (x) sin2 (x) dx?
ˆ ˆ
sin2 (x) + cos2 (x) = 1
cos3 (x) sin2 (x) dx = cos2 (x) sin2 (x) cos(x) dx
cos2 (x) = 1 − sin2 (x) ˆ
1 − sin2 (x) sin2 (x) cos(x) dx

=
ˆ
u = sin(x)
1 − u2 u2 du

=
du = cos(x) dx

Example 7: Now what if the power on cos(x) and sin(x) are both even? Find
ˆ
sin2 (x) dx,

in each of the following two ways:


1
(a) Use the identity sin2 (x) = 2 (1 − cos(2x)).
ˆ ˆ
1
sin2 (x) dx = (1 − cos(2x)) dx
2
ˆ
1
= 1 − cos(2x) dx
2
1 1
= x − sin(2x) + C
2 4

(b) Integrate by parts, with u = sin(x) and dv = sin(x) dx.


ˆ ˆ
sin2 (x) dx = sin(x) sin(x) dx
::::::::::
ˆ
= − sin(x) cos(x) − − cos(x) cos(x) dx
u = sin(x) dv = sin(x) dx
ˆ
du = cos(x) dx v = − cos(x) = − sin(x) cos(x) + cos2 (x) dx
ˆ
= − sin(x) cos(x) + 1 − sin2 (x) dx
ˆ
= − sin(x) cos(x) + x − sin2 (x) dx
::::::::::
ˆ
=⇒ 2 sin2 (x) dx = − sin(x) cos(x) + x + C
ˆ
x − sin(x) cos(x)
=⇒ sin2 (x) dx = +C
2

(c) Show that your answers to parts (a) and (b) above are the same by giving a suitable trig identity.

1 1
sin(x) cos(x) = 2 sin(x) cos(x) = sin(2x).
2 2

Page 11 of 33
Section 8.3: Trigonometric Integrals MATH 142

(d) How would you evaluate the integral


ˆ
sin2 (x) cos2 (x) dx?
ˆ ˆ
2 2 1 1
sin (x)cos (x) dx = (1 − cos(2x)) · (1 + cos(2x)) dx
:::::: 2
:::::::::::::
2
ˆ
1
= 1 − cos2 (x) dx
4
ˆ
1 1
= x− cos2 (2x) dx
4 4
ˆ
1 1 1
= x− (1 + cos(4x)) dx
4 4 2
ˆ
1 1 1
= x− x− cos(4x) dx
4 8 8
1 1
= x− sin(4x) + C
8 32

Example 8: Evaluate the integral in problem (2) above, again, but this time by parts using u = sin2 (x) and dv − sin(x) dx.
(After this, you’ll probably need to do a substitution.)
ˆ ˆ
sin3 (x) dx = sin2 (x) sin(x) dx
ˆ
u = sin2 (x) dv = sin(x) dx = − sin2 (x) cos(x) − − cos(x) · 2 sin(x) cos(x) dx
ˆ
du = 2 sin(x) cos(x) dx v = − cos(x) = − sin2 (x) cos(x) + 2 cos2 (x) sin(x) dx
ˆ
= − sin (x) cos(x) − 2 w2 dw
2

w = cos(x)
2u3
dw = − sin(x) dx = − sin2 (x) cos(x) − +C
3
2 cos3 (x)
= − sin2 (x) cos(x) − +C
3

Example 9 - For fun: Can you show your answers to problem (2) and (8) above are the same? It’s another great
trigonometric identity.

2 cos3 (x) 2 2 cos3 (x)


− sin2 (x) cos(x) − = − 1 − cos2 (x) cos(x) − cos3 (x) = − cos(x) + cos3 (x) − cos3 (x) = − cos(x) +

3 3 3 3

Example 10 - Further investigations: (especially for mathematics, physics and engineering majors) We also would
like to be able to solve integrals of the form ˆ
tanm (x) secn (x) dx.

These two functions play well with each other, since the derivative of tan(x) is sec2 (x), the derivative of sec(x) is sec(x)|tan(x)
and since there is a Pythagorean identity relating them. It sometimes works to use u = tan(x) and it sometimes works to
use u = sec(x). Based on the values of m and n, which substitution should you use? Are there cases for which neither
substitution works? (See page 472 of the text.)

Page 12 of 33
Section 8.4: Trigonometric Substitution

Motivation: If we want to find the area of a circle or ellipse, we have an integral of the form
ˆ p
a2 − x2 dx

where a > 0. Regular substitution will not work here, observe:

u = a2 − x2
du = −2x dx ←− extra factor of x . . .

Solution: Parametrise! We change x to a function of θ by letting x = a sin (θ) so,

p q q q
2  p
a2 − x2 = a2 − (a sin (θ)) = 12 − a2 sin2 (θ) = a2 1 − sin2 (θ) = a2 cos2 (θ) = a |cos (θ)| .

Generally, we use an injective (one-to-one) function (so it has an inverse) to simplify calculations. Above, we ensure a sin (θ)
is invertible by restricting the domain to − π2 , π2 .
 

Common Trig Substitutions: The following is a summary of when to use each trig substitution.

Integral contains: Substitution Domain Identity

√  π π
a 2 − x2 x = a sin (θ) −2, 2 1 − sin2 (θ) = cos2 (θ)


− π2 , π2 1 + tan2 (θ) = sec2 (θ)

a2 + x2 x = a tan (θ)

√  π
x2 − a2 x = a sec (θ) 0, 2 sec2 (θ) − 1 = tan2 (θ)

If you are worried about remembering the identities, then don’t! They can all be derived easily, assuming you know
three basic ones (which by now you should):

1 sin (θ)
sin2 (θ) + cos2 (θ) = 1, sec (θ) = , tan (θ) =
cos (θ) cos (θ)

sin2 (θ) + cos2 (θ) = 1 =⇒ cos2 (θ) = 1 − sin2 (θ)


÷ cos2 (θ) tan2 (θ) + 1 = sec2 (θ) =⇒ tan2 (θ) = sec2 (θ) − 1

Section 8.4: Trigonometric Substitution MATH 142

Example 1: Evaluate
ˆ √
9 − x2
dx.
x2

ˆ √ ˆ p
9 − x2 32 − 32 sin2 (θ)
dx = · 3 cos (θ) dθ
x = 3 sin (θ) x2 32 sin2 (θ)
ˆ p
h π πi 3 1 − sin2 (θ)
θ∈ − , = · 3 cos (θ) dθ
2 2 32 sin2 (θ)
dx = 3 cos (θ) dθ ˆ p 2
cos (θ)
= · cos (θ) dθ
sin2 (θ)
ˆ
cos2 (θ)
= dθ
sin2 (θ)
ˆ
= cot2 (θ) dθ
ˆ
= csc2 (θ) − 1 dθ

= − cot (θ) − θ + C

32 − x2
= − − arcsin (θ) + C
x
How did we recover x?

A2 + x2 = 32
x hyp. 3
x = 3 sin (θ) =⇒ = sin (θ) opp. =⇒ x A2 = 32 − x2
3
p
θ θ A = 32 − x2
adj. A

1 adj. 32 − x2
cot (θ) = = =
tan (θ) opp. x

This is a common process in trig substitution. When you substitute back for your original variable, in this case x, you will
always be able to find the correct substitutions by drawing out and labelling a right triangle correctly.

Page 14 of 33
Section 8.4: Trigonometric Substitution MATH 142

Example 2: Find
ˆ
1
√ dx.
x2 x2 + 4

ˆ ˆ
1 2 sec2 (θ)
√ dx = p dθ
x2 x2 + 4 22 tan2 (θ) 22 tan2 (θ) + 22
x = 2 tan (θ) ˆ 2
 π π
= 2 sec (θ)

θ∈ − ,
p
2 2 2 tan (θ) 2 tan2 (θ) + 1
2 2
ˆ
dx = 2 sec2 (θ) dθ sec2 (θ)
= 2
p dθ
2 tan (θ) sec2 (θ)
2
ˆ
sec (θ)
= dθ
22 tan2 (θ)
ˆ
1 cos (θ)
= dθ
4 sin2 (θ)
ˆ
u = sin (θ) 1 1
= du
4 u2
du = cos (θ) 11
=− +C
4u
1
=− +C
4 sin (θ)
1
= − csc (θ) + C
4

x2 + 4
= − +C
4x
How did we recover x?

x hyp. H
x = 2 tan (θ) =⇒ = tan (θ) opp. =⇒ x
2 H 2 = x2 + 2 2
p
θ θ H = x2 + 4
adj. 2


1 hyp. x2 + 4
csc (θ) = = =
sin (θ) opp. x

Page 15 of 33
Section 8.4: Trigonometric Substitution MATH 142

Example 3: Evaluate
ˆ
x2
√ dx.
9 − x2

ˆ ˆ
x2 32 sin2 (θ)
√ dx = p · 3 cos (θ) dθ
9 − x2 32 − 32 sin2 (θ)
ˆ
32 sin2 (θ)
= p · 3 cos (θ) dθ
3 1 − sin2 (θ)
ˆ 2 2
3 sin (θ)
x = 3 sin (θ) = p · cos (θ) dθ
 π π cos2 (θ)
θ∈ − , ˆ
2 2 = 9 sin2 (θ)
dx = 3 cos (θ) dθ ˆ
9
= 1 − cos (2θ) dθ
2
 
9 1
= θ − sin(2θ) + C
2 2
9
= (θ − sin(θ) cos(θ)) + C
2
  x √9 − x 2
!
9 −1 x
= sin − · +C
2 3 3 3

How did we recover x?

x hyp. 3
x = 3 sin (θ) =⇒ = sin (θ) opp. =⇒ x
3 32 = x2 + A2
p
θ θ A = 9 − x2
adj. A


adj. 9 − x2
cos (θ) = =
hyp. x

Page 16 of 33
Section 8.5: Integration by Partial
Fractions

Our next technique: We can integrate some rational functions using u-substitution or trigonometric substitution, but
these methods do not always work. Our next method of integration allows us to express any rational function as a sum of
functions that can be integrated using methods with which we are already familiar. That is, we cannot integrate

1
x2 − x

as-is, but it is equivalent to


1 1
− ,
x x−1
each term of which we can integrate.

Example 1: Our goal is to compute

ˆ
x−7
dx.
(x + 1) (x − 3)
ˆ
1
(a) dx = ln |x + 1| + C
x+1

2 1 2 (x − 3) − (x + 1) 2x − 6 − x − 1 x−7
(b) − = = =
x+1 x−3 (x + 1) (x − 3) (x + 1) (x − 3) (x + 1) (x − 3)

ˆ ˆ
x−7 2 1
(c) dx = − dx = 2 ln |x + 1| − ln |x − 3| + C
(x + 1) (x − 3) x+1 x−3

ˆ
10x − 31
Example 2: Compute dx.
(x − 1) (x − 4)

7 3 7 (x − 4) + 3 (x − 1) 10x − 31
(a) + = =
x−1 x−4 (x − 1) (x − 4) (x − 1) (x − 4)
ˆ ˆ
10x − 31 7 3
(b) dx = + dx = 7 ln |x − 1| + 3 ln |x − 4| + C
(x − 1) (x − 4) x−1 x−4

The previous two examples were nice since we were given a different expression of our integrand before hand. But what
about when we don’t? It is clear that the key step is decomposing our integrand into simple pieces, so how do we do it?
The next example outlines the method.
Section 8.5: Integration by Partial Fractions MATH 142
ˆ
x + 14
Example 3: Goal: Compute dx.
(x + 5) (x + 2)
x + 14
Our first step is to decompose as
(x + 5) (x + 2)

x + 14 ? ?
= + .
(x + 5) (x + 2) x+5 x+2

There is no indicator of what the numerators should be, so there is work to be done to find them. If we let the numerators
be variables, we can use algebra to solve. That is, we want to find constants A and B that make the equation below true
for all x 6= −5, −2.

x + 14 A B
= + .
(x + 5) (x + 2) x+5 x+2

We solve for A and B by cross multiplying and equating the numerators.

x + 14 A B A (x + 2) + B (x + 5)
= + = =⇒ x + 14 = A (x + 2) + B (x + 5)
(x + 5) (x + 2) x+5 x+2 (x + 5) (x + 2)
= Ax + 2A + Bx + 5B
= (A + B) x + 2A + 5B
1 = A + B =⇒ B = 1 − A
14 = 2A + 5B ˆ ˆ
x + 14 −3 4
= 2A + 5 (1 − A) dx = + dx
(x + 5) (x + 2) x+5 x+2
= 2A + 5 − 5A = −3 ln |x + 5| + 4 ln |x + 2| + C
= 5 − 3A
=⇒ 9 = −3A
=⇒ −3 = A
=⇒ B = 1 − (−3) = 4

Example 4: Find
ˆ
x + 15
dx.
(3x − 4) (x + 1)

x + 15 A B A (x + 1) + B (3x − 4)
= + = =⇒ x + 15 = A (x + 1) + B (3x − 4)
(3x − 4) (x + 1) 3x − 4 x + 1 (3x − 4) (x + 1)
= Ax + A + 3Bx − 4B
= (A + 3B) x + A − 4B
1 = A + 3B =⇒ A = 1 − 3B
15 = A − 4B
= (1 − 3B) − 4B ˆ ˆ
x + 15 7 2
= 1 − 7B dx = − dx
(3x − 4) (x + 1) 3x − 4 x + 1
=⇒ 14 = −7B 7
= ln |3x + 5| − 2 ln |x + 1| + C
=⇒ −2 = B 3

=⇒ A = 1 − 3 (−2) = 7

Page 18 of 33
Section 8.5: Integration by Partial Fractions MATH 142

Example 4 - An alternative approach: Find


ˆ
x + 15
dx.
(3x − 4) (x + 1)

x + 15 A B A (x + 1) + B (3x − 4)
= + = =⇒ x + 15 = A (x + 1) + B (3x − 4)
(3x − 4) (x + 1) 3x − 4 x + 1 (3x − 4) (x + 1)

Instead of expanding everything, comparing coefficients and solving a system of linear equations, sometimes it may be
helpful to plug in strategic values of x to solve. Good values to choose are those that are roots of the polynomials that
appear on the denominators of the fraction. Observe,

4 4 4 4
    
x = −1 : (−1) + 15 = A ((−1) + 1) + B (3(−1) − 4) x= 3 : 3 + 15 = A 3 +1 +B 3 3 −4
49
=⇒ 14 = 0 − 7B =⇒ 3 = 37 A + 0
=⇒ −2 = B =⇒ 7=A

ˆ ˆ
x + 15 7 2 7
dx = − dx = ln |3x + 5| − 2 ln |x + 1| + C
(3x − 4) (x + 1) 3x − 4 x + 1 3

ˆ
5x − 2
Example 5: Goal: Find dx.
(x + 3)2

Here, there are not two different linear factors in the denominator. This CANNOT be expressed in the form

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

However, it can be expressed in the form:

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

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

5x − 2 = A(x + 3) − 17
x = −3 : 5(−3) − 2 = A ((−3) + 3) + B
= Ax + 3A − 17
=⇒ −17 = 0 + B
=⇒ 5x = Ax
=⇒ −17 = B
=⇒ 5=A

ˆ ˆ
5x − 2 5 17 17
dx = − dx = 5 ln |x + 3| + +C
(x + 3)2 x + 3 (x + 3)2 x+3

Page 19 of 33
Section 8.5: Integration by Partial Fractions MATH 142

Example 6: What if the denominator is an irreducible quadratic of the form x2 + px + q? That is, it can not be factored
n
(does not have any real roots). In this case, suppose that x2 + px + q is the highest power of this factor that divides the
denominator. Then, to this factor, assign the sum of the n partial fractions:

B1 x + C1 B1 x + C1 B1 x + C1 B1 x + C1
2
+ 2 + 3 + ··· + 2 n.
(x + px + q) (x + px + q)
2 2
(x + px + q) (x + px + q)
ˆ
−2x + 4
Compute dx.
(x2 + 1)(x − 1)2

−2x + 4 Ax + B C D (Ax + B) (x − 1)2 + C(x2 + 1)(x − 1) + D(x2 + 1)


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

=⇒ −2x + 4 = (Ax + B) (x − 1)2 + C(x2 + 1)(x − 1) + D(x2 + 1)

There are four unknowns here, A, B, C and D. In this case we’re going to want to minimise the amount of work we do here. In
general it is going to be beneficial to solve for as many coefficients as we can by plugging in numbers, and then expand everything to
compare coefficient after reducing the workload.

x=1: −2(1) + 4 = (Ax + B)((1) − 1)2 + C((1)2 + 1)((1) − 1) + D((1)2 + 1)


=⇒ 2 = 0 + 0 + 2D
=⇒ 1=D

So we got one coefficient this way. That’s better than nothing! Now if we use this new information and then rearrange a little we
end up with less solving to do. This does require you however to be comfortable with algebra.

=⇒ −2x + 4 = (Ax + B) (x − 1)2 + C(x2 + 1)(x − 1) + (x2 + 1)


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

Now we have already seen what happens when x = 1, so we can go right ahead and divide by the (x−1) term that appears on both sides.
Now we can go through and set up equations and solve by coef-
=⇒ −x − 3 = (Ax + B) (x − 1) + C(x2 + 1) ficients. When there are lots of coefficients it is a good idea of
2 2
= Ax + Bx − Ax − B + Cx + C coming up with a way to book-keep your algebra - it can get very
2
= (A + C)x + (B − A)x + C − B messy if you don’t. Below is just one way you can do it.

     
(1) 0 = A +C (1) 0 = A +C (1) −4 = 2C
 (2)+(3)   (1)+(2) 
(2) −1 = −A  =⇒ (2) −4 = −A +C  =⇒ (2) −4 −A
 
+B = +C 
(3) −3 = −B +C (3) −3 = −B +C (3) −3 = −B +C

ˆ ˆ
−2x + 4 2x + 1 2 1
dx = − + dx
(x2 + 1)(x − 1)2 x2 + 1 x−1 (x − 1)2
=⇒ −4 = 2C =⇒ −2 = C ˆ
2x 1 2 1
=⇒ −4 = −A − 2 =⇒ 2=A = + 2 − + dx
x2 + 1 x +1 x−1 (x − 1)2
=⇒ −3 = −B − 2 =⇒ 1 = B, So . . . 1
= ln(x2 + 1) + tan−1 (x) − 2 ln |x − 1| − +C
x−1

Page 20 of 33
Section 8.5: Integration by Partial Fractions MATH 142

f (x)
Summary: Method of Partial Fractions when is proper (deg f (x) < deg g(x))
g(x)
1. Let x − r be a linear factor of g(x). Suppose that (x − r)m is the highest power of x − r that divides g(x). Then, to
this factor, assign the sum of the m partial fractions:

A1 A2 A3 Am
+ + + ··· + .
(x − r) (x − r)2 (x − r)3 (x − r)m

Do this for each distinct linear factor of g(x).

2. Let x2 + px + q be an irreducible quadratic factor of g(x) so that x2 + px + q has no real roots. Suppose that
(x2 + px + q)n is the highest power of this factor that divides g(X). Then, to this factor, assign the sum of the n
partial fractions:

B1 x + C1 B1 x + C1 B1 x + C1 B1 x + C1
2
+ 2 + 3 + ··· + 2 n.
(x + px + q) (x + px + q)
2 2
(x + px + q) (x + px + q)

Do this for each distinct quadratic factor of g(x).

3. Continue with this process with all irreducible factors, and all powers. The key things to remember are

(i) One fraction for each power of the irreducible factor that appears
(ii) The degree of the numerator should be one less than the degree of the denominator
f (x)
4. Set the original fraction equal to the sum of all these partial fractions. Clear the resulting equation of fractions
g(x)
and arrange the terms in decreasing powers of x.

5. Solved for the undetermined coefficients by either strategically plugging in values or comparing coefficients of powers
of x.

Page 21 of 33
Section 8.7: Numerical Integration

What to do when there’s no nice antiderivative? The antiderivatives of some functions, like sin(x2 ), 1/ ln(x) and

1 + x4 have no elementary formulas/ When we cannot find a workable antiderivative for a function f (x) that we have to
integrate, we can partition the interval of integration, replace f (x) by a closely fitting polynomial on each subinterval,
integrate the poynomials and add the results to approximate the definite integral of f (x). This is an example of numerical
integration. There are many methods of numerical integration but we will study only two: the Trapezium Rule and
Simpson’s Rule.

Trapezoidal Approximations: As the name implies, the Trapezium Rule for the value of a definite integral is based on
approximating the region between a curve and the x-axis with trapeziums instead of rectangles - which, if you recall, we
studied when we looked at Riemann integration in Calculus I.

f (x) f (x)

y0 y1 y2 y3 y4 ...

∆x ∆x ∆x ∆x

a := x0 x1 x2 x3 x4 =: b a := x0 x1 x2 ... xn−2 xn−1 xn =: b

b−a
Assume the length of each subinterval is ∆x = . Then the area of the trapezium that lies above the x-axis in the ith
n
δx
subinterval is Ti = (yi−1 + yi ) where yi−1 = f (xi−1 ) and yi = f (xi ). Then the area of the under the curve and above
2
the x-axis is approximated by the sum of the trapeziums:

∆x ∆x ∆x
T = (y0 + y1 ) + (y1 + y2 ) + · · · + (yn−1 + yn )
2 2 2
∆x
= (y0 + y1 + y1 + y2 + · · · + yn−2 + yn−1 + yn−1 + yn )
2
∆x
= (y0 + 2y1 + 2y2 + · · · + 2yn−1 + yn )
2 !
n−1
∆x X
= y0 + yn + 2 yi
2 i=1
n−1
!
∆x X
= f (x0 ) + f (xn ) + 2 f (xi )
2 i=1
Section 8.7: Numerical Integration MATH 142
ˆ b
The Trapezium Rule: To approximate f (x) dx, use
a

∆x
T = (y0 + 2y1 + 2y2 + · · · + 2yn−1 + yn )
2 !
n−1
∆x X
= f (x0 ) + f (xn ) + 2 f (xi ) ,
2 i=1

where the y’s are the values of f at the partition points

x0 := a, x1 := a + ∆x, x2 := a + 2∆x, . . . , xn−1 := a + (n − 1)∆x, xn := a + n∆x = b,

b−a
and ∆x = .
n
ˆ 2
Example 1: Use the Trapezium Rule with n = 4 to estimate x2 dx. Compare the estimate with the exact value.
1

Partition the interval [1, 2] into 4 subintervals:

2−1 x0 = a x1 = a + ∆x x2 = a + 2∆x x3 = a + 3∆x x4 = a + 4∆x


∆x = 1 1 1 1
4 =1 =1+1· =1+2· =1+3· =1+4·
1 4 4 4 4
= 4 5 6 7 8
4 = = = = =
4 4 4 4 4
Now use these points together with the formula for the Trapezium Rule:

∆x
T = (y0 + 2y1 + 2y2 + 2y3 + y4 )
2   
1/4 4
 
5
 
6
 
7
 
8 ˆ 2
2
f +f 1
=
2 4
+ 2f
4
+ 2f
4
+ 2f
4 4 x dx = x3
2
1 3
  1
1 16 25 36 49 64 1 3
= +2 +2 +2 + = 2 − 13

8 16 16 16 16 16 3
1 1
= (16 + 50 + 72 + 98 + 64) = (8 − 1)
128 3
1 7
= (300) =
128 3
75
=
32

75 7 225 224 1
− = − = .
32 3 96 96 96

1
So the approximation overestimated the actual area by , which is pretty good considering we only used 4 trapeziums.
96

Just like when we looked at Riemann sums, using more trapeziums results in a better approximation.

Page 23 of 33
Section 8.7: Numerical Integration MATH 142

Parabolic Approximations: Instead of using the straight-line segments that produced the trapeziums, we can use
parabolas to approximate the definite integral of a continuous function. We partition the interval [a, b] into n subintervals
b−a
of equal length ∆x = but this time we require n to be an even number. On each consecutive pair of intervals
n
we approximate the curve y = f (x) ≥ 0 by a parabola. A typical parabola passed through three consecutive points:
(xi−1 , yi−1 ), (xi , yi ) and (xi+1 , yi+1 ) on the curve.

n=4:
f (x)

a := x0 x1 x2 x3 x4 =: b

n=8:
f (x)

a := x0 x1 x2 x3 x4 x5 x6 x7 x8 =: b

So how do we compute the area under each parabola y = Ax2 + Bx + C? By translating we can assume that the centre
point of our parabola is at xi = 0

The area under the parabola and above the x-axis is given by
(0, yi )
ˆ ∆x
Si = Ax2 + Bx + C dx (−∆x, yi−1 )
−∆x
∆x
Ax3 Bx2 (∆x, yi+1 )
= + + Cx
3 2
−∆x
A(∆x)3 B(∆x)2 A(−∆x)3 B(−∆x)2
 
= + + C(∆x) − + + C(−∆x)
3 2 3 2
2A∆x3
= + 2C∆x
3
∆x
= (2A∆x + 6C)
3 −∆x 0 ∆x


yi−1 = A∆x2 − B∆x + C 


=⇒ yi−1 + 4yi + yi+1 = A∆x2 − B∆x + C + 4C + A∆x2 + B∆x + C = 2A∆x + 6C
 
yi =C


= A∆x2 + B∆x + C

yi+1
∆x
=⇒ Si = (yi−1 + 4yi + yi+1 )
3

So if we sum up the areas under all of the parabolas, we obtain our approximation.

Page 24 of 33
Section 8.7: Numerical Integration MATH 142

ˆ b
Simpson’s Rule: To approximate f (x) dx, use
a

∆x
S= (y0 + 4y1 + 2y2 + 4y3 + · · · + 2yn−2 + 4yn−1 + yn )
3
  n−1 
2
∆x  X
= f (x0 ) + f (xn ) + 2  f (x2i−1 ) + 2f (x2i ) ,
3 i=1

where the y’s are the values of f at the partition points

x0 := a, x1 := a + ∆x, x2 := a + 2∆x, . . . , xn−1 := a + (n − 1)∆x, xn := a + n∆x = b,

b−a
and ∆x = with n an even number.
n
ˆ 2
Example 2: Use the Simpson’s Rule with n = 4 to approximate 5x4 dx. Compare the estimate with the exact value.
0

Partition the interval [1, 2] into 4 subintervals:

2−0 x0 = a x1 = a + ∆x x2 = a + 2∆x x3 = a + 3∆x x4 = a + 4∆x


∆x = 1 1 1 1
4 =0 =0+1· =0+2· =0+3· =0+4·
1 2 2 2 2
= 0 1 2 3 4
2 = = = = =
2 2 2 2 2
Now use these points together with the formula for Simpson’s Rule:

∆x
S= (y0 + 4y1 + 2y2 + 4y3 + y4 )
3           
1/2 0 1 2 3 4
= f + 4f + 2f + 4f +f ˆ 2
2
3 2 2 2 2 2 4 5
  5x dx = x
1 0 1 16 81 128 0
= 5 +4·5 +2·5 +4·5 +5 0
6 16 16 16 16 16
= 2 − 05
5
5
= (0 + 4 + 32 + 324 + 256) = 32 − 0
96
5
= (616) = 32
96
385
=
12

385 385 384 1


− 32 = − = .
12 12 12 12

1
So the approximation overestimated the actual area by , which is pretty good considering we only used 2 parabolas.
12

Just like Riemann sums and the Trapezium rule, using more parabolas results in a better approximation. In fact, of the
three rules Simpson’s Rule gives the best approximation. This can be seen by looking at the error estimates.

Page 25 of 33
Section 8.7: Numerical Integration MATH 142

Error Estimates in the Trapezium and Simpson’s Rules If f 00 (x) is continuous and M is any upper bound for the
values of |f 00 (x)| on [a, b], then the error ET in the Trapezium Rule for approximating the definite integral of f (x) over the
interval [a, b] using n trapeziums satisfies the inequality

M (b − a)3
|ET | ≤ .
12n2

If f (4) (x) is continuous and M is any upper bound for the values of |f (4) (x)| on [a, b], then the error ES in Simpson’s Rule
n
for approximating the definite integral of f (x) over the interval [a, b] using 2 parabolas satisfies the inequality

M (b − a)5
|ES | ≤ .
180n4
ˆ 2
Example 3: Find an upper bound for the error in estimating 5x4 dx using Simpson’s Rule with n = 4. What value of
0
n should we pick so that the error is within 0.001 of the true value?

First we differentiate f (x) 4 times and check that it is continuous on the interval [0, 2].

f (x) = 5x4
f 0 (x) = 20x3
f 00 (x) = 60x2
f 000 (x) = 120x
f (4) (x) = 120

This is a constant function, so it is continuous on our interval. Further

|f (4) (x)| = 120 ≤ 120 for all x ∈ [0, 2].

Thus M = 120 works as a bound. So, with n = 4, the error is bounded by:

M (b − a)5 120(2 − 0)5 120 · 25 1 1


|ES | ≤ = = = = .
180n4 180(4)4 180 · 28 3 · 22 12

To achieve an approximation with |ES | ≤ 0.001, we again find a bound for M but this time we solve the inequality for n.

M (b − a)5 120(2 − 0)5 26


4
= 4
= 4 ≤ 0.001
180n 180n 3n

26 1 4
=⇒ ≤ n
3 1000
26 · 1000
=⇒ ≤ n4
3
28 · 2 · 53
=⇒ ≤ n4
r3
3
4 2 · 5
=⇒ 4 ≤n
3
q
2·53
So setting n ≥ 4 4 3 ≈ 12.086 would ensure an approximation of the desired accuracy.

Page 26 of 33
Section 8.8: Improper Integrals

Switching up the Limits of Integration: Up until now, we have required two properties of definite integral:

1. the domain of integration, [a, b], is finite

2. the range of the integrand is finite on this domain.

We will now see what happens if we allow the domain or range to be infinite!

Infinite Limits of Integration: Let’s consider the infinite region (unbounded on the right) that lies under the curve
y = e−x/2 in the first quadrant.

f (x) = e−x/2

First, we examine what the area looks like over finite intervals. That is, we integrate over [0, b].

ˆ b
b
h i  
−x/2 −x/2
A(b) := e dx = −2e = −2e−b/2 − −2e−0/2 = 2 1 − e−b/2 .
0
0

Now we have an expression for the area over a finite integral, we can let b −→ ∞ by calculating the limit of this expression.
 
A = lim A(b) = lim 2 1 − e−b/2 = 2 (1 − 0) = 2.
b→∞ b→∞

So,
ˆ ∞ ˆ b
e−x/2 dx = lim e−x/2 dx = 2.
0 b→∞ 0

So this is how we deal with infinite limits of integration - with a limit! Remember those?
Section 8.8: Improper Integrals MATH 142

Definition: Integrals with infinite limits of integration are called improper integrals of Type I.

1. If f (x) is continuous on [a, ∞), then


ˆ ∞ ˆ b
f (x) dx = lim f (x) dx.
a b→∞ a

2. If f (x) is continuous on (−∞, b], then


ˆ b ˆ b
f (x) dx = lim f (x) dx.
−∞ a→∞ −a

3. If f (x) is continuous on (−∞, ∞), then


ˆ ∞ ˆ c ˆ ∞
f (x) dx = f (x) dx + f (x) dx,
−∞ −∞ c

where c is any real number.

In each case, if the limit is finite we sat that the improper integral converges and that the limit is the

value of the improper integral. If the limit fails to exist, the improper integral diverges

Any of the integrals in the above definition can be interpreted as an area if f (x) ≥ 0 on the interval of integration. If
f (x) ≥ 0 and the improper integral diverges, we say the area under the curve is infinite.

Example 1: Evaluate
ˆ ∞
ln(x)
dx.
1 x2

ˆ b
b ˆ b
ln(x) ln(x) 1
dx = − − − dx
1 x2 x 1 x2
1
b
1 ln(x) 1
u = ln(x) dv = dx =− −
x2 x x
1 1 1
du = dx v=− ln(b) 1

ln(1) 1

x x =− − − − −
b b 1 1
Now we take a limit, ln(b) 1
=− − +1
b b
ˆ ∞ ˆ b      
ln(x) ln(x) ln(b) 1 ln(b) L’H 1/b
dx = lim dx = lim − − + 1 = lim − − 0 + 1 = lim − +1=0+1= 1
1 x2 b→∞ 1 x2 b→∞ b b b→∞ b b→∞ 1

L’Hôpital’s Rule Suppose that f (a) = g(a) = 0, that f (x) and g(x) are differentiable on an open interval I containing a
and that g 0 (x) 6= 0 on I if x 6= a. Then

f (x) f 0 (x)
lim = lim 0 ,
x→a g(x) x→a g (x)

assuming that the limit on the left and right both exist.

Page 28 of 33
Section 8.8: Improper Integrals MATH 142

Example 2: Evaluate
ˆ ∞
1
dx.
−∞ 1 + x2

According to part 3 of our definition, we can choose any real number c and split this integral into two integrals and then
apply parts 1 and 2 to each piece. Let’s choose c = 0 and write

ˆ ∞ ˆ 0 ˆ ∞
1 1 1
dx = dx + dx.
−∞ 1 + x2 −∞ 1 + x2 0 1 + x2

Now we will evaluate each piece separately.

ˆ 0 ˆ 0 ˆ ∞ ˆ b
1 1 1 1
dx = lim dx dx = lim dx
−∞ 1 + x2 a→−∞ a 1 + x2 0 1 + x2 b→∞ 0 1 + x2
0 b
−1 −1
= lim tan (x) = lim tan (x)
a→−∞ b→∞
1 0
−1 −1 −1
= lim tan (0) − tan (a) = lim tan (b) − tan−1 (0)
a→−∞ b→∞

= lim − tan−1 (a) = lim tan−1 (b)


a→−∞ b→∞
π π
= , = .
2 2
So,

ˆ ∞ ˆ 0 ˆ ∞
1 1 1 π π
= dx + dx = + = π
−∞ 1 + x2 −∞ 1 + x2 0 1 + x2 2 2

Since 1/(1 + x2 ) > 0 on R, the improper integral can be interpreted as the (finite) area between the curve and the x-axis.

1
y=
1 + x2 Area = π

x
0

Page 29 of 33
Section 8.8: Improper Integrals MATH 142

A Special Example: For what values of p does the integral


ˆ ∞
1
dx
1 xp

converge? When the integral does converge, what is its value?

We split this investigation into two cases; when p 6= 1 and when p = 1.

If p 6= 1:
ˆ ∞ ˆ b
If p = 1:
1 −p
dx = lim x dx ˆ ˆ
1 xp b→∞ 1

1 b
1
b dx = lim dx
x −p+1 1 x b→∞ 1 x
= lim b
b→∞ −p + 1
1
= lim ln(x)
b b→∞
1 1 1
= lim · p−1
b→∞ 1 − p x = lim [ln(b) − ln(1)]
1 b→∞

1
p−1 , p>1 = lim ln(b) = ∞
  
1 1 
= lim −1 = b→∞
b→∞ 1−p bp−1 ∞, p < 1.

Combining these two results we have


ˆ

∞ 1
1 ,  p>1
p
dx = p−1
1 x ∞, p≤1

Integrands with Vertical Asymptotes: Another type of improper integral that can arise is when the integrand has a
vertical asymptote (infinite discontinuity) at a limit of integration or at a point on the interval of integration. We apply a
similar technique as in the previous examples of integrating over an altered interval before obtaining the integral we want
by taking limits.

Example 4: Investigate the convergence of


ˆ 1
1
√ dx.
0 x

First we find the integral over the region [a, 1] where 0 < a ≤ 1.

ˆ 1 ˆ 1
1 1
1 √ √ √
√ dx = x−1/2 dx = 2x1/2 =2 x = 2 − 2 a = 2(1 − a).
a x a a
a

Then we find the limit as a → 0+ :


ˆ 1
1 √ 
lim+ √ dx = lim 2 1 − a = 2.
a→0 a x a→0+

Therefore,
ˆ 1 ˆ 1
1 1
√ dx = lim √ dx = 2
0 x a→0+ a x

Page 30 of 33
Section 8.8: Improper Integrals MATH 142

Definition: Integrals of functions that become infinite at a point within the interval of integration are called improper
integrals of Type II.

1. If f (x) is continuous on (a, b] and discontinuous at a, then


ˆ b ˆ a
f (x) dx = lim+ f (x) dx.
a c→a c

2. If f (x) is continuous on [a, b) and discontinuous at b, then


ˆ b ˆ c
f (x) dx = lim− f (x) dx.
a c→b a

3. If f (x) is discontinuous at c, where a < c < b, and continuous on [a, c) ∪ (c, b], then
ˆ b ˆ c ˆ b
f (x) dx = f (x) dx + f (x) dx.
a a c

In each case, if the limit is finite we sat that the improper integral converges and that the limit is the

value of the improper integral. If the limit fails to exist, the improper integral diverges

Example 5: Investigate the convergence of


ˆ 1
1
dx.
0 1−x

ˆ 1 ˆ b
1 1
dx = lim− dx
0 1−x b→1 0 1−x
ˆ b
1
= lim − dx
b→1− 0 x−1
b

= lim− − ln |x − 1|
b→1
0
b

= lim− − ln(x − 1)
b→1
0

= lim − ln(1 − b)
b→1−

= − (−∞)
= ∞

Page 31 of 33
Section 8.8: Improper Integrals MATH 142

Tests for Convergence: When we cannot evaluate an improper integral directly, we try to determine whether it converges
of diverges. If the integral diverges, we are done. If it converges we can use numerical methods to approximate its value.
The principal tests for convergence or divergence are the Direct Comparison Test and the Limit Comparison Test.

Direct Comparison Test for Integrals: If 0 ≤ f (x) ≤ g(x) on the interval (a, ∞], where a ∈ R, then,
ˆ ∞ ˆ ∞
1. If g(x) dx converges, then so does f (x) dx.
a a
ˆ ∞ ˆ ∞
2. If f (x) dx diverges, then so does g(x) dx.
a a

Why does this make sense?


1. If the area under the curve of g(x) is finite and f (x) is bounded above by g(x) (and below by 0), then the area under
the curve of f (x) must be less than or equal to the area under the curve of g(x). A positive number less that a finite
number is also finite.

2. If the area under the curve of f (x) is infinite and g(x) is bounded below by f (x), then the area under the curve of
g(x) must be “less than or equal to” the area under the curve of g(x). Since there is no finite number “greater than”
infinity, the area under g(x) must also be infinite.

Example 6: Determine if the following integral is convergent or divergent.


ˆ ∞
cos2 (x)
dx.
2 x2

cos2 (x) cos2 (x)


We want to find a function g(x) such that for some a ∈ R, f (x) = ≤ g(x) or f (x) = ≥ g(x) for all x ≥ a.
x2 x2
2
One way we can do this is by finding bounds for f (x). Since 0 ≤ cos (x) ≤ 1 for all x,

cos2 (x) 1
≤ 2.
x2 x

1
So then we can use g(x) := . So,
x2
ˆ ∞ ˆ ∞ ˆ b
cos2 (x)
  
1 1 1 1 1
0≤ dx ≤ dx = lim dx = lim − − − = .
2 x2 2 x2 b→∞ 2 x2 b→∞ b 2 2
ˆ ∞
cos2 (x)
So dx converges.
2 x2

Example 7: Determine if the following integral is convergent of divergent.


ˆ ∞
1
dx.
3 x − e−x

1 1
Since x ≥ x − e−x , f (x) := ≤ =: g(x) for all x ≥ 3. So,
x x − e−1
ˆ ∞ ˆ ∞
0≤ f (x) dx ≤ g(x) dx.
3 3

ˆ ∞ ˆ ∞
1 1
By the Direct Comparison Test then, dx diverges since dx diverges.
3 x − e−x 3 x

Page 32 of 33
Section 8.8: Improper Integrals MATH 142

Limit Comparison Test for Integrals: If the positive functions f (x) and g(x) are continuous on [a, ∞), and if

f (x)
lim = L, 0 < L < ∞,
x→∞ g(x)

then
ˆ ∞ ˆ ∞
f (x) dx and g(x) dx
a a

both converge or diverge.

Why does this make sense? The convergence is really only dependent on the “tail” of the integral. That is, the convergence
is dictated by what happens “at infinity.” If for sufficiently large values of x, f (x) ≈ Lg(x) and one of the two integrals
converges, then the other one should also converge, since it is only off by “about a scalar multiple.” The same goes for
diverging, if one diverges, then multiplying it by a positive number won’t suddenly make it converge, so the other one
should also diverge.

Example 8: Show that


ˆ ∞
1
dx
1 1 + x2

converges.

1 1
Let f (x) := and g(x) := 2 . Then,
1 + x2 x

x2 1 + x2 − 1
 
f (x) 1
lim = lim = lim = lim 1 − = 1.
x→∞ g(x) x→∞ 1 + x2 x→∞ 1 + x2 x→∞ 1 + x2
ˆ ∞
1
So, by the Limit Comparison Test, the integral dx converges.
1 1 + x2
Example 9: Show that
ˆ ∞
1 − e−x
dx
1 x

dinverges.

1 − e−x 1
Let f (x) := and g(x) := . Then,
x x

f (x)
= lim 1 − e−x = 1.

lim
x→∞ g(x) x→∞
ˆ ∞
1 − e−x
So, by the Limit Comparison Test, the integral dx diverges.
1 x

Page 33 of 33

You might also like