weeks6-10
weeks6-10
weeks6-10
We say that f has a local maximum at x0 , if there is an interval I around x0 such that
(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 .
Example 4.23 We use the second derivative test to find the local minima/maxima of
To find the points at which the first derivative is zero, we note that
The solutions of f ′ (x) = 0 are thus x = 1 and x = −3. When it comes to the former,
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,
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
(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.
Example 4.29 We find the global minimum/maximum values that are attained by
f (x) = x3 − 3x, 0 ≤ x ≤ 2.
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
This means that the minimum value is f (1) = −2 and the maximum value is f (2) = 2.
Consider the function f that is defined by f (x) = xe−x . As one can easily check,
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
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
ex ≥ x + 1 for all x.
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.
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.
A = xy = x(20 − x) = 20x − x2 .
Since A′ (x) = 20−2x, the only points at which the maximum value may occur are the points
x = 0, x = 20, x = 10.
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
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
• 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
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
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
• 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
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
-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
Integration
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
55
Integration 56 Definite integral
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
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
This gives two different values for the same integral, so f is not integrable on [a, b].
Integration 57 Rules of integration
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
• 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
Then F is a function whose derivative is f . In other words, one has F ′ (x) = f (x).
• 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
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
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
(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
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
• 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.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
• 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).
64
Techniques of integration 65 Integration by parts
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
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
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
• 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
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
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
(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.
(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
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
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.
Z Z
= u (1 − 2u + u ) du = (u4 − 2u6 + u8 ) du
4 2 4
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
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
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
• 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.
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.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
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→∞
s n = a1 + a2 + . . . + an for each n ≥ 1.
and we say that the series converges. Otherwise, we say that the series diverges.
∞ ∞
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
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
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
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.
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
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
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
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
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
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
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
This expression is only defined for the values of x for which the series converges.
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
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. □