Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views37 pages

weeks6-10

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 37

Applications of derivatives 46 Local minima and maxima

4.4 Local minima and maxima


Definition 4.20 – Local minimum and maximum
We say that f has a local minimum at x0 , if there is an interval I around x0 such that

f (x0 ) ≤ f (x) for all x ∈ I.

We say that f has a local maximum at x0 , if there is an interval I around x0 such that

f (x0 ) ≥ f (x) for all x ∈ I.

Theorem 4.21 – First derivative test


Suppose that f is differentiable on some interval around the point x0 .

(a) If f ′ changes from being negative to being positive at the point x0 , then f changes
from being decreasing to being increasing, so f has a local minimum at x0 .

(b) If f ′ changes from being positive to being negative at the point x0 , then f changes
from being increasing to being decreasing, so f has a local maximum at x0 .

Theorem 4.22 – Second derivative test


Suppose that f is twice differentiable at the point x0 .

(a) If f ′ (x0 ) = 0 and f ′′ (x0 ) > 0, then f has a local minimum at x0 .

(b) If f ′ (x0 ) = 0 and f ′′ (x0 ) < 0, then f has a local maximum at x0 .

Example 4.23 We use the second derivative test to find the local minima/maxima of

f (x) = x3 + 3x2 − 9x.

To find the points at which the first derivative is zero, we note that

f ′ (x) = 3x2 + 6x − 9 = 3(x2 + 2x − 3) = 3(x − 1)(x + 3).

The solutions of f ′ (x) = 0 are thus x = 1 and x = −3. When it comes to the former,

f ′′ (x) = 6x + 6 =⇒ f ′′ (1) = 6 + 6 = 12,

so f attains a local minimum at the point x = 1. When it comes to the latter,

f ′′ (x) = 6x + 6 =⇒ f ′′ (−3) = −18 + 6 = −12,

so f attains a local maximum at the point x = −3. 


Applications of derivatives 47 Local minima and maxima

Example 4.24 We use the first derivative test to find the local minima/maxima of
3x + 4
f (x) = .
x2 + 1
According to the quotient rule, the derivative of this function is given by
3(x2 + 1) − 2x(3x + 4) −3x2 − 8x + 3
f ′ (x) = = .
(x2 + 1)2 (x2 + 1)2
The quadratic in the numerator has roots x1 = 1/3 and x2 = −3, so one may also write
3(x − x1 )(x − x2 ) (1 − 3x)(x + 3)
f ′ (x) = − = .
(x + 1)
2 2 (x2 + 1)2
We now determine the sign of f ′ (x) using the table below. When x = −3, the derivative
changes from being negative to being positive, so f has a local minimum. When x = 1/3,
the derivative changes from being positive to being negative, so f has a local maximum. 

−3 1/3
2 1 − 3x + + −
x+3 − + +
f ′ (x) − + −
-6 -3 3 6

3x + 4
Figure 4.5: The graph of f (x) = .
x2 + 1

Example 4.25 We use the second derivative test to find the local minima/maxima of

f (x) = x4 − 4x2 + 3.

To find the points at which the first derivative is zero, we note that
√ √
f ′ (x) = 4x3 − 8x = 4x(x2 − 2) = 4x(x − 2)(x + 2).

The solutions of f ′ (x) = 0 are thus x = 0 and x = ± 2. When it comes to the first point,

f ′′ (x) = 12x2 − 8 =⇒ f ′′ (0) = −8,

so f attains a local maximum at the point x = 0. When it comes to the other two points,

f ′′ (x) = 12x2 − 8 =⇒ f ′′ (± 2) = 12 · 2 − 8 = 16,

so f attains a local minimum at each of the points x = ± 2. 
Applications of derivatives 48 Global minima and maxima

4.5 Global minima and maxima


Definition 4.26 – Global minimum and maximum
Consider a function f with domain A and let x0 ∈ A be a given point.

(a) We say that f has a global minimum at x0 , if f (x0 ) ≤ f (x) for all x ∈ A.

(b) We say that f has a global maximum at x0 , if f (x0 ) ≥ f (x) for all x ∈ A.

Theorem 4.27 – Unique change of sign


Suppose that f is differentiable and f ′ changes sign exactly once. If f ′ changes from
being negative to being positive at x0 , then f has a global minimum at x0 . If f ′ changes
from being positive to being negative at x0 , then f has a global maximum at x0 .

Theorem 4.28 – Continuous functions on finite intervals


Suppose that f is continuous on the finite interval [a, b]. Then f attains both a global
minimum and a global maximum. In fact, these may only occur at the endpoints a, b,
the points at which f ′ (x) is zero and the points at which f ′ (x) does not exist.

Example 4.29 We find the global minimum/maximum values that are attained by

f (x) = x3 − 3x, 0 ≤ x ≤ 2.

This function is differentiable at all points and its derivative is given by

f ′ (x) = 3x2 − 3 = 3(x2 − 1) = 3(x + 1)(x − 1).

Thus, the global minimum/maximum values may only occur at the points

x = −1, x = 1, x = 0, x = 2.

We exclude the leftmost point, as it does not lie in the given interval, and we compute

f (1) = 13 − 3 = −2, f (0) = 0, f (2) = 23 − 3 · 2 = 2.

This means that the minimum value is f (1) = −2 and the maximum value is f (2) = 2. 

Example 4.30 We use Theorem 4.27 in order to establish the inequality

xe−x ≤ e−1 for all x.

Consider the function f that is defined by f (x) = xe−x . As one can easily check,

f ′ (x) = e−x + x · (e−x ) · (−x)′ = e−x − xe−x = (1 − x)e−x .

This implies that f ′ (x) is positive when x < 1 and f ′ (x) is negative when x > 1. Thus, f
attains a global maximum at the point x = 1 and one has f (x) ≤ f (1) = e−1 for all x. 
Applications of derivatives 49 Global minima and maxima

Example 4.31 We find the global minimum and maximum values that are attained by

f (x) = sin x + cos x, 0 ≤ x ≤ 2π.

This function is differentiable at all points and its derivative is given by

f ′ (x) = cos x − sin x.

To say that f ′ (x) = 0 is to say that sin x = cos x and this is true precisely when tan x = 1.
Thus, the only points at which the minimum/maximum values may occur are the points

x = 0, x = 2π, x = π/4, x = 5π/4.

As one can easily check, the corresponding values of f (x) are


√ √
f (0) = f (2π) = 1, f (π/4) = 2, f (5π/4) = − 2.
√ √
Thus, the minimum value is f (5π/4) = − 2 and the maximum value is f (π/4) = 2. 

Example 4.32 We use Theorem 4.27 in order to establish the inequality

ex ≥ x + 1 for all x.

Consider the function f that is defined by f (x) = ex − x − 1. Its derivative is

f ′ (x) = ex − 1 = ex − e0 ,

so it is negative when x < 0 and it is positive when x > 0. This implies that f attains a
global minimum at the point x = 0. In particular, one has f (x) ≥ f (0) = 0 for all x. 

Example 4.33 We find the global minimum and maximum values that are attained by

f (x) = x 4 − x2 , −2 ≤ x ≤ 2.

Using both the product rule and the chain rule, one may easily check that
√ −2x √ x2 4 − 2x2
f ′ (x) = 4 − x2 + x · √ = 4 − x2 − √ =√ .
2 4 − x2 4 − x2 4 − x2
Thus, the only points at which the minimum/maximum values may occur are the points
√ √
x = −2, x = 2, x = − 2, x = 2.

The corresponding values that are attained by f (x) are given by


√ √
f (−2) = f (2) = 0, f (− 2) = −2, f ( 2) = 2.
√ √
This makes f (− 2) = −2 the minimum value and f ( 2) = 2 the maximum value. 
Applications of derivatives 50 Optimisation

4.6 Optimisation
• There are several standard problems that ask for the minimum/maximum value of a
function which represents a physical quantity such as length, area and volume.

• To solve these problems, one introduces the variables of interest and expresses them in
terms of a single variable x. This variable is not usually arbitrary, as length, area and
volume must be non-negative. One must thus determine the exact restrictions on x.

Example 4.34 Out of all rectangles of perimeter 40, which one has the largest area? To
answer this question, we denote by x, y the two sides of the rectangle and we note that

2x + 2y = 40 =⇒ x + y = 20 =⇒ y = 20 − x.

To maximise the area A of the rectangle, we first express it in terms of x, namely

A = xy = x(20 − x) = 20x − x2 .

Next, we determine the restrictions on x. Since the lengths x, y must be non-negative, we


need to have x ≥ 0 and y = 20 − x ≥ 0. Thus, we are looking for the maximum value of

A(x) = 20x − x2 , 0 ≤ x ≤ 20.

Since A′ (x) = 20−2x, the only points at which the maximum value may occur are the points

x = 0, x = 20, x = 10.

The corresponding values that are attained by A(x) are given by

A(0) = A(20) = 0, A(10) = 200 − 100 = 100.

Thus, the largest area arises when x = y = 10, in which case the rectangle is a square. 

Example 4.35 If a right triangle has a hypotenuse of length 6, how large can its area be?
In this case, we let x, y be the other two sides and we use Pythagoras’ theorem to get

x2 + y 2 = 62 =⇒ y 2 = 36 − x2 =⇒ y = 36 − x2 .

Eliminating y, one may express the area of the right triangle in the form

xy x 36 − x2
A= = .
2 2
Since A becomes maximum if and only if A2 becomes maximum, it suffices to maximise
x2 (36 − x2 ) x4
f (x) = = 9x2 − , 0 ≤ x ≤ 6.
4 4
The derivative of this function is easy to compute and one has

f ′ (x) = 18x − x3 = x(18 − x2 ).


Applications of derivatives 51 Optimisation

Thus, the only points at which the maximum value may occur are the points

x = 0, x = 6, x = 18.
The corresponding values that are attained by f (x) are given by
√ 18 · 18
f (0) = f (6) = 0, f ( 18) = = 92 .
4

In particular, the maximum value is f ( 18) = 92 and the largest possible area is 9. 
Example 4.36 A cylinder is formed when a rectangle is rotated around one of its sides. If
the rectangle has perimeter 6, then how large can the volume of the cylinder be? Let x be
the side of the rectangle which lies along the line of rotation and let y be the other side.
Then x becomes the height of the cylinder and y becomes the radius, so the volume of the
cylinder is given by V = πy 2 x. Since 2x + 2y = 6 by assumption, one may write
V (y) = πy 2 x = πy 2 (3 − y) = 3πy 2 − πy 3 .
To ensure that the lengths x, y are non-negative, we need to assume that 0 ≤ y ≤ 3. Since
V ′ (y) = 6πy − 3πy 2 = 3πy(2 − y),
the only points at which the maximum value may occur are the points
y = 0, y = 3, y = 2.
Since V (0) = V (3) = 0 and V (2) = 4π, the largest possible volume is V (2) = 4π. 
Example 4.37 We find the point on the line y = 2x + 1 which is closest to A(3, 6). In this
case, we need to minimise the distance d between (x, y) and (3, 6), namely
p p
d = (x − 3)2 + (y − 6)2 = (x − 3)2 + (2x − 5)2 .
Since d becomes minimum if and only if d2 becomes minimum, it suffices to minimise
f (x) = (x − 3)2 + (2x − 5)2 .
The derivative of this function is easily found to be
f ′ (x) = 2(x − 3) + 2(2x − 5) · 2 = 2(x − 3 + 4x − 10) = 2(5x − 13).
Thus, f ′ (x) is negative when x < 13/5 and positive when x > 13/5. This implies that f has
a global minimum at x = 13/5, so the closest point on the line is (13/5, 27/5). 
Example 4.38 Out of all rectangles of area a > 0, which one has the smallest perimeter?
To answer this question, we let x, y be the two sides of the rectangle and we note that xy = a.
The perimeter of the rectangle is 2x + 2y and this can be expressed in the form
2a
P (x) = 2x + 2y = 2x + .
x
The only restriction on x is that x > 0, while the derivative of P (x) is
2a 2(x2 − a)
P ′ (x) = 2 − 2 = .
x x2
√ √
This gives P ′ (x) < 0 when
√ 0 < x < a and P ′
(x) > 0 when x > a, so P (x) attains its
minimum when x = y = a. The rectangle of smallest perimeter is thus a square. 
Applications of derivatives 52 Related rates

4.7 Related rates


• Suppose that two or more variables are related by some equation. Then one may use
implicit differentiation to see that their derivatives are related as well.

• This situation arises frequently when quantities such as length, area and volume are
varying with time. We shall thus mainly focus on functions of time t.

Example 4.39 If the radius of a circle is increasing at the rate of 1 cm/sec, how fast is the
area of the circle changing when the radius is 3 cm? In this case, the variables of interest
are the radius r(t) and the area A(t). They are related by the usual formula

A(t) = πr(t)2

and one may differentiate both sides of this equation to find that

A′ (t) = π · 2r(t) · r′ (t).

At the given moment, r′ (t) = 1 and r(t) = 3, so it easily follows that A′ (t) = 6π. 

Example 4.40 A ladder that is 10 ft long is resting against a wall. If its base starts sliding
along the floor at the rate of 1 ft/sec, how fast is the top of the ladder sliding down the wall
when the base is 6 ft away from the wall? To solve this problem, let x be the horizontal
distance between the base and the wall, and let y be the vertical distance between the top
of the ladder and the floor. According to Pythagoras’ theorem, one must have

x(t)2 + y(t)2 = 102 =⇒ 2x(t)x′ (t) + 2y(t)y ′ (t) = 0.

At the given moment, x′ (t) = 1 and x(t) = 6, so the last equation gives
6
y(t)y ′ (t) = −x(t)x′ (t) = −6 =⇒ y ′ (t) = − .
y(t)
Using Pythagoras’ theorem to determine the remaining variable y(t), we conclude that
p √ 6 3
y(t) = 102 − x(t)2 = 102 − 62 = 8 =⇒ y ′ (t) = − = − . 
8 4

Example 4.41 A girl flies a kite at a constant height of 30 metres above her hand and the
wind is carrying the kite horizontally at a rate of 2 m/sec. How fast must she let out the
string when the kite is 50 metres away from her? Let x(t) be the horizontal distance between
the girl and the kite, and let z(t) be the length of the string. We must then have

x(t)2 + 302 = z(t)2 =⇒ 2x(t)x′ (t) = 2z(t)z ′ (t).

Since x′ (t) = 2 and z(t) = 50 by assumption, it easily follows that



′ x(t)x′ (t) 2 502 − 302 2 · 40 8
z (t) = = = = . 
z(t) 50 50 5
Applications of derivatives 53 Linear approximation

4.8 Linear approximation


Definition 4.42 – Linear approximation
Given a function f which is differentiable at the point x0 , we say that

L(x) = f ′ (x0 ) · (x − x0 ) + f (x0 ) (4.8)

is the tangent line approximation or linear approximation of f at the point x0 .

• The linear approximation is merely the linear function that best approximates f (x)
near the point x0 . In fact, the points x which are sufficiently close to x0 satisfy
f (x) − f (x0 )
≈ f ′ (x0 ) =⇒ f (x) ≈ f ′ (x0 ) · (x − x0 ) + f (x0 ).
x − x0

Example 4.43 The linear approximation to f (x) = sin x at the point x0 = 0 is given by

L(x) = f ′ (0) · (x − 0) + f (0).

Since f (0) = sin 0 = 0 and f ′ (0) = cos 0 = 1, the linear approximation is thus L(x) = x.
One may use this approximation to argue that sin x ≈ x for all small enough x. 

Example 4.44 We find the linear approximation to f (x) at the point x0 in the case that

4x2 − 5x − 1
f (x) = , x0 = 1.
x+1
To find the derivative of f (x) at the given point, we use the quotient rule to get

′ (8x − 5) · (x + 1) − (4x2 − 5x − 1) 3·2+2


f (x) = =⇒ f ′ (1) = = 2.
(x + 1)2 4

Since f (1) = −2/2 = −1, the linear approximation is L(x) = 2(x − 1) − 1 = 2x − 3. 

-1 1 3

-2

-4

4x2 − 5x − 1
Figure 4.6: The graph of f (x) = and its tangent line at x = 1.
x+1
Applications of derivatives 54 Newton’s method

4.9 Newton’s method


• Newton’s method is a standard approach for approximating the roots of an equation
of the form f (x) = 0. The method does not always work, but it works quite often.
• The idea is to start with an initial guess x1 , find the tangent line to f at that point
and determine the point x2 at which the line meets the x-axis. One may then use x2
as a second guess and proceed in this manner to obtain the formula
f (xn )
xn+1 = xn − for each n ≥ 1. (4.9)
f ′ (xn )

Example 4.45 We use Newton’s method to approximate 2. In this case, we need to
approximate the positive root of f (x) = x2 − 2 and equation (4.9) has the form
x2n − 2 xn 1 xn 1
xn+1 = xn − = xn − + = + .
2xn 2 xn 2 xn
Starting with x1 = 1 as our initial guess, we apply this equation repeatedly to get
x1 = 1, x2 = 1.5, x3 = 1.41666667,
x4 = 1.41421569, x5 = 1.41421356, x6 = 1.41421356.

Based on these calculations, we find that 2 is approximately 1.41421 within five decimal
places. In fact, the same conclusion may be reached by√taking x1 = 2, for instance. If one
starts with x1 = −1, then Newton’s method leads to − 2, the other root of f . 
Example 4.46 Consider the polynomial f (x) = x3 − 3x + 1 which is continuous with
f (0) = 1, f (1) = 1 − 3 + 1 = −1.
Since f (0) and f (1) have opposite signs, f has a root that lies in (0, 1). In fact, this root is
unique by Rolle’s theorem because f ′ (x) = 3(x2 − 1) has no roots in the given interval. Let
us now use Newton’s method to approximate the unique root. Equation (4.9) gives
x3n − 3xn + 1
xn+1 = xn −
3x2n − 3
and the fraction is not defined when x2n = 1. Starting with the initial guess x1 = 0, we get
x1 = 0, x2 = 0.33333333, x3 = 0.34722222,
x4 = 0.34729635, x5 = 0.34729635, x6 = 0.34729635.
This gives an approximation of the root which is accurate to eight decimal places. 
Example 4.47 We show that Newton’s method fails in the case that f (x) = x1/3 . If one
uses equation (4.9) to approximate the root of f (x) = 0, one finds that
1/3
xn
xn+1 = xn − −2/3
= xn − 3xn = −2xn .
xn · 1/3
For instance, the initial guess x1 = 1 gives x2 = −2, x3 = 4 and so on. The points xn are
thus getting larger in absolute value and they fail to approach a limiting value. 
Chapter 5

Integration

5.1 Definite integral


Definition 5.1 – Integrability
Suppose that f is defined on [a, b] and let x0 , x1 , . . . , xn be the points that divide [a, b]
into n intervals of length ∆x = b−a
n
. We say that f is integrable on [a, b], if the limit
Z b n
X
f (x) dx = lim f (x∗k )∆x (5.1)
a n→∞
k=1

exists and its value does not depend on which point x∗k is chosen from each [xk−1 , xk ].

• The sum that appears in definition (5.1) is also known as a Riemann sum. When f is
positive, it gives the total area of the rectangles with height f (x∗k ) and base ∆x. The
limit of their sum should be the area of the region that lies below the graph of f .
• There are very few functions for which the Riemann sums can be computed explicitly.
Example 5.2 We use the definition of integrability to show that every constant function is
integrable. Indeed, suppose that f (x) = c is constant for all x. Then equation (5.1) gives
Z b n n
X X c(b − a) c(b − a)
f (x) dx = lim c ∆x = lim = lim n · = c(b − a). 
a n→∞
k=1
n→∞
k=1
n n→∞ n

Example 5.3 We use the definition of integrability to show that


Z b
b2
x dx = for all b > 0.
0 2
Consider the points x0 , x1 , . . . , xn that divide [0, b] into n intervals of equal length. These
are given by xk = k∆x for each 0 ≤ k ≤ n and ∆x = b/n, so it easily follows that
b2 b2
xk−1 ∆x ≤ x∗k ∆x ≤ xk ∆x =⇒ (k − 1) ≤ x ∗
k ∆x ≤ k .
n2 n2

55
Integration 56 Definite integral

Adding up these inequalities over all possible values of 1 ≤ k ≤ n, we conclude that


n n n
b2 X X
∗ b2 X
(k − 1) ≤ x k ∆x ≤ k. (5.2)
n2 k=1 k=1
n 2
k=1

The sum that appears in the right hand side of (5.2) is a standard sum whose value is
n
X n(n + 1)
k = 1 + 2 + ... + n = .
k=1
2

The sum that appears in the left hand side of (5.2) is practically the same because
n
X (n − 1)n
(k − 1) = 0 + 1 + . . . + (n − 1) = .
k=1
2

In particular, one may simplify equation (5.2) to establish the estimates


n
b2 (n − 1)n X ∗ b2 n(n + 1)
· ≤ xk ∆x ≤ 2 · . (5.3)
n2 2 k=1
n 2

To compute the integral of f (x) = x, it remains to take the limit as n → ∞. In this case,
b2 (n − 1)n b2 b2 n(n + 1)
lim
· = = lim · ,
n→∞ n2 2 2 n→∞ n2 2
Rb
so one may apply the squeeze theorem to find that 0 x dx = limn→∞ nk=1 x∗k ∆x = b2
P
2
. 

Example 5.4 We show that f is not integrable on any interval [a, b] when
 
1 if x is rational
f (x) = .
0 if x is irrational
Were f integrable on [a, b], one would be able to express its integral in the form
Z b Xn
f (x) dx = lim f (x∗k ) ∆x
a n→∞
k=1

for an arbitrary choice of points x∗k ∈ [xk−1 , xk ]. On the other hand, this interval contains
both rational and irrational numbers. If we choose the points x∗k to be irrational, then
X n Z b
∗ ∗
f (xk ) = 0 =⇒ f (xk ) ∆x = 0 =⇒ f (x) dx = 0.
k=1 a

If we choose the points x∗k to be rational, then we similarly get


n
X Z b
f (x∗k ) =1 =⇒ f (x∗k ) ∆x = n ∆x = b − a =⇒ f (x) dx = b − a.
k=1 a

This gives two different values for the same integral, so f is not integrable on [a, b]. 
Integration 57 Rules of integration

5.2 Rules of integration


Theorem 5.5 – Linearity
If the functions f, g are integrable on [a, b], then so is their sum, and one has
Z b Z b Z b
[f (x) + g(x)] dx = f (x) dx + g(x) dx.
a a a

If a function f is integrable on [a, b], then cf is integrable for any constant c and
Z b Z b
cf (x) dx = c f (x) dx.
a a

Theorem 5.6 – Integrals and inequalities


If the functions f, g are integrable on [a, b] and f (x) ≤ g(x) for all a ≤ x ≤ b, then
Z b Z b
f (x) dx ≤ g(x) dx.
a a

Theorem 5.7 – Continuous implies integrable


If a function f is continuous on [a, b], then f is also integrable on [a, b].

Definition 5.8 – Arbitrary limits of integration


The definition of integrability on [a, b] implicitly assumes that a < b. However, one may
extend this definition to any limits of integration using the formulas
Z a Z b Z a
f (x) dx = − f (x) dx, f (x) dx = 0.
b a a

• The first two theorems are easy to prove, but the proof of Theorem 5.7 is difficult.
• Theorem 5.6 implies the triangle inequality for integrals which states that
Z b Z b
f (x) dx ≤ |f (x)| dx
a a

for any continuous function f . In fact, one has −|f (x)| ≤ f (x) ≤ |f (x)| and so
Z b Z b Z b
− |f (x)| dx ≤ f (x) dx ≤ |f (x)| dx.
a a a

Writing the last equation as −A ≤ B ≤ A, we conclude that |B| ≤ A, as needed.


Integration 58 Fundamental theorem of calculus

5.3 Fundamental theorem of calculus


Theorem 5.9 – Fundamental theorem of calculus, part 1
If f is continuous on [a, b] and F is a function whose derivative is f , then
Z b Z b
f (x) dx = F ′ (x) dx = F (b) − F (a).
a a

Theorem 5.10 – Mean value theorem for integrals


If f is continuous on [a, b], then there exists a point a ≤ c ≤ b such that
b
1
Z
f (c) = f (x) dx.
b−a a

Theorem 5.11 – Fundamental theorem of calculus, part 2


Suppose that f is continuous on [a, b] and let F (x) denote its definite integral
Z x
F (x) = f (t) dt, a ≤ x ≤ b.
a

Then F is a function whose derivative is f . In other words, one has F ′ (x) = f (x).

• An antiderivative of f is a function F whose derivative is f . It is denoted by


Z
F (x) = f (x) dx,

an integral without limits, and it is also known as the indefinite integral of f .

• The difference F (b) − F (a) is frequently denoted by [F (x)]ba . One may thus write
Z b
F ′ (x) dx = F (b) − F (a) = [F (x)]ba .
a

Example 5.12 We use the fundamental theorem of calculus to compute the integral
Z 2
I= (3x2 − 2) dx.
1

Since F (x) = x3 − 2x is such that F ′ (x) = 3x2 − 2, one may apply Theorem 5.9 to get
Z 2
I= F ′ (x) dx = [F (x)]21 = F (2) − F (1) = 4 − (−1) = 5. 
1
Integration 59 Integrals of standard functions

5.4 Integrals of standard functions


• The following list includes the antiderivatives of some standard functions.

• In each case, the antiderivative is expressed in terms of an arbitrary constant C.

xn+1
Z Z
n
x dx = + C, n 6= −1 x−1 dx = ln |x| + C
n+1
Z Z
sin x dx = − cos x + C cos x dx = sin x + C
Z Z
tan x dx = ln | sec x| + C cot x dx = ln | sin x| + C
Z Z
2
sec x dx = tan x + C csc2 x dx = − cot x + C
Z Z
sec x tan x dx = sec x + C csc x cot x dx = − csc x + C
Z Z
sec x dx = ln | sec x + tan x| + C csc x dx = − ln | csc x + cot x| + C

dx dx
Z Z
√ = sin−1 x + C = tan−1 x + C
1 − x2 1 + x2
eax ax
Z Z
eax dx = + C, a 6= 0 ax dx = + C, 0 < a 6= 1
a ln a

• The formulas above can be verified using differentiation. For instance, one has
h (sec x)′
i′ sec x tan x
ln | sec x| = = = tan x.
sec x sec x
R
This makes ln | sec x| an antiderivative of tan x, so tan x dx = ln | sec x| + C.

• The formula for the integral of sec x can be similarly verified by checking that
h i′ (sec x + tan x)′ sec x tan x + sec2 x
ln | sec x + tan x| = = = sec x.
sec x + tan x sec x + tan x

Example 5.13 Using the formula for the antiderivative of xn , one finds that
Z 2 Z 2 3 2


 
2 4x 16 2 32
x2 ( x + 4) dx = (x5/2 + 4x2 ) dx = x7/2 + = + .
0 0 7 3 0 7 3
Using the formula for the antiderivative of tangent, one similarly finds that
Z π/4 √
h iπ/4 2 ln 2
tan x dx = ln | sec x| = ln √ − ln 1 = ln 2 = . 
0 0 2 2
Integration 60 Area, volume and arc length

5.5 Area, volume and arc length


Theorem 5.14 – Area between two graphs
Suppose that f, g are continuous on [a, b] and f (x) ≤ g(x) for all a ≤ x ≤ b. Then the
area of the region that lies between the graphs of the two functions is
Z b
Area = [g(x) − f (x)] dx.
a

Theorem 5.15 – Solids of revolution


Suppose that f is continuous on [a, b] and consider the solid that is produced when the
graph of f is rotated around the x-axis. The volume of the resulting solid is then
Z b
Volume = πf (x)2 dx.
a

Theorem 5.16 – Arc length


Suppose that f is differentiable on [a, b] and f ′ is continuous on [a, b]. Then the length
of the graph of f over the interval [a, b] is given by
Z bp
Arc length = 1 + f ′ (x)2 dx.
a

Example 5.17 We find the area of the region that is enclosed by the graphs of f (x) = x2
and g(x) = 8 − x2 . These are the graphs of two parabolas which intersect when

x2 = 8 − x2 ⇐⇒ 2x2 = 8 ⇐⇒ x = ±2.

Since f (x) ≤ g(x) at all points −2 ≤ x ≤ 2, the area of the region is thus
Z 2 Z 2 2
2x3

 2
 64
[g(x) − f (x)] dx = 8 − 2x dx = 8x − = . 
−2 −2 3 −2 3

Example 5.18 We compute the volume of a cone with radius r and height h. One may
obtain such a cone by rotating a right triangle around the x-axis. Consider the triangle with
vertices (0, 0), (h, 0) and (h, r). Its base has length h and its height has length r, so its
hypotenuse has slope r/h and it is given by the line f (x) = rx/h. If we rotate the triangle
around the x-axis, we get a cone of radius r and height h. The volume of the cone is thus
Z h  h
πr2 h 2 πr2 x3 πr2 h
Z
2
V = πf (x) dx = 2 x dx = 2 = . 
0 h 0 h 3 0 3
Integration 61 Area, volume and arc length

Example 5.19 We compute the circumference


√ of a circle with radius r = 1. Let us only
worry about the upper semicircle f (x) = 1 − x , where −1 ≤ x ≤ 1. In this case,
2

(1 − x2 )′ x
f ′ (x) = √ = −√
2 1 − x2 1 − x2
p
and the arc length is given by the integral of 1 + f ′ (x)2 . Once we now simplify

x2 1
1 + f ′ (x)2 = 1 + = ,
1−x 2 1 − x2
we may take the square root of both sides to conclude that the arc length is
Z 1p Z 1
dx h i1 π π
1 + f ′ (x)2 dx = √ = sin−1 x = + = π. 
−1 −1 1 − x2 −1 2 2

Example 5.20 We compute the length of the graph of f in the case that
x3 1
f (x) =
+ , 1 ≤ x ≤ 2.
12 x
p
This amounts to computing the integral of 1 + f ′ (x)2 and one can easily check that

x2 1 x4 1 1
f ′ (x) = − 2 =⇒ f ′ (x)2 + 1 = + 4 − +1
4 x 16 x 2
8 4
x + 16 + 8x (x4 + 4)2
=⇒ f ′ (x)2 + 1 = = .
16x4 16x4
Taking the square root of both sides, we conclude that the length of the graph is
Z 2 4 Z 2 2   3 2
x +4 x −2 x 1 13
dx = +x dx = − = . 
1 4x 2
1 4 12 x 1 12

Example 5.21 We compute the volume of the solid obtained by rotating the ellipse
x2 y 2
+ 2 =1
a2 b
around the x-axis. This solid is also known as an ellipsoid. Assuming that a is positive, we
get −a ≤ x ≤ a and one may rearrange terms to find that
y2 x2 x2
 
2 2
= 1 − 2 =⇒ y = b 1 − 2 .
b2 a a

The volume of the ellipsoid is the integral of πf (x)2 = πy 2 and this is given by
Z a Z a a
x2 x3 4ab2 π
 
2 2 2
π y dx = b π 1 − 2 dx = b π x − 2 = . 
−a −a a 3a −a 3
Integration 62 Mass, centre of mass and work

5.6 Mass, centre of mass and work


Theorem 5.22 – Mass and centre of mass
Consider a thin rod which extends between the points a ≤ x ≤ b and let δ(x) denote its
density at the point x. The overall mass M of the rod is then
Z b
M= δ(x) dx,
a

The centre of mass x is given by a similar formula and one has


Z b
1
x= xδ(x) dx. (5.4)
M a

Definition 5.23 – Work


In physics, the amount of work that is required to move an object by d units using a
constant force F in the direction of motion is defined as the product

Work = Force · Displacement = F · d.

Example 5.24 We compute the mass and the centre of mass for a thin rod with density

δ(x) = 2x2 + 3x + 4, 0 ≤ x ≤ 1.

The mass of the rod is given by the integral of its density function, namely
1 1
2x3 3x2

2 3 37
Z
2
M= (2x + 3x + 4) dx = + + 4x = + +4= .
0 3 2 0 3 2 6

The centre of mass is given by equation (5.4) and one easily finds that
1 1 1
6 x4

1 6 21
Z Z
3 2 3 2
x= xδ(x) dx = (2x + 3x + 4x) dx = + x + 2x = . 
M 0 37 0 37 2 0 37

Example 5.25 A rectangular tank has length 4m, width 3m and height 2m. Suppose it is
full with water of density 1000 kg/m3 . How much work does it take to pump out the water
through a hole in the top? To find the answer, we consider a typical cross section of the
tank. Assume that it has arbitrarily small height dx and lies x metres from the top. Then
its volume is V = 4 · 3 · dx and its mass is m = (12 dx) · 1000. The force needed to pump
out this part is mass times acceleration, so F = mg and the overall amount of work is
2 2
x2
Z Z 
Work = F ·x= 12,000g · x dx = 12,000g = 24,000g. 
0 2 0
Integration 63 Improper integrals

5.7 Improper integrals


• An improper integral is one that is not defined in the usual way because either the
values of x or the values of f (x) become infinite within the interval of integration.

• In these cases, one may integrate the given function over a generic interval [a, b] and
then compute the limit as the endpoints a, b approach the endpoints of interest.

Example 5.26 We use limits to compute the improper integral


Z 1
dx
I1 = √ .
0 x
In this case, the integrand becomes infinite at x = 0, so we avoid this point and compute
Z 1 Z 1  1/2 1
dx −1/2 x √
√ = x dx = = 2 − 2 a.
a x a 1/2 a

Taking the limit as a → 0+ , we conclude that the original integral is equal to I1 = 1. 

Example 5.27 Let c > 0 be a given constant and consider the improper integral
Z ∞
I2 = e−cx dx.
0

Since the interval of integration is infinite, we start by computing the finite analogue
Z L  −cx L
−cx e e−cL 1
e dx = − =− + .
0 c 0 c c
Letting L → ∞, we see that cL → ∞ as well, so the original integral is equal to
Z L
1 − e−cL 1
I2 = lim e−cx dx = lim = . 
L→∞ 0 L→∞ c c

Example 5.28 Let p > 1 be a given constant and consider the improper integral
Z ∞
I3 = x−p dx.
1

Once again, one may compute this integral by considering its finite analogue
Z L  1−p L
−p x L1−p 1
x dx = = − .
1 1−p 1 1−p 1−p

Since the exponent 1 − p is negative, one has L1−p → 0 as L → ∞ and this implies that
Z L
1 1
I3 = lim x−p dx = − = . 
L→∞ 1 1−p p−1
Chapter 6

Techniques of integration

6.1 Integration by parts


Theorem 6.1 – Integration by parts
If f, g are differentiable functions and their derivatives f ′ , g ′ are continuous, then
Z Z
f (x) · g (x) dx = f (x) · g(x) − f ′ (x) · g(x) dx.

(6.1)

• It is quite common, and also convenient, to express the last equation in the form
Z Z
u dv = uv − v du. (6.2)

This alternative version arises by letting u = f (x) and v = g(x) for simplicity.
• Some typical integrals that may be computed using integration by parts are
Z Z Z
ax
p(x) · e dx, p(x) · sin(ax) dx, p(x) · cos(ax) dx,

where p(x) is a polynomial and a 6= 0 is a given constant. In each of these cases, one
needs to integrate by parts n times, where n is the degree of the polynomial.
• Some other integrals for which integration by parts might be needed are those that
involve sin−1 , tan−1 or ln. These are functions whose derivatives are much simpler, so
they are all natural choices for the variable u that appears in equation (6.2).

Example 6.2 We use integration by parts to compute the integral


Z
xex dx.

Letting u = x and dv = ex dx, we find that du = dx and v = ex . It easily follows that


Z Z Z
xe dx = uv − v du = xe − ex dx = xex − ex + C.
x x


64
Techniques of integration 65 Integration by parts

Example 6.3 We use integration by parts to compute the integral


Z
x cos(2x) dx.

In this case, we take u = x and dv = cos(2x) dx. Since du = dx and v = 12 sin(2x), we get

x 1 x 1
Z Z
x cos(2x) dx = sin(2x) − sin(2x) dx = sin(2x) + cos(2x) + C. 
2 2 2 4

Example 6.4 We use integration by parts to compute the integral


Z
x2 ln x dx.

1 x3
Letting u = ln x and dv = x2 dx, we find that du = x
dx and v = 3
. This implies that

x3 x3 1 x3 x2 x3 x3
Z Z Z
2
x ln x dx = ln x − · dx = ln x − dx = ln x − + C. 
3 3 x 3 3 3 9

Example 6.5 We use a double integration by parts to compute the integral


Z
eax sin(bx) dx, b 6= 0.

If we let u = eax and dv = sin(bx) dx, then du = aeax dx and v = − 1b cos(bx), so

1 ax a
Z Z
ax
e sin(bx) dx = − e cos(bx) + eax cos(bx) dx.
b b

Next, we take u = eax and dv = cos(bx) dx. Since du = aeax dx and v = 1b sin(bx), one has
 
1 ax a 1 ax a
Z Z
ax ax
e sin(bx) dx = − e cos(bx) + e sin(bx) − e sin(bx) dx
b b b b
1 ax a ax a2
Z
= − e cos(bx) + 2 e sin(bx) − 2 eax sin(bx) dx.
b b b
Here, the rightmost integral is the same as the leftmost integral, so we actually have

a2
 Z
1 a
1+ 2 eax sin(bx) dx = − eax cos(bx) + 2 eax sin(bx).
b b b

Once we now multiply the last equation by b2 /(a2 + b2 ), we may finally conclude that

beax cos(bx) aeax sin(bx)


Z
eax sin(bx) dx = − + + C. 
a2 + b 2 a2 + b 2
Techniques of integration 66 Integration by substitution

6.2 Integration by substitution


• A very useful tool for simplifying integrals is provided by the formula
Z Z

g(f (x)) · f (x) dx = g(u) du. (6.3)

• Here, the idea is to introduce a variable u = f (x) to replace the leftmost integral by
another integral which is much simpler and also expressible in terms of u alone.
Example 6.6 We use an appropriate substitution to compute the integral
(ln x)3
Z
dx.
x
If we take u = ln x, then we have du = x1 dx and this is easily seen to imply that
(ln x)3 1 1
Z Z
dx = u3 du = u4 + C = (ln x)4 + C. 
x 4 4
Example 6.7 We use integration by substitution to compute the integral
Z
x2 (x3 + 6)4 dx.

In this case, the choice u = x3 + 6 is suitable because du = 3x2 dx and this gives
1 1 5 1 3
Z Z
2 3 4
x (x + 6) dx = u4 du = u +C = (x + 6)5 + C. 
3 15 15
Example 6.8 We use an appropriate substitution to compute the integral
2x + 7
Z
dx.
(x + 2)2
In this case, we take u = x + 2 to merely simplify the denominator. Since du = dx, we get
2x + 7 2(u − 2) + 7
Z Z Z Z
dx = du = 2u du + 3u−2 du
−1
(x + 2) 2 u 2

3
= 2 ln |u| − 3u−1 + C = 2 ln |x + 2| − + C. 
x+2
Example 6.9 We use integration by substitution to compute the integral

Z
cos x dx.

If we let u = x to simplify the square root, then x = u2 and dx = 2u du, so

Z Z Z
cos x dx = cos u · 2u du = 2 u cos u du.

Next, we need to integrate by parts. Letting dv = cos u du and v = sin u, we find that

Z Z
cos x dx = 2u sin u − 2 sin u du = 2u sin u + 2 cos u + C
√ √ √
= 2 x sin x + 2 cos x + C. 
Techniques of integration 67 Reduction formulas

6.3 Reduction formulas


• A reduction formula expresses an integral In that depends on some integer n in terms
of another integral Im that involves a smaller integer m. If one repeatedly applies this
formula, one may then express In in terms of a much simpler integral.

Example 6.10 We use integration by parts to establish the reduction formula


1 n−1
Z Z
n n−1
sin x dx = − sin x · cos x + sinn−2 x dx. (6.4)
n n
If we take dv = sin x dx, then we have v = − cos x and we may integrate by parts with

u = sinn−1 x, du = (n − 1) sinn−2 x · cos x.

Using the fact that sin2 x + cos2 x = 1, one may thus conclude that
Z Z
n n−1
sin x dx = − sin x · cos x + (n − 1) sinn−2 x · cos2 x dx
Z
n−1
= − sin x · cos x + (n − 1) sinn−2 x · (1 − sin2 x) dx
Z Z
n−1 n−2
= − sin x · cos x + (n − 1) sin x dx + (1 − n) sinn x dx.

Here, the rightmost integral coincides with the original integral on the left. Once we now
rearrange terms, we end up with n copies of the integral and equation (6.4) follows. 

Example 6.11 We use a reduction formula to compute the integral I3 in the case that
Z
In = xn e2x dx.

If we take u = xn and dv = e2x dx, then du = nxn−1 dx and v = 12 e2x , so one has

1 n 2x n 1 n
Z
In = x e − xn−1 e2x dx = xn e2x − · In−1 . (6.5)
2 2 2 2
We now apply the last formula repeatedly to determine I3 . According to the formula,
 
1 3 2x 3 1 3 2x 3 1 2 2x
I3 = x e − · I2 = x e − · x e − I1
2 2 2 2 2
 
1 3 2x 3 1 2 2x 1 2x 1
= xe − · x e − xe + · I0
2 2 2 2 2
1 3 3 3
Z
= x3 e2x − x2 e2x + xe2x − e2x dx
2 4 4 4
1 3 3 3
= x3 e2x − x2 e2x + xe2x − e2x + C. 
2 4 4 8
Techniques of integration 68 Reduction formulas

Example 6.12 We use integration by parts to establish the reduction formula


1 n−2
Z Z
n n−2
sec x dx = sec x · tan x + secn−2 x dx. (6.6)
n−1 n−1
In this case, we note that (tan x)′ = sec2 x and we write the given integral as
Z Z
sec x dx = secn−2 x · sec2 x dx.
n

If we take dv = sec2 x dx, then we have v = tan x and we may integrate by parts with
u = secn−2 x, du = (n − 2) secn−3 x · sec x tan x = (n − 2) secn−2 x · tan x.
Using the fact that 1 + tan2 x = sec2 x, one may thus establish the identity
Z Z
n n−2
sec x dx = sec x · tan x − (n − 2) secn−2 x · tan2 x dx
Z
n−2
= sec x · tan x − (n − 2) secn−2 x · (sec2 x − 1) dx
Z Z
n−2
= sec x · tan x − (n − 2) sec x dx + (n − 2) secn−2 x dx.
n

Since the integral on the left hand side also appears on the right hand side, this gives
Z Z
n n−2
(n − 1) sec x dx = sec x · tan x + (n − 2) secn−2 x dx.

In particular, the reduction formula (6.6) follows by dividing both sides with n − 1. 
Example 6.13 Let a 6= 0 be some given constant and consider the integral
dx
Z Z
In = = (x2 + a)−n dx.
(x2 + a)n
If we take u = (x2 + a)−n and dv = dx, then we may integrate by parts to find that
Z
In = x(x + a) + n x(x2 + a)−n−1 · 2x dx.
2 −n

Let us now rearrange terms and express the last equation in the form
Z 2
2 −n x +a−a
In = x(x + a) + 2n dx
(x2 + a)n+1
dx dx
Z Z
2 −n
= x(x + a) + 2n n
− 2na .
(x + a)
2 (x + a)n+1
2

The integrals on the right hand side have the same form as the original integral, so
In = x(x2 + a)−n + 2n · In − 2na · In+1 .
Rearranging terms once again, one may thus establish the reduction formula
2na · In+1 = (2n − 1) · In + x(x2 + a)−n . 
Techniques of integration 69 Trigonometric integrals

6.4 Trigonometric integrals


Theorem 6.14 – Powers of sine and cosine
Consider the integral sinm x · cosn x dx for any non-negative integers m, n.
R

(a) When n is odd, one may compute this integral using the substitution u = sin x.

(b) When m is odd, one may compute this integral using the substitution u = cos x.

(c) When m, n are even, one may use the half-angle formulas to simplify the integral.

Theorem 6.15 – Powers of secant and tangent


R
Consider the integral secm x · tann x dx for any non-negative integers m, n.

(a) When n is odd, one may compute this integral using the substitution u = sec x.

(b) When m is even, one may compute this integral using the substitution u = tan x.

(c) When m is odd and n is even, one may reduce the integrand to powers of sec x.

• The three cases that arise in Theorem 6.14 are closely related to the identities

(sin x)′ = cos x, (cos x)′ = − sin x, sin2 x + cos2 x = 1.

If one uses the substitution u = sin x, then one may express any even power of cosine
in terms of u2 , but also needs a copy of cosine for du = cos x dx. This yields an odd
number of cosines, so the substitution u = sin x will only help when n is odd.

• The last case that arises in Theorem 6.14 requires the half-angle formulas

1 − cos(2θ) 1 + cos(2θ)
sin2 θ = , cos2 θ = . (6.7)
2 2
These formulas are helpful for reducing the even powers of sine and cosine.

• The three cases that arise in Theorem 6.15 are closely related to the identities

(sec x)′ = sec x tan x, (tan x)′ = sec2 x, 1 + tan2 x = sec2 x.

These imply that an odd number of tangents is needed to substitute u = sec x, while
an even number of secants is needed to substitute u = tan x.

Example 6.16 We use the substitution u = sin x to compute the integral


Z
sin4 x · cos5 x dx.
Techniques of integration 70 Trigonometric integrals

In this case, we have du = cos x dx and also sin2 x + cos2 x = 1, so


Z Z Z
sin x · cos x dx = sin x · (1 − sin x) · cos x dx = u4 (1 − u2 )2 du
4 5 4 2 2

Z Z
= u (1 − 2u + u ) du = (u4 − 2u6 + u8 ) du
4 2 4

u5 2u7 u9 sin5 x 2 sin7 x sin9 x


= − + +C = − + + C. 
5 7 9 5 7 9
Example 6.17 We use the half-angle formulas to simplify and compute the integral
Z
sin2 x · cos2 x dx.

Since the exponents are both even, one needs to express the integrand in the form
1 − cos(2x) 1 + cos(2x) 1 
sin2 x · cos2 x = = · 1 − cos2 (2x)

·
2 2 4
1 1 + cos(4x) 1
= · 1− = · [1 − cos(4x)] .
4 2 8
Once we now integrate both sides of this equation, we may easily conclude that
 
1 sin(4x) x sin(4x)
Z
2 2
sin x · cos x dx = x− +C = − + C. 
8 4 8 32

Example 6.18 We use an appropriate substitution to compute the integral


Z
sec4 x · tan2 x dx.

If we let u = tan x, then du = sec2 x dx and also sec2 x = 1 + tan2 x = 1 + u2 , so one has
Z Z Z
sec x · tan x dx = sec x · tan x · sec x dx = (1 + u2 ) · u2 du
4 2 2 2 2

u 3 u5 tan3 x tan5 x
Z
= (u2 + u4 ) du = + +C = + + C. 
3 5 3 5
Example 6.19 We use an appropriate substitution to compute the integral
sin3 x
Z
dx.
cos8 x
Since the cosine appears in the denominator, it is better to first simplify and write
sin3 x sin3 x 1
Z Z Z
dx = · dx = tan3 x · sec5 x dx.
cos8 x cos3 x cos5 x
Let us take u = sec x. Since du = sec x tan x dx and also u2 = sec2 x = tan2 x + 1, we get
sin3 x
Z Z Z
dx = tan x · sec x · sec x tan x dx = (u2 − 1) · u4 du
2 4
cos8 x
u7 u5 sec7 x sec5 x
Z
= (u6 − u4 ) du = − +C = − + C. 
7 5 7 5
Techniques of integration 71 Trigonometric substitutions

6.5 Trigonometric substitutions


• Trigonometric substitutions
√ are sometimes
√ needed
√ to simplify integrals that contain
expressions of the form a − x , x − a and x2 + a2 for some a > 0. In each of
2 2 2 2

these cases, one naturally seeks a substitution to simplify the square root.
• The three most common trigonometric substitutions are listed in the table below.
Expression
√ Substitution Simplification

√a − x x = a sin θ √a − x = a cos θ, dx = a cos θ dθ
2 2 2 2

√a + x
2 2 x = a tan θ √a + x = a sec θ,
2 2 dx = a sec2 θ dθ
x 2 − a2 x = a sec θ x2 − a2 = a| tan θ|, dx = a sec θ tan θ dθ

• In the first case, one has a2 − x2 = a2 − a2 sin2 θ = a2 cos2 θ and a2 − x2 = a cos θ.
This is because θ = sin−1 (x/a) lies between −π/2 and π/2, so cos θ is non-negative.
Example 6.20 We use a trigonometric substitution to compute the integral
dx
Z
√ , a > 0.
a2 − x 2
If we let x = a sin θ, then a2 − x2 = a2 − a2 sin2 θ = a2 cos2 θ and also dx = a cos θ dθ, so
dx a cos θ dθ x
Z Z Z
√ = = dθ = θ + C = sin−1 + C. 
a −x
2 2 a cos θ a

Example 6.21 We use a trigonometric substitution to compute the integral


dx
Z
, a > 0.
x + a2
2

If we let x = a tan θ, then x2 + a2 = a2 tan2 θ + a2 = a2 sec2 θ and also dx = a sec2 θ dθ, so


dx a sec2 θ dθ 1 1 1 x
Z Z Z
= = dθ = θ + C = tan−1 + C. 
x +a
2 2 a sec θ
2 2 a a a a

Example 6.22 We use a trigonometric substitution to compute the integral


x2 dx
Z
√ .
4 − x2
If we let x = 2 sin θ, then 4 − x2 = 4 − 4 sin2 θ = 4 cos2 θ and also dx = 2 cos θ dθ, so
x2 dx 4 sin2 θ · 2 cos θ dθ
Z Z Z Z
2
√ = = 4 sin θ dθ = 2 [1 − cos(2θ)] dθ
4 − x2 2 cos θ
= 2θ − sin(2θ) + C = 2θ − 2 sin θ · cos θ + C.
It remains to express this equation in terms of x = 2 sin θ. Since θ = sin−1 x2 , we get
r
x2 dx x x x2 x x√
Z
√ = 2 sin−1 − 2 · · 1 − + C = 2 sin−1 − 4 − x2 + C. 
4 − x2 2 2 4 2 2
Techniques of integration 72 Partial fractions

6.6 Partial fractions


Definition 6.23 – Proper rational function
A proper rational function is a quotient of two polynomials P (x)/Q(x) such that the
degree of the numerator P (x) is smaller than the degree of the denominator Q(x).

Theorem 6.24 – Partial fractions


Suppose that f (x) is a proper rational function whose denominator is the product of
relatively prime polynomials. Then f (x) can be expressed as a sum of proper rational
functions whose denominators are these relatively prime polynomials.

• Two polynomials are relatively prime, if they do not have any common divisor other
than constant factors. For instance, (x + 1)(x − 1) and x2 (x + 3) are relatively prime,
whereas x(x − 1) and x2 (x + 3) have a non-constant factor in common.

Example 6.25 We use partial fractions to compute the integral


x2 + 3x − 4
Z
dx.
(x2 + 1)(x + 1)
According to the last theorem, the integrand can be expressed in the form
x2 + 3x − 4 Ax + B C
= 2 +
(x + 1)(x + 1)
2 x +1 x+1
for some constants A, B, C that need to be determined. Clearing denominators gives

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

and one may look at some suitable choices of x to find that

x = −1, 0, 1 =⇒ −6 = 2C, −4 = B + C, 0 = 2A + 2B + 2C.

Solving these equations, we now get C = −3, B = −1 and A = 4, which means that
x2 + 3x − 4 4x 1 3
Z Z Z Z
dx = dx − dx − dx.
(x + 1)(x + 1)
2 x +1
2 x +1
2 x+1
The two rightmost integrals are rather easy to compute, and so is the integral
4x 2 du
Z Z
dx = = 2 ln |u| + C = 2 ln(x2 + 1) + C,
x +1
2 u
if one substitutes u = x2 + 1. In view of the last two equations, we must thus have
x2 + 3x − 4
Z
dx = 2 ln(x2 + 1) − tan−1 x − 3 ln |x + 1| + C. 
(x2 + 1)(x + 1)
Techniques of integration 73 Partial fractions

Example 6.26 We use partial fractions to compute the integral


Z 3
x + 3x2 + 5
dx.
x(x − 1)
This rational function is not proper because its numerator is cubic and its denominator is
only quadratic. Thus, one needs to first use division of polynomials to write
x3 + 3x2 + 5 x3 + 3x2 + 5 4x + 5
= =x+4+ .
x(x − 1) x −x
2 x(x − 1)
Since the rightmost fraction is proper, one may use partial fractions to express it as
4x + 5 A B
= + =⇒ 4x + 5 = A(x − 1) + Bx.
x(x − 1) x x−1
Setting x = 0 gives 5 = −A and setting x = 1 gives 9 = B. It easily follows that
x3 + 3x2 + 5 A B 5 9
=x+4+ + =x+4− + .
x(x − 1) x x−1 x x−1
Once we now integrate this equation term by term, we may finally conclude that
Z 3
x + 3x2 + 5 x2
dx = + 4x − 5 ln |x| + 9 ln |x − 1| + C. 
x(x − 1) 2

Example 6.27 We use a substitution and partial fractions to compute the integral
Z 5x
e dx
.
e2x − 1
If we take u = ex , then du = ex dx and the given integral takes the form
Z 5x Z 4x x
e dx e · e dx u4 du
Z
= = .
e2x − 1 e2x − 1 u2 − 1
This is not a proper rational function, so one needs to first use division to write
Z 5x Z 4 Z  
e dx u −1+1 2 1
= du = u +1+ 2 du. (6.8)
e2x − 1 u2 − 1 u −1
Let us merely focus on the proper rational function. Using partial fractions, we get
1 A B
= + =⇒ 1 = A(u + 1) + B(u − 1).
u2 − 1 u−1 u+1
When u = 1, this gives 1 = 2A. When u = −1, it gives 1 = −2B. In particular, one has
1 A B 1/2 1/2
u2 + 1 + = u2 + 1 + + = u2 + 1 + −
u2−1 u−1 u+1 u−1 u+1
and each of these terms can be easily integrated. Returning to (6.8), we conclude that
Z 5x
e dx 1 1 1
= u3 + u + ln |u − 1| − ln |u + 1| + C
e −1
2x 3 2 2
1 1 1
= e3x + ex + ln |ex − 1| − ln(ex + 1) + C. 
3 2 2
Chapter 7

Sequences and series

7.1 Convergence of sequences


Definition 7.1 – Convergence of sequences
A sequence is a function that is defined on the set N of natural numbers. Its values are
usually denoted by writing an for each n ∈ N. We say that the sequence {an } converges,
if an approaches a finite limit as n → ∞. Otherwise, we say that {an } diverges.

Definition 7.2 – Monotonicity


A sequence {an } is called monotonic, if it is either increasing, in which case an ≤ an+1
for each n ∈ N, or else decreasing, in which case an ≥ an+1 for each n ∈ N.

Theorem 7.3 – Monotonic and bounded


If a sequence is monotonic and bounded, then the sequence is also convergent.

ˆ When a precise formula for an is known, one may use that formula to compute the
limit of an and prove convergence. However, a precise formula is not always available.
Example 7.4 We show that each of the following sequences converges.
r  n
8n2 + 3 3 + sin n 1
an = , bn = , cn = 1 + .
2n2 + 5 n2 n
Since the limit of a square root is the square root of the limit, it should be clear that
8n2 + 3 8n2 √
lim = lim =4 =⇒ lim an = 4 = 2.
n→∞ 2n2 + 5 n→∞ 2n2 n→∞

The limit of the second sequence is zero because 2/n2 ≤ bn ≤ 4/n2 for each n ≥ 1. This
means that bn is squeezed between two sequences that converge to zero. Finally, one has
 n  
1 1 ln(1 + 1/n)
cn = 1 + =⇒ ln cn = n · ln 1 + = .
n n 1/n

74
Sequences and series 75 Convergence of sequences

This is a limit of the form 0/0, so one may use L’Hôpital’s rule to conclude that
(1 + 1/n)−1 · (1/n)′
lim ln cn = lim =1 =⇒ lim cn = e1 = e. □
n→∞ n→∞ (1/n)′ n→∞

Example 7.5 There are two different ways of checking that an = n/(n + 1) is increasing.
First of all, one may use derivatives. If we define f (x) = x/(x + 1) for each x ≥ 1, then
(x + 1) − x 1
f ′ (x) = 2
= > 0.
(x + 1) (x + 1)2
This makes f (x) increasing for all x ≥ 1 and thus an is increasing for all n ≥ 1. It is also
possible to check this directly. To show that an is increasing, one needs to show that
n n+1
an ≤ an+1 ⇐⇒ ≤ ⇐⇒ n2 + 2n ≤ n2 + 2n + 1.
n+1 n+2
Since the rightmost inequality is obviously true, the leftmost inequality holds as well. □
2n
Example 7.6 We show that an = n!
is decreasing for all n ≥ 1. In this case, we have
2n 2n+1
an ≥ an+1 ⇐⇒ ≥ ⇐⇒ n + 1 ≥ 2.
n! (n + 1)!
Since the rightmost inequality is obviously true, the leftmost inequality holds as well. □

Example 7.7 We find the limit of the sequence {an } which is defined by a1 = 1 and

an+1 = 2an for each n ≥ 1.
To show that this sequence converges, we shall first show that
1 ≤ an ≤ an+1 ≤ 2 for each n ≥ 1. (7.1)

When n = 1, this statement asserts that 1 ≤ 1 ≤ 2 ≤ 2, so it is certainly true. Suppose
that it is true for some n. Multiplying by 2 and taking square roots, we then find that
√ √ p
2 ≤ 2an ≤ 2an+1 ≤ 4 =⇒ 2 ≤ 2an ≤ 2an+1 ≤ 2
=⇒ 1 ≤ an+1 ≤ an+2 ≤ 2.
In particular, the statement holds for n + 1 as well, so it actually holds for all n ∈ N. This
shows that the given sequence is monotonic and bounded, hence also convergent; denote its
limit by L. Using the definition of the sequence, one may then argue that
√ √ √
an+1 = 2an =⇒ lim an+1 = lim 2an =⇒ L = 2L.
n→∞ n→∞

This gives L2 = 2L, so either L = 0 or else L = 2. On the other hand, we must also have
1 ≤ an ≤ 2 =⇒ 1 ≤ lim an ≤ 2 =⇒ 1≤L≤2
n→∞

because of equation (7.1). We conclude that the limit of the sequence is L = 2. □


Sequences and series 76 Convergence of series

7.2 Convergence of series


Definition 7.8 – Partial sums
Given a sequence {an }, we define the sequence of its partial sums {sn } by

s n = a1 + a2 + . . . + an for each n ≥ 1.

Definition 7.9 – Infinite series


Let {an } be a given sequence and let {sn } be the sequence of its partial sums. In the
case that {sn } happens to converge, one may introduce the series

X N
X
an = lim an = lim sN
N →∞ N →∞
n=1 n=1

and we say that the series converges. Otherwise, we say that the series diverges.

Theorem 7.10 – nth term test


If the series ∞
P
n=1 an converges, then its nth term must satisfy limn→∞ an = 0.

Theorem 7.11 – Geometric series


The geometric series ∞ n
P
n=1 x converges if and only if |x| < 1, in which case

∞ ∞
X
n x X 1
x = , xn = .
n=1
1−x n=0
1−x

ˆ There are very few series whose exact value can be determined explicitly. Thus, we
shall mainly worry about the convergence of a series and not its exact value.
ˆ The nth term test implies the divergence of the series ∞
P
n=1 an whenever an fails to
approach zero, but it does not provide any conclusions when an approaches zero.
Example 7.12 In view of the nth term test, each of the following series is divergent.
∞ ∞ ∞ ∞  n
X n X 2n + 1 X
n
X 1
, , (−1) , 1+ . □
n=1
n + 1 n=1
3n + 2 n=1 n=1
n

Example 7.13 We use the formula for a geometric series to compute the sum

X 2n+2
S= 2n+1
.
n=1
3
If we first isolate the part of the exponent that depends on n, then we can simplify to get
∞ ∞  n
4 X 2n 4 X 2 4 2/9 8
S= · 2n
= · = · = . □
3 n=1 3 3 n=1 9 3 1 − 2/9 21
Sequences and series 77 Integral test

7.3 Integral test


Theorem 7.14 – Integral test
Suppose f (x) is continuous, non-negative and Rdecreasing for large x. Then the series
P∞ n
n=1 f (n) converges if and only if the integral 1 f (x) dx is bounded for all n ∈ N.

Theorem 7.15 – Convergence of p-series


The series ∞ 1
P
n=1 np converges when p > 1 and it diverges when p ≤ 1.

ˆ The integral test is not commonly needed, but it is useful for proving Theorem 7.15.

ˆ The p-series ∞
P 1
P∞ n
n=1 np and the geometric series n=1 x are the two most important
series. They can be used to address the convergence of other series by comparison.

Example 7.16 We give the proof of Theorem 7.15. If it happens that p ≤ 0, then the nth
term n−p does not approach zero and thus the series diverges. Suppose now that p > 0.
Since f (x) = x−p is continuous, positive and decreasing for each x > 0, the integral test is
applicable. If we assume that p ̸= 1, then convergence is determined by the integral
Z n Z n  1−p n
−p x n1−p − 1
f (x) dx = x dx = = .
1 1 1−p 1 1−p

When p > 1, the exponent 1 − p is negative, so this expression is bounded for all n and the
series converges. When p < 1, on the other hand, n1−p becomes arbitrarily large and the
series diverges. When p = 1, finally, convergence is determined by the integral
Z n Z n h in
f (x) dx = x−1 dx = ln x = ln n.
1 1 1

Since ln n becomes arbitrarily large, the series diverges when p = 1 as well. □

Example 7.17 We use the integral test to study the convergence of the series

X 1
.
n=1
n2 +1

In this case, f (x) = 1/(x2 + 1) is continuous, positive and decreasing for each x > 0, as a
larger choice of x leads to a larger denominator. Let us then compute the integral
Z n Z n
dx π
f (x) dx = 2
= tan−1 n − tan−1 1 = tan−1 n − .
1 1 x +1 4

In view of the definition of the inverse tangent, one has tan−1 n ≤ π/2 for all n ∈ N. This
means that the integral is bounded for all n ∈ N and that the series converges. □
Sequences and series 78 Comparison tests

7.4 Comparison tests


Theorem 7.18 – Comparison test
Consider two non-negative series ∞
P P∞
n=1 an and n=1 bn which satisfy

an ≤ b nfor all large enough n.

If the series P ∞
P P∞
n=1 b n happens to converge, then the series
P∞n=1 an must also converge.
If the series ∞n=1 na happens to diverge, then the series n=1 bn must also diverge.

Theorem 7.19 – Limit comparison test


Suppose that {an } and {bn } are non-negative for large enough n and that
an
lim = 1. (7.2)
n→∞ bn

P∞ P∞
Then the series n=1 an converges if and only if the series n=1 bn converges.

ˆ The comparison test asserts that any series which is smaller than a convergent series
is convergent and that any series which is bigger than a divergent series is divergent.
ˆ The limit comparison test is actually applicable whenever the limit (7.2) is nonzero.
This test is especially useful when the terms an are given by a rational function.
Example 7.20 As a typical application of the comparison test, one may argue that
∞ ∞ ∞
X 2n X 2n X 2
≤ = .
n=1
n3 + e n n=1
n3
n=1
n 2

Since the rightmost series is a convergent p-series, the leftmost series converges as well. □
Example 7.21 We use the limit comparison test to address the convergence of

X 2n2 + n + 1
.
n=1
n3 + 2

When it comes to large values of n, the numerator behaves like 2n2 and the denominator
behaves like n3 . We thus expect the limit comparison test to be applicable with
2n2 + n + 1 2n2 2
an = , bn = = .
n3 + 2 n3 n
To verify that the condition (7.2) is satisfied, we note that
an 2n2 + n + 1 n 2n3
lim = lim · = lim = 1.
n→∞ bn n→∞ n3 + 2 2 n→∞ 2n3
Since ∞
P P∞
n=1 bn is a divergent p-series, we conclude that n=1 an diverges as well. □
Sequences and series 79 Ratio test

7.5 Ratio test


Theorem 7.22 – Ratio test for non-negative series
Consider a non-negative series ∞
P
n=1 an together with the limit

an+1
L = lim . (7.3)
n→∞ an

If L < 1, then the given series converges. If L > 1, then the given series diverges.

ˆ The ratio test is especially useful when an involves either exponents or factorials.

ˆ The ratio test does not provide any conclusions for the remaining case L = 1.
P∞ n
Example 7.23 Consider the series n=1 2n . In this case, we have

an+1 n + 1 2n n+1 1
L = lim = lim · n+1 = lim = .
n→∞ an n→∞ n 2 n→∞ 2n 2
Since this limit is strictly smaller than 1, the given series converges by the ratio test. □
P∞ en
Example 7.24 Consider the series n=1 n2 . In this case, we have

an+1 en+1 n2 en2


L = lim = lim n · = lim = e.
n→∞ an n→∞ e (n + 1)2 n→∞ n2

Since this limit is strictly larger than 1, the given series diverges by the ratio test. □
P∞ ln n
Example 7.25 Consider the series n=1 en . In this case, we have

an+1 ln(n + 1) en ln(n + 1)


L = lim = lim · n+1 = lim .
n→∞ an n→∞ ln n e n→∞ e ln n
The last limit has the form ∞/∞, so L’Hôpital’s rule is applicable and one finds that

1/(n + 1) n n 1
L = lim = lim = lim = .
n→∞ e/n n→∞ e(n + 1) n→∞ en e

Since this limit is strictly smaller than 1, the given series converges by the ratio test. □
P∞ n·3n
Example 7.26 Consider the series n=1 2n . In this case, we have

an+1 n + 1 3n+1 2n 3(n + 1) 3


L = lim = lim · n · n+1 = lim = .
n→∞ an n→∞ n 3 2 n→∞ 2n 2
Since this limit is strictly larger than 1, the given series diverges by the ratio test. □
Sequences and series 80 Absolute convergence

7.6 Absolute convergence


Definition 7.27 – Absolute convergence
A series ∞
P P∞
n=1 an is called absolutely convergent, if the series n=1 |an | is convergent.

Theorem 7.28 – Absolute convergence implies convergence


If the series ∞
P P∞
n=1 |an | converges, then the series n=1 an converges as well.

Theorem 7.29 – Ratio test for arbitrary series


Consider an arbitrary series ∞
P
n=1 an together with the limit

an+1
L = lim .
n→∞ an

If L < 1, then the given series converges. If L > 1, then the given series diverges.

P∞ n sin n
Example 7.30 To show that the series n=1 n3 +1 converges absolutely, we note that
∞ ∞ ∞ ∞ ∞
X n sin n X n| sin n| X n X n X 1
3
= 3
≤ 3
≤ 3
= .
n=1
n +1 n=1
n +1 n=1
n + 1 n=1 n n=1
n2

Since the rightmost series is a convergent p-series, the leftmost series converges as well. □
P∞ (−1)n n
Example 7.31 Consider the series n=1 2n
. Using the ratio test, we get

an+1 (−1)n+1 n + 1 2n n+1 1


L = lim = lim · · = lim = .
n→∞ an n→∞ (−1)n n 2n+1 n→∞ 2n 2

Since this limit is strictly smaller than 1, the given series converges by the ratio test. □
P∞ (−1)n n
Example 7.32 To show that the series n=1 n4 +3n+1 converges absolutely, we let

n n 1
an = , bn = = 3.
n4 + 3n + 1 n4 n
Note that these terms are comparable for large enough n, as one can easily check that

an n4 n4
lim = lim 4 = lim 4 = 1.
n→∞ bn n→∞ n + 3n + 1 n→∞ n

the limit comparison test is applicable. Since ∞


P
Thus, P n=1 bn is a convergent p-series, the
series ∞ a
n=1 n converges as well and the original series converges absolutely. □
Sequences and series 81 Alternating series test

7.7 Alternating series test


Theorem 7.33 – Alternating series test
Suppose {an } is non-negative
P∞and decreasing for large enough n with limn→∞ an = 0.
n−1
Then the alternating series n=1 (−1) an is convergent.

Example 7.34 According to the last theorem, the following series are all convergent.
∞ ∞ ∞
X (−1)n−1 X (−1)n−1 X (−1)n−1
, , .
n=1
n n=1
n2 n=1
en

This is easy to see because the denominators n, n2 , en are all increasing and they become
arbitrarily large, so the fractions 1/n, 1/n2 , 1/en are all decreasing towards zero. □

Example 7.35 We use the alternating series test to establish the convergence of

X (−1)n−1 n
. (7.4)
n=1
n2 + 1

In this case, it is clear that f (x) = x/(x2 + 1) is positive for all x > 0 and we also have
x x
lim f (x) = lim = lim = 0.
x→∞ x→∞ x2 + 1 x→∞ x2

To check that f (x) is decreasing for large x, one may use the quotient rule to verify that

x2 + 1 − 2x · x 1 − x2
f ′ (x) = = <0
(x2 + 1)2 (x2 + 1)2
for all x > 1. This already implies that the alternating series (7.4) is convergent. □

Example 7.36 We use the alternating series test to establish the convergence of

X (−1)n−1 ln n
. (7.5)
n=1
n

ln x
In this case, the function f (x) = x
is positive for all x > 1 and we also have

ln x 1/x
lim f (x) = lim = lim =0
x→∞ x→∞ x x→∞ 1
by L’Hôpital’s rule. To check that f (x) is decreasing for large x, we note that
1
· x − ln x 1 − ln x
f ′ (x) = x
2
= <0
x x2
for all x > e. Using the last theorem, we conclude that the series (7.5) converges. □
Sequences and series 82 Power series

7.8 Power series


Definition 7.37 – Power series
A power series is a sum of powers of x such as

X
f (x) = a0 + a1 x + a2 x2 + . . . = an x n .
n=0

This expression is only defined for the values of x for which the series converges.

Definition 7.38 – Radius of convergence


If a power series converges when |x| < R and diverges when |x| > R, then we call R the
radius of convergence. This radius could be any positive number or even +∞.

Theorem 7.39 – Differentiation of power series


Every power series may be differentiated term by term. More precisely, suppose that

X ∞
X
n
f (x) = an x , g(x) = nan xn−1 .
n=0 n=0

If f (x) converges when |x| < R, then the same is true for g(x), and f ′ (x) = g(x).

ˆ To determine the radius of convergence, one usually resorts to the ratio test.

ˆ The differentiation of infinite sums is not always justified. Namely, it is not true that

X ∞
X

f (x) = fn (x) =⇒ f (x) = fn′ (x).
n=0 n=0

P∞ xn
Example 7.40 Consider the power series f (x) = n=0 n+1 . In this case, we have

an+1 |x|n+1 n + 1 n+1


L = lim = lim n
· = |x| · lim = |x|.
n→∞ an n→∞ |x| n+2 n→∞ n + 2

In particular, the given power series converges when |x| < 1 and it diverges when |x| > 1, so
its radius of convergence is equal to R = 1. □

Example 7.41 Consider the power series f (x) = ∞ xn


P
n=0 n! . In this case, we have

an+1 |x|n+1 n! |x|


L = lim = lim n
· = lim = 0.
n→∞ an n→∞ |x| (n + 1)! n→∞ n + 1
Since L < 1 for any value of x, the series converges for all x and the radius is R = +∞. □

You might also like