Comprehensive Engineering Mathematics Guide
Comprehensive Engineering Mathematics Guide
1 Introduction 13
3
4 CONTENTS
6 Vector Products 75
6.1 The Dot Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.2 The Geometric Significance Of The Dot Product . . . . . . . . . . . . . . . 78
6.2.1 The Angle Between Two Vectors . . . . . . . . . . . . . . . . . . . 78
6.2.2 Work And Projections . . . . . . . . . . . . . . . . . . . . . . . . 79
6.2.3 The Dot Product And Distance In Cn . . . . . . . . . . . . . . . . 82
6.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
6.4 The Cross Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
6.4.1 The Box Product . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.5 Proof of the distributive law . . . . . . . . . . . . . . . . . . . . . . . . . 90
6.5.1 Torque . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
6.5.2 Center Of Mass . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6.5.3 Angular Velocity . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.6 Vector Identities And Notation . . . . . . . . . . . . . . . . . . . . . . . . 94
6.7 Planes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
6.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
8 Matrices 129
8.1 Addition And Scalar Multiplication Of Matrices . . . . . . . . . . . . . . . 129
8.2 Multiplication of Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 132
8.3 Linear Transformations and Matrices . . . . . . . . . . . . . . . . . . . . . 135
8.4 Multiplication of Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 136
8.4.1 The Transpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
8.5 Some Examples of Linear Functions on Rn . . . . . . . . . . . . . . . . . 139
8.5.1 Rotations in R2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
8.5.2 Projections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
8.5.3 Rotations About A Particular Vector . . . . . . . . . . . . . . . . . 142
8.6 The Inverse of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
8.6.1 The Identity And Inverses . . . . . . . . . . . . . . . . . . . . . . 144
8.6.2 Finding The Inverse Of A Matrix . . . . . . . . . . . . . . . . . . 145
8.7 MATLAB And Matrix Arithmetic . . . . . . . . . . . . . . . . . . . . . . 151
8.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
18 Optimization 329
18.1 Local Extrema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
18.2 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
18.3 The Second Derivative Test . . . . . . . . . . . . . . . . . . . . . . . . . . 332
18.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
18.5 Lagrange Multipliers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
18.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
18.7 Proof Of The Second Derivative Test∗ . . . . . . . . . . . . . . . . . . . . 345
Introduction
13
14 CHAPTER 1. INTRODUCTION
and doing the applications amounts to using the right software at this point. I think that
understanding why certain things are true needs to be presented and this is the emphasis in
this book. However, really difficult mathematical issues are not included, especially those
things which really need Lebesgue integration and measure theory to understand. Also,
I am emphasizing moment generating functions rather than characteristic functions. I am
emphasizing confidence intervals more than hypothesis testing. It seems to me that this
is easier to understand with less jargon and is sufficient to draw conclusions. It is not a
complete book on mathematical statistics, just an introduction to some of the important
ideas. Not everything is proved in this section because some of the proofs are too long.
However, I am making every effort to at least make it plausible.
Chapter 2
The reader should be familiar with most of the topics in this chapter. However, it is often
the case that set notation is not familiar and so a short discussion of this is included first.
Complex numbers are then considered in somewhat more detail. Many of the applications
of linear algebra and differential equations require the use of complex numbers, so this is
the reason for this introduction.
15
16 CHAPTER 2. ALGEBRA AND NOTATION
consists of the set of real numbers x such that a < x < b and (a, b] indicates the set of
numbers x such that a < x ≤ b. [a, ∞) means the set of all numbers x such that x ≥ a and
(−∞, a] means the set of all real numbers which are less than or equal to a. These sorts
of sets of real numbers are called intervals. The two points a and b are called endpoints
of the interval. Other intervals such as (−∞, b) are defined by analogy to what was just
explained. In general, the curved parenthesis indicates the end point it sits next to is not
included while the square parenthesis indicates this end point is included. The reason that
there will always be a curved parenthesis next to ∞ or −∞ is that these are not real numbers.
Therefore, they cannot be included in any set of real numbers.
A special set which needs to be given a name is the empty set also called the null set,
denoted by 0. / Thus 0/ is defined as the set which has no elements in it. Mathematicians
like to say the empty set is a subset of every set. The reason they say this is that if it were
not so, there would have to exist a set A, such that 0/ has something in it which is not in A.
However, 0/ has nothing in it and so the least intellectual discomfort is achieved by saying
0/ ⊆ A.
If A and B are two sets, A \ B denotes the set of things which are in A but not in B. Thus
A \ B ≡ {x ∈ A : x ∈
/ B} .
3
The solution is x ≤ −1 or x ≥ . In terms of set notation this is denoted by (−∞, −1] ∪
2
3
[ , ∞).
2
Example 2.1.3 Solve the inequality x (x + 2) ≥ −4.
Definition 2.2.1 A set is well ordered if every nonempty subset S, contains a smallest ele-
ment z having the property that z ≤ x for all x ∈ S.
Axiom 2.2.2 Any set of integers larger than a given number is well ordered.
2.2. WELL ORDERING AND INDUCTION 17
N ≡ {1, 2, · · · }
is well ordered.
The above axiom implies the principle of mathematical induction. The symbol Z de-
notes the set of all integers. Note that if a is an integer, then there are no integers between
a and a + 1.
Theorem 2.2.3 (Mathematical induction) A set S ⊆ Z, having the property that a ∈ S and
n + 1 ∈ S whenever n ∈ S contains all integers x ∈ Z such that x ≥ a.
Proof: Let T consist of all integers larger than or equal to a which are not in S. The
theorem will be proved if T = 0. / If T ̸= 0/ then by the well ordering principle, there would
have to exist a smallest element of T, denoted as b. It must be the case that b > a since by
definition, a ∈/ T. Thus b ≥ a + 1, and so b − 1 ≥ a and b − 1 ∈ / S because if b − 1 ∈ S, then
b − 1 + 1 = b ∈ S by the assumed property of S. Therefore, b − 1 ∈ T which contradicts
the choice of b as the smallest element of T. (b − 1 is smaller.) Since a contradiction is
obtained by assuming T ̸= 0, / it must be the case that T = 0/ and this says that every integer
at least as large as a is also in S. ■
Mathematical induction is a very useful device for proving theorems about the integers.
n (n + 1) (2n + 1)
Example 2.2.4 Prove by induction that ∑nk=1 k2 = .
6
▶
By inspection, if n = 1 then the formula is true. The sum yields 1 and so does the
formula on the right. Suppose this formula is valid for some n ≥ 1 where n is an integer.
Then
n+1 n
n (n + 1) (2n + 1)
∑ k2 = ∑ k2 + (n + 1)2 = 6
+ (n + 1)2 .
k=1 k=1
The step going from the first to the second line is based on the assumption that the formula
is true for n. This is called the induction hypothesis. Now simplify the expression in the
second line,
n (n + 1) (2n + 1)
+ (n + 1)2 .
6
This equals
n (2n + 1)
(n + 1) + (n + 1)
6
and
n (2n + 1) 6 (n + 1) + 2n2 + n (n + 2) (2n + 3)
+ (n + 1) = =
6 6 6
Therefore,
n+1
(n + 1) (n + 2) (2n + 3) (n + 1) ((n + 1) + 1) (2 (n + 1) + 1)
∑ k2 = 6
=
6
,
k=1
showing the formula holds for n + 1 whenever it holds for n. This proves the formula by
mathematical induction.
18 CHAPTER 2. ALGEBRA AND NOTATION
1 3 2n − 1 1
Example 2.2.5 Show that for all n ∈ N, · ··· <√ .
2 4 2n 2n + 1
1 1
If n = 1 this reduces to the statement that < √ which is obviously true. Suppose
2 3
then that the inequality holds for n. Then
√
1 3 2n − 1 2n + 1 1 2n + 1 2n + 1
· ··· · <√ = .
2 4 2n 2n + 2 2n + 1 2n + 2 2n + 2
1
The theorem will be proved if this last expression is less than √ . This happens if
2n + 3
and only if
2
1 1 2n + 1
√ = >
2n + 3 2n + 3 (2n + 2)2
which occurs if and only if (2n + 2)2 > (2n + 3) (2n + 1) and this is clearly true which may
be seen from expanding both sides. This proves the inequality.
Lets review the process just used. If S is the set of integers at least as large as 1 for which
the formula holds, the first step was to show 1 ∈ S and then that whenever n ∈ S, it follows
n + 1 ∈ S. Therefore, by the principle of mathematical induction, S contains [1, ∞) ∩ Z,
all positive integers. In doing an inductive proof of this sort, the set S is normally not
mentioned. One just verifies the steps above. First show the thing is true for some a ∈ Z
and then verify that whenever it is true for m it follows it is also true for m + 1. When this
has been done, the theorem has been proved for all m ≥ a.
and
Every non zero complex number a + ib, with a2 + b2 ̸= 0, has a unique multiplicative
inverse.
1 a − ib a b
= 2 2
= 2 2
−i 2 .
a + ib a + b a +b a + b2
You should prove the following theorem.
2.3. THE COMPLEX NUMBERS 19
Theorem 2.3.1 The complex numbers with multiplication and addition defined as above
form a field satisfying all the field axioms. These are the following list of properties.
Something which satisfies these axioms is called a field. In this book, the field of most
interest will be the field of complex numbers or the field of real numbers. You have seen
in earlier courses that the set of real numbers with the usual operations also satisfies the
above axioms. The field of complex numbers is denoted as C and the field of real numbers
is denoted as R. An important construction regarding complex numbers is the complex
conjugate denoted by a horizontal line above the number. It is defined as follows.
a + ib ≡ a − ib.
What it does is reflect a given complex number across the x axis. Algebraically, the follow-
ing formula is easy to obtain.
a + ib (a + ib) = (a − ib) (a + ib)
= a2 + b2 − i (ab − ab) = a2 + b2 .
Observation 2.3.2 The conjugate of a sum of complex numbers equals the sum of the com-
plex conjugates and the conjugate of a product of complex numbers equals the product of
the conjugates. To illustrate, consider the claim about the product.
(a + ib) (c + id) = (ac − bd) + i (bc + ad) = (ac − bd) − i (bc + ad)
a + ib c + id = (a − ib) (c − id) = (ac − bd) − i (bc + ad)
Showing the claim works for a sum is left for you. Of course this means the conclusion
holds for any finite product or finite sum. Indeed, for zk a complex number, the associative
law of multiplication above gives
Now by induction, the first product in the above can be split up into the product of the
conjugates. Similar observations hold for sums.
20 CHAPTER 2. ALGEBRA AND NOTATION
|z| = (zz)1/2 .
Also from the definition, if z = x + iy and w = u + iv are two complex numbers, then
|zw| = |z| |w| . You should verify this. ▶
The triangle inequality holds for the absolute value for complex numbers just as it does
for the ordinary absolute value.
Proposition 2.3.5 Let z, w be complex numbers. Then the triangle inequality holds.
z = z − w + w, w = w − z + z
and so both |z| − |w| and |w| − |z| are no larger than |z − w| and this proves the second
version because ||z| − |w|| is one of |z| − |w| or |w| − |z|. ■
With this definition, it is important to note the following. Be sure to verify this. It is not
too hard but you need to do it.
2.4. POLAR FORM OF COMPLEX NUMBERS 21
q
Remark 2.3.6 : Let z = a + ib and w = c + id. Then |z − w| = (a − c)2 + (b − d)2 . Thus
the distance between the point in the plane determined by the ordered pair (a, b) and the
ordered pair (c, d) equals |z − w| where z and w are as just described.
For example, consider the distance between (2, 5) and (1, 8) . From the distance formula
q √
this distance equals (2 − 1)2 + (5 − 8)2 = 10. On the other hand, letting z = 2 + i5 and
√
w = 1 + i8, z − w = 1 − i3 and so (z − w) (z − w) = (1 − i3) (1 + i3) = 10 so |z − w| = 10,
the same thing obtained with the distance formula.
the complex number is then r (cos θ + i sin θ ) where θ is this angle just
The polar form of p
described and r = x2 + y2 ≡ |z|.
p
r= x2 + y2 r x + iy = r(cos(θ ) + i sin(θ ))
θ
This requires rk = |z| and so r = |z|1/k and also both cos (kα) = cost and sin (kα) = sint.
This can only happen if
kα = t + 2lπ
for l an integer. Thus
t + 2lπ
α= ,l ∈ Z
k
and so the kth roots of z are of the form
1/k t + 2lπ t + 2lπ
|z| cos + i sin , l ∈ Z.
k k
Since the cosine and sine are periodic of period 2π, there are exactly k distinct numbers
which result from this formula. ■
Example 2.5.3 Find the three cube roots of i.
First note that i = 1 cos π2 + i sin π2 . Using the formula in the proof of the above
corollary, the cube roots of i are
(π/2) + 2lπ (π/2) + 2lπ
1 cos + i sin
3 3
where l = 0, 1, 2. Therefore, the roots are
π π 5 5 3 3
cos + i sin , cos π + i sin π , cos π + i sin π .
6 6 6 6 2 2
√ √
3 1 − 3 1
Thus the cube roots of i are +i , +i , and −i.
2 2 2 2
The ability to find kth roots can also be used to factor some polynomials.
2.6. THE QUADRATIC FORMULA 23
First find the cube roots of 27. By the above procedure using De Moivre’s theorem,
√ ! √ !
−1 3 −1 3
these cube roots are 3, 3 +i , and 3 −i . Therefore, x3 − 27 =
2 2 2 2
√ !! √ !!
−1 3 −1 3
(x − 3) x − 3 +i x−3 −i .
2 2 2 2
√ √
Note also x − 3 −1
2 + i 2
3
x − 3 −1
2 − i 2
3
= x2 + 3x + 9 and so
x3 − 27 = (x − 3) x2 + 3x + 9
where the quadratic polynomial x2 +3x +9 cannot be factored without using complex num-
bers.
3
Note that even though√ the polynomial√ x − 27 has all real coefficients, it has some
−1 3 −1 3
complex zeros, +i and −i . These zeros are complex conjugates of each
2 2 2 2
other. It is always this way. You should show this is the case. To see how to do this, see
Problems 17 and 18 below.
Another fact for your information is the fundamental theorem of algebra. This theorem
says that any polynomial of degree at least 1 having any complex coefficients always has
a root in C. This is sometimes referred to by saying C is algebraically complete. Gauss is
usually credited with giving a proof of this theorem in 1797 but many others worked on it
and the first completely correct proof was due to Argand in 1806. For more on this theo-
rem, you can google fundamental theorem of algebra and look at the interesting Wikipedia
article on it. Proofs of this theorem usually involve the use of techniques from calculus
even though it is really a result in algebra. A proof and plausibility explanation is given
later.
Thus the solutions, according to the quadratic formula are still given correctly by the above
formula.
Do these solutions predicted by the quadratic formula continue to solve the quadratic
equation? Yes, they do. You only need to observe that when you square a square root of a
complex number z, you recover z. Thus
√ !2 √ !
−b + b2 − 4ac −b + b2 − 4ac
a +b +c
2a 2a
√ !
−b + b2 − 4ac
1 2 1 1 p 2
=a b − c − 2 b b − 4ac + b +c
2a2 a 2a 2a
1 p
1 p 2
= − b b − 4ac + 2ac − b2 + b b2 − 4ac − b2 + c = 0
2a 2a
√
2
Similar reasoning shows directly that −b− 2ab −4ac also solves the quadratic equation.
What if the coefficients of the quadratic equation are actually complex numbers? Does
the formula hold even in this case? The answer is yes. This is a hint on how to do Problem
27 below, a special case of the fundamental theorem of algebra, and an ingredient in the
proof of some versions of this theorem.
r (cos θ + i sin θ )
where r ≥ 0. Laying aside the zero complex number, this shows that every non zero com-
plex number is of the form eα (cos β + i sin β ) . We write this in the form eα+iβ . Having
done so, does it follow that the expression preserves the most important property of the
function t → e(α+iβ )t for t real, that
′
e(α+iβ )t = (α + iβ ) e(α+iβ )t ?
By the definition just given which does not contradict the usual definition in case β = 0 and
the usual rules of differentiation in calculus,
′ ′
e(α+iβ )t = eαt (cos (βt) + i sin (βt))
= eαt [α (cos (βt) + i sin (βt)) + (−β sin (βt) + iβ cos (βt))]
2.8. DIVIDING POLYNOMIALS 25
= eαt [α (cos (βt) + i sin (βt)) + (−β sin (βt) + iβ cos (βt))]
which is the same thing. This is of fundamental importance in differential equations. It
shows that there is no change in going from real to complex numbers for ω in the consid-
eration of the problem y′ = ωy, y (0) = 1. The solution is always eωt . The formula just
discussed, that
eα (cos β + i sin β ) = eα+iβ
is Euler’s formula.
Note that the degree of the zero polynomial is not defined in the above. The following
is called the division algorithm.
r (λ ) = f (λ ) − q (λ ) g (λ )
and the degree of r (λ ) is m ≥ n where n is the degree of g (λ ). Say the leading term of
r (λ ) is bλ m while the leading term of g (λ ) is b̂λ n . Then letting a = b/b̂ , aλ m−n g (λ ) has
the same leading term as r (λ ). Thus the degree of r1 (λ ) ≡ r (λ ) − aλ m−n g (λ ) is no more
than m − 1. Then
q1 (λ )
z }| {
r1 (λ ) = f (λ ) − q (λ ) g (λ ) + aλ m−n g (λ ) = f (λ ) − q (λ ) + aλ m−n g (λ )
26 CHAPTER 2. ALGEBRA AND NOTATION
To begin with, here is the informal explanation. Dividing by the leading coefficient an ,
there is no loss of generality in assuming that the polynomial is of the form
Thus you need to have both the real and imaginary parts equal to 0. In other words, you
need to have
r3 cos3 t − 3r3 cost sin2 t + r cost + 1, 3r3 cos2 t sint − r3 sin3 t + r sint + 1 = (0, 0)
for some value of r and t. First here is a graph of this parametric function of t for t ∈ [0, 2π]
on the left, when r = 4. Note how the graph misses the origin 0 + i0. In fact, the closed
curve surrounds a small circle which has the point 0 + i0 on its inside.
r too big r too small r just right
50 2 4
2
y 0 y 0 y
0
-50 -2 -2
-50 0 50 -2 0 2 -4 -2 0 2 4 6
x x x
Next is the graph when r = .5. Note how the closed curve is included in a circle which
has 0 + i0 on its outside. As you shrink r you get closed curves. At first, these closed
curves enclose 0 + i0 and later, they exclude 0 + i0. Thus one of them should pass through
this point. In fact, consider the curve which results when r = 1. 386 which is the graph on
the right. Note how for this value of r the curve passes through the point 0 + i0. Thus for
some t, 1.3862 (cost + i sint) is a solution of the equation p (z) = 0.
Now here is a rigorous proof for those who have studied analysis.
Proof. Suppose the nonconstant polynomial p (z) = a0 + a1 z + · · · + an zn , an ̸= 0, has
no zero in C. Since lim|z|→∞ |p (z)| = ∞, there is a z0 with
|p (z0 )| = min |p (z)| > 0
z∈C
p(z+z0 )
Then let q (z) = p(z0 ) . This is also a polynomial which has no zeros and the minimum of
|q (z)| is 1 and occurs at z = 0. Since q (0) = 1, it follows q (z) = 1 + ak zk + r (z) where r (z)
consists of higher order terms. Here ak is the first coefficient which is nonzero. Choose a
sequence, zn → 0, such that ak zkn < 0. For example, let −ak zkn = (1/n). Then
for all n large enough because |r (zn )| is small compared with ak zkn since |r (zn )| involves
only higher order terms and ak zkn < 0. This is a contradiction. ■
28 CHAPTER 2. ALGEBRA AND NOTATION
2.10 Exercises
1 1 1
1. Prove by induction that ∑nk=1 k3 = n4 + n3 + n2 .
4 2 4
1 √
2. Prove by induction that whenever n ≥ 2, ∑nk=1 √ > n.
k
3. Prove by induction that 1 + ∑ni=1 i (i!) = (n + 1)!.
4. The binomial theorem states (x + y)n = ∑nk=0 nk xn−k yk where
n+1 n n n n
= + if k ∈ [1, n] , ≡1≡
k k k−1 0 n
Prove the binomial theorem by induction. Next show that
n n!
= , 0! ≡ 1
k (n − k)!k!
▶
5. Let z = 5 + i9. Find z−1 .
6. Let z = 2 + i7 and let w = 3 − i8. Find zw, z + w, z2 , and w/z.
7. Give the complete solution to x4 + 16 = 0.
8. Graph the complex cube roots of 8 in the complex plane. Do the same for the four
fourth roots of 16. ▶
9. If z is a complex number, show there exists ω a complex number with |ω| = 1 and
ωz = |z| .
10. De Moivre’s theorem says [r (cost + i sint)]n = rn (cos nt + i sin nt) for n a positive
integer. Does this formula continue to hold for all integers n, even negative integers?
Explain. ▶
11. You already know formulas for cos (x + y) and sin (x + y) and these were used to
prove De Moivre’s theorem. Now using De Moivre’s theorem, derive a formula for
sin (5x) and one for cos (5x). ▶
12. If z and w are two complex numbers and the polar form of z involves the angle θ
while the polar form of w involves the angle φ , show that in the polar form for zw
the angle involved is θ + φ . Also, show that in the polar form of a complex number
z, r = |z| .
13. Factor x3 + 8 as a product of linear factors.
14. Write x3 + 27 in the form (x + 3) x2 + ax + b where x2 + ax + b cannot be factored
17. If z, w are complex numbers prove zw = zw and then show by induction that ∏nj=1 z j =
∏nj=1 z j . Also verify that ∑m m
k=1 zk = ∑k=1 zk . In words this says the conjugate of a
product equals the product of the conjugates and the conjugate of a sum equals the
sum of the conjugates.
18. Suppose p (x) = an xn + an−1 xn−1 + · · · + a1 x + a0 where all the ak are real numbers.
Suppose also that p (z) = 0 for some z ∈ C. Show it follows that p (z) = 0 also.
19. Show that 1 + i, 2 + i are the only two zeros to
so the zeros do not necessarily come in conjugate pairs if the coefficients are not real.
20. I claim that 1 = −1. Here is why.
√ √ q √
−1 = i2 = −1 −1 = (−1)2 = 1 = 1.
This is clearly a remarkable result but is there something wrong with it? If so, what
is wrong?
21. De Moivre’s theorem is really a grand thing. I plan to use it now for rational expo-
nents, not just integers.
z1 , z2 , · · · , zn
p (x) = an (x − z1 ) (x − z2 ) · · · (x − zn ) .
25. Give the solutions to the following quadratic equations having real coefficients.
(a) x2 − 2x + 2 = 0
(b) 3x2 + x + 3 = 0
(c) x2 − 6x + 13 = 0
30 CHAPTER 2. ALGEBRA AND NOTATION
(d) x2 + 4x + 9 = 0
(e) 4x2 + 4x + 5 = 0
26. Give the solutions to the following quadratic equations having complex coefficients.
Note how the solutions do not come in conjugate pairs as they do when the equation
has real coefficients.
(a) x2 + 2x + 1 + i = 0
(b) 4x2 + 4ix − 5 = 0
(c) 4x2 + (4 + 4i) x + 1 + 2i = 0
(d) x2 − 4ix − 5 = 0
(e) 3x2 + (1 − i) x + 3i = 0
27. Prove the fundamental theorem of algebra for quadratic polynomials having coef-
ficients in C. That is, show that an equation of the form ax2 + bx + c = 0 where
a, b, c are complex numbers, a ̸= 0 has a complex solution. Hint: Consider the fact,
noted earlier that the expressions given from the quadratic formula do in fact serve
as solutions.
Chapter 3
One cannot very well study integrals of functions of many variables without some knowl-
edge of integrals of one variable.
I assume the reader is familiar with the usual techniques for finding antiderivatives
and integrals such as partial fractions, integration by parts and integration by substitution.
These topics are usually done very well in beginning calculus courses so I am not giving
lots of exercises and examples related to formal symbol pushing techniques. However, the
typical calculus book does not even give a complete explanation of why the integral of a
continuous function exists.
I do not wish this book to be based on the kind of thing encountered in religion where
we are asked to choose to believe without any good reason for doing so or even a very
coherent description of what we are to believe. I do not wish to disparage religion since I
am a religious man myself who chooses to believe many things with no solid evidence, even
in the presence of obvious contradictions and patent absurdities, but math should not be this
way. Nor should it in any way resemble magic. This is why I am attempting to give rational
explanations. Sometimes these may fall flat, but at least I am giving it a try which is more
than can be said of the typical undergraduate presentation of courses related to calculus. If
you don’t even understand why the integral exists, then what is the meaning of everything
dependent on the integral? These things become nothing more than meaningless ritual and
speculation (religion). This short chapter is on the fundamental questions related to the
integral which are usually not discussed in undergraduate calculus. For a more complete
treatment of Riemann integration which includes what is here, see my book on calculus of
functions of one and many variable or the single variable advanced calculus book for a lot
more.
The fundamental issues depend not on techniques of integration or some stupid geo-
metric reasoning but on completeness of R.
31
32 CHAPTER 3. INTEGRALS, FUNCTIONS OF ONE VARIABLE
The words mean exactly what they say. sup (S) is a number with the property that
s ≤ sup (S) for all s ∈ S and out of all such “upper bounds” it is the smallest. inf (S) has the
property that inf (S) ≤ s for all s ∈ S and if l ≤ s for all s ∈ S, then l ≤ inf (S) . In words,
it is the largest lower bound and sup (S) is the smallest upper bound. Here the meaning of
small and large are as follows. To say that x is smaller than y means that x ≤ y which also
says that y is larger than x.
A consequence of this axiom is the nested interval lemma, Lemma 3.0.2.
Ik ⊇ Ik+1 .
lim bk − ak = 0
k→∞
Consequently, letting k ≤ l,
al ≤ al ≤ bl ≤ bk . (3.2)
Thus n o n o
c ≡ sup al : l = 1, 2, · · · = sup al : l = k, k + 1, · · · ≤ bk
because bk is an upper bound for all the al. Thenc ≥ al for all l. In other words x ≥ ak for
all k. Also c ≤ bk for all k. Therefore, c ∈ ak , bk for all k.
If the length of these intervals converges to 0, then there can be at most one point in
their intersection since otherwise, you would have two different points c, d and the length
of the kth interval would then be at least as large as |d − c| but both of these points would
need to be in intervals having smaller length than this which can’t happen. ■
Corollary 3.0.4 If f : [a, b] → R is continuous, then there exists xM ∈ [a, b] such that
Proof: From the definition of inf { f (x) : x ∈ [a, b]} , there exists xn ∈ [a, b] such that
That is, limn→∞ f (xn ) = inf { f (x) : x ∈ [a, b]} . This is called a minimizing sequence. There-
fore, there is a subsequence xnk which converges to x ∈ [a, b] . By continuity of f it
follows that
inf { f (x) : x ∈ [a, b]} = lim f xnk = f (x)
k→∞
The case where f achieves its maximum is similar. You just use a maximizing sequence.
■
Proof: The Cauchy sequence is contained in some closed interval [a, b]. This is be-
cause, letting ε = 1, it follows that there exists N such that if m, n ≥ N, then |xn − xm | < 1. In
particular, for all n ≥ N, |xn − xN | < 1. Therefore, |xn | ≤ max {|xN | + 1, |x1 | , |x2 | , · · · , |xN |}
for
all n. By Corollary 3.0.3, there is a subsequence of the Cauchy sequence, denoted as
xnk which converges to some x ∈ [a, b]. Since the original sequence is a Cauchy se-
quence, letting ε > 0 be given, there is N such that if k, l ≥ N, then |xk − xl | < ε/2 and
xnk − x < ε/2. Thus if m ≥ N, then
ε ε
|x − xm | ≤ |x − xnm | + |xnm − xm | < + =ε
2 2
Indeed, if m ≥ N, then nm ≥ N because {xnm }∞ m=1 is a subsequence. Thus the original
Cauchy sequence converges to x. ■
Actually, the convergence of every Cauchy sequence is equivalent to completeness and
so it gives another way of defining completeness in contexts where no order is available.
Recall completeness means that every nonempty set bounded above (below) has a least
upper bound (greatest lower bound). More consideration of this issue is a good topic for
advanced calculus courses. This standard definition involving least upper bounds depends
on an order. One can prove that if you have the least upper bound property described in the
above definition, then you also have the greatest lower bound property also described there
and the other way around.
The Riemann integral pertains to bounded functions which are defined on a bounded
interval. Let [a, b] be a closed interval. A set of points in [a, b], {x0 , · · · , xn } is a partition if
sup { f (x) : x ∈ [a, b]} < ∞, inf { f (x) : x ∈ [a, b]} > −∞
where yi ∈ [xi−1 , xi ]. Then there are really many different Riemann sums corresponding to
a given partition, depending on which yi is chosen.
For example, suppose f is a function with positive values. The above Riemann sum
involves adding areas of rectangles. Here is a picture:
The area under the curve is close to the sum of the areas of these rectangles and one
would imagine that this would become an increasingly good approximation if you included
more and narrower rectangles.
∑ f −I <ε
P
This is written as
lim
∥P∥→0 P
∑f =I
and when this number exists, it is denoted by
Z b
I= f (x) dx
a
One of the big theorems is on the existence of the integral whenever f is a continuous
function. This requires a technical lemma which follows.
Lemma 3.0.8 Let f : [a, b] → R be continuous. Then for every ε > 0 there exists a δ > 0
such that if |x − y| < δ , x, y ∈ [a, b] , it follows that | f (x) − f (y)| < ε.
35
Proof: If not, then there exists ε > 0 and xn , yn , |xn − yn | < 1/n but
| f (xn ) − f (yn )| ≥ ε.
By Corollary 3.0.3, there is a subsequence xnk and point x ∈ [a, b] such that limk→∞ xnk =
x. Then it follows that also limk→∞ ynk = x also because
and both of the terms on the right converge to 0. But then by continuity of f ,
0 = f (x) − f (x) = lim f xnk − f ynk
k→∞
which is impossible because f xnk − f ynk ≥ ε for all k. ■
With this preparation, here is the major result on the existence of the integral of a
continuous function.
Theorem 3.0.9 Let f : [a, b] → R be continuous. Then ab f (x) dx exists. In fact, there
R
exists a sequence δ m converging to 0 such that if ∥P∥ < δ m , and if ∑P f is a Riemann sum
for P, then
Z b
2
∑ f − f dx < (b − a)
P a m
1
δ m is defined to be such that if |x − y| < δ m , then | f (x) − f (y)| < m and the sequence is
decreasing.
Proof: Consider a partition P given by a = x0 < x1 < · · · < xn = b. Then you could add
in another point as follows:
In fact, you could continue adding in points and doing the same trick and thereby write the
original sum in terms of any partition containing P. If R is a partition containing P and if
δ m corresponds to ε = 1/m in the above Lemma with · · · > δ m > δ m+1 · · · 3.0.8, then one
can conclude that if ∥P∥ < δ m , then
1
∑ f −∑ f ≤
m
(b − a)
P R
36 CHAPTER 3. INTEGRALS, FUNCTIONS OF ONE VARIABLE
∑ f −∑ f ≤ ∑ f −∑ f + ∑ f −∑ f
P Q P R R Q
1 1 2
≤ (b − a) + (b − a) = (b − a)
m m m
Let M ≥ max {| f (x)| : x ∈ [a, b]} . Then all Riemann sums are in the interval
[−M (b − a) , M (b − a)]
Now let ( )
Sn ≡ ∑ f : ∥P∥ < δ n
P
Then Sn ⊇ Sn+1 for all n thanks to the fact that the δ n are decreasing. Let
These are nested intervals contained in [−M (b − a) , M (b − a)] and so there exists I con-
tained in them all. However, from the above computation,
2
sup (Sn ) − inf (Sn ) ≤ (b − a)
n
and so there is only one such I. Hence for any ε > 0 given, there exists δ > 0 such that if
∥P∥ < δ , then
∑ f −I <ε ■
S
This has no Riemann integral because you can pick a sequence of partitions Pn , such that
∥Pn ∥ < 1/n and each partition point is rational. Then for your Riemann sums, take the
value of the function at the left end point. The resulting Riemann sum will always equal 1.
But you could just as easily pick your point yi in the Riemann sum to equal an irrational
number and these Riemann sums will all equal 0. Therefore, the condition for integrability
is violated for ε = 1/4.
If you can partition the interval [a, b] into finitely many intervals [zi−1 , zi ], such that a
function f is continuous on each [zi−1 , zi ] , then the function will be integrable on [a, b].
This is roughly the claim of the next theorem.
Proof: Let Pi be a partition for [zi−1 , zi ] . Since there are only finitely many of these
intervals, there exists δ > 0 such that if ∥Pi ∥ < δ , then for each i,
Z zi
∑ gi − zi−1
gi dt < ε
Pi
Let M f be an upper bound for | f | on [a, b], Mg an upper bound for all |gi |. Now let ∥P∥ <
δ < ε where P is a partition of [a, b] , these points denoted as x j . Let P̂i be those points of
P which are in (zi−1 , zi ] and let Pi consist of P̂i along with zi−1 and zi . Thus ∥Pi ∥ < δ . Then
for yi ∈ [xi−1 , xi ] ,
n Z zi n Z zi
∑ gi dt − ∑ f ≤ ∑ gi dt − ∑ f (y j ) x j − x j−1
i=1 zi−1 P i=1 zi−1
x j ∈P̂i
Now for x j ∈ P̂i , f (y j ) = gi (y j ) except maybe at end points where these differ by no more
than 2 M f + Mg ≡ 2M. Thus the above is no more than
n Z zi n
≤ ∑ gi dt − ∑ gi (y j ) x j − x j−1 + ∑ 4 M f + Mg δ
i=1 zi−1 x j ∈Pi i=1
This is easy to see because such linearity holds for sums. Thus
Z b
(α f + β g) dx ≡ lim ∑α f +βg
a ∥P∥→0 P
Z b Z b
= lim α ∑ f + β ∑ g = α f dx + β gdx
∥P∥→0 P P a a
I leave the details to you. Actually, this works under the assumption that f , g are Riemann
integrable but in this case, you have to show that a linear combination of Riemann inte-
grable functions is Riemann integrable. This is not hard but I don’t want to waste time on
it.
The above is the Riemann integral. There is another integral which can be proved to be
equivalent to the above. It is called the Darboux integral.
38 CHAPTER 3. INTEGRALS, FUNCTIONS OF ONE VARIABLE
for f a bounded function. Then the upper sum and lower sum are respectively
n
U ( f , P) ≡ ∑ Mi (xi − xi−1 ) ,
i=1
n
L ( f , P) ≡ ∑ mi (xi − xi−1 )
i=1
Note that I and I are well defined real numbers and this definition of an integral really
says that there is a unique number between all the upper sums and lower sums. If f is
Riemann integrable, then it is not hard to see it is Darboux integrable. Indeed, from the
definition, there exists P such that whenever you have a Riemann sum for P,
Z b
f dx − ∑ f < ε
a P
Thus, since ε is arbitrary, there can’t be more than one number between all the upper
and lower sums and this number must be the Riemann integral. One can also show that
every lower sum is no larger than every upper sum, even if taken with respect to different
partitions. In this book, we are mainly interested in piecewise continuous functions and
so once you know these are Riemann integrable, it follows automatically that they are
Darboux integrable. It can be shown that the two definitions are equivalent, but this is not
needed in this book. I think it is a little more convenient to use the Darboux approach when
dealing with the theory of the integral of a function of many variables which is done in the
appendix. Either integral handles the functions of most interest and gives the same answer
for these. However, both of these integrals have been obsolete for over a hundred years.
Theorem 3.1.1 Suppose F ′ (x) = f (x) where f is a continuous function on [a, b] . Then
Z b
f (x) dx = F (b) − F (a) (3.5)
a
Proof: Let ε > 0 be given and let P be a partition a = x0 < x1 < · · · < xn = b such that
whenever ŷi ∈ [xi−1 , xi ] ,
Z b n
f (x) dx − ∑ f (ŷi ) (xi − xi−1 ) < ε (3.6)
a i=1
Then from the mean value theorem, there exists yi ∈ (xi−1 , xi ) such that
n
F (b) − F (a) = ∑ (F (xi ) − F (xi−1 ))
i=1
n n
= ∑ F ′ (yi ) (xi − xi−1 ) = ∑ f (yi ) (xi − xi−1 )
i=1 i=1
Let ŷi in 3.6 be equal to yi just described. Then with the above, this shows that
Z b
f (x) dx − (F (b) − F (a)) < ε
a
Note that cos (t) = sin′ (t) and so the above integral is sin (2) − sin (0) = sin (2).
Rb
Example 3.1.3 Find a αdx.
Definition 3.1.4 Let [a, b] be an interval and let f be piecewise continuous on [a, b] or
more generally Riemann integrable on this interval. Then
Z a Z b
f (t) dt ≡ − f (t) dt
b a
Rb
Observation 3.1.5 With the above definition, a dx is linear satisfying
Z b Z b Z b
(α f + β g) dx = α f dx + β gdx
a a a
Rb
if a < b or b < a. Also a αdx = αb − αa if a < b or b < a.
40 CHAPTER 3. INTEGRALS, FUNCTIONS OF ONE VARIABLE
Note that this definition must hold if we want to continue to use Theorem 3.1.1. With
this definition, one can give a convenient theorem. It holds for general Riemann integrable
functions. However, I am stating it only for the case of most interest, piecewise continuous
ones because I am basing the argument on Corollary 3.0.11. As noted, this corollary will
end up holding in greater generality with very little change in the proof.
Theorem 3.1.6 Suppose a, b, c are all points in some interval on which f is piecewise
continuous. Then Z b Z c Z c
f (t) dt + f (t) dt = f (t) dt (3.7)
a b a
Proof: case 1: a < b < c In this case, 3.7 follows from Corollary 3.0.11.
case 2: a < c < b In this case, Corollary 3.0.11 implies
Z c Z b Z b
f (x) dx + f (x) dx = f (x) dx
a c a
and so
Z c Z b Z b
f (x) dx = f (x) dx − f (x) dx
a a c
Z b Z c
= f (x) dx + f (x) dx
a b
so
Z a Z b Z c
f (x) dx + f (x) dx + f (x) dx = 0
c a b
Z b Z c Z c
f (x) dx + f (x) dx = f (x) dx
a b a
Proof: I will give the proof for almost the only case of interest in this book, piecewise
continuous. If f is piecewise continuous, then so is | f |. Hence there is no problem with ex-
istence of the integral. Suppose first that a > b. Then, since | f | − f , | f | + f are nonnegative
functions, all Riemann sums are nonnegative and so their limit is also nonnegative. Hence
Z a Z a Z a
0 ≤ (| f (x)| − f (x)) dx = | f (x)| dx − f (x) dx
Zb a Zb a Zb a
0 ≤ (| f (x)| + f (x)) dx = | f (x)| dx + f (x) dx
b b b
3.1. PROPERTIES OF THE INTEGRAL 41
and so
Z a Z a Z b
f (x) dx ≤ | f (x)| dx = | f (x)| dx
b b a
Z a Z a Z b
− f (x) dx ≤ | f (x)| dx = | f (x)| dx
b b a
The argument is the same in case a < b except you work with ab rather than ba . ■
R R
With these basic properties of the integral, here is the other form of the fundamental
theorem of calculus. This major theorem, due to Newton and Leibniz shows the existence
of an “anti-derivative” for any continuous function.
Theorem 3.1.8 Let f be continuous on [a, b]. Also let
Z t
F (t) ≡ f (x) dx
a
Corollary 3.1.9 For F (t) defined as above, it is also true that F ′ (a) = f (a) and F ′ (b) =
f (b) provided the derivatives are taken respectively from the right and from the left.
Proof: You repeat the above argument paying attention to the sign of h. Otherwise
there is no change. ■
Definition 3.1.10 When F ′ (t) = f (t) for t on some interval, the function
R
t → F (t) is
R
called
an anti-derivative for f . The set of all anti-derivatives is denoted as f dx. Thus f dx is
a collection of functions, not a number, while ab f (x) dx is a number.
R
R
Proposition 3.1.11 Suppose F, G ∈ f dx for x in some interval. Then there exists a con-
stant C such that F (x) +C = G (x).
Proof: It comes from the mean value theorem. By assumption (G − F)′ = 0 and so if
x0 is a fixed point in the interval, then if x is another point, (G − F) (x) − (G − F) (x0 ) =
(G − F)′ (z) (x − x0 ) for some z between x and x0 . But by assumption, (G − F)′ (z) = 0 and
so (G − F) (x) must equal (G − F) (x0 ) for all x in the interval. Let C = (G − F) (x0 ) . ■
You should verify this is the case. This limit function is not continuous. Indeed, it has a
jump at x = 1. Here are graphs of the first few of these functions.
y
x
If you want the convergence to carry continuity with it you need something more than
pointwise convergence.
The dotted lines define sort of a tube centered about the graph of f and the graph of the
function fn fits in this tube for all n sufficiently large. The tube can be made as narrow as
desired.
It is convenient to observe the following properties of ∥·∥∞ , written ∥·∥ for short.
For α a number,
∥α f ∥ = |α| ∥ f ∥ (3.9)
∥ f + g∥ ≤ ∥ f ∥ + ∥g∥ (3.10)
Proof: The first claim 3.8 is obvious. As to 3.9, it follows fairly easily.
Therefore,
sup | f (x) + g (x)| ≡ ∥ f + g∥ ≤ ∥ f ∥ + ∥g∥ ■
x∈D
Proof: Let ε > 0 be given and let x ∈ D. Let n be such that ∥ fn − f ∥ < ε3 . By continuity
of fn there exists δ > 0 such that if |y − x| < δ , then | fn (y) − fn (x)| < ε3 . Then for such y,
Definition 3.2.4 Let { fn } be a sequence of continuous functions defined on [a, b]. It is said
to be uniformly Cauchy if for every ε > 0 there exists nε such that if m, k > nε
∥ fm − fk ∥ < ε
Proof: The hypothesis implies that { fn (x)} is a Cauchy sequence in R for each x. By
completeness of R, this sequence converges for each x. Let f (x) ≡ limn→∞ fn (x). Then by
continuity of y → |y − fn (x)| , for each x,
if n is large enough. this says limn→∞ ∥ fn − f ∥ = 0. Now the continuity of f follows from
Theorem 3.2.3. How many such functions f are there? There can be only one because f (x)
must equal the limit of fn (x). ■
Theorem 3.3.1 Let fn be continuous and converging uniformly to f on [a, b]. Then it
follows f is also continuous and
Z b Z b
f dx = lim fn dx
a n→∞ a
Proof: RThe uniform convergence implies f is also continuous. See Theorem 3.2.3.
Therefore, ab f dx exists. Using the triangle inequality and definition of ∥·∥ described ear-
lier in conjunction with this theorem,
Z b Z b Z b
f (x) dx − fn (x) dx = ( f (x) − fn (x)) dx
a a a
Z b Z b
≤ | f (x) − fn (x)| dx ≤ ∥ f − fn ∥ dx
a a
≤ ∥ f − fn ∥ (b − a)
increase. Thus limδ →0+ δ1 e−t t α−1 dt either is +∞ or it will converge to the least upper
R
45
46 CHAPTER 4. SOME IMPORTANT IMPROPER INTEGRALS
so the limit of these integrals exists. Also e−t t α−1 ≤ Ce−(t/2) for suitable C if t > 1. This
is obvious if α − 1 < 0 and in the other case it is also clear because exponential growth
exceeds polynomial growth. Thus
Z R Z R
e−t t α−1 dt ≤ Ce−(t/2) dt ≤ 2Ce(−1/2) − 2Ce(−R/2) ≤ 2Ce(−1/2)
1 1
Thus these integrals also converge as R → ∞. It follows that Γ (α) makes sense. ■
This gamma function has some fundamental properties described in the following propo-
sition. In case the improper integral exists, we can obviously compute it in the form
Z 1/δ
lim f (t) dt
δ →0+ δ
which is used in what follows. Thus also the usual algebraic properties of the Riemann
integral are inherited by the improper integral.
Z δ −1
!
−δ α −(δ −1 ) −α −t α−1
= lim e δ −e δ +α e t dt = αΓ (α)
δ →0 δ
Now it is defined that 0! = 1 and so Γ (1) = 0!. Suppose that Γ (n + 1) = n!, what of
Γ (n + 2)? Is it (n + 1)!? if so, then by induction, the proposition is established. From
what was just shown,
Γ (n + 2) = Γ (n + 1) (n + 1) = n! (n + 1) = (n + 1)!
Definition 4.1.4 A function φ has exponential growth on [0, ∞) if there are positive con-
stants λ ,C such that |φ (t)| ≤ Ceλt for all t.
Theorem 4.1.5 Let f (s) = 0∞ e−st φ (t) dt where t → φ (t) e−st is improper Riemann in-
R
tegrable for all s large enough and φ has exponential growth. Then for s large enough,
f (k) (s) exists and equals 0∞ (−t)k e−st φ (t) dt.
R
e−ht − 1
Z ∞ Z ∞
k −st
= (−t) e φ (t) dt = (−t)k e−st (−t) eθ (h,t) φ (t) dt
0 h 0
where θ (h,t) is between −ht and 0, this by the mean value theorem. Thus by mean value
theorem again,
f (k) (s + h) − f (k) (s)
Z ∞
− (−t)k+1 e−st φ (t) dt
h 0
Z ∞ Z ∞
≤ |t|k+1 Ceλt e−st eθ (h,t) − 1 dt ≤ t k+1Ceλt e−st eα(h,t) |ht| dt
0 0
Z ∞ Z ∞
≤ t k+2Ceλt e−st |h| et|h| dt = C |h| t k+2 e−(s−(λ +|h|))t dt
0 0
Let u = (s − (λ + |h|))t, du = (s − (λ + |h|)) dt. Then the above equals
Z ∞ k+2
u 1
C |h| e−u du
0 s − (λ + |h|) (s − (λ + |h|))
C |h| C |h|
Z ∞
= k+3
e−u uk+2 du = Γ (k + 3)
(s − (λ + |h|)) 0 (s − (λ + |h|))k+3
Thus, as h → 0, this converges to 0 and so this proves the theorem. ■
The function s → f (s) in the above theorem is called the Laplace transform of φ .
Definition 4.2.1 We say that a function defined on [0, ∞) has exponential growth if for some
λ ≥ 0, and C > 0,
| f (t)| ≤ Ceλt
Note that this condition is satisfied if | f (t)| ≤ a + beλt . You simply pick C > max (a, b)
and observe that a + beλt ≤ 2Ceλt .
Proposition 4.2.2 Let f have exponential growth and be continuous except for finitely
many points in [0, R] for each R. Then
Z R
lim f (t) e−st dt ≡ L f (s)
R→∞ 0
exists for every s > λ where | f (t)| ≤ eλt . That limit is denoted as
Z ∞
f (t) e−st dt.
0
48 CHAPTER 4. SOME IMPORTANT IMPROPER INTEGRALS
The elementary
nR computationsoare left to the reader. Then this converges to 0 as Rm → ∞. It
∞
Rn −st
follows that 0 f (t) e dt is a Cauchy sequence and so it converges to I ∈ R. The
n=1
above computation shows that if R̂n also converges to ∞ as n → ∞, then
Z Rn Z R̂n
lim f (t) e−st = lim f (t) e−st
n→∞ 0 n→∞ 0
and so the limit does indeed exist and this is the definition of the following improper integral
(t) e−ts dt. ■
R∞
0 f
Certain properties are obvious. For example,
1. If a, b scalars and if g, f have exponential growth, then for all s large enough,
L (a f + bg) (s) = aL ( f ) (s) + bL (g) (s)
2. If f ′ (t) exists and has exponential growth, and so does f (t) then for s large enough,
L f ′ (s) = − f (0) + sL ( f ) (s)
One can also compute Laplace transforms of many standard functions without much
difficulty. That which is most certainly not obvious is the following major theorem. This
is the thing which is omitted from virtually all ordinary differential equations books, and
it is this very thing which justifies the use of Laplace transforms. Without it or something
like it, the whole method is nonsense. I am following [37]. This theorem says that if you
know the Laplace transform, this will determine the function it came from at every point of
continuity of this function. The proof is fairly technical but only involves the theory of the
integral which was presented in this chapter.
Theorem 4.2.3 Let φ have exponential growth and have finitely many discontinuities on
every interval [0, R] and let f (s) ≡ L (φ ) (s). Then if t is a point of continuity of φ , it
follows that
k+1
(−1)k (k) k
k
φ (t) = lim f .
k→∞ k! t t
Thus φ (t) is determined by its Laplace transform at every point of continuity.
Proof: First note that for k a positive integer, you can change the variable letting ku = t
and obtain
kk+1 ∞ −u k kk+1 ∞ −t t k 1
Z Z
e u du = e dt
k! 0 k! 0 k k
The details involve doing this on finite intervals using the theory of the Riemann integral
developed earlier and then passing to a limit. Thus the above equals
1 1 1
Z ∞
e−t t k dt = Γ (k + 1) = k! = 1
k! 0 k! k!
4.2. LAPLACE TRANSFORMS 49
kk+1 kk+1 −u k
Z ∞ k Z ∞
e−u u φ (u) du − φ (1) = e u (φ (u) − φ (1)) du
k! 0 0 k!
Assuming φ is continuous at 1, the improper integral is of the form
Z 1−δ k+1
k 1+δ kk+1 −u k
k Z
e−u u (φ (u) − φ (1)) du + e u (φ (u) − φ (1)) du
0 k! 1−δ k!
Z ∞ k+1
k k
+ e−u u (φ (u) − φ (1)) du
1+δ k!
Consider the first integral in the above. Letting K be an upper bound for
|φ (u) − φ (1)|
on [0, 1] ,
Z 1−δ k+1
k 1−δ kk+1 −u k
k Z
e−u u (φ (u) − φ (1)) du ≤ K e u du
0 k! 0 k!
kk+1 −(1−δ ) k
≤K e (1 − δ ) (1 − δ )
k!
k+1 k
Now this converges to 0 as k → ∞. In fact, for a < 1, limk→∞ k k! (e−a a) = 0 because of
kk+1 k
the ratio test which shows that for a < 1, ∑k k! (e−a a) < ∞ which implies the kth term
converges to 0. Here a = 1 − δ . Next consider the last integral. This obviously converges
to 0 because of the exponential growth of φ . In fact,
Z ∞ k+1
k ∞ kk+1 −u k
k Z
e−u u (φ (u) − φ (1)) du ≤ e u a + beλ u du
1+δ k! 1+δ k!
Now changing the variable letting uk = t, and doing everything on finite intervals followed
by passing to a limit, the absolute value of the above is dominated by
kk+1 −t t k 1
Z ∞
e a + beλ (t/k) dt
k(1+δ ) k! k k
1 −t k
Z ∞
= e t a + beλ (t/k) dt for some a, b ≥ 0
k(1+δ ) k!
Z k(1+δ )
1 −t k 1 −t k
Z ∞
= e t a + beλ (t/k) dt − e t a + beλ (t/k) dt
0 k! 0 k!
However, the limit as k → ∞ of the integral on the right equals the improper integral on
the left. Thus this converges to 0 as k → ∞. Thus all that is left to consider is the middle
integral in which δ was chosen such that |φ (u) − φ (1)| < ε. Thus
Z 1+δ k+1
k ∞ kk+1 −u k
k Z
e−u u (φ (u) − φ (1)) du ≤ ε e u du = ε
1−δ k! 0 k!
50 CHAPTER 4. SOME IMPORTANT IMPROPER INTEGRALS
This theorem says that for large s, f (k) (s) exists and equals (−u)k e−su φ (u) du. Then
R∞
0
k+1 k+1
(−1)k (k) k (−1)k
Z ∞
k k
f = (−u)k e−(k/t)u φ (u) du
k! t t k! 0 t
51
Chapter 5
Fundamentals
5.1 Fn
The notation, Fn refers to the collection of ordered lists of n numbers. These numbers can
be either real or complex numbers. More precisely, consider the following [Link]
we mean real numbers, the symbol Rn is used. If nothing is specified, assume the symbol
means Cn .
Fn ≡ (x1 , · · · , xn ) : x j ∈ F for j = 1, · · · , n .
(x1 , · · · , xn ) ∈ Rn ,
it is conventional to denote (x1 , · · · , xn ) by the single bold face letter x. The numbers x j are
called the coordinates. The set
{(0, · · · , 0,t, 0, · · · , 0) : t ∈ R }
for t in the ith slot is called the ith coordinate axis coordinate axis, the xi axis for short.
The point 0 ≡ (0, · · · , 0) is called the origin. Points in Rn are also called vectors.
Thus (1, 2, 4) ∈ R3 and (2, 1, 4) ∈ R3 but (1, 2, 4) ̸= (2, 1, 4) because, even though the
same numbers are involved, they don’t match up. In particular, the first entries are not
equal.
Why would anyone be interested in such a thing? First consider the case when n = 1.
Then from the definition, R1 = R. Recall that R is identified with the points of a line. Look
at the number line again. Observe that this amounts to identifying a point on this line with
a real number. In other words a real number determines where you are on this line. Now
suppose n = 2 and consider two lines which intersect each other at right angles as shown
in the following picture.
53
54 CHAPTER 5. FUNDAMENTALS
6 • (2, 6)
(−8, 3)
• 3
2
−8
Notice how you can identify a point shown in the plane with the ordered pair (2, 6) .
You go to the right a distance of 2 and then up a distance of 6. Similarly, you can identify
another point in the plane with the ordered pair (−8, 3) . Go to the left a distance of 8 and
then up a distance of 3. The reason you go to the left is that there is a − sign on the eight.
From this reasoning, every ordered pair determines a unique point in the plane. Conversely,
taking a point in the plane, you could draw two lines through the point, one vertical and the
other horizontal and determine unique points x1 on the horizontal line in the above picture
and x2 on the vertical line in the above picture, such that the point of interest is identified
with the ordered pair (x1 , x2 ) . In short, points in the plane can be identified with ordered
pairs similar to the way that points on the real line are identified with real numbers. Now
suppose n = 3. As just explained, the first two coordinates determine a point in a plane.
Letting the third component determine how far up or down you go, depending on whether
this number is positive or negative, this determines a point in space. Thus, (1, 4, −5) would
mean to determine the point in the plane that goes with (1, 4) and then to go below this
plane a distance of 5 to obtain a unique point in space. You see that the ordered triples
correspond to points in space just as the ordered pairs correspond to points in a plane and
single real numbers correspond to points on a line.
You can’t stop here and say that you are only interested in n ≤ 3. What if you were
interested in the motion of two objects? You would need three coordinates to describe
where the first object is and you would need another three coordinates to describe where
the other object is located. Therefore, you would need to be considering R6 . If the two
objects moved around, you would need a time coordinate as well. As another example,
consider a hot object which is cooling and suppose you want the temperature of this object.
How many coordinates would be needed? You would need one for the temperature, three
for the position of the point in the object and one more for the time. Thus you would need
to be considering R5 . Many other examples can be given. Sometimes n is very large. This
is often the case in applications to business when they are trying to maximize profit subject
to constraints. It also occurs in numerical analysis when people try to solve hard problems
on a computer.
There are other ways to identify points in space with three numbers but the one pre-
sented is the most basic. In this case, the coordinates are known as Cartesian coordinates
after Descartes1 who invented this idea in the first half of the seventeenth century. I will
often not bother to draw a distinction between the point in n dimensional space and its
Cartesian coordinates.
1 René Descartes 1596-1650 is often credited with inventing analytic geometry although it seems the ideas were
actually known much earlier. He was interested in many different subjects, physiology, chemistry, and physics
being some of them. He also wrote a large book in which he tried to explain the book of Genesis scientifically.
Descartes ended up dying in Sweden.
5.2. ALGEBRA IN Rn 55
5.2 Algebra in Rn
There are two algebraic operations done with points of Rn . One is addition and the other is
multiplication by numbers, called scalars. Yes, numbers =scalars.
x + y = (x1 , · · · , xn ) + (y1 , · · · , yn )
≡ (x1 + y1 , · · · , xn + yn ) (5.2)
With this definition, the algebraic properties satisfy the conclusions of the following
theorem. The conclusions of this theorem are called the vector space axioms. There are
many other examples.
Theorem 5.2.2 For v, w vectors in Rn and α, β scalars, (real numbers), the following
hold.
v + w = w + v, (5.3)
the commutative law of addition,
(v + w) + z = v+ (w + z) , (5.4)
v+ (−v) = 0, (5.6)
α (v + w) = α v+ αw, (5.7)
(α + β ) v = α v+ β v, (5.8)
α (β v) = αβ (v) , (5.9)
1v = v. (5.10)
In the above 0 = (0, · · · , 0).
You should verify these properties all hold. For example, consider 5.7.
x3 v u+v
u
x2
x1
v
Sketch a picture of u + v, u − v, and u+2v.
5.4. LINES 57
First here is a picture of u + v. You first draw u and then at the point of u you place the
tail of v as shown. Then u + v is the vector which results which is drawn in the following
pretty picture.
v
u
u+v
Next consider u − v. This means u+ (−v) . From the above geometric description of
vector addition, −v is the vector which has the same length but which points in the opposite
direction to v. Here is a picture.
−v
u + (−v)
u
Finally consider the vector u+2v. Here is a picture of this one also.
2v
u
u + 2v
5.4 Lines
To begin with consider the case n = 1, 2. In the case where n = 1, the only line is just
R1 = R. Therefore, if x1 and x2 are two different points in R, consider
x = x1 + t (x2 − x1 )
where t ∈ R and the totality of all such points will give R. You see that you can always
solve the above equation for t, showing that every point on R is of this form. Now consider
the plane. Does a similar formula hold? Let (x1 , y1 ) and (x2 , y2 ) be two different points in
R2 which are contained in a line l. Suppose that x1 ̸= x2 . Then if (x, y) is an arbitrary point
on l,
(x, y)
(x2 , y2 )
(x1 , y1 )
Now by similar triangles,
y2 − y1 y − y1
m≡ =
x2 − x1 x − x1
58 CHAPTER 5. FUNDAMENTALS
y − y1 = m (x − x1 ) .
If t is defined by
x = x1 + t (x2 − x1 ) ,
you obtain this equation along with
y = y1 + mt (x2 − x1 )
= y1 + t (y2 − y1 ) .
Therefore,
(x, y) = (x1 , y1 ) + t (x2 − x1 , y2 − y1 ) .
If x1 = x2 , then in place of the point slope form above, x = x1 . Since the two given points
are different, y1 ̸= y2 and so you still obtain the above formula for the line. Because of this,
the following is the definition of a line in Rn .
Definition 5.4.1 A line in Rn containing the two different points x1 and x2 is the collection
of points of the form
x = x1 + t x2 − x1
where t ∈ R. This is known as a parametric equation and the variable t is called the
parameter.
Often t denotes time in applications to Physics. Note this definition agrees with the
usual notion of a line in two dimensions and so this is consistent with earlier concepts.
Definition 5.4.3 The vector a in the above lemma is called a direction vector for the line.
Definition 5.4.4 Let p and q be two points in Rn , p ̸= q. The directed line segment from
p to q, denoted by −
→ is defined to be the collection of points
pq,
x = p + t (q − p) , t ∈ [0, 1]
with the direction corresponding to increasing t. In the definition, when t = 0, the point p is
obtained and as t increases other points on this line segment are obtained until when t = 1,
you get the point q. This is what is meant by saying the direction corresponds to increasing
t.
p
This line segment is a part of a line from the above Definition.
5.4. LINES 59
Example 5.4.5 Find a parametric equation for the line through the points (1, 2, 0) and
(2, −4, 6) .
The vector (1, −6, 6) is obtained by (2, −4, 6) − (1, 2, 0) as indicated above.
The reason for the word, “a”, rather than the word, “the” is there are infinitely many
different parametric equations for the same line. To see this replace t with 3s. Then you
obtain a parametric equation for the same line because the same set of points is obtained.
The difference is they are obtained from different values of the parameter. What happens is
this: The line is a set of points but the parametric description gives more information than
that. It tells how the points are obtained. Obviously, there are many ways to trace out a
given set of points and each of these ways corresponds to a different parametric equation
for the line.
Example 5.4.6 Find a parametric equation for the line which contains the point (1, 2, 0)
and has direction vector (1, 2, 1) .
Sometimes people elect to write a line like the above in the form
x = 1 + t, y = 2 + 2t, z = t, t ∈ R. (5.12)
This is a set of scalar parametric equations which amounts to the same thing as 5.11.
There is one other form for a line which is sometimes considered useful. It is the so
called symmetric form. Consider the line of 5.12. You can solve for the parameter t to
write
y−2
t = x − 1,t = , t = z.
2
Therefore,
y−2
x−1 = = z.
2
This is the symmetric form of the line.
x = 3t + 2, y = 2t + 1, z = t − 3, t ∈ R.
5.5 Distance in Rn
How is distance between two points in Rn defined?
This is called the distance formula. Thus |x| ≡ |x − 0| . The symbol B (a, r) is defined by
B (a, r) ≡ {x ∈ Rn : |x − a| < r} .
This is called an open ball of radius r centered at a. It gives all the points in Rn which are
closer to a than r.
First of all note this is a generalization of the notion of distance in R. There the distance
between two points x and y was given by the absolute value of their difference. Thus |x − y|
1/2
is equal to the distance between these two points on R. Now |x − y| = (x − y)2 where
the square root is always the positive square root. Thus it is the same formula as the above
definition except there is only one term in the sum. Geometrically, this is the right way
to define distance which is seen from the Pythagorean theorem. Consider the following
picture in the case that n = 2.
(y1 , y2 )
(x1 , x2 ) (y1 , x2 )
There are two points in the plane whose Cartesian coordinates are (x1 , x2 ) and (y1 , y2 )
respectively. Then the solid line joining these two points is the hypotenuse of a right triangle
which is half of the rectangle shown in dotted lines. What is its length? Note the lengths
of the sides of this triangle are |y1 − x1 | and |y2 − x2 | . Therefore, the Pythagorean theorem
implies the length of the hypotenuse equals
1/2 1/2
|y1 − x1 |2 + |y2 − x2 |2 = (y1 − x1 )2 + (y2 − x2 )2
(y1 , y2 , y3 )
(y1 , y2 , x3 )
(x1 , x2 , x3 ) (y1 , x2 , x3 )
By the Pythagorean theorem, the length of the dotted line joining the following two
points (x1 , x2 , x3 ) and (y1 , y2 , x3 ) equals
1/2
(y1 − x1 )2 + (y2 − x2 )2
while the length of the line joining (y1 , y2 , x3 ) to (y1 , y2 , y3 ) is just |y3 − x3 | . Therefore,
by the Pythagorean theorem again, the length of the line joining the points (x1 , x2 , x3 ) and
(y1 , y2 , y3 ) equals
( )1/2
1/2 2
2 2 2
(y1 − x1 ) + (y2 − x2 ) + (y3 − x3 )
1/2
= (y1 − x1 )2 + (y2 − x2 )2 + (y3 − x3 )2 ,
Example 5.5.3 Describe the points which are at the same distance between (1, 2, 3) and
(0, 1, 2) .
62 CHAPTER 5. FUNDAMENTALS
and so
x2 − 2x + 14 + y2 − 4y + z2 − 6z = x2 + y2 − 2y + 5 + z2 − 4z
which implies
−2x + 14 − 4y − 6z = −2y + 5 − 4z
hence
2x + 2y + 2z = −9. (5.13)
Since these steps are reversible, the set of points which is at the same distance from the two
given points consists of the points (x, y, z) such that 5.13 holds.
The following lemma is fundamental. It is a form of the Cauchy Schwarz inequality.
If |y| = 0 then 5.14 is obviously true because both sides equal zero. Therefore, assume
|y| ̸= 0 and then p (t) is a polynomial of degree two whose graph opens up. Therefore, it
either has no zeroes, two zeros or one repeated zero. If it has two zeros, the above inequality
must be violated because in this case the graph must dip below the x axis. Therefore, it
either has no zeros or exactly one. From the quadratic formula this happens exactly when
!2
n
4 ∑ xi θ yi − 4 |x|2 |y|2 ≤ 0
i=1
and so
n n
∑ xi θ yi = ∑ xi yi ≤ |x| |y|
i=1 i=1
5.6. GEOMETRIC MEANING OF SCALAR MULTIPLICATION IN R3 63
5.7 Exercises
1. Verify all the properties 5.3-5.10.
2. Compute the following
3. Find symmetric equations for the line through the points (2, 2, 4) and (−2, 3, 1) .
4. Find symmetric equations for the line through the points (1, 2, 4) and (−2, 1, 1) .
5. Symmetric equations for a line are given. Find parametric equations of the line.
x+1 2y+3
(a) 3 = 2 = z+7
2x−1 2y+3
(b) 3 = 6 = z−7
x+1
(c) 3 = 2y + 3 = 2z − 1
1−2x 3−2y
(d) 3 = 2 = z+1
x−1 2y−3
(e) 3 = 5 = z+2
x+1 3−y
(f) 3 = 5 = z+1
6. Parametric equations for a line are given. Find symmetric equations for the line if
possible. If it is not possible to do it explain why.
(a) x = 1 + 2t, y = 3 − t, z = 5 + 3t
(b) x = 1 + t, y = 3 − t, z = 5 − 3t
(c) x = 1 + 2t, y = 3 + t, z = 5 + 3t
(d) x = 1 − 2t, y = 1, z = 1 + t
(e) x = 1 − t, y = 3 + 2t, z = 5 − 3t
(f) x = t, y = 3 − t, z = 1 + t
7. The first point given is a point contained in the line. The second point given is a
direction vector for the line. Find parametric equations for the line, determined by
this information.
8. Parametric equations for a line are given. Determine a direction vector for this line.
(a) x = 1 + 2t, y = 3 − t, z = 5 + 3t
(b) x = 1 + t, y = 3 + 3t, z = 5 − t
(c) x = 7 + t, y = 3 + 4t, z = 5 − 3t
(d) x = 2t, y = −3t, z = 3t
(e) x = 2t, y = 3 + 2t, z = 5 + t
(f) x = t, y = 3 + 3t, z = 5 + t
9. A line contains the given two points. Find parametric equations for this line. Identify
the direction vector.
10. Draw a picture of the points in R2 which are determined by the following ordered
pairs.
(a) (1, 2)
(b) (−2, −2)
(c) (−2, 3)
(d) (2, −5)
(a) (1, 2, 0)
(b) (−2, −2, 1)
(c) (−2, 3, −2)
13. You are given two points in R3 , (4, 5, −4) and (2, 3, 0) . Show the distance from the
point (3, 4, −2) to the first of these points is the same as the distance from this point
to the second of the original pair of points. Note that 3 = 4+2 5+3
2 , 4 = 2 . Obtain a
theorem which will be valid for general pairs of points (x, y, z) and (x1 , y1 , z1 ) and
prove your theorem using the distance formula.
14. A sphere is the set of all points which are at a given distance from a single given
point. Find an equation for the sphere which is the set of all points that are at a
distance of 4 from the point (1, 2, 3) in R3 .
66 CHAPTER 5. FUNDAMENTALS
15. A parabola is the set of all points (x, y) in the plane such that the distance from the
point (x, y) to a given point (x0 , y0 ) equals the distance from (x, y) to a given line.
The point (x0 , y0 ) is called the focus and the line is called the directrix. Find the
equation of the parabola which results from the line y = l and (x0 , y0 ) a given focus
with y0 < l. Repeat for y0 > l.
16. A sphere centered at the point (x0 , y0 , z0 ) ∈ R3 having radius r consists of all points
(x, y, z) whose distance to (x0 , y0 , z0 ) equals r. Write an equation for this sphere in
R3 .
17. Suppose the distance between (x, y) and (x′ , y′ ) were defined to equal the larger of
the two numbers |x − x′ | and |y − y′ | . Draw a picture of the sphere centered at the
point (0, 0) if this notion of distance is used.
18. Repeat the same problem except this time let the distance between the two points be
|x − x′ | + |y − y′ | .
19. If (x1 , y1 , z1 ) and (x2 , y2 , z2 ) are two points such that |(xi , yi , zi )| = 1 for i = 1, 2, show
2 y1 +y2 z1 +z2
that in terms of the usual distance, x1 +x 2 , 2 , 2 < 1. What would happen if
you used the way of measuring distance given in Problem 17 (|(x, y, z)| = maximum
of |z| , |x| , |y| .)?
20. Give a simple description using the distance formula of the set of points which are at
an equal distance between the two points (x1 , y1 , z1 ) and (x2 , y2 , z2 ) .
21. Suppose you are given two points (−a, 0) and (a, 0) in R2 and a number r > 2a. The
set of points described by
is known as an ellipse. The two given points are known as the focus points of the
2 2
ellipse. Find α and β such that this is in the form αx + βy = 1. This is a nice
exercise in messy algebra.
22. Suppose you are given two points (−a, 0) and (a, 0) in R2 and a number r < 2a. The
set of points described by
is known as hyperbola. The two given points are known as the focus points of the
2 2
hyperbola. Simplify this to the form αx − βy = 1. This is a nice exercise in
messy algebra.
23. Let (x1 , y1 ) and (x2 , y2 ) be two points in R2 . Give a simple description using the
distance formula of the perpendicular bisector of the line segment joining these two
points. Thus you want all points (x, y) such that |(x, y) − (x1 , y1 )| = |(x, y) − (x2 , y2 )| .
24. Show that |αx| =|α||x| whenever x ∈ Rn for any positive integer n.
5.8. PHYSICAL VECTORS 67
Definition 5.8.1 Force is a vector. The magnitude of this vector is a measure of how hard
it is pushing. It is measured in units such as Newtons or pounds or tons. Its direction is the
direction in which the push is taking place.
Of course this is a little vague and will be left a little vague until the presentation of
Newton’s second law later. See the appendix on this or any physics book.
Vectors are used to model force and other physical vectors like velocity. What was just
described would be called a force vector. It has two essential ingredients, its magnitude
and its direction. Think of vectors as directed line segments or arrows as shown in the
following picture in which all the directed line segments are considered to be the same
vector because they have the same direction, the direction in which the arrows point, and
the same magnitude (length).
Because of this fact that only direction and magnitude are important, it is always possi-
ble to put a vector in a certain particularly simple form. Let −
→ be a directed line segment
pq
−→
or vector. Then from Definition 5.4.4 it follows that pq consists of the points of the form
p + t (q − p)
where t ∈ [0, 1] . Subtract p from all these points to obtain the directed line segment con-
sisting of the points
0 + t (q − p) , t ∈ [0, 1] .
The point in Rn , q − p, will represent the vector.
Geometrically, the arrow − → was slid so it points in the same direction and the base is
pq,
at the origin 0. For example, see the following picture.
Definition 5.8.2 Let x = (x1 , · · · , xn ) ∈ Rn . The position vector of this point is the vector
whose point is at x and whose tail is at the origin (0, · · · , 0). If x = (x1 , · · · , xn ) is called
68 CHAPTER 5. FUNDAMENTALS
a vector, the vector which is meant, is this position vector just described. Another term
associated with this is standard position. A vector is in standard position if the tail is
placed at the origin.
1/2
and for v any vector in Rn the magnitude of v equals ∑nk=1 v2k = |v|.
First, the vector is the directed line segment (arrow) which has its base at 0 ≡ (0, 0, 0)
and its point at (1, 2, 3) . Therefore,
p √
|v| = 12 + 22 + 32 = 14.
Thus the magnitude of rv equals |r| times the magnitude of v. If r is positive, then the
vector represented by rv has the same direction as the vector v because multiplying by the
scalar r, only has the effect of scaling all the distances. Thus the unit distance along any
coordinate axis now has length r and in this re-scaled system the vector is represented by
a. If r < 0 similar considerations apply except in this case all the ai also change sign. From
now on, a will be referred to as a vector instead of an element of Rn representing a vector
as just described. The following picture illustrates the effect of scalar multiplication.
v 2v −2v
Note there are n special vectors which point along the coordinate axes. These are
ei ≡ (0, · · · , 0, 1, 0, · · · , 0)
5.8. PHYSICAL VECTORS 69
where the 1 is in the ith slot and there are zeros in all the other spaces. See the picture in
the case of R3 .
z
e3
e1 e2 y
Thus the addition of vectors according to the rules of addition in Rn which were pre-
sented earlier, yields the appropriate vector which duplicates the cumulative effect of all
the vectors in the sum.
What is the geometric significance of vector addition? Suppose u, v are vectors
u = (u1 , · · · , un ) , v = (v1 , · · · , vn )
Then u + v = (u1 + v1 , · · · , un + vn ) . How can one obtain this geometrically? Consider the
−→
directed line segment, 0u and then, starting at the end of this directed line segment, follow
−−−−−−→
the directed line segment u (u + v) to its end u + v. In other words, place the vector u in
standard position with its base at the origin and then slide the vector v till its base coincides
with the point of u. The point of this slid vector, determines u + v. To illustrate, see the
following picture
70 CHAPTER 5. FUNDAMENTALS
u u+v
Note the vector u + v is the diagonal of a parallelogram determined from the two vec-
tors u and v and that identifying u + v with the directed diagonal of the parallelogram
determined by the vectors u and v amounts to the same thing as the above procedure.
An item of notation should be mentioned here. In the case of Rn where n ≤ 3, it is
standard notation to use i for e1 , j for e2 , and k for e3 . Now here are some applications of
vector addition to some problems.
Example 5.8.4 There are three ropes attached to a car and three people pull on these
ropes. The first exerts a force of 2 i+ 3 j− 2k Newtons, the second exerts a force of 3 i+
5j + k Newtons and the third exerts a force of 5 i − j+ 2k. Newtons. Find the total force
in the direction of i.
To find the total force add the vectors as described above. This gives 10 i+ 7j + k
Newtons. Therefore, the force in the i direction is 10 Newtons.
As mentioned earlier, the Newton is a unit of force like pounds.
Example 5.8.5 An airplane flies North East at 100 miles per hour. Write this as a vector.
The vector has length 100. Now using that vector as the√ hypotenuse of a right triangle
having equal
√ sides, the
√ sides should be each of length 100/ 2. Therefore, the vector would
be 100/ 2i + 100/ 2j.
This example also motivates the concept of velocity.
Definition 5.8.6 The speed of an object is a measure of how fast it is going. It is measured
in units of length per unit time. For example, miles per hour, kilometers per minute, feet
per second. The velocity is a vector having the speed as the magnitude but also specifying
the direction.
√ √
Thus the velocity vector in the above example is 100/ 2i + 100/ 2j.
Example 5.8.7 The velocity of an airplane is 100i+j +k measured in kilometers per hour
and at a certain instant of time its position is (1, 2, 1) . Here imagine a Cartesian coordinate
5.9. EXERCISES 71
system in which the third component is altitude and the first and second components are
measured on a line from West to East and a line from South to North. Find the position of
this airplane one minute later.
Consider the vector (1, 2, 1) , is the initial position vector of the airplane. As it moves,
the position vector changes. After one minute the airplane has moved in the i direction a
1
distance of 100 × 60 = 53 kilometer. In the j direction it has moved 60 1
kilometer during this
1
same time, while it moves 60 kilometer in the k direction. Therefore, the new displacement
vector for the airplane is
5 1 1 8 121 121
(1, 2, 1) + , , = , ,
3 60 60 3 60 60
Example 5.8.8 A certain river is one half mile wide with a current flowing at 4 miles per
hour from East to West. A man swims directly toward the opposite shore from the South
bank of the river at a speed of 3 miles per hour. How far down the river does he find himself
when he has swam across? How far does he end up swimming?
Consider the following picture.
3
4
You should write these vectors in terms of components. The velocity of the swimmer in
still water would be 3j while the velocity of the river would be −4i. Therefore, the velocity
of the swimmer is −4i + 3j. Since the component of velocity in the direction across the
√ is 3, it follows the trip takes 1/6 hour or 10 minutes.
river The speed at which he travels is
42 + 32 = 5 miles per hour and so he travels 5 × 16 = 56 miles. Now to find the distance
downstream he finds himself, note that if x is this distance, x and 1/2 are two legs of a right
triangle whose hypotenuse equals 5/6 miles. Therefore, by the Pythagorean theorem the
distance downstream is
2
q
(5/6)2 − (1/2)2 = miles.
3
5.9 Exercises
1. The wind blows from the South at 40 kilometers per hour and an airplane which
travels at 400 kilometers per hour in still air is heading East. Find the actual velocity
of the airplane.
2. ↑In the above problem, find the position of the airplane after two hours.
3. ↑In the above problem, if the airplane is to travel due east, in what direction should
it head in order to achieve this?
4. The wind blows from West to East at a speed of 50 miles per hour and an airplane
which travels at 300 miles per hour in still air is heading North West. What is the
velocity of the airplane relative to the ground? What is the component of this velocity
in the direction North?
72 CHAPTER 5. FUNDAMENTALS
5. In the situation of Problem 4 how many degrees to the West of North should the
airplane head in order to fly exactly North. What will be the speed of the airplane
relative to the ground?
6. In the situation of 5 suppose the airplane uses 34 gallons of fuel every hour at that air
speed and that it needs to fly North a distance of 600 miles. Will the airplane have
enough fuel to arrive at its destination given that it has 63 gallons of fuel?
7. An airplane is flying due north at 150 miles per hour. A wind is pushing the airplane
due east at 40 miles per hour. After 1 hour, the plane starts flying 30◦ East of North.
Assuming the plane starts at (0, 0) , where is it after 2 hours? Let North be the
direction of the positive y axis and let East be the direction of the positive x axis.
8. City A is located at the origin while city B is located at (300, 500) where distances
are in miles. An airplane flies at 250 miles per hour in still air. This airplane wants
to fly from city A to city B but the wind is blowing in the direction of the positive y
axis at a speed of 50 miles per hour. Find a unit vector such that if the plane heads
in this direction, it will end up at city B having flown the shortest possible distance.
How long will it take to get there?
9. A certain river is one half mile wide with a current flowing at 2 miles per hour from
East to West. A man swims directly toward the opposite shore from the South bank
of the river at a speed of 3 miles per hour. How far down the river does he find
himself when he has swam across? How far does he end up swimming?
10. A certain river is one half mile wide with a current flowing at 2 miles per hour from
East to West. A man can swim at 3 miles per hour in still water. In what direction
should he swim in order to travel directly across the river? What would the answer to
this problem be if the river flowed at 3 miles per hour and the man could swim only
at the rate of 2 miles per hour?
11. Three forces are applied to a point which does not move. Two of the forces are
2i + j + 3k Newtons and i − 3j + 2k Newtons. Find the third force.
12. Three forces are applied to a point which does not move. Two of the forces are
i + j + 3k Newtons and i − 3j − 2k Newtons. Find the third force.
16. A car is stuck in the mud. There is a cable stretched tightly from this car to a tree
which is 20 feet long. A person grasps the cable in the middle and pulls with a force
of 100 pounds perpendicular to the stretched cable. The center of the cable moves
two feet and remains still. What is the tension in the cable? The tension in the cable
is the force exerted on this point by the part of the cable nearer the car as well as the
force exerted on this point by the part of the cable nearer the tree.
74 CHAPTER 5. FUNDAMENTALS
Chapter 6
Vector Products
With this definition, there are several important properties satisfied by the dot product.
In the statement of these properties, α and β will denote scalars and a, b, c will denote
vectors.
You should verify these properties. Also be sure you understand that 6.4 follows from
the first three and is therefore redundant. It is listed here for the sake of convenience.
Example 6.1.4 Find the magnitude of a = (2, 1, 4, 2) . That is, find |a| .
75
76 CHAPTER 6. VECTOR PRODUCTS
p
This is (2, 1, 4, 2) · (2, 1, 4, 2) = 5.
The dot product satisfies a fundamental inequality known as the Cauchy Schwarz in-
equality. It has already been proved but here is another proof. This proof will be based
only on the above axioms for the dot product.
Proof: First note that if b = 0, both sides of 6.6 equal zero and so the inequality holds
in this case. Indeed,
a · 0 = a· (0 + 0) = a · 0 + a · 0
so a · 0 = 0. Therefore, it will be assumed in what follows that b ̸= 0.
Define a function of t ∈ R
Then by 6.2, f (t) ≥ 0 for all t ∈ R. Also from 6.3,6.4,6.1, and 6.5
Now
!
2 2 a·b |a|2
f (t) = |b| t + 2t +
|b|2 |b|2
!2 !2
2
a·ba·b a·b |a|
= |b|2 t 2 + 2t+ − + 2
|b|2 |b|2 |b|2 |b|
!2 !2
2
2 a·b |a| a · b
= |b| t+ 2 + 2 − ≥ 0
|b| |b| |b|2
for all t ∈ R. In particular f (t) ≥ 0 when t = − a · b/ |b|2 which implies
!2
|a|2 a·b
− ≥ 0. (6.7)
|b|2 |b|2
If either vector equals zero, then equality is obtained in 6.6 so it can be assumed both
and that equality is obtained in 6.7. This implies that f (t) = 0 when
vectors are non zero
2
t = − a · b/ |b| and so from 6.2, it follows that for this value of t, a+tb = 0 showing
a = −tb. ■
You should note that the entire argument was based only on the properties of the dot
product listed in 6.1 - 6.5. This means that whenever something satisfies these properties,
the Cauchy Schwartz inequality holds. There are many other instances of these properties
besides vectors in Rn .
The Cauchy Schwartz inequality allows a proof of the triangle inequality for distances
in Rn in much the same way as the triangle inequality for the absolute value.
and equality holds if and only if one of the vectors is a nonnegative scalar multiple of the
other. Also
||a| − |b|| ≤ |a − b| (6.9)
Proof: By properties of the dot product and the Cauchy Schwarz inequality,
|a + b|2 = (a + b) · (a + b) = (a · a) + (a · b) + (b · a) + (b · b)
= |a|2 + 2 (a · b) + |b|2 ≤ |a|2 + 2 |a · b| + |b|2
≤ |a|2 + 2 |a| |b| + |b|2 = (|a| + |b|)2 .
Therefore, α ≥ 0.
To get the other form of the triangle inequality, a = a − b + b so
|a| = |a − b + b| ≤ |a − b| + |b| .
Therefore,
|a| − |b| ≤ |a − b| (6.10)
Similarly,
|b| − |a| ≤ |b − a| = |a − b| . (6.11)
It follows from 6.10 and 6.11 that 6.9 holds. This is because ||a| − |b|| equals the left side
of either 6.10 or 6.11 and either way, ||a| − |b|| ≤ |a − b| . ■
78 CHAPTER 6. VECTOR PRODUCTS
In words, the dot product of two vectors equals the product of the magnitude of the two vec-
tors multiplied by the cosine of the included angle. Note this gives a geometric description
of the dot product which does not depend explicitly on the coordinates of the vectors.
The dot product of these two vectors equals 6 + 4 − 1 = 9 and the norms are
√ √
4+1+1 = 6
√ √
and 9 + 16 + 1 = 26. Therefore, from 6.12 the cosine of the included angle equals
9
cos θ = √ √ = . 720 58
26 6
Now the cosine is known, the angle can be determines by solving the equation cos θ = .
720 58. This will involve using a calculator or a table of trigonometric functions. The an-
swer is θ = . 766 16 radians or in terms of degrees, θ = . 766 16 × 360 ◦
2π = 43. 898 . Recall
how this last computation is done. Set up a proportion .76616 = 2π because 360◦ corre-
x 360
sponds to 2π radians. However, in calculus, you should get used to thinking in terms of
radians and not degrees. This is because all the important calculus formulas are defined in
terms of radians.
Example 6.2.2 Let u, v be two vectors whose magnitudes are equal to 3 and 4 respectively
and such that if they are placed in standard position with their tails at the origin, the angle
between u and the positive x axis equals 30◦ and the angle between v and the positive x
axis is -30◦ . Find u · v.
6.2. THE GEOMETRIC SIGNIFICANCE OF THE DOT PRODUCT 79
Observation 6.2.3 Two vectors are said to be perpendicular if the included angle is π/2
radians (90◦ ). You can tell if two nonzero vectors are perpendicular by simply taking their
dot product. If the answer is zero, this means they are perpendicular because cos θ = 0.
Example 6.2.4 Determine whether the two vectors 2i + j − k and 1i + 3j + 5k are per-
pendicular.
When you take this dot product you get 2 + 3 − 5 = 0 and so these two are indeed
perpendicular.
Definition 6.2.5 When two lines intersect, the angle between the two lines is the smaller
of the two angles determined.
Example 6.2.6 Find the angle between the two lines, (1, 2, 0) + t (1, 2, 3) and (0, 4, −3) +
t (−1, 2, −3) .
These two lines intersect, when t = 0 in the first and t = −1 in the second. It is only
a matter of finding the angle between the direction vectors. One angle determined is given
by
−6 −3
cos θ = = . (6.13)
14 7
We don’t want this angle because it is obtuse. The angle desired is the acute angle given by
3
cos θ = .
7
It is obtained by using replacing one of the direction vectors with −1 times it.
to another is a measure of the extent to which the force contributes to the motion. This
is illustrated in the following picture in the case where the given force contributes to the
motion.
F p2
F⊥
θ
F ||
p1
In this picture the force, F is applied to an object which moves on the straight line from
p1 to p2 . There are two vectors shown, F || and F ⊥ and the picture is intended to indicate
that when you add these two vectors you get F while F || acts in the direction of motion
and F ⊥ acts perpendicular to the direction of motion. Only F || contributes to the work
done by F on the object as it moves from p1 to p2 . F || is called the component of the
force in the direction of motion. From trigonometry, you see the magnitude of F || should
equal |F | |cos θ | . Thus, since F || points in the direction of the vector from p1 to p2 , the
total work done should equal
|F | −
p− →
1 p2 cos θ = |F | |p2 − p1 | cos θ
If the included angle had been obtuse, then the work done by the force, F on the object
would have been negative because in this case, the force tends to impede the motion from
p1 to p2 but in this case, cos θ would also be negative and so it is still the case that the work
done would be given by the above formula. Thus from the geometric description of the dot
product given above, the work equals
Definition 6.2.7 Let F be a force acting on an object which moves from the point p1 to the
point p2 . Then the work done on the object by the given force equals F · (p2 − p1 ) .
The concept of writing a given vector F in terms of two vectors, one which is parallel
to a given vector D and the other which is perpendicular can also be explained with no
reliance on trigonometry, completely in terms of the algebraic properties of the dot product.
As before, this is mathematically more significant than any approach involving geometry
or trigonometry because it extends to more interesting situations. This is done next.
Theorem 6.2.8 Let F and D be nonzero vectors. Then there exist unique vectors F || and
F ⊥ such that
F = F || + F ⊥ (6.14)
where F || is a scalar multiple of D, also referred to as
projD (F ) ,
Proof: Suppose 6.14 and F || = αD. Taking the dot product of both sides with D and
using F ⊥ · D = 0, this yields
F · D = α |D|2
which requires α = F · D/ |D|2 . Thus there can be no more than one vector F || . It follows
F ⊥ must equal F − F || . This verifies there can be no more than one choice for both F ||
and F ⊥ .
Now let
F ·D
F || ≡ D
|D|2
and let
F ·D
F ⊥ = F − F || = F − D
|D|2
F ·D
Then F || = α D where α = . It only remains to verify F ⊥ · D = 0. But
|D |2
F ·D
F ⊥ · D = F · D− D · D = F · D − F · D = 0.
|D|2
Example 6.2.9 Let F = 2 i+ 7j − 3k Newtons. Find the work done by this force in moving
from the point (1, 2, 3) to the point (−9, −3, 4) along the straight line segment joining these
points where distances are measured in meters.
Note that if the force had been given in pounds and the distance had been given in feet,
the units on the work would have been foot pounds. In general, work has units equal to
units of a force times units of a length. Instead of writing Newton meter, people write joule
because a joule is by definition a Newton meter. That word is pronounced “jewel” and it is
the unit of work in the metric system of units. Also be sure you observe that the work done
by the force can be negative as in the above example. In fact, work can be either positive,
negative, or zero. You just have to do the computations to find out.
! !
2 b·a b·a
|b⊥ | = (b − proja (b)) · (b − proja (b)) = b− a · b− a
|a|2 |a|2
!2 !
2 (b · a)2 b·a 2 2 (b · a)2
= |b| − 2 + |a| = |b| 1−
|a|2 |a|2 |a|2 |b|2
= |b|2 1 − cos2 θ = |b|2 sin2 (θ )
where θ is the included angle between a and b which is less than π radians. Therefore,
taking square roots, |b⊥ | = |b| sin θ .
Notice how you put the conjugate on the entries of the vector y. It makes no difference
if the vectors happen to be real vectors but with complex vectors you must do it this way.
The reason for this is that when you take the dot product of a vector with itself, you want
to get the square of the length of the vector, a positive number. Placing the conjugate on
the components of y in the above definition assures this will take place. Thus
2
x · x = ∑ x jx j = ∑ x j ≥ 0.
j j
If you didn’t place a conjugate as in the above definition, things wouldn’t work out cor-
rectly. For example,
(1 + i)2 + 22 = 4 + 2i
and this is not a positive number.
The following properties of the dot product follow immediately from the definition and
you should verify each of them.
Properties of the dot product:
1. u · v = v · u.
2. If a, b are numbers and u, v, z are vectors then (au + bv) · z = a (u · z) + b (v · z) .
3. u · u ≥ 0 and it equals 0 if and only if u = 0.
The norm is defined in the usual way.
Definition 6.2.13 For x ∈ Cn ,
!1/2
n
|x| ≡ ∑ |xk | 2
= (x · x)1/2
k=1
6.2. THE GEOMETRIC SIGNIFICANCE OF THE DOT PRODUCT 83
x + t θ̄ y · x + t θ̄ y = (x · x) + t 2 θ̄ θ (y · y) + t x · θ̄ y + t θ̄ y · x
= (x · x) + t 2 (y · y) + tθ (x · y) + t x·θ̄ y
= (x · x) + t 2 (y · y) + tθ (x · y) + tθ (x · y)
= |x|2 + 2t |x · y| + t 2 |y|2 ≥ 0
If |y| = 0, this can only happen if x · y = 0 and so the inequality holds. If |y| ̸= 0, then you
have a parabola which opens up and has at most one real zero. Therefore, by the quadratic
formula,
4 |x · y|2 − 4 |x|2 |y|2 ≤ 0
which yields the Cauchy Schwarz inequality. ■
By analogy to the case of Rn , length or magnitude of vectors in Cn can be defined.
Theorem 6.2.17 For length defined in Definition 6.2.16, the following hold.
Proof: The first two claims are left as exercises. To establish the third, you use the
same argument which was used in Rn .
|z + w|2 = (z + w, z + w) = z · z + w · w + w · z + z · w
= |z|2 + |w|2 + 2 Re w · z ≤ |z|2 + |w|2 + 2 |w · z|
≤ |z|2 + |w|2 + 2 |w| |z| = (|z| + |w|)2 .
All other considerations such as open and closed sets and the like are identical in this more
general context with the corresponding definition in Rn . The main difference is that here
the scalars are complex numbers. ■
84 CHAPTER 6. VECTOR PRODUCTS
Definition 6.2.18 Suppose you have a vector space, V and for z, w ∈ V and α a scalar
a norm is a way of measuring distance or magnitude which satisfies the properties 6.16 -
6.18. Thus a norm is something which does the following.
6.3 Exercises
1. Find (1, 2, 3, 4) · (2, 0, 1, 3) .
2. Use formula 6.12 to verify the Cauchy Schwartz inequality and to show that equality
occurs if and only if one of the vectors is a scalar multiple of the other.
3. For u, v vectors in R3 , define the product u ∗ v ≡ u1 v1 + 2u2 v2 + 3u3 v3 . Show the
axioms for a dot product all hold for this funny product. Prove the Cauchy Schwarz
inequality |u ∗ v| ≤ (u ∗ u)1/2 (v ∗ v)1/2 . Hint: Do not try to do this with methods
from trigonometry.
4. Find the angle between the vectors 3i − j − k and i + 4j + 2k.
5. Find the angle between the vectors i − 2j + k and i + 2j − 7k.
10. If F is a force and D is a vector, show projD (F ) = (|F | cos θ ) u where u is the unit
vector in the direction of D, u = D/ |D| and θ is the included angle between the
two vectors F and D. |F | cos θ is sometimes called the component of the force, F
in the direction, D.
11. A boy drags a sled for 100 feet along the ground by pulling on a rope which is 20
degrees from the horizontal with a force of 40 pounds. How much work does this
force do?
12. A girl drags a sled for 200 feet along the ground by pulling on a rope which is 30
degrees from the horizontal with a force of 20 pounds. How much work does this
force do?
13. A large dog drags a sled for 300 feet along the ground by pulling on a rope which is
45 degrees from the horizontal with a force of 20 pounds. How much work does this
force do?
6.4. THE CROSS PRODUCT 85
14. How much work in Newton meters does it take to slide a crate 20 meters along a
loading dock by pulling on it with a 200 Newton force at an angle of 30◦ from the
horizontal?
15. An object moves 10 meters in the direction of j. There are two forces acting on this
object F 1 = i + j + 2k, and F 2 = −5i + 2 j− 6k. Find the total work done on the
object by the two forces. Hint: You can take the work done by the resultant of the
two forces or you can add the work done by each force. Why?
16. An object moves 10 meters in the direction of j + i. There are two forces acting on
this object F 1 = i + 2j + 2k, and F 2 = 5i + 2 j− 6k. Find the total work done on
the object by the two forces. Hint: You can take the work done by the resultant of
the two forces or you can add the work done by each force. Why?
17. An object moves 20 meters in the direction of k + j. There are two forces acting on
this object F 1 = i + j + 2k, and F 2 = i + 2 j− 6k. Find the total work done on the
object by the two forces. Hint: You can take the work done by the resultant of the
two forces or you can add the work done by each force.
18. If a, b, and c are vectors. Show that (b + c)⊥ = b⊥ + c⊥ where b⊥ = b− proja (b) .
19. In the discussion of the reflecting mirror which directs all rays to a particular point
(0, p) . Show that for any choice of positive C this point is the focus of the parabola
and the directrix is y = p − C1 .
20. Suppose you wanted to make a solar powered oven to cook food. Are there reasons
for using a mirror which is not parabolic? Also describe how you would design a
good flash light with a beam which does not spread out too quickly.
h i
21. Show that (a · b) = 14 |a + b|2 − |a − b|2 .
22. Prove from the axioms of the dot product the parallelogram identity which is the
following: |a + b|2 + |a − b|2 = 2 |a|2 + 2 |b|2 .
23. Suppose f , g are two continuous functions defined on [0, 1] . Define the inner product
( f · g) = 01 f (x) g (x) dx. Show this dot product satisfies conditions 6.1 - 6.5. Explain
R
why the Cauchy Schwarz inequality continues to hold in this context and state the
Cauchy Schwarz inequality in terms of integrals.
Definition 6.4.1 Three vectors a, b, c form a right handed system if when you extend the
fingers of your right hand along the vector a and close them in the direction of b, the thumb
points roughly in the direction of c.
86 CHAPTER 6. VECTOR PRODUCTS
For an example of a right handed system of vectors, see the following picture.
In this picture the vector c points upwards from the plane determined by the other
two vectors. You should consider how a right hand system would differ from a left hand
system. Try using your left hand and you will see that the vector c would need to point in
the opposite direction as it would for a right hand system.
From now on, the vectors i, j, k will always form a right handed system. To repeat,
if you extend the fingers of our right hand along i and close them in the direction j, the
thumb points in the direction of k.
j
i
The following is the geometric description of the cross product. It gives both the direc-
tion and the magnitude and therefore specifies the vector.
Definition 6.4.2 Let a and b be two vectors in R3 . Then a × b is defined by the following
two rules.
|b|sin(θ )
b
θ a
a × b = − (b × a) , a × a = 0, (6.22)
6.4. THE CROSS PRODUCT 87
For α a scalar,
(αa) ×b = α (a × b) = a× (αb) , (6.23)
For a, b, and c vectors, one obtains the distributive laws,
a× (b + c) = a × b + a × c, (6.24)
(b + c) × a = b × a + c × a. (6.25)
Formula 6.22 follows immediately from the definition. The vectors a × b and b × a
have the same magnitude, |a| |b| sin θ , and an application of the right hand rule shows they
have opposite direction. Formula 6.23 is also fairly clear. If α is a nonnegative scalar, the
direction of (αa) ×b is the same as the direction of a × b,α (a × b) and a× (αb) while
the magnitude is just α times the magnitude of a × b which is the same as the magnitude
of α (a × b) and a× (αb) . Using this yields equality in 6.23. In the case where α < 0,
everything works the same way except the vectors are all pointing in the opposite direction
and you must multiply by |α| when comparing their magnitudes. The distributive laws are
much harder to establish but the second follows from the first quite easily. Thus, assuming
the first, and using 6.22,
(b + c) × a = −a× (b + c) = − (a × b + a × c) = b × a + c × a.
A proof of the distributive law is given in a later section for those who are interested.
Now from the definition of the cross product,
i × j = k, j × i = −k
k × i = j, i × k = −j
j × k = i, k × j = −i
With this information, the following gives the coordinate description of the cross product.
Proof: From the above table and the properties of the cross product listed,
(a1 i + a2 j + a3 k) × (b1 i + b2 j + b3 k) =
a1 b2 i × j + a1 b3 i × k + a2 b1 j × i + a2 b3 j × k+
+a3 b1 k × i + a3 b2 k × j
= a1 b2 k − a1 b3 j − a2 b1 k + a2 b3 i + a3 b1 j − a3 b2 i
= (a2 b3 − a3 b2 ) i+ (a3 b1 − a1 b3 ) j+ (a1 b2 − a2 b1 ) k (6.27)
■
It is probably impossible for most people to remember 6.26. Fortunately, there is a
somewhat easier way to remember it.
i j k
a×b = a1 a2 a3 (6.28)
b1 b2 b3
88 CHAPTER 6. VECTOR PRODUCTS
where you expand the determinant along the top row. This yields
which is the same as 6.27. If you have not seen determinants, it doesn’t matter all you need
here is how to evaluate 2 × 2 and 3 × 3 determinants. First consider 2 × 2 determinants.
x y
= xw − yz
z w
and
a b c
y z x z x y
x y z =a −b +c .
v w u w u v
u v w
Here is the rule: You look at an entry in the top row and cross out the row and column
which contain that entry. If the entry is in the ith column, you multiply (−1)1+i times the
determinant of the 2 × 2 which remains. This is the cofactor. You take the element in the
top row times this cofactor and add all such terms. The rectangular array enclosed by the
vertical lines is called a matrix and will be discussed more later.
i j k
−1 2 1 2 1 −1
1 −1 2 = i− j+ k
−2 1 3 1 3 −2
3 −2 1
= 3i + 5j + k.
Example 6.4.5 Find the area of the parallelogram determined by the vectors
(i − j + 2k) , (3i − 2j + k) .
Example 6.4.6 Find the area of the triangle determined by (1, 2, 3) , (0, 2, 5) , and (5, 1, 2) .
This triangle is obtained by connecting the three points with lines. Picking (1, 2, 3) as
a starting point, there are two displacement vectors (−1, 0, 2) and (4, −1, −1) such that the
given vector added to these displacement vectors gives the other two vectors. The area of
the triangle is half the area of the parallelogram determined by (−1, 0, 2) and√ (4, −1, −1) .
Thus (−1, 0, 2) × (4, −1, −1) = (2, 7, 1) and so the area of the triangle is 21 4 + 49 + 1 =
3
√
2 6.
Observation 6.4.7 In general, if you have three points (vectors) in R3 , P, Q, R the area
of the triangle is given by
1
|(Q − P ) × (R − P )| .
2
6.4. THE CROSS PRODUCT 89
P R
a×b
c
θ b
a
You notice the area of the base of the parallelepiped, the parallelogram determined by
the vectors a and b has area equal to |a × b| while the altitude of the parallelepiped is
|c| cos θ where θ is the angle shown in the picture between c and a × b. Therefore, the
volume of this parallelepiped is the area of the base times the altitude which is just
|a × b| |c| cos θ = a × b · c.
This expression is known as the box product and is sometimes written as [a, b, c] . You
should consider what happens if you interchange the b with the c or the a with the c. You
can see geometrically from drawing pictures that this merely introduces a minus sign. In
any case the box product of three vectors always equals either the volume of the paral-
lelepiped determined by the three vectors or else minus this volume.
Example 6.4.9 Find the volume of the parallelepiped determined by the vectors i + 2j −
5k, i + 3j − 6k,3i + 2j + 3k.
According to the above discussion, pick any two of these, take the cross product and
then take the dot product of this with the third of these vectors. The result will be either the
desired volume or minus the desired volume.
i j k
(i + 2j − 5k) × (i + 3j − 6k) = 1 2 −5 = 3i + j + k
1 3 −6
90 CHAPTER 6. VECTOR PRODUCTS
Now take the dot product of this vector with the third which yields
Proof: This follows from observing that either (a × b) ·c and a· (b × c) both give the
volume of the parallelepiped or they both give −1 times the volume. ■
x · a× (b + c) = (x × a) · (b + c) = (x × a) · b+ (x × a) · c
= x · a × b + x · a × c = x· (a × b + a × c) .
Therefore,
x· [a× (b + c) − (a × b + a × c)] = 0
for all x. In particular, this holds for x = a× (b + c) − (a × b + a × c) and this shows that
the following holds: a× (b + c) = a × b + a × c and this proves the distributive law for
the cross product another way.
Observation 6.5.1 Suppose you have three vectors, u = (a, b, c) , v = (d, e, f ) , and w =
(g, h, i) . Then u · v × w is given by the following.
i j k
u·v×w = (a, b, c) · d e f
g h i
e f d f d e
= a −b +c
h i g i g h
a b c
= det d e f .
g h i
The message is that to take the box product, you can simply take the determinant of the
matrix which results by letting the rows be the rectangular components of the given vectors
in the order in which they occur in the box product.
6.5. PROOF OF THE DISTRIBUTIVE LAW 91
6.5.1 Torque
Imagine you are using a wrench to loosen a nut. The idea is to turn the nut by applying
a force to the end of the wrench. If you push or pull the wrench directly toward or away
from the nut, it should be obvious from experience that no progress will be made in turning
the nut. The important thing is the component of force perpendicular to the wrench. It is
this component of force which will cause the nut to turn. For example see the following
picture.
F
F⊥ θ
R
F
θ
In the picture a force, F is applied at the end of a wrench represented by the posi-
tion vector R and the angle between these two is θ . Then the tendency to turn will be
|R| |F ⊥ | = |R| |F | sin θ , which you recognize as the magnitude of the cross product of R
and F . If there were just one force acting at one point whose position vector is R, perhaps
this would be sufficient, but what if there are numerous forces acting at many different
points with neither the position vectors nor the force vectors in the same plane; what then?
To keep track of this sort of thing, define for each R and F, the torque vector
τ ≡ R×F.
This is also called the moment of the force, F . That way, if there are several forces acting
at several points the total torque can be obtained by simply adding up the torques associated
with the different forces and positions.
Example 6.5.2 Suppose R1 = 2i − j+3k, R2 = i+2 j− 6k meters and at the points de-
termined by these vectors there are forces, F 1 = i − j+2k and F 2 = i − 5j + k Newtons
respectively. Find the total torque about the origin produced by these forces acting at the
given points.
It is necessary to take R1 × F 1 + R2 × F 2 . Thus the total torque equals
i j k i j k
2 −1 3 + 1 2 −6 = −27i − 8j − 8k Newton meters
1 −1 2 1 −5 1
Example 6.5.3 Find if possible a single force vector F which if applied at the point
i + j + k will produce the same torque as the above two forces acting at the given points.
This is fairly routine. The problem is to find F = F1 i + F2 j + F3 k which produces the
above torque vector. Therefore,
i j k
1 1 1 = −27i − 8j − 8k
F1 F2 F3
92 CHAPTER 6. VECTOR PRODUCTS
F3 − F2 = −27, F1 − F3 = −8, F2 − F1 = −8
However, there is no solution to these three equations. (Why?) Therefore no single force
acting at the point i + j + k will produce the given torque.
Definition 6.5.4 Let an object consist of p point masses m1 , · · · , m p with the position of the
kth of these at Rk . The center of mass of this object R0 is the point satisfying
p
∑ (Rk − R0 ) × gmk u = 0
k=1
The above definition indicates that no matter how the object is suspended, the total
torque on it due to gravity is such that no rotation occurs. Using the properties of the cross
product !
p p
∑ Rk gmk − R0 ∑ gmk ×u = 0 (6.30)
k=1 k=1
for any choice of unit vector u. You should verify that if a × u = 0 for all u, then it must
be the case that a = 0. Then the above formula requires that
p p
∑ Rk gmk − R0 ∑ gmk = 0.
k=1 k=1
p
dividing by g, and then by ∑k=1 mk ,
p
∑k=1 Rk mk
R0 = p . (6.31)
∑k=1 mk
This is the formula for the center of mass of a collection of point masses. To consider
the center of mass of a solid consisting of continuously distributed masses, you need the
methods of calculus.
6.5. PROOF OF THE DISTRIBUTIVE LAW 93
Example 6.5.5 Let m1 = 5, m2 = 6, and m3 = 3 where the masses are in kilograms. Sup-
pose m1 is located at 2i + 3j + k, m2 is located at i − 3j + 2k and m3 is located at
2i − j + 3k. Find the center of mass of these three masses.
Using 6.31
5 (2i + 3j + k) + 6 (i − 3j + 2k) + 3 (2i − j + 3k) 11 3 13
R0 = = i− j + k
5+6+3 7 7 7
Example 6.5.7 A wheel rotates counter clockwise about the vector i + j + k at 60 revo-
lutions per minute. This means that if the thumb of your right hand were to point in the
direction of i + j + k your fingers of this hand would wrap in the direction of rotation.
Find the angular velocity vector for this wheel. Assume the unit of distance is meters and
the unit of time is minutes.
Example 6.5.8 A wheel rotates counter clockwise about the vector i + j + k at 60 rev-
olutions per minute exactly as in Example 6.5.7. Let {u1 , u2 , u3 } denote an orthogonal
right handed system attached to the rotating wheel in which u3 = √13 (i + j + k) . Thus
u1 and u2 depend on time. Find the velocity of the point of the wheel located at the point
2u1 + 3u2 − u3 . Note this point is not fixed in space. It is moving.
Since {u1 , u2 , u3 } is a right handed system like i, j, k, everything applies to this sys-
tem in the same way as with i, j, k. Thus the cross product is given by
u1 u2 u3
(au1 + bu2 + cu3 ) × (du1 + eu2 + f u3 ) = a b c
d e f
94 CHAPTER 6. VECTOR PRODUCTS
Therefore, in terms of the given vectors ui , the angular velocity vector is 120πu3 . The
velocity of the given point is
u1 u2 u3
0 0 120π = −360πu1 + 240πu2
2 3 −1
in meters per minute. Note how this gives the answer in terms of these vectors which are
fixed in the body, not in space. Since ui depends on t, this shows the answer in this case
does also. Of course this is right. Just think of what is going on with the wheel rotating.
Those vectors which are fixed in the wheel are moving in space. The velocity of a point in
the wheel should be constantly changing. However, its speed will not change. The speed
will be the magnitude of the velocity and this is
p
(−360πu1 + 240πu2 ) · (−360πu1 + 240πu2 )
i j k
v×w = v1 v2 v3 = (v2 w3 − v3 w2 ) i+ (w1 v3 − v1 w3 ) j+ (v1 w2 − v2 w1 ) k
w1 w2 w3
i j k
u× (v × w) = u1 u2 u3 .
(v2 w3 − v3 w2 ) (w1 v3 − v1 w3 ) (v1 w2 − v2 w1 )
i (v1 u2 w2 + u3 v1 w3 − w1 u2 v2 − u3 w1 v3 ) + j (v2 u1 w1 + v2 w3 u3 − w2 u1 v1 − u3 w2 v3 )
+k (u1 w1 v3 + v3 w2 u2 − u1 v1 w3 − v2 w3 u2 )
and if you are clever, you see right away that
Thus
u× (v × w) = v (u · w) − w (u · v) . (6.32)
6.6. VECTOR IDENTITIES AND NOTATION 95
A related formula is
(u × v) × w = − [w× (u × v)]
= − [u (w · v) − v (w · u)]
= v (w · u) − u (w · v) . (6.33)
This derivation is simply wretched and it does nothing for other identities which may arise
in applications. Actually, the above two formulas, 6.32 and 6.33 are sufficient for most
applications if you are creative in using them, but there is another way. This other way
allows you to discover such vector identities as the above without any creativity or any
cleverness. Therefore, it is far superior to the above nasty computation. It is a vector
identity discovering machine and it is this which is the main topic in what follows.
There are two special symbols, δ i j and ε i jk which are very useful in dealing with vector
identities. To begin with, here is the definition of these symbols.
Definition 6.6.1 The symbol δ i j , called the Kroneker delta symbol is defined as follows.
(
1 if i = j
δij ≡ .
0 if i ̸= j
With the Kroneker symbol i and j can equal any integer in {1, 2, · · · , n} for any n ∈ N.
Definition 6.6.2 For i, j, and k integers in the set, {1, 2, 3} , ε i jk is defined as follows.
1 if (i, j, k) = (1, 2, 3) , (2, 3, 1) , or (3, 1, 2)
ε i jk ≡ −1 if (i, j, k) = (2, 1, 3) , (1, 3, 2) , or (3, 2, 1) .
0 if there are any repeated integers
The subscripts i jk and i j in the above are called indices. A single one is called an index.
This symbol ε i jk is also called the permutation symbol.
The way to think of ε i jk is that ε 123 = 1 and if you switch any two of the numbers in the
list i, j, k, it changes the sign. Thus ε i jk = −ε jik and ε i jk = −ε k ji etc. You should check that
this rule reduces to the above definition. For example, it immediately implies that if there
is a repeated index, the answer is zero. This follows because ε ii j = −ε ii j and so ε ii j = 0.
It is useful to use the Einstein summation convention when dealing with these symbols.
Simply stated, the convention is that you sum over the repeated index. Thus ai bi means
∑i ai bi . Also, δ i j x j means ∑ j δ i j x j = xi . When you use this convention, there is one very
important thing to never forget. It is this: Never have an index be repeated more than once.
Thus ai bi is all right but aii bi is not. The reason for this is that you end up getting confused
about what is meant. If you want to write ∑i ai bi ci it is best to simply use the summation
notation. There is a very important reduction identity connecting these two symbols.
ε i jk ε irs = (δ jr δ ks − δ kr δ js ) .
Proof: If { j, k} ̸= {r, s} then every term in the sum on the left must have either ε i jk
or ε irs contains a repeated index. Therefore, the left side equals zero. The right side also
96 CHAPTER 6. VECTOR PRODUCTS
equals zero in this case. To see this, note that if the two sets are not equal, then there is one
of the indices in one of the sets which is not in the other set. For example, it could be that
j is not equal to either r or s. Then the right side equals zero.
Therefore, it can be assumed { j, k} = {r, s} . If i = r and j = s for s ̸= r, then there is
exactly one term in the sum on the left and it equals 1. The right also reduces to 1 in this
case. If i = s and j = r, there is exactly one term in the sum on the left which is nonzero and
it must equal -1. The right side also reduces to -1 in this case. If there is a repeated index in
{ j, k} , then every term in the sum on the left equals zero. The right also reduces to zero in
this case because then j = k = r = s and so the right side becomes (1) (1) − (−1) (−1) = 0.
■
Proof: The first claim is obvious from the definition of the dot product. The second is
verified by simply checking that it works. For example,
i j k
u×v ≡ u1 u2 u3
v1 v2 v3
and so
(u × v)1 = (u2 v3 − u3 v2 ) .
From the above formula in the proposition,
ε 1 jk u j vk ≡ u2 v3 − u3 v2 ,
the same thing. The cases for (u × v)2 and (u × v)3 are verified similarly. The last claim
follows directly from the definition. ■
With this notation, you can easily discover vector identities and simplify expressions
which involve the cross product.
(u × v) ×w = (u · w) v − (v · w) u.
6.7. PLANES 97
6.7 Planes
You have an idea of what a plane is already. It is the span of some vectors. However, it can
also be considered geometrically in terms of a dot product. To find the equation of a plane,
you need two things, a point contained in the plane and a vector normal to the plane. Let
p0 = (x0 , y0 , z0 ) denote the position vector of a point in the plane, let p = (x, y, z) be the
position vector of an arbitrary point in the plane, and let n denote a vector normal to the
plane. This means that
n· (p − p0 ) = 0
whenever p is the position vector of a point in the plane. The following picture illustrates
the geometry of this idea.
n
p
p0
Expressed equivalently, the plane is just the set of all points p such that the vector
p − p0 is perpendicular to the given normal vector n.
Example 6.7.1 Find the equation of the plane with normal vector n = (1, 2, 3) containing
the point (2, −1, 5) .
(1, 2, 3) · (x − 2, y + 1, z − 3) = x − 9 + 2y + 3z = 0
Example 6.7.2 2x + 4y − 5z = 11 is the equation of a plane. Find the normal vector and a
point on this plane.
Definition 6.7.3 Suppose two planes intersect in a line. The angle between the planes is
defined to be the angle which is no more than π/2 between normal vectors to the respective
planes.
Example 6.7.4 Find the angle between the two planes x + 2y − z = 6 and 3x + 2y − z = 7.
98 CHAPTER 6. VECTOR PRODUCTS
The two normal vectors are (1, 2, −1) and (3, 2, −1) . Therefore, the cosine of the angle
desired is
(1, 2, −1) · (3, 2, −1)
cos θ = q q = . 872 87
12 + 22 + (−1)2 32 + 22 + (−1)2
Now use a calculator or table to find what the angle is. cos θ = . 872 87, Solution is :
{θ = . 509 74} . This value is in radians.
Sometimes you need to find the equation of a plane which contains three points. Con-
sider the following picture.
(a2 , b2 , c2 )
(a0 , b0 , c0 ) a
(a1 , b1 , c1 )
You have plenty of points but you need a normal. This can be obtained by taking a × b
where a = (a1 − a0 , b1 − b0 , c1 − c0 ) and b = (a2 − a0 , b2 − b0 , c2 − c0 ) .
Example 6.7.5 Find the equation of the plane which contains the three points
(1, 2, 1) , (3, −1, 2) , and (4, 2, 1) .
You just need to get a normal vector to this plane. This can be done by taking the cross
products of the two vectors
(3, −1, 2) − (1, 2, 1) and (4, 2, 1) − (1, 2, 1)
Thus a normal vector is (2, −3, 1)×(3, 0, 0) = (0, 3, 9) . Therefore, the equation of the plane
is
0 (x − 1) + 3 (y − 2) + 9 (z − 1) = 0
or 3y + 9z = 15 which is the same as y + 3z = 5. When you have what you think is the
plane containing the three points, you ought to check it by seeing if it really does contain
the three points.
Example 6.7.6 Find the equation of the plane which contains the three points
(1, 2, 1) , (3, −1, 2) , and (4, 2, 1) .
You just need to get a normal vector to this plane. This can be done by taking the cross
products of the two vectors
(3, −1, 2) − (1, 2, 1) and (4, 2, 1) − (1, 2, 1)
Thus a normal vector is (2, −3, 1)×(3, 0, 0) = (0, 3, 9) . Therefore, the equation of the plane
is
0 (x − 1) + 3 (y − 2) + 9 (z − 1) = 0
or 3y + 9z = 15 which is the same as y + 3z = 5.
6.7. PLANES 99
Proof: One of a, b, c is nonzero. Suppose for example that c ̸= 0. Then the equation
can be written as
d
a (x − 0) + b (y − 0) + c z − =0
c
Therefore, 0, 0, dc is a point on the plane and a normal vector is ai+bj +ck. The converse
follows from the above discussion involving the point and a normal vector. ■
Example 6.7.8 Find the equation of the plane containing the points (1, 2, 3) and the line
(0, 1, 1) + t (2, 1, 2) = (x, y, z).
There are several ways to do this. One is to find three points and use the above pro-
cedures. Let t = 0 and then let t = 1 to get two points on the line. This yields the three
points (1, 2, 3) , (0, 1, 1) , and (2, 2, 3) . Then a normal vector is obtained by fixing a point
and taking the cross product of the differences of the other two points with that one. Thus
in this case, fixing (0, 1, 1) , a normal vector is
0 (x − 0) + 2 (y − 1) + (−1) (x − 3) = 0
Example 6.7.9 Find the equation of the plane which contains the two lines, given by the
following parametric expressions in which t ∈ R.
Note first that you don’t know there even is such a plane. However, if there is, you could
find it by obtaining three points, two on one line and one on another and then using any of
the above procedures for finding the plane. From the first line, two points are (0, 1, 1) and
(2, 2, 3) while a third point can be obtained from second line, (2, 1, 3) . You need a normal
vector and then use any of these points. To get a normal vector, form (2, 0, 2) × (2, 1, 2) =
(−2, 0, 2) . Therefore, the plane is −2x + 0 (y − 1) + 2 (z − 1) = 0. This reduces to z − x = 1.
If there is a plane, this is it. Now you can simply verify that both of the lines are really in
this plane. From the first, (1 + 2t) − 2t = 1 and the second, (3 + 2t) − (2t + 2) = 1 so both
lines lie in the plane.
One way to understand how a plane looks is to connect the points where it intercepts
the x, y, and z axes. This allows you to visualize the plane somewhat and is a good way to
sketch the plane. Not surprisingly these points are called intercepts.
Example 6.7.10 Sketch the plane which has intercepts (2, 0, 0) , (0, 3, 0) , and (0, 0, 4) .
100 CHAPTER 6. VECTOR PRODUCTS
z
x
You see how connecting the intercepts gives a fairly good geometric description of the
plane. These lines which connect the intercepts are also called the traces of the plane. Thus
the line which joins (0, 3, 0) to (0, 0, 4) is the intersection of the plane with the yz plane. It
is the trace on the yz plane.
6.8 Exercises
1. Show that if a × u = 0 for all unit vectors u, then a = 0.
2. If you only assume 6.30 holds for u = i, j, k, show that this implies 6.30 holds for
all unit vectors u.
3. Let m1 = 5, m2 = 1, and m3 = 4 where the masses are in kilograms and the distance
is in meters. Suppose m1 is located at 2i − 3j + k, m2 is located at i − 3j + 6k and
m3 is located at 2i + j + 3k. Find the center of mass of these three masses.
4. Let m1 = 2, m2 = 3, and m3 = 1 where the masses are in kilograms and the distance
is in meters. Suppose m1 is located at 2i − j + k, m2 is located at i − 2j + k and m3
is located at 4i + j + 3k. Find the center of mass of these three masses.
5. Find the angular velocity vector of a rigid body which rotates counter clockwise
about the vector i−2j + k at 40 revolutions per minute. Assume distance is mea-
sured in meters.
6. Let {u1 , u2 , u3 } be a right handed system with u3 pointing in the direction of
i−2j + k and u1 and u2 being fixed with the body which is rotating at 40 revo-
lutions per minute. Assuming all distances are in meters, find the constant speed of
the point of the body located at 3u1 + u2 − u3 in meters per minute.
7. Find the area of the triangle determined by the three points (1, 2, 3) , (4, 2, 0) and
(−3, 2, 1) .
8. Find the area of the triangle determined by the three points (1, 0, 3) , (4, 1, 0) and
(−3, 1, 1) .
6.8. EXERCISES 101
9. Find the area of the triangle determined by the three points (1, 2, 3) , (2, 3, 4) and
(0, 1, 2) . Did something interesting happen here? What does it mean geometrically?
10. Find the area of the parallelogram determined by the vectors (1, 2, 3) and (3, −2, 1) .
11. Find the area of the parallelogram determined by the vectors (1, 0, 3) and (4, −2, 1) .
12. Find the area of the parallelogram determined by the vectors (1, −2, 2) and (3, 1, 1) .
13. Find the volume of the parallelepiped determined by the vectors i−7j −5k, i−2j −
6k,3i + 2j + 3k.
14. Find the volume of the parallelepiped determined by the vectors i + j − 5k, i + 5j −
6k,3i + j + 3k.
15. Find the volume of the parallelepiped determined by the vectors i+6j +5k, i+5j −
6k,3i + j + k.
16. Suppose a, b, and c are three vectors whose components are all integers. Can you
conclude the volume of the parallelepiped determined from these three vectors will
always be an integer?
17. What does it mean geometrically if the box product of three vectors gives zero?
18. Find the equation of the plane through the three points (1, 2, 3) , (2, −3, 1) , (1, 1, 7) .
19. It is desired to find an equation of a plane containing the two vectors a and b and the
point 0. Using Problem 17, show an equation for this plane is
x y z
a1 a2 a3 =0
b1 b2 b3
a2 a3 a1 a3 a1 a2
x −y +z =0
b2 b3 b1 b3 b1 b2
20. Using the notion of the box product yielding either plus or minus the volume of the
parallelepiped determined by the given three vectors, show that
(a × b) ·c = a· (b × c)
In other words, the dot and the cross can be switched as long as the order of the
vectors remains the same. Hint: There are two ways to do this, by the coordinate
description of the dot and cross product and by geometric reasoning.
21. Is a× (b × c) = (a × b) × c? What is the meaning of a × b × c? Explain. Hint: Try
(i × j) ×j.
102 CHAPTER 6. VECTOR PRODUCTS
22. Verify directly that the coordinate description of the cross product a × b has the
property that it is perpendicular to both a and b. Then show by direct computation
that this coordinate description satisfies
where θ is the angle included between the two vectors. Explain why |a × b| has
the correct magnitude. All that is missing is the material about the right hand rule.
Verify directly from the coordinate description of the cross product that the right
thing happens with regards to the vectors i, j, k. Next verify that the distributive law
holds for the coordinate description of the cross product. This gives another way to
approach the cross product. First define it in terms of coordinates and then get the
geometric properties from this.
23. Discover a vector identity for u× (v × w) .
24. Discover a vector identity for (u × v) · (z × w) .
1
A−1
ks
= ε rps ε i jk A p j Ari .
2 det (A)
32. When you have a rotating rigid body with angular velocity vector Ω then the velocity,
u′ is given by u′ = Ω × u. It turns out that all the usual calculus rules such as the
product rule hold. Also, u′′ is the acceleration. Show using the product rule that for
Ω a constant vector
u′′ = Ω× (Ω × u) .
It turns out this is the centripetal acceleration. Note how it involves cross products.
33. Find the planes which go through the following collections of three points. In case
the plane is not well defined, explain why.
34. A point is given along with a line. Find the equation for the plane which contains the
line as well as the point.
Systems Of Equations
x + y = 7 and 2x − y = 8. (7.1)
The set of ordered pairs, (x, y) which solve both equations is called the solution set.
You can verify that (x, y) = (5, 2) is a solution to the above system. The interesting
question is this: If you were not given this information to verify, how could you determine
the solution? You can do this by using the following basic operations on the equations,
none of which change the set of solutions of the system of equations.
Definition 7.1.2 Elementary operations are those operations consisting of the following.
Example 7.1.3 To illustrate the third of these operations on this particular system, con-
sider the following.
x+y = 7
2x − y = 8
x+y = 7
.
−3y = −6
105
106 CHAPTER 7. SYSTEMS OF EQUATIONS
To obtain the second system, take the second equation of the first system and add −2 times
the first equation to obtain
−3y = −6.
Now, this clearly shows that y = 2 and so it follows from the other equation that x + 2 = 7
and so x = 5.
Of course a linear system may involve many equations and many variables. The so-
lution set is still the collection of solutions to the equations. In every case, the above
operations of Definition 7.1.2 do not change the set of solutions to the system of linear
equations.
Theorem 7.1.4 Suppose you have two equations, involving the variables,
(x1 , · · · , xn )
E1 = f1 , E2 = f2 (7.2)
where E1 and E2 are expressions involving the variables and f1 and f2 are constants. (In
the above example there are only two variables, x and y and E1 = x + y while E2 = 2x − y.)
Then the system E1 = f1 , E2 = f2 has the same solution set as
E1 = f1 , E2 + aE1 = f2 + a f1 . (7.3)
Also the system E1 = f1 , E2 = f2 has the same solutions as the system, E2 = f2 , E1 = f1 . The
system E1 = f1 , E2 = f2 has the same solution as the system E1 = f1 , aE2 = a f2 provided
a ̸= 0.
Proof: If (x1 , · · · , xn ) solves E1 = f1 , E2 = f2 then it solves the first equation in E1 =
f1 , E2 + aE1 = f2 + a f1 . Also, it satisfies aE1 = a f1 and so, since it also solves E2 = f2 it
must solve E2 + aE1 = f2 + a f1 . Therefore, if (x1 , · · · , xn ) solves E1 = f1 , E2 = f2 it must
also solve E2 + aE1 = f2 + a f1 . On the other hand, if it solves the system E1 = f1 and
E2 + aE1 = f2 + a f1 , then aE1 = a f1 and so you can subtract these equal quantities from
both sides of E2 +aE1 = f2 +a f1 to obtain E2 = f2 showing that it satisfies E1 = f1 , E2 = f2 .
The second assertion of the theorem which says that the system E1 = f1 , E2 = f2 has the
same solution as the system, E2 = f2 , E1 = f1 is seen to be true because it involves nothing
more than listing the two equations in a different order. They are the same equations.
The third assertion of the theorem which says E1 = f1 , E2 = f2 has the same solution
as the system E1 = f1 , aE2 = a f2 provided a ̸= 0 is verified as follows: If (x1 , · · · , xn ) is a
solution of E1 = f1 , E2 = f2 , then it is a solution to E1 = f1 , aE2 = a f2 because the second
system only involves multiplying the equation, E2 = f2 by a. If (x1 , · · · , xn ) is a solution
of E1 = f1 , aE2 = a f2 , then upon multiplying aE2 = a f2 by the number 1/a, you find that
E2 = f2 . ■
Stated simply, the above theorem shows that the elementary operations do not change
the solution set of a system of equations.
Here is an example in which there are three equations and three variables. You want to
find values for x, y, z such that each of the given equations are satisfied when these values
are plugged in to the equations.
Example 7.1.5 Find the solutions to the system,
x + 3y + 6z = 25
2x + 7y + 14z = 58 (7.4)
2y + 5z = 19
7.1. SYSTEMS OF EQUATIONS, ALGEBRAIC PROCEDURES 107
To solve this system replace the second equation by (−2) times the first equation added
to the second. This yields the system
x + 3y + 6z = 25
y + 2z = 8 (7.5)
2y + 5z = 19
Now take (−2) times the second and add to the third. More precisely, replace the third
equation with (−2) times the second added to the third. This yields the system
x + 3y + 6z = 25
y + 2z = 8 (7.6)
z=3
At this point, you can tell what the solution is. This system has the same solution as the
original system and in the above, z = 3. Then using this in the second equation, it follows
y + 6 = 8 and so y = 2. Now using this in the top equation yields x + 6 + 18 = 25 and so
x = 1. This process is called back substitution.
Alternatively, in 7.6 you could have continued as follows. Add (−2) times the bottom
equation to the middle and then add (−6) times the bottom to the top. This yields
x + 3y = 7, y = 2, z = 3
Now add (−3) times the second to the top. This yields
x = 1, y = 2, z = 3,
a system which has the same solution set as the original system. This avoided back substi-
tution and led to the same solution set.
0 2 5 | 19
0 2 5
spond to the equations in the system. Thus the top row in the augmented matrix corresponds
to the equation,
x + 3y + 6z = 25.
Now when you replace an equation with a multiple of another equation added to itself, you
are just taking a row of this augmented matrix and replacing it with a multiple of another
108 CHAPTER 7. SYSTEMS OF EQUATIONS
row added to it. Thus the first step in solving 7.4 would be to take (−2) times the first row
of the augmented matrix above and add it to the second row,
1 3 6 | 25
0 1 2 | 8 .
0 2 5 | 19
Note how this corresponds to 7.5. Next take (−2) times the second row and add to the
third,
1 3 6 | 25
0 1 2 |8
0 0 1 |3
This augmented matrix corresponds to the system
x + 3y + 6z = 25
y + 2z = 8
z=3
which is the same as 7.6. By back substitution you obtain the solution x = 1, y = 6, and
z = 3.
In general a linear system is of the form
a11 x1 + · · · + a1n xn = b1
..
. , (7.7)
am1 x1 + · · · + amn xn = bm
where the xi are variables and the ai j and bi are constants. This system can be represented
by the augmented matrix
a11 · · · a1n | b1
. .. .
.
. . | .. . (7.8)
am1 · · · amn | bm
How do you know when to stop doing row operations? You might stop when you have
obtained an echelon form as described above, but you certainly should stop doing row
operations if you have gotten a matrix in row reduced echelon form described next.
Example 7.1.9 Here are some matrices which are in row reduced echelon form.
1 0 0 0
1 0 0 5 8 0
0 0 1 0 0
0 1 2 7 0
, 0 0 1 0 .
0 0 0 0 0 1
0 0 0 1
0 0 0 0 0 0
0 0 0 0
Example 7.1.10 Here are matrices in echelon form which are not in row reduced echelon
form but which are in echelon form.
1 3 5 4
1 0 6 5 8 2
0 0 2 2 7 3 0 2 0 7
, 0 0 3 0
0 0 0 0 0 1
0 0 0 1
0 0 0 0 0 0
0 0 0 0
Example 7.1.11 Here are some matrices which are not in echelon form.
0 0 0 0
0 2 3 3
1 2 3 3 1 2 3
1 5 0 2
0 1 0 2 , 2 4 −6 , .
7 5 0 1
0 0 0 1 4 0 7
0 0 1 0
0 0 0 0
Definition 7.1.12 A pivot position in a matrix is the location of a leading entry in an ech-
elon form resulting from the application of row operations to the matrix. A pivot column is
a column that contains a pivot position.
110 CHAPTER 7. SYSTEMS OF EQUATIONS
4 4 4 10
Where are the pivot positions and pivot columns?
Replace the second row by −3 times the first added to the second. This yields
1 2 3 4
0 −4 −8 −6 .
4 4 4 10
This is not in reduced echelon form so replace the bottom row by −4 times the top row
added to the bottom. This yields
1 2 3 4
0 −4 −8 −6 .
0 −4 −8 −6
This is still not in reduced echelon form. Replace the bottom row by −1 times the middle
row added to the bottom. This yields
1 2 3 4
0 −4 −8 −6
0 0 0 0
which is in echelon form, although not in reduced echelon form. Therefore, the pivot
positions in the original matrix are the locations corresponding to the first row and first
column and the second row and second columns as shown in the following:
1 2 3 4
3 2 1 6
4 4 4 10
Thus the pivot columns in the matrix are the first two columns.
The following is the algorithm for obtaining a matrix which is in row reduced echelon
form.
Algorithm 7.1.14
This algorithm tells how to start with a matrix and do row operations on it in such a
way as to end up with a matrix in row reduced echelon form.
1. Find the first nonzero column from the left. This is the first pivot column. The
position at the top of the first pivot column is the first pivot position. Switch rows if
necessary to place a nonzero number in the first pivot position.
7.1. SYSTEMS OF EQUATIONS, ALGEBRAIC PROCEDURES 111
2. Use row operations to zero out the entries below the first pivot position.
3. Ignore the row containing the most recent pivot position identified and the rows above
it. Repeat steps 1 and 2 to the remaining sub-matrix, the rectangular array of numbers
obtained from the original matrix by deleting the rows you just ignored. Repeat the
process until there are no more rows to modify. The matrix will then be in echelon
form.
4. Moving from right to left, use the nonzero elements in the pivot positions to zero out
the elements in the pivot columns which are above the pivots.
5. Divide each nonzero row by the value of the leading entry. The result will be a matrix
in row reduced echelon form.
This row reduction procedure applies to both augmented matrices and non augmented
matrices. There is nothing special about the augmented column with respect to the row
reduction procedure.
Do row reductions till you obtain a matrix in echelon form. Then complete the process by
producing one in row reduced echelon form.
The pivot column is the second. Hence the pivot position is the one in the first row and
second column. Switch the first two rows to obtain a nonzero entry in this pivot position.
0 1 1 4 3
0 0 2 3 2
0 0 1 2 2
0 0 0 0 0
0 0 0 2 1
Step two is not necessary because all the entries below the first pivot position in the resulting
matrix are zero. Now ignore the top row and the columns to the left of this first pivot
position. Thus you apply the same operations to the smaller matrix
2 3 2
1 2 2
.
0 0 0
0 2 1
The next pivot column is the third corresponding to the first in this smaller matrix and the
second pivot position is therefore, the one which is in the second row and third column.
112 CHAPTER 7. SYSTEMS OF EQUATIONS
In this case it is not necessary to switch any rows to place a nonzero entry in this position
because there is already a nonzero entry there. Multiply the third row of the original matrix
by −2 and then add the second row to it. This yields
0 1 1 4 3
0 0 2 3 2
0 0 0 −1 −2 .
0 0 0 0 0
0 0 0 2 1
2 1
The first pivot column is the first column in this case and no switching of rows is necessary
because there is a nonzero entry in the first pivot position. Therefore, the algorithm yields
for the next step
0 1 1 4 3
0 0 2 3 2
0 0 0 −1 −2 .
0 0 0 0 0
0 0 0 0 −3
Now the algorithm will be applied to the matrix
!
0
−3
There is only one column and it is nonzero so this single column is the pivot column.
Therefore, the algorithm yields the following matrix for the echelon form.
0 1 1 4 3
0 0 2 3 2
0 0 0 −1 −2 .
0 0 0 0 −3
0 0 0 0 0
To complete placing the matrix in reduced echelon form, multiply the third row by 3 and
add −2 times the fourth row to it. This yields
0 1 1 4 3
0 0 2 3 2
0 0 0 −3 0
0 0 0 0 −3
0 0 0 0 0
7.1. SYSTEMS OF EQUATIONS, ALGEBRAIC PROCEDURES 113
Next multiply the second row by 3 and take 2 times the fourth row and add to it. Then add
the fourth row to the first.
0 1 1 4 0
0 0 6 9 0
0 0 0 −3 0 .
0 0 0 0 −3
0 0 0 0 0
Next work on the fourth column in the same way.
0 3 3 0 0
0 0 6 0 0
0 0 0 −3 0
0 0 0 0 −3
0 0 0 0 0
Take −1/2 times the second row and add to the first.
0 3 0 0 0
0 0 6 0 0
0 0 0 −3 0 .
0 0 0 0 −3
0 0 0 0 0
Finally, divide by the value of the leading entries in the nonzero rows.
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0 .
0 0 0 0 1
0 0 0 0 0
The above algorithm is the way a computer would obtain a reduced echelon form for
a given matrix. It is not necessary for you to pretend you are a computer but if you like
to do so, the algorithm described above will work. The main idea is to do row operations
in such a way as to end up with a matrix in echelon form or row reduced echelon form
because when this has been done, the resulting augmented matrix will allow you to describe
the solutions to the linear system of equations in a meaningful way. When you do row
operations until you obtain row reduced echelon form, the process is called the Gauss
Jordan method. Otherwise, it is called Gauss elimination.
Example 7.1.16 Give the complete solution to the system of equations, 5x+10y−7z = −2,
2x + 4y − 3z = −1, and 3x + 6y + 5z = 9.
The augmented matrix for this system is
2 4 −3 −1
5 10 −7 −2
3 6 5 9
114 CHAPTER 7. SYSTEMS OF EQUATIONS
Multiply the second row by 2, the first row by 5, and then take (−1) times the first row and
add to the second. Then multiply the first row by 1/5. This yields
2 4 −3 −1
0 0 1 1
3 6 5 9
Now, combining some row operations, take (−3) times the first row and add this to 2 times
the last row and replace the last row with this. This yields.
2 4 −3 −1
0 0 1 1 .
0 0 1 21
One more row operation, taking (−1) times the second row and adding to the bottom yields.
2 4 −3 −1
0 0 1 1 .
0 0 0 20
This is impossible because the last row indicates the need for a solution to the equation
0x + 0y + 0z = 20
and there is no such thing because 0 ̸= 20. This shows there is no solution to the three given
equations. When this happens, the system is called inconsistent. In this case it is very easy
to describe the solution set. The system has no solution.
Here is another example based on the use of row operations.
Example 7.1.17 Give the complete solution to the system of equations, 3x − y − 5z = 9,
y − 10z = 0, and −2x + y = −6.
The augmented matrix of this system is
3 −1 −5 9
0 1 −10 0
−2 1 0 −6
Replace the last row with 2 times the top row added to 3 times the bottom row combining
two row operations. This gives
3 −1 −5 9
0 1 −10 0 .
0 1 −10 0
The entry, 3 in this sequence of row operations is called the pivot. It is used to create
zeros in the other places of the column. Next take −1 times the middle row and add to the
bottom. Here the 1 in the second row is the pivot.
3 −1 −5 9
0 1 −10 0
0 0 0 0
7.1. SYSTEMS OF EQUATIONS, ALGEBRAIC PROCEDURES 115
Take the middle row and add to the top and then divide the top row which results by 3.
1 0 −5 3
0 1 −10 0 .
0 0 0 0
This is in reduced echelon form. The equations corresponding to this reduced echelon
form are y = 10z and x = 3 + 5z. Apparently z can equal any number. Lets call this number
t. 1 Therefore, the solution set of this system is x = 3 + 5t, y = 10t, and z = t where t is
completely arbitrary. The system has an infinite set of solutions which are given in the
above simple way. This is what it is all about, finding the solutions to the system.
There is some terminology connected to this which is useful. Recall how each column
corresponds to a variable in the original system of equations. The variables corresponding
to a pivot column are called basic variables. The other variables are called free variables.
In Example 7.1.17 there was one free variable, z, and two basic variables, x and y. In de-
scribing the solution to the system of equations, the free variables are assigned a parameter.
In Example 7.1.17 this parameter was t. Sometimes there are many free variables and in
these cases, you need to use many parameters. Here is another example.
x + 2y − z + w = 3
x+y−z+w = 1
x + 3y − z + w = 5
1 3 −1 1 5
Take −1 times the first row and add to the second. Then take −1 times the first row and
add to the third. This yields
1 2 −1 1 3
0 −1 0 0 −2
0 1 0 0 2
0 0 0 0 0
This matrix is in echelon form and you see the basic variables are x and y while the free
variables are z and w. Assign s to z and t to w. Then the second row yields the equation,
y = 2 while the top equation yields the equation, x + 2y − s + t = 3 and so since y = 2, this
1 In this context t is called a parameter.
116 CHAPTER 7. SYSTEMS OF EQUATIONS
0 0 0 0 0
Then the solution is y = 2 from the second row and x = −1 + z − w from the first. Thus
letting z = s and w = t, the solution is given in 7.10.
The number of free variables is always equal to the number of different parameters
used to describe the solution. If there are no free variables, then either there is no solution
as in the case where row operations yield an echelon form like
1 2 3
0 4 −2
0 0 1
or there is a unique solution as in the case where row operations yield an echelon form like
1 2 2 3
0 4 3 −2 .
0 0 4 1
Also, sometimes there are free variables and no solution as in the following:
1 2 2 3
0 4 3 −2 .
0 0 0 1
There are a lot of cases to consider but it is not necessary to make a major production of
this. Do row operations till you obtain a matrix in echelon form or reduced echelon form
and determine whether there is a solution. If there is, see if there are free variables. In this
case, there will be infinitely many solutions. Find them by assigning different parameters
to the free variables and obtain the solution. If there are no free variables, then there will
be a unique solution which is easily determined once the augmented matrix is in echelon
or row reduced echelon form. In every case, the process yields a straightforward way to
describe the solutions to the linear system. As indicated above, you are probably less likely
7.1. SYSTEMS OF EQUATIONS, ALGEBRAIC PROCEDURES 117
to become confused if you place the augmented matrix in row reduced echelon form rather
than just echelon form.
In summary,
where ai j are numbers, and b j is a number. The above is a system of m equations in the
n variables, x1 , x2 · · · , xn . Nothing is said about the relative size of m and n. Written more
simply in terms of summation notation, the above can be written in the form
n
∑ ai j x j = fi , i = 1, 2, 3, · · · , m
j=1
As illustrated above, such a system of linear equations may have a unique solution, no
solution, or infinitely many solutions and these are the only three cases which can occur for
any linear system. Furthermore, you do exactly the same things to solve any linear system.
You write the augmented matrix and do row operations until you get a simpler system in
which it is possible to see the solution, usually obtaining a matrix in echelon or reduced
echelon form. All is based on the observation that the row operations do not change the
solution set. You can have more equations than variables, fewer equations than variables,
etc. It doesn’t matter. You always set up the augmented matrix and go to work on it.
Definition 7.1.20 A system of linear equations is called consistent if there exists a solution.
It is called inconsistent if there is no solution.
These are reasonable words to describe the situations of having or not having a solution.
If you think of each equation as a condition which must be satisfied by the variables, con-
sistent would mean there is some choice of variables which can satisfy all the conditions.
Inconsistent would mean there is no choice of the variables which can satisfy each of the
conditions.
SnO2 + H2 → Sn + H2 O
Here the elements involved are tin Sn oxygen O and Hydrogen H. Some chemical reaction
happens and you end up with some tin and some water. The question is, how much do you
start with and how much do you end up with.
The balance of mass requires that you have the same number of oxygen, tin, and hy-
drogen on both sides of the reaction. However, this does not happen in the above. For
118 CHAPTER 7. SYSTEMS OF EQUATIONS
example, there are two oxygen atoms on the left and only one on the right. The problem is
to find numbers x, y, z, w such that
xSnO2 + yH2 → zSn + wH2 O
and both sides have the same number of atoms of the various substances. You can do this
in a systematic way by setting up a system of equations which will require that this take
place. Thus you need
Sn : x=z
O : 2x = w
H : 2y = 2w
The augmented matrix for this system of equations is then
1 0 −1 0 0
2 0 0 −1 0
0 2 0 −2 0
Row reducing this yields
1 0 0 − 21 0
0 1 0 −1 0
0 0 1 − 12 0
Thus you could let w = 2 and this would yield x = 1, y = 2, and z = 1. Hence, the description
of the reaction which has the same numbers of atoms on both sides would be
SnO2 + 2H2 → Sn + 2H2 O
You see that this preserves the total number of atoms and so the chemical equation is
balanced. Here is another example
Example 7.1.21 Potassium is denoted by K, oxygen by O, phosphorus by P and hydrogen
by H. The reaction is
KOH + H3 PO4 → K3 PO4 + H2 O
balance this equation.
You need to have
xKOH + yH3 PO4 → zK3 PO4 + wH2 O
Equations which preserve the total number of atoms of each element on both sides of the
equation are
K: x = 3z
O : x + 4y = 4z + w
H: x + 3y = 2w
P: y=z
The augmented matrix for this system is
1 0 −3 0 0
1 4 −4 −1 0
−2 0
1 3 0
0 1 −1 0 0
7.1. SYSTEMS OF EQUATIONS, ALGEBRAIC PROCEDURES 119
You could let w = 3 and this yields x = 3, y = 1, z = 1. Then the balanced equation is
Note that this results in the same number of atoms on both sides.
Of course these numbers you are finding would typically be the number of moles of the
molecules on each side. Thus three moles of KOH added to one mole of H3 PO4 yields one
mole of K3 PO4 and three moles of H2 O, water.
Note that in this example, you have a row of zeros. This means that some of the in-
formation in computing the appropriate numbers was redundant. If this can happen with a
single reaction, think how much more it could happen if you were dealing with hundreds
of reactions. This aspect of the problem can be understood later in terms of the rank of a
matrix.
For an introduction to the chemical considerations mentioned here, there is a nice site on
the web [Link] where there
is a sample test and examples of chemical reactions. For names of the various elements
symbolized by the various letters, you can go to the site
[Link] Chemical elements Of course
these things are in standard chemistry books, but if you have not seen much chemistry, these
sites give a nice introduction to these concepts.
A
θ B
The angle is called the angle of incidence, B is the span of the wing and A is called the
chord. Denote by l the lift. Then this should depend on various quantities like θ ,V, B, A
and so forth. Here is a table which indicates various quantities on which it is reasonable to
120 CHAPTER 7. SYSTEMS OF EQUATIONS
expect l to depend.
Here m denotes meters, sec refers to seconds and kg refers to kilograms. All of these
are likely familiar except for µ. One can simply decree that these are the dimensions of
something called viscosity but it might be better to consider this a little more.
Viscosity is a measure of how much internal friction is experienced when the fluid
moves. It is roughly a measure of how “sticky” the fluid is. Consider a piece of area
parallel to the direction of motion of the fluid. To say that the viscosity is large is to say
that the tangential force applied to this area must be large in order to achieve a given change
in speed of the fluid in a direction normal to the tangential force. Thus
Hence m
(units on µ) m2 = kg sec−2 m
sec m
Thus the units on µ are kg sec−1 m−1 as claimed above.
Then one would think that you would want
l = f (A, B, θ ,V,V0 , ρ, µ)
However, this is very cumbersome because it depends on seven variables. Also, it doesn’t
make very good sense. It is likely that without much care, a change in the units such as
going from meters to feet would result in an incorrect value for l. The way to get around
this problem is to look for l as a function of dimensionless variables multiplied by some-
thing which has units of force. It is helpful because first of all, you will likely have fewer
independent variables and secondly, you could expect the formula to hold independent of
the way of specifying length, mass and so forth. One looks for
l = f (g1 , · · · , gk ) ρV 2 AB
and each gi is independent of the dimensions. That is, this expression must not depend on
meters, kilograms, seconds, etc. Thus, placing in the units for each of these quantities, one
needs
x x
mx1 mx2 mx4 sec−x4 mx5 sec−x5 kgm−3 6 kg sec−1 m−1 7 = m0 kg0 sec0
Notice that there are no units on θ because it is just the radian measure of an angle. Hence
its dimensions consist of length divided by length, thus it is dimensionless. Then this leads
to the following equations for the xi .
m: x1 + x2 + x4 + x5 − 3x6 − x7 = 0
sec : −x4 − x5 − x7 = 0
kg : x6 + x7 = 0
0 0 0 0 0 1 1 0
0 0 0 0 0 1 1 0
Thus the free variables are x2 , x3 , x5 , x7 . By assigning values to these, we can obtain di-
mensionless variables by placing the values obtained for the xi in the formula 7.11. For
example, let x2 = 1 and all the rest of the free variables are 0. This yields
x1 = −1, x2 = 1, x3 = 0, x4 = 0, x5 = 0, x6 = 0, x7 = 0.
The dimensionless variable is then A−1 B1 . This is the ratio between the span and the chord.
It is called the aspect ratio, denoted as AR. Next let x3 = 1 and all others equal zero. This
122 CHAPTER 7. SYSTEMS OF EQUATIONS
gives for a dimensionless quantity the angle θ . Next let x5 = 1 and all others equal zero.
This gives
x1 = 0, x2 = 0, x3 = 0, x4 = −1, x5 = 1, x6 = 0, x7 = 0.
Then the dimensionless variable is V −1V01 . However, it is written as V /V0 . This is called
the Mach number M . Finally, let x7 = 1 and all the other free variables equal 0. Then
x1 = −1, x2 = 0, x3 = 0, x4 = −1, x5 = 0, x6 = −1, x7 = 1
then the dimensionless variable which results from this is A−1V −1 ρ −1 µ. It is customary to
write it as Re = (AV ρ) /µ. This one is called the Reynolds number. It is the one which
involves viscosity. Thus we would look for
l = f (Re, AR, θ , M ) kg × m/ sec2
This is quite interesting because it is easy to vary Re by simply adusting the velocity or A
but it is hard to vary things like µ or ρ. Note that all the quantities are easy to adjust. Now
this could be used, along with wind tunnel experiments to get a formula for the lift which
would be reasonable. Obviously, you could consider more variables and more complicated
situations in the same way.
7.3 Exercises
1. Find the point (x1 , y1 ) which lies on both lines, x + 3y = 1 and 4x − y = 3.
2. Solve Problem 1 graphically. That is, graph each line and see where they intersect.
3. Find the point of intersection of the two lines 3x + y = 3 and x + 2y = 1.
4. Solve Problem 3 graphically. That is, graph each line and see where they intersect.
5. Do the three lines, x + 2y = 1, 2x − y = 1, and 4x + 3y = 3 have a common point of
intersection? If so, find the point and if not, tell why they don’t have such a common
point of intersection.
6. Do the three planes, x + y − 3z = 2, 2x + y + z = 1, and 3x + 2y − 2z = 0 have a
common point of intersection? If so, find one and if not, tell why there is no such
point.
7. You have a system of k equations in two variables, k ≥ 2. Explain the geometric
significance of
(a) No solution.
(b) A unique solution.
(c) An infinite number of solutions.
0 0 0 0 ■ | ∗
0 0 ■ | ∗
10. Here is an augmented matrix in which ∗ denotes an arbitrary number and ■ denotes
a nonzero number. Determine whether the given augmented matrix is consistent. If
consistent, is the solution unique?
■ ∗ ∗ ∗ ∗ | ∗
0 ■ 0 ∗ 0 | ∗
0 0 0 ■ ∗ | ∗
0 0 0 0 ■ | ∗
124 CHAPTER 7. SYSTEMS OF EQUATIONS
11. Here is an augmented matrix in which ∗ denotes an arbitrary number and ■ denotes
a nonzero number. Determine whether the given augmented matrix is consistent. If
consistent, is the solution unique?
■ ∗ ∗ ∗ ∗ | ∗
0 ■ ∗ ∗ 0 | ∗
0 0 ■ | 0
0 0
0 0 0 0 ∗ | ■
12. Suppose a system of equations has fewer equations than variables. Must such a
system be consistent? If so, explain why and if not, give an example which is not
consistent.
13. If a system of equations has more equations than variables, can it have a solution? If
so, give an example and if not, tell why not.
14. Find h such that !
2 h | 4
3 6 | 7
is the augmented matrix of an inconsistent matrix.
15. Find h such that !
1 h | 3
2 4 | 6
is the augmented matrix of a consistent matrix.
16. Find h such that !
1 1 | 4
3 h | 12
is the augmented matrix of a consistent matrix.
17. Choose h and k such that the augmented matrix shown has one solution. Then choose
h and k such that the system has no solutions. Finally, choose h and k such that the
system has infinitely many solutions.
!
1 h | 2
.
2 4 | k
18. Choose h and k such that the augmented matrix shown has one solution. Then choose
h and k such that the system has no solutions. Finally, choose h and k such that the
system has infinitely many solutions.
!
1 2 | 2
.
2 h | k
7.3. EXERCISES 125
x + 2y + z − w = 2
x−y+z+w = 1
2x + y − z = 1
4x + 2y + z = 5
x + 2y + z − w = 2
x−y+z+w = 0
2x + y − z = 1
4x + 2y + z = 3
21. Find the general solution of the system whose augmented matrix is
1 2 0 | 2
1 3 4 | 2 .
1 0 2 | 1
22. Find the general solution of the system whose augmented matrix is
1 2 0 | 2
2 0 1 | 1 .
3 2 1 | 3
23. Find the general solution of the system whose augmented matrix is
!
1 1 0 | 1
.
1 0 4 | 2
24. Find the general solution of the system whose augmented matrix is
1 0 2 1 1 | 2
0 1 0 1 2 | 1
.
|
1 2 0 0 1 3
1 0 1 0 2 | 2
25. Find the general solution of the system whose augmented matrix is
1 0 2 1 1 | 2
0 1 0 1 2 | 1
.
|
0 2 0 0 1 3
1 −1 2 2 2 | 0
126 CHAPTER 7. SYSTEMS OF EQUATIONS
26. Give the complete solution to the system of equations, 7x + 14y + 15z = 22, 2x +
4y + 3z = 5, and 3x + 6y + 10z = 13.
27. Give the complete solution to the system of equations, 3x − y + 4z = 6, y + 8z = 0,
and −2x + y = −4.
28. Give the complete solution to the system of equations, 9x − 2y + 4z = −17, 13x −
3y + 6z = −25, and −2x − z = 3.
29. Give the complete solution to the system of equations, 65x + 84y + 16z = 546, 81x +
105y + 20z = 682, and 84x + 110y + 21z = 713.
36. Four times the weight of Gaston is 150 pounds more than the weight of Ichabod.
Four times the weight of Ichabod is 660 pounds less than seventeen times the weight
of Gaston. Four times the weight of Gaston plus the weight of Siegfried equals 290
pounds. Brunhilde would balance all three of the others. Find the weights of the four
sisters.
37. The steady state temperature, u in a plate solves Laplace’s equation, ∆u = 0. One way
to approximate the solution which is often used is to divide the plate into a square
mesh and require the temperature at each node to equal the average of the temperature
at the four adjacent nodes. This procedure is justified by the mean value property of
harmonic functions. In the following picture, the numbers represent the observed
temperature at the indicated nodes. Your task is to find the temperature at the interior
nodes, indicated by x, y, z, and w. One of the equations is z = 41 (10 + 0 + w + x).
30 30
20 y w 0
20 x z 0
10 10
7.3. EXERCISES 127
3Ω 20 volts 1 Ω
I2 I3
5 volts 5Ω 1Ω
2Ω 6Ω
I1 I4
10 volts 1Ω 3Ω
4Ω 2Ω
Those jagged places denote resistors and the numbers next to them give their resis-
tance in ohms, written as Ω. The breaks in the lines having one short line and one
long line denote a voltage source which causes the current to flow in the direction
which goes from the longer of the two lines toward the shorter along the unbroken
part of the circuit. The current in amps in the four circuits is denoted by I1 , I2 , I3 , I4
and it is understood that the motion is in the counter clockwise direction. If Ik ends
up being negative, then it just means the current flows in the clockwise direction.
Then Kirchhoff’s law states that
The sum of the resistance times the amps in the counter clockwise direction around
a loop equals the sum of the voltage sources in the same direction around the loop.
In the above diagram, the top left circuit should give the equation
Write equations for each of the other two circuits and then give a solution to the
resulting system of equations. You might use a computer algebra system to find the
solution. It might be more convenient than doing it by hand.
39. Consider the following diagram of three circuits.
128 CHAPTER 7. SYSTEMS OF EQUATIONS
3Ω 12 volts 7 Ω
I1 I2
10 volts 5Ω 3Ω
2Ω 1Ω
I3
2Ω 4Ω
4Ω
Those jagged places denote resistors and the numbers next to them give their resis-
tance in ohms, written as Ω. The breaks in the lines having one short line and one
long line denote a voltage source which causes the current to flow in the direction
which goes from the longer of the two lines toward the shorter along the unbroken
part of the circuit. The current in amps in the four circuits is denoted by I1 , I2 , I3 and
it is understood that the motion is in the counter clockwise direction. If Ik ends up
being negative, then it just means the current flows in the clockwise direction. Then
Kirchhoff’s law states that
The sum of the resistance times the amps in the counter clockwise direction around
a loop equals the sum of the voltage sources in the same direction around the loop.
Find I1 , I2 , I3 .
40. Here are some chemical reactions. Balance them.
41. In the section on dimensionless variables 119 it was observed that ρV 2 AB has the
units of force. Describe a systematic way to obtain such combinations of the vari-
ables which will yield something which has the units of force.
Chapter 8
Matrices
6 −9 1 2
The size or dimension of a matrix is defined as m × n where m is the number of rows and
n is the number of columns. The above matrix is a 3 × 4 matrix because there are three
rows and four columns. The first row is (1 2 3 4) , the second row is (5 2 8 7) and so forth.
1
The first column is 5 . When specifying the size of a matrix, you always list the
6
number of rows before the number of columns. Also, you can remember the columns are
like columns in a Greek temple. They stand upright while the rows just lie there like rows
made by a tractor in a plowed field. Elements of the matrix are identified according to
position in the matrix. For example, 8 is in position 2, 3 because it is in the second row and
the third column. You might remember that you always list the rows before the columns
by using the phrase Rowman Catholic. The symbol, (ai j ) refers to a matrix. The entry in
the ith row and the jth column of this matrix is denoted by ai j . Using this notation on the
above matrix, a23 = 8, a32 = −9, a12 = 2, etc.
There are various operations which are done on matrices. Matrices can be added mul-
tiplied by a scalar, and multiplied by other matrices. To illustrate scalar multiplication,
129
130 CHAPTER 8. MATRICES
consider the following example in which a matrix is being multiplied by the scalar 3.
1 2 3 4 3 6 9 12
3 5 2 8 7 = 15 6 24 21 .
6 −9 1 2 18 −27 3 6
The new matrix is obtained by multiplying every entry of the original matrix by the given
scalar. If A is an m × n matrix, −A is defined to equal (−1) A.
Two matrices must be the same size to be added. The sum of two matrices is a matrix
which is obtained by adding the corresponding entries. Thus
1 2 −1 4 0 6
3 4 + 2 8 = 5 12 .
5 2 6 −4 11 −2
Two matrices are equal exactly when they are the same size and the corresponding entries
are identical. Thus
0 0 !
0 0
0 0 ̸=
0 0
0 0
because they are different sizes. As noted above, you write (ci j ) for the matrix C whose
i jth entry is ci j . In doing arithmetic with matrices you must define what happens in terms
of the ci j sometimes called the entries of the matrix or the components of the matrix.
The above discussion stated for general matrices is given in the following definition.
Definition 8.1.3 (Addition) If A = (ai j ) and B = (bi j ) are two m×n matrices. Then A+B =
C where
C = (ci j )
for ci j = ai j + bi j .
Example 8.1.4
! ! !
1 2 3 5 2 3 6 4 6
+ =
1 0 4 −6 2 1 −5 2 5
To save on notation, we will often use Ai j to refer to the i jth entry of the matrix A.
Definition 8.1.5 (The zero matrix) The m × n zero matrix is the m × n matrix having every
entry equal to zero. It is denoted by 0.
!
0 0 0
Example 8.1.6 The 2 × 3 zero matrix is .
0 0 0
8.1. ADDITION AND SCALAR MULTIPLICATION OF MATRICES 131
Note there are 2 × 3 zero matrices, 3 × 4 zero matrices, etc. In fact there is a zero matrix
for every size.
Definition 8.1.7 (Equality of matrices) Let A and B be two matrices. Then A = B means
that the two matrices are of the same size and for A = (ai j ) and B = (bi j ) , ai j = bi j for all
1 ≤ i ≤ m and 1 ≤ j ≤ n.
The following properties of matrices can be easily verified. You should do so. These
properties are called the vector space axioms.
A + B = B + A, (8.1)
(A + B) +C = A + (B +C) , (8.2)
A + 0 = A, (8.3)
A + (−A) = 0, (8.4)
α (A + B) = αA + αB, (8.5)
(α + β ) A = αA + β A, (8.6)
α (β A) = αβ (A) , (8.7)
The rules for adding and multiplying by a constant remain the same. To add, you add
corresponding entries and to multiply by a scalar, you multiply every entry by the scalar.
Consider the following system of equations:
x+y = 1
2x − y + z = 2
x+y = 1
1 1 0 1
That expression on the left is called a linear combination of the three vectors listed there
whenever x, y, z are numbers. Another way to write it is
1 1 0 x 1
2 −1 1 y = 2
1 1 0 z 1
The rows of the above matrix are 1 1 0 , 2 −1 1 , 1 1 0 . The columns
1 1 0
of this matrix are 2 , −1 , 1 . It is called a 3 × 3 matrix because it has
1 1 0
three rows and three columns. More generally, we have the following definition.
8.2. MULTIPLICATION OF MATRICES 133
Definition 8.2.1 An m × n matrix is a rectangular array of numbers which has m rows and
n columns. We write this as
A11 A12 · · · A1n
A21 A22 · · · A2n
A= .
.. ..
..
. .
Am1 An2 · · · Amn
Thus the entry in the ith row and the jth column is denoted as Ai j . As suggested above,
A11 A12 · · · A1n x1
A21 A22 · · · A2n x2
Ax= .. .. .. ..
. . . .
Am1 An2 · · · Amn xn
A11 A12 A1n
A21 A22 A2n
= x1 . + x2 . + · · · + xn .
.. .. ..
In other words, the ith entry of Ax is the dot product of the ith row of A with the vector x.
Symbolically,
(Ax)i = ∑ Ai j x j (8.9)
j
We like to write x to denote an n × 1 matrix which is often called a vector. Then xT will
denote a 1 × n matrix or row vector.
Example 8.2.2
! x1
1 2 1
x2
1 0 2
x3
! ! ! !
1 2 1 x1 + 2x2 + x3
= x1 + x2 + x3 =
1 0 2 x1 + 2x3
Note that if A is m × n then Ax is an m × 1 matrix provided x is n × 1. Thus A makes a
vector in Fn into a vector in Fm .
Example 8.2.3 Show the following:
1 −1 2 1 5
3 2 1 2 = 10
2 3 −3 3 −1
134 CHAPTER 8. MATRICES
x + 2y − z = 2
x − 3y + z = 1
in the form Ax = b.
The following is the most fundamental observation about multiplying a matrix times a
vector.
Theorem 8.2.5 Let A be an m × n matrix and let x, y be two vectors in Fn with a, b two
scalars. Then
A (ax + by) = aAx + bAy
Since the ith entries coincide, it follows that A (ax + by) = aAx + bAy as claimed. ■
0 0 1
Observation 8.2.7 Let A be an m × n matrix. Then for ei ∈ Fn , Aei delivers the ith column
of A. To see this,
(Aei )k = ∑ Ak j (ei ) j = Aki
j
because (ei ) j = 0 unless j = i when it is 1. Thus, for k arbitrary, the kth entry of Aei is Aki .
Thus the result of multiplying by ei is
T
A1i A2i ··· Ani
8.3. LINEAR TRANSFORMATIONS AND MATRICES 135
which is indeed the ith column. Another way to see this is to let
A = a1 · · · ai · · · an ,
0
.
.
.
Aei = a1 · · · ai · · · an 1 = 1ai = ai
..
.
0
x = x1 e1 + · · · + xn en
It follows that, since T is linear,
x1
..
T x = T (x1 e1 + · · · + xn en ) = x1 T e1 + · · · + xn T en = T e1 ··· T en
.
xn
and so the matrix which does what is claimed is the one whose ith column is T ei . That is
A x = T e1 · · · T en x ■
136 CHAPTER 8. MATRICES
If this is to hold for all choices of x, then it must also hold for x = er . Thus the ith entry
of the rth column is (AB) er and using this, we obtain
!
(AB)ir = ∑ ∑ Aik Bkl (er )l = ∑ Aik Bkr
l k k
Example 8.4.5
!T 1 3
1 2 −6
= 2 5 .
3 5 4
−6 4
(AB)T = BT AT (8.14)
The proof of Formula 8.15 is left as an exercise and this proves the lemma. ■
3 −3 7
Then A is symmetric.
−3 −2 0
Then A is skew symmetric.
8.5.1 Rotations in R2
Sometimes you need to find a matrix which represents a given linear transformation which
is described in geometrical terms. The idea is to produce a matrix which you can multiply
a vector by to get the same thing as some geometrical description. A good example of this
is the problem of rotation of vectors discussed above. Consider the problem of rotating
through an angle of θ .
Example 8.5.1 Determine the matrix which represents the linear transformation defined
by rotating every vector through an angle of θ .
! !
1 0
Let e1 ≡ and e2 ≡ . These identify the geometric vectors which point
0 1
along the positive x axis and positive y axis as shown.
e2
(−sin(θ ), cos(θ )) (cos(θ ), sin(θ ))
T (e1 )
T (e2 )
θ
θ
e1
From the above, you only need to find T e1 and T e2 , the first being the first column of
the desired matrix, A and the second being the second column. From the definition of the
140 CHAPTER 8. MATRICES
cos, sin the coordinates of T (e1 ) are as shown in the picture. The coordinates of T (e2 ) also
follow from simple trigonometry. Thus
! !
cos θ − sin θ
T e1 = , T e2 = .
sin θ cos θ
For those who prefer a more algebraic approach, the definition of (cos (θ ) , sin (θ )) is
as the x and y coordinates of the point (1, 0) . Now the point of the vector from (0, 0) to
(0, 1), e2 is exactly π/2 further along along the unit circle. Therefore, when it is rotated
through an angle of θ the x and y coordinates are given by
Example 8.5.2 Find the matrix of the linear transformation which is obtained by first ro-
tating all vectors through an angle of φ and then through an angle θ . Thus you want the
linear transformation which rotates all angles through an angle of θ + φ .
Let Tθ +φ denote the linear transformation which rotates every vector through an angle
of θ + φ . Then to get Tθ +φ , you could first do Tφ and then do Tθ where Tφ is the linear
transformation which rotates through an angle of φ and Tθ is the linear transformation
which rotates through an angle of θ . Denoting the corresponding matrices by Aθ +φ , Aφ ,
and Aθ , you must have for every x
Aθ +φ x = Tθ +φ x = Tθ Tφ x = Aθ Aφ x.
You know how to multiply matrices. Do so to the pair on the right. This yields
!
cos (θ + φ ) − sin (θ + φ )
sin (θ + φ ) cos (θ + φ )
!
cos θ cos φ − sin θ sin φ − cos θ sin φ − sin θ cos φ
= .
sin θ cos φ + cos θ sin φ cos θ cos φ − sin θ sin φ
Don’t these look familiar? They are the usual trig. identities for the sum of two angles
derived here using linear algebra concepts.
You do not have to stop with two dimensions. You can consider rotations and other
geometric concepts in any number of dimensions. This is one of the major advantages
8.5. SOME EXAMPLES OF LINEAR FUNCTIONS ON Rn 141
of linear algebra. You can break down a difficult geometrical procedure into small steps,
each corresponding to multiplication by an appropriate matrix. Then by multiplying the
matrices, you can obtain a single matrix which can give you numerical information on the
results of applying the given sequence of simple procedures. That which you could never
visualize can still be understood to the extent of finding exact numerical answers. Another
example follows.
Example 8.5.3 Find the matrix of the linear transformation which is obtained by first ro-
tating all vectors through an angle of π/6 and then reflecting through the x axis.
As shown in Example 8.5.2, the matrix of the transformation which involves rotating
through an angle of π/6 is
!
1
√ !
cos (π/6) − sin (π/6) 2 3 − 12
= 1 1
√
sin (π/6) cos (π/6) 2 2 3
The matrix for the transformation which reflects all vectors through the x axis is
!
1 0
.
0 −1
Therefore, the matrix of the linear transformation which first rotates through π/6 and then
reflects through the x axis is
!
1
√ 1
!
1
√ 1
!
1 0 2 3 − 3 −
1 1
√2 = 2 √2 .
0 −1 2 2 3 − 12 − 12 3
8.5.2 Projections
In Physics it is important to consider the work done by a force field on an object. This
involves the concept of projection onto a vector. Suppose you want to find the projection of
a vector, v onto the given vector, u, denoted by P u (v) This is done using the dot product
as follows. v·u
P u (v) = u
u·u
Because of properties of the dot product, the map v → P u (v) is linear,
α v+ β w · u v·u w ·u
P u (α v+ β w) = u=α u+β u
u·u u·u u·u
= αP u (v) + β P u (w) .
Example 8.5.4 Let the projection map be defined above and let u = (1, 2, 3)T . Does this
linear transformation come from multiplication by a matrix? If so, what is the matrix?
You can find this matrix in the same way as in the previous example. Let ei denote the
vector in Rn which has a 1 in the ith position and a zero everywhere else. Thus a typical
vector, x = (x1 , · · · , xn )T can be written in a unique way as
n
x= ∑ x je j.
j=1
142 CHAPTER 8. MATRICES
From the way you multiply a matrix by a vector, it follows that P u (ei ) gives the ith column
of the desired matrix. Therefore, it is only necessary to find
e ·u
i
P u (ei ) ≡ u
u·u
For the given vector in the example, this implies the columns of the desired matrix are
1 1 1
1 2 3
2 , 2 , 2 .
14 14 14
3 3 3
w u
b
−q c
−√ a a
a2 +b2 (a2 +b2 )
a
√ −q c
b b .
a2 +b2 (a2 +b2 )
2 2
0 √a +b c
a2 +b2
Its inverse is
−q 1 1
b q a 0
(a2 +b2 ) ( )
a2 +b2
p
−q c a −q c b (a2 + b2 )
(a2 +b2 ) (a2 +b2 )
a b c
− √ 2b 2 − q c
a a
a +b (a +b )
2 2
cos θ − sin θ 0
√ a − c
b b 0 ·
sin θ cos θ
q
a2 +b2 (a 2 +b 2 )
2
√a +b
2
0 0 1
0 2 2
c
a +b
−q 1 1
b q a 0
(a2 +b2 ) ( )
a2 +b2
p
−q c a −q c b (a2 + b2 )
(a2 +b2 ) (a2 +b2 )
a b c
This yields a matrix whose columns are
b2 cos θ +c2 a2 cos θ +a4 +a2 b2
a2 +b2
−ba cos θ +cb2 sin θ +ca2 sin θ +c2 ab cos θ +ba3 +b3 a
,
a2 +b2
− (sin θ ) b − (cos θ ) ca + ca
−ba cos θ −ca2 sin θ −cb2 sin θ +c2 ab cos θ +ba3 +b3 a
a2 +b2
a2 cos θ +c2 b2 cos θ +a2 b2 +b4
,
a2 +b2
(sin θ ) a − (cos θ ) cb + cb
(sin θ ) b − (cos θ ) ca + ca
− (sin θ ) a − (cos θ ) cb + cb
a2 + b2 cos θ + c2
(sin θ ) b − (cos θ ) ca + ca
− (sin θ ) a − (cos θ ) cb + cb
1 − c2 cos θ + c2
This was done under the assumption that |c| = ̸ 1. However, if this condition does not
hold, you can verify directly that the above still gives the correct answer.
The first is the 1 × 1 identity matrix, the second is the 2 × 2 identity matrix, the third is the
3 × 3 identity matrix, and the fourth is the 4 × 4 identity matrix. By extension, you can
likely see what the n × n identity matrix would be. It is so important that there is a special
symbol to denote the i jth entry of the identity matrix Ii j = δ i j where δ i j is the Kronecker
symbol defined by (
1 if i = j
δij =
0 if i ̸= j
It is called the identity matrix because it is a multiplicative identity in the following
sense.
Proof:
(AIn )i j = ∑ Aik δ k j = Ai j
k
Definition 8.6.2 An n × n matrix A has an inverse, A−1 if and only if AA−1 = A−1 A = I.
Such a matrix is called invertible.
It is very important to observe that the inverse of a matrix, if it exists, is unique. Another
way to think of this is that if it acts like the inverse, then it is the inverse.
Proof:
A−1 = A−1 I = A−1 (AB) = A−1 A B = IB = B. ■
Unlike ordinary multiplication of numbers, it can happen that A ̸= 0 but A may fail to
have an inverse. This is illustrated in the following example.
!
1 1
Example 8.6.4 Let A = . Does A have an inverse?
1 1
One might think A would have an inverse because it does not equal zero. However,
! ! !
1 1 −1 0
=
1 1 1 0
and if A−1 existed, this could not happen because you could write
! !! !!
0 −1 0 −1 −1
=A =A A =
0 0 1
! ! !
−1
−1 −1 −1
= A A =I = ,
1 1 1
a contradiction. Thus the answer is that A does not have an inverse.
! !
1 1 2 −1
Example 8.6.5 Let A = . Show is the inverse of A.
1 2 −1 1
and ! ! !
2 −1 1 1 1 0
=
−1 1 1 2 0 1
showing that this matrix is indeed the inverse of A.
x + y = 1, x + 2y = 0
146 CHAPTER 8. MATRICES
and
z + w = 0, z + 2w = 1.
Writing the augmented matrix for these two systems gives
!
1 1 | 1
(8.16)
1 2 | 0
Didn’t the above seem rather repetitive? Note that exactly the same row operations
were used in both systems. In each case, the end result was something of the ! form (I|v)
x
where I is the identity and v gave a column of the inverse. In the above, , the first
y
!
z
column of the inverse was obtained first and then the second column .
w
To simplify this procedure, you could have written
!
1 1 | 1 0
1 2 | 0 1
8.6. THE INVERSE OF A MATRIX 147
3 1 −1
Set up the augmented matrix (A|I)
1 2 2 | 1 0 0
1 0 2 | 0 1 0
3 1 −1 | 0 0 1
Next take (−1) times the first row and add to the second followed by (−3) times the first
row added to the last. This yields
1 2 2 | 1 0 0
0 −2 0 | −1 1 0 .
0 −5 −7 | −3 0 1
Then take 5 times the second row and add to -2 times the last row.
1 2 2 | 1 0 0
0 −10 0 | −5 5 0
0 0 14 | 1 5 −2
Next take the last row and add to (−7) times the top row. This yields
−7 −14 0 | −6 5 −2
0 −10 0 | −5 5 0 .
0 0 14 | 1 5 −2
Now take (−7/5) times the second row and add to the top.
−7 0 0 | 1 −2 −2
0 −10 0 | −5 5 0 .
0 0 14 | 1 5 −2
Finally divide the top row by -7, the second row by -10 and the bottom row by 14 which
yields
1 0 0 | − 71 2
7
2
7
1
0 1 0 | − 12 0 .
2
1 5
1
0 0 1 | −7
14 14
2 2 4
2 2 4 | 0 0 1
and proceed to do row operations attempting to obtain I|A−1 . Take (−1) times the top
row and add to the second. Then take (−2) times the top row and add to the bottom.
1 2 2 | 1 0 0
0 −2 0 | −1 1 0
0 −2 0 | −2 0 1
Next add (−1) times the second row to the bottom row.
1 2 2 | 1 0 0
0 −2 0 | −1 1 0
0 0 0 | −1 −1 1
At this point, you can see there will be no inverse because you have obtained a row of zeros
in the left half of the augmented matrix (A|I) . Thus there will be no way to obtain I on the
left.
1 0 1
Example 8.6.9 Let A = 1 −1 1 . Find A−1 if it exists.
1 1 −1
▶▶
Form the augmented matrix
1 0 1 | 1 0 0
1 −1 1 | 0 1 0 .
1 1 −1 | 0 0 1
Now do row operations until the n × n matrix on the left becomes the identity matrix. This
yields after some computations,
1 1
1 0 0 | 0 2 2
0 1 0 | 1 −1 0
− 21 − 12
0 0 1 | 1
150 CHAPTER 8. MATRICES
1 − 12 − 12
Checking the answer is easy. Just multiply the matrices and see if it works.
1 1
0
2 2
1 0 1 1 0 0
1 −1 1 1 −1 0 = 0 1 0 .
1 − 12 − 12
1 1 −1 0 0 1
Always check your answer because if you are like some of us, you will usually have made
a mistake.
Example 8.6.10 In this example, it is shown how to use the inverse of a matrix to find the
solution to a system of equations. Consider the following system of equations. Use the
inverse of a suitable matrix to give the solutions to this system.
x+z = 1
x−y+z = 3 .
x+y−z = 2
The system of equations can be written in terms of matrices as
1 0 1 x 1
1 −1 1 y = 3 . (8.19)
1 1 −1 z 2
More simply, this is of the form Ax = b. Suppose you find the inverse of the matrix A−1 .
Then you could multiply both sides of this equation by A−1 to obtain
x = A−1 A x = A−1 (Ax) = A−1 b.
This gives the solution as x = A−1 b. Note that once you have found the inverse, you can
easily get the solution for different right hand sides without any effort. It is always just
A−1 b. In the given example, the inverse of the matrix is
1 1
0 2 2
1 −1 0
1 − 12 − 21
This was shown in Example 8.6.9. Therefore, from what was just explained, the solution
to the given system is
1 1 5
x 0 2 2 1 2
y = 1 −1 0 3 = −2 .
z 1 − 12 − 21 2 − 23
8.7. MATLAB AND MATRIX ARITHMETIC 151
T
What if the right side of 8.19 had been 0 1 3 ? What would be the solution to
1 0 1 x 0
1 −1 1 y = 1 ?
1 1 −1 z 3
z 1 − 21 − 12 3 −2
This illustrates why once you have found the inverse of a given matrix, you can use it to
solve many different systems easily.
a computation in matlab, you ought to go to >> and type “clear all” and then enter. That
way, you can use the symbols again with different definition. If you don’t do the “clear all”
thing, it will go on thinking that A is what you defined earlier.
8.8 Exercises
1. Here are some matrices:
! !
1 2 3 3 −1 2
A = ,B = ,
2 1 7 −3 2 1
! ! !
1 2 −1 2 2
C = ,D = ,E = .
3 1 2 −3 3
Find if possible −3A, 3B − A, AC,CB, AE, EA. If it is not possible explain why.
2. Here are some matrices:
1 2 !
2 −5 2
A = 3 2 ,B = ,
−3 2 1
1 −1
! ! !
1 2 −1 1 1
C = ,D = ,E = .
5 0 4 −3 3
Find if possible −3A, 3B − A, AC,CA, AE, EA, BE, DE. If it is not possible explain
why.
3. Here are some matrices:
1 2 !
2 −5 2
A = 3 2 ,B = ,
−3 2 1
1 −1
! ! !
1 2 −1 1 1
C = ,D = ,E = .
5 0 4 −3 3
(a) AB
(b) BA
(c) AC
(d) CA
(e) CB
(f) BC
6. Suppose A and B are square matrices of the same size. Which of the following are
correct?
14. Suppose M is a 3 × 3 skew symmetric matrix. Show there exists a vector Ω such that
for all u ∈ R3
Mu = Ω × u
Hint: Explain why, since M is skew symmetric it is of the form
0 −ω 3 ω 2
M = ω3 0 −ω 1
−ω 2 ω 1 0
18. Using only the properties 8.1 - 8.8 and previous problems show (−1) A = −A.
19. Prove 8.15.
20. Prove that Im A = A where A is an m × n matrix.
21. Give an example of matrices, A, B,C such that B ̸= C, A ̸= 0, and yet AB = AC.
22. Suppose AB = AC and A is an invertible n × n matrix. Does it follow that B = C?
Explain why or why not. What if A were a non invertible n × n matrix?
23. Find your own examples:
25. Give an example of a matrix A such that A2 = I and yet A ̸= I and A ̸= −I.
26. Give an example of matrices, A, B such that neither A nor B equals zero and yet
AB = 0.
27. Give another example other than the one given in this section of two square matrices,
A and B such that AB ̸= BA.
28. Let !
2 1
A= .
−1 3
29. Let !
0 1
A= .
5 3
30. Let !
2 1
A= .
3 0
31. Let !
2 1
A= .
4 2
1 0 2
Find A−1 if possible. If A−1 does not exist, determine why.
34. Let
1 0 3
A= 2 3 4 .
1 0 2
Find A−1 if possible. If A−1 does not exist, determine why.
35. Let
1 2 3
A= 2 1 4 .
4 5 10
Find A−1 if possible. If A−1 does not exist, determine why.
36. Let
1 2 0 2
1 1 2 0
A=
−3 2
2 1
1 2 1 2
Find A−1 if possible. If A−1 does not exist, determine why.
156 CHAPTER 8. MATRICES
x1 − x2 + 2x3 x1
2x3 + x1 x2
37. Write in the form A where A is an appropriate matrix.
3x3 x3
3x4 + 3x2 + x1 x4
x1 + 3x2 + 2x3 x1
2x3 + x1 x2
38. Write in the form A where A is an appropriate matrix.
6x3 x3
x4 + 3x2 + x1 x4
x1 + x2 + x3 x1
2x3 + x1 + x2 x2
39. Write in the form A where A is an appropriate matrix.
x3 − x1 x3
3x4 + x1 x4
40. Using the inverse of the matrix, find the solution to the systems
1 0 3 x 1 1 0 3 x 2
2 3 4 y = 2 , 2 3 4 y = 1
1 0 2 z 3 1 0 2 z 0
1 0 3 x 1 1 0 3 x 3
2 3 4 y = 0 , 2 3 4 y = −1 .
1 0 2 z 1 1 0 2 z −2
1 0 2 z c
41. Using the inverse of the matrix, find the solution to the systems
1 0 3 x 1 1 0 3 x 2
2 3 4 y = 2 , 2 3 4 =
1
y
1 0 2 z 3 1 0 2 z 0
1 0 3 x 1 1 0 3 x 3
2 3 4 y = 0 , 2 3 4 y = −1 .
1 0 2 z 1 1 0 2 z −2
1 0 2 z c
8.8. EXERCISES 157
42. Using the inverse of the matrix, find the solution to the system
1 1 1
−1 2 2 2 x a
1 1 5
3
2 −2 −2 y b
= .
−1 0
0 1 z c
−2 − 34 1
4
9
4 w d
47. Show (AB)−1 = B−1 A−1 by verifying that AB B−1 A−1 = I and
−1 2
49. If A is invertible, show A2 = A−1 . Hint: Use Problem 45.
−1
50. If A is invertible, show A−1 = A. Hint: Use Problem 45.
51. Let A and be a real m × n matrix and let x ∈ Rn and y ∈ Rm . Show
where (·, ·)Rk denotes the dot product in Rk . In the notation above, A x · y = x· AT y.
Use the definition of matrix multiplication to do this.
52. Use the result of Problem 51 to verify directly that (AB)T = BT AT without making
any reference to subscripts.
53. Suppose A is an n × n matrix and for each j,
n
∑ Ai j < 1
i=1
show that the i jth entry of the partial sums is a Cauchy sequence. From calculus,
these converge by completeness of the real or complex numbers. Next show that
(I − A)−1 = ∑∞ k
k=0 A . The Leontief model in economics involves solving an equation
for x of the form
x = Ax + b, or (I − A) x = b
The vector Ax is called the intermediate demand and the vectors Ak x have economic
meaning. From the above,
x = Ib + Ab + A2 b + · · ·
The series is also called the Neuman series. It is important in functional analysis.
54. An elementary matrix is one which results from doing a row operation to the identity
matrix. Thus the elementary matrix E which results from adding a times the ith row
to the jth row would have aδ ik + δ jk as the jkth entry and all other rows would be
unchanged. That is δ rs provided r ̸= j. Show that multiplying this matrix on the
left of an appropriate sized matrix A results in doing the row operation to the matrix
A. You might also want to verify that the other elementary matrices have the same
effect, doing the row operation which resulted in the elementary matrix to A.
55. Let a be a fixed vector. The function Ta defined by Ta v = a + v has the effect of
translating all vectors by adding a. Show this is not a linear transformation. Explain
why it is not possible to realize Ta in R3 by multiplying by a 3 × 3 matrix.
56. In spite of Problem 55 we can represent both translations and rotations by matrix
multiplication at the expense of using higher dimensions. This is done by the homo-
geneous coordinates. I will illustrate in R3 where most interest in this is found. For
each vector v = (v1 , v2 , v3 )T , consider the vector in R4 (v1 , v2 , v3 , 1)T . What happens
when you do
1 0 0 a1 v1
0 1 0 a v
2 2
?
0 0 1 a3 v3
0 0 0 1 1
Describe how to consider both rotations and translations all at once by forming ap-
propriate 4 × 4 matrices.
Chapter 9
The span of some vectors consists of all linear combinations of these vectors. A linear
combination of vectors is just a finite sum of scalars times vectors.
Definition 9.0.1 Let u1 , · · · , u p be some vectors in Fn . A linear combination of these
That is, it is a sum of scalars times the vectors for some choice of scalars a1 , · · · , a p .
span (u1 , · · · , u p ) denotes the set of all linear combinations of these vectors.
Observation 9.0.2 Let u1 , · · · , u p be vectors in Fn . Form the n × p matrix
A ≡ u1 · · · u p
which has these vectors as columns. Then span (u1 , · · · , u p ) consists of all vectors which
are of the form
Ax for x ∈ F p .
Recall why this is so. A typical thing in what was just described is
x1
..
u1 · · · u p . = x1 u1 + · · · + xn u p
xp
In other words, a typical vector of the form Ax is a linear combination of the columns of A.
Thus we can write either span (u1 , · · · , u p ) or all Ax for x ∈ F p to denote the same thing.
Definition 9.0.3 The vectors Ax where x ∈ F p is also called the column space of A and
also Im (A) meaning image of A, also denoted as A (Fn ). Thus column space equals
span (u1 , · · · , u p ) where the ui are the columns of A.
What do you really mean when you say there is a solution x to a linear system of
equations Ax = b? You mean that b is in the span of the columns of A. After all, if A =
T
u1 · · · u p , you are looking for x = x1 · · · x p such that x1 u1 + x2 u2 +
· · · + x p u p = Ax = b.
159
160 CHAPTER 9. SUBSPACES SPANS AND BASES
9.1 Subspaces
A subspace is a set of vectors with the property that linear combinations of these vectors
remain in the set. Geometrically, subspaces are like lines and planes which contain the
origin. More precisely, the following definition is the right way to think of this.
There is no substitute for the above definition or equivalent algebraic definition! How-
ever, it is sometimes helpful to look at pictures at least initially. The following are four
subsets of R2 . The first is the shaded area between two lines which intersect at the origin,
the second is a line through the origin, the third is the union of two lines through the origin,
and the last is the region between two rays from the origin. Note that in the last, multipli-
cation of a vector in the set by a nonnegative scalar results in a vector in the set as does the
sum of two vectors in the set. However, multiplication by a negative scalar does not take a
vector in the set to another in the set.
Observe how the above definition indicates that the claims posted on the picture are
valid. Now here are the two main examples of subspaces.
Proof: Suppose Axi is in Im (A) and a, b are scalars. Does it follow that aAx1 + bAx2
is in Im (A)? The answer is yes because
Proof: Suppose first that V is a subspace. It is obvious all the algebraic laws hold on V
because it is a subset of Fn and they hold on Fn . Thus u + v = v + u along with the other
axioms. Does V contain 0? Yes because it contains 0u = 0. Are the operations defined
on V ? That is, when you add vectors of V do you get a vector in V ? When you multiply a
vector in V by a scalar, do you get a vector in V ? Yes. This is contained in the definition.
Does every vector in V have an additive inverse? Yes because − v = (−1) v which is given
to be in V provided v ∈ V .
Next suppose V is a vector space. Then by definition, it is closed with respect to linear
combinations. Hence it is a subspace. ■
There is a fundamental result in the case where m < n. In this case, the matrix A of the
linear transformation looks like the following.
Theorem 9.1.4 Let A be an m × n matrix where m < n. Then N (A) contains nonzero vec-
tors.
Proof: First consider the case where A is a 1 × n matrix for n > 1. Say
A = a1 · · · an
Suppose now that the theorem is true for any m × n matrix with n > m and consider an
(m × 1) × n matrix A where n > m + 1. If the first column of A is 0, then you could let
x = e1 as above. If the first column is not the zero vector, then by doing row operations,
the equation Ax = 0 can be reduced to the equivalent system
A1 x = 0
Definition 9.1.5 Let {u1 , · · · , ur } be vectors in F p . They are independent if and only if the
only solution to the system of equations
u1 · · · ur x = 0
it follows that each xi = 0. The set of vectors is dependent if it is not independent. Thus
Theorem 9.1.4 says that if you have more than n vectors in Fn this set of vectors will be
dependent.
Theorem 9.1.6 Suppose you have vectors {u1 , · · · , ur } and that this set of vectors is in-
dependent. Suppose also that there are vectors {v 1 , · · · , v s } and that each u j is a linear
combination of the vectors {v 1 , · · · , v s } . Then r ≤ s. A little less precisely, spanning sets
are at least as long as linearly independent sets.
Proof: Let ui = ∑sj=1 a ji v j . This is merely giving names to the scalars in the linear
combination which yields ui . Now suppose that s < r. Then if A is the matrix which has a ji
in the jth row and the ith column, it follows from Theorem 9.1.4 that there exists a vector
in Fr such that Ax = 0 but x ̸= 0. However, then
xi
r r s
..
u1 · · · ur . = ∑ xi ui = ∑ xi ∑ a ji v j
i=1 i=1 j=1
xr
s r s
= ∑ ∑ a ji xi v j = ∑ (Ax) j v j
j=1 i=1 j=1
s
= ∑ 0v j = 0
j=1
9.1. SUBSPACES 163
contrary to assumption. Therefore, d = 0. But then ∑ki=1 ci ui = 0 and the linear indepen-
dence of {u1 , · · · , uk } implies each ci = 0 also. ■
It turns out that every subspace equals the span of some vectors. This is the content of
the next theorem.
Theorem 9.1.12 V is a nonzero subspace of Fn if and only if it has a basis.
Proof: Pick a nonzero vector of V, u1 . If V = span {u1 } , then stop. You have found
your basis. If V ̸= span (u1 ) , then there exists u2 a vector of V which is not a vector in
span (u1 ) . Consider span (u1 , u2 ) . By Lemma 9.1.11, {u1 , u2 } is linearly independent.
If V = span (u1 , u2 ) , stop. You have found a basis. Otherwise, pick u3 ∈ / span (u1 , u2 ) .
Continue this way until you obtain a basis. The process must stop after fewer than n + 1
iterations because if it didn’t, then there would be a linearly independent set of more than
n vectors which is impossible because there is a spanning set of n vectors from the above
observation. ■
The following is a fundamental result.
164 CHAPTER 9. SUBSPACES SPANS AND BASES
Definition 9.1.14 The rank of a matrix A is the dimension of Im (A) which is the same as
the column space of A.
Observation 9.1.15 When you have a matrix A and you do row operations to it. The
solutions to the system of equations having augmented matrix (A|0) are unchanged. This
was the entire basis for using row operations to solve systems of equations which was
presented earlier. Thus, if you can row reduce a matrix and obtain one for which it is clear
that all columns are in the span of certain columns and that these certain columns form an
independent set, then you have found the rank. You just need to count the number of these
special columns. Actually, the row reduced echelon form is designed to do this very thing.
0 1 6 6 4
Determine its rank.
0 0 0 0 0
9.2. EXERCISES 165
and so its rank is 2 because every column is in the span of the first two columns. You can
think of the above as the row reduced version of several systems of equations, those which
have the following augmented matrices.
1 0 −5 1 0 −7 1 0 −3
1 1 1 , 1 1 −1 , 1 1 1 ,
0 1 6 0 1 6 0 1 4
In each case, you can obtain the third column as a linear combination of the first two.
Thus the last three columns in 9.1 are linear combinations of the first two columns in 9.1.
Therefore, any linear combination of the columns of 9.1 can also be written as a linear
combination of the first two columns of 9.1. In other words, the span of the columns of 9.1
equals the span of the first two columns of 9.1. Also, from 9.2, we can see that the first two
columns of 9.1 are independent. Therefore, these columns are a basis for Im (A).
Similar considerations apply to determining whether some vectors are independent.
Remember the definition. To determine whether some vectors are independent, make them
the columns of a matrix A and determine the solution set to Ax = 0. If there is only the zero
solution, then the vectors are independent. If there are more solutions then these vectors
are not independent.
Theorem 9.1.17 Let A be an n × n matrix. Then A−1 exists if and only if the rank of A
equals n.
9.2 Exercises
1. Let {u1 , · · · , un } be vectors in Rn . The parallelepiped determined by these vectors
P (u1 , · · · , un )
is defined as
( )
n
P (u1 , · · · , un ) ≡ ∑ tk uk : tk ∈ [0, 1] for all k .
k=1
166 CHAPTER 9. SUBSPACES SPANS AND BASES
{Ax : x ∈ P (u1 , · · · , un )}
is also a parallelepiped.
2. In the context of Problem 1, draw P (e1 , e2 ) where e1 , e2 are the standard basis vec-
tors for R2 . Thus e1 = (1, 0) , e2 = (0, 1) . Now suppose
!
1 1
E=
0 1
where E is the elementary matrix which takes the third row and adds to the first.
Draw
{Ex : x ∈ P (e1 , e2 )} .
In other words, draw the result of doing E to the vectors in P (e1 , e2 ). Next draw the
results of doing the other elementary matrices to P (e1 , e2 ). An elementary matrix is
one which is obtained from doing one of the row operations to the identity matrix.
3. Determine which matrices are in row reduced echelon form.
!
1 2 0 1 1 0 0 0 5
(a)
(c) 0 0 1 2 0 4
0 1 7
1 0 0 0
0 0 0 0 1 3
(b) 0 0 1 2
0 0 0 0
4. Row reduce the following matrices to obtain the row reduced echelon form. List the
pivot columns in the original matrix.
1 2 0 3 1 2 1 3
(a) 2 1 2 2 (c) −3 2 1 0
1 1 0 3 3 2 1 1
1 2 3
2 1 −2
(b)
3 0 0
3 2 1
5. Find the rank of the following matrices. If the rank is r, identify r columns in the
original matrix which have the property that every other column may be written as
a linear combination of these. Also find a basis for column space of the matrices.
1 2 0
3 2 1
(a)
2 1 0
0 2 1
9.2. EXERCISES 167
1 0 0 0 1 0 2 0 1 0
4 1 1 0 3 2 6 0 5 4
(b) (d)
2 1 0 0 1 1 2 0 2 2
0 2 0 0 2 1 4 0 3 2
0 1 0 2 1 2 2 0 1 0 2 1 1 2
0 3 2 12 1 6 8 0 3 2 6 1 5 1
(c) (e)
0 1 1 5 0 2 3 0 1 1 2 0 2 1
0 2 1 7 0 3 4 0 2 1 4 0 3 1
−1 0 −1
Show that this is a projection. Show that a vector in the column space of a projection
matrix is left unchanged by multiplication by A.
! ! !!
1 2 1
8. Let H denote span , , . Find the dimension of H and de-
2 4 3
termine a basis.
1 2 1 0
9. Let H denote span 2 , 4 , 3 , 1 . Find the dimension of
0 0 1 1
H and determine a basis.
1 1 1 0
10. Let H denote span 2 , 4 , 3 , 1 . Find the dimension of
0 0 1 1
H and determine a basis.
Let M = u = (u1 , u2 , u3 , u4 ) ∈ R4 : u3 = u1 = 0 . Is M a subspace? Explain.
11.
Let M = u = (u1 , u2 , u3 , u4 ) ∈ R4 : u3 ≥ u1 . Is M a subspace? Explain.
12.
Let w ∈ R4 and let M = u = (u1 , u2 , u3 , u4 ) ∈ R4 : w · u = 0 . Is M a subspace?
13.
Explain.
Let M = u = (u1 , u2 , u3 , u4 ) ∈ R4 : ui ≥ 0 for each i = 1, 2, 3, 4 . Is M a subspace?
14.
Explain.
15. Let w, w1 be given vectors in R4 and define
M = u = (u1 , u2 , u3 , u4 ) ∈ R4 : w · u = 0 and w1 · u = 0 .
Is M a subspace? Explain.
168 CHAPTER 9. SUBSPACES SPANS AND BASES
18. Suppose {x1 , · · · , xk } is a set of vectors from Fn . Show that span (x1 , · · · , xk ) con-
tains 0.
19. Prove the following theorem: If A, B are n × n matrices and if AB = I, then BA = I
and B = A−1 . Hint: First note that if AB = I, then it must be the case that A is onto.
Explain why this requires span (columns of A) = Fn . Now explain why, this requires
A to be one to one. Next explain why A (BA − I) = 0 and why the fact that A is one
to one implies BA = I.
20. Here are three vectors. Determine whether they are linearly independent or linearly
dependent.
T T T
1 2 0 , 2 0 1 , 3 0 0
21. Here are three vectors. Determine whether they are linearly independent or linearly
dependent.
T T T
4 2 0 , 2 2 1 , 0 2 2
22. Here are three vectors. Determine whether they are linearly independent or linearly
dependent.
T T T
1 2 3 , 4 5 1 , 3 1 0
23. Here are four vectors. Determine whether they span R3 . Are these vectors linearly
independent?
T T T T
1 2 3 , 4 3 3 , 3 1 0 , 2 4 6
24. Here are four vectors. Determine whether they span R3 . Are these vectors linearly
independent?
T T T T
1 2 3 , 4 3 3 , 3 2 0 , 2 4 6
25. Determine whether the following vectors are a basis for R3 . If they are, explain why
they are and if they are not, give a reason and tell whether they span R3 .
T T T T
1 0 3 , 4 3 3 , 1 2 0 , 2 4 0
26. Determine whether the following vectors are a basis for R3 . If they are, explain why
they are and if they are not, give a reason and tell whether they span R3 .
T T T
1 0 3 , 0 1 0 , 1 2 0
9.2. EXERCISES 169
27. Determine whether the following vectors are a basis for R3 . If they are, explain why
they are and if they are not, give a reason and tell whether they span R3 .
T T T T
1 0 3 , 0 1 0 , 1 2 0 , 0 0 0
28. Determine whether the following vectors are a basis for R3 . If they are, explain why
they are and if they are not, give a reason and tell whether they span R3 .
T T T T
1 0 3 , 0 1 0 , 1 1 3 , 0 0 0
Is this set of vectors a subspace of R3 ? If so, explain why, give a basis for the sub-
space and find its dimension.
Is this set of vectors a subspace of R4 ? If so, explain why, give a basis for the sub-
space and find its dimension.
31. Consider the vectors of the form
2t + u
+ 3u
t
: s,t, u, v ∈ R .
t +s+v
u
Is this set of vectors a subspace of R4 ? If so, explain why, give a basis for the sub-
space and find its dimension.
32. If you have 5 vectors in F5 and the vectors are linearly independent, can it always be
concluded they span F5 ? Explain.
33. If you have 6 vectors in F5 , is it possible they are linearly independent? Explain.
35. Suppose V,W are subspaces of Fn . Show V ∩ W defined to be all vectors which are
in both V and W is a subspace also.
36. Suppose V and W both have dimension equal to 7 and they are subspaces of F10 .
What are the possibilities for the dimension of V ∩W ? Hint: Remember that a linear
independent set can be extended to form a basis.
37. Suppose V has dimension p and W has dimension q and they are each contained in
a subspace, U which has dimension equal to n where n > max (p, q) . What are the
possibilities for the dimension of V ∩W ? Hint: Remember that a linear independent
set can be extended to form a basis.
38. If b ̸= 0, can the solution set of Ax = b be a plane through the origin? Explain.
39. Suppose a system of equations has fewer equations than variables and you have found
a solution to this system of equations. Is it possible that your solution is the only one?
Explain.
40. Suppose a system of linear equations has a 2 × 4 augmented matrix and the last col-
umn is a pivot column. Could the system of linear equations be consistent? Explain.
41. Suppose the coefficient matrix of a system of n equations with n variables has the
property that every column is a pivot column. Does it follow that the system of
equations must have a solution? If so, must the solution be unique? Explain.
42. Suppose there is a unique solution to a system of linear equations. What must be true
of the pivot columns in the augmented matrix.
43. State whether each of the following sets of data are possible for the matrix equation
Ax = b. If possible, describe the solution set. That is, tell whether there exists a
unique solution no solution or infinitely many solutions.
(a) A is a 5 × 6 matrix, rank (A) = 4 and rank (A|b) = 4. Hint: This says b is in the
span of four of the columns. Thus the columns are not independent.
(b) A is a 3 × 4 matrix, rank (A) = 3 and rank (A|b) = 2.
(c) A is a 4 × 2 matrix, rank (A) = 4 and rank (A|b) = 4. Hint: This says b is in the
span of the columns and the columns must be independent.
(d) A is a 5 × 5 matrix, rank (A) = 4 and rank (A|b) = 5. Hint: This says b is not in
the span of the columns.
(e) A is a 4 × 2 matrix, rank (A) = 2 and rank (A|b) = 2.
44. Suppose A is an m × n matrix in which m ≤ n. Suppose also that the rank of A equals
m. Show that A maps Fn onto Fm . Hint: The vectors e1 , · · · , em occur as columns in
the row reduced echelon form for A.
45. Suppose A is an m × n matrix in which m ≥ n. Suppose also that the rank of A equals
n. Show that A is one to one. Hint: If not, there exists a vector x such that Ax = 0,
and this implies at least one column of A is a linear combination of the others. Show
this would require the column rank to be less than n.
46. Explain why an n × n matrix A is both one to one and onto if and only if its rank is n.
9.2. EXERCISES 171
Hint: Consider the subspace, B (F p ) ∩ ker (A) and suppose a basis for this subspace
is
{w1 , · · · , wk } .
Now suppose {u1 , · · · , ur } is a basis for ker (B) . Let {z 1 , · · · , z k } be such that Bz i =
wi and argue that
Here is how you do this. Suppose ABx = 0. Then Bx ∈ ker (A) ∩ B (F p ) and so
Bx = ∑ki=1 Bz i showing that
k
x− ∑ z i ∈ ker (B) .
i=1
48. Explain why Ax = 0 always has a solution even when A−1 does not exist.
49. Let A be an n × n matrix and let x be a nonzero vector such that Ax = λ x for some
scalar λ . When this occurs, the vector x is called an eigenvector and the scalar λ
is called an eigenvalue. It turns out that not every number is an eigenvalue. Only
certain ones are. Why? Hint: Show that if Ax = λ x, then (A − λ I) x = 0. Explain
why this shows that (A − λ I) is not one to one and not onto.
n 2
o
50. Let A be an n × n matrix and consider the matrices I, A, A2 , · · · , An . Explain why
there exist scalars, ci not all zero such that
n2
∑ ci Ai = 0.
i=1
λ m + dm−1 λ m−1 + · · · + d1 λ + d0
such that p (A) = 0 and if q (λ ) is another polynomial such that q (A) = 0, then q (λ )
is of the form p (λ ) l (λ ) for some polynomial, l (λ ) . This extra special polynomial,
p (λ ) is called the minimal polynomial. Hint: You might consider an n × n matrix
2
as a vector in Fn . What would be a basis for this set of matrices?
172 CHAPTER 9. SUBSPACES SPANS AND BASES
Chapter 10
1. Ax = λ x
2. x ̸= 0. This is very important. By definition 0 is NEVER an eigenvector although
it can be an eigenvalue.
Now here is an important observation which really is just a re statement of the above
definition.
Theorem 10.1.2 Let A be an n×n matrix. The vector x is an eigenvector for the eigenvalue
λ if and only if (A − λ I)−1 does not exist.
Proof: If (A − λ I)−1 does not exist, then by Theorem 9.1.17 the columns of A − λ I
are not independent because its rank is less than n. Thus there exists x ̸= 0 such that
(A − λ I) x = 0 and so λ is an eigenvalue and x is an eigenvector which goes with λ .
Conversely, if (A − λ I) x = 0, and x ̸= 0, then the rank of (A − λ I) has no inverse be-
cause its rank is less than n. Indeed, some column is a linear combination of the others.
■
Now with this fundamental definition, I will present the worst way of finding eigenval-
ues and eigenvectors. It is very important because everyone cherishes it. Also, it gives an
introduction to the important topic of determinants which will be presented in more detail
later.
173
174 CHAPTER 10. EIGENVALUES AND EIGENVECTORS
From the definition this is just (2) (6) − (−1) (4) = 16.
Having defined what is meant by the determinant of a 2 × 2 matrix, what about a 3 × 3
matrix?
3 2 1
The (1, 2) minor is the determinant of the 2 × 2 matrix which results when you delete the
first row and the second column. This minor is therefore
!
4 2
det = −2.
3 1
The (2, 3) minor is the determinant of the 2 × 2 matrix which results when you delete the
second row and the third column. This minor is therefore
!
1 2
det = −4.
3 2
10.2. AN INTRODUCTION TO DETERMINANTS 175
The cofactors of a matrix are so important that special notation is appropriate when re-
ferring to them. The i jth cofactor of a matrix A will be denoted by cof (A)i j . It is also
convenient to refer to the cofactor of an entry of a matrix as follows. For ai j an entry of
the matrix, its cofactor is just cof (A)i j . Thus the cofactor of the i jth entry is just the i jth
cofactor.
3 2 1
The (1, 2) minor is the determinant of the 2 × 2 matrix which results when you delete the
first row and the second column. This minor is therefore
!
4 2
det = −2.
3 1
It follows !
4 2
cof (A)12 = (−1)1+2 det = (−1)1+2 (−2) = 2
3 1
The (2, 3) minor is the determinant of the 2 × 2 matrix which results when you delete the
second row and the third column. This minor is therefore
!
1 2
det = −4.
3 2
Therefore, !
2+3 1 2
cof (A)23 = (−1) det = (−1)2+3 (−4) = 4.
3 2
Similarly, !
2+2 1 3
cof (A)22 = (−1) det = −8.
3 1
3 2 1
176 CHAPTER 10. EIGENVALUES AND EIGENVECTORS
This simply follows the rule in the above definition. We took the 1 in the first column and
multiplied it by its cofactor, the 4 in the first column and multiplied it by its cofactor, and
the 3 in the first column and multiplied it by its cofactor. Then we added these numbers
together.
You could also expand the determinant along the second row as follows.
cof(A)21 cof(A)22 cof(A)23
z }| !{ z }| !{ z }| !{
2 3 1 3 1 2
4(−1)2+1 det + 3(−1)2+2 det + 2(−1)2+3 det = 0.
2 1 3 1 3 2
Observe this gives the same number. You should try expanding along other rows and
columns. If you don’t make any mistakes, you will always get the same answer.
What about a 4 × 4 matrix? You know now how to find the determinant of a 3 × 3
matrix. The pattern is the same. In general, it is as described in the following definition.
You should regard the above claim that you always get the same answer by picking
any row or column with considerable skepticism. It is incredible and not at all obvious.
However, it requires a little effort to establish it. This is done in the section on the theory
of the determinant, Section 28 which is presented much later. This is summarized in the
following theorem whose conclusion is incredible.
Theorem 10.2.10 Expanding the n × n matrix along any row or column always gives the
same answer so the above definition is a good definition.
1 2 −1 1
2 3 1 1
Example 10.2.11 Expand det along first column.
1 1 0 0
1 2 3 1
It is
3 1 1 2 −1 1
1 det 1 0 0 − 2 det 1 0 0
2 3 1 2 3 1
10.2. AN INTRODUCTION TO DETERMINANTS 177
2 −1 1 2 −1 1
+1 det 3 1 1 − 1 det 3 1 1 =0
2 3 1 1 0 0
0 0 −1 0 0 −1
2 3 77 2 3 77
0 (−1)3+1 det 2 6 7 + 0 (−1)4+1 det 2 6 7
0 0 −1 0 3 33.7
and the only nonzero term in the expansion is
2 6 7
1 det 0 3 33.7 .
0 0 −1
178 CHAPTER 10. EIGENVALUES AND EIGENVECTORS
Next expand this last determinant along the first column to obtain the above equals 1 ×
2 × 3 × (−1) = −6 which is just the product of the entries down the main diagonal of the
original matrix. It works this way in general.
Theorem 10.2.16 Let A be an n × n matrix and let A1 be a matrix which results from
multiplying some row of A by a scalar c. Then c det (A) = det (A1 ).
! !
1 2 2 4
Example 10.2.17 Let A = , A1 = . det (A) = −2, det (A1 ) = −4.
3 4 3 4
Theorem 10.2.18 Let A be an n × n matrix and let A1 be a matrix which results from
switching two rows of A. Then det (A) = − det (A1 ) . Also, if one row of A is a multiple of
another row of A, then det (A) = 0.
! !
1 2 3 4
Example 10.2.19 Let A = and let A1 = . det A = −2, det (A1 ) = 2.
3 4 1 2
Theorem 10.2.20 Let A be an n × n matrix and let A1 be a matrix which results from
applying row operation 3. That is you replace some row by a multiple of another row
added to itself. Then det (A) = det (A1 ).
! !
1 2 1 2
Example 10.2.21 Let A = and let A1 = . Thus the second row of
3 4 4 6
A1 is one times the first row added to the second row. det (A) = −2 and det (A1 ) = −2.
Theorem 10.2.22 In Theorems 10.2.16 - 10.2.20 you can replace the word, “row” with
the word “column”.
10.2. AN INTRODUCTION TO DETERMINANTS 179
There are two other major properties of determinants which do not involve row opera-
tions.
Also,
det (A) = det AT .
Example 10.2.24 Compare det (AB) and det (A) det (B) for
! !
1 2 3 2
A= ,B = .
−3 2 4 1
First ! ! !
1 2 3 2 11 4
AB = =
−3 2 4 1 −1 −4
!
11 4
and so det (AB) = det = −[Link]
−1 −4
! !
1 2 3 2
det (A) = det = 8, det (B) = det = −5.
−3 2 4 1
Replace the second row by (−5) times the first row added to it. Then replace the third
row by (−4) times the first row added to it. Finally, replace the fourth row by (−2) times
the first row added to it. This yields the matrix
1 2 3 4
0 −9 −13 −17
B=
0 −3 −8 −13
0 −2 −10 −3
180 CHAPTER 10. EIGENVALUES AND EIGENVECTORS
and from Theorem 10.2.20, it has the same determinant as A. Now using other row opera-
tions, det (B) = −1
3 det (C) where
1 2 3 4
0 0 11 22
C= .
0 −3 −8 −13
0 6 30 9
The second row was replaced by (−3) times the third row added to the second row. By
Theorem 10.2.20 this didn’t change the value of the determinant. Then the last row was
multiplied by (−3) . By Theorem 10.2.16 the resulting matrix has a determinant which is
(−3) times the determinant of the un-multiplied matrix. Therefore, we multiplied by −1/3
to retain the correct value. Now replace the last row with 2 times the third added to it.
This does not change the value of the determinant by Theorem 10.2.20. Finally switch
the third and second rows. This causes the determinant to be multiplied by (−1) . Thus
det (C) = − det (D) where
1 2 3 4
0 −3 −8 −13
D=
0 0 11 22
0 0 14 −17
You could do more row operations or you could note that this can be easily expanded along
the first column followed by expanding the 3×3 matrix which results along its first column.
Thus !
11 22
det (D) = 1 (−3) det = 1485
14 −17
Replace the second row by (−1) times the first row added to it. Next take −2 times the
first row and add to the third and finally take −3 times the first row and add to the last row.
This yields
1 2 3 2
0 −5 −1 −1
.
0 −3 −4 1
0 −10 −8 −4
By Theorem 10.2.20 this matrix has the same determinant as the original matrix. Remem-
ber you can work with the columns also. Take −5 times the last column and add to the
10.3. APPLICATIONS 181
which by Theorem 10.2.20 has the same determinant as the original matrix. Lets expand
it now along the first column. This yields the following for the determinant of the original
matrix.
0 −1 −1
det −8 −4 1
10 −8 −4
! !
−1 −1 −1 −1
which equals 8 det + 10 det = −82
−8 −4 −4 1
I suggest you do not try to be fancy in using row operations. That is, stick mostly to
the one which replaces a row or column with a multiple of another row or column added to
it. Also note there is no way to check your answer other than working the problem more
than one way. To be sure you have gotten it right you must do this. Unfortunately, this
process can go on and on when you keep getting different answers. This is a good example
of something for which you should use a computer algebra system.
10.3 Applications
10.3.1 A Formula For The Inverse
The definition of the determinant in terms of Laplace expansion along a row or column
also provides a way to give a formula for the inverse of a matrix. Recall the definition of
the inverse of a matrix in Definition 8.6.2 on Page 144. Also recall the definition of the
cofactor matrix given in Definition 10.2.9 on Page 176. This cofactor matrix was just the
matrix which results from replacing the i jth entry of the matrix with the i jth cofactor.
The following theorem says that to find the inverse, take the transpose of the cofactor
matrix and divide by the determinant. The transpose of the cofactor matrix is called the
adjugate or sometimes the classical adjoint of the matrix A. In other words, A−1 is equal
to one divided by the determinant of A times the adjugate matrix of A. This is what the
following theorem says with more precision. The proof is presented later in Section 27.2.1.
182 CHAPTER 10. EIGENVALUES AND EIGENVECTORS
Theorem 10.3.1 A−1 exists if and only if det(A) ̸= 0. If det(A) ̸= 0, then A−1 = a−1
ij
where
a−1 −1
i j = det(A) cof (A) ji
1 2 1
First find the determinant of this matrix. Using Theorems 10.2.20 - 10.2.22 on Page
178, the determinant of this matrix equals the determinant of the matrix
1 2 3
0 −6 −8
0 0 −2
2 8 −6
Each entry of A was replaced by its cofactor. Therefore, from the above theorem, the
inverse of A should equal
T
−2 −2 6 −1/6 1/3 1/6
1
4 −2 0 = −1/6 −1/6 2/3 .
12
2 8 −6 1/2 0 −1/2
Does it work? You should check to see if it does. When the matrices are multiplied
−1/6 1/3 1/6 1 2 3 1 0 0
−1/6 −1/6 2/3 3 0 1 = 0 1 0
1/2 0 −1/2 1 2 1 0 0 1
and so it is correct.
First find its determinant. This determinant is 16 . I will replace each entry in the above
matrix with the cofactor corresponding to the position of that entry. Then I will take the
transpose and multiply by 6. You should check that the result is as follows.
T
1 1 1
6 3 6
1 1
6 − 13 .
3 6
− 16 1
6
1
6
This yields
T
1/6 1/3 1/6 1 2 −1
6 1/3 1/6 −1/3 = 2 1 1
and so we got it right. If the result of multiplying these matrices had been something other
than the identity matrix, you would know there was an error. When this happens, you
need to search for the mistake if you are interested in getting the right answer. A common
mistake is to forget to take the transpose of the cofactor matrix.
0 −1 0
You need to have
1 −1 −1 1 0 0
det 0 3 2 −λ 0 1 0 = 0
0 −1 0 0 0 1
That on the left equals a polynomial of degree 3 which when factored yields
(1 − λ ) (λ − 1) (λ − 2)
Therefore, the possible eigenvalues are 1,1,2. Note how the 1 is listed twice. This is because
it occurs twice as a root of the characteristic polynomial. Also, if M −1 does not exist where
184 CHAPTER 10. EIGENVALUES AND EIGENVECTORS
M is an n × n matrix, then this means that the columns of M cannot be lineraly independent
since if they were, then by Theorem 11.5.2 M −1 would exist. Thus if A − λ I fails to have
an inverse as above, then the columns are not independent and so there exists a nonzero x
such that (A − λ I) x = 0. Thus we have the following proposition.
Note that if A = S−1 BS, then A, B have the same characteristic polynomial, hence the
same eigenvalues. (They might have different eigenvectors and usually will.) To see this,
note that from the properties of determinants
a · b ≡ ∑ ak bk
k
In more advanced contexts, this is usually written as ⟨a, b⟩ or often simply as (a, b) instead
of a · b. Also, the term “inner product” tends to be preferred over “dot product”. Thus, in
this chapter, we will adopt the notation (a, b) for the dot product. The first thing to consider
is the notion of the adjoint of a matrix.
Definition 11.0.1 Let A be an m×n matrix. Then its adjoint, denoted as A∗ is the transpose
of the conjugate of A. That is, you replace each entry of A with its complex conjugate and
take the transpose of what you got. Thus
!∗ −i 3
i 2 1+i
= 2 1+i
3 1−i 1
1−i 1
The reason the adjoint is so important is the following proposition which in fact can
be used as a definition of the adjoint instead of the above explicit description in terms of
entries.
(x,Ay) = (A∗ x, y)
Also, if B is an n × m matrix such that the above holds for all x ∈ Fm and y ∈ Fn , then
B = A∗ .
Proof: This follows directly from the definition of the inner product and the properties
of the complex conjugate which were reviewed in Section 2.3.
(x,Ay) = ∑ xk (Ay)k = ∑ xk ∑ Ak j y j = ∑ xk ∑ Ak j y j
k k j k j
185
186 CHAPTER 11. MATRICES AND THE INNER PRODUCT
Now suppose for all x, y (x,Ay) = (Bx, y) . Then you have (A∗ x, y) = (Bx, y) for all
x, y and so (A∗ x − Bx, y) = 0 for all x, y. In particular this holds for y = A∗ x − Bx.
Thus A∗ x − Bx = 0 for each x. Hence A∗ = B. To see this, note that (A∗ − B) e j says that
the jth column of A∗ − B is zero. ■
The last part of this argument deserves a little more emphasis. If you have an m × n
matrix M, then M is the zero matrix if and only if Mx = 0 for all x ∈ Fn . In other words,
to show something is zero, you show it sends every vector to 0. Equivalently, a matrix M
is not zero if and only if there is some vector x for which Mx ̸= 0.
Definition 11.1.1 The minimum polynomial for an n × n matrix A is the polynomial which
has smallest degree and is monic such that p (A) = 0. In fact, it is unique and you might
think about why this is so using the division algorithm.
Now we can give the definition of eigenvalues and eigenvectors. Recall it is as follows.
Ax = λ x
It turns out that every n × n matrix has an eigenvalue and that in fact every root of the
minimum polynomial is an eigenvalue. Recall that by the fundamental theorem of algebra,
(See Section 2.9), the minimum polynomial has a root. In fact, we can completely factor
the minimum polynomial.
p (λ ) = (λ − µ 1 ) (λ − µ 2 ) · · · (λ − µ m )
Proof: If m = 1, there is nothing to show. Suppose then that the Proposition is true for
some m ≥ 1 and suppose p (λ ) is a monic polynomial of degree m + 1.
From the fundamental theorem of algebra, there is a root to p (λ ). Denote this root as
µ 1 . From Lemma 2.8.2, the division algorithm,
p (λ ) = (λ − µ 1 ) k (λ ) + r (λ )
p (λ ) = (λ − µ 1 ) k (λ )
Now k (λ ) is also a monic polynomial which can be seen by comparing the leading co-
efficient of both sides and it has degree m. Therefore, by induction, there are m complex
numbers µ 2 , µ 3 , · · · , µ m+1 such that
p (λ ) = (λ − µ 1 ) k (λ ) = p (λ ) = (λ − µ 1 ) · · · λ − µ m+1
Thus the proposition holds for m = 1 and if it holds for m, then it also holds for m + 1.
Therefore, it is valid for any positive integer m. ■
p (λ ) = (λ − µ 1 ) · · · (λ − µ m )
Proof: First note that IB = BI for any square matrix B. Next note that
0 = p (A) = (A − µ 1 I) · · · (A − µ m I) (11.2)
(A − µI) (A − λ I) = A2 − (λ + µ) A + µλ I = (A − λ I) (A − µI)
Thus all the factors in the above product 11.2 can be interchanged and thereby placed in
any order in the product. We know that for any y,
h i
A − µ j I (A − µ 1 I) · · · A − µ j−1 I A − µ j+1 I · · · (A − µ m I) y = 0
The minimum polynomial can be computed although it might seem a little tedious. In
the above discussion, the minimum polynomial is only known to have degree no more than
n2 . Actually it can be shown that the degree of the minimum polynomial is never more
than n although it might be less than n. We will show this later as part of the theory of the
determinant but in the meantime, one should go ahead and use it. Here is an example.
Thus, as explained earlier, the last column is −5 times the first added to 5 times the second.
Thus !2 ! !
2 1 1 0 2 1
= −5 +5
1 3 0 1 1 3
You can see from the row reduced echelon form that no smaller linear combination relating
the matrices I, A, A2 is possible. Hence the minimal polynomial is
λ 2 − 5λ + 5
The eigenvalues are therefore, the roots of this polynomial. They are
5 1√ 5 1√
+ 5, − 5
2 2 2 2
Now one can find eigenvectors associated
with√ these.
Consider the first of them. We
5 1
want a nonzero vector x such that A − 2 + 2 5 I x = 0. Thus we need consider the
augmented matrix
√
2 − 25 + 12 5 1 0
√
1 3 − 52 + 21 5 0
−1 −2 −1
We look for linear combinations for A0 , A, A2 , A3 . These are the matrices, listed in
order of decreasing powers are
−6 −14 −14 −2 −6 −6 0 −2 −2 1 0 0
14 29 28 ,
6 13 12 , 2 5 4 , 0 1 0
−7 −14 −13 −3 −6 −5 −1 −2 −1 0 0 1
We can arrange them as column vectors in C9 as done earlier, but it might be easier to
simply look at the entries in a single row or column. Lets pick the first column of each.
Thus the augmented matrix to solve would be
1 0 −2 −6 0
0 2 6 14 0
0 −1 −3 −7 0
190 CHAPTER 11. MATRICES AND THE INNER PRODUCT
0 0 0 0 0
Thus column one of A2 equals −2 times column one of I added to three times column one
of A. Thus consider the polynomial λ 2 − 3λ + 2. This seems to work in so far as the first
column of A is concerned and there is no polynomial of smaller degree which will work.
Therefore, lets check to see if this sends A to 0. If it does, then it must be the minimal
polynomial. When you do the computations, you find that this indeed does send A to 0
and so it is the minimum polynomial. The eigenvalues are 1 and 2. You can now find the
eigenvectors for these using row operations.
2 7 1
You open MATLAB and you see >>. Then type in just what is above. The ; at the end after
entering the matrix says for MATLAB to know the matrix but not to rewrite it. You can of
course follow the same pattern to enter any square matrix you like. Then of course you are
faced with the problem of finding the roots of the polynomial. Sometimes you can’t do this
exactly. Neither can MATLAB. However, when the polynomial can be factored, MATLAB
can do it for you. Here is the syntax.
>> syms x
is given next. First recall that if you have two square matrices of the same size and one acts
like the inverse of the other on one side, then it will act like the inverse on the other side as
well. See Problem 19 on Page 168. The traditional definition of unitary is as follows.
Proposition 11.3.2 An n × n matrix U is unitary if and only if |Ux| = |x| for all vectors x.
Proof: First suppose the matrix U preserves all lengths. Since U preserves distances,
|Uu| = |u| for every u. Let u, v be arbitrary vectors in Cn and let θ ∈ C, |θ | = 1, and
θ (U ∗Uu − u, v) = |(U ∗Uu − u, v)|. Therefore from the axioms of the inner product,
U ∗Uu − u = (U ∗U − I) u = 0.
This is true for all u and so U ∗U = I. Thus it is also true that UU ∗ = I. One can use the
fact shown in Problem 19 on Page 168.
Conversely, if U ∗U = I, then
Note this is the same as saying that (xi , x j ) = δ i j although here it will be slightly more
convenient to define the inner product differently. Indeed, we are really working with the
inner product ⟨x, y⟩ = x∗ y whereas the usual inner product is (x, y) = xT y. This alter-
nate version of the inner product is actually more convenient in matrix theory so we use it
here. The difference is that with this new version, the complex conjugate comes out of the
first entry rather than the second.
on the left with the jth column of the matrix on the right, we have
u∗i u j = δ i j
in other words, the columns of U are orthonormal. From this simple observation, we get
the following important theorem.
is unitary. Thus if Ux = 0, you can multiply on the left on both sides with U ∗ and obtain
x = U ∗Ux = U ∗ 0 = 0. Thus, from the definition of linear independence, Definition 9.1.5,
it follows that the columns of U comprise an independent set of vectors. ■
Theorem 11.4.3 Let v 1 be a unit vector (|v 1 | = 1) in Fn , n > 1. Then there exist vectors
{v 2 , · · · , v n }
Proof: The equation for x, v 1 T x = 0 has a nonzero solution x by Theorem 9.1.4. Pick
such a solution and divide by its magnitude to get v 2 a unit vector such that v 1 T · v 2 = 0.
Now suppose v 1 , · · · , v k have been chosen such that {v 1 , · · · , v k } is an orthonormal set of
vectors. Then consider the equations
v j T x = 0 j = 1, 2, · · · , k
This amounts to the situation of Theorem 9.1.4 in which there are more variables than
equations. Therefore, by this theorem, there exists a nonzero x solving all these equations.
Divide by its magnitude and this gives v k+1 . Continue this way. At the last step, you obtain
v n and the resulting set is an orthonormalset. ■
Thus, as observed above, the matrix v 1 · · · v n is a unitary matrix. With this
preparation, here is Schur’s theorem. First is some terminology. An n × n matrix T is called
11.4. SCHUR’S THEOREM 193
where T is upper triangular. Then let U = U0U1 . Both of the Ui are unitary and so U must
also be unitary. Indeed
U ∗U = (U0U1 )∗ U0U1 = U1∗U0∗U0U1 = U1∗U1 = I.
Then U ∗ AU = T.
If A is real having real eigenvalues, all of the above can be accomplished using the real
dot product and using real eigenvectors. Thus the unitary matrix can be assumed real. ■
The diagonal entries of T are each eigenvalues of A. This will become clear later when
we discuss the determinant and the characteristic polynomial. However, it is clear right
now that T and A have the same eigenvalues. If T x = λ x for nonzero x, then
U ∗ AUx = λU ∗Ux
U ∗ (AUx − λUx) = 0
Now multiply both sides by U and obtain that Ux is an eigenvector for A. It is nonzero
because U preserves lengths. Similar reasoning shows that every eigenvalue of A is an
eigenvalue of T. Thus one obtains the following important corollary.
Corollary 11.4.5 Let A be an n × n matrix. Then det (A) equals the product of the eigen-
values of A.
Proof: Let U ∗ AU = T where T is upper triangular. Then
product of eigenvalues of A = product of eigenvalues of T = det (T ) = det (A)
The reason for the last equality is that from Theorem 10.2.23,
det (T ) = det U T AU = det U T det (A) det (U) = det U T det (U) det (A)
The following result is about Hermitian matrices. These are those matrices for which
the upper triangular matrix in Schur’s theorem is actually a real diagonal matrix.
Definition 11.4.6 An n × n matrix A is Hermitian if A = A∗ . Thus a real symmetric matrix
is Hermitian but so is
1 1−i 3
1+i 2 i
3 −i 1
In this book, we are mainly interested in real symmetric matrices.
The next theorem is the main result.
Theorem 11.4.7 If A is an n × n Hermitian matrix, there exists a unitary matrix U such
that
U ∗ AU = D (11.4)
where D is a real diagonal matrix. That is, D has nonzero entries only on the main diagonal
and these are real. Furthermore, the columns of U are an orthonormal basis of eigenvectors
for Cn . If A is real and symmetric, then U can be assumed to be a real orthogonal matrix
and the columns of U form an orthonormal basis for Rn . Furthermore, if A is an n × n
matrix and there is a unitary matrix U such that U ∗ AU = D where D is real and diagonal,
then A is Hermitian.
11.4. SCHUR’S THEOREM 195
Proof: From Schur’s theorem above, there exists U unitary (real and orthogonal if A is
real) such that
U ∗ AU = T
where T is an upper triangular matrix. Then from the rules for the transpose,
T ∗ = (U ∗ AU)∗ = U ∗ A∗U = U ∗ AU = T.
Thus T = T ∗ and T is upper triangular. This can only happen if T is really a diagonal
matrix having real entries on the main diagonal. (If i ̸= j, one of Ti j or T ji equals zero. But
Ti j = T ji and so they are both zero. Also Tii = Tii .)
Finally, let
U = u1 u2 · · · un
where the entries denote the columns of AU and UD respectively. Therefore, Aui = λ i ui
and since the matrix is unitary, the i jth entry of U ∗U equals δ i j and so
This proves the corollary because it shows the vectors {ui } form an orthonormal basis. In
case A is real and symmetric, simply ignore all complex conjugations in the above argu-
ment.
Finally suppose that U ∗ AU = D where D is real and diagonal. Thus D∗ = D. Then
A = UDU ∗
Thus A∗ = UD∗U ∗ = UDU ∗ = A. This last uses the fact that (AB)∗ = B∗ A∗ . ■
13 −4 1
From the above explanation the columns of this matrix U are eigenvectors of unit length
and in fact this is sufficient to obtain the matrix. After doing row operations and then
normalizing the vectors, you obtain
√ √ √
1 1
1 −4 13 6 √6 6 6 6
1 √ 1√
−4 10 −4 3 6 = 2 6 = 6 3 6
1
√ √ 1
√
13 −4 1 6 6 6 6 6
√ √ √
1 −4 13 − 21 2 6 2 − 12 2
−4 10 −4 0 = 0 = −12 0
√ √ √
1 1
13 −4 1 2 2 −6 2 2 2
√ √ √
1 1
1 −4 13 3 √3 6 3 3 3
1 √ 1√
−4 10 −4 − 3 3 = −6 3 = 18 − 3 3
1
√ √ 1
√
13 −4 1 3 3 6 3 3 3
Thus the matrix of interest is
1
√ √ √
6 √6 − 12 2 1
3 3
1 1
√
U = 3 √6 0 −3 3
1 1
√ 1
√
6 6 2 2 3 3
Then √ √ √ T
1
6 √6 − 12 2 1
3 √ 3 1 −4 13
1 1
3 √6 0 − 3 3 −4 10 −4 ·
√ √
1 1 1
6 6 2 2 3 3 13 −4 1
1
√ 1
√ 1
√
6 √6 − 2 2 3 √ 3 6 0 0
1 1
6 0 − 3 = 0 −12 0
3√ √ 3√
1 1 1
6 6 2 2 3 3 0 0 18
11.5 Diagonalization
Theorem 11.4.7 is a special case of something known as diagonalization.
The following theorem gives the condition under which a matrix is diagonalizable.
Theorem 11.5.2 An n × n matrix S is invertible if and only if its columns are linearly
independent.
11.5. DIAGONALIZATION 197
Proof: First note that if S is n × n and its columns are linearly independent, then these
columns must also span all of Fn since otherwise, there would be a vector v not in the
span and you could add it in to the list and get n + 1 vectors in an independent set. This is
contrary to Theorem 9.1.6. Thus Im (S) = Fn . Also, if Sx = Sy, then S (x − y) = 0 and so
x = y (S is one to one.). Thus we can define S−1 y to be that vector such that S S−1 y = y.
Then S−1 is a linear transformation because of the following reasoning.
S S−1 (ax + by) = ax + by
= ax + by
Thus, since S is one to one, as explained above, it follows that
S−1 (ax + by) = aS−1 x + bS−1 y
there is a matrix, still denoted as S−1 such that for any x ∈ Fn , S S−1 x =
Therefore,
SS−1 x −1 on Page 168, S−1 S = I also. Alternatively,
−1
= x. −1 SS = I. By Problem 19
Hence
S = S. Hence for all x,S S S x = Sx and so S S−1 Sx − Ix = 0 and
−1
S S S = SS
so, since S is one to one, S−1 Sx = Ix for all x showing that S−1 S = I also. ■
Thus if the columns of a matrix are linearly independent, then the matrix is invertible.
On the other hand, if the matrix S is invertible, then if Sx = 0 one could multiply both
sides by S−1 and obtain x = 0 and so the columns of S are linearly independent.
Theorem 11.5.3 An n × n matrix is diagonalizable if and only if Fn has a basis of eigen-
vectors of A. Furthermore, you can take the matrix S described above, to be given as
S = s1 s2 · · · sn
where here the sk are the eigenvectors in the basis for Fn . If A is diagonalizable, the
eigenvalues of A are the diagonal entries of the diagonal matrix.
Proof: To say that A is diagonalizable, is to say that
λ1
S−1 AS =
..
.
λn
the λ i being elements of F. This is to say that for S = s1 · · · sn , sk being the kth
column,
λ
1
A s1 · · · sn = s1 · · · sn ..
.
λn
which is equivalent, from the way we multiply matrices, that
As1 · · · Asn = λ 1 s1 · · · λ n sn
which is equivalent to saying that the columns of S are eigenvectors and the diagonal matrix
has the eigenvectors down the main diagonal. Since S−1 is invertible, these eigenvectors
are a basis. Similarly, if there is a basis of eigenvectors, one can take them as the columns
of S and reverse the above steps, finally concluding that A is diagonalizable. ■
198 CHAPTER 11. MATRICES AND THE INNER PRODUCT
11.6 Approximations
11.6.1 Fredholm Alternative
First is a useful proposition which tells when there is a solution to a system of equations.
Ax = b (11.5)
Now note ( )
m
T
≡ z : AT z = 0 =
N A z: ∑ zk ak = 0
k=1
Here the ak are the rows of A because they are the columns of AT .
(Ax · y) = x·AT y
11.6. APPROXIMATIONS 199
Proof: This follows right away from the definition of the dot product and matrix multi-
plication.
(Ax · y) = ∑ Akl xl yk = ∑ AT lk xl yk = x · AT y . ■
k,l k,l
Now it is time to state the Fredholm alternative. The first version of this is the following
theorem.
b · x = xT b = 0.
xT A = 0T then xT b = 0.
Thus, if P is a product of elementary matrices such that PA is in row reduced echelon form,
then if PA has a row of zeros, in the kth position, obtained from the kth row of P times A,
then there is also a zero in the kth position of Pb. This is because the kth position
in Pb is
th
just the k row of P times b. Thus the row reduced echelon forms of A and A | b
have the same number of zero rows. Thus rank A | b = rank (A). By Proposition
11.6.1, there existsa solution x to the system Ax = b. It remains to prove the converse.
Let z ∈ N AT and suppose Ax = b. I need to verify b · z = 0. By Lemma 11.6.3,
b · z = Ax · z = x · AT z = x · 0 = 0 ■
This implies the following corollary which is also called the Fredholm alternative. The
“alternative” becomes more clear in this corollary.
Corollary 11.6.5 Let A be an m × n matrix. Then A maps Rn onto Rm if and only if the
only solution to AT x = 0 is x = 0.
⊥
Proof: If the only solution to AT x = 0 is x = 0, then N AT = {0} and so N AT =
Example 11.6.6 Let A be an m × n matrix in which m > n. Then A cannot map onto Rm .
The reason for this is that AT is an n × m where m > n and so in the augmented matrix
AT |0
there must be some free variables. Thus there exists a nonzero vector x such that AT x = 0.
Hence AT is not one to one and so A is not onto.
200 CHAPTER 11. MATRICES AND THE INNER PRODUCT
AT Ax = AT b
So this raises the question whether there is a solution to this last equation.
In order to present this material using notation which is common in more general
situations, we begin to denote the dot product x · y as (x, y). Thus, the property of
the transpose mentioned above about how it interacts with the dot product is written as
(Ax, y) = x,AT y .
Theorem 11.6.7 Let A be a real m × n matrix and let b ∈ Rm . Then there exists a solution
x to the system
AT Ax = AT b
T
Proof: First note that AT A = AT A. Thus, by the Fredholm alternative, it suf-
T ⊥
fices to verify that AT b is in N AT A . So suppose AT Az = 0. Does it follow that
z,AT b = 0? First note that N AT A = N (A) . To see this note that since any matrix times
the zero vectoris zero, the left side is at least as large as the right. But if AT Ax = 0, then
0 = ATAx, x = (Ax, Ax) = |Ax|2 so Ax = 0. Hence the two sets are the same. Thus
z,AT b = (Az, b) = (0, b) = 0. By Fredholm alternative, it follows there exists a solution
to the above equation. ■
Next we verify that any solution to this equation is a solution to the least squares prob-
lem of finding x such that Ax is as close as possible to b.
Proof: x is such that Ax is as close as possible to bif and only if |A (x + tz) − b|2 is
minimized when t = 0 for any choice of z. This equals
(A x − b+ tAz, A x − b+ tAz)
If x solves the minimization problem, then taking a derivative and setting equal to 0 gives
Corollary 11.6.9 |Ax − b| ≤ |Ax̂ − b| for all x̂ ∈ Rn if and only if 0 = (Ax − b,Az) for
every z ∈ Rn .
Proof:This is the content of the above theorem because 0 = (Ax − b,Az) for every
z ∈ Rn if and only if AT Ax = AT b. ■
The corollary says that the vector Ax − b is perpendicular to the subspace Im (A) is the
same as saying that Ax is as close as possible to b. Note that this orthogonality condition
0 = (Ax − b,Az) is equivalent to saying 0 = (Ax − b,A x− Az) = (b − Ax,Az − Ax). Here
is a picture which illustrates the conclusion of this important theorem.
•b
A(Fn ) ≡ Im(A)
• •Ay
Ax
Thus V is the column space of A, the span of the columns of A which is also Im (A). Thus
the question is to find Ay which is closer to b than any Az. Isn’t this just what was solved
above? Then the closest point to b in V will be x ≡ Ay. From the above explanation, y
must satisfy
x u
AT Ay = AT b so b−Ay, Az =0
for all z ∈ Rn . In other words, you need x to be the point in V which satisfies (b − x, u) = 0
for all u in V . Note that since x is in V , a generic point of V is of the form u − x. Thus it
makes no difference whether we write (b − x, u) = 0 for all u in V or (b − x, u − x) = 0
for all u in V . The following picture illustrates what was just shown.
•b
A(Fn ) ≡ Im(A) ≡ V
• •u
x
Theorem 11.6.10 Let V be a finite dimensional subspace of Rn and let b ∈ Rn . Then there
exists a unique point of V which is closest to b out of all points of V . This point x is
characterized by the equation
(b − x, z) = 0 (11.7)
for all z ∈ V.
202 CHAPTER 11. MATRICES AND THE INNER PRODUCT
Proof: The existence of this point follows from Theorem 11.6.8. However, to empha-
size the uniqueness, suppose x, x̂ both are closest points. Then from the characterization
of these points in 11.7,
Example 11.6.11 The least squares regression line is the line y = mx + b which approxi-
mates data points (xi , yi ) which typically come from some sort of experiment. It is desired
to choose m, b in such a way that the sum of the squares of the errors between the value
predicted by the line and the observed values is as small as possible. In other words, you
want to minimize ∑i (yi − (mxi + b))2 . Ideally, the sum would be zero and this would cor-
respond to the data points being on a straight line. This will never occur in any realistic
situation in which the data points come from experiments.
{(xi , yi )}ni=1
and you would like to find constants m and b such that the line y = mx + b goes through all
these points. Of course this will be impossible in general. Therefore, try to find m, b to get
as close as possible. The desired system is
y1 x1 1 ! !
. . . m m
y = .. = .. ..
≡A
b b
yn xn 1
as small as possible. According to Theorem 11.6.8, the best values for m and b occur as the
solution to
! y1 x1 1
m .
AT A = AT .. , A = ... ... .
b
yn xn 1
11.6. APPROXIMATIONS 203
and
− (∑ni=1 xi ) ∑ni=1 xi yi + (∑ni=1 yi ) ∑ni=1 xi2
b= 2
.
∑ni=1 xi2 n − (∑ni=1 xi )
One could clearly do a least squares fit for curves of the form y = ax2 + bx + c in the
same way. In this case you want to solve as well as possible for a, b, and c the system
x12 x1 1 a y1
. .. .. .
.
. . . b = ..
xn2 xn 1 c yn
and one would use the same technique as above. Many other similar problems are impor-
tant, including many in higher dimensions and they are all solved the same way.
Example 11.6.12 Find the least squares regression line for the data
Of course there is no solution so you look for a least squares solution. You have AT A equals
!
58 18
18 7
and AT b is !
85
28
204 CHAPTER 11. MATRICES AND THE INNER PRODUCT
0
0 2 4
where the denominator is not equal to zero because the v j form a basis, and so
v k+1 ∈
/ span (v 1 , · · · , v k ) = span (u1 , · · · , uk )
Thus by induction,
uk+1 ∈ span (u1 , · · · , uk , v k+1 ) = span (v 1 , · · · , v k , v k+1 ) .
Also, v k+1 ∈ span (u1 , · · · , uk , uk+1 ) which is seen easily by solving 11.9 for v k+1 , and it
follows
span (v 1 , · · · , v k , v k+1 ) = span (u1 , · · · , uk , uk+1 ) .
If l ≤ k, !
k
(uk+1 , ul ) = C (v k+1 , ul ) − ∑ (v k+1 , u j ) (u j , ul ) =
j=1
!
k
C (v k+1 , ul ) − ∑ (v k+1 , u j ) δ l j = C ((v k+1 , ul ) − (v k+1 , ul )) = 0.
j=1
n
The vectors, u j j=1 , generated in this way are therefore orthonormal because each vector
has unit length. ■
Corollary 11.6.14 If you have a basis for R p ,
u1 , · · · , um , um+1 , · · · , u p
and {u1 , · · · , um } is orthonormal, then when the Gram Schmidt process is used on this
basis, it returns {u1 , · · · , um } . Thus it is always possible to extend an orthonormal set of
vectors to an orthonormal basis.
Proof:This follows right away from the algorithm. ■
Did we ever use the fact that all of this is taking place in R p ? No, this was never used at
all! In fact everything in the Gram Schmidt process holds if V is a subspace of an arbitrary
inner product space. You just need something which is a vector space which has an inner
product to have it all work out exactly the same. A vector space is something in which
you can add the “vectors” and multiply them by scalars in the usual way which we do for
vectors in Rn .
Now return to the stated problem which was to compute the closest point in V . This is
the content of the next theorem.
Theorem 11.6.15 Let V be an m dimensional subspace of R p having orthonormal basis
{u1 , · · · , um }. Let b ∈ R p and let y be the point of V closest to b. Then
m
y= ∑ (b, uk ) uk (11.10)
k=1
206 CHAPTER 11. MATRICES AND THE INNER PRODUCT
Proof:We only need to show that this satisfies the orthogonality condition 11.7. But
this is fairly obvious because, from properties of the inner product and y given above,
!
m m
y, u j = ∑ (b, uk ) uk , u j = ∑ (b, uk ) (uk , u j ) = b, u j
k=1 k=1
Thus b − y, u j = 0. Since this holds for every basis vector, it holds for every z ∈ V also.
!
m m
(z, b − y) = ∑ z, u j u j , b − y = ∑ z, u j (u j , b − y) = 0
j=1 j=1
Therefore, the orthogonality condition holds for y given by the above formula and so y
equals the above sum in 11.10. ■
The sum in 11.10 is the Fourier series approximation to b. The scalars (b, uk ) are the
Fourier coefficients. Note that all this works any time you have a norm which comes from
an inner product, something which satisfies the same axioms as the dot product. That is,
|x| = (x, x) where (·, ·) satisfies the inner product axioms:
1. ( f , g) = (g, f )
2. (a f + bg, h) = a ( f , h) + b (g, h)
3. ( f , f ) ≥ 0 and equals 0 only if f = 0
The conjugate is placed on the (g, f ) to include the case of a complex inner product.
Just ignore it in the case where the scalars are real numbers.
Now we generalize these ideas more.
Theorem 11.6.16 Let V be a finite dimensional subspace of an inner product space X,
something with an inner product. (X is a nonempty set which satisfies the vector space
axioms. In addition it has an inner product satisfying the inner product axioms.) If b ∈ X,
there exists a unique y ∈ V such that |b − y| ≤ |b − z| for all z ∈ V . This point is character-
ized by (b − y, z) = 0 for all z ∈ V .
Proof: Letting t ∈ R,
|b − (y + tz)|2 = |b − y|2 − 2t (b − y, z) + t 2 |z|2
If y is closest to b then taking the derivative and setting t = 0, we must have (b − y, z) = 0.
Conversely, if this equals zero, let t = 1 and you have
|b − (y + z)|2 = |b − y|2 + |z|2
and so y solves the minimization property. It only remains to show the existence of such y
satisfying (b − y, z) = 0. However, using the Gram Schmidt process, there is an orthonormal
basis {u1 , · · · , un } whose span is V . Then all that remains is to verify that ∑ni=1 (b, ui ) ui
satisfies the orthogonality condition. Indeed,
!
n n
b − ∑ (b, ui ) ui , u j = (b, u j ) − ∑ (b, ui ) δ i j = 0
i=1 i=1
Q= R=
-0.2132 0.1756 -0.2593 0.9255 -4.6904 -3.8376 -4.9036
-0.8528 -0.1892 0.4862 -0.0244 0 6.7285 3.4453
-0.4264 0.6485 -0.5139 -0.3653 0 0 -5.2043
-0.2132 -0.7161 -0.6575 -0.0974 000
If you want to see something horrible, replace qr(A) with qr(sym(A)). This way it gives
the exact values. You can check your work by >>Q*Q’ and press enter. The Q’ means the
conjugate transpose in MATLAB. Since everything is real here, this is just the transpose.
There is so much more that could be discussed about the QR factorization, but this will
suffice here.
As to plotting data with a curve as in the least squares example, use the following
syntax.
x=-1:.1:5;
y=1.11*x+1.146;
plot(x,y,0,1,’*’,2,3,’*’,2,4,’*’,3,4,’*’,3,5,’*’,4,6,’*’,4,5,’*’)
In MATLAB, you press shift enter to get to a new line and you press enter to get it to
do something.
With this definition and lemma here is the main theorem on the singular value decom-
position.
Theorem 11.7.3 Let A be an m × n matrix. Then there exist unitary matrices, U and V of
the appropriate size such that !
∗ σ 0
U AV =
0 0
where σ is of the form
σ1 0
σ = ..
.
0 σk
for the σ i the singular values of A.
Proof: By the above lemma and Theorem 11.4.7 there exists an orthonormal basis,
{v i }ni=1 such that A∗ Av i = σ 2i v i where σ 2i > 0 for i = 1, · · · , k, (σ i > 0) and equals zero if
i > k. Thus for i > k, Av i = 0 because
(Av i , Av i ) = (A∗ Av i , v i ) = (0, v i ) = 0.
For i = 1, · · · , k, define ui ∈ Fm by
ui ≡ σ −1
i Av i .
Thus Av i = σ i ui . Now
(ui , u j ) = σ −1
i Av i , σ −1
j Av j = σ −1
i v i , σ −1 ∗
j A Av j
σ
j
= σ −1 −1 2
i vi , σ j σ j v j = (v i , v j ) = δ i j .
σi
Thus {ui }ki=1 is an orthonormal set of vectors in Fm . Also,
AA∗ ui = AA∗ σ −1 −1 ∗ −1 2 2
i Av i = σ i AA Av i = σ i Aσ i v i = σ i ui .
U ≡ (u1 · · · um )
while V ≡ (v 1 · · · v n ) . Thus U is the matrix which has the ui as columns and V is defined
as the matrix which has the v i as columns. Then
∗ ∗
u1 u1
. .
.. .. !
σ 0
U ∗ AV = u∗k A (v 1 · · · v n ) = u∗k (σ 1 u1 · · · σ k uk , 0 · · · 0) =
..
..
0 0
. .
u∗m u∗m
where σ is given in the statement of the theorem. ■
The singular value decomposition has as an immediate corollary the following interest-
ing result.
11.8. EXERCISES 209
Corollary 11.7.4 Let A be an m × n matrix. Then the rank of A and A∗ equals the number
of singular values.
!∗ !
σ 0
= rank = number of singular values. ■
0 0
This is based on the simple observation that for A an m × n matrix, the dimension of
Im (A) is the same as the dimension of Im (UAV ) if U,V are invertible matrices of the
right size. Indeed, Im (UAV ) = Im (UA) because V being invertible maps Fn onto Fn . The
dimension of Im (UA) and the dimension of Im (A) must be the same because U is one to
one. Thus if a basis for Im (A) is {a1 , · · · , ak } , columns of A, then a basis for UA will be
{Ua1 , · · · ,Uak } .
11.8 Exercises
1. Let {u1 , · · · , un } be a basis for Fn and define a mapping T : Fn → span (v 1 , · · · , v r )
as follows. !
n r
T ∑ a k uk ≡ ∑ ak vk
k=1 k=1
−4 2 −1
210 CHAPTER 11. MATRICES AND THE INNER PRODUCT
1 0 0
(d) 1 1 1
1 0 2
2 0 1
(e) 1 1 1
−1 0 0
6 −2 3
(f) 3 0 2
−5 2 −2
2 1 1 z 2
6. Here are some matrices. Label according to whether they are symmetric, skew sym-
metric, or orthogonal. If the matrix is orthogonal, determine whether it is proper or
improper.
1 0 0 1 2 −3 0 −2 −3
√ √
(a) 0 1/ 2 −1/ 2 (b) 2 1 4 (c) 2 0 −4
√ √
0 1/ 2 1/ 2 −3 4 7 3 4 0
7. Show that every real matrix may be written as the sum of a skew symmetric
and a
symmetric matrix. Hint: If A is an n × n matrix, show that B ≡ 12 A − AT is skew
symmetric.
T
8. Let x be a vector in Rn and consider the matrix I − 2xx2 . Show this matrix is both
||x||
symmetric and orthogonal.
11.8. EXERCISES 211
9. For U an orthogonal matrix, explain why ||Ux|| = ||x|| for any vector x. Next ex-
plain why if U is an n × n matrix with the property that ||Ux|| = ||x|| for all vectors,
x, then U must be orthogonal. Thus the orthogonal matrices are exactly those which
preserve distance. This was done in general in the chapter for unitary matrices. Do
it here for the special case that the matrix is orthogonal. It will be simpler.
10. A quadratic form in three variables is an expression of the form a1 x2 + a2 y2 + a3 z2 +
a4 xy + a5 xz + a6 yz. Show that every such quadratic form may be written as
x
x y z A y
z
where A is a symmetric matrix.
11. Given a quadratic form in three variables, x, y, and z, show there exists an orthogonal
T T
matrix U and variables x′ , y′ , z′ such that x y z = U x′ y′ z′ with
the property that in terms of the new variables, the quadratic form is
2 2 2
λ 1 x′ + λ 2 y′ + λ 3 z′
where the numbers, λ 1 , λ 2 , and λ 3 are the eigenvalues of the matrix A in Problem
10.
12. If A is a symmetric invertible matrix, is it always the case that A−1 must be symmetric
also? How about Ak for k a positive integer? Explain.
13. If A, B are symmetric matrices, does it follow that AB is also symmetric?
14. Suppose A, B are symmetric and AB = BA. Does it follow that AB is symmetric?
15. Here are some matrices. What can you say about the eigenvalues of these matrices
just by looking at them?
0 0 0 0 −2 −3
(a) 0 0 −1 (c) 2 0 −4
0 1 0 3 4 0
1 2 −3 1 2 3
(b) 2 1 4 (d) 0 2 3
−3 4 7 0 0 2
c 0 0
16. Find the eigenvalues and eigenvectors of the matrix 0 0 −b . Here b, c are
0 b 0
real numbers.
c 0 0
17. Find the eigenvalues and eigenvectors of the matrix 0 a −b . Here a, b, c
0 b a
are real numbers.
212 CHAPTER 11. MATRICES AND THE INNER PRODUCT
−4 −4 14
−2 −2 7
λ xT x = (Ax)T x = xT Ax = xT Ax = xT λ x = λ xT x
and so λ = λ . This shows that all eigenvalues are real. It follows all the eigenvectors
are real. Why? Now let x, y, µ and λ be given as above.
λ (x · y) = λ x · y = Ax · y = x · A y = x· µy = µ (x · y) = µ (x · y)
and so
(λ − µ) (x · y) = 0.
Since λ ̸= µ, it follows x · y = 0.
21. Suppose U is an orthogonal n × n matrix. Explain why rank (U) = n.
22. Show that if A is an Hermitian matrix and λ and µ are two different eigenvalues, then
if x is an eigenvector for λ and y is an eigenvector for µ, then (x, y) = 0. Also all
eigenvalues are real. Supply reasons for each step in the following argument. First
and so λ = λ . This shows that all eigenvalues are real. Now let x, y, µ and λ be
given as above.
25. Suppose A is a 3 × 3 symmetric matrix and you have found two eigenvectors which
form an orthonormal set. Explain why their cross product is also an eigenvector.
26. Determine which of the following sets of vectors are orthonormal sets. Justify your
answer.
31. Find the eigenvalues and an orthonormal basis of eigenvectors for A. Diagonalize A
by finding an orthogonal matrix U and a diagonal matrix D such that U T AU = D.
−1 1 1
A = 1 −1 1 .
1 1 −1
Hint: One eigenvalue is -2.
32. Find the eigenvalues and an orthonormal basis of eigenvectors for A. Diagonalize A
by finding an orthogonal matrix U and a diagonal matrix D such that U T AU = D.
17 −7 −4
A = −7 17 −4 .
−4 −4 14
214 CHAPTER 11. MATRICES AND THE INNER PRODUCT
4 4 10
Hint: Two eigenvalues are 12 and 18.
34. Find the eigenvalues and an orthonormal basis of eigenvectors for A. Diagonalize A
by finding an orthogonal matrix U and a diagonal matrix D such that U T AU = D.
√ √ √
− 53 1 8
15 6 5 15 5
√ √ √
1
6 5 − 14 1
− 15 6
A=
15 5
8
√ 1
√ 7
15 5 − 15 6 15
36. Find the eigenvalues and an orthonormal basis of eigenvectors for A. Diagonalize A
by finding an orthogonal matrix U and a diagonal matrix D such that U T AU = D.
2 0 0
A = 0 5 1 .
0 1 5
37. Find the eigenvalues and an orthonormal basis of eigenvectors for A. Diagonalize A
by finding an orthogonal matrix U and a diagonal matrix D such that U T AU = D.
4 1
√ √ 1
√
3 3 3 2 3 2
1
√ √ 1
√
3 2 1 −3 3
A= 3
√ √
1
3 2 − 13 3 5
3
Hint: The eigenvalues are 0, 2, 2 where 2 is listed twice because it is a root of multi-
plicity 2.
11.8. EXERCISES 215
38. Find the eigenvalues and an orthonormal basis of eigenvectors for A. Diagonalize A
by finding an orthogonal matrix U and a diagonal matrix D such that U T AU = D.
1
√ √ 1
√ √
1 6 3 2 6 3 6
√ √ √ √
1 3 1
6 3 2 12 2 6
A= 2
√ √ √ √
1 1 1
6 3 6 12 2 6 2
1 √3√2 √ √
3 1
6 2 − 12 2 6
− 7 √3√6 √ √
1
18 − 12 2 6 −5
6
− 1 √6√5 √
7 1
5 5 −5 6
1
√ √
5
10 − 15 6 − 9
10
Hint: The eigenvalues are −1, 2, −1 where −1 is listed twice because it has multi-
plicity 2 as a zero of the characteristic equation.
41. Explain why a real matrix A is symmetric if and only if there exists an orthogonal
matrix U such that A = U T DU for D a diagonal matrix.
42. You are doing experiments and have obtained the ordered pairs,
Find m and b such that y = mx + b approximates these four points as well as possible.
Now do the same thing for y = ax2 + bx + c, finding a, b, and c to give the best
approximation.
43. Suppose you have several ordered triples, (xi , yi , zi ) . Describe how to find a polyno-
mial,
z = a + bx + cy + dxy + ex2 + f y2
216 CHAPTER 11. MATRICES AND THE INNER PRODUCT
for example giving the best fit to the given ordered triples. Is there any reason you
have to use a polynomial? Would similar approaches work for other combinations of
functions just as well?
44. Find an orthonormal basis for the spans of the following sets of vectors.
45. Using the Gram Schmidt process or the QR factorization, find an orthonormal basis
for the span of the vectors, (1, 2, 1) , (2, −1, 3) , and (1, 0, 0) .
46. Using the Gram Schmidt process or the QR factorization, find an orthonormal basis
for the span of the vectors, (1, 2, 1, 0) , (2, −1, 3, 1) , and (1, 0, 0, 1) .
47. The set, V ≡ {(x, y, z) : 2x + 3y − z = 0} is a subspace of R3 . Find an orthonormal
basis for this subspace.
48. The two level surfaces, 2x + 3y − z + w = 0 and 3x − y + z + 2w = 0 intersect in a
subspace of R4 , find a basis for this subspace. Next find an orthonormal basis for
this subspace.
49. Let A, B be a m × n matrices. Define an inner product on the set of m × n matrices by
Show this is an inner product satisfying all the inner product axioms. Recall for M an
n × n matrix, trace (M) ≡ ∑ni=1 Mii . The resulting norm, ||·||F is called the Frobenius
norm and it can be used to measure the distance between two matrices.
50. Let A be an m × n matrix. Show ||A||2F ≡ (A, A)F = ∑ j σ 2j where the σ j are the
singular values of A.
51. The trace of an n × n matrix M is defined as ∑i Mii . In other words it is the sum of the
entries on the main diagonal. If A, B are n×n matrices, show trace (AB) = trace (BA).
Now explain why if A = S−1 BS it follows trace (A) = trace (B). Hint: For the first
part, write these in terms of components of the matrices and it just falls out.
52. Using Problem 51 and Schur’s theorem, show that the trace of an n × n matrix equals
the sum of the eigenvalues.
53. If A is a general n × n matrix having possibly repeated eigenvalues, show there is a
sequence {Ak } of n × n matrices having distinct eigenvalues which has the property
that the i jth entry of Ak converges to the i jth entry of A for all i j. Hint: Use Schur’s
theorem.
Chapter 12
Example 12.1.1 A rocket is launched from the rotating earth. You could define a function
having values in R3 as (r (t) , θ (t) , φ (t)) where r (t) is the distance of the center of mass
of the rocket from the center of the earth, θ (t) is the longitude, and φ (t) is the latitude of
the rocket.
Example 12.1.2 Let f (x, y) = sin xy, y3 + x, x4 . Then f is a function defined on R2 which
As usual, D (f ) denotes the domain of the function f which is written in bold face be-
cause it will possibly have values in R p . When D (f ) is not specified, it will be understood
that the domain of f consists of those things for which f makes sense.
√
Example 12.1.3 Let f (x, y, z) = x+y 2
z , 1 − x , y . Then D (f ) would consist of the set of
all (x, y, z) such that |x| ≤ 1 and z ̸= 0.
There are many ways to make new functions from old ones.
217
218 CHAPTER 12. VECTOR VALUED FUNCTIONS
{x ∈ D (f ) : f (x) ∈ D (g)}
which is defined as
g ◦ f (x) ≡ g (f (x)) .
This is called the composition of the two functions.
You should note that f (x) is not a function. It is the value of the function at the point
x. The name of the function is f . Nevertheless, people often write f (x) to denote a
function and it does not cause too many problems in beginning courses. When this is done,
the variable, x should be considered as a generic variable free to be anything in D (f ). I
will use this slightly sloppy abuse of notation whenever convenient.
Example 12.1.5 Let f (t) ≡ (t, 1 + t, 2) and g (t) ≡ t 2 ,t,t . Then f · g is the name of the
function satisfying
Note that in this case is was assumed the domains of the functions consisted of all of R
because this was the set on which the two both made sense. Also note that f and g map R
into R3 but f · g maps R into R.
Then g ◦ f : R → R and
Example 12.2.1 Draw a picture of the vector field (−x, y) which gives the velocity of a
fluid flowing in two dimensions.
12.2. VECTOR FIELDS 219
You can see how the arrows indicate the motion of this fluid.
Example 12.2.2 Draw a picture of the vector field (y, x) for the velocity of a fluid flowing
in two dimensions.
Example 12.2.3 Draw a picture of the vector field (y cos (x) + 1, x sin (y) − 1) for the ve-
locity of a fluid flowing in two dimensions.
220 CHAPTER 12. VECTOR VALUED FUNCTIONS
These pictures were drawn by maple. Note how they reveal both the direction and the
magnitude of the vectors. However, if you try to draw these by hand, you will mainly waste
time.
12.3 Exercises
1. Here are some vector valued functions.
Now here are the graphs of some vector fields. Match the function with the vector
field.
xy
p
2. Find D (f ) for f (x, y, z, w) = zw , 6 − x 2 y2 .
p
1
3. Find D (f ) for f (x, y, z) = 1+x2 −y2
, 4 − (x2 + y2 + z2 ) .
1
4. For f (x, y, z) = (x, y, xy) , h (x, y, z) = y2 , −x, z and g (x, y, z) = 2
x , yz, x − 1, com-
pute the following.
(a) f × g
(b) g × f
(c) f · g
(d) f × g · h
(e) f × (g × h)
(f) (f × g) · (g × h)
7. For f, g, h vector valued functions and k, l scalar valued functions, which of the
following make sense?
(a) f × g × h
(b) (k × g) × h
(c) (f · g) × h
(d) (f × g) · h
12.4. CONTINUOUS FUNCTIONS 221
(e) l g· k
(f) f × (g + h)
8. The Lotka Volterra system of differential equations, proposed in 1925 and 1926 by
Lotka and Volterra respectively, is intended to model the interaction of predators and
prey. An example of this situation is that of wolves and moose living on Isle Royal
in the middle of Lake Superior. In these equations x is the number of prey and y is
the number of predators. The equations are
x′ (t) = x (t) (a − by (t)) , y′ (t) = −y (t) (c − dx (t))
Written in terms of vectors,
x′ , y′ = (x (a − by) , −y (c − dx))
1.5
1.0
0.5
The proof of this theorem is in the last section of this chapter. Its conclusions are not
surprising. For example the first claim says that (af + bg) (y) is close to (af + bg) (x)
when y is close to x provided the same can be said about f and g. For the second claim,
if y is close to x, f (x) is close to f (y) and so by continuity of g at f (x), g (f (y)) is
close to g (f (x)). To see the third claim is likely, note that closeness in R p is the same as
closeness in each coordinate. The fourth claim is immediate from the triangle inequality.
For functions defined on Rn , there is a notion of polynomial just as there is for functions
defined on R.
α = (α 1 , · · · , α n )
p (x) = ∑ dα xα.
|α|≤m
if and only if the following condition holds. For all ε > 0 there exists δ > 0 such that if
then,
|L − f (y)| < ε.
Proof: Let ε > 0 be given. There exists δ > 0 such that if 0 < |y − x| < δ and y ∈
D (f ), then
|f (y) − L| < ε, |f (y) − L1 | < ε.
Pick such a y. There exists one because x is a limit point of D (f ). Then
Definition 12.5.4 If f (x) ∈ R, limy→x f (x) = ∞ if for every number l, there exists δ > 0
such that whenever |y − x| < δ and y ∈ D (f ), then f (x) > l. limy→x f (x) = −∞ if for
every number l, there exists δ > 0 such that whenever |y − x| < δ and y ∈ D (f ), then
f (x) < l.
The following theorem is just like the one variable version of calculus.
if and only if
lim fk (y) = Lk (12.2)
y →x
where K, L ∈ Rq . Then if a, b ∈ R,
In the case where q = 3 and limy→x f (y) = L and limy→x g (y) = K, then
Proof: Suppose (12.1). Then letting ε > 0 be given there exists δ > 0 such that if
0 < |y − x| < δ , it follows
Each of the remaining assertions follows immediately from the coordinate descriptions
of the various expressions and the first part. However, I will give a different argument for
these.
The proof of (12.3) is left for you. It is like a corresponding theorem for continuous
functions. Now (12.4) is to be verified. Let ε > 0 be given. Then by the triangle inequality,
|f (y) − L| < 1,
and so for such y, the triangle inequality implies, |f (y)| < 1 + |L|. Therefore, for 0 <
|y − x| < δ 1 ,
|f · g (y) − L · K| < ε
(1 + |L|) |g (y) − K| + |f (y) − L| |K| ≤ (1 + |K| + |L|) [|g (y) − K| + |f (y) − L|]
and now the conclusion follows as before in the case of the dot product.
The proof of (12.6) is left to you.
Consider (12.7). Since h is continuous near L, it follows that for ε > 0 given, there
exists η > 0 such that if |y − L| < η, then
Now since limy→x f (y) = L, there exists δ > 0 such that if 0 < |y − x| < δ , then
|f (y) − L| < |L − b| − r
226 CHAPTER 12. VECTOR VALUED FUNCTIONS
and so
Proof: First suppose f is continuous at x a limit point of D (f ). Then for every ε > 0
there exists δ > 0 such that if |y − x| < δ and y ∈ D (f ), then |f (x) − f (y)| < ε. In
particular, this holds if 0 < |x − y| < δ and this is just the definition of the limit. Hence
f (x) = limy→x f (y).
Next suppose x is a limit point of D (f ) and limy→x f (y) = f (x). This means
that if ε > 0 there exists δ > 0 such that for 0 < |x − y| < δ and y ∈ D (f ), it follows
|f (y) − f (x)| < ε. However, if y = x, then |f (y) − f (x)| = |f (x) − f (x)| = 0 and so
whenever y ∈ D (f ) and |x − y| < δ , it follows |f (x) − f (y)| < ε, showing f is contin-
uous at x. ■
2
−9
Example 12.5.7 Find lim(x,y)→(3,1) xx−3 ,y .
2 −9
It is clear that lim(x,y)→(3,1) xx−3 = 6 and lim(x,y)→(3,1) y = 1. Therefore, this limit equals
(6, 1).
First of all, observe the domain of the function is R2 \ {(0, 0)}, every point in R2 except
the origin. Therefore, (0, 0) is a limit point of the domain of the function so it might make
sense to take a limit. However, just as in the case of a function of one variable, the limit may
not exist. In fact, this is the case here. To see this, take points on the line y = 0. At these
points, the value of the function equals 0. Now consider points on the line y = x where the
value of the function equals 1/2. Since, arbitrarily close to (0, 0), there are points where
the function equals 1/2 and points where the function has the value 0, it follows there can
be no limit. Just take ε = 1/10 for example. You cannot be within 1/10 of 1/2 and also
within 1/10 of 0 at the same time.
Note it is necessary to rely on the definition of the limit much more than in the case of
a function of one variable and there are no easy ways to do limit problems for functions of
more than one variable. It is what it is and you will not deal with these concepts without
suffering and anguish.
Theorem 12.6.1 Let C be closed and bounded and let f : C → R be continuous. Then f
achieves its maximum and its minimum on C. This means there exist, x1 , x2 ∈ C such that
for all x ∈ C,
f (x1 ) ≤ f (x) ≤ f (x2 ) .
There is also the long technical theorem about sums and products of continuous func-
tions. These theorems are proved later in this chapter.
12.7 Exercises
t t
1. Let f (t) = t,t 2 + 1, t+1
and let g (t) = t + 1, 1, t 2 +1 . Find f · g.
9. State and prove a theorem which involves quotients of functions encountered in the
previous problem.
228 CHAPTER 12. VECTOR VALUED FUNCTIONS
10. Let
2x2 −y2
(
x2 +y2
if (x, y) ̸= (0, 0)
f (x, y) ≡ .
0 if (x, y) = (0, 0)
Find lim(x,y)→(0,0) f (x, y) if it exists. If it does not exist, tell why it does not exist.
Hint: Consider along the line y = x and along the line y = 0.
11. Find the following limits if possible
2−y 2
(a) lim(x,y)→(0,0) xx2 +y 2.
x(x2 −y2 )
(b) lim(x,y)→(0,0) = 0.
(x2 +y2 )
2
(x2 −y4 ) 2
(c) lim(x,y)→(0,0) 2 . Hint: Consider along y = 0 and along x = y .
(x2 +y4 )
1
(d) lim(x,y)→(0,0) x sin x2 +y 2 .
2 3 2 2 2 3
(e) lim(x,y)→(1,2) −2yx +8yx+34y+3y −18y +6x −13x−20−xy −x
−y2 +4y−5−x2 +2x
. Hint: It might help to
write this in terms of the variables (s,t) = (x − 1, y − 2) .
12. Suppose limx→0 f (x, 0) = 0 = limy→0 f (0, y). Does it follow that
lim f (x, y) = 0?
(x,y)→(0,0)
16. Let 2
x2 − y4
f (x, y) = if (x, y) ̸= (0, 0)
(x2 + y4 )2
Show limt→0 f (tx,ty) = 1 for any choice of (x, y). Using Problem 11c, what does
this tell you about limits existing just because the limit along any line exists.
12.8. OPEN AND CLOSED SETS 229
17. Let f (x, y, z) = x2 y + sin (xyz). Does f achieve a maximum on the set
(x, y, z) : x2 + y2 + 2z2 ≤ 8 ?
Explain why.
18. Suppose x is defined to be a limit point of a set A if and only if for all r > 0, B (x, r)
contains a point of A different than x. Show this is equivalent to the above definition
of limit point.
19. Give an example of an infinite set of points in R3 which has no limit points. Show
that if D (f ) equals this set, then f is continuous. Show that more generally, if f is
any function for which D (f ) has no limit points, then f is continuous.
20. Let {xk }nk=1 be any finite set of points in R p . Show this set has no limit points.
21. Suppose S is any set of points such that every pair of points is at least as far apart as
1. Show S has no limit points.
x|)
22. Find limx→0 sin(|
|x| and prove your answer from the definition of limit.
23. Suppose g is a continuous vector valued function of one variable defined on [0, ∞).
Prove
lim g (|x|) = g (|x0 |) .
x→x0
Also let
B (x, r) ≡ {y ∈ Rn : |x − y| < r}
Let U ⊆ Rn . U is an open set if whenever x ∈ U, there exists r > 0 such that B (x, r) ⊆ U.
More generally, if U is any subset of Rn , x ∈ U is an interior point of U if there exists r > 0
such that x ∈ B (x, r) ⊆ U. In other words U is an open set exactly when every point of U
is an interior point of U.
If there is something called an open set, surely there should be something called a
closed set and here is the definition of one.
x U
B(x, r)
You see in this picture how the edges are dotted. This is because an open set, can not in-
clude the edges or the set would fail to be open. For example, consider what would happen
if you picked a point out on the edge of U in the above picture. Every open ball centered
at that point would have in it some points which are outside U. Therefore, such a point
would violate the above definition. You also see the edges of B (x, r) dotted suggesting that
B (x, r) ought to be an open set. This is intuitively clear but does require a proof. This will
be done in the next theorem and will give examples of open sets. Also, you can see that if
x is close to the edge of U, you might have to take r to be very small.
It is roughly the case that open sets do not have their skins while closed sets do. Here
is a picture of a closed set, C.
C x
B(x, r)
Note that x ∈ / C and since Rn \C is open, there exists a ball, B (x, r) contained entirely
in R \C. If you look at Rn \C, what would be its skin? It can’t be in Rn \C and so it must
n
do not consider biological or aerodynamic considerations in such statements. There is no such thing as a winged
pig and therefore, all winged pigs must be superb flyers since there can be no example of one which is not. On
the other hand we would also consider the statement: Whenever a pig is born with wings it cannot possibly fly,
as equally true. The point is, you can say anything you want about the elements of the empty set and no one can
gainsay your statement. Therefore, such statements are considered as true by default. You may say this is a very
strange way of thinking about truth and ultimately this is because mathematics is not about truth. It is more about
consistency and logic.
12.8. OPEN AND CLOSED SETS 231
Theorem 12.8.3 Let x ∈ Rn and let r ≥ 0. Then B (x, r) is an open set. Also,
D (x, r) ≡ {y ∈ Rn : |y − x| ≤ r}
is a closed set.
Proof: Suppose y ∈ B (x,r). It is necessary to show there exists r1 > 0 such that
B (y, r1 ) ⊆ B (x, r). Define r1 ≡ r − |x − y|. Then if |z − y| < r1 , it follows from the above
triangle inequality that
|z − x| = |z − y + y − x|
≤ |z − y| + |y − x|
< r1 + |y − x| = r − |x − y| + |y − x| = r.
|x − z| ≥ |x − y| − |y − z| > |x − y| − δ
= |x − y| − (|x − y| − r) = r
and this shows that B (y, δ ) ⊆ Rn \ D (x, r). Since y was an arbitrary point in Rn \ D (x, r),
it follows Rn \ D (x, r) is an open set which shows, from the definition, that D (x, r) is a
closed set as claimed. ■
A picture which is descriptive of the conclusion of the above theorem which also im-
plies the manner of proof is the following.
r r
r1 r1
x y x y
B(x, r) D(x, r)
Recall R2 consists of ordered pairs (x, y) such that x ∈ R and y ∈ R. R2 is also written
as R × R. In general, the following definition holds.
{(a, b) : a ∈ A, b ∈ B} .
232 CHAPTER 12. VECTOR VALUED FUNCTIONS
Similarly, starting with something in Rn+m , you can write it in the form (x, y) where
x ∈ Rm and y ∈ Rn . The following theorem has to do with the Cartesian product of two
closed sets or two open sets. Also here is an important definition.
Definition 12.8.5 A set, A ⊆ Rn is said to be bounded if there exist finite intervals, [ai , bi ]
such that
n
A ⊆ ∏ [ai , bi ] .
i=1
Theorem 12.8.6 Let U be an open set in Rm and let V be an open set in Rn . Then U ×V
is an open set in Rn+m . If C is a closed set in Rm and H is a closed set in Rn , then C × H
is a closed set in Rn+m . If C and H are bounded, then so is C × H.
Proof: Let (x, y) ∈ U ×V . Since U is open, there exists r1 > 0 such that B (x, r1 ) ⊆ U.
Similarly, there exists r2 > 0 such that B (y, r2 ) ⊆ V . Now
B ((x, y) , δ ) ≡
( )
m n
n+m 2 2 2
(s, t) ∈ R : ∑ |xk − sk | + ∑ yj −tj <δ
k=1 j=1
Therefore, if δ ≡ min (r1 , r2 ) and (s, t) ∈ B ((x, y) , δ ), then it follows that s ∈ B (x, r1 ) ⊆
U and that t ∈ B (y, r2 ) ⊆ V which shows that B ((x, y) , δ ) ⊆ U ×V . Hence U ×V is open
as claimed.
Next suppose (x, y) ∈ / C × H. It is necessary to show there exists δ > 0 such that
B ((x, y) , δ ) ⊆ Rn+m \ (C × H). Either x ∈ / C or y ∈ / H since otherwise (x, y) would be a
point of C ×H. Suppose therefore, that x ∈ / C. Since C is closed, there exists r > 0 such that
B (x, r) ⊆ Rm \C. Consider B ((x, y) , r). If (s, t) ∈ B ((x, y) , r) , it follows that s ∈ B (x, r)
which is contained in Rm \C. Therefore, B ((x, y) , r) ⊆ Rn+m \ (C × H) showing C × H is
closed. A similar argument holds if y ∈ / H.
If C is bounded, there exist [ai , bi ] such that C ⊆ ∏m i=1 [ai , bi ] and if H is bounded, H ⊆
m+n
∏i=m+1 [ai , bi ] for intervals [am+1 , bm+1 ] , · · · , [am+n , bm+n ]. Therefore, C ×H ⊆ ∏m+n i=1 [ai , bi ].
■
12.9. EXERCISES 233
12.9 Exercises
1. Let U = {(x, y, z) such that z > 0}. Determine whether U is open, closed or neither.
Some Fundamentals∗
This section contains the proofs of the theorems which were stated without proof along
with some other significant topics which will be useful later. These topics are of funda-
mental significance but are difficult.
Proof: Begin with (1). Let ε > 0 be given. By assumption, there exist δ 1 > 0 such
ε
that whenever |x − y| < δ 1 , it follows |f (x) − f (y)| < 2(|a|+|b|+1) and there exists δ 2 > 0
ε
such that whenever |x − y| < δ 2 , it follows that |g (x) − g (y)| < 2(|a|+|b|+1) . Then let
0 < δ ≤ min (δ 1 , δ 2 ). If |x − y| < δ , then everything happens at once. Therefore, using
the triangle inequality
235
236 CHAPTER 13. SOME FUNDAMENTALS∗
2
≤ [| f (x) g (y) − f (y) g (y) + f (y) g (y) − f (y) g (x)|]
|g (x)|2
2
≤ [|g (y)| | f (x) − f (y)| + | f (y)| |g (y) − g (x)|]
|g (x)|2
2 3
≤ |g (x)| | f (x) − f (y)| + (1 + | f (x)|) |g (y) − g (x)|
|g (x)|2 2
2
≤ (1 + 2 | f (x)| + 2 |g (x)|) [| f (x) − f (y)| + |g (y) − g (x)|]
|g (x)|2
≡ M [| f (x) − f (y)| + |g (y) − g (x)|]
where
2
M≡ (1 + 2 | f (x)| + 2 |g (x)|)
|g (x)|2
Now let δ 2 be such that if |x − y| < δ 2 , then
ε
| f (x) − f (y)| < M −1
2
and let δ 3 be such that if |x − y| < δ 3 , then
ε
|g (y) − g (x)| < M −1 .
2
Then if 0 < δ ≤ min (δ 0 , δ 1 , δ 2 , δ 3 ), and |x − y| < δ , everything holds and
f (x) f (y)
− ≤ M [| f (x) − f (y)| + |g (y) − g (x)|]
g (x) g (y)
hε ε i
< M M −1 + M −1 = ε.
2 2
This completes the proof of the second part of (2). Note that in these proofs no effort is
made to find some sort of “best” δ . The problem is one which has a yes or a no answer.
Either it is or it is not continuous.
Now begin on (3). If f is continuous at x, f (x) ∈ D (g) ⊆ R p , and g is continuous at
f (x) , then g ◦ f is continuous at x. Let ε > 0 be given. Then there exists η > 0 such that
if |y − f (x)| < η and y ∈ D (g), it follows that |g (y) − g (f (x))| < ε. It follows from
continuity of f at x that there exists δ > 0 such that if |x − z| < δ and z ∈ D (f ), then
|f (z) − f (x)| < η. Then if |x − z| < δ and z ∈ D (g ◦ f ) ⊆ D (f ), all the above hold and
so
|g (f (z)) − g (f (x))| < ε.
This proves part (3).
Part (4) says: If f = ( f1 , · · · , fq ) : D (f ) → Rq , then f is continuous if and only if each
fk is a continuous real valued function. Then
!1/2
q
2
| fk (x) − fk (y)| ≤ |f (x) − f (y)| ≡ ∑ | fi (x) − fi (y)|
i=1
q
≤ ∑ | fi (x) − fi (y)| . (13.1)
i=1
238 CHAPTER 13. SOME FUNDAMENTALS∗
Suppose first that f is continuous at x. Then there exists δ > 0 such that if |x − y| < δ ,
then |f (x) − f (y)| < ε. The first part of the above inequality then shows that for each
k = 1, · · · , q, | fk (x) − fk (y)| < ε. This shows the only if part. Now suppose each function
fk is continuous. Then if ε > 0 is given, there exists δ k > 0 such that whenever |x − y| < δ k
Now let 0 < δ ≤ min (δ 1 , · · · , δ q ). For |x − y| < δ , the above inequality holds for all k and
so the last part of (13.1) implies
q q
ε
|f (x) − f (y)| ≤ ∑ | fi (x) − fi (y)| < ∑ = ε.
i=1 i=1 q
This proves part (5) and completes the proof of the theorem. ■
Lemma 13.2.1 Let Ik = [ak , bk ] be closed intervals, ak ≤ bk , such that Ik ⊇ Ik+1 for all k.
Then there exists a point c which is contained in all these intervals. If limk→∞ (bk − ak ) = 0,
then there is exactly one such point.
Proof: Note that the {ak } are an increasing sequence and that {bk } is a decreasing
sequence. Now note that if m < n, then
am ≤ an ≤ bn
while if m > n,
bn ≥ bm ≥ am .
It follows that am ≤ bn for any pair m, n. Therefore, each bn is an upper bound for all the
am and so if c ≡ sup {ak }, then for each n, it follows that c ≤ bn and so for all, an ≤ c ≤ bn
which shows that c is in all of these intervals.
If the condition on the lengths of the intervals holds, then if c, c′ are in all the intervals,
then if they are not equal, then eventually, for large enough k, they cannot both be contained
in [ak , bk ] since eventually bk − ak < |c − c′ |. This would be a contradiction. Hence c = c′ .
■
Thus diam (S) is just a careful description of what you would think of as the diameter.
It measures how stretched out the set is.
Here is a multidimensional version of the nested interval lemma.
13.3. CONVERGENT SEQUENCES, SEQUENTIAL COMPACTNESS 239
p k k
ai , bi ≡ x ∈ R p : xi ∈ aki , bki and suppose that for all
Lemma 13.2.3 Let Ik = ∏i=1
k = 1, 2, · · · ,
Ik ⊇ Ik+1 .
Then there exists a point c ∈ R p which is an element of every Ik . If limk→∞ diam (Ik ) = 0,
then the point c is unique.
Definition 13.3.1 A sequence, {ak } is said to converge to a if for every ε > 0 there exists
nε such that if n > nε , then |a − an | < ε. The usual notation for this is limn→∞ an = a
although it is often written as an → a.
One can also define a subsequence in the same way as in the case of real valued se-
quences.
Definition 13.3.2 ank is a subsequence of {an } if n1 < n2 < · · · .
Definition 13.3.4 {an } is a Cauchy sequence if for all ε > 0, there exists nε such that
whenever n, m ≥ nε ,
|an −am | < ε.
A sequence is Cauchy, means the terms are “bunching up to each other” as m, n get
large.
Theorem 13.3.5 The set of terms in a Cauchy sequence in R p is bounded in the sense that
for all n, |an | < M for some M < ∞.
240 CHAPTER 13. SOME FUNDAMENTALS∗
Proof: Let ε = 1 in the definition of a Cauchy sequence and let n > n1 . Then from the
definition,
|an −an1 | < 1.
It follows that for all n > n1 ,
|an | < 1 + |an1 | .
Therefore, for all n,
n1
|an | ≤ 1 + |an1 | + ∑ |ak | . ■
k=1
Theorem 13.3.6 If a sequence {an } in R p converges, then the sequence is a Cauchy se-
quence. Also, if some subsequence of a Cauchy sequence converges, then the original
sequence converges.
Proof: Let ε > 0 be given and suppose an → a. Then from the definition of conver-
gence, there exists nε such that if n > nε , it follows that
ε
|an −a| <
2
Therefore, if m, n ≥ nε + 1, it follows that
ε ε
|an −am | ≤ |an −a| + |a − am | < + =ε
2 2
showing that, since ε > 0 is arbitrary, {an } is a Cauchy sequence. It remains to that the last
claim. ∞
Suppose then that {an } is a Cauchy sequence and a = limk→∞ ank where ank k=1
is a subsequence. Let ε > 0 be given. Then there exists K such that if k, l ≥ K, then
|ak − al | < ε2 . Then if k > K, it follows nk > K because n1 , n2 , n3 , · · · is strictly increasing
as the subscript increases. Also, there exists K1 such that if k > K1 , ank − a < ε2 . Then
letting n > max (K, K1 ), pick k > max (K, K1 ). Then
ε ε
|a − an | ≤ a − ank + ank − an < + = ε.
2 2
Therefore, the sequence converges. ■
1/2
p
diam (I0 ) = ∑i=1 |bi − ai |2 ,
!1/2
p
|x − y| = ∑ |xi − yi |2
i=1
!1/2
p
−1
≤2 ∑ |bi − ai | 2
≡ 2−1 diam (I0 ) .
i=1
Denote by {J1 , · · · , J2 p } these sets determined above. Since the union of these sets equals
all of I0 ≡ I, it follows that for some Jk , the sequence, {ai } is contained in Jk for infinitely
many k. Let that one be called I1 . Next do for I1 what was done for I0 to get I2 ⊆ I1 such
that the diameter is half that of I1 and I2 contains {ak } for infinitely many values of k.
Continue in this way obtaining a nested sequence {Ik } such that Ik ⊇ Ik+1 , and if x, y ∈ Ik ,
then |x − y| ≤ 2−k diam (I0 ), and In contains {ak } for infinitely many values of k for each
n. Then by the nested interval lemma, there exists c such that c is contained in each Ik .
Pick an1 ∈ I1 . Next pick n2 > n1 such that an2 ∈ I2 . If an1 , · · · , ank have been chosen, let
ank+1 ∈ Ik+1 and nk+1 > nk . This can be done because in the construction, In contains {ak }
for infinitely many k. Thus the distance between ank and c is no larger than 2−k diam (I0 ),
and so limk→∞ ank = c ∈ I0 . ■
Corollary 13.3.9 Let K be a closed and bounded set of points in R p . Then K is sequentially
compact.
p
Proof: Since K is closed and bounded, there exists a closed rectangle, ∏k=1 [ak , bk ]
which contains K. Now let {x k } be a sequence of points in K. By Theorem 13.3.8, there
p
exists a subsequence xnk such that xnk → x ∈ ∏k=1 [ak , bk ]. However, K is closed and
each of the points of the sequence is in K so x ∈ K. If not, then since KC is open, it would
follow that eventually xnk ∈ KC which is impossible. ■
Proof: Let {ak } be a Cauchy sequence. By Theorem 13.3.5, there exists some large
p
enough box ∏i=1 [ai , bi ] containing all the terms of {ak }. Therefore, by Theorem 13.3.8, a
p
subsequence converges to a point of ∏i=1 [ai , bi ]. By Theorem 13.3.6, the original sequence
converges. ■
Proof: Suppose first that f is continuous at x and let xn → x. Let ε > 0 be given. By
continuity, there exists δ > 0 such that if |y − x| < δ , then |f (x) − f (y)| < ε. However,
there exists nδ such that if n ≥ nδ , then |xn −x| < δ , and so for all n this large,
Lemma 13.5.2 Let C ⊆ R p be closed and bounded and let f : C → Rs be continuous. Then
f is bounded.
Proof: Suppose not. Then since f is not bounded, there exists xn such that
s
f (xn ) ∈
/ ∏ (−n, n) ≡ Rn .
i=1
By Corollary 13.3.9, C is sequentially compact, and so there exists a subsequence xnk
which converges to x ∈ C. Now f (x) ∈ Rm for large enough m. Hence, by continuity of
f, it follows f (xn ) ∈ Rm for all n large enough, contradicting the construction. ■
Here is a proof of the extreme value theorem.
Theorem 13.5.3 Let C be closed and bounded and let f : C → R be continuous. Then f
achieves its maximum and its minimum on C. This means there exist x1 , x2 ∈ C such that
for all x ∈ C,
f (x1 ) ≤ f (x) ≤ f (x2 ) .
Proof: Let M = sup { f (x) : x ∈ C}. Then by Lemma 13.5.2, M is a finite number. Is
f (x2 ) = M for some x2 ? If not, you could consider the function
1
g (x) ≡
M − f (x)
13.6. CONVERGENCE OF FUNCTIONS 243
ε ≤ lim f xnk − f y nk = |f (x) − f (x)| = 0,
k→∞
f n (x) → f (x)
∥·∥
To illustrate the difference in the two types of convergence, here is a standard example.
Example 13.6.2 Let (
0 if x ∈ [0, 1)
f (x) ≡
1 if x = 1
Also let fn (x) ≡ xn for x ∈ [0, 1] . Then fn converges pointwise to f on [0, 1] but does not
converge uniformly to f on [0, 1].
Note how the target function is not continuous although each function in the sequence
is. The next theorem shows that this kind of loss of continuity never occurs when you have
uniform convergence. The theorem holds generally when S ⊆ X a normed linear space and
f, f n have values in Y another normed linear space. You should fill in the details to be sure
you understand this. You simply replace |·| with ∥·∥ for an appropriate norm.
Theorem 13.6.3 Let f n : S → Cq be continuous and let f n converge uniformly to f on S.
Then if f n is continuous at x ∈ S, it follows that f is also continuous at x.
Proof: Let ε > 0 be given. Let N be such that if n ≥ N, then
ε
sup |f n (y) − f (y)| ≡ ||f n − f ||∞ <
y ∈S 3
Pick such an n. Then by continuity of f n at x, there exists δ > 0 such that if |y − x| < δ ,
then |f n (y) − f n (x)| < ε3 . Then if |y − x| < δ , y ∈ S, then
|f (x) − f (y)| ≤ |f (x) − f n (x)| + |f n (x) − f n (y)| + |f n (y) − f (y)|
ε ε ε
< + + =ε
3 3 3
Thus f is continuous at x as claimed. ■
Thus, if lim supn→∞ < r, it follows that for all n large enough every ak < r. If lim supn→∞ ak >
r, it means there are infinitely many k such that ak > r.
13.8. CONVERGENCE OF SUMS 245
The series diverges spectacularly if lim supk→∞ |ak |1/k > 1 and if
Proof: Suppose first that lim supk→∞ |ak |1/k = r < 1. Then letting R ∈ (r, 1) , it follows
from the definition of lim sup that for all k large enough,
|ak |1/k ≤ R
Hence there exists N such that if k ≥ N, then |ak | ≤ Rk . Let Mk = |ak | for k < N and let
Mk = Rk for k ≥ N. Then
N−1
∞
RN
∑ Mk ≤ ∑ |ak | + 1 − R < ∞
k=1 k=1
and so, by the Weierstrass M test applied to the series of constants, the series converges and
also converges absolutely. If
|ak | > Rk
and so there is a subsequence which is unbounded. In particular, the series cannot converge
1
and in fact diverges spectacularly. In case that the lim sup = 1, you can consider ∑∞ n=1 n
∞ 1
which diverges by calculus and ∑n=1 n2 which converges, also from calculus. However, the
lim sup equals 1 for both of these. ■
This is a major theorem because the lim sup always exists. As an important application,
here is a corollary.
If the sequence has values in X a complete normed linear space, there is no change in
the conclusion or proof of the above theorem. You just replace |·| with ∥·∥ the symbol for
the norm.
n
Definition 13.8.1 The symbol ∑∞ k=1 f k (x) means limn→∞ ∑k=1 f k (x) provided this limit
exists. This is called pointwise convergence of the infinite sum. Thus the infinite sum means
the limit of the sequence of partial sums. The infinite sum is said to converge uniformly if
the sequence of paritial sums converges uniformly.
Note how this theorem includes the case of ∑∞k=1 ak as a special case. Here the ak don’t
depend on x.
The following theorem is very useful. It tells how to recognize that an infinite sum is
converging or converging uniformly. First is a little lemma which reviews standard calcu-
lus.
Lemma 13.8.2 Suppose Mk ≥ 0 and ∑∞
k=1 Mk converges. Then
∞
lim
m→∞
∑ Mk = 0
k=m
whenever m is large enough due to the assumption that ∑∞ k=1 |f k (x)| < ∞. Thus the partial
sums are a Cauchy sequence and so the series converges pointwise.
If Mk ≥ |f k (x)| for all x ∈ S, then for M large enough,
n m ∞ ∞
∑ f k (x) − ∑ f k (x) ≤ ∑ |f k (x)| ≤ ∑ Mk < ε/2
k=1 k=1 k=m k=m
A = A ∪ A′
Proof: First of all, denote by C the set of closed sets which contain A. Then
A = ∩C
Each H C is open and so the union of all these open sets must also be open. This is because
if x is in this union, then it is in at least one of them. Hence it is an interior point of that
one. But this implies it is an interior point of the union of them all which is an even larger
set. Thus A is closed.
The interesting part is the next claim. First note that from the definition, A ⊆ A so if
x ∈ A, then x ∈ A. Now consider y ∈ A′ but y ∈ / A. If y ∈
/ A, a closed set, then there exists
C
B (y, r) ⊆ A . Thus y cannot be a limit point of A, a contradiction. Therefore,
A ∪ A′ ⊆ A
S = A ∪ B, A, B ̸= 0,
/ and A ∩ B = B ∩ A = 0.
/
In this case, the sets A and B are said to separate S. A set is connected if it is not separated.
Remember A denotes the closure of the set A.
248 CHAPTER 13. SOME FUNDAMENTALS∗
Note that the concept of connected sets is defined in terms of what it is not. This makes
it somewhat difficult to understand. One of the most important theorems about connected
sets is the following.
Theorem 13.9.4 Suppose U is a set of connected sets and that there exists a point p which
is in all of these connected sets. Then K ≡ ∪U is connected.
Proof: Suppose
K = A∪B
where Ā ∩ B = B̄ ∩ A = 0,
/ A ̸= 0, / Let U ∈ U . Then
/ B ̸= 0.
U = (U ∩ A) ∪ (U ∩ B)
and this would separate U if both sets in the union are nonempty since the limit points of
U ∩ B are contained in the limit points of B. It follows that every set of U is contained
in one of A or B. Suppose then that some U ⊆ A. Then all U ∈ U must be contained in A
because if one is contained in B, this would violate the assumption that they all have a point
p in common. Thus K is connected after all because this requires B = 0. / Alternatively, p is
in one of these sets. Say p ∈ A. Then by the above argument every U must be in A because
if not, the above would be a separation of U. Thus B = 0. / ■
The intersection of connected sets is not necessarily connected as is shown by the fol-
lowing picture.
U
V
Proof: To do this you show f (X) is not separated. Suppose to the contrary that f (X) =
A ∪ B where A and B separate f (X) . Then consider the sets f −1 (A) and f −1 (B) . If z
∈ f −1 (B) , then f (z) ∈ B and so f (z) is not a limit point of A. Therefore, there exists an
open set, U containing f (z) such that U ∩ A = 0. / But then, the continuity of f implies that
f −1 (U) is an open set containing z such that f −1 (U) ∩ f −1 (A) = 0. / Therefore, f −1 (B)
−1 −1
contains no limit points of f (A) . Similar reasoning implies f (A) contains no limit
points of f −1 (B). It follows that X is separated by f −1 (A) and f −1 (B) , contradicting the
assumption that X was connected. ■
An arbitrary set can be written as a union of maximal connected sets called connected
components. This is the concept of the next definition.
Definition 13.9.6 Let S be a set and let p ∈ S. Denote by Cp the union of all connected
subsets of S which contain p. This is called the connected component determined by p.
13.9. CONNECTED SETS 249
Proof: Let C denote the connected subsets of S which contain p. By Theorem 13.9.4,
∪C = Cp is connected. If x ∈ Cp ∩ Cq , then from Theorem 13.9.4, Cp ⊇ Cp ∪ Cq and so
Cp ⊇ Cq . The inclusion goes the other way by the same reason. ■
This shows the connected components of a set are equivalence classes and partition the
set.
A set, I is an interval in R if and only if whenever x, y ∈ I then (x, y) ⊆ I. The following
theorem is about the connected sets in R.
x ∈ (p, q) \C
let C ∩ (−∞, x) ≡ A, and C ∩ (x, ∞) ≡ B. Then C = A ∪ B and the sets A and B separate C
contrary to the assumption that C is connected.
Conversely, let I be an interval. Suppose I is separated by A and B. Pick x ∈ A and
y ∈ B. Suppose without loss of generality that x < y. Now define the set,
S ≡ {t ∈ [x, y] : [x,t] ⊆ A}
Theorem 13.9.10 Let U be an open set in R. Then there exist countably many disjoint
open sets {(ai , bi )}∞
i=1 such that U = ∪i=1 (ai , bi ) .
∞
(z − δ , z + δ ) ⊆ C p .
This shows C p is open. By Theorem 13.9.8, this shows C p is an open interval, (a, b) where
a, b ∈ [−∞, ∞] . There are therefore at most countably many of these connected compo-
nents because each must contain a rational number and the rational numbers are countable.
Denote by {(ai , bi )}∞
i=1 the set of these connected components. ■
250 CHAPTER 13. SOME FUNDAMENTALS∗
Definition 13.9.11 A set E in Rn is arcwise connected if for any two points, p, q ∈ E, there
exists a closed interval, [a, b] and a continuous function, γ : [a, b] → E such that γ (a) = p
and γ (b) = q.
You can verify that this set of points in R2 is not arcwise connected but is connected.
Proof: This is easy from the convexity of the set. If x, y ∈ B (z, r) , then let γ (t) =
x + t (y − x) for t ∈ [0, 1] .
∥x + t (y − x) − z∥ = ∥(1 − t) (x − z) + t (y − z)∥
≤ (1 − t) ∥x − z∥ + t ∥y − z∥
< (1 − t) r + tr = r
Proof: Let p ∈ X. Then by assumption, for any x ∈ X, there is an arc joining p and x.
This arc is connected because it is the continuous image of an interval which is connected.
Since x is arbitrary, every x is in a connected subset of X which contains p. Hence C p = X
and so X is connected. ■
Then it is clear that γ 1 is a continuous function mapping p to y and showing that B (x, r) ⊆
A. Therefore, A is open. A ̸= 0/ because since U is open there is an open set, B (p, δ )
containing p which is contained in U and is arcwise connected.
13.10. EXERCISES 251
Now consider B ≡ U \ A. I claim this is also open. If B is not open, there exists a
point z ∈ B such that every open set containing z is not contained in B. Therefore, letting
B (z, δ ) be such that z ∈ B (z, δ ) ⊆ U, there exist points of A contained in B (z, δ ) . But
then, a repeat of the above argument shows z ∈ A also. Hence B is open and so if B ̸= 0, /
then U = B ∪ A and so U is separated by the two sets B and A contradicting the assumption
that U is connected.
It remains to verify the connected components are open. Let z ∈ Cp where Cp is the
connected component determined by p. Then picking B (z, δ ) ⊆ U, Cp ∪ B (z, δ ) is con-
nected and contained in U and so it must also be contained in Cp . Thus z is an interior
point of Cp . ■
As an application, consider the following corollary.
Proof: Suppose not. Then it achieves two different values, k and l ̸= k. Then Ω =
f −1 (l) ∪ f −1 ({m ∈ Z : m ̸= l}) and these are disjoint nonempty open sets which separate
Ω. To see they are open, note
1 1
f −1 ({m ∈ Z : m ̸= l}) = f −1 ∪m̸=l m − , m +
6 6
which is the inverse image of an open set while f −1 (l) = f −1 l − 16 , l + 16 also an open
set. ■
13.10 Exercises
1. Suppose {xn } is a sequence contained in a closed set C such that limn→∞ xn = x.
Show that x ∈ C. Hint: Recall that a set is closed if and only if the complement of
the set is open. That is if and only if Rn \C is open.
2. Show using Problem 1 and Theorem 13.3.8 that every closed and bounded set is
sequentially compact. Hint: If C is such a set, then C ⊆ I0 ≡ ∏ni=1 [ai , bi ]. Now if
{xn } is a sequence in C, it must also be a sequence in I0 . Apply Problem 1 and
Theorem 13.3.8.
3. Prove the extreme value theorem, a continuous function achieves its maximum and
minimum on any closed and bounded set C, using the result of Problem 2. Hint:
Suppose λ = sup { f (x) : x ∈ C}. Then there exists {xn } ⊆ C such that f (xn ) →
λ . Now select a convergent subsequence using Problem 2. Do the same for the
minimum.
4. Let C be a closed and bounded set and suppose f : C → Rm is continuous. Show that
f must also be uniformly continuous. This means: For every ε > 0 there exists δ >
0 such that whenever x, y ∈ C and |x − y| < δ , it follows |f (x) − f (y)| < ε. This
is a good time to review the definition of continuity so you will see the difference.
Hint: Suppose it is not so. Then there exists ε > 0 and {xk } and {y k } such that
|xk − y k | < 1k but |f (xk ) − f (y k )| ≥ ε. Now use Problem 2 to obtain a convergent
subsequence.
252 CHAPTER 13. SOME FUNDAMENTALS∗
5. From Problem 2 every closed and bounded set is sequentially compact. Are these the
only sets which are sequentially compact? Explain.
6. A set whose elements are open sets C is called an open cover of H if ∪C ⊇ H.
In other words, C is an open cover of H if every point of H is in at least one set
of C . Show that if C is an open cover of a closed and bounded set H then there
exists δ > 0 such that whenever x ∈ H, B (x, δ ) is contained in some set of C . This
number δ is called a Lebesgue number. Hint: If there is no Lebesgue number for
H, let H ⊆ I = ∏ni=1 [ai , bi ]. Use the process of chopping the intervals in half to
get a sequence of nested intervals, Ik contained in I where diam (Ik ) ≤ 2−k diam (I)
and there is no Lebesgue number for the open cover on Hk ≡ H ∩ Ik . Now use the
nested interval theorem to get c in all these Hk . For some r > 0 it follows B (c, r) is
contained in some open set of U. But for large k, it must be that Hk ⊆ B (c, r) which
contradicts the construction. You fill in the details.
7. A set is compact if for every open cover of the set, there exists a finite subset of
the open cover which also covers the set. Show every closed and bounded set in
R p is compact. Next show that if a set in R p is compact, then it must be closed and
bounded. This is called the Heine Borel theorem. Hint: To show closed and bounded
is compact, you might use the technique of chopping into small pieces of the above
problem.
8. Suppose S is a nonempty set in R p . Define
Show that
|dist (x,S) − dist (y,S)| ≤ |x − y| .
Hint: Suppose dist (x, S) < dist (y, S). If these are equal there is nothing to show.
Explain why there exists z ∈ S such that |x − z| < dist (x,S) + ε. Now explain why
dist x,U C
,
dist (x,U C ) + dist (x, H)
where U C ≡ R p \U, a closed set. You need to explain why the denominator is never
equal to zero. The rest is supplied by Problem 8. This is a special case of a major
theorem called Urysohn’s lemma.
Chapter 14
Definition 14.1.1 In the case where D (f ) is only assumed to satisfy D (f ) ⊇ (t,t + r),
lim f (s) = L
s→t+
if and only if for all ε > 0 there exists δ > 0 such that if
then
|f (s) − L| < ε.
In the case where D (f ) is only assumed to satisfy D (f ) ⊇ (t − r,t),
lim f (s) = L
s→t−
if and only if for all ε > 0 there exists δ > 0 such that if
0 < t −s < δ,
then
|f (s) − L| < ε.
253
254 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
One can also consider limits as a variable “approaches” infinity. Of course nothing is
“close” to infinity and so this requires a slightly different definition.
lim f (t) = L
t→∞
Use Theorem 12.5.5 on Page 223 and the continuity of the functions to write this limit
equals
lim cost, lim sint, lim t 2 + 1 , lim ln (t)
t→π/2 t→π/2 t→π/2 t→π/2
2
π π
= 0, 1, ln + 1 , ln .
4 2
Example 14.1.3 Let f (t) = sint 2
t ,t ,t + 1 . Find limt→0 f (t).
Z b Z b
f1 (t) dt, · · · , f p (t) dt .
a a
2 !1/2
b √
Z Z b
≤ n max | fi (t)| dt = n max | fi (t)| dt
i a i a
√ Zb
≤ n |f (t)| dt ■
a
As in the case of a scalar valued function differentiability implies continuity but not the
other way around.
Proof: Suppose ε > 0 is given and choose δ 1 > 0 such that if |h| < δ 1 ,
f (t + h) − f (t)
− f ′ (t) < 1.
h
1 t+h 1 t
Z t+h
1 t+h
1
Z Z Z
f (s) ds − f (s) ds = f1 (s) ds, · · · , f p (s) ds
h a h a h t h t
and limh→0 h1 tt+h fi (s) ds = fi (t) for each i = 1, · · · , p from the fundamental theorem of
R
f (x + h) − f (x) c − c
= =0
h h
Therefore,
f (x + h) − f (x)
lim = lim 0 = 0
h→0 h h→0
Example 14.2.6 Let f (t) = (at, bt) where a, b are constants. Find f ′ (t).
From the above discussion this derivative is just the vector valued functions whose
components consist of the derivatives of the components of f . Thus f ′ (t) = (a, b).
r(t + h)
r(t)
In this picture there are unit vectors in the direction of the vector from r (t) to r (t + h).
You can see that it is reasonable to suppose these unit vectors, if they converge, converge
to a unit vector T which is tangent to the curve at the point r (t). Now each of these unit
vectors is of the form
r (t + h) − r (t)
≡ T h.
|r (t + h) − r (t)|
Thus T h → T, a unit tangent vector to the curve at the point r (t). Therefore,
r(t + h)
r(t)
Therefore, |r(t+h)−
h
r (t)|
gives for small h, the approximate distance travelled on the time
interval [t,t + h] divided by the length of time h. Therefore, this expression is really the
average speed of the object on this small time interval and so the limit as h → 0, deserves
to be called the instantaneous speed of the object. Thus |r ′ (t)| T represents the speed times
a unit direction vector T which defines the direction in which the object is moving. Thus
r ′ (t) is the velocity of the object. This is the physical significance of the derivative when
t is time. In general, r ′ (t) and T (t) are vectors tangent to the curve which point in the
direction of motion.
How do you go about computing r ′ (t)? Letting r (t) = (r1 (t) , · · · , rq (t)), the expres-
sion
r (t0 + h) − r (t0 )
(14.2)
h
is equal to
r1 (t0 + h) − r1 (t0 ) rq (t0 + h) − rq (t0 )
,··· , .
h h
Then as h converges to 0, (14.2) converges to v ≡ (v1 , · · · , vq ) where vk = rk′ (t). This is
because of Theorem 12.5.5 on Page 223, which says that the term in (14.2) gets close to
a vector v if and only if all the coordinate functions of the term in (14.2) get close to the
corresponding coordinate functions of v.
In the case where t is time, this simply says the velocity vector equals the vector whose
components are the derivatives of the components of the displacement vector r (t).
Example 14.2.7 Let r (t) = sint,t 2 ,t + 1 for t ∈ [0, 5]. Find a tangent line to the curve
From the above discussion, a direction vector has the same direction as r ′ (2). There-
fore, it suffices to simply use r ′ (2) as a direction vector for the line. r ′ (2) = (cos 2, 4, 1).
Therefore, a parametric equation for the tangent line is
Example 14.2.8 Let r (t) = sint,t 2 ,t + 1 for t ∈ [0, 5]. Find the velocity vector when
t = 1.
Theorem 14.2.9 Let a, b ∈ R and suppose f ′ (t) and g ′ (t) exist. Then the following for-
mulas are obtained.
(af + bg)′ (t) = af ′ (t) + bg ′ (t) . (14.3)
(f · g)′ (t) = f ′ (t) · g (t) + f (t) · g ′ (t) (14.4)
If f, g have values in R3 , then
The formulas, (14.4), and (14.5) are referred to as the product rule.
Proof: The first formula is left for you to prove. Consider the second, (14.4).
f · g (t + h) − f g (t)
lim
h→0 h
Formula (14.5) is left as an exercise which follows from the product rule and the definition
of the cross product. ■
Example 14.2.10 Let r (t) = t 2 , sint, cost and let p (t) = (t, ln (t + 1) , 2t). Simplify the
t
√
Example 14.2.12 An object has position r (t) = t 3 , 1+1 , t 2 + 2 kilometers where t is
given in hours. Find the velocity of the object in kilometers per hour when t = 1.
Recall the velocity at time t was r ′ (t). Therefore, find r ′ (t) and plug in t = 1 to find
the velocity.
! !
2 1 (1 + t) − t 1 2 1 1
′
−1/2 2
r (t) = 3t , , t +2 2t = 3t , ,p t
(1 + t)2 2 (1 + t)2 (t 2 + 2)
Obviously, this can be continued. That is, you can consider the possibility of taking the
derivative of the derivative and then the derivative of that and so forth. The main thing to
consider about this is the notation, and it is exactly like it was in the case of a scalar valued
function presented earlier. Thus r ′′ (t) denotes the second derivative.
When you are given a vector valued function of one variable, sometimes it is possible
to give a simple description of the curve which results. Usually it is not possible to do this!
Example 14.2.13 Describe the curve which results from the vector valued function r (t) =
(cos 2t, sin 2t,t) where t ∈ R.
The first two components indicate that for r (t) = (x (t) , y (t) , z (t)), the pair, (x (t) , y (t))
traces out a circle. While it is doing so, z (t) is moving at a steady rate in the positive
direction. Therefore, the curve which results is a cork screw shaped thing called a helix.
As an application of the theorems for differentiating curves, here is an interesting ap-
plication. It is also a situation where the curve can be identified as something familiar.
Example 14.2.14 Sound waves have the angle of incidence equal to the angle of reflection.
Suppose you are in a large room and you make a sound. The sound waves spread out and
you would expect your sound to be inaudible very far away. But what if the room were
shaped so that the sound is reflected off the wall toward a single point, possibly far away
from you? Then you might have the interesting phenomenon of someone far away hearing
what you said quite clearly. How should the room be designed?
Suppose you are located at the point P 0 and the point where your sound is to be
reflected is P 1 . Consider a plane which contains the two points and let r (t) denote a
parametrization of the intersection of this plane with the walls of the room. Then the con-
dition that the angle of reflection equals the angle of incidence reduces to saying the angle
between P 0 − r (t) and −r ′ (t) equals the angle between P 1 − r (t) and r ′ (t). Draw a
picture to see this. Therefore,
This reduces to
(r (t) − P 0 ) · (−r ′ (t)) (r (t) − P 1 ) · (r ′ (t))
= (14.6)
|r (t) − P 0 | |r (t) − P 1 |
Now
(r (t) − P 1 ) · (r ′ (t)) d
= |r (t) − P 1 |
|r (t) − P 1 | dt
and a similar formula holds for P 1 replaced with P 0 . This is because
p
|r (t) − P 1 | = (r (t) − P 1 ) · (r (t) − P 1 )
d 1
((r (t) − P 1 ) · (r (t) − P 1 ))−1/2 2 (r (t) − P 1 ) · r ′ (t)
|r (t) − P 1 | =
dt 2
(r (t) − P 1 ) · (r ′ (t))
= .
|r (t) − P 1 |
260 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
14.3 Exercises
1. Find the following limits if possible
(a) limx→0+ |x| x , sin x/x, cos x
x
(b) limx→0+ |x| , sec x, ex
2
−16
(c) limx→4 x x+4 , x + 7, tan5x4x
x x2 sin x2
(d) limx→∞ 1+x 2 , 1+x2 , x
2. Find
x2 − 4 2 x2 − 4
lim , x + 2x − 1, .
x→2 x+2 x−2
√ √
3. Prove from the definition that limx→a ( 3 x, x + 1) = ( 3 a, a + 1) for all a ∈ R. Hint:
You might want to use the formula for the difference of two cubes,
a3 − b3 = (a − b) a2 + ab + b2 .
4. Let p
r (t) = 4 + t 2 , t 2 + 1t 3 ,t 3
8. Let r (t) = sint, cos t 2 ,t + 1 for t ∈ [0, 5]. Find the velocity when t = 3.
9. Let r (t) = sint,t 2 ,t + 1 for t ∈ [0, 5]. Find the velocity when t = 3.
10. Let r (t) = t, ln t 2 + 1 ,t + 1 for t ∈ [0, 5]. Find the velocity when t = 3.
11. Suppose an object has position r (t) ∈ R3 where r is differentiable and suppose also
that |r (t)| = c where c is a constant.
(a) Show first that this condition does not require r (t) to be a constant. Hint: You
can do this either mathematically or by giving a physical example.
(b) Show that you can conclude that r ′ (t) · r (t) = 0. That is, the velocity is always
perpendicular to the displacement.
12. Prove (14.5) from the component description of the cross product.
13. Prove (14.5) from the formula (f × g)i = ε i jk f j gk .
14. Prove (14.5) directly from the definition of the derivative without considering com-
ponents.
15. A Bezier curve in R p is a vector valued function of the form
n
n
y (t) = ∑ xk (1 − t)n−k t k
k=0 k
where here the nk are the binomial coefficients and xk are n + 1 points n . Show
in R
n n
(0) = x0 , y (1) = xn , and find y ′ (0) and y ′ (1). Recall that 0 = n = 1 and
that y
n n
n−1 = 1 = n. Curves of this sort are important in various computer programs.
16. Suppose r (t), s (t), and p (t) are three differentiable functions of t which have values
in R3 . Find a formula for (r (t) × s (t) · p (t))′ .
17. If r ′ (t) = 0 for all t ∈ (a, b), show that there exists a constant vector c such that
r (t) = c for all t ∈ (a, b).
Rb
18. If F ′ (t) = f (t) for all t ∈ (a, b) and F is continuous on [a, b], show that a f (t) dt =
F (b) − F (a).
19. Verify that if Ω × u = 0 for all u, then Ω = 0.
p0
Now consider what happens when the partition is refined by including more points.
You can see from the following picture that the polygonal approximation would appear to
be even better and that as more points are added in the partition, the sum of the lengths
of the line segments seems to get close to something which deserves to be defined as the
length of the curve C.
p3
p1
p2
•
p0
Thus the length of the curve is approximated by
n
∑ |p (tk ) − p (tk−1 )| .
k=1
14.4. LINE INTEGRALS 263
Since the functions in the parametrization are differentiable, it is reasonable to expect this
to be close to
n
∑ p′ (tk−1 ) (tk − tk−1 )
k=1
Rb
which is seen to be a Riemannn sum for the integral a |p′ (t)| dt and it is this integral
which is defined as the length of the curve.
Definition 14.4.2 Let p (t), t ∈ [a, b] be a parametrization for a smooth curve. Then the
length of this curve is defined as ab |p′ (t)| dt.
R
Would the same length be obtained if another parametrization were used? This is a very
important question because the length of the curve should depend only on the curve itself
and not on the method used to trace out the curve. The answer to this question is that the
length of the curve does not depend on parametrization. The proof is somewhat technical
so is given in the last section of this chapter.
Does the definition of length given above correspond to the usual definition of length
in the case when the curve is a line segment? It is easy to see that it does so by considering
two points in Rn p and q. A parametrization for the line segment joining these two points
is
fi (t) ≡ t pi + (1 − t) qi , t ∈ [0, 1] .
Using the definition of length of a smooth curve just given, the length according to this
definition is !1/2
Z 1 n
0
∑ (pi − qi )2 dt = |p − q| .
i=1
Thus this new definition which is valid for smooth curves which may not be straight line
segments gives the usual length for straight line segments.
The proof that curve length is well defined for a smooth curve contains a result which
deserves to be stated as a corollary. It is proved in Lemma 14.6.6 on Page 272 but the proof
is mathematically fairly advanced so it is presented later.
Corollary 14.4.3 Let C be a smooth curve and let f : [a, b] → C and g : [c, d] → C be two
parameterizations satisfying (1) - (5). Then g −1 ◦ f is either strictly increasing or strictly
decreasing.
Definition 14.4.4 If g −1 ◦ f is increasing, then f and g are said to be equivalent parame-
terizations and this is written as f ∼ g. It is also said that the two parameterizations give
the same orientation for the curve when f ∼ g.
When the parameterizations are equivalent, they preserve the direction of motion along
the curve, and this also shows there are exactly two orientations of the curve since either
g −1 ◦ f is increasing or it is decreasing. This is not hard to believe. In simple language, the
message is that there are exactly two directions of motion along a curve. The difficulty is
in proving this is actually the case.
Lemma 14.4.5 The following hold for ∼.
f ∼ f; (14.7)
If f ∼ g then g ∼ f ; (14.8)
If f ∼ g and g ∼ h, then f ∼ h. (14.9)
264 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
increasing. ■
The symbol ∼ is called an equivalence relation. If C is such a smooth curve just de-
scribed, and if f : [a, b] → C is a parametrization of C, consider g (t) ≡ f ((a + b) − t), also
a parametrization of C. Now by Corollary 14.4.3, if h is a parametrization, then if f −1 ◦ h
is not increasing, it must be the case that g −1 ◦ h is increasing. Consequently, either h ∼ g
or h ∼ f. These parameterizations, h, which satisfy h ∼ f are called the equivalence class
determined by f and those h ∼ g are called the equivalence class determined by g. These
two classes are called orientations of C. They give the direction of motion on C. You see
that going from f to g corresponds to tracing out the curve in the opposite direction.
Sometimes people wonder why it is required, in the definition of a smooth curve that
p′ (t) ̸= 0. Imagine t is time and p (t) gives the location of a point in space. If p′ (t)
is allowed to equal zero, the point can stop and change directions abruptly, producing a
pointy place in C. Here is an example.
In this case, t = x1/3 and so y = x2/3 . Thus the graph of this curve looks like the picture
below. Note the pointy place. Such a curve should not be considered smooth.
So what is the thing to remember from all this? First, there are certain conditions which
must be satisfied for a curve to be smooth. These are listed above. Next, if you have any
curve, there are two directions you can move over this curve, each called an orientation.
This is illustrated in the following picture.
q q
p p
Definition 14.4.7 A curve C is piecewise smooth if there exist points on this curve, denoted
by p0 , p1 , · · · , pn such that, denoting Cpk−1 pk the part of the curve joining pk−1 and pk , it
follows Cpk−1 pk is a smooth curve and ∪nk=1Cpk−1 pk = C. In other words, it is piecewise
smooth if it consists of a finite number of smooth curves linked together.
Note that Example 14.4.6 is an example of a piecewise smooth curve although it is not
smooth.
14.4. LINE INTEGRALS 265
Definition 14.4.8 Suppose F (x) ∈ R p is given for each x ∈ C where C is a smooth ori-
ented curve and suppose x → F (x) is continuous. The mapping x → F (x) is called a
vector field. In the case that F (x) is a force, it is called a force field.
Next the concept of work done by a force field F on an object as it moves along the
curve C, in the direction determined by the given orientation of the curve will be defined.
This is new. Earlier the work done by a force which acts on an object moving in a straight
line was discussed but here the object moves over a curve. In order to define what is meant
by the work, consider the following picture.
F (x(t))
x(t)
x(t + h)
In this picture, the work done by a constant force F on an object which moves from the
point x (t) to the point x (t + h) along the straight line shown would equal F ·(x (t + h) − x (t)).
It is reasonable to assume this would be a good approximation to the work done in moving
along the curve joining x (t) and x (t + h) provided h is small enough. Also, provided h is
small,
x (t + h) − x (t) ≈ x′ (t) h
where the wriggly equal sign indicates the two quantities are close. In the notation of
Leibniz, one writes dt for h and
dW = F (x (t)) · x′ (t) dt
or in other words,
dW
= F (x (t)) · x′ (t) .
dt
Defining the total work done by the force at t = 0, corresponding to the first endpoint of
the curve, to equal zero, the work would satisfy the following initial value problem.
dW
= F (x (t)) · x′ (t) , W (a) = 0.
dt
This motivates the following definition of work.
266 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
Definition 14.4.9 Let F (x) be given above. Then the work done by this force field on an
object moving over the curve C in the direction determined by the specified orientation is
defined as
Z Z b
F ·d R ≡ F (x (t)) · x′ (t) dt
C a
where the function x is one of the allowed parameterizations of C in the given orientation
of C. In other words, there is an interval [a, b] and as t goes from a to b, x (t) moves in the
direction determined from the given orientation of the curve.
R
Theorem 14.4.10 The symbol C F ·dR, is well defined in Rthe sense that every parametriza-
tion in the given orientation of C gives the same value for C F · dR.
Example 14.4.11 Suppose for t ∈ [0, π] the position of an object is given by r (t) = ti +
cos (2t) j + sin (2t) k. Also suppose there is a force field defined on R3 , F (x, y, z) ≡ 2xyi +
2
R
x j + k. Find C F · dR where C is the curve traced out by this object which has the
orientation determined by the direction of increasing t.
To find this line integral use the above definition and write
Z Z π
2t (cos (2t)) ,t 2 ,1 · (1, −2 sin (2t) , 2 cos (2t)) dt
F · dR =
C 0
14.4. LINE INTEGRALS 267
In evaluating this replace the x in the formula for F with t, the y in the formula for F
with cos (2t) and the z in the formula for F with sin (2t) because these are the values of
these variables which correspond to the value of t. Taking the dot product, this equals the
following integral.
Z π
2t cos 2t − 2 (sin 2t)t 2 + 2 cos 2t dt = π 2
0
Example 14.4.12 Let C denote the oriented curve obtained by r (t) = t, sint,t 3 where
the orientation is determined by increasing t for t ∈ [0, 2]. Also let F = (x, y, xz + z). Find
R
C F ·dR.
You use the definition.
Z Z 2
t, sin (t) , (t + 1)t 3 · 1, cos (t) , 3t 2 dt
F · dR =
C 0
Z 2 1251 1
= t + sin (t) cos (t) + 3 (t + 1)t 5 dt = − cos2 (2) .
0 14 2
Suppose you have a curve specified by r (s) = (x (s) , y (s) , z (s)) and it has the property
that |r ′ (s)| = 1 for all s ∈ [0, b]. Then the length of this curve for s between 0 and s1
is 0 |r (s)| ds = 0s1 1ds = s1 . This parameter is therefore called arc length because the
R s1 ′ R
length of the curve up to s equals s. Now you can always change the parameter to be arc
length.
Proposition 14.4.13 Suppose C is an oriented smooth curve parameterized by r (t) for
t ∈ [a, b]. Then letting l denote the total length of C, there exists R (s), s ∈ [0, l] another
parametrization for this curve which preserves the orientation and such that R′ (s) = 1
so that s is arc length.
Rt ′ (τ)| dτ
Prove: Let φ (t) ≡ a |r ≡ s. Then s is an increasing function of t because
ds
= φ ′ (t) = r ′ (t) > 0.
dt
Now define R (s) ≡ r φ −1 (s) . Then
r ′ φ −1 (s)
′
−1 ′
′ −1
R (s) = r φ (s) φ (s) = ′ −1
r φ (s)
R
and so R′ (s) = 1 as claimed. R (l) = r φ −1 (l) = r φ −1 ab |r ′ (τ)| dτ = r (b) and
R (0) = r φ −1 (0) = r (a) and R delivers the same set of points in the same order as r
This last is referred to as the integral of a differential form, Pdx + Qdy + Rdz. The
study of differential forms is important. Formally, d R = (dx, dy, dz) and so the integrand
in the above is formally F ·dR. Other occurrences of this notation are handled similarly in
2 or higher dimensions.
14.5 Exercises
2 √
1. Let r (t) = ln (t) , t2 , 2t for t ∈ [1, 2]. Find the length of this curve.
2 3/2
2. Let r (t) = 3t ,t,t for t ∈ [0, 1]. Find the length of this curve.
3. Let r (t) = (t, cos (3t) , sin (3t)) for t ∈ [0, 1]. Find the length of this curve.
4. Suppose for t ∈ [0, π] the position of an object is given by r (t) = ti + cos (2t) j +
sin (2t) k. Also suppose there is a force
field defined on R3 , which is given by the
2 2
R
formula F (x, y, z) ≡ 2xyi + x + 2zy j + y k. Find the work C F · dR where C is
the curve traced out by this object having the orientation determined by the direction
of increasing t.
5. In the following, a force field is specified followed by the parametrization of a curve.
Find the work.
6. The curve consists of straight line segments which go from (0, 0, 0) to (1, 1, 1) and
finally to (1, 2, 3). Find the work done if the force field is
7. ∗ Read ahead about the gradient in Definition 16.3.5 on Page 290. Show the vector
fields in the preceding problems are respectively
, and ∇ x2 sin y + z . Thus each of these vector fields is of the form ∇ f where f is a
function of three variables. For each f in the above, compute f (1, 2, 3) − f (0, 0, 0)
and compare with your solutions to the above line integrals. You should get the
same thing from f (1, 2, 3) − f (0, 0, 0) . This is not a coincidence and will be fully
discussed later. Such vector fields are called conservative.
8. Here is a vector field y, x + z2 , 2yz and here is the parametrization
R
of a curve C.
R (t) = (cos 2t, 2 sin 2t,t) where t goes from 0 to π/4. Find C F · dR.
9. If f and g are both increasing functions, show that f ◦ g is an increasing function
also. Assume anything you like about the domains of the functions.
10. Suppose for t ∈ [0, 3] the position of an object is given by r (t) = ti + tj + tk.
Also suppose there is a force field defined on R3 , F (x, y, z) ≡ yzi + xzj + xyk. Find
R
C F · dR where C is the curve traced out by this object which has the orientation de-
termined by the direction of increasing t. Repeat the problem for r (t) = ti+t 2 j +tk.
11. Suppose for t ∈ [0, 1] the position of an object is given by r (t) = ti + tj + tk.
Also suppose there is a force field defined on R3 , F (x, y, z) ≡ zi + xzj + xyk. Find
R
C F · dR where C is the curve traced out by this object which has the orientation de-
termined by the direction of increasing t. Repeat the problem for r (t) = ti+t 2 j +tk.
12. Let F (x, y, z) be a given force field and suppose it acts on an object having mass m
on a curve with parametrization, (x (t) , y (t) , z (t)) for t ∈ [a, b]. Show directly that
the work done equals the difference in the kinetic energy. Hint:
Z b
F (x (t) , y (t) , z (t)) · x′ (t) , y′ (t) , z′ (t) dt =
a
Z b
m x′′ (t) , y′′ (t) , z′′ (t) · x′ (t) , y′ (t) , z′ (t) dt,
a
etc.
13. Suppose for t ∈ [0, 2π] the position of an object is given by
R
Find the work C F · dR where C is the curve traced out by this object which has the
orientation determined by the direction of increasing t.
14. Here is a vector field y, x2 + z, 2yz and here is the parametrization
R
of a curve C.
R (t) = (cos 2t, 2 sin 2t,t) where t goes from 0 to π/4. Find C F · dR.
15. Suppose for t ∈ [0, 1] the position of an object is given by r (t) = ti + tj + tk.
Also suppose there is a force field defined on R3 , F (x, y, z) ≡ yzi + xzj + xyk. Find
R
C F · dR where C is the curve traced out by this object which has the orientation de-
termined by the direction of increasing t. Repeat the problem for r (t) = ti+t 2 j +tk.
You should get the same answer in this case. This is because the vector field happens
to be conservative. (More on this later.)
270 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
Recall that if p (t) : t ∈ [a, b] was a parametrization of a smooth curve C, the length of
C is defined as ab |p′ (t)| dt. If some other parametrization were used to trace out C, would
R
the same answer be obtained? To answer this question in a satisfactory manner requires
some hard calculus.
Proof: First it is shown that φ is either strictly increasing or strictly decreasing on (a, b).
If φ is not strictly decreasing on (a, b), then there exists x1 < y1 , x1 , y1 ∈ (a, b) such that
If for some other pair of points x2 < y2 with x2 , y2 ∈ (a, b), the above inequality does not
hold, then since φ is 1 − 1,
Let xt ≡ tx1 + (1 − t) x2 and yt ≡ ty1 + (1 − t) y2 . It follows that xt < yt for all t ∈ [0, 1].
Now define
h (t) ≡ (φ (yt ) − φ (xt )) (yt − xt ) .
Then h (0) < 0, h (1) > 0 but by assumption, h (t) ̸= 0 for any t ∈ (0, 1) , a contradiction.
This property of being either strictly increasing or strictly decreasing on (a, b) carries
over to [a, b] by the continuity of φ .
It only remains to verify φ −1 is continuous. If not, there exists sn → s where sn and s
are points of φ ([a, b]) but φ −1 (sn ) − φ −1 (s) ≥ ε. By sequential compactness of [a, b] ,
there is a subsequence, still denoted by n, such that φ −1 (sn ) − t1 → 0. Thus sn → φ (t1 ),
so s = φ (t1 ), and t1 = φ −1 (s) , a contradiction. ■
Corollary 14.6.2 Let f : (a, b) → R be one to one and continuous. Then f (a, b) is an open
interval (c, d) and f −1 : (c, d) → (a, b) is continuous.
14.6. INDEPENDENCE OF PARAMETRIZATION∗ 271
Proof: Since f is either strictly increasing or strictly decreasing, it follows that f (a, b)
is an open interval (c, d). Assume f is decreasing. Now let x ∈ (a, b). Why is f −1 is contin-
uous at f (x)? Since f is decreasing, if f (x) < f (y), then y ≡ f −1 ( f (y)) < x ≡ f −1 ( f (x))
and so f −1 is also decreasing. Let ε > 0 be given. Let ε > η > 0 and (x − η, x + η) ⊆ (a, b).
Then f (x) ∈ ( f (x + η) , f (x − η)). Let
z ≡ f −1 ( f (z)) ∈ (x − η, x + η) ⊆ (x − ε, x + ε)
which implies
f −1 ( f (z)) − x = f −1 ( f (z)) − f −1 ( f (x)) < ε.
This proves the theorem in the case where f is strictly decreasing. The case where f is
increasing is similar. ■
Theorem 14.6.3 Let f : [a, b] → R be continuous and one to one. Suppose f ′ (x1 ) exists
′
for some x1 ∈ [a, b] and f ′ (x1 ) ̸= 0. Then f −1 ( f (x1 )) exists and is given by the formula
′
f −1 ( f (x1 )) = f ′ (x1 ) .
1
f −1 ( f (x)) − f −1 ( f (x1 )) 1 x − x1 1
− ′ = − <ε
f (x) − f (x1 ) f (x1 ) f (x) − f (x1 ) f ′ (x1 )
Therefore, since ε > 0 is arbitrary,
f −1 (y) − f −1 ( f (x1 )) 1
lim = ′ . ■
y→ f (x1 ) y − f (x1 ) f (x1 )
The following obvious corollary comes from the above by not bothering with end
points.
Corollary 14.6.4 Let f : (a, b) → R be continuous and one to one. Suppose f ′ (x1 ) exists
′
for some x1 ∈ (a, b) and f ′ (x1 ) ̸= 0. Then f −1 ( f (x1 )) exists and is given by the formula
′
f −1 ( f (x1 )) = f ′ (x1 ) .
1
f −1 ( f (x)) − f −1 ( f (x1 )) x − x1 1
lim = lim = ′ . ■
f (x)→ f (x1 ) f (x) − f (x1 ) x→x1 f (x) − f (x1 ) f (x1 )
272 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
Proof: Let F ′ (s) = f (s). (For example, let F (s) = as f (r) dr.) Then the first integral
R
equals F (d) − F (c) by the fundamental theorem of calculus. Since φ is one to one, it
follows from Lemma 14.6.1 above that φ is either strictly increasing or strictly decreasing.
Suppose φ is strictly decreasing. Then φ (a) = d and φ (b) = c. Therefore, φ ′ ≤ 0 and the
second integral equals
Z b Z a
d
− f (φ (t)) φ ′ (t) dt = (F (φ (t))) dt = F (φ (a)) − F (φ (b)) = F (d) − F (c) .
a b dt
The case when φ is increasing is similar but easier. ■
Theorem 14.6.7 The length of a smooth curve is not dependent on which parametrization
is used.
Proof: Let C be the curve and suppose f : [a, b] → C and g : [c, d] → C both satisfy
conditions (1) - (5). Is it true that ab f ′ (t) dt = cd |g ′ (s)| ds?
R R
Let φ (t) ≡ g −1 ◦f (t) for t ∈ [a, b]. I want to show that φ is C1 on an interval of the form
[a + δ , b − δ ]. By the above lemma, φ is either strictly increasing or strictly decreasing on
[a, b]. Suppose for the sake of simplicity that it is strictly increasing. The decreasing case
is handled similarly.
Let s0 ∈ φ ([a + δ , b − δ ]) ⊂ (c, d). Then by assumption 4 for smooth curves, g′i (s0 ) ̸= 0
for some i. By continuity of g′i , it follows g′i (s) ̸= 0 for all s ∈ I where I is an open interval
contained in [c, d] which contains s0 . It follows from the mean value theorem that on this
interval gi is either strictly increasing or strictly decreasing. Therefore, J ≡ gi (I) is also an
open interval and you can define a differentiable function hi : J → I by
hi (gi (s)) = s.
1 Recall that all continuous functions of this sort are Riemann integrable.
14.6. INDEPENDENCE OF PARAMETRIZATION∗ 273
fi′ (t)
φ ′ (t) = h′i ( fi (t)) fi′ (t) = h′i (gi (s)) fi′ (t) = ′ (14.11)
gi (φ (t))
which shows that φ ′ exists and is continuous on J1 , an open interval containing φ −1 (s0 ).
′
Since s0 is arbitrary, this shows φ exists on [a + δ , b − δ ] and is continuous there.
Now f (t) = g◦ g ◦ f (t) = g (φ (t)), and it was just shown that φ ′ is a continuous
−1
function on [a − δ , b + δ ]. It follows from the chain rule, f ′ (t) = g ′ (φ (t)) φ ′ (t) and so, by
Theorem 14.6.5,
Z φ (b−δ ) Z b−δ Z b−δ
′ ′ ′
g (s) ds = g (φ (t)) φ (t) dt = f ′ (t) dt.
φ (a+δ ) a+δ a+δ
Now using the continuity of φ , g ′ , and f ′ on [a, b] and letting δ → 0+ in the above, yields
Z d Z b
g ′ (s) ds = f ′ (t) dt. ■
c a
274 CHAPTER 14. VECTOR VALUED FUNCTIONS OF ONE VARIABLE
Chapter 15
x
Lemma 15.1.1 Define T (t) ≡ R′ (t) / R′ (t) . Then |T (t)| = 1 and if T ′ (t) ̸= 0, then
there exists a unit vector N (t) perpendicular to T (t) and a scalar valued function κ (t),
with T ′ (t) = κ (t) |v| N (t).
Proof: It follows from the definition that |T | = 1. Therefore, T · T = 1 and so, upon
differentiating both sides,
T ′ · T + T · T ′ = 2T ′ · T = 0.
Definition 15.1.2 The vector T (t) is called the unit tangent vector and the vector N (t) is
called the principal normal. The function κ (t) in the above lemma is called the curvature.
The radius of curvature is defined as ρ = 1/κ. The plane determined by the two vectors T
275
276 CHAPTER 15. MOTION ON A SPACE CURVE
and N in the case where T ′ ̸= 0 is called the osculating1 plane. It identifies a particular
plane which is in a sense tangent to this space curve.
The important thing about this is that it is possible to write the acceleration as the sum
of two vectors, one perpendicular to the direction of motion and the other in the direction
of motion.
Theorem 15.1.3 For R (t) the position vector of a space curve, the acceleration is given
by the formula
d |v|
a= T + κ |v|2 N ≡ aT T + aN N . (15.1)
dt
Furthermore, a2T + a2N = |a|2 .
Proof:
dv d d d |v| d |v|
R′ = (|v| T ) = T + |v| T ′ = T + |v|2 κN.
a= =
dt dt dt dt dt
This proves the first part.
For the second part,
a × v = κ |v|2 N × v
Hence, using the geometric description of the cross product again using that the angle
between N and T is 90◦ ,
|a × v| |v × a|
|a × v| = κ |v|2 |v| , κ = 3
= (15.2)
|v| |v|3
Finally, it is good to point out that the curvature is a property of the curve itself, and
does not depend on the parametrization of the curve. If the curve is given by two different
vector valued functions R (t) and R (τ), then from the formula above for the curvature,
T ′ (t) d T dτ
dτ dt
dT
dτ
κ (t) = = d R dτ
= dR
≡ κ (τ) .
|v (t)| dτ dt dτ
From this, it is possible to give an important formula from physics. Suppose an object
orbits a point at constant speed v. In the above notation, |v| = v. What is the centripetal
acceleration of this object? You may know from a physics class that the answer is v2 /r
where r is the radius. This follows from the above quite easily. First, what is the curvature
of a circle of radius r? A parameterization of such a curve is
Then aN = κ |v|2
q
4 + (−2 sin (t) + 2 (cos (t))t)2 + cos2 (t)
sin2 (t) + 1 + 4t 2
= q 3
sin2 (t) + 1 + 4t 2
q
4 + (−2 sin (t) + 2 (cos (t))t)2 + cos2 (t)
= q .
sin2 (t) + 1 + 4t 2
You can observe the formula a2N + a2T = |a|2 holds. Indeed a2N + a2T =
q 2 !2
4 + (−2 sin (t) + 2 (cos (t))t)2 + cos2 (t) sin (t) cos (t) + 4t
q + p
2
sin (t) + 1 + 4t 2 (2 + 4t 2 − cos2 t)
a = aT T + aN N (15.3)
where aT = d|dtv| and aN = κ |v|2 . Of course one way to find aT and aN is to just find
|v| , d|dtv| and κ and plug in. However, there is another way which might be easier. Take the
dot product of both sides with T. This gives,
a · T = aT T · T + aN N · T = aT .
Thus
a = (a · T ) T + aN N
and so
a − (a · T ) T = aN N (15.4)
and taking norms of both sides,
|a − (a · T ) T | = aN .
Example 15.1.5 Let R (t) = cos (t) ,t,t 2 for t ∈ [0, 3]. Find the speed, velocity, curva-
ture, and write the acceleration in terms of normal and tangential components when t = 0.
Also find N at the point where t = 0.
aT = (−1, 0, 2) · (0, 1, 0) = 0
√ √
Now |a|2 = 5 and so aN = 5 because a2T + a2N = |a|2 . Thus 5 = κ |v (0)|2 = κ · 1 = κ.
Next lets find N . From a = aT T + aN N it follows
√
(−1, 0, 2) = 0 · T + 5N
15.2. GEOMETRY OF SPACE CURVES∗ 279
and so
1
N = √ (−1, 0, 2) .
5
This was pretty easy.
Example 15.1.6 Find a formula for the curvature of the curve given by the graph of y =
f (x) for x ∈ [a, b]. Assume whatever you like about smoothness of f .
You need to write this as a parametric curve. This is most easily accomplished by letting
t = x. Thus a parametrization is (t, f (t) , 0) : t ∈ [a, b] . Then you can use the formula given
above. The acceleration is (0, f ′′ (t) , 0) and the velocity is (1, f ′ (t) , 0). Therefore,
a × v = 0, f ′′ (t) , 0 × 1, f ′ (t) , 0 = 0, 0, − f ′′ (t) .
Example 15.1.8 Find a parametrization for the straight line joining (3, 2, 4) and (1, 10, 5).
(x, y, z) = (3, 2, 4) +t (−2, 8, 1) = (3 − 2t, 2 + 8t, 4 + t) where t ∈ [0, 1]. Note where this
came from. The vector (−2, 8, 1) is obtained from (1, 10, 5) − (3, 2, 4). Now you should
check to see this works.
Lemma 15.2.1 Define T (s) ≡ R′ (s). Then |T (s)| = 1 and if T ′ (s) ̸= 0, then there exists
a unit vector N (s) perpendicular to T (s) and a scalar valued function κ (s) with T ′ (s) =
κ (s) N (s).
Proof: First, s = 0s R′ (r) dr because of the definition of arc length. Therefore, from
R
Theorem 15.2.4 (Serret Frenet) Let R (s) be the parametrization with respect to arc length
of a space curve and T (s) = R′ (s) is the unit tangent vector. Suppose T ′ (s) ̸= 0 so the
′ (s)
principal normal N (s) = |T T ′ (s)|
is defined. The binormal is the vector B ≡ T × N so
T, N, B forms a right handed system of unit vectors each of which is perpendicular to
every other. Then the following system of differential equations holds in R9 .
Proof: κ ≥ 0 because κ = T ′ (s) . The first two equations are already established.
To get the third, note that B × T = N which follows because T, N, B is given to form a
right handed system of unit vectors each perpendicular to the others. (Use your right hand.)
Now take the derivative of this expression. thus
N ′ = B ′ × T + B × T ′ = τ N × T + κB × N.
N × T = −B, B × N = −T.
Example 15.2.5 Given the circular helix, R (t) = (a cost) i + (a sint) j + (bt) k, find the
arc length s (t), the unit tangent vector T (t), the principal normal N (t) , the binormal
B (t), the curvature κ (t), and the torsion, τ (t). Here t ∈ [0, T ].
R √ √
The arc length is s (t) = 0t a2 + b2 dr = a2 + b2 t. Now the tangent vector is
obtained using the chain rule as
dR dR dt 1 1
T= = =√ R′ (t) = √ ((−a sint) i + (a cost) j + bk)
ds dt ds 2
a +b 2 a + b2
2
dT dT dt 1
= = ((−a cost) i + (−a sint) j + 0k)
ds dt ds a2 + b2
282 CHAPTER 15. MOTION ON A SPACE CURVE
and so
dT dT
N= / = − ((cost) i + (sint) j)
ds ds
The binormal:
i j k
1 1
B=√ −a sint a cost b =√ ((b sint) i− b costj + ak)
a2 + b2 a + b2
2
− cost − sint 0
r 2 2
dT a cost a sint a
Now the curvature κ (t) = ds = a2 +b2
+ a2 +b2
= a2 +b2
. Note the curvature
is constant in this example. The final task is to find the torsion. Recall that B ′ = τN where
the derivative on B is taken with respect to arc length. Therefore, remembering that t is a
function of s,
1 dt 1
B ′ (s) = √ ((b cost) i+ (b sint) j) = ((b cost) i+ (b sint) j)
a2 + b2 ds a2 + b2
= τ (− (cost) i − (sint) j) = τN
Corollary 15.2.6 Let R (t) be a space curve and denote by v (t) the velocity, v (t) = R′ (t),
let v (t) ≡ |v (t)| denote the speed, and let a (t) denote the acceleration. Then v = vT and
a = dv 2
dt T + κv N.
15.3 Exercises
1. Find a parametrization for the intersection of the planes 2x + y + 3z = −2 and 3x −
2y + z = −4.
2. Find a parametrization for the intersection of the plane 3x + y + z = −3 and the
circular cylinder x2 + y2 = 1.
3. Find a parametrization for the intersection of the plane 4x + 2y + 3z = 2 and the
elliptic cylinder x2 + 4z2 = 9.
15.3. EXERCISES 283
4. Find a parametrization for the straight line joining (1, 2, 1) and (−1, 4, 4).
5. Find a parametrization for the intersection of the surfaces 3y + 3z = 3x2 + 2 and
3y + 2z = 3.
6. Find a formula for the curvature of the curve y = sin x in the xy plane.
7. An object moves over the curve (t, et , at) where t ∈ R and a is a positive constant.
Find the value of t at which the normal component of acceleration is largest if there
is such a point.
8. Find a formula for the curvature of the space curve in R2 , (x (t) , y (t)).
9. An object moves over the helix, (cos 3t, sin 3t, 5t). Find the normal and tangential
components of the acceleration of this object as a function of t and write the acceler-
ation in the form aT T + aN N .
10. An object moves over the helix, (cost, sint,t). Find the normal and tangential com-
ponents of the acceleration of this object as a function of t and write the acceleration
in the form aT T + aN N .
11. An object moves in R3 according to the formula cos 3t, sin 3t,t 2 . Find the normal
where v = rω. Show that the speed of the object is constant and equals to v. Tell
why aT = 0 and find aN , N.
14. Suppose |R (t)| = c where c is a constantR (t). Show the velocity, R′ (t) is always
perpendicular to R (t).
15. An object moves in three dimensions and the only force on the object is a central
force. This means that if r (t) is the position of the object, a (t) = k (r (t)) r (t) where
k is some function. Show that if this happens, then the motion of the object must be
in a plane. Hint: First argue that a × r = 0. Next show that (a × r) = (v × r)′ .
Therefore, (v × r)′ = 0. Explain why this requires v × r = c for some vector c
which does not depend on t. Then explain why c · r = 0. This implies the motion is
in a plane. Why? What are some examples of central forces?
√
16. Let R (t) = (cost) i + (cost) j + 2 sint k. Find the arc length, s as a function of
the parameter t, if t = 0 is taken to correspond to s = 0.
17. Let R (t) = 2i + (4t + 2) j + 4tk. Find the arc length, s as a function of the parameter
t, if t = 0 is taken to correspond to s = 0.
√
18. Let R (t) = e5t i+e−5t j +5 2tk. Find the arc length, s as a function of the parameter
t, if t = 0 is taken to correspond to s = 0.
284 CHAPTER 15. MOTION ON A SPACE CURVE
19. Consider the curve obtained from the graph of y = f (x). Find a formula for the
curvature.
20. Consider the curve in the plane y = ex . Find the point on this curve at which the
curvature is a maximum.
21. An object moves along the x axis toward (0, 0) and then along the curve y = x2 in
the direction of increasing x at constant speed. Is the force acting on the object a
continuous function? Explain. Is there any physically reasonable way to make this
force continuous by relaxing the requirement that the object move at constant speed?
If the curve were part of a railroad track, what would happen at the point where
x = 0?
22. An object of mass m moving over a space curve is acted on by a force F. Show the
work done by this force equals maT (length of the curve). In other words, it is only
the tangential component of the force which does work.
23. The edge of an elliptical skating rink represented in the following picture has a light
x2 y2
at its left end and satisfies the equation 900 + 256 = 1. (Distances measured in yards.)
T
z (x, y)
A hockey puck slides from the point T towards the center of the rink at the rate of 2
What is the speed of its shadow along the wall when z = 8? Hint:
yards per second.p
You need to find x′2 + y′2 at the instant described.
Chapter 16
Example 16.1.2 Let S denote the set (x, y, z) ∈ R3 : x, y, z are all in N . Which points are
limit points?
This set does not have any because any two of these points are at least as far apart as 1.
Therefore, if x is any point of R3 , B (x, 1/4) contains at most one point.
Example 16.1.3 Let U be an open set in R3 . Which points of U are limit points of U?
They all are. From the definition of U being open, if x ∈ U, There exists B (x, r) ⊆ U
for some r > 0. Now consider the line segment x + tr e1 where t ∈ [0, 1/2]. This describes
infinitely many points and they are all in B (x, r) because |x + tr e1 − x| = tr < r. Therefore,
every point of U is a limit point of U.
The case where U is open will be the one of most interest, but many other sets have
limit points.
if and only if the following condition holds. For all ε > 0 there exists δ > 0 such that if
then,
|L − f (y)| < ε.
The condition that x must be a limit point of D (f ) if you are to take a limit at x is what
makes the limit well defined.
285
286 CHAPTER 16. FUNCTIONS OF MANY VARIABLES
Proof: Suppose limy→x f (y) = L1 and limy→x f (y) = L2 . Then for ε > 0 given, let
δ i > 0 correspond to Li in the definition of the limit and let δ = min (δ 1 , δ 2 ). Since x is a
limit point, there exists y ∈ B (x, δ ) ∩ D (f ). Therefore,
for each k = 1, · · · , p.
In the case where f and g have values in R3
16.2 Exercises
1. Sketch the contour graph of the function of two variables f (x, y) = (x − 1)2 +(y − 2)2 .
2. Which of the following functions could correspond to the following contour graphs?
z = x2 + 3y2 , z = 3x2 + y2 , z = x2 − y2 , z = x + y.
4 4 4
2 2 2
0 0 0
-2 -2 -2
-4 -4 -4
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4
3. Which of the following functions could correspond to the following contour graphs?
z = x2 − 3y2 , z = y2 + 3x2 , z = x − y, z = x + y.
4 4 4
2 2 2
0 0 0
-2 -2 -2
-4 -4 -4
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4
4. Which of the following functions could correspond to the following contour graphs?
z = sin(x + y), z = x + y, z = (x + y)2 , z = x2 − y.
4 4 4
2 2 2
0 0 0
-2 -2 -2
-4 -4 -4
-4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4
5. Find the following limits if they exist. If they do not exist, explain why.
−y 2 2
(a) lim(x,y)→(0,0) xx2 +y 2
6. Find the following limits if they exist. If they do not exist, tell why.
2
(x2 −y4 )
(a) lim(x,y)→(0,0) x 2
(x2 +y4 )
x sin(x2 +2y2 )
(b) lim(x,y)→(0,0) 2x2 +y2
xy
(c) lim(x,y)→(0,0) x2 +y2
288 CHAPTER 16. FUNCTIONS OF MANY VARIABLES
v
In this picture, v ≡ (v1 , v2 ) is a unit vector in the xy plane and x0 ≡ (x0 , y0 ) is a point in
the xy plane. When (x, y) moves in the direction of v, this results in a change in z = f (x, y)
as shown in the picture. The directional derivative in this direction is defined as
Definition 16.3.1 Let f : U → R where U is an open set in Rn and let v be a unit vector.
For x ∈ U, define the directional derivative of f in the direction v, at the point x as
f (x + tv) − f (x)
Dv f (x) ≡ lim .
t→0 t
16.3. THE DIRECTIONAL DERIVATIVE AND PARTIAL DERIVATIVES 289
Example 16.3.2 Find the directional derivative of the function f (x, y) = x2 y in the direc-
tion of i + j at the point (1, 2).
First you need a unit vector
which has the same direction as the given vector. This
1 1
unit vector is v ≡ √2 , √2 . Then to find the directional derivative from the definition,
2
write the difference quotient described above. Thus f (x + tv) = 1 + √t 2 2 + √t 2 and
f (x) = 2. Therefore,
2
1 + √t 2 + √t −2
f (x + tv) − f (x) 2 2
= ,
t t
and to find the directional derivative, you takethe limit of this as t → 0. However,this dif-
√ √ √
1
ference quotient equals 4 2 10 + 4t 2 + t 2 and so, letting t → 0, Dv f (1, 2) = 25 2 .
There is something you must keep in mind about this. The direction vector must always
be a unit vector1 .
z = f (x, y)
y
e1
x
As in the case of a general directional derivative, you fix y and take the derivative of
the function x → f (x, y). More generally, even in situations which cannot be drawn, the
definition of a partial derivative is as follows.
Definition 16.3.3 Let U be an open subset of Rn and let f : U → R. Then letting x =
(x1 , · · · , xn )T be a typical element of Rn ,
∂f
(x) ≡ Dei f (x) .
∂ xi
1 Actually, there is a more general formulation of the notion of directional derivative known as the Gateaux
derivative in which the length of v is not one but it is not considered here.
290 CHAPTER 16. FUNCTIONS OF MANY VARIABLES
∂f f (x+tei ) − f (x)
(x) ≡ lim
∂ xi t→0 t
f (x1 , · · · , xi + t, · · · xn ) − f (x1 , · · · , xi , · · · xn )
= lim ,
t→0 t
and to find the partial derivative, differentiate with respect to the variable of interest and
regard all the others as constants. Other notation for this partial derivative is fxi , f,i , or
Di f . If y = f (x), the partial derivative of f with respect to xi may also be denoted by ∂∂xyi
or yxi .
∂f ∂f ∂f
Example 16.3.4 Find ∂x , ∂y , and ∂z if f (x, y) = y sin x + x2 y + z.
From the definition above, ∂∂ xf = y cos x +2xy, ∂∂ yf = sin x +x2 , and ∂∂ zf = 1. Having taken
one partial derivative, there is no reason to stop doing it. Thus, one could take the partial
2
derivative with respect to y of the partial derivative with respect to x, denoted by ∂∂y∂fx or
fxy . In the above example,
∂2 f
= fxy = cos x + 2x.
∂ y∂ x
Also observe that
∂2 f
= fyx = cos x + 2x.
∂ x∂ y
Higher order partial derivatives are defined by analogy to the above. Thus in the above
example,
fyxx = − sin x + 2.
These partial derivatives, fxy are called mixed partial derivatives.
There is an interesting relationship between the directional derivatives and the partial
derivatives, provided the partial derivatives exist and are continuous.
Definition 16.3.5 Suppose f : U ⊆ Rn → R where U is an open set and the partial deriva-
tives of f all exist and are continuous on U. Under these conditions, define the gradient of
f denoted ∇ f (x) to be the vector
Proposition 16.3.6 In the situation of Definition 16.3.5 and for v a unit vector
Dv f (x) = ∇ f (x) · v.
This proposition will be proved in a more general setting later. For now, you can use it
to compute directional derivatives.
Example 16.3.7 Find the directional derivative of the function f (x, y) = sin 2x2 + y3 at
T
(1, 1) in the direction √12 , √12 .
16.3. THE DIRECTIONAL DERIVATIVE AND PARTIAL DERIVATIVES 291
16.4 Exercises
1. Find the directional derivative of f (x, y, z) = x2 y + z4 in the direction of the vector
(1, 3, −1) when (x, y, z) = (1, 1, 1).
4. Using the conclusion of Proposition 16.3.6, prove Proposition 16.3.8 from the ge-
ometric description of the dot product, the one which says the dot product is the
product of the lengths of the vectors and the cosine of the included angle which is no
larger than π.
5. Find the largest value of the directional derivative of f (x, y, z) = ln x + y2 + z2 at
(a) x2 y2 z + w
(b) e2 + xy + z2
(c) sin z2 + cos (xy)
(d) ln x2 + y2 + 1 + ez
2 +z
(e) xy
16.5. MIXED PARTIAL DERIVATIVES 293
12. Suppose
2xy+6x3 +12xy2 +18yx2 +36y3 +sin(x3 )+tan(3y3 )
(
3x2 +6y2
if (x, y) ̸= (0, 0)
f (x, y) =
0 if (x, y) = (0, 0) .
∂f ∂f
Find ∂x (0, 0) and ∂y (0, 0).
13. Why must the vector in the definition of the directional derivative be a unit vector?
Hint: Suppose not. Would the directional derivative be a correct manifestation of
steepness?
Proof: Since U is open, there exists r > 0 such that B ((x, y) , r) ⊆ U. Now let |t| , |s| <
r/2 and consider
h(t) h(0)
1 z }| { z }| {
∆ (s,t) ≡ { f (x + t, y + s) − f (x + t, y) − ( f (x, y + s) − f (x, y))}. (16.6)
st
Note that (x + t, y + s) ∈ U because
1/2
|(x + t, y + s) − (x, y)| = |(t, s)| = t 2 + s2
2 1/2
r r2 r
≤ + = √ < r.
4 4 2
As implied above, h (t) ≡ f (x + t, y + s) − f (x + t, y). Therefore, by the mean value theo-
rem from calculus and the (one variable) chain rule,
1 1
∆ (s,t) = (h (t) − h (0)) = h′ (αt)t
st st
1
= ( fx (x + αt, y + s) − fx (x + αt, y))
s
for some α ∈ (0, 1). Applying the mean value theorem again,
Letting (s,t) → (0, 0) and using the continuity of fxy and fyx at (x, y) ,
The following is obtained from the above by simply fixing all the variables except for
the two of interest.
Corollary 16.5.2 Suppose U is an open subset of Rn and f : U → R has the property that
for two indices k, l, fxk , fxl , fxl xk , and fxk xl exist on U and fxk xl and fxl xk are both continuous
at x ∈ U. Then fxk xl (x) = fxl xk (x).
It is necessary to assume the mixed partial derivatives are continuous in order to assert
they are equal. The following is a well known example [3].
Here is a picture of the graph of this function. It looks innocuous but isn’t.
From the definition of partial derivatives it follows immediately that fx (0, 0) = fy (0, 0) =
0. Using the standard rules of differentiation, for (x, y) ̸= (0, 0),
x4 − y4 + 4x2 y2 x4 − y4 − 4x2 y2
fx = y , fy = x
(x2 + y2 )2 (x2 + y2 )2
Now
fx (0, y) − fx (0, 0) −y4
fxy (0, 0) ≡ lim = lim = −1
y→0 y y→0 (y2 )2
while
fy (x, 0) − fy (0, 0) x4
fyx (0, 0) ≡ lim = lim =1
x→0 x x→0 (x2 )2
showing that, although the mixed partial derivatives do exist at (0, 0), they are not equal
there.
Definition 16.6.1 Let u be a function of n variables. Then ∆u ≡ ∑nk=1 uxk xk . This is also
written as ∇2 u. The symbol ∆ or ∇2 is called the Laplacian. When ∆u = 0 the function u is
called [Link]’s equation is ∆u = 0. The heat equation is ut − ∆u = 0 and the
wave equation is utt − ∆u = 0.
uxx = 2 while uyy = −2. Therefore, ∆u = uxx + uyy = 2 − 2 = 0. Thus this function is
harmonic, ∆u = 0.
In this case, ut = −e−t cos x while uyy = 0 and uxx = −e−t cos x therefore, ut − ∆u = 0
and so u solves the heat equation ut − ∆u = 0.
In this case, utt = − sint cos x while ∆u = − sint cos x. Therefore, u is a solution of the
wave equation utt − ∆u = 0.
16.7 Exercises
1. Find fx , fy , fz , fxy , fyx , fxz, fzx , fzy , fyz for the following. Verify the mixed partial deriva-
tives are equal.
4. Show that if v (x, y) = u (αx, β y), then vx = αux and vy = β uy . State and prove a
generalization to any number of variables.
296 CHAPTER 16. FUNCTIONS OF MANY VARIABLES
5. Let f be a function which has continuous derivatives. Show that u (t, x) = f (x − ct)
solves the wave equation utt − c2 ∆u = 0. What about u (x,t) = f (x + ct)?
6. D’Alembert found a formula for the solution to the wave equation utt = c2 uxx along
with the initial conditions u (x, 0) = f (x) , ut (x, 0) = g (x). Here is how he did it. He
looked for a solution of the form u (x,t) = h (x + ct) + k (x − ct) and then found h and
k in terms of the given functions f and g. He ended up with something like
Z x+ct
1 1
u (x,t) = g (r) dr + ( f (x + ct) + f (x − ct)) .
2c x−ct 2
Fill in the details.
7. Determine which of the following functions satisfy Laplace’s equation.
(a) x3 − 3xy2
(b) 3x2 y − y3
(c) x3 − 3xy2 + 2x2 − 2y2
(d) 3x2 y − y3 + 4xy
(e) 3x2 − y3 + 4xy
(f) 3x2 y − y3 + 4y
(g) x3 − 3x2 y2 + 2x2 − 2y2
p
8. Show that z = x2 + y2 is a solution to x ∂∂ xz + y ∂∂ yz = z.
9. Show that if ∆u = λ u where u is a function of only x, then eλt u solves the heat
equation ut − ∆u = 0.
10. Show that if a, b are scalars and u, v are functions which satisfy Laplace’s equation
then au + bv also satisfies Laplace’s equation. Verify a similar statement for the heat
and wave equations.
1 −x2 /4c2 t
11. Show that u (x,t) = √
t
e solves the heat equation ut = c2 uxx .
Chapter 17
Thus for a function of one variable, the function f (x + h) − f (x) − f ′ (x) h is o (h).
When we say a function is o (h), it is used like an adjective. It is like saying the function is
white or black or green or fat or thin. The term is used very imprecisely. Thus in general,
When you add two functions with the property of the above definition, you get another one
having that same property. When you multiply by 45, the property is also retained, as it
is when you subtract two such functions. How could something so sloppy be useful? The
notation is useful precisely because it prevents you from obsessing over things which are
not relevant and should be ignored.
297
298 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
Theorem 17.1.3 Let f : (a, b) → R be a function of one variable. Then f ′ (x) exists if and
only if there exists p such that
Proof: From the above observation it follows that if f ′ (x) does exist, then (17.2) holds.
Suppose then that (17.2) is true. Then
f (x + h) − f (x) o (h)
−p= .
h h
Taking a limit, you see that
f (x + h) − f (x)
p = lim
h→0 h
and that in fact this limit exists which shows that p = f ′ (x). ■
This theorem shows that one way to define f ′ (x) is as the number p, if there is one,
which has the property that
f (x + h) = f (x) + ph + o (h) .
You should think of p as the linear transformation resulting from multiplication by the 1 ×1
matrix (p).
f (x + h) − f (x) = sin (x + h) − sin (x) = sin (x) cos (h) + cos (x) sin (h) − sin (x)
(cos (h) − 1)
= cos (x) sin (h) + sin (x) h
h
(sin (h) − h) (cos (h) − 1)
= cos (x) h + cos (x) h + sin x h.
h h
Now
(sin (h) − h) (cos (h) − 1)
cos (x) h + sin x h = o (h) . (17.3)
h h
Remember the fundamental limits which allowed you to find the derivative of sin (x) were
vu 1 2 1 1p 2
u + v2 √
√ ≤ = u + v2
u2 + v2 2 u2 + v2 2
and this converges to 0 as (u, v) → (0, 0). This follows from the inequality |uv| ≤ 12 u2 + v2
which you can verify from (u − v)2 ≥ 0. Similar considerations apply in higher dimensions
also. In general, this is a hard question because it involves a limit of a function of many
variables. Furthermore, there is really no substitute for answering this question, because
its resolution involves the definition of whether a function is differentiable. That may be
why we spend most of our time on one dimensional considerations which involve taking
the partial derivatives. The following exercises should help give you an idea of how to
determine whether something is o.
17.2 Exercises
1. Determine which of the following functions are o (h).
(a) h2
(b) h sin (h)
(c) |h|3/2 ln (|h|)
(d) h2 x + yh3
(e) sin h2
2. Here are some scalar valued functions of several variables. Determine which of these
functions are o (v). Here v is a vector in Rn , v = (v1 , · · · , vn ).
(a) v1 v2
(b) v2 sin (v1 )
(c) v21 + v2
(d) v2 sin (v1 + v2 )
(e) v1 (v1 + v2 + xv3 )
(f) (ev1 − 1 − v1 )
(g) (x · v) |v|
300 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
3. Here are some vector valued functions of v ∈ Rn . Determine which ones are o (v).
(a) (x · v) v
(b) sin (v1 ) v
(c) |(x · v)| |v|2/3
p
If you deleted the o (x − x0 ) term and considered the function of x given by what is
left, this is called the linear approximation to the function at the point x0 . In the case where
x ∈ R2 and f has values in R one can draw a picture to illustrate this.
Of course the first and most obvious question is whether the linear transformation is
unique. Otherwise, the definition of the derivative Df (x) would not be well defined.
where
∂f f (x+tei ) − f (x)
(x) ≡ lim ,
∂ xi h→0 t
the kth partial derivative of f .
T th − T1th = o (t)
Recall from theorem 8.3.2 this shows the matrix of the linear transformation is as claimed.
■
Other notations which are often used for this matrix or the linear transformation are
f ′ (x) , J (x), and even ∂∂ fx or dd fx . Also, the above definition can now be written in the form
p
∂ f (x)
f (x + v) = f (x) + ∑ v j + o (v)
j=1 ∂ x j
or
∂ f (x) ∂ f (x)
f (x + v) − f (x) = ∂ x1 ··· ∂ xn
v + o (v)
Here is an example of a scalar valued nonlinear function.
√
Example 17.3.4 Suppose f (x, y) = xy. Find the approximate change in f if x goes from
1 to 1.01 and y goes from 4 to 3.99.
Notation 17.3.5 When f is a scalar valued function of n variables, the following is often
written to express the idea that a small change in f due to small changes in the variables
can be expressed in the form
where the small change in xi is denoted as dxi . As explained above, d f is the approximate
change in the function f . Sometimes d f is referred to as the differential of f .
and it follows that the term with a sum is nothing more than the ith component of J (x) v
where J (x) is the q × p matrix
∂f ∂ f1
· · · ∂∂ xf1p
1
∂ x1 ∂ x2
∂ f2 ∂ f2 ∂ f2
1 ∂ x2 · · · ∂ x p
∂x
. .. .. .. .
.. . . .
∂ fq ∂ fq ∂ fq
∂ x1 ∂ x2 ··· ∂ xp
17.3. THE DERIVATIVE OF FUNCTIONS OF MANY VARIABLES 303
Thus
f (x + v) = f (x) + J (x) v + o (v) , (17.6)
and to reiterate, the linear transformation which results by multiplication by this q × p
matrix is known as the derivative.
Sometimes x, y, z is written instead of x1 , x2 , and x3 . This is to save on notation and is
easier to write and to look at although it lacks generality. When this is done it is understood
that x = x1 , y = x2 , and z = x3 . Thus the derivative is the linear transformation determined
by
f1x f1y f1z
f2x f2y f2z .
Example 17.3.6 Let A be a constant m × n matrix and consider f (x) = Ax. Find Df (x)
if it exists.
(x + h) (y + k) + (z + l)2 (x + h) − xy + z2 x
z2 + y h + xk + 2zxl + hk + +2zlh + l 2 x + l 2 h
It follows easily the last term at the end is o (h, k, l) and so the derivative of this
function
is
the linear transformation coming from multiplication by the matrix z2 + y , x, 2zx and
so this is the derivative. It follows from this and the description of the derivative in terms
of partial derivatives that
∂f ∂f ∂f
(x, y, z) = z2 + y, (x, y, z) = x, (x, y, z) = 2xz.
∂x ∂y ∂z
Of course you could compute these partial derivatives directly.
Given a function of many variables, how can you tell if it is differentiable? In other
words, when you make the linear approximation, how can you tell easily that what is left
over is o (v). Sometimes you have to go directly to the definition and verify it is differ-
entiable from the definition. For example, you may have seen the following important
example in one variable calculus.
(
x2 sin 1x if x ̸= 0
Example 17.3.8 Let f (x) = . Find D f (0).
0 if x = 0
304 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
1
f (h) − f (0) = 0h + h2 sin = o (h) ,
h
and so D f (0) = 0. If you find the derivative for x ̸= 0, it is totally useless information if
what you want is D f (0). This is because the derivative turns out to be discontinuous. Try
it. Find the derivative for x ̸= 0 and try to obtain D f (0) from it. You see, in this example
you had to revert to the definition to find the derivative.
It isn’t really too hard to use the definition even for more ordinary examples.
!
x2 y + y2
Example 17.3.9 Let f (x, y) = . Find Df (1, 2).
y3 x
First of all, note that the thing you are after is a 2 × 2 matrix.
!
6
f (1, 2) = .
8
Then
f (1 + h1 , 2 + h2 ) − f (1, 2)
! !
(1 + h1 )2 (2 + h2 ) + (2 + h2 )2 6
= −
(2 + h2 )3 (1 + h1 ) 8
!
5h2 + 4h1 + 2h1 h2 + 2h21 + h21 h2 + h22
=
8h1 + 12h2 + 12h1 h2 + 6h22 + 6h22 h1 + h32 + h32 h1
! ! !
4 5 h1 2h1 h2 + 2h21 + h21 h2 + h22
= +
8 12 h2 12h1 h2 + 6h22 + 6h22 h1 + h32 + h32 h1
! !
4 5 h1
= + o (h) .
8 12 h2
!
4 5
Therefore, the matrix of the derivative is .
8 12
!
x3 y + y2
Example 17.3.10 Let f (x, y) = . Find Df (x, y) .
xy2 + 1
You know that if there is a derivative, its standard matrix is of the form
! !
f1x (x, y) f1y (x, y) 3x2 y x3 + 2y
=
f2x (x, y) f2y (x, y) y2 2xy
Does it work? Is
! !
(x + u)3 (y + v) + (y + v)2 x3 y + y2
−
(x + u) (y + v)2 + 1 xy2 + 1
17.4. EXERCISES 305
! ! !
3x2 y x3 + 2y u u
− =o ?
y2 2xy v v
Doing the computations, it follows the left side of the equal sign is of the form
!
3x2 uv + 3xu2 y + 3xu2 v + u3 y + u3 v + v2
xv2 + 2uyv + uv2
!
u
This is o because it involves terms like uv, u2 v, etc. Each term being of degree 2 or
v
more.
17.4 Exercises
1. Use the definition of the derivative to find the 1 × 1 matrix which is the derivative of
the following functions.
(a) f (t) = t 2 + t.
(b) f (t) = t 3 .
(c) f (t) = t sin (t).
(d) f (t) = ln t 2 + 1 .
2. Show that if f is a real valued function defined on (a, b) and it achieves a local
maximum at x ∈ (a, b), then D f (x) = 0.
3. Use the above definition of the derivative to prove the product rule for functions of 1
variable.
4. Let f (x, y) = x sin (y). Compute the derivative directly from the definition.
5. Let f (x, y) = x2 sin (y). Compute the derivative directly from the definition.
!
x2 + y
6. Let f (x, y) = . Compute the derivative directly from the definition.
y2
!
x2 y
7. Let f (x, y) = . Compute the derivative directly from the definition.
x + y2
8. Let f (x, y) = xα yβ . Show D f (x, y) = αxα−1 yβ xα β yβ −1 .
!
x2 sin (y)
9. Let f (x, y) = . Find Df (x, y).
x2 + y
√ √
10. Let f (x, y) = x 3 y. Find the approximate change in f when (x, y) goes from (4, 8)
to (4.01, 7.99).
306 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
17.5 C1 Functions
Most of the time, there is an easier way to conclude that a derivative exists and to find it. It
involves the notion of a C1 function.
Definition 17.5.1 When f : U → R p for U an open subset of Rn and the vector valued
functions ∂∂ xfi are all continuous, (equivalently each ∂∂ xfij is continuous), the function is said
to be C1 (U). If all the partial derivatives up to order k exist and are continuous, then the
function is said to be Ck .
It turns out that for a C1 function, all you have to do is write the matrix described in
Theorem 17.3.3 and this will be the derivative. There is no question of existence for the
derivative for such functions. This is the importance of the next theorem.
Theorem 17.5.2 Suppose f : U → R p where U is an open set in Rn . Suppose also that all
partial derivatives of f exist on U and are continuous. Then f is differentiable at every
point of U.
Proof: If you fix all the variables but one, you can apply the fundamental theorem of
calculus as follows.
Z 1
∂f
f (x+vk ek ) − f (x) = (x + tvk ek ) vk dt. (17.7)
0 ∂ xk
! !
n Z 1 n
∂f ∂f
= ∑ x+ ∑ vk ek + tvi ei vi − (x) vi dt
i=1 0 ∂ xi k=i+1 ∂ xi
n Z 1 n
∂f ∂f
+∑ (x) vi dt = ∑ (x) vi
i=1 0 ∂ xi i=1 ∂ xi
! !
n Z 1 n
∂f ∂f
+∑ x+ ∑ vk ek + tvi ei − (x) vi dt
i=1 0 ∂ xi k=i+1 ∂ xi
n
∂f
= ∑ ∂ xi (x) vi + o (v)
i=1
Thus, dividing by |v| and taking a limit as |v| → 0, this converges to 0 due to continuity
of the partial derivatives of f . The messy term is thus a finite sum of o (v) terms and is
therefore o (v). ■
Here is an example to illustrate.
308 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
!
x2 y + y2
Example 17.5.3 Let f (x, y) = . Find Df (x, y).
y3 x
From Theorem 17.5.2 this function is differentiable because all possible partial deriva-
tives are continuous. Thus
!
2xy x2 + 2y
Df (x, y) = .
y3 3y2 x
In particular, !
4 5
Df (1, 2) = .
8 12
Here is another example.
x12 x2 + x22
Example 17.5.4 Let f (x1 , x2 , x3 ) = x2 x1 + x3 . Find Df (x1 , x2 , x3 ).
sin (x1 x2 x3 )
All possible partial derivatives are continuous, so the function is differentiable. The
matrix for this derivative is therefore the following 3 × 3 matrix
2x1 x2 x12 + 2x2 0
x2 x1 1
x2 x3 cos (x1 x2 x3 ) x1 x3 cos (x1 x2 x3 ) x1 x2 cos (x1 x2 x3 )
D f (1, 2, 3) = (1, 2, 6) .
f (x, y, z) ≈ f (1, 2, 3) + 1 (x − 1) + 2 (y − 2) + 6 (z − 3)
= 11 + 1 (x − 1) + 2 (y − 2) + 6 (z − 3) = −12 + x + 2y + 6z
and so, for y close enough to x, there exists a constant C such that
|f (y) − f (x)| ≤ C |y − x|
derivative
Partial derivatives Continuous
xy C1 |x| + |y|
x2 +y2
You might ask whether there are examples of functions which are differentiable but
not C1 . Of course there are. In fact, Example 17.3.8 is just such an example as explained
earlier. Then you should verify that f ′ (x) exists for all x ∈ R but f ′ fails to be continuous
at x = 0. Thus the function is differentiable at every point of R but fails to be C1 because
the derivative is not continuous at 0.
Example 17.5.7 Find an example of a function which is not differentiable at (0, 0) even
though both partial derivatives exist at this point and the function is continuous at this
point.
f (x, 0) − f (0, 0) 0 − 0
= =0
x x
and so fx (0, 0) = 0. Similarly,
f (0, y) − f (0, 0) 0 − 0
= =0
y y
310 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
and so fy (0, 0) = 0. Thus the partial derivatives exist. However, the function is not differ-
entiable at (0, 0) because
1
x sin xy
lim
(x,y)→(0,0) |(x, y)|
does not even exist, much less equals 0. To see this, let x = y and let x → 0.
Here I and J are open intervals and it is assumed that g (I) ⊆ J. The chain rule says that if
f ′ (g (x)) exists and g′ (x) exists for x ∈ I, then the composition, f ◦ g also has a derivative
at x and
( f ◦ g)′ (x) = f ′ (g (x)) g′ (x) .
Recall that f ◦ g is the name of the function defined by f ◦ g (x) ≡ f (g (x)). In the notation
of this chapter, the chain rule is written as
The chain rule says that if the linear transformations (matrices) on the left in (17.8) both
exist then the same formula holds in this more general case. Thus
Note this all makes sense because Df (g (x)) is a q × p matrix and Dg (x) is a p × n matrix.
Remember it is all right to do (q × p) (p × n). The middle numbers match. More precisely,
Theorem 17.6.1 (Chain rule) Let U be an open set in Rn , let V be an open set in R p , let
g : U → R p be such that g (U) ⊆ V , and let f : V → Rq . Suppose Dg (x) exists for some
x ∈ U and that Df (g (x)) exists. Then D (f ◦ g) (x) exists and furthermore,
In particular,
p
∂ (f ◦ g) (x) ∂ f (g (x)) ∂ gi (x)
=∑ . (17.10)
∂xj i=1 ∂ yi ∂xj
17.6. THE CHAIN RULE 311
There is an easy way to remember this in terms of the repeated index summation con-
vention presented earlier. Let y = g (x) and z = f (y). Then the above says
∂ z ∂ yi ∂z
= . (17.11)
∂ yi ∂ xk ∂ xk
Remember there is a sum on the repeated index. In particular, for each index r,
∂ zr ∂ yi ∂ zr
= .
∂ yi ∂ xk ∂ xk
The proof of this major theorem will be given later. It will include the chain rule for
functions of one variable as a special case. First here are some examples.
Example 17.6.2 Let f (u, v) = sin (uv) and let u (x, y,t) = t sin x + cos y and v (x, y,t, s) =
s tan x + y2 + ts. Letting z = f (u, v) where u, v are as just described, find ∂∂tz and ∂∂ xz .
∂z ∂z ∂u
From (17.11), ∂t = ∂ u ∂t + ∂∂ vz ∂∂tv = v cos (uv) sin (x) + us cos (uv) . Here y1 = u, y2 =
v,t = xk . Also,
∂z ∂z ∂u ∂z ∂v
= + = v cos (uv)t cos (x) + us sec2 (x) cos (uv) .
∂x ∂u ∂x ∂v ∂x
Clearly you can continue in this way, taking partial derivatives with respect to any of the
other variables.
Example 17.6.3 Let w = f (u1 , u2 ) = u2 sin (u1 ) and u1 = x2 y + z, u2 = sin (xy). Find
∂w ∂w ∂w
∂ x , ∂ y , and ∂ z .
The derivative of f is of the form (wx , wy , wz ) and so it suffices to find the derivative of
f using the chain rule. You need to find D f (u1 , u2 ) Dg (x, y, z) where
!
x2 y + z
g (x, y) = .
sin (xy)
Then !
2xy x2 1
Dg (x, y, z) = .
y cos (xy) x cos (xy) 0
Also D f (u1 , u2 ) = (u2 cos (u1 ) , sin (u1 )). Therefore, the derivative is
D f (u1 , u2 ) Dg (x, y, z)
!
2xy x2 1
= (u2 cos (u1 ) , sin (u1 ))
y cos (xy) x cos (xy) 0
Thus
∂w
= 2u2 (cos u1 ) xy + (sin u1 ) y cos xy
∂x
= 2 (sin (xy)) cos x2 y + z xy
Similarly, you can find the other partial derivatives of w in terms of substituting in for u1
and u2 in the above. Note
∂w ∂ w ∂ u1 ∂ w ∂ u2
= + .
∂x ∂ u1 ∂ x ∂ u2 ∂ x
In fact, in general if you have w = f (u1 , u2 ) and
!
u1 (x, y, z)
g (x, y, z) =
u2 (x, y, z)
u3 z2 + x
∂w ∂w
Find ∂x and ∂z .
wu1 u1x + wu2 u2x + wu3 u3x , wu1 u1y + wu2 u2y + wu3 u3y ,
wu1 u1z + wu2 u2z + wu3 u3z
Therefore,
and
wz = 2u1 (2y) + 1 (0) + 1 (2z) = 4 (x + 2yz) y + 2z = 4yx + 8y2 z + 2z.
Of course to find all the partial derivatives at once, you just use the chain rule. Thus you
would get
wx wy wz
1 2z 2y
= 2u1 1 1 2x 1 0
1 0 2z
= 2u1 + 2x + 1 4u1 z + 1 4u1 y + 2z
= 4x + 4yz + 1 4zx + 8yz2 + 1 4yx + 8y2 z + 2z
!
u21 + u2
Example 17.6.5 Let f (u1 , u2 ) = and
sin (u2 ) + u1
! !
u1 (x1 , x2 , x3 ) x1 x2 + x3
g (x1 , x2 , x3 ) = = .
u2 (x1 , x2 , x3 ) x22 + x1
Find D (f ◦ g) (x1 , x2 , x3 ).
To do this,
!
2u1 1
Df (u1 , u2 ) = ,
1 cos u2
!
x2 x1 1
Dg (x1 , x2 , x3 ) = .
1 2x2 0
Then !
2 (x1 x2 + x3 ) 1
Df (g (x1 , x2 , x3 )) =
cos x22 + x1
1
and so by the chain rule,
D (f ◦ g) (x1 , x2 , x3 )
Df (g (x)) Dg (x)
z }| !{z }| !{
2 (x1 x2 + x3 ) 1 x2 x1 1
=
cos x22 + x1
1 1 2x2 0
!
(2x1 x2 + 2x3 ) x2 + 1 (2x1 x2 + 2x3 ) x1 + 2x2 2x1 x2 + 2x3
=
x2 + cos x22 + x1 x1 + 2x2 cos x22 + x1
1
314 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
Therefore, in particular,
∂ f1 ◦ g
(x1 , x2 , x3 ) = (2x1 x2 + 2x3 ) x2 + 1,
∂ x1
∂ f2 ◦ g ∂ f2 ◦ g
(x1 , x2 , x3 ) = x1 + 2x2 cos x22 + x1 .
(x1 , x2 , x3 ) = 1,
∂ x3 ∂ x2
etc. ! !
z1 u21 + u2
In different notation, let = f (u1 , u2 ) = . Then
z2 sin (u2 ) + u1
∂ z1 ∂ z1 ∂ u1 ∂ z1 ∂ u2
= +
∂ x1 ∂ u1 ∂ x1 ∂ u2 ∂ x1
= 2u1 x2 + 1 = 2 (x1 x2 + x3 ) x2 + 1.
ln 1 + u23
z3
and let
u1 x1 + x22 + sin (x3 ) + cos (x4 )
g (x1 , x2 , x3 , x4 ) = u2 = x42 − x1 .
u3 2
x3 + x4
Find (f ◦ g)′ (x).
2u1 u3 u2
3u22
Df (u) = 2u 0
1
2u3
0 0
(1+u23 )
Similarly,
1 2x2 cos (x3 ) − sin (x4 )
Dg (x) = −1 0 0 2x4 .
0 0 2x3 1
Then by the chain rule, D (f ◦ g) (x) = Df (u) Dg (x) where u = g (x) as described above.
Thus D (f ◦ g) (x) =
2u1 u3 u2 1 2x2 cos (x3 ) − sin (x4 )
2u1 3u22
0 −1 0 0 2x4
2u3
0 0 0 0 2x 1
(1+u2 ) 3
3
2u1 − u3 4u1 x2 2u1 cos x3 + 2u2 x3 −2u1 sin x4 + 2u3 x4 + u2
2u − 3u2 4u1 x2 2u1 cos x3 −2u1 sin x4 + 6u22 x4
= (17.12)
1 2
u3 u3
0 0 4 1+u 2 x3 2 1+u2
3 3
17.7. EXERCISES 315
∂ z1
where each ui is given by the above formulas. Thus ∂ x1 equals
∂z ∂z
If you wanted ∂ x2 it would be the second column of the above matrix in (17.12). Thus ∂ x2
equals
∂ z1
∂ x2 4u1 x2 4 x1 + x22 + sin (x3 ) + cos (x4 ) x2
∂ z2
= 4u1 x2 = 4 x1 + x22 + sin (x3 ) + cos (x4 ) x2
∂ x2
∂ z3
∂ x2
0 0
I hope that by now it is clear that all the information you could desire about various partial
derivatives is available and it all reduces to matrix multiplication and the consideration of
entries of the matrix obtained by multiplying the two derivatives.
17.7 Exercises
∂z
1. Let z = f (x1 , · · · , xn ) be as given and let xi = gi (t1 , · · · ,tm ) as given. Find ∂ti which
is indicated.
∂z
(a) z = x13 + x2 , x1 = sin (t1 ) + cos (t2 ) , x2 = t1t22 . Find ∂t1
∂z
(b) z = x1 x22 , x1 = t1t22t3 , x2 = t1t22 . Find ∂t1 .
∂z
(c) z = x1 x22 , x1 = t1t22t3 , x2 = t1t22 . Find ∂t1 .
∂z
(d) z = x1 x22 , x1 = t1t22t3 , x2 = t1t22 . Find ∂t3 .
∂z
(e) z = x12 x22 , x1 = t1t22t3 , x2 = t1t22 . Find ∂t2 .
∂z
(f) z = x12 x2 + x32 , x1 = t1t2 , x2 = t1t2t4 , x3 = sin (t3 ). Find ∂t2 .
∂z
(g) z = x12 x2 + x32 , x1 = t1t2 , x2 = t1t2t4 , x3 = sin (t3 ). Find ∂t3 .
∂z
(h) z = x12 x2 + x32 , x1 = t1t2 , x2 = t1t2t4 , x3 = sin (t3 ). Find ∂t1 .
x1 + x2
y = g (x) ≡ x22 − x1 + x2 .
x22 + x1 + sin x2
∂z
Find D ( f ◦ g) (x). Use to write ∂ xi for i = 1, 2.
316 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
x1 + x4 + x3
3. Let z = f (y) = y21 + cot y2 + sin y3 and y = g (x) ≡ x22 − x1 + x2 . Find
x22 + x1 + sin x4
∂z
D ( f ◦ g) (x). Use to write ∂ xi for i = 1, 2, 3, 4.
x1 + x4 + x3
x22 − x1 + x2
4. Let z = f (y) = y21 + y22 + sin y3 + y4 and y = g (x) ≡
. Find
x22 + x1 + sin x4
x4 + x2
∂z
D ( f ◦ g) (x). Use to write ∂ xi for i = 1, 2, 3, 4.
5. Let !
y21 + sin y2 + tan y3
z = f (y) =
y21 y2 + y3
x1 + x2
∂ zk
and y = g (x) ≡ x22 − x1 + x2 . Find D (f ◦ g) (x). Use to write for
∂ xi
x22 + x1 + sin x2
!
z1x1 z1x2 z1x3
i = 1, 2 and k = 1, 2. Recall this will be of the form .
z2x1 z2x2 z2x3
y21 + sin y2 + tan y3
6. Let z = f (y) = y21 y2 + y3 and
2 3
cos y1 + y2 y3
x1 + x4
y = g (x) ≡ x22 − x1 + x3 .
x32 + x1 + sin x2
∂ zk
Find D (f ◦ g) (x). Use to write ∂ xi for i = 1, 2, 3, 4 and k = 1, 2, 3.
7. Give a version of the chain rule which involves three functions f, g, h.
8. If f : U → V and f −1 : V → U for U,V open sets such that f, f −1 are both differen-
tiable, show that
det Df f −1 (y) det Df −1 (y) = 1
v2 P
+z+ =C
2g γ
17.7. EXERCISES 317
where C is a constant. Here v is the speed, P is the pressure, and z is the height above
some reference point. The constants g and γ are the acceleration of gravity and the weight
density of the fluid. Suppose measurements indicate that dv dz
dt = −3, and dt = 2. Find dt
dP
Proof: Let
|o(g (x+v )−g (x))|
(
|g (x+v )−g (x)| if g (x + v) − g (x) ̸= 0
H (v) ≡
0 if g (x + v) − g (x) = 0
Theorem 17.7.8 (Chain rule) Let U be an open set in Rn , let V be an open set in R p , let
g : U → R p be such that g (U) ⊆ V , and let f : V → Rq . Suppose Dg (x) exists for some
x ∈ U and that Df (g (x)) exists. Then D (f ◦ g) (x) exists and furthermore,
17.8 Exercises
1. Suppose f : U → Rq and let x ∈ U and v be a unit vector. Show that Dv f (x) =
Df (x) v. Recall that
f (x + tv) − f (x)
Dv f (x) ≡ lim .
t→0 t
(
xy sin 1x if x ̸= 0
2. Let f (x, y) = . Find where f is differentiable and compute the
0 if x = 0
derivative at all these points.
3. Let (
x if |y| > |x|
f (x, y) = .
−x if |y| ≤ |x|
Show that f is continuous at (0, 0) and that the partial derivatives exist at (0, 0) but
the function is not differentiable at (0, 0).
4. Let !
x2 sin y + z3
f (x, y, z) = .
sin (x + y) + z3 cos x
Find Df (1, 2, 3).
5. Let !
x tan y + z3
f (x, y, z) = .
cos (x + y) + z3 cos x
Find Df (x, y, z).
17.8. EXERCISES 321
6. Let
x sin y + z3
f (x, y, z) = sin (x + y) + z3 cos x .
x 5 + y2
Find Df (x, y, z).
7. Let 2 4 2
(x −y ) if (x, y) ̸= (0, 0)
2
f (x, y) = (x2 +y4 ) .
1 if (x, y) = (0, 0)
Show that all directional derivatives of f exist at (0, 0), and are all equal to zero but
the function is not even continuous at (0, 0). Therefore, it is not differentiable. Why?
8. In the example of Problem 7 show that the partial derivatives exist but are not con-
tinuous.
2 y 2 2
x z
9. A certain building is shaped like the top half of the ellipsoid, 900 + 900 + 400 =1
determined by letting z ≥ 0. Here dimensions are measured in feet. The building
needs to be painted. The paint, when applied is about .005 feet thick. About how
many cubic feet of paint will be needed. Hint: This is going to replace the numbers,
900 and 400 with slightly larger numbers when the ellipsoid is fattened slightly by
the paint. The volume of the top half of the ellipsoid, x2 /a2 +y2 /b2 +z2 /c2 ≤ 1, z ≥ 0
is (2/3) πabc.
10. Suppose r 1 (t) = (cost, sint,t) , r 2 (t) = (t, 2t, 1), and r 3 (t) = (1,t, 1). Find the rate
of change with respect to t of the volume of the parallelepiped determined by these
three vectors when t = 1.
11. A trash compactor is compacting a rectangular block of trash. The width is changing
at the rate of −1 inches per second, the length is changing at the rate of −2 inches
per second and the height is changing at the rate of −3 inches per second. How fast
is the volume changing when the length is 20, the height is 10, and the width is 10?
12. A trash compactor is compacting a rectangular block of trash. The width is changing
at the rate of −2 inches per second, the length is changing at the rate of −1 inches
per second and the height is changing at the rate of −4 inches per second. How fast
is the surface area changing when the length is 20, the height is 10, and the width is
10?
13. The ideal gas law is PV = kT where k is a constant which depends on the number of
moles and on the gas being considered. If V is changing at the rate of 2 cubic cm.
per second and T is changing at the rate of 3 degrees Kelvin per second, how fast is
the pressure changing when T = 300 and V equals 400 cubic cm.?
14. Let S denote a level surface of the form f (x1 , x2 , x3 ) = C. Show that any smooth
curve in the level surface is perpendicular to the gradient.
15. Suppose f is a C1 function which maps U, an open subset of Rn one to one and onto
V , an open set in Rm such that the inverse map, f −1 is also C1 . What must be true of
m and n? Why? Hint: Consider Example 17.7.6 on Page 318. Also you can use the
fact that if A is an m × n matrix which maps Rn onto Rm , then m ≤ n.
322 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
Now we can prove the formula for the directional derivative in terms of the gradient.
Proof:
!
n
f (x+tv) − f (x) 1 ∂ f (x)
= f (x) + ∑ tvi + o (tv) − f (x)
t t j=1 ∂ xi
!
n n
1 ∂ f (x) ∂ f (x) o (tv)
= ∑ tvi + o (tv) = ∑ vi +
t j=1 ∂ xi j=1 ∂ xi t
as claimed. ■
Note this vector which is given is already a unit vector. Therefore, from the above, it is
only necessary to find ∇ f (1, 0, 1) and take the dot product.
4√
1 1 1
(2, 1, 1) · √ , √ , √ = 3.
3 3 3 3
Because of (17.17) it is easy to find the largest possible directional derivative and the
smallest possible directional derivative. That which follows is a more algebraic treatment
of an earlier result with the trigonometry removed.
and
min {Dv f (x) : |v| = 1} = − |∇ f (x)| . (17.19)
Furthermore, the maximum in (17.18) occurs when v = ∇ f (x) / |∇ f (x)| and the minimum
in (17.19) occurs when v = −∇ f (x) / |∇ f (x)|.
direction which involves the maximum rate of decrease in temperature. This expectation
will be realized by taking J = −K∇u where K is a positive scalar function which can
depend on a variety of things. The above relation between the heat flux and ∇u is usually
called the Fourier heat conduction law and the constant K is known as the coefficient of
thermal conductivity. It is a material property, different for iron than for aluminum. In
most applications, K is considered to be a constant but this is wrong. Experiments show
that this scalar should depend on temperature. Nevertheless, things get very difficult if this
dependence is allowed. The constant can depend on position in the material or even on
time.
An identical relationship is usually postulated for the flow of a diffusing species. In this
problem, something like a pollutant diffuses. It may be an insecticide in ground water for
example. Like heat, it tries to move from areas of high concentration toward areas of low
concentration. In this case J = −K∇c where c is the concentration of the diffusing species.
When applied to diffusion, this relationship is known as Fick’s law. Mathematically, it is
indistinguishable from the problem of heat flow.
Note the importance of the gradient in formulating these models.
∇ f (x0 , y0 , z0 )
x′1 (t0 )
x′2 (s0 )
In this picture, the surface is a piece of a level surface of a function of three variables
f (x, y, z). Thus the surface is defined by f (x, y, z) = c or more completely as
{(x, y, z) : f (x, y, z) = c}
For example, if f (x, y, z) = x2 + y2 + z2 , this would be a piece of a sphere. There are two
smooth curves in this picture which lie in the surface having parameterizations, x1 (t) =
(x1 (t) , y1 (t) , z1 (t)) and x2 (s) = (x2 (s) , y2 (s) , z2 (s)) which intersect at the point (x0 , y0 , z0 )
on this surface.1 This intersection occurs when t = t0 and s = s0 . Since the points x1 (t) for
t in an interval lie in the level surface, it follows
for all t in some interval. Therefore, taking the derivative of both sides and using the chain
rule on the left,
∂f
(x1 (t) , y1 (t) , z1 (t)) x1′ (t) +
∂x
∂f ∂f
(x1 (t) , y1 (t) , z1 (t)) y′1 (t) + (x1 (t) , y1 (t) , z1 (t)) z′1 (t) = 0.
∂y ∂z
In terms of the gradient, this merely states
∇ f (x1 (t) , y1 (t) , z1 (t)) · x′1 (t) = 0.
Similarly,
∇ f (x2 (s) , y2 (s) , z2 (s)) · x′2 (s) = 0.
Letting s = s0 and t = t0 , it follows
∇ f (x0 , y0 , z0 ) · x′1 (t0 ) = 0, ∇ f (x0 , y0 , z0 ) · x′2 (s0 ) = 0.
It follows ∇ f (x0 , y0 , z0 ) is perpendicular to both the direction vectors of the two indicated
curves shown. Surely if things are as they should be, these two direction vectors would
determine a plane which deserves to be called the tangent plane to the level surface of f
at the point (x0 , y0 , z0 ) and that ∇ f (x0 , y0 , z0 ) is perpendicular to this tangent plane at the
point (x0 , y0 , z0 ).
Example 17.10.1 Find the equation of the tangent plane to the level surface
f (x, y, z) = 6
of the function f (x, y, z) = x2 + 2y2 + 3z2 at the point (1, 1, 1).
First note that (1, 1, 1) is a point on this level surface. To find the desired plane it
suffices to find the normal vector to the proposed plane. But ∇ f (x, y, z) = (2x, 4y, 6z) and so
∇ f (1, 1, 1) = (2, 4, 6). Therefore, from this problem, the equation of the plane is (2, 4, 6) ·
(x − 1, y − 1, z − 1) = 0 or in other words, 2x − 12 + 4y + 6z = 0.
√
3, 1, 4 is on both the surfaces, z = x2 + y2 and z = 8 −
Example 17.10.2 The point
x2 + y2 . Find the cosine of the angle between the two tangent planes at this point.
Recall this is the same as the angle between two normal vectors. Of course there is
some ambiguity here because if n is a normal vector, then so is −n and replacing n with
−n in the formula for the cosine of the angle will change the sign. We agree √to look for
the acute angle and its cosine rather than the obtuse angle. The normals are 2 3, 2, −1
√
and 2 3, 2, 1 . Therefore, the cosine of the angle desired is
√ 2
2 3 + 4 − 1 15
= .
17 17
√
Example 17.10.3 The point 1, 3, 4 is on the surface z = x2 + y2 . Find the line perpen-
dicular to the surface at this point.
All that is needed is the direction vector of this line. The surface is the level surface
x2 + y2 − z = 0. The normal to this surface is given by the gradient at this point. Thus the
desired line is √ √
1, 3, 4 + t 2, 2 3, −1 .
326 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
17.11 Exercises
1. Find the gradient of f =
(a) x2 y + z3 at (1, 1, 2)
(b) z sin x2 y + 2x+y at (1, 1, 0)
(a) x2 y + z3 at (1, 1, 1)
(b) z sin x2 y + 2x+y at (1, 1, 0)
(c) xy + z2 + 1 at (1, 2, 3)
(d) sin (xy) + z at (0, 1, 1)
(e) xy + z at (1, 1, 1).
(f) sin (sin (x + y)) + z at the point (1, 0, 1).
3. Find the directional derivatives of the given function at the indicated point in the
indicated direction.
(b) x(x+y) + sin (zx) at (1, 0, 0) in the direction of (2, −1, 0).
(c) zsin(x) + y at (0, 1, 1) in the direction of (1, 1, 3).
4. Find the tangent plane to the indicated level surface at the indicated point.
(a) x2 y + z3 = 2 at (1, 1, 1)
(b) z sin x2 y + 2x+y = 2 sin 1 + 4 at (1, 1, 2)
7. For v a unit vector, recall that Dv f (x) = ∇ f (x) · v. It was shown above that the
largest directional derivative is in the direction of the gradient and the smallest in the
direction of −∇ f . Establish the same result using the geometric description of the
dot product, the one which says the dot product is the product of the lengths of the
vectors times the cosine of the included angle.
√
8. The point 1, 1, 2 is on the level surface x2 + y2 + z2 = 4 and the level surface
y2 + 2z2 = 5. Find an equation for the line tangent to the curve of intersection of
these two surfaces at this point.
9. ∗ In a slightly more general setting, suppose f1 (x, y, z) = 0 and f2 (x, y, z) = 0 are two
level surfaces which intersect in a curve which has parametrization, (x (t) , y (t) , z (t)).
Find a system of differential equations for (x(t), y(t), z(t)) where as t varies, the point
determined by (x(t), y(t), z(t)) moves over the curve.
328 CHAPTER 17. THE DERIVATIVE OF A FUNCTION OF MANY VARIABLES
Chapter 18
Optimization
PROCEDURE 18.1.2 To find candidates for local extrema which are interior
points of D ( f ) where f is a differentiable function, you simply identify those points where
∇ f equals the zero vector.
To locate candidates for local extrema, for the function f , take ∇ f and find where this
vector equals 0.
Let v be any vector in Rn and suppose x is a local maximum (minimum) for f . Then
consider the real valued function of one variable, h (t) ≡ f (x + tv) for small |t|. Since
f has a local maximum (minimum), it follows that h is a differentiable function of the
single variable t for small t which has a local maximum (minimum) when t = 0. Therefore,
h′ (0) = 0.
0 = h′ (0) = D f (x) v
329
330 CHAPTER 18. OPTIMIZATION
Definition 18.1.4 A singular point for f is a point x where ∇ f (x) = 0. This is also called
a critical point. By analogy with the one variable case, a point where the gradient does not
exist will also be called a critical point.
Example 18.1.5 Find the critical points for the function f (x, y) ≡ xy − x − y for x, y > 0.
Note that here D ( f ) is an open set and so every point is an interior point. Where is the
gradient equal to zero? fx = y − 1 = 0, fy = x − 1 = 0, and so there is exactly one critical
point (1, 1).
Example 18.1.6 Find the volume of the smallest tetrahedron made up of the coordinate
planes in the first octant and a plane which is tangent to the sphere x2 + y2 + z2 = 4.
q
The normal to the sphere at a point (x0 , y0 , z0 ) is x0 , y0 , 4 − x02 − y20 and so the
equation of the tangent plane at this point is
q q
x0 (x − x0 ) + y0 (y − y0 ) + 4 − x02 − y20 z − 4 − x02 − y20 = 0
4 4 4
When x = y = 0, z = q . When z = 0 = y, x = x0 , and when z = x = 0, y = y0 .
(4−x02 −y20 )
Therefore, the function to minimize is
1 64
f (x, y) = p
6 xy (4 − x2 − y2 )
This is because in beginning calculus it was shown that the volume of a pyramid is 1/3 the
area of the base times the height. Therefore, you simply need to find the gradient of this
and set it equal to zero. Thus upon taking the partial derivatives, you need to have
−4 + 2x2 + y2
p = 0,
x2 y (−4 + x2 + y2 ) (4 − x2 − y2 )
and
−4 + x2 + 2y2
p = 0.
xy2 (−4 + x2 + y2 ) (4 − x2 − y2 )
Therefore, x2 + 2y2 = 4 and 2x2 + y2 = 4. Thus x = y and so x = y = √2 . It follows from
3
the equation for z that z = √2 also. How do you know this is not the largest tetrahedron?
3
Example 18.1.7 An open box is to contain 32 cubic feet. Find the dimensions which will
result in the least surface area.
Let the height of the box be z and the length and width be x and y respectively. Then
xyz = 32 and so z = 32/xy. The total area is xy + 2xz + 2yz and so in terms of the two
variables x and y, the area is A = xy + 64 64
y + x . To find best dimensions you note these must
result in a local minimum.
yx2 − 64 xy2 − 64
Ax = = 0, Ay = .
x2 y2
18.2. EXERCISES 331
Therefore, yx2 − 64 = 0 and xy2 − 64 = 0 so xy2 = yx2 . For sure the answer excludes the
case where any of the variables equals zero. Therefore, x = y and so x = 4 = y. Then z = 2
from the requirement that xyz = 32. How do you know this gives the least surface area?
Why is this not the largest surface area?
18.2 Exercises
1. Find the points where possible local minima or local maxima occur in the following
functions.
(a) x2 − 2x + 5 + y2 − 4y
(b) −xy + y2 − y + x
(c) 3x2 − 4xy + 2y2 − 2y + 2x
(d) cos (x) + sin (2y)
(e) x4 − 4x3 y + 6x2 y2 − 4xy3 + y4 + x2 − 2x
(f) y2 x2 − 2xy2 + y2
2. Find the volume of the largest box which can be inscribed in a sphere of radius a.
3. Find in terms of a, b, c the volume of the largest box which can be inscribed in the
2 2 2
ellipsoid ax2 + by2 + cz2 = 1.
4. Find three numbers which add to 36 whose product is as large as possible.
5. Find three numbers x, y, z such that x2 +y2 +z2 = 1 and x+y+z is as large as possible.
6. Find three numbers x, y, z such that x2 + y2 + z2 = 4 and xyz is as large as possible.
7. A feeding trough in the form of a trapezoid with equal base angles is made from a
long rectangular piece of metal of width 24 inches by bending up equal strips along
both sides. Find the base angles and the width of these strips which will maximize
the volume of the feeding trough.
8. An open box (no top) is to contain 40 cubic feet. The material for the bottom costs
twice as much as the material for the sides. Find the dimensions of the box which is
cheapest.
9. The function f (x, y) = 2x2 + y2 is defined on the disk x2 + y2 ≤ 1. Find its maximum
value.
10. Find the point on the surface z = x2 + y + 1 which is closest to (0, 0, 0).
11. Let L1 = (t, 2t, 3 − t) and L2 = (2s, s + 2, 4 − s) be two lines. Find a pair of points,
one on the first line and the other on the second such that these two points are closer
together than any other pair of points on the two lines.
332 CHAPTER 18. OPTIMIZATION
12. ∗ Let
2
−1 if y= x , x ̸= 0
2
f (x, y) = y − x2 if y ̸= x2
0 if (x, y) = (0, 0)
Show that ∇ f (0, 0) = 0. Now show that if (a, b) is any nonzero unit vector, the
function t → f (ta,tb) has a local minimum of 0 when t = 0. Thus in every direction,
this function has a local minimum at (0, 0) but the function f does not have a local
minimum at (0, 0).
The following theorem says that if all the eigenvalues of the Hessian matrix at a critical
point are positive, then the critical point is a local minimum. If all the eigenvalues of the
Hessian matrix at a critical point are negative, then the critical point is a local maximum.
Finally, if some of the eigenvalues of the Hessian matrix at the critical point are positive and
some are negative then the critical point is a saddle point. The following picture illustrates
the situation.
Theorem 18.3.2 Let f : U → R for U an open set in Rn and let f be a C2 function and
suppose that at some x ∈ U, ∇ f (x) = 0. Also let µ and λ be respectively, the largest
and smallest eigenvalues of the matrix H (x). If λ > 0 then f has a local minimum at x.
If µ < 0 then f has a local maximum at x. If either λ or µ equals zero, the test fails. If
λ < 0 and µ > 0 there exists a direction in which when f is evaluated on the line through
the critical point having this direction, the resulting function of one variable has a local
minimum and there exists a direction in which when f is evaluated on the line through
the critical point having this direction, the resulting function of one variable has a local
maximum. This last case is called a saddle point.
Here is an example.
Example 18.3.3 Let f (x, y) = 10xy + y2 . Find the critical points and determine whether
they are local minima, local maxima or saddle points.
18.3. THE SECOND DERIVATIVE TEST 333
First ∇ 10xy + y2 = (10y, 10x + 2y) and so there is one critical point at the point (0, 0).
and the eigenvalues are of different signs. Therefore, the critical point (0, 0) is a saddle
point. Here is a graph drawn by Matlab.
Example 18.3.4 Let f (x, y) = 2x4 − 4x3 + 14x2 + 12yx2 − 12yx − 12x + 2y2 + 4y + 2. Find
the critical points and determine whether they are local minima, local maxima, or saddle
points.
and the thing to determine is the sign of its eigenvalues evaluated at the
! critical points.
16 0
First consider the point 21 , − 14 . The Hessian matrix is
and its eigenvalues
0 4
are 16, 4 showing that this is a local minimum. !
4 −12
Next consider (0, −1) at this point the Hessian matrix is and the
−12 4
eigenvalues are 16, −8. Therefore, this point is a saddle point. To determine this, find the
eigenvalues.
! !!
1 0 4 −12
det λ − = λ 2 − 8λ − 128 = (λ + 8) (λ − 16)
0 1 −12 4
Or course sometimes the second derivative test is inadequate to determine what is going
on. This should be no surprise since this was the case even for a function of one variable.
For a function of two variables, a nice example is the Monkey saddle.
Example 18.3.5 Suppose f (x, y) = 6xy2 − 2x3 − 3y4 . Show that (0, 0) is a critical point
for which the second derivative test gives no information.
Before doing anything it might be interesting to look at the graph of this function of
two variables plotted using a computer algebra system.
This picture should indicate why this is called a monkey saddle. It is because the
monkey can sit in the saddle and have a place for his tail. Now to see (0, 0) is a critical point,
note that fx (0, 0) = fy (0, 0) = 0 because fx (x, y) = 6y2 − 6x2 , fy (x, y) = 12xy − 12y3 and
so (0, 0) is a critical point. So are (1, 1) and (1, −1). Now fxx (0, 0) = 0 and so are fxy (0, 0)
and fyy (0, 0). Therefore, the Hessian matrix is the zero matrix and clearly has only the zero
eigenvalue. Therefore, the second derivative test is totally useless at this point.
However, suppose you took x = t and y = t and evaluated this function on this line. This
reduces to h (t) = f (t,t) = 4t 3 − 3t 4 ), which is strictly increasing near t = 0. This shows
the critical point (0, 0) of f is neither a local max. nor a local min. Next let x = 0 and y = t.
Then p (t) ≡ f (0,t) = −3t 4 . Therefore, along the line, (0,t), f has a local maximum at
(0, 0).
Example 18.3.6 Find the critical points of the following function of three variables and
classify them as local minimums, local maximums or saddle points.
5 7 4 5 4 1
f (x, y, z) = x2 + 4x + 16 − xy − 4y − xz + 12z + y2 − zy + z2
6 3 3 6 3 3
First you need to locate the critical points. This involves taking the gradient.
5 2 7 4 5 2 4 1 2
∇ x + 4x + 16 − xy − 4y − xz + 12z + y − zy + z
6 3 3 6 3 3
5 7 4 7 5 4 4 4 2
= x + 4 − y − z, − x − 4 + y − z, − x + 12 − y + z
3 3 3 3 3 3 3 3 3
18.4. EXERCISES 335
Next you need to set the gradient equal to zero and solve the equations. This yields y =
5, x = 3, z = −2. Now to use the second derivative test, you assemble the Hessian matrix
which is
5
3 − 73 − 43
7 5
−3 − 43 .
3
− 43 − 43 2
3
Note that in this simple example, the Hessian matrix is constant and so all that is left
is to consider the eigenvalues. Writing the characteristic equation and solving yields the
eigenvalues are 2, −2, 4. Thus the given point is a saddle point.
18.4 Exercises
1. Use the second derivative test on the critical points (1, 1), and (1, −1) for Example
18.3.5. The function is 6xy2 − 2x3 − 3x4 .
2. If H = H T and Hx = λ x while Hx = µx for λ ̸= µ, show that x · y = 0.
3. Show the points 21 , − 21
4 , (0, −4) , and (1, −4) are critical points of the following
function of two variables and classify them as local minima, local maxima or saddle
points.
f (x, y) = −x4 + 2x3 + 39x2 + 10yx2 − 10yx − 40x − y2 − 8y − 16.
4. Show the points 12 , − 12
53
, (0, −4) , and (1, −4) are critical points of the following
function of two variables and classify them according to whether they are local min-
ima, local maxima or saddle points.
f (x, y) = −3x4 + 6x3 + 37x2 + 10yx2 − 10yx − 40x − 3y2 − 24y − 48.
5. Show the points 21 , 20
37
, (0, 2) , and (1, 2) are critical points of the following function
of two variables and classify them according to whether they are local minima, local
maxima or saddle points.
f (x, y) = 5x4 − 10x3 + 17x2 − 6yx2 + 6yx − 12x + 5y2 − 20y + 20.
6. Show the points 21 , − 17
8 , (0, −2) , and (1, −2) are critical points of the following
function of two variables and classify them according to whether they are local min-
ima, local maxima or saddle points.
f (x, y) = 4x4 − 8x3 − 4yx2 + 4yx + 8x − 4x2 + 4y2 + 16y + 16.
7. Find the critical points of the following function of three variables and classify them
according to whether they are local minima, local maxima or saddle points.
f (x, y, z) = 31 x2 + 32 4 16 58 4 46 1 2 4 5 2
3 x + 3 − 3 yx − 3 y − 3 zx − 3 z + 3 y − 3 zy − 3 z .
8. Find the critical points of the following function of three variables and classify them
according to whether they are local minima, local maxima or saddle points.
f (x, y, z) = − 35 x2 + 23 x − 23 + 83 yx + 23 y + 14 28 5 2 14 8 2
3 zx − 3 z − 3 y + 3 zy − 3 z .
9. Find the critical points of the following function of three variables and classify them
according to whether they are local minima, local maxima or saddle points.
f (x, y, z) = − 11 2 40 56 8 10 4 22 11 2 4 5 2
3 x + 3 x − 3 + 3 yx + 3 y − 3 zx + 3 z − 3 y − 3 zy − 3 z .
336 CHAPTER 18. OPTIMIZATION
10. Find the critical points of the following function of three variables and classify them
according to whether they are local minima, local maxima or saddle points.
f (x, y, z) = − 32 x2 + 28 37 14 10 4 26 2 2 4 7 2
3 x + 3 + 3 yx + 3 y − 3 zx − 3 z − 3 y − 3 zy + 3 z .
11. ∗ Show that if f has a critical point and some eigenvalue of the Hessian matrix is
positive, then there exists a direction in which when f is evaluated on the line through
the critical point having this direction, the resulting function of one variable has a
local minimum. State and prove a similar result in the case where some eigenvalue
of the Hessian matrix is negative.
12. Suppose µ = 0 but there are negative eigenvalues of the Hessian at a critical point.
Show by giving examples that the second derivative tests fails.
13. Show that the points 12 , − 92 , (0, −5), and (1, −5) are critical points of the following
function of two variables and classify them as local minima, local maxima or saddle
points.
f (x, y) = 2x4 − 4x3 + 42x2 + 8yx2 − 8yx − 40x + 2y2 + 20y + 50.
17. Find the critical points of the following function of three variables and classify them
as local minima, local maxima or saddle points.
f (x, y, z) = − 73 x2 − 146 83 16 4 14 94 7 2 14 8 2
3 x + 3 + 3 yx + 3 y − 3 zx + 3 z − 3 y − 3 zy + 3 z .
18. Find the critical points of the following function of three variables and classify them
as local minima, local maxima or saddle points.
f (x, y, z) = 32 x2 + 4x + 75 − 14 8 2 2 8 1 2
3 yx − 38y − 3 zx − 2z + 3 y − 3 zy − 3 z .
19. Find the critical points of the following function of three variables and classify them
as local minima, local maxima or saddle points.
f (x, y, z) = 4x2 − 30x + 510 − 2yx + 60y − 2zx − 70z + 4y2 − 2zy + 4z2 .
20. Show that the critical points of the following function are points of the form, (x, y, z) =
t, 2t 2 − 10t, −t 2 + 5t for t ∈ R and classify them as local minima, local maxima or
saddle points.
f (x, y, z) = − 61 x4 + 53 x3 − 25 2 10 2 50 19 2 95 5 2 10 1 2
6 x + 3 yx − 3 yx + 3 zx − 3 zx − 3 y − 3 zy − 6 z .
18.5. LAGRANGE MULTIPLIERS 337
21. Show that the critical points of the following function are
1
(0, −3, 0) , (2, −3, 0) , and 1, −3, −
3
22. Show that the critical points of the function f (x, y, z) = −2yx2− 6yx − 4zx2 − 12zx +
y2 +2yz. are points of the form, (x, y, z) = t, 2t 2 + 6t, −t 2 − 3t for t ∈ R and classify
them as local minima, local maxima or saddle points.
24. Suppose f (x, y), a function of two variables defined on all Rn has all directional
derivatives at (0, 0) and they are all equal to 0 there. Suppose also that for h (t) ≡
f (tu,tv) and (u, v) a unit vector, it follows that h′′ (0) > 0. By the one variable
second derivative test, this implies that along every straight line through (0, 0) the
function restricted to this line has a local minimum at (0, 0). Can it be concluded that
f has a local minimum at (0, 0). In other words, can you conclude a point is a local
minimum if it appears to be so along every straight line through the point? Hint:
Consider f (x, y) = x2 + y2 for (x, y) not on the curve y = x2 for x ̸= 0 and on this
curve, let f = −1.
and you would expect its partial derivatives to be 0 at the point of interest. By the chain
rule (never mind the mathematical questions on existence), at this special point,
fx + fz zx = 0, fy + fz zy = 0
∇ f (x0 , y0 , z0 ) = λ ∇g (x0 , y0 , z0 )
The situation in which it is x or y that is a function of the other variables is exactly similar.
Also, if there are more or fewer variables there is no difference in the argument. This λ is
called a Lagrange multiplier after Lagrange who considered such problems in the 1700’s.
Here f (x, y, z) = xyz while g (x, y, z) = x2 + y2 + z2 − 27. Then ∇g (x, y, z) = (2x, 2y, 2z)
and ∇ f (x, y, z) = (yz, xz, xy). Then at the point which maximizes this function1 , (yz, xz, xy) =
λ (2x, 2y, 2z) . Therefore, each of 2λ x2 , 2λ y2 , 2λ z2 equals xyz. It follows that at any point
which maximizes xyz, |x| = |y| = |z|. Therefore, the only candidates for the point where the
maximum occurs are
(3, 3, 3) , (−3, −3, 3) (−3, 3, 3)
etc. The maximum occurs at (3, 3, 3) which can be verified by plugging in to the function
which is being maximized.
The method of Lagrange multipliers allows you to consider maximization of functions
defined on closed and bounded sets. Recall that any continuous function defined on a
closed and bounded set has a maximum and a minimum on the set. Candidates for the
extremum on the interior of the set can be located by setting the gradient equal to zero. The
consideration of the boundary can then sometimes be handled with the method of Lagrange
multipliers.
Here I know there is a maximum because the set is the closed disk, a closed and bounded
set. Therefore, it is just a matter of finding it. Look for singular points on the interior of the
circle. ∇ f (x, y) = (y, x + 1) = (0, 0). There are no points on the interior of the circle where
the gradient equals zero. Therefore, the maximum occurs on the boundary of the circle.
That is, the problem reduces to maximizing xy + y subject to x2 + y2 = 1. From the above,
Example 18.5.3 Find candidates for the maximum and minimum values of the function
f (x, y) = xy − x2 on the set (x, y) : x2 + 2xy + y2 ≤ 4 .
First, the only point where ∇ f equals zero is (x, y) = (0, 0) and this is in the desired set.
In fact it is an interior point of this set. This takes care of the interior points. What about
those on the boundary x2 + 2xy + y2 = 4? The problem is to maximize xy − x2 subject to the
constraint, x2 + 2xy + y2 = 4. The Lagrangian is xy − x2 − λ x2 + 2xy + y2 − 4 and this
yields the following system.
y − 2x − λ (2x + 2y) = 0
x − 2λ (x + y) = 0
x2 + 2xy + y2 = 4
(2 + 2λ ) x − (1 − 2λ ) y = 0, (1 − 2λ ) x − 2λ y = 0
which yields λ = 1/8. Therefore, y = 3x. From the constraint equation x2 + 2x (3x) +
(3x)2 = 4 and so x = 21 or − 12 . Now since y = 3x, the points of interest on the boundary of
this set are
1 3 1 3
, , and − , − . (18.1)
2 2 2 2
2
1 3 1 3 1 1
f , = − =
2 2 2 2 2 2
2
1 3 1 3 1 1
f − ,− = − − − − =
2 2 2 2 2 2
Thus the candidates for maximum and minimum are 12 , 23 , (0, 0), and − 12 , − 32 . There-
fore it appears that (0, 0) yields a minimum and either 12 , 32 or − 12 , − 32 yields a max-
imum. However, this is a little misleading. How do you even know a maximum or a
minimum exists? The set x2 + 2xy + y2 ≤ 4 is an unbounded set which lies between the
340 CHAPTER 18. OPTIMIZATION
two lines x + y = 2 and x + y = −2. In fact there is no minimum. For example, take
x = 100, y = −98. Then xy − x2 = x (y − x) = 100 (−98 − 100) which is a large negative
number much less than 0, the answer for the point (0, 0).
There are no magic bullets here. It was still required to solve a system of nonlinear
equations to get the answer. However, it does often help to do it this way.
A nice observation in the case that the function f , which you are trying to maximize,
and the function g, which defines the constraint, are functions of two or three variables is
the following.
At points of interest,
∇ f × ∇g = 0
This follows from the above because at these points,
∇ f = λ ∇g
so the angle between the two vectors ∇ f and ∇g is either 0 or π. Therefore, the sine of this
angle equals 0. By the geometric description of the cross product, this implies the cross
product equals 0. Here is an example.
Example 18.5.4 Minimize f (x, y) = xy − x2 on the set
(x, y) : x2 + 2xy + y2 = 4
Using the observation about the cross product, and letting f (x, y, z) = f (x, y) with a
similar convention for g, ∇ f = (y − 2x, x, 0) , ∇g = (2x + 2y, 2x + 2y, 0) and so
(y − 2x, x, 0) × (2x + 2y, 2x + 2y, 0)
= (0, 0, (y − 2x) (2x + 2y) − x (2x + 2y)) = 0
Thus there are two equations, x2 + 2xy 2 2 2
+ 1y 3= 4 and 4xy − 2y + 6x = 0. Solving these two
1 3
yields the points of interest − 2 , − 2 , 2 , 2 . Both give the same value for f a maximum.
The above generalizes to a general procedure which is described in the following major
Theorem. All correct proofs of this theorem will involve some appeal to the implicit func-
tion theorem or to fundamental existence theorems from differential equations. A complete
proof is very fascinating but it will not come cheap. Good advanced calculus books will
usually give a correct proof. If you are interested, there is a complete proof later. First here
is a simple definition explaining one of the terms in the statement of this theorem.
Definition 18.5.5 Let A be an m × n matrix. A submatrix is any matrix which can be
obtained from A by deleting some rows and some columns.
Theorem 18.5.6 Let U be an open subset of Rn and let f : U → R be a C1 function. Then
if x0 ∈ U, has the property that
gi (x0 ) = 0, i = 1, · · · , m, gi a C1 function, (18.2)
and x0 is either a local maximum or local minimum of f on the intersection of the level
sets just described, and if some m × m submatrix of
g1x1 (x0 ) g1x2 (x0 ) · · · g1xn (x0 )
.. .. ..
Dg (x0 ) ≡ . . .
gmx1 (x0 ) gmx2 (x0 ) · · · gmxn (x0 )
18.5. LAGRANGE MULTIPLIERS 341
holds.
To help remember how to use 18.3, do the following. First write the Lagrangian,
m
L = f (x) − ∑ λ i gi (x)
i=1
and then proceed to take derivatives with respect to each of the components of x and also
derivatives with respect to each λ i and set all of these equations equal to 0. The formula
18.3 is what results from taking the derivatives of L with respect to the components of x.
When you take the derivatives with respect to the Lagrange multipliers, and set what results
equal to 0, you just pick up the constraint equations. This yields n + m equations for the
n + m unknowns x1 , · · · , xn , λ 1 , · · · , λ m . Then you proceed to look for solutions to these
equations. Of course these might be impossible to find using methods of algebra, but you
just do your best and hope it will work out.
L = xyz − λ x2 + y2 + z2 − 4 − µ (x − 2y)
and proceed to take derivatives with respect to every possible variable, leading to the fol-
lowing system of equations.
yz − 2λ x − µ = 0
xz − 2λ y + 2µ = 0
xy − 2λ z = 0
x2 + y2 + z2 = 4
x − 2y = 0
Now you have to find the solutions to this system of equations. In general, this could be
very hard or even impossible. If λ = 0, then from the third equation, either x or y must
equal 0. Therefore, from the first two equations, µ = 0 also. If µ = 0 and λ ̸= 0, then from
the first two equations, xyz = 2λ x2 and xyz = 2λ y2 and so either x = y or x = −y, which
requires that both x and y equal zero thanks to the last equation. But then from the fourth
equation, z = ±2 and now this contradicts the third equation. Thus µ and λ are either both
equal to zero or neither one is and the expression, xyz equals zero in thisqcase. However,
q I
know this is not the best value for a minimizer because I can take x = 2 35 , y = 35 , and
z = −1. This satisfies the constraints and the product of these numbers equals a negative
342 CHAPTER 18. OPTIMIZATION
number. Therefore, both µ and λ must be non zero. Now use the last equation eliminate x
and write the following system.
5y2 + z2 = 4
y2 − λ z = 0
yz − λ y + µ = 0
yz − 4λ y − µ = 0
From the last equation, µ = (yz − 4λ y). Substitute this into the third and get
5y2 + z2 = 4
y2 − λ z = 0
yz − λ y + yz − 4λ y = 0
y = 0 will not yield the minimum value from the above example. Therefore, divide the last
equation by y and solve for λ to get λ = (2/5) z. Now put this in the second equation to
conclude
5y2 + z2 = 4
,
y2 − (2/5) z2 = 0
a system which
q Thus y2= 8/15 and z2 = 4/3. Therefore,
is easy to solve. candidates for
q q q q q
8 8 4 8 8 4
minima are 2 15 , 15 , ± 3 , and −2 15 , − 15 , ± 3 , a choice of 4 points to
check. Clearly the one which gives the smallest value is
r r r !
8 8 4
2 , ,−
15 15 3
q q q
8 8
or −2 15 , − 15 , − 43 and the minimum value of the function subject to the con-
√ √
straints is − 52 30 − 23 3.
You should rework this problem first solving the second easy constraint for x and then
producing a simpler problem involving only the variables y and z.
18.6 Exercises
1. Maximize x + y + z subject to the constraint x2 + y2 + z2 = 3.
2. Minimize 2x − y + z subject to the constraint 2x2 + y2 + z2 = 36.
3. Minimize x + 3y − z subject to the constraint 2x2 + y2 − 2z2 = 36 if possible. Note
there is no guaranty this function has either a maximum or a minimum. Determine
whether there exists a minimum also.
4. Find the dimensions of the largest rectangle which can be inscribed in a circle of
radius r.
2
x2
5. Maximize 2x + y subject to the condition that 4 + y9 ≤ 1.
18.6. EXERCISES 343
2
6. Maximize x + 2y subject to the condition that x2 + y9 ≤ 1.
2
7. Maximize x + y subject to the condition that x2 + y9 + z2 ≤ 1.
2
8. Minimize x + y + z subject to the condition that x2 + y9 + z2 ≤ 1.
11. Find points on xy = 4 farthest from (0, 0) if any exist. If none exist, tell why. What
does this say about the method of Lagrange multipliers?
12. A can is supposed to have a volume of 36π cubic centimeters. Find the dimensions
of the can which minimizes the surface area.
13. A can is supposed to have a volume of 36π cubic centimeters. The top and bottom of
the can are made of tin costing 4 cents per square centimeter and the sides of the can
are made of aluminum costing 5 cents per square centimeter. Find the dimensions of
the can which minimizes the cost.
14. Minimize and maximize ∑nj=1 x j subject to the constraint ∑nj=1 x2j = a2 . Your answer
should be some function of a which you may assume is a positive number.
15. Find the point (x, y, z) on the level surface 4x2 +y2 −z2 = 1which is closest to (0, 0, 0).
16. A curve is formed from the intersection of the plane, 2x + y + z = 3 and the cylinder
x2 + y2 = 4. Find the point on this curve which is closest to (0, 0, 0).
17. A curve is formed from the intersection of the plane, 2x + 3y + z = 3 and the sphere
x2 + y2 + z2 = 16. Find the point on this curve which is closest to (0, 0, 0).
18. Find the point on the plane, 2x + 3y + z = 4 which is closest to the point (1, 2, 3).
19. Let A = (Ai j ) be an n × n matrix which is symmetric. Thus Ai j = A ji and recall
(Ax)i = Ai j x j where as usual, sum over the repeated index. Show that ∂∂x (Ai j x j xi ) =
k
2Ai j x j . Show that when you use the method of Lagrange multipliers to maximize
the function Ai j x j xi subject to the constraint, ∑nj=1 x2j = 1, the value of λ which
corresponds to the maximum value of this functions is such that Ai j x j = λ xi . Thus
Ax = λ x. Thus λ is an eigenvalue of the matrix A.
29. Let f (x1 , · · · , xn ) = x1n x2n−1 · · · xn1 . Then f achieves a maximum on the set S ≡
( )
n
x ∈ Rn : ∑ ixi = 1, each xi ≥ 0
i=1
and there exist values of the xi for which equality holds. This says the “geometric
mean” is always smaller than the arithmetic mean.
32. Maximize x2 y2 subject to the constraint
x2p y2q
+ = r2
p q
where p, q are real numbers larger than 1 which have the property that
1 1
+ =1
p q
18.7. PROOF OF THE SECOND DERIVATIVE TEST∗ 345
show that the maximum is achieved when x2p = y2q and equals r2 . Now conclude
that if x, y > 0, then
x p yq
xy ≤ +
p q
and there are values of x and y where this inequality is an equation.
length of the ellipse is 02π a2 sin2 (t) + b2 cos2 (t)dt. Find a, b such that the ellipse
R
Theorem 18.7.1 Suppose f has n + 1 derivatives on an interval (a, b) and let c ∈ (a, b) .
Then if x ∈ (a, b) , there exists ξ between c and x such that
n
f (k) (c) f (n+1) (ξ )
f (x) = f (c) + ∑ (x − c)k + (x − c)n+1 .
k=1 k! (n + 1)!
(In this formula, the symbol ∑0k=1 ak will denote the number 0.)
In fact,
f (k) (c)
− f (x) + f (c) + ∑nk=1 k! (x − c)k
K= n+1
.
(x − c)
Now define F (t) for t in the closed interval determined by x and c by
!
n
f (k) (t) k n+1
F (t) ≡ f (x) − f (t) + ∑ (x − t) + K (x − t) .
k=1 k!
Therefore, F (c) = 0 by the way K was chosen and also F (x) = 0. Then F ′ (t) =
f (k) (t) f (k+1) (t)
!!
k−1 k
′ ∑nk=1 k! k (x − t) − ∑nk=1 k! (x − t)
− f (t) −
+K (n + 1) (x − t)n
n−1 f (k+1) (t) f (k+1) (t)
!!
k n k
∑ (x − t) − ∑ (x − t)
= − f ′ (t) − k=0 k! k=1 k!
+K (n + 1) (x − t)n
= − f ′ (t) − f ′ (t) − f (n+1) (t) (x − t)n + K (n + 1) (x − t)n
Now recall the Taylor formula with the Lagrange form of the remainder.
∂f ∂2 f
h′ (t) = (x + tv) vi , h′′ (t) = (x + tv) vi v j .
∂ xi ∂ x j ∂ xi
18.7. PROOF OF THE SECOND DERIVATIVE TEST∗ 347
Thus
h′′ (t) = v T H (x + tv) v.
From Theorem 18.7.3 there exists t ∈ (0, 1) such that
∂f 1
f (x + v) = f (x) + (x) vi + v T H (x + tv) v
∂ xi 2
By the continuity of the second partial derivative
1
f (x + v) = f (x) + ∇ f (x) · v+ v T H (x) v+
2
1 T
v (H (x+tv) − H (x)) v (18.5)
2
where the last term satisfies
1 v T (H (x+tv) − H (x)) v
lim =0 (18.6)
|v |→0 2 |v|2
Theorem 18.7.4 Suppose x is a critical point for f . That is, suppose ∂∂ xfi (x) = 0 for each
i. Then if H (x) has all positive eigenvalues, x is a local minimum. If H (x) has all negative
eigenvalues, then x is a local maximum. If H (x) has a positive eigenvalue, then there exists
a direction in which f has a local minimum at x, while if H (x) has a negative eigenvalue,
there exists a direction in which f has a local maximum at x.
1 1
f (x + v) = f (x) + v T H (x) v+ v T (H (x+tv) − H (x)) v
(18.7)
2 2
and by continuity of the second derivatives, these mixed second derivatives are equal and so
H (x) is a symmetric matrix. Thus, by Theorem 11.4.7, H (x) has all real eigenvalues and
can be diagonalized with an orthogonal matrix U. Suppose first that H (x) has all positive
eigenvalues and that all are larger than δ 2 > 0.
1 1 δ2 2
f (x + v) ≥ f (x) + δ 2 |v|2 − δ 2 |v|2 = f (x) + |v| .
2 4 4
This shows the first claim of the theorem. The second claim follows from similar reasoning
or applying the above to − f .
Suppose H (x) has a positive eigenvalue λ 2 . Then let v be an eigenvector for this
eigenvalue. Then from (18.7), replacing v with sv and letting t depend on s,
1
f (x+sv) = f (x) + s2 v T H (x) v+
2
348 CHAPTER 18. OPTIMIZATION
1 2 T
s v (H (x+tsv) − H (x)) v
2
which implies
1 1
f (x) + s2 λ 2 |v|2 + s2 v T (H (x+tsv) − H (x)) v
f (x+sv) =
2 2
1 2 2 2
≥ f (x) + s λ |v|
4
whenever s is small enough. Thus in the direction v the function has a local minimum at
x. The assertion about the local maximum in some direction follows similarly. ■
Chapter 19
y = b(x)
x
a b
We will consider the following iterated integral which makes sense for any continuous
function f (x, y) .
Z b Z t(x)
f (x, y) dydx
a b(x)
It means just exactly what the notation suggests it does. You fix x and then you do the
inside integral
Z t(x)
f (x, y) dy
b(x)
This yields a function of x which will end up being continuous. You then do ab dx to this
R
continuous function.
What was it about the above region which made it possible to set up such an iterated
integral? It was just this: You have a curve on the top y = t (x) , and a curve on the bottom
y = b (x) for x ∈ [a, b]. You could have set up a similar iterated integral if you had a region
in which there was a curve on the left and a curve on the right for y in some interval. Here
is an example.
Example 19.1.1 Suppose t (x) = 4 − x2 , b (x) = 0 and a = −2, b = 2. Compute the iterated
integral described above for f (x, y) = xy + y.
349
350 CHAPTER 19. THE RIEMANNN INTEGRAL ON Rn
You should sketch the graphs of these functions. Filling in the limits as above, we
obtain Z 2 Z 4−x2 Z 2
1 2 2 256
(xy + y) dydx = x − 4 (x + 1) dx =
−2 0 −2 2 15
Of course one could do the iterated integral in the other
√ order for this example. In this
√ case,
you would be considering a curve on the left x = − 4 − y, a curve on the right x = 4 − y,
and y ∈ [0, 4] . Thus this iterated integral would be of the form
Z 4 Z √4−y Z 4 p 256
√ (xy + y) dxdy = 2y 4 − ydy =
0 − 4−y 0 15
Why should it be the case that these two iterated integrals are equal? This involves a
consideration of what you are computing when you do such an iterated integral. First note
that in the general example given above involving t (x) , b (x) , it would not have been at
all convenient to have done the iterated integral in the other order. So what is it you are
getting? Consider the first illustration where the region is between y = b (x) and y = t (x).
Consider the following picture
y
y = t(x)
R
y = b(x)
x
a b
For simplicity, we let the distance between the vertical lines be ∆x and the distance
between the horizontal lines be ∆y. We will only consider those rectangles which intersect
the region R. Thus we will have a = x0 < x1 < · · · < xn = b and in the vertical direction,
we will have
yim(i) < yi(m(i)+1) < · · · < yiM(i)
where m (i) is the largest such that yim(i) is no larger than b (xi ) and M (i) is the smallest
such that yiM(i) is as large as y (xi ) . Then the iterated integral should satisfy the following
R b R t(x)
approximate equalities a b(x)
f (x, y) dydx =
n Z xi Z t(x) n Z xi Z t(xi )
∑ f (x, y) dydx ≈ ∑ f (xi , y) dydx
i=1 xi−1 b(x) i=1 xi−1 b(xi )
n Z xi M(i)
≈ ∑ ∑ f (xi , yi j ) ∆ydx
i=1 xi−1 j=m(i)
n M(i)
= ∑ ∑ f (xi , yi j ) ∆y∆x
i=1 j=m(i)
where we can extend f to be 0 off the region R. We would expect these approximations
to improve as ∆x, ∆y converge to 0, provided that the bounday of R is sufficiently “thin”.
Thus the iterated integral ought to equal the number to which the “Riemannn sums” repre-
sented by the last expression converge as ∆x, ∆y → 0. That sum on the right is really just a
systematic way of taking the value of the function at a point of a rectangle which intersects
19.1. METHODS FOR DOUBLE INTEGRALS 351
R, multiplying by the area of the rectangle containing this point and adding them together.
It would have worked out similarly if we had been able to do the iterated integral in the
other order, provided the boundary of R is “thin” enough, a completely stupid considera-
tion which is not needed in the context of the Lebesgue integral. We would still have a sum
of values of the function times areas of little rectangles. This is why it is entirely reasonable
to expect the iterated integrals in two different orders to be equal. It is also why the iterated
integral is approximating something which we call the Riemannn integral.
Definition 19.1.2 Let R be a bounded region in the xy plane and let f be a bounded func-
tion
R
defined on R. We say f is Riemannn integrable if there exists a number, denoted by
R f dA and called the Riemannn integral such that if ε > 0 is given, then whenever one im-
poses a sufficiently fine mesh enclosing R and considers the finitely many rectangles which
intersect R, numbered as {Qi }m i=1 and a point (xi , yi ) ∈ Qi , it follows that
Z
f dA − ∑ f (xi , yi ) area (Qi ) < ε
R i
R
It is R f dA which is of interest. The iterated integral should always be considered as a
tool for computing this number.R
When this is kept in mind, things become less confusing.
Also, it is helpful to consider R f dA as a kind of a glorified sum. It means to take the value
of f at a point and multiply by a little chunk of area dA and then add these together, hence
the integral sign which is really just an elongated symbol for a sum.
The careful explanation of these ideas is contained later in a special chapter devoted to
the theory of the Riemannn integral. It is not for the faint of heart. It is only there for those
who have a compelling need to understand all the details.
Example 19.1.3 Let f (x, y) = x2 y + yx for (x, y) ∈ R where R is the triangular region de-
fined
R
to be in the first quadrant, below the line y = x and to the left of the line x = 4. Find
R f dA.
y
R
4 x
From the above discussion,
Z Z 4Z x
x2 y + yx dy dx
f dA =
R 0 0
The reason for this is that x goes from 0 to 4 and for each fixed x between 0 and 4, y goes
from 0 to the slanted line, y = x, the function being defined to be0 for larger y. Thus y goes
from 0 to x. This explains the inside integral. Now 0x x2 y + yx dy = 21 x4 + 12 x3 and so
R
Z 4
1 4 1 3 672
Z
f dA = x + x dx = .
R 0 2 2 5
What of integration in a different order? Lets put the integral with respect to y on the
outside and the integral with respect to x on the inside. Then
Z Z 4Z 4
x2 y + yx dx dy
f dA =
R 0 y
352 CHAPTER 19. THE RIEMANNN INTEGRAL ON Rn
Example 19.1.4 Let f (x, y) = x2 y for (x, y) ∈ R where R is the triangular region defined
R
to
be in the first quadrant, below the line y = 2x and to the left of the line x = 4. Find R f dA.
y
R
4 x
Put the integral with respect to x on the outside first. Then
Z Z 4 Z 2x
x2 y dy dx
f dA =
R 0 0
and so Z 4
2048
Z
2x4 dx =
f dA =
R 0 5
Now do the integral in the other order. Here the integral with respect to y will be on the
outside. What are the limits of this integral? Look at the triangle and note that x goes from
0 to 4 and so 2x = y goes from 0 to 8. Now for fixed y between 0 and 8, where does x go? It
goes from the x coordinate on the line y = 2x which corresponds to this y to 4. What is the
x coordinate on this line which goes with y? It is x = y/2. Therefore, the iterated integral is
Z 8Z 4
x2 y dx dy.
0 y/2
Now Z 4
64 1
x2 y dx = y − y4
y/2 3 24
and so Z 8
64 1 4 2048
Z
f dA = y− y dy =
R 0 3 24 5
the same answer. R
A few observations are in order here. In finding S f dA there is no problem in setting
things up if S is a rectangle. However, if S is not a rectangle, the procedure always is
19.1. METHODS FOR DOUBLE INTEGRALS 353
agonizing. A good rule of thumb is that if what you do is easy it will be wrong. There
are no shortcuts! There are no quick fixes which require no thought! Pain and suffering
is inevitable and you must not expect it to be otherwise. Always draw a picture and then
begin agonizing over the correct limits. Even when you are careful you will make lots of
mistakes until you get used to the process.
Sometimes an integral can be evaluated in one order but not in another.
4 x
Setting this up to have the integral with respect to y on the inside yields
Z 4Z 8
sin y2 dy dx.
0 2x
there is an immediate problem in evaluating the inside integral. It doesn’t work out so the
next step is to do the integration in another order and see if some progress can be made.
This yields
Z 8 Z y/2 Z 8
y
sin y2 dx dy = sin y2 dy
0 0 0 2
R8 y 2
1 1
and 0 2 sin y dy = − 4 cos 64 + 4 which you can verify by making the substitution, u =
y2 . Thus
1 1
Z
sin y2 dy = − cos 64 + .
R 4 4
This illustrates an important idea. The integral R sin y2 dA is defined as a number.
R
It is the unique number between all the upper sums and all the lower sums. Finding it is
another matter. In this case it was possible to find it using one order of integration but not
the other. The iterated integral in this other order also is defined as a number but it cannot be
found directly without interchanging the order of integration. Of course sometimes nothing
you try will work out.
In other words you integrate the density to get the mass. Now by letting ρ depend on
position, you can include the case where the material is not homogeneous. Here is an
example.
Example 19.1.6 Let ρ (x, y) denote the density of the plane region determined by the curves
1 2
3 x + y = 2, x = 3y , and x = 9y. Find the total mass if ρ (x, y) = y.
You need to first draw a picture of the region R. A rough sketch follows.
(3, 1)
(1/3)x + y = 2
x = 3y2
(9/2, 1/2)
x = 9y
(0, 0)
This region is in two pieces, one having the graph of x = 9y on the bottom and the
graph of x = 3y2 on the top and another piece having the graph of x = 9y on the bottom and
the graph of 31 x + y = 2 on the top. Therefore, in setting up the integrals, with the integral
with respect to x on the outside, the double integral equals the following sum of iterated
integrals.
Z 3 Z √x/3
z }| { z }| {
Z 9 Z 2− 1 x
2 3
y dy dx + y dy dx
0 x/9 3 x/9
You notice it is not necessary to have a perfect picture, just one which is good enough to
figure out what the limits should be. The dividing line between the two cases is x = 3 and
this was shown in the picture. Now it is only a matter of evaluating the iterated integrals
which in this case is routine and gives 1.
19.2 Exercises
1. Evaluate the iterated integral and then write the iterated integral with the order of
integration reversed. 04 03y x dx dy.
R R
2. Evaluate the iterated integral and then write the iterated integral with the order of
integration reversed. 03 03y y dx dy.
R R
3. Evaluate the iterated integral and then write the iterated integral with the order of
integration reversed. 02 02y (x + 1) dx dy.
R R
4. Evaluate the iterated Rintegral and then write the iterated integral with the order of
integration reversed. 03 0y sin (x) dx dy.
R
5. Evaluate the iterated Rintegral and then write the iterated integral with the order of
integration reversed. 01 0y exp (y) dx dy.
R
19.3. METHODS FOR TRIPLE INTEGRALS 355
6. Let ρ (x, y) denote the density of the plane region closest to (0, 0) which is between
the curves x + 2y = 3, x = y2 , and x = 0. Find the total mass if ρ (x, y) = y. Set up the
integral in terms of dxdy and in terms of dydx.
7. Let ρ (x, y) denote the density of the plane region determined by the curves x + 2y =
3, x = y2 , and x = 4y. Find the total mass if ρ (x, y) = x. Set up the integral in terms
of dxdy and dydx.
8. Let ρ (x, y) denote the density of the plane region determined by the curves y =
2x, y = x, x + y = 3. Find the total mass if ρ (x, y) = y + 1. Set up the integrals in
terms of dxdy and dydx.
9. Let ρ (x, y) denote the density of the plane region determined by the curves y =
3x, y = x, 2x + y = 4. Find the total mass if ρ (x, y) = 1.
10. Let ρ (x, y) denote the density of the plane region determined by the curves y =
3x, y = x, x + y = 2. Find the total mass if ρ (x, y) = x + 1. Set up the integrals in
terms of dxdy and dydx.
11. Let ρ (x, y) denote the density of the plane region determined by the curves y =
5x, y = x, 5x + 2y = 10. Find the total mass if ρ (x, y) = 1. Set up the integrals in
terms of dxdy and dydx.
R 4 R 2 1 2y
12. Find 0 y/2 x e dx dy. You might need to interchange the order of integration.
x
R 8 R 4 1 3y
13. Find 0 y/2 x e dx dy.
x
R 13 π R 31 π sin y
14. Find 0 x y dy dx.
R 12 π R 1 π sin y
15. Find 0
2
x y dy dx.
R π R π sin y
16. Find 0 x y dy dx
17. ∗ Evaluate the iterated integral and then write the iterated integral with the order of
R3 Rx 2
integration reversed. −3 −x x dy dx
−y 2
Your answer for the iterated integral should be 30 −3 x dx dy + 0−3 −3
y 2
R R R R
x dx dy +
R3R3 2 R0 R3 2
0 y x dx dy + −3 −y x dx dy. This is a very interesting example which shows that
iterated integrals have a life of their own, not just as a method for evaluating double
integrals.
18. ∗ Evaluate the iterated integral and then write the iterated integral with the order of
R2 Rx 2
integration reversed. −2 −x x dy dx.
Definition 19.3.1 Let R be a bounded region in the R3 and let f be a bounded function
R
defined on R. We say f is Riemannn integrable if there exists a number, denoted by R f dV
and called the Riemannn integral such that if ε > 0 is given, then whenever one imposes a
sufficiently fine mesh enclosing R and considers the finitely many boxes which intersect R,
numbered as {Qi }m i=1 and a point (xi , yi , zi ) ∈ Qi , it follows that
Z
f dV − ∑ f (xi , yi , zi ) volume (Qi ) < ε
R i
x
R
Then Z Z Z b(x,y)
f dV = f (x, y, z) dzdA
E R a(x,y)
R b(x,y)
It might be helpful to think of dV = dzdA. Now a(x,y) f (x, y, z) dz is a function of x and
y and so you have reduced the triple integral to a double integral over R of this func-
19.3. METHODS FOR TRIPLE INTEGRALS 357
tion of x and y. Similar reasoning would apply if the region in R3 were of the form
{(x, y, z) : a (y, z) ≤ x ≤ b (y, z)} or {(x, y, z) : a (x, z) ≤ y ≤ b (x, z)}.
Example 19.3.2 Find the volume of the region E in the first octant between z = 1 − (x + y)
and z = 0.
In this case, R is the region shown.
z
y
R y
x
1 x
Thus the region E is between the plane z = 1 − (x + y) on the top, z = 0 on the bottom,
and over R shown above. Thus
Z Z 1−(x+y) Z 1 Z 1−x Z 1−(x+y)
1
Z
1dV = dzdA = dzdydx =
E R 0 0 0 0 6
Of course iterated integrals have a life of their own although this will not be explored
here. You can just write them down and go to work on them. Here are some examples.
R3RxRx
Example 19.3.3 Find 2 3 3y (x − y) dz dy dx.
x
(x − y) dz = x2 − 4xy + 3y2 . Next this must be integrated
R
The inside integral yields 3y
Rx 2
with respect to y to give 3 x − 4xy + 3y2 dy = −3x2 +18x−27. Finally the third integral
gives
Z 3Z xZ x Z 3
−3x2 + 18x − 27 dx = −1.
(x − y) dz dy dx =
2 3 3y 2
R π R 3y R y+z
Example 19.3.4 Find 0 0 0 cos (x + y) dx dz dy.
R y+z
The inside integral is 0 cos (x + y) dx = 2 cos z sin y cos y + 2 sin z cos2 y − sin z − sin y.
Now this has to be integrated.
Z 3y Z y+z
cos (x + y) dx dz
0 0
Z 3y
2 cos z sin y cos y + 2 sin z cos2 y − sin z − sin y dz
=
0
R 2 R 3− 23 x R x2
Example 19.3.5 Here is an iterated integral: 0 0 0 dz dy dx. Write as an iterated
integral in the order dz dx dy.
The inside integral is just a function of x and y. (In fact, only a function of x.) The order
of the last two integrals must be interchanged. Thus the iterated integral which needs to be
done in a different order is
Z 2 Z 3− 3 x
2
f (x, y) dy dx.
0 0
As usual, it is important to draw a picture and then go from there.
3 − 23 x = y
2
Thus this double integral equals
Z 3Z 2 (3−y)
3
f (x, y) dx dy.
0 0
y (0, 0, 0)
2
3
3y + 3z = 2
x = 16 − y2
2 z
3
R 2 R 2 −y
Therefore, the outside integrals taken with respect to z and y are of the form 03 03 dz dy,
and now for any choice of (y, z) in the above triangular region, x goes from 0 to 16 − y2 .
Therefore, the iterated integral is
2 2 −y Z 16−y2 860
Z Z
3 3
dx dz dy =
0 0 0 243
Example 19.3.7 Find the volume of the region determined by the intersection of the two
cylinders, x2 + y2 ≤ 1 and x2 + z2 ≤ 1.
19.4. EXERCISES 359
The first listed cylinder intersects the xy plane in the disk, x2 + y2 ≤ 1. What is the
volume
√ of the three dimensional
√ region which is between this disk and the two surfaces,
z = 1 − x2 and z = − 1 − x2 ? An iterated integral for the volume is
√ √
Z 1 Z 1−x2 Z 1−x2
16
√ √ dz dydx = .
−1 − 1−x2 − 1−x2 3
Note that I drew no picture of the three dimensional region. If you are interested, here it is.
One of the cylinders is parallel to the z axis, x2 + y2 ≤ 1 and the other is parallel to the
y axis, x2 + z2 ≤ 1. I did not need to be able to draw such a nice picture in order to work
this problem. This is the key to doing these. Draw pictures in two dimensions and reason
from the two dimensional pictures rather than attempt to wax artistic and consider all three
dimensions at once. These problems are hard enough without making them even harder by
attempting to be an artist.
19.4 Exercises
1. Find the following iterated integrals.
R 3 R 2z R z+1
(a) −1 0 y (x + y) dxdydz
R 1 R z R z2
(b) 0 0 y (y + z) dxdydz
R 3 R x R 3x−y
(c) 0 1 2 sin (x) dzdydx
R 1 R 2x R 2y
(d) 0 x y dzdydx
R 4 R 2x R x
(e) 2 2 2y dz dy dx
R 3 R 2−5x R 2−x−2y
(f) 0 0 0 2x dz dy dx
R 2 R 1−3x R 3−3x−2y
(g) 0 0 0 x dz dy dx
R π R 3y R y+z
(h) 0 0 0 cos (x + y) dx dz dy
R π R 4y R y+z
(i) 0 0 0 sin (x + y) dx dz dy
R 1 R z R 2z R?R?R?
0 0 0 f (x, y, z) dx dy dz = ? ? ? f (x, y, z) dy dz dx,
R1RzRz R?R?R?
0 0 0 f (x, y, z) dx dy dz = ? ? ? f (x, y, z) dz dy dx,
R 1 R √z R y+z
f (x, y, z) dx dy dz = ?? ?? ?? f (x, y, z) dx dz dy,
R R R
0 z/2 0
R6R6R4 R?R?R?
4 2 0 f (x, y, z) dx dy dz = ? ? ? f (x, y, z) dz dy dx.
3. Find the volume of R where R is the bounded region formed by the plane 51 x + y +
1
4 z = 1 and the planes x = 0, y = 0, z = 0.
4. Find the volume of R where R is the bounded region formed by the plane 15 x + 12 y +
1
4 z = 1 and the planes x = 0, y = 0, z = 0.
5. Find the volume of R where R is the bounded region formed by the plane 15 x + 13 y +
1
4 z = 1 and the planes x = 0, y = 0, z = 0.
Example 19.4.1 Find the volume of R where R is the bounded region formed by the plane
1 1
5 x + y + 5 z = 1 and the planes x = 0, y = 0, z = 0.
19.4. EXERCISES 361
When z = 0, the plane becomes 15 x + y = 1. Thus the intersection of this plane with the
xy plane is this line shown in the following picture.
5
Therefore, the bounded region is between the triangle formed in the above picture by
the x axis, the y axis and the above line and the surface given by 51 x + y + 15 z = 1 or z =
5 1 − 15 x + y = 5 − x − 5y. Therefore, an iterated integral which yields the volume is
Z 5 Z 1− 1 x Z 5−x−5y
5 25
dz dy dx = .
0 0 0 6
Example 19.4.2 Find the mass of the bounded region R formed by the plane 13 x+ 31 y+ 15 z =
1 and the planes x = 0, y = 0, z = 0 if the density is ρ (x, y, z) = z.
This is done just like the previous example except in this case, there is a function to
integrate. Thus the answer is
Z 3 Z 3−x Z 5− 5 x− 5 y
3 3 75
z dz dy dx = .
0 0 0 8
Example 19.4.3 Find the total mass of the bounded solid determined by z = 9 − x2 − y2
and x, y, z ≥ 0 if the mass is given by ρ (x, y, z) = z
When z = 0, the plane 17 x + y + 41 z = 1 intersects the xy plane in the line whose equation
1
is7x + y = 1, while the plane, x + 17 y + 14 z = 1 intersects the xy plane in the line whose
equation is x + 17 y = 1. Furthermore, the two planes intersect when x = y as can be seen
from the equations, x + 17 y = 1 − 4z and 17 x + y = 1 − 4z which imply x = y. Thus the two
362 CHAPTER 19. THE RIEMANNN INTEGRAL ON Rn
x + 71 y + 14 z = 1
y=x
R1 y + 71 x + 14 z = 1
R2
You see in this picture, the base of the region in the xy plane is the union of the two
triangles, R1 and R2 . For (x, y) ∈ R1 , z goes from 0 to what it needs to be to be on the plane,
1 1 1
7 x + y + z
4 = 1. Thus z goes from 0 to 4 1 − 7 x − y . Similarly, on R2 , z goes from 0 to
4 1 − 17 y − x . Therefore, the integral needed is
Z Z 4(1− 1 x−y) Z Z 4(1− 1 y−x)
7 7
dz dV + dz dV
R1 0 R2 0
R R
and now it only remains to consider R1 dV and R2 dV. The point of intersection of these
lines shown in the above picture is 87 , 78 and so an iterated integral is
19.5 Exercises
1. Find the volume of the region determined by the intersection of the two cylinders,
x2 + y2 ≤ 16 and y2 + z2 ≤ 16.
2. Find the volume of the region determined by the intersection of the two cylinders,
x2 + y2 ≤ 9 and y2 + z2 ≤ 9.
3. Find the volume of the region bounded by x2 + y2 = 4, z = 0, z = 5 − y
4. Find 02 06−2z 13−z (3 − z) cos y2 dy dx dz.
R R R
x 2
R 1 R 18−3z R 6−z
(6 − z) exp y2 dy dx dz.
5. Find 0 0 1x
3
R 2 R 24−4z R 6−z
(6 − z) exp x2 dx dy dz.
6. Find 0 0 1
4y
R 1 R 10−2z R 5−z sin x
7. Find 0 0 1 x dx dy dz.
2y
Hint: Interchange order of integration.
19.5. EXERCISES 363
8. Find the mass of the bounded region R formed by the plane 14 x + 12 y + 13 z = 1 and the
planes x = 0, y = 0, z = 0 if the density is ρ (x, y, z) = y
9. Find the mass of the bounded region R formed by the plane 12 x + 12 y + 14 z = 1 and the
planes x = 0, y = 0, z = 0 if the density is ρ (x, y, z) = z2
10. Find the mass of the bounded region R formed by the plane 14 x + 12 y + 14 z = 1 and the
planes x = 0, y = 0, z = 0 if the density is ρ (x, y, z) = y + z
11. Find the mass of the bounded region R formed by the plane 14 x + 12 y + 15 z = 1 and the
planes x = 0, y = 0, z = 0 if the density is ρ (x, y, z) = y
R 1 R 12−4z R 3−z sin x
12. Find 0 0 1 x dx dy dz.
4y
18. The base of a solid is the region in the xy plane between the curves y = x2 and y = 1.
The top of the solid is the plane z = 2 − x. Find the volume of the solid.
19. The base of a solid is in the xy plane and is bounded by the lines y = x, y = 1 − x, and
y = 0. The top of the solid is z = 3 − y. Find its volume.
20. The base of a solid is in the xy plane and is bounded by the lines x = 0, x = π, y = 0,
and y = sin x. The top of this solid is z = x. Find the volume of this solid.
364 CHAPTER 19. THE RIEMANNN INTEGRAL ON Rn
Chapter 20
Now consider the part of grid obtained by fixing θ at various values and varying r and then
by fixing r at various values and varying θ .
The idea is that these lines obtained by fixing one or the other coordinate are very
close together, much closer than drawn and so we would expect the area of one of the
little curvy quadrilaterals to be close to the area of the parallelogram shown. Consider
this parallelogram. The two sides originating at the intersection of two of the grid lines as
shown are approximately equal to
where dr and dθ are the respective small changes in the variables r and θ . Thus the area
of one of those little curvy shapes should be approximately equal to
365
366 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
by the geometric description of the cross product. These vectors are extended as 0 in the
third component in order to take the cross product. This reduces to
!
cos (θ ) −r sin (θ )
dA = det drdθ = rdrdθ
sin (θ ) r cos (θ )
which is the increment of area in polar coordinates, taking the place of dxdy. The integral
is really about taking the value of the function integrated multiplied by dA and adding these
products. Here is an example.
The variable r goes from 0 to a and the angle θ goes from 0 to 2π. Therefore, the area
is Z Z 2π Z a
dA = rdrdθ = πa2
D 0 0
Example 20.1.2 The density equals r. Find the total mass of a disk of radius a.
This is easy to do in polar coordinates. The disk involved has θ going from 0 to 2π and
r from 0 to 2. Therefore, the integral to work is just
dA
Z 2π Z a z }| { 2
rrdrdθ = πa3
0 0 3
Notice how in these examples the circular disk is really a rectangle [0, 2π] × [0, a]. This is
why polar coordinates are so useful. The next example was worked earlier from a different
point of view.
Example 20.1.3 Find the area of the inside of the cardioid r = 1 + cos θ , θ ∈ [0, 2π].
-1
0 1 2
How would you go about setting this up in rectangular coordinates? It would be very
hard if not impossible, but is easy in polar coordinates. This is because in polar coordinates
the region integrated over is the region below the curve in the following picture.
20.2. EXERCISES 367
Example 20.1.4 Let R denote the inside of the cardioid r = 1 + cos θ for θ ∈ [0, 2π]. Find
Z
xdA
R
Now you need to change x to the right coordinates. Thus the integral equals
Z 2π Z 1+cos(θ )
5
(r cos (θ )) rdrdθ = π
0 0 4
A case where this sort of problem occurs is when you find the mass of a plate given the
density.
Definition 20.1.5 Suppose a material occupies a region of the plane R. The density λ is a
nonnegative
R
function of position with the property that if B ⊆ R, then the mass of B is given
by B λ dA. In particular, this is true of B = R.
Example 20.1.6 Let R denote the inside of the polar curve r = 2 + sin θ . Let λ = 3 + x.
Find the total mass of R.
As above, this is
Z 2π Z 2+sin(θ )
27
(3 + r cos (θ )) rdrdθ = π
0 0 2
20.2 Exercises
1. Sketch a graph in polar coordinates of r = 2+sin (θ ) and find the area of the enclosed
region.
2. Sketch a graph in polar coordinates of r = sin (4θ ) and find the area of the region
enclosed. Hint: In this case, you need to worry and fuss about r < 0.
3. Suppose the density is λ (x, y) = 2 − x and the region is the interior of the cardioid
r = 1 + cos θ . Find the total mass.
4. Suppose the density is λ = 4 − x − y and find the mass of the plate which is between
the concentric circles r = 1 and r = 2.
5. Suppose the density is λ = 4 − x − y and find the mass of the plate which is inside
the polar graph of r = 1 + sin (θ ).
368 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
6. Suppose the density is 2 + x. Find the mass of the plate which is the inside of the
polar curve r = sin (2θ ). Hint: This is one of those fussy things with negative radius.
7. The area density of a plate is given by λ = 1 + x and the plate occupies the inside of
the cardioid r = 1 + cos θ . Find its mass.
8. The moment about R
the x axis of a plate with density λ occupying the region R is
defined
R
as m y = R yλ dA. The moment about the y axis of the same plate is mx =
R xλ dA. If λ = 2 − x, find the moments about the x and y axes of the plate inside
r = 2 + sin (θ ).
9. Using the above problem, find the moments about the x and y axes of a plate having
density 1 + x for the plate which is the inside of the cardioid r = 1 + cos θ .
10. Use the same plate as the above but this time, let the density be (2 + x + y). Find the
moments.
2 2
11. Let D = R(x, y) : x2 + y2 ≤ 25 . Find D e25x +25y dx dy. Hint: This is an integral of
R
the form D f (x, y) dA. Write in polar coordinates and it will be fairly easy.
12. Let D = (x, y) :Rx2 + y2 ≤ 16 . Find D cos 9x2 + 9y2 dx [Link]: This is an inte-
R
gral of the form D f (x, y) dA. Write in polar coordinates and it will be fairly easy.
13. Derive a formula for area between two polar graphs using the increment of area of
polar coordinates.
14. Use polar coordinates Rto evaluate the following integral. Here S is given in terms of
the polar coordinates. S sin 2x2 + 2y2 dV where r ≤ 2 and 0 ≤ θ ≤ 23 π.
2 2
15. Find S e2x +2y dV where S is given in terms of the polar coordinates r ≤ 2 and
R
0 ≤ θ ≤ π.
R y
16. Find dV where S is described in polar coordinates as 1 ≤ r ≤ 2 and 0 ≤ θ ≤ π/4.
Sx
2
17. Find S xy + 1 dV where S is given in polar coordinates as 1 ≤ r ≤ 2 and 0 ≤
R
θ ≤ 61 π.
18. A right circular cone has a base of radius 2 and a height equal to 2. Use polar
coordinates to find its volume.
19. Now suppose in the above problem, it is not really a cone but instead z = 2 − 12 r2 .
Find its volume.
z z
r ≥ 0, θ ∈ [0, 2π), z ∈ R
20.3. CYLINDRICAL AND SPHERICAL COORDINATES 369
z ρ cos (φ )
ρ ≥ 0, θ ∈ [0, 2π), φ ∈ [0, π]
(ρ, φ , θ )
z1 (r, θ , z1 )
•(x1 , y1 , z1 )
φ ρ
y1
θ y
r
x1 (x1 , y1 , 0)
x
In this picture, ρ is the distance between the origin, the point whose Cartesian coor-
dinates are (0, 0, 0) and the point indicated by a dot and labelled as (x1 , y1 , z1 ), (r, θ , z1 ),
and (ρ, φ , θ ). The angle between the positive z axis and the line between the origin and
the point indicated by a dot is denoted by φ , and θ is the angle between the positive x
axis and the line joining the origin to the point (x1 , y1 , 0) as shown, while r is the length
of this line. Thus r = ρ sin (φ ) and is the usual polar coordinate while θ is the other polar
coordinate. Letting z1 denote the usual z coordinate of a point in three dimensions, like
the one shown as a dot, (r, θ , z1 ) are the cylindrical coordinates of the dotted point. The
spherical coordinates are determined by (ρ, φ , θ ). When ρ is specified, this indicates that
the point of interest is on some sphere of radius ρ which is centered at the origin. Then
when φ is given, the location of the point is narrowed down to a circle of “latitude” and
finally, θ determines which point is on this circle by specifying a circle of “longitude”. Let
φ ∈ [0, π], θ ∈ [0, 2π), and ρ ∈ [0, ∞). The picture shows how to relate these new coordinate
systems to Cartesian coordinates. Note that θ is the same in the two coordinate systems
and that ρ sin φ = r.
Example 20.3.1 Find the volume of the three dimensional region between the graphs of
z = 4 − 2y2 and z = 4x2 + 2y2 .
370 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
Where do the two surfaces intersect? This happens when 4x2 + 2y2 = 4 − 2y2 which is
the curve in the xy plane, x2 + y2 = 1. Thus (x, y) is on the inside of this circle while z goes
from 4x2 + 2y2 to 4 − 2y2 . Denoting the unit disk by D, the desired integral is
Z Z 4−2y2
dzdA
D 4x2 +2y2
I will use the dA which corresponds to polar coordinates so this will then be in cylindrical
coordinates. Thus the above equals
Z 2π Z 1 Z 4−2(r2 sin2 (θ ))
dzrdrdθ = 2π
0 0 4(r2 cos2 (θ ))+2(r2 sin2 (θ ))
Note this is really not much different than simply using polar coordinates to integrate the
difference of the two values of z This is
Z Z
2 2 2
4 − 4r2 dA
4 − 2y − 4x + 2y dA =
D D
Z 2π Z 1
4 − 4r2 rdrdθ = 2π
=
0 0
Example 20.3.2 Find the volume of the three dimensional region between the graphs of
z = 0, z = x2 + y2 , and the cylinder (x − 1)2 + y2 = 1.
p
ρdϕ dρ
ρ sin(ϕ)dθ
In the picture there are two concentric spheres formed by making ρ two different con-
stants and surfaces which correspond to θ assuming two different constants and φ assuming
two different constants. These intersecting surfaces form the little box in the picture. Here
is a more detailed blow up of the little box.
ρ sin(φ )dθ
dθ
ρdφ
dρ
dφ
What is the volume of this little box? Length ≈ ρdφ , width ≈ ρ sin (φ ) dθ , height ≈ dρ
and so the volume increment for spherical coordinates is
dV = ρ 2 sin (φ ) dρdθ dφ
Now what is really going on? Consider the dot in the picture of the little box. Fixing θ
and φ at their values at this point and differentiating with respect to ρ leads to a little vector
372 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
of the form
sin (φ ) cos (θ )
sin (φ ) sin (θ ) dρ
cos (φ )
which points out from the surface of the sphere. Next keeping ρ and θ constant and differ-
entiating only with respect to φ leads to an infinitesimal vector in the direction of a line of
longitude,
ρ cos (φ ) cos (θ )
ρ cos (φ ) sin (θ ) dφ
−ρ sin (φ )
and finally keeping ρ and φ constant and differentiating with respect to θ leads to the third
infinitesimal vector which points in the direction of a line of latitude.
−ρ sin (φ ) sin (θ )
ρ sin (φ ) cos (θ ) dθ
0
To find the increment of volume, we just need to take the absolute value of the determi-
nant which has these vectors as columns, (Remember this is the absolute value of the box
product.) exactly as was the case for polar coordinates. This will also yield
dV = ρ 2 sin (φ ) dρdθ dφ .
However, in contrast to the drawing of pictures, this procedure is completely general
and will handle all curvilinear coordinate systems and in any dimension. This is discussed
more later.
2
R
Example 20.3.3 Find the volume of a ball, BR of radius R. Then find BR z dV where z is
the rectangular z coordinate of a point.
In this case, U = (0, R] × [0, π] × [0, 2π) and use spherical coordinates. Then this yields
a set in R3 which clearly differs from the ball of radius R only by a set having volume equal
to zero. It leaves out the point at the origin is all. Therefore, the volume of the ball is
Z Z
1 dV = ρ 2 sin φ dV
BR U
Z R Z π Z 2π
4
= ρ 2 sin φ dθ dφ dρ = R3 π.
0 0 0 3
The reason this was effortless, is that the ball, BR is realized as a box in terms of the
spherical coordinates. Remember what was pointed out earlier about setting up iterated
integrals over boxes.
As for the integral, it is no harder to set up. You know from the transformation equations
that z = ρ cos φ . Then you want
Z R Z π Z 2π
4
Z
zdV = (ρ cos (φ ))2 ρ 2 sin φ dθ dφ dρ = πR5
BR 0 0 0 15
This will be pretty easy also although somewhat more messy because the function you are
integrating is not just 1 as it is when you find the volume.
20.3. CYLINDRICAL AND SPHERICAL COORDINATES 373
Example 20.3.4 A cone is cut out of a ball of radius R as shown in the following picture,
the diagram on the left being a side view. The angle of the cone is π/3. Find the volume of
what is left.
π
3
This is entirely the wrong coordinate system to use for this problem but it is a good
exercise. Here is a side view.
You need to figure out what ρ is as a function of φ which goes from 0 to π/4. You
should get
Z 2π Z π/4 Z 4 sec(φ )
64
ρ 2 sin (φ ) dρdφ dθ = π
0 0 0 3
R
As to R zdV, it equals
z
Z 2π Z π/4 Z 4 sec(φ ) z }| {
ρ cos (φ )ρ 2 sin (φ ) dρdφ dθ = 64π
0 0 0
20.3. CYLINDRICAL AND SPHERICAL COORDINATES 375
z z
Therefore, the Jacobian determinant is
cos θ −r sin θ 0
det sin θ r cos θ 0 = r.
0 0 1
It follows the volume element in cylindrical coordinates is r dθ dr dz.
Example 20.3.9 In the cone of Example 20.3.7 set up the integrals for finding the volume
in cylindrical coordinates.
This is a better coordinate system for this example than spherical coordinates. This
time you should get
Z 2π Z 4 Z 4
64
rdzdrdθ = π
0 0 r 3
Example 20.3.10 This example uses spherical coordinates to verify an important conclu-
sion about gravitational force. Let the hollow sphere, H be defined by a2 < x2 +y2 +z2 < b2
and suppose this hollow sphere has constant density taken to equal 1. Now place a unit
(0, 0, z0 ) where |z0 | ∈ [a,b] . Show that the force of gravity acting on this
mass at the point
R (z−z0 )
unit mass is αG H 3/2 dV k and then show that if |z0 | > b then the force
[x2 +y2 +(z−z0 )2 ]
of gravity acting on this point mass is the same as if the entire mass of the hollow sphere
were placed at the origin, while if |z0 | < a, the total force acting on the point mass from
gravity equals zero. Here G is the gravitation constant and α is the density. In particular,
this shows that the force a planet exerts on an object is as though the entire mass of the
planet were situated at its center1 .
Without loss of generality, assume z0 > 0. Let dV be a little chunk of material located
at the point (x, y, z) of H the hollow sphere. Then according to Newton’s law of gravity, the
force this small chunk of material exerts on the given point mass equals
xi + yj + (z − z0 ) k 1
Gα dV =
|xi + yj + (z − z0 ) k| x2 + y2 + (z − z )2
0
1 This was shown by Newton in 1685 and allowed him to assert his law of gravitation applied to the planets as
1
(xi + yj + (z − z0 ) k) 3/2 Gα dV
2 2 2
x + y + (z − z0 )
Therefore, the total force is
1
Z
(xi + yj + (z − z0 ) k) 3/2 Gα dV.
H
x2 + y2 + (z − z0 )2
By the symmetry of the sphere, the i and j components will cancel out when the integral
is taken. This is because there is the same amount of stuff for negative x and y as there is
for positive x and y. Hence what remains is
(z − z0 )
Z
αGk h i3/2 dV
H
x2 + y2 + (z − z0 )2
as claimed. Now for the interesting part, the integral is evaluated. In spherical coordinates
this integral is.
(ρ cos φ − z0 ) ρ 2 sin φ
Z 2π Z b Z π
3/2 dφ dρ dθ . (20.1)
0 a 0 ρ 2 + z20 − 2ρz0 cos φ
Rewrite the inside integral and use integration by parts to obtain this inside integral equals
1 (2z0 ρ sin φ )
Z π
ρ 2 cos φ − ρz0
2z0 3/2 dφ =
0 ρ 2 + z20 − 2ρz0 cos φ
1 −ρ 2 − ρz0 ρ 2 − ρz0
−2 q + 2 q
2z0 ρ 2 + z20 + 2ρz0
ρ 2 + z20 − 2ρz0
sin
Z π
φ
− 2ρ 2 q dφ .
(20.2)
0 2 2
ρ + z0 − 2ρz0 cos φ
There are some cases to consider here.
First suppose z0 < a so the point is on the inside of the hollow sphere and it is always
the case that ρ > z0 . Then in this case, the two first terms reduce to
2ρ (ρ + z0 ) 2ρ (ρ − z0 ) 2ρ (ρ + z0 ) 2ρ (ρ − z0 )
q +q = + = 4ρ
(ρ + z0 ) ρ − z0
(ρ + z0 )2 (ρ − z0 )2
which equals
−ρ 2 2 1/2 π
ρ + z0 − 2ρz 0 cos φ |0
z20
−ρ 2ρ 2
= [(ρ + z0 ) − (z0 − ρ)] = − .
z20 z20
Thus the inner integral of 20.1 reduces to the above simple expression. Therefore, 20.1
equals
4 b3 − a3
Z 2π Z b
2
− 2 ρ 2 dρ dθ = − π
0 a z0 3 z20
and so
(z − z0 )
Z
αGk
h i3/2 dV
H
x2 + y2 + (z − z0 )2
4 b3 − a3
total mass
= αGk − π = −kG .
3 z20 z20
20.4 Exercises
1. Find the volume of the region bounded by z = 0, x2 + (y − 2)2 = 4, and z =
p
x2 + y2 .
378 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
p
2. Find the volume of the region z ≥ 0, x2 + y2 ≤ 4, and z ≤ 4 − x 2 + y2 .
3. Find the volume of the region which is between the surfaces z = 5y2 + 9x2 and z =
9 − 4y2 .
4. Find the volume of the region which is between z = x2 + y2 and z = 5 − 4x. Hint:
You might want to change variables at some point.
13. Convert the following integrals into integrals involving cylindrical coordinates and
then evaluate them.
√
R 2 R 4−x2 R x
(a) −2 0 0 xydzdydx
√
R 1 R 1−y2 R x+y
(b) −1 √ 2 0 dzdxdy
− 1−y
√
R 1 R 1−x2 R 1
(c) 0 0 x dzdydx
√ √
R a R a2 −x2 R a2 −x2 −y2
(d) For a > 0, −a √ √ dzdydx
− a2 −x2 − a2 −x2 −y2
√ √
R 1 R 1−x2 R 4−x2 −y2
(e) −1 √ √ dzdydx
− 2
1−x − 2 2
4−x −y
14. Convert the following integrals into integrals involving spherical coordinates and
then evaluate them.
√ √
R a R a2 −x2 R a2 −x2 −y2
(a) −a √ √ dzdydx
− a2 −x2 − a2 −x2 −y2
√ √
R 1 R 1−x2 R 1−x2 −y2
(b) −1 0
√ dzdydx
− 1−x2 −y2
√ √
R √2 R 2−x2 R 4−x2 −y2
(c) √ √ √ dzdydx
− 2 − 2−x2 x2 +y2
√ √
R √3 R 3−x2 R 4−x2 −y2
(d) √ √ dzdydx
− 3 − 3−x2 1
√ √
R 1 R 1−x2 R 4−x2 −y2
(e) −1
√ √ dzdydx
− 2
1−x − 2 2
4−x −y
The dot product is used to determine this volume of a parallelepiped spanned by the
given vectors and you should note that it is only the dot product that matters. Let
where u ∈ U an open set in R3 and corresponding to such a u ∈ U there exists a unique point
(x, y, z) ∈ V as above. Suppose at the point u0 ∈ U, there is an infinitesimal box having sides
du1 , du2 , du3 . Then this little box would correspond to something in V . What? Consider
the mapping from U to V defined by
x f1 (u1 , u2 , u3 )
x = y = f2 (u1 , u2 , u3 ) = f (u) (20.4)
z f3 (u1 , u2 , u3 )
which takes a point u in U and sends it to the point in V which is identified as (x, y, z)T ≡ x.
What happens to a point of the infinitesimal box? Such a point is of the form
s3 du3 s3 du3
where the last term may be taken equal to 0 because the vector (s1 du1 , s2 du2 , s3 du3 )T is
infinitesimal, meaning nothing precise, but conveying the idea that it is surpassingly small.
Therefore, a point of this infinitesimal box is sent to the vector
=Df (u10 ,u20 ,u30 )
z
}| { s1 du1
∂ x (u0 ) ∂ x (u0 ) ∂ x (u0 )
, , s2 du2 =
∂ u1 ∂ u2 ∂ u3
s3 du3
The situation is no different for general coordinate systems in any dimension. In gen-
eral, x = f (u) where u ∈ U, a subset of Rn and x is a point in V , a subset of n dimensional
space. Thus, letting the Cartesian coordinates of x be given by x = (x1 , · · · , xn )T , each xi
being a function of u, an infinitesimal box located at u0 corresponds tonan infinitesimal o
∂ x(u0 ) n
parallelepiped located at f (u0 ) which is determined by the n vectors ∂ ui dui i=1 .
20.5. THE GENERAL PROCEDURE 381
From Definition 20.5.1, the volume of this infinitesimal parallelepiped located at f (u0 ) is
given by
1/2
∂ x (u0 ) ∂ x (u0 )
det dui · du j (20.5)
∂ ui ∂uj
in which there is no sum on the repeated index. Now in general, if there are n vectors in
Rn , {v 1 , · · · , v n } ,
det (v i · v j )1/2 = |det (v 1 , · · · , v n )| (20.6)
where this last matrix is the n × n matrix which has the ith column equal to v i . The reason
for this is that the matrix whose i jth entry is v i · v j is just the product of the two matrices,
v T1
.
. (v 1 , · · · , v n )
.
v Tn
where the first on the left is the matrix having the ith row equal to v Ti while the matrix on the
right is just the matrix having the ith column equal to v i . Therefore, since the determinant
of a matrix equals the determinant of its transpose,
v T1
.
. (v 1 , · · · , v n ) = det (v 1 , · · · , v n )2
det (v i · v j ) = det
.
v Tn
and so taking square roots yields (20.6). Therefore, from the properties of determinants,
(20.5) equals
∂ x (u0 ) ∂ x (u0 ) ∂ x (u0 ) ∂ x (u0 )
det du1 , · · · , dun = det ,··· , du1 · · · dun
∂ u1 ∂ un ∂ u1 ∂ un
∂ (x1 , · · · xn )
,
∂ (u1 , · · · , un )
This has given motivation for the following fundamental procedure often called the
change of variables formula which holds under fairly general conditions.
382 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
∂ (x1 , · · · , xn )
Z Z
h (f (u)) dV = h (x) dV.
U ∂ (u1 , · · · , un ) f (U)
Example 20.5.4 Find the area of the region in R2 which is determined by the lines y =
2x, y = (1/2) x, x + y = 1, x + y = 3.
You might sketch this region. You will find it is an ugly quadrilateral. Let u = x+ y and
v = xy . The reason for this is that the given region corresponds to (u, v) ∈ [1, 3] × 12 , 2 , a
nice rectangle. Now we need to solve for x, y to obtain the Jacobian. A little computation
shows that
u uv
x= , y=
v+1 v+1
∂ (x,y)
Therefore, ∂ (u,v) is
1 u
− u
v+1 (v+1)2 =
det v u .
v+1 (v+1)2
(v + 1)2
20.6 Exercises
1. Verify the three dimensional volume increment in spherical coordinates is
ρ 2 sin (φ ) dρdφ dθ .
to the triangle having vertices at (0, 0) , (a, b), and (c, d) where (c, d) is not a multiple
of (a, b). Find the area of this last triangle by using the cross product. Next find the
area of this triangle using the√ change of variables formula and the fact that the area
of the equilateral triangle is 43 .
9. Here are three vectors. (4, 1, 2)T , (5, 0, 2)T , and (3, 1, 3)T . These vectors determine a
parallelepiped, R, which is occupied by a solid having density ρ = x. Find the mass
of this solid.
10. Here are three vectors. (5, 1, 6)T , (6, 0, 6)T , and (4, 1, 7)T . These vectors determine a
parallelepiped, R, which is occupied by a solid having density ρ = y. Find the mass
of this solid.
11. Here are three vectors. (5, 2, 9)T , (6, 1, 9)T , and (4, 2, 10)T . These vectors determine
a parallelepiped, R, which is occupied by a solid having density ρ = y + x. Find the
mass of this solid.
12. Compute the volume of a sphere of radius R using cylindrical coordinates.
13. Fill in all details for the following argument that
1√
Z ∞
2
e−x dx = π.
0 2
2
Let I = 0∞ e−x dx. Then
R
1
Z ∞Z ∞ Z π/2 Z ∞
2 +y2 2
I2 = e−(x ) dx dy = re−r dr dθ = π
0 0 0 0 4
from which the result follows.
(x−µ)2
∞ √1
R −
14. Show that −∞ 2πσ
e 2σ 2 dx = 1. Here σ is a positive number called the standard
deviation and µ is a number called the mean.
√
15. Show using Problem 13 that Γ 21 = π. Recall Γ (α) ≡ 0∞ e−t t α−1 dt.
R
R 1 p−1
16. Let p, q > 0 and define B (p, q) = 0 x (1 − x)q−1 . Show that
Hint: It is fairly routine if you start with the left side and proceed to change variables.
384 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
Definition 20.7.1 Let a solid occupy a region R such that its density is ρ (x) for x a point
in R and let L be a line. For x ∈ R, let l (x) be the distance from the point x to the line L.
The moment of inertia of the solid is defined as
Z
I= l (x)2 ρ (x) dV.
R
The reason the moment of inertia is of interest has to do with the total kinetic energy
of a solid occupying the region R which is rotating about the line L. Suppose its angular
velocity is ω. Then the kinetic energy of an infinitesimal chunk of volume located at point
x is 12 ρ (x) (l (x) ω)2 dV . Then using an integral to add these up, it follows the total kinetic
energy is
1 1
Z
ρ (x) l (x)2 dV ω 2 = Iω 2
2 R 2
Thus in the consideration of a rotating body, the moment of inertia takes the place of mass
when angular velocity takes the place of speed.
As to the center of mass, its significance is that it gives the point at which the mass will
balance. See Volume 1 to see this explained with point masses. The only difference is that
here the sums need to be replaced with integrals.
Example 20.7.2 Let a solid occupy the three dimensional region R and suppose the density
is ρ. What is the moment of inertia of this solid about the z axis? What is the center of
mass?
Here the little masses would be of the form ρ (x) dV where x is a point of R. Therefore,
the contribution of this mass to the moment of inertia would be x2 + y2 ρ (x) dV where
the Cartesian coordinates of the point x are (x, y, z). Then summing these up as an integral,
yields the following for the moment of inertia.
Z
x2 + y2 ρ (x) dV.
(20.7)
R
To find the center of mass, sum up rρ dV for the points in R and divide by the total
mass. In Cartesian coordinates, where r = (x, y, z), this means to sum up vectors of the
form (xρ dV, yρ dV, zρ dV ) and divide by the total mass. Thus the Cartesian coordinates of
the center of mass are
R R R R
xρ dV R yρ dV R zρ dV rρ dV
RR , R , R ≡ RR .
R ρ dV R ρ dV R ρ dV R ρ dV
Example 20.7.3 Find the moment of inertia about the z axis and center of mass of the solid
which occupies the region R defined by 9 − x2 + y2 ≥ z ≥ 0 if the density is ρ (x, y, z) =
p
x 2 + y2 .
p
This moment of inertia is R x2 + y2 x2 + y2 dV and the easiest way to find this
R
both equal zero because the above shape is symmetric about the z axis and ρ is also sym-
metric in its values. Thus xρ dV will cancel with −xρ dV and a similar conclusion will
hold for the y coordinate. It only remains to find the z coordinate of the center of mass, z.
In polar coordinates, ρ = r and so,
R 2π R 3 R 9−r2
zr2 dz dr dθ
R
zρ dV 18
z= RR = R0 R0 R0 2 = .
2π 3 9−r 7
R ρ dV 0 0 0 r2 dz dr dθ
20.8 Exercises
1. Let R denote the finite region bounded by z = 4 − x2 − y2 and the xy plane. Find zc ,
the z coordinate of the center of mass if the density σ is a constant.
2. Let R denote the finite region bounded by z = 4 − x2 − y2 and the xy plane. Find zc ,
the z coordinate of the center of mass if the density σ is equals σ (x, y, z) = z.
3. Find the mass and center of mass of the region between the surfaces z = −y2 + 8 and
z = 2x2 + y2 if the density equals σ = 1.
4. Find the mass and center of mass of the region between the surfaces z = −y2 + 8 and
z = 2x2 + y2 if the density equals σ (x, y, z) = x2 .
5. The two cylinders, x2 + y2 = 4 and y2 + z2 = 4 intersect in a region R. Find the mass
and center of mass if the density σ , is given by σ (x, y, z) = z2 .
6. The two cylinders, x2 + y2 = 4 and y2 + z2 = 4 intersect in a region R. Find the mass
and center of mass if the density σ , is given by σ (x, y, z) = 4 + z.
2
x2
7. Find the mass and center of mass of the set (x, y, z) such that 4 + y9 + z2 ≤ 1 if the
density is σ (x, y, z) = 4 + y + z.
8. Let R denote the finite region bounded by z = 9 − x2 − y2 and the xy plane. Find the
moment of inertia of this shape about the z axis given the density equals 1.
386 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
9. Let R denote the finite region bounded by z = 9 − x2 − y2 and the xy plane. Find the
moment of inertia of this shape about the x axis given the density equals 1.
10. Let B be a solid ball of constant density and radius R. Find the moment of inertia
about a line through a diameter of the ball. You should get 52 R2 M where M is the
mass..
11. Let B be a solid ball of density σ = ρ where ρ is the distance to the center of the ball
which has radius R. Find the moment of inertia about a line through a diameter of
the ball. Write your answer in terms of the total mass and the radius as was done in
the constant density case.
12. Let C be a solid cylinder of constant density and radius R. Find the moment of inertia
about the axis of the cylinder
You should get 12 R2 M where M is the mass.
13. Let C be a solid cylinder of constant density and radius R and mass M and let B be a
solid ball of radius R and mass M. The cylinder and the ball are placed on the top of
an inclined plane and allowed to roll to the bottom. Which one will arrive first and
why?
14. A ball of radius 4 has a cone taken out of the top which has an angle of π/2 and then
a cone taken out of the bottom which has an angle of π/3. If the density is λ = ρ,
find the z component of the center of mass.
15. A ball of radius 4 has a cone taken out of the top which has an angle of π/2 and then
a cone taken out of the bottom which has an angle of π/3. If the density is λ = ρ,
find the moment of inertia about the z axis.
16. Suppose a solid of mass M occupying the region B has moment of inertia, Il about a
line, l which passes through the center of mass of M and let l1 be another line parallel
to l and at a distance of a from l. Then the parallel axis theorem states Il1 = Il + a2 M.
Prove the parallel axis theorem. Hint: Choose axes such that the z axis is l and l1
passes through the point (a, 0) in the xy plane.
17. ∗Using the parallel axis theorem find the moment of inertia of a solid ball of radius
R and mass M about an axis located at a distance of a from the center of the ball.
Your answer should be Ma2 + 25 MR2 .
18. Consider all axes in computing the moment of inertia of a solid. Will the smallest
possible moment of inertia always result from using an axis which goes through the
center of mass?
19. Find the moment of inertia of a solid thin rod of length l, mass M, and constant
density about an axis through the center of the rod perpendicular to the axis of the
1 2
rod. You should get 12 l M.
20. Using the parallel axis theorem, find the moment of inertia of a solid thin rod of
length l, mass M, and constant density about an axis through an end of the rod per-
pendicular to the axis of the rod. You should get 13 l 2 M.
20.8. EXERCISES 387
21. Let the angle between the z axis and the sides of a right circular cone be α. Also
assume the height of this cone is h. Find the z coordinate of the center of mass of this
cone in terms of α and h assuming the density is constant.
22. Let the angle between the z axis and the sides of a right circular cone be α. Also
assume the height of this cone is h. Assuming the density is σ = 1, find the moment
of inertia about the z axis in terms of α and h.
23. Let R denote the part of the solid ball, x2 + y2 + z2 ≤ R2 which lies in the first octant.
That is x, y, z ≥ 0. Find the coordinates of the center of mass if the density is constant.
Your answer for one of the coordinates for the center of mass should be (3/8) R.
dL
=Γ
dt
where Γ is the total torque,
Γ ≡ ∑ ri × F i
where F i is the force on the ith point mass.
388 CHAPTER 20. THE INTEGRAL IN OTHER COORDINATES
Chapter 21
A parametric surface is the image of a vector valued function of two variables. Earlier,
vector valued functions of one variable were considered in the study of space curves. Here
there are two independent variables. This is why the result could be expected to be a
surface. For example, you could have
r (s,t) = x y z = s + t cos (s) sin (s) ts
for (s,t) ∈ (0, 1) × (0, 1). Each value of (s,t) gives a point on this surface. The surface
is smooth if all the component functions are C1 and r s × rt (s,t) ̸= 0. This last condition
assures the existence of a well defined normal vector to the surface, namely r s × rt (s,t).
Recall from the material on space curves that rt , r s are both tangent to curves which lie in
this surface. If this cross product were 0, you would get points or creases in the surface.
389
390 CHAPTER 21. THE INTEGRAL ON TWO DIMENSIONAL SURFACES IN R3
f (dV )
du2
dV f u2 (u0 )du2
f u1 (u0 )du1
u0 du1
From Definition 21.1.1, the two dimensional volume of this infinitesimal parallelepiped
located at f (u0 ) is given by
∂ f (u0 ) ∂ f (u0 ) ∂ f (u0 ) ∂ f (u0 )
du1 × du2 = × du1 du2 (21.1)
∂ u1 ∂ u2 ∂ u1 ∂ u2
= f u1 × f u2 du1 du2 (21.2)
It might help to think of a lizard. The infinitesimal parallelepiped is like a very small
scale on a lizard. This is the essence of the idea. To define the area of the lizard sum up
areas of individual scales1 . If the scales are small enough, their sum would serve as a good
approximation to the area of the lizard.
This motivates the following fundamental procedure which I hope is extremely familiar
from the earlier material.
1 This beautiful lizard is a Sceloporus magister. It was photographed by C. Riley Nelson who is in the Zoology
department at Brigham Young University © 2004 in Kane Co. Utah. The lizard is a little less than one foot in
length.
21.1. THE TWO DIMENSIONAL AREA IN R3 391
Definition 21.1.3 It is customary to write f u1 (u) × f u2 (u) = ∂ ∂(x(u1 ,x,u2 ,x)3 ) because this new
1 2
notation generalizes to far more general situations for which the cross product is not de-
fined. For example, one can consider three dimensional surfaces in R8 .
Example 21.1.4 Consider the surface given by z = x2 for (x, y) ∈ [0, 1] × [0, 1] = U. Find
the surface area of this surface.
and so T T p
fx ×fy = 1 0 2x × 0 1 0 = 1 + 4x2
√
and so the area element is 1 + 4x2 dx dy and the surface area is obtained by integrating
the function h (x) ≡ 1. Therefore, this area is
1√ √
Z 1Z 1p
1
Z
dA = 1 + 4x2 dx dy = 5 − ln −2 + 5
f (U) 0 0 2 4
which can be obtained by using the trig. substitution, 2x = tan θ on the inside integral.
Note this all depends on being able to write the surface in the form, x = f (u) for
u ∈ U ⊆ R p . Surfaces obtained in this form are called parametrically defined surfaces.
These are best but sometimes you have some other description of a surface and in these
cases things can get pretty intractable. For example, you might have a level surface of the
form 3x2 +p4y4 + z6 = 10. In this case, you could solve for z using methods of algebra.
Thus
z = 6 10 − 3x2 −4y4 and a parametric description of part of this level surface is
p
x, y, 6 10 − 3x2 − 4y4 for (x, y) ∈ U where U = (x, y) : 3x2 + 4y4 ≤ 10 . But what if
I really do not see how to use methods of algebra to solve for some variable in terms of the
others. It isn’t even clear to me whether there are any points (x, y, z) ∈ R3 satisfying this
particular relation. However, if a point satisfying this relation can be identified, the implicit
function theorem from advanced calculus can usually be used to assert one of the variables
is a function of the others, proving the existence of a parametrization at least locally. The
problem is, this theorem does not give the answer in terms of known functions so this is
not much help. Finding a parametric description of a surface is a hard problem and there
are no easy answers. This is a good example which illustrates the gulf between theory and
practice.
392 CHAPTER 21. THE INTEGRAL ON TWO DIMENSIONAL SURFACES IN R3
Example 21.1.5 Let U = [0, 12] × [0, 2π] and let f : U → R3 be given by
Find a double integral for the surface area. A graph of this surface is drawn below.
Then
T T
ft = −2 sint 2 cost 1 , fs = − sin s cos s 0
and
− cos s
ft × fs = − sin s
−2 sint cos s + 2 cost sin s
∂ (x1 ,x2 ,x3 )
and so ∂ (t,s) =
p
|f t × f s | = 5 − 4 sin2 t sin2 s − 8 sint sin s cost cos s − 4 cos2 t cos2 s.
If you really needed to find the number this equals, how would you go about finding it?
This is an interesting question and there is no single right answer. You should think about
this. Here is an example for which you will be able to find the integrals.
Example 21.1.6 Let U = [0, 2π] × [0, 2π] and for (t, s) ∈ U, let
Find the area of f (U). This is the surface of a donut shown below. The fancy name for
this shape is a torus.
1
0
-1
2
0 2
To find its area, 0
-2 -2
−2 sint − sint cos s − cost sin s
f t = −2 cost − cost cos s , f s = sint sin s
0 cos s
21.2. SURFACES OF THE FORM z = f (x, y) 393
Everything is the same as the preceding example except this time it is an integral of a
function. The area element is (cos s + 2) ds dt and so the integral called for is
2
Z 2π Z 2π z x on the surface
Z }| {
h dA = 2 cost + cost cos s (cos s + 2) ds dt = 22π 2
f (U) 0 0
fx fy
and q
fx ×fy = 1 + fy2 + fx2
so the area element is q
1 + fy2 + fx2 dx dy.
When the surface of interest comes in this simple form, people generally use this area
element directly rather than worrying about a parametrization and taking cross products.
In the case where the surface
q is of the form x = f (y, z) for (y, z) ∈ U, the area element is
obtained similarly and is 1 + fy2 + fz2 dy dz. I think you can guess what the area element
is if y = f (x, z).
There is also a simple geometric description of these area elements. Consider the sur-
face z = f (x, y). This is a level surface of the function of three variables z − f (x, y). In
fact the surface is simply z − f (x, y) = 0. Now consider the gradient of this function of
three variables. The gradient is perpendicular to the surface and the third component is
positive in this case. This gradient is (− fx , − fy , 1) and so the unit upward normal is just
√ 1 2 2 (− fx , − fy , 1). Now consider the following picture.
1+ fx + fy
θ
n k dA
θ dxdy
394 CHAPTER 21. THE INTEGRAL ON TWO DIMENSIONAL SURFACES IN R3
In this picture, you are looking at a chunk of area on the surface seen on edge and so it
seems reasonable to expect to have dx dy = dA cos θ . But it is easy to find cos θ from the
picture and the properties of the dot product.
n·k 1
cos θ = =q .
|n| |k| 1 + fx2 + fy2
q
Therefore, dA = 1 + fx2 + fy2 dx dy as claimed.
p
Example 21.2.1 Let z = x2 + y2 where (x, y) ∈ U for
U = (x, y) : x2 + y2 ≤ 4
R
Find S h dS where h (x, y, z) = x + z and S is the surface described as
p
x, y, x2 + y2
for (x, y) ∈ U.
√
Here you can see directly the angle in the above picture is π4 and so dA = 2 dx dy. If
q
you do not see this or if it is unclear, simply compute 1 + fx2 + fy2 and you will find it is
√
2. Therefore, using polar coordinates,
Z Z p √
h dS = x + x2 + y2 2 dA
S U
√ Z 2π Z 2 16 √
= 2 (r cos θ + r) r dr dθ = 2π.
0 0 3
I have been purposely vague about precise mathematical conditions necessary for the
above procedures. This is because the precise mathematical conditions which are usually
cited are very technical and at the same time far too restrictive. The most general conditions
under which these sorts of procedures are valid include things like Lipschitz functions de-
fined on very general sets. These are functions satisfying a Lipschitz condition of the form
|f (x) − f (y)| ≤ K |x − y|. For example, y = |x| is Lipschitz continuous. This function
does not have a derivative at every point. So it is with Lipschitz functions. However, it
turns out these functions have derivatives at enough points to push everything through but
this requires considerations involving the Lebesgue integral.
This graphs two surfaces, a cylinder and a sphere. The .7 makes the sphere slightly
transparent. You can adjust this number to be anything between 0 and 1 depending on how
transparent you want it to be. If you just wanted to graph the sphere, you could forget
about the hold on and simply include the first of the two lines beginning with “surf”. You
should experiment with this. These are parametrically defined surfaces because this is
more general than a surface of the form z = f (x, y) and the integral is defined on these
more general kinds of surfaces. Click on the little curvy arrow on the top to allow rotating
the graph to see it from different angles.
S ≡ S1 ∪ S2 ∪ · · · ∪ Sm
where Sk ≡ r k (Dk ) where Dk is one of the special regions just described and r k is one to
one and C1 on an open set Uk ⊇ Dk such that r u × r v ̸= 0. Then we assume that either
Sk ∩ S j = 0/ or their intersection is r k (lk ) = r j (l j ) where lk , l j are one of the four edges of
Dk and D j respectively. For example, say
and say lk is the top edge of Dk , {(u, T (u)) : u ∈ [a, b]}. Then from the definition, if f is
defined on S, and is 0 off Sk ∩ S j ,
Z Z b Z T (u)
f dS = f (u, v) |r ku × r kv | dvdu = 0
S a T (u)
Other situations are exactly similar. The point is, when you have a surface which is de-
fined piecewise as just described, you don’t need to bother with the curves of intersection
because the two dimensional iterated integral will be zero on these curves. The term for
this situation in the context of the Lebesgue integral is that the curve has measure zero. In
examples of interest, the situation is usually that surfaces intersect in sets of measure zero
and so as far as the integral is concerned, they are irrelevant.
0 −2 sin φ
−4 sin2 φ cos θ
= −4 sin2 φ sin θ dθ dφ = 4 sin φ dθ dφ
−4 sin φ cos φ
Therefore, since the hemisphere corresponds to θ ∈ [0, 2π] and φ ∈ [0, π/2], the integral to
work is
Z 2π Z π/2
1 1
(2 sin φ cos θ )2 + (2 sin φ cos θ + 2 cos φ ) ·
0 0 2 2
1
(2 sin φ sin θ ) + (2 sin φ sin θ ) 2 cos φ 4 sin (φ ) dφ dθ
2
21.6 Exercises
1. Find a parametrization for the intersection of the planes 4x + 2y + 4z = 3 and 6x −
2y = −1.
2. Find a parametrization for the intersection of the plane 3x + y + z = 1 and the circular
cylinder x2 + y2 = 1.
3. Find a parametrization for the intersection of the plane 3x + 2y + 4z = 4 and the
elliptic cylinder x2 + 4z2 = 16.
21.6. EXERCISES 397
4. Find a parametrization for the straight line joining (1, 3, 1) and (−2, 5, 3).
5. Find a parametrization for the intersection of the surfaces 4y + 3z = 3x2 + 2 and
3y + 2z = −x + 3.
6. Find the area of S if S is the part of the circular cylinder x2 + y2 = 4 which lies
between z = 0 and z = 2 + y.
7. Find the area of S if S is the part of the cone x2 + y2 = 16z2 between z = 0 and z = h.
8. Parametrizing the cylinder x2 + y2 = a2 by x = a cos v, y = a sin v, z = u, show that the
area element is dA = a du dv
and z = h.
where S is the hemisphere x2 + y2 + z2 = 4 between x = 0 and
R
13. Evaluate S (1 + x) dA
x = 2.
Find the area of f ([0, 2π] × [0, 2π]). Hint: Check whether f θ · f α = 0. This might
make the computations reasonable.
15. For (θ , α) ∈ [0, 2π] × [0, 2π], let
where
R
α is such that x = (cos θ (3 + 2 cos α) , − sin θ (3 + 2 cos α) , 2 sin α)T . Find
f ([0,2π]×[0,2π]) h dA. Hint: Check whether f θ · f α = 0. This might make the compu-
tations reasonable.
16. For (θ , α) ∈ [0, 2π] × [0, 2π], let
where
R
θ is such that x = (cos θ (4 + 3 cos α) , − sin θ (4 + 3 cos α) , 3 sin α)T . Find
f ([0,2π]×[0,2π]) h dA. Hint: Check whether f θ · f α = 0. This might make the compu-
tations reasonable.
17. In spherical coordinates, φ = c, ρ ∈ [0, R] determines a cone. Find the area of this
cone.
398 CHAPTER 21. THE INTEGRAL ON TWO DIMENSIONAL SURFACES IN R3
18. Let F = (x, y, z) and let S be the curved surface which comes from the intersection
of the plane zR = x with the paraboloid z = x2 + y2 . Find an iterated integral for the
flux integral S F · ndS where n is the field of unit normals which has negative z
component.
19. Let F = (x, 0, 0) and let S denote the surface which consists of the part of the sphere
x2 +y2 +z2 = 9 which lies between the planes z = 1 and z = 2. Find S F · ndS where
R
20. In the situation of the above problem change the vector field to F = (0, 0, z) and do
the same problem.
21. Show that for a sphere of radius a parameterized with spherical coordinates so that
the increment of surface area is a2 sin φ dθ dφ . Use to show that the area of a sphere
of radius a is 4πa2 .
Chapter 22
where the comma indicates a partial derivative is being taken with respect to the ith variable
and ∂i denotes differentiation with respect to the ith variable. In words, the divergence is
the sum of the ith derivative of the ith component function of f for all values of i. If p = 3,
the curl of the vector field yields another vector field and it is defined as follows.
where here ∂ j means the partial derivative with respect to x j and the subscript of i in
(curl (f ) (x))i means the ith Cartesian component of the vector curl (f ) (x). Thus the curl
is evaluated by expanding the following determinant along the top row.
i j k
∂ ∂ ∂
∂x ∂y ∂z .
f1 (x, y, z) f2 (x, y, z) f3 (x, y, z)
Note the similarity with the cross product. Sometimes the curl is called rot. (Short for
rotation not decay.) Also
∇2 f ≡ ∇ · (∇ f ) .
399
400 CHAPTER 22. CALCULUS OF VECTOR FIELDS
This last symbol is important enough that it is given a name, the [Link] is also de-
noted by ∆. Thus ∇2 f = ∆ f . In addition for f a vector field, the symbol f · ∇ is defined as
a “differential operator” in the following way.
∂ g (x) ∂ g (x) ∂ g (x)
f · ∇ (g) ≡ f1 (x) + f2 (x) + · · · + f p (x) .
∂ x1 ∂ x2 ∂ xp
Thus f · ∇ takes vector fields and makes them into new vector fields.
This definition is in terms of a given coordinate system but later coordinate free defini-
tions of the curl and div are presented. For now, everything is defined in terms of a given
Cartesian coordinate system. The divergence and curl have profound physical significance
and this will be discussed later. For now it is important to understand their definition in
terms of coordinates. Be sure you understand that for f a vector field, div f is a scalar field
meaning it is a scalar valued function of three variables. For a scalar field f , ∇ f is a vector
field described earlier. For f a vector field having values in R3 , curl f is another vector
field.
Example 22.1.2 Let f (x) = xyi + (z − y) j + (sin (x) + z) k. Find div f and curl f .
i j k
∂ ∂ ∂
∂x ∂y ∂z =
xy z − y sin (x) + z
∂ ∂ ∂ ∂
i (sin (x) + z) − (z − y) − j (sin (x) + z) − (xy) +
∂y ∂z ∂x ∂z
∂ ∂
k (z − y) − (xy) = −i − cos (x) j − xk.
∂x ∂y
Theorem 22.1.3 Assuming f, g are a C2 vector fields whenever necessary, the following
identities are valid.
1. ∇ · (∇ × f ) = 0
2. ∇ × ∇φ = 0
3. ∇ × (∇ × f ) = ∇ (∇ · f ) − ∇2 f where ∇2 f is a vector field whose ith component is
∇2 fi .
4. ∇ · (f × g) = g· (∇ × f ) − f · (∇ × g)
22.1. DIVERGENCE AND CURL OF A VECTOR FIELD 401
5. ∇ × (f × g) = (∇ · g) f − (∇ · f ) g+ (g·∇) f − (f ·∇) g
Proof: These are all easy to establish if you use the repeated index summation conven-
tion and the reduction identities.
∇ · (∇ × f ) = ∂i (∇ × f )i = ∂i ε i jk ∂ j fk = ε i jk ∂i (∂ j fk )
= ε jik ∂ j (∂i fk ) = −ε i jk ∂ j (∂i fk ) = −ε i jk ∂i (∂ j fk )
= −∇ · (∇ × f ) .
This establishes the first formula. The second formula is done similarly. Now consider the
third.
(∇ × (∇ × f ))i = ε i jk ∂ j (∇ × f )k = ε i jk ∂ j (ε krs ∂r fs )
=ε i jk
z}|{
= ε ki j ε krs ∂ j (∂r fs ) = (δ ir δ js − δ is δ jr ) ∂ j (∂r fs )
= ∂ j (∂i f j ) − ∂ j (∂ j fi ) = ∂i (∂ j f j ) − ∂ j (∂ j fi )
= ∇ (∇ · f ) − ∇2 f
i
∇ · (f × g) = ∂i (f × g)i = ∂i ε i jk f j gk
= ε i jk (∂i f j ) gk + ε i jk f j (∂i gk )
= ε ki j ∂i f j gk − ε jik ∂i gk fk
= ∇ × f · g − ∇ × g · f.
In verifying this you need to use the following manipulation which will generally hold
under reasonable conditions but which has not been carefully shown yet.
Z b Z b
∂ ∂h
h (x,t) dt = (x,t) dt. (22.2)
∂x a a ∂x
The above formula seems plausible because the integral is a sort of a sum and the deriva-
tive of a sum is the sum of the derivatives. However, this sort of sloppy reasoning will
get you into all sorts of trouble. The formula involves the interchange of two limit opera-
tions, the integral and the limit of a difference quotient. Such an interchange can only be
accomplished through a theorem. The following gives the necessary result.
∂h
Lemma 22.1.4 Suppose h and ∂x are continuous on the rectangle R = [c, d] × [a, b]. Then
(22.2) holds.
Proof: Let ∆x be such that x, x + ∆x are both in [c, d]. By Theorem 13.5.5 on Page 243
there exists δ > 0 such that if |(x,t) − (x1 ,t1 )| < δ , then
∂h ∂h ε
(x,t) − (x1 ,t1 ) < .
∂x ∂x b−a
Here θ t is a number between 0 and 1 and going from the second to the third line is an
application of the mean value theorem. ■
The second formula of Theorem 22.1.3 states ∇ × ∇φ = 0. This suggests the following
question: Suppose ∇×f = 0, does it follow there exists φ , a scalar field such that ∇φ = f ?
The answer to this is often yes and a theorem will be given and proved after the presentation
of Stoke’s theorem. This scalar field φ , is called a scalar potential for f .
u ∈ C2 (U) ∩C U
Therefore, u (x) + ε |x|2 also has its maximum in U because for ε small enough,
n o
u (x0 ) + ε |x0 |2 > u (x0 ) > max u (x) + ε |x|2 : x ∈ ∂U
a contradiction. ■
22.2 Exercises
1. Find div f and curl f where f is
T
(a) xyz, x2 + ln (xy) , sin x2 + z
(b) (sin x, sin y, sin z)T
(c) ( f (x) , g (y) , h (z))T
(d) (x − 2, y − 3, z − 6)T
T
(e) y2 , 2xy, cos z
(f) ( f (y, z) , g (x, z) , h (y, z))T
(a) 2xy
(b) x2 − y2
(c) sin x cosh y
(d) ln x2 + y2
p
(e) 1/ x2 + y2 + z2
10. Verify the formula given in (22.1) is a vector potential for g assuming that div g = 0.
11. Show that if ∇2 uk = 0 for each k = 1, 2, · · · , m, and ck is a constant, then
!
m
∇2 ∑ ck uk =0
k=1
also.
12. In Theorem 22.1.5, why is ∇2 ε |x|2 = 2nε?
13. Using Theorem 22.1.5, prove the following: Let f ∈ C (∂U) ( f is continuous on
∂U.) where U is a bounded open set. Then there exists at most one solution u ∈
C2 (U) ∩ C U and ∇2 u = 0 in U with u = f on ∂U. Hint: Suppose there are two
solutions ui , i = 1, 2 and let w = u1 − u2 . Then use the maximum principle.
14. Suppose B is a vector field and ∇ × A = B. Thus A is a vector potential for B.
Show that A+∇φ is also a vector potential for B. Here φ is just a C2 scalar field.
Thus the vector potential is not unique.
The following picture illustrates the above definition in the case of V cylindrical in the
z direction. Also labeled are the z components of the respective outer unit normals on the
sides and top and bottom.
1
nz = (1+ψ 2x +ψ 2y )1/2
z = ψ(x, y)
nz = 0
z = φ (x, y)
y
−1
x nz = (1+φ 2x +φ 2y )1/2
Of course, many three dimensional sets are cylindrical in each of the coordinate direc-
tions. For example, a ball or a rectangle or a tetrahedron are all cylindrical in each direction.
The following lemma allows the exchange of the volume integral of a partial derivative for
an area integral in which the derivative is replaced with multiplication by an appropriate
component of the unit exterior normal.
Lemma 22.3.2 Suppose V is cylindrical in the z direction and that φ and ψ are the func-
tions in the above definition. Assume φ and ψ are C1 functions and suppose F is a C1
function defined on V . Also, let n = (nx , ny , nz ) be the unit exterior normal to ∂V . Then
∂F
Z Z
(x, y, z) dV = Fnz dA.
V ∂z ∂V
∂F ∂F
Z Z Z ψ(x,y)
(x, y, z) dV = (x, y, z) dz dx dy (22.3)
V ∂z D φ (x,y) ∂z
Z
= [F (x, y, ψ (x, y)) − F (x, y, φ (x, y))] dx dy
D
Now the unit exterior normal on the top of V , the surface (x, y, ψ (x, y)) is
1
q −ψ x , −ψ y , 1 .
ψ 2x + ψ 2y + 1
This follows from the observation that the top surface is the level surface z − ψ (x, y) = 0
and so the gradient of this function of three variables is perpendicular to the level surface.
It points in the correct direction because the z component is positive. Therefore, on the top
surface
1
nz = q
ψ 2x + ψ 2y + 1
406 CHAPTER 22. CALCULUS OF VECTOR FIELDS
Note that here the z component is negative because since it is the outer normal it must point
y) ∈ ∂ D and z ∈ [φ (x, y) , ψ (x, y)], nz = 0.
down. On the lateral surface, the one where (x, q
The area element on the top surface is dA = ψ 2x + ψ 2y + 1 dx dy while the area element
q
on the bottom surface is φ 2x + φ 2y + 1 dx dy. Therefore, the last expression in (22.3) is of
the form,
nz dA
z }| {z }| {
1
Z q
F (x, y, ψ (x, y)) q ψ 2x + ψ 2y + 1 dx dy+
D ψ 2x + ψ 2y + 1
nz
z }| {z dA
}| {
−1
Z q
F (x, y, φ (x, y)) q φ 2x + φ 2y + 1 dx dy
D φ 2x + φ 2y + 1
Z
+ Fnz dA,
Lateral surface
theR last term equaling zero because on the lateral surface, nz = 0. Therefore, this reduces
to ∂V Fnz dA as claimed. ■
The following corollary is entirely similar to the above.
∂F
Z Z
dV = Fny dA
V ∂y ∂V
∂F
Z Z
dV = Fnx dA
V ∂x ∂V
Theorem 22.3.4 Let V be cylindrical in each of the coordinate directions and let F be a
C1 vector field defined on V . Then
Z Z
∇ · F dV = F · n dA.
V ∂V
22.3. THE DIVERGENCE THEOREM 407
∂ F1 ∂ F2 ∂ F3
Z Z
∇ · F dV = + + dV
V V ∂x ∂y ∂y
Z
= (F1 nx + F2 ny + F3 nz ) dA
Z∂V
= F · n dA. ■
∂V
The divergence theorem holds for much more general regions than this. Suppose for
example you have a complicated region which is the union of finitely many disjoint regions
of the sort just described which are cylindrical in each of the coordinate directions. Then
the volume integral over the union of these would equal the sum of the integrals over the
disjoint regions. If the boundaries of two of these regions intersect, then the area integrals
will cancel out on the intersection because the unit exterior normals will point in opposite
directions. Therefore, the sum of the integrals over the boundaries of these disjoint regions
will reduce to an integral over the boundary of the union of these. Hence the divergence
theorem will continue to hold. For example, consider the following picture. If the diver-
gence theorem holds for each Vi in the following picture, then it holds for the union of these
two.
V1 V2
General formulations of the divergence theorem involve Hausdorff measures and the
Lebesgue integral, a better integral than the old fashioned Riemannn integral which has
been obsolete now for almost 100 years. When all is said and done, one finds that the
conclusion of the divergence theorem is usually true and the theorem can be used with
confidence.
Example 22.3.5 Let V = [0, 1] × [0, 1] × [0, 1]. That is, V is the cube in the first octant
having the lower left corner at (0, 0, 0) and the sides of length 1. Let F (x, y, z) = xi + yj +
zk. Find the flux integral in which n is the unit exterior normal.
Z
F · ndS
∂V
You can certainly inflict much suffering on yourself by breaking the surface up into 6
pieces corresponding to the 6 sides of the cube, finding a parametrization for each face and
adding up the appropriate flux integrals. For example, n = k on the top face and n = −k
on the bottom face. On the top face, a parametrization is (x, y, 1) : (x, y) ∈ [0, 1] × [0, 1]. The
area element is just dxdy. It is not really all that hard to do it this way but it is much easier
to use the divergence theorem. The above integral equals
Z Z
div (F ) dV = 3dV = 3.
V V
408 CHAPTER 22. CALCULUS OF VECTOR FIELDS
Example 22.3.6 This time, let V be the unit ball, (x, y, z) : x2 + y2 + z2 ≤ 1 and let F (x, y, z) =
x2 i + y j+ (z − 1) k. Find Z
F · ndS.
∂V
Example 22.3.7 Suppose V is an open set in R3 for which the divergence theorem holds.
Let F (x, y, z) = xi + yj + zk. Then show that
Z
F · ndS = 3 × volume(V ).
∂V
The message of the divergence theorem is the relation between the volume integral and
an area integral. This is the exciting thing about this marvelous theorem. It is not its utility
as a method for evaluations of boring problems. This will be shown in the examples of its
use which follow.
Theorem 22.3.8 Let B (x, δ ) be the ball centered at x having radius δ and let F be a C1
vector field. Then letting v (B (x, δ )) denote the volume of B (x, δ ) given by
Z
dV,
B(x,δ )
it follows
1
Z
div F (x) = lim F · n dA. (22.4)
δ →0+ v (B (x, δ )) ∂ B(x,δ )
22.4. SOME APPLICATIONS OF THE DIVERGENCE THEOREM 409
Proof: The divergence theorem holds for balls because they are cylindrical in every
direction. Therefore,
1 1
Z Z
F · n dA = div F (y) dV.
v (B (x, δ )) ∂ B(x,δ ) v (B (x, δ )) B(x,δ )
1
Z
div F (x) − F · n dA
v (B (x, δ )) ∂ B(x,δ )
1
Z
= div F (x) − div F (y) dV
v (B (x, δ )) B(x,δ )
1
Z
= (div F (x) − div F (y)) dV
v (B (x, δ )) B(x,δ )
1
Z
≤ |div F (x) − div F (y)| dV
v (B (x, δ )) B(x,δ )
1
Z
ε
≤ dV < ε
v (B (x, δ )) B(x,δ ) 2
whenever ε is small enough, due to the continuity of div F . Since ε is arbitrary, this shows
(22.4). ■
How is this definition independent of coordinates? It only involves geometrical notions
of volume and dot product. This is why. Imagine rotating the coordinate axes, keeping
all distances the same and expressing everything in terms of the new coordinates. The
divergence would still have the same value because of this theorem.
Here n is the unit exterior normal at a small piece of ∂ B (x, ε) having area dA. By the
divergence theorem, (see Problem 1 on Page 426) this integral equals
Z
− ∇p dV.
B(x,ε)
Since it is given that the fluid does not move, the sum of these forces must equal zero. Thus
Z Z
ρg dV = ∇p dV.
B(x,ε) B(x,ε)
Since this must hold for any ball in the fluid of any radius, it must be that
∇p = ρg. (22.5)
It turns out that the pressure in a lake at depth z is equal to 62.5z. This is easy to see
from (22.5). In this case, g = gk where g = 32 feet/sec2 . The weight of a cubic foot of
water is 62.5 pounds. Therefore, the mass in slugs of this water is 62.5/32. Since it is a
cubic foot, this is also the density of the water in slugs per cubic foot. Also, it is normally
assumed that water is incompressible1 . Therefore, this is the mass of water at any depth.
Therefore,
∂p ∂p ∂p 62.5
i+ j+ k= × 32k.
∂x ∂y ∂z 32
and so p does not depend on x and y and is only a function of z. It follows p (0) = 0, and
p′ (z) = 62.5. Therefore, p (x, y, z) = 62.5z. This establishes the claim. This is interesting
but (22.5) is more interesting because it does not require ρ to be constant.
where n is the unit normal in the desired direction. Thus if V is a three dimensional body,
Z
Rate at which heat leaves V = J · n dA
∂V
1 There is no such thing as an incompressible fluid but this doesn’t stop people from making this assumption.
22.4. SOME APPLICATIONS OF THE DIVERGENCE THEOREM 411
∂
(ρ (x,t) c (x,t) u (x,t)) = ∇ · (k (u, x,t) ∇u (x,t)) + f (x, u,t) . (22.6)
∂t
Take an arbitrary V for which the divergence theorem holds. Then the time rate of
change of the heat in V is
Z Z Z
= k∇ (u) · n dA + f (x, u,t) dV = (∇ · (k∇ (u)) + f ) dV.
∂V V V
Since this holds for every sample volume V it must be the case that the above reaction
diffusion equation (22.6) holds. Note that more interesting equations can be obtained by
letting more of the quantities in the equation depend on temperature. However, the above
is a fairly hard equation and people usually assume the coefficient of thermal conductivity
depends only on x and that the reaction term f depends only on x and t and that ρ and c
are constant. Then it reduces to the much easier equation
∂ 1
u (x,t) = ∇ · (k (x) ∇u (x,t)) + f (x,t) . (22.7)
∂t ρc
This is often referred to as the heat equation. Sometimes there are modifications of this
in which k is not just a scalar but a matrix to account for different heat flow properties
in different directions. However, they are not much harder than the above. The major
mathematical difficulties result from allowing k to depend on temperature.
It is known that the heat equation is not correct even if the thermal conductivity did not
depend on u because it implies infinite speed of propagation of heat. However, this does
not prevent people from using it.
412 CHAPTER 22. CALCULUS OF VECTOR FIELDS
Since this holds for every sample volume V it must be the case that the equation of
continuity holds. Again, there are interesting mathematical questions here which can be
explored but since it is a physical derivation, it is not necessary to dwell too much on them.
If all the functions involved are continuous, it is certainly true but it is true under far more
general conditions than that.
Also note this equation applies to many situations and f might depend on more than
just y and t. In particular, f might depend also on temperature and the density ρ. This
would be the case for example if you were considering the mass of some chemical and f
represented a chemical reaction. Mass balance is a general sort of equation valid in many
contexts.
Let y (t, x) = (y1 (t, x) , y2 (t, x) , y3 (t, x)) denote the position with respect to Cartesian
coordinates at time t of the point whose position at time t = 0 is x = (x1 , x2 , x3 ). The
coordinates x are sometimes called the reference coordinates and sometimes the material
coordinates and sometimes the Lagrangian coordinates. The coordinates y are called the
Eulerian coordinates or sometimes the spacial coordinates and the function (t, x) → y (t, x)
is called the motion. Thus
y (0, x) = x. (22.9)
The derivative,
D2 y (t, x) ≡ Dx y (t, x)
is called the deformation gradient. Recall the notation means you fix t and consider the
function x → y (t, x), taking its derivative. Since it is a linear transformation, it is repre-
sented by the usual matrix, whose i jth entry is given by
∂ yi (t, x)
Fi j (x) = .
∂xj
Let ρ (t, y) denote the density of the material at time t at the point y and let ρ 0 (x) denote
the density of the material at the point x. Thus ρ 0 (x) = ρ (0, x) = ρ (0, y (0, x)). The first
task is to consider the relationship between ρ (t, y) and ρ 0 (x). The following picture is
useful to illustrate the ideas.
N
x y = y(t, x)
V0 Vt
y
n
Lemma 22.4.1 ρ 0 (x) = ρ (t, y (t, x)) det (F) and in any reasonable physical motion det (F) >
0.
Proof: Let V0 represent a small chunk of material at t = 0 and let Vt represent the same
chunk of material at time t. I will be a little sloppy and refer to V0 as the small chunk
of material at time t = 0 and Vt as the chunk of material at time t rather than an open set
representing the chunk of material. Then by the change of variables formula for multiple
integrals, Z Z
dV = |det (F)| dV.
Vt V0
If det (F) = 0 for some t the above formula shows that the chunk of material went from pos-
itive volume to zero volume and this is not physically possible. Therefore, it is impossible
that det (F) can equal zero. However, at t = 0, F = I, the identity because of 22.9. There-
fore, det (F) = 1 at t = 0 and if it is assumed t → det (F) is continuous it follows by the inter-
mediate value theorem that det (F) > 0 for all
t. ■
Of course it is not known for sure that this function is continuous but the above shows
why it is at least reasonable to expect det (F) > 0.
414 CHAPTER 22. CALCULUS OF VECTOR FIELDS
as claimed. Note this shows that det (F) is a magnification factor for the density.
Now consider a small chunk of material, Vt at time t which corresponds to V0 at time
t = 0. The total linear momentum of this material at time t is
Z
ρ (t, y) v (t, y) dV
Vt
where v is the velocity. By Newton’s second law, the time rate of change of this linear
momentum should equal the total force acting on the chunk of material. In the following
derivation, dV (y) will indicate the integration is taking place with respect to the variable,
y. By Lemma 22.4.1 and the change of variables formula for multiple integrals
Z
d
ρ (t, y) v (t, y) dV (y)
dt Vt
Z
d
= ρ (t, y (t, x)) v (t, y (t, x)) det (F) dV (x)
dt V0
Z Z
d ∂ v ∂ v ∂ yi
= ρ 0 (x) v (t, y (t, x)) dV (x) = ρ 0 (x) + dV (x)
dt V0 V0 ∂t ∂ yi ∂t
1 ∂ v ∂ v ∂ yi
Z
= ρ 0 (x) + det (F) dV (x)
V0 det (F) ∂t ∂ yi ∂t
=ρ 0 (x)
Z z }| { 1 ∂v ∂v ∂y
i
= ρ (t, y (t, x)) det (F) + det (F) dV (y)
V0 det (F) ∂t ∂ yi ∂t
∂ v ∂ v ∂ yi
Z
= ρ (t, y (t, x)) + det (F) dV (y)
V0 ∂t ∂ yi ∂t
∂ v ∂ v ∂ yi
Z Z
= ρ (t, y) + dV (y) = ρ (t, y) v̇ dV (y)
Vt ∂t ∂ yi ∂t Vt
where the dot on v indicates it is the total derivative. Having taken the derivative of the
total momentum, it is time to consider the total force acting on the chunk of material.
The force comes from two sources, a body force b and a force which acts on the bound-
ary of the chunk of material called a traction force. Typically, the body force is something
like gravity in which case, b = −gρk, assuming the Cartesian coordinate system has been
chosen in the usual manner. The traction force is of the form
Z
s (t, y, n) dA
∂Vt
22.4. SOME APPLICATIONS OF THE DIVERGENCE THEOREM 415
where n is the unit exterior normal. Thus the traction force depends on position, time, and
the orientation of the boundary of Vt . Cauchy showed the existence of a linear transfor-
mation T (t, y) such that T (t, y) n = s (t, y, n). It follows there is a matrix Ti j (t, y) such
that the ith component of s is given by si (t, y, n) = Ti j (t, y) n j . Cauchy also showed this
matrix is symmetric, Ti j = T ji . It is called the Cauchy stress. Using Newton’s second law to
equate the time derivative of the total linear momentum with the applied forces and using
the usual repeated index summation convention,
Z Z Z
ρ (t, y) v̇ dV (y) = b (t, y) dV (y) + ei Ti j (t, y) n j dA,
Vt Vt ∂ Bt
the sum taken over repeated indices. Here is where the divergence theorem is used. In
the last integral, the multiplication by n j is exchanged for the jth partial derivative and an
integral over Vt . Thus
the sum taken over repeated indices. Since Vt was arbitrary, it follows
∂ Ti j
(div T )i = .
∂yj
The term ∂∂tv + ∂∂ yvi ∂∂tyi , is the total derivative with respect to t of the velocity v. Thus you
might see this written as
ρ v̇ = b + div (T ) .
The above formulation of the balance of momentum involves the spatial coordinates y
but people also like to formulate momentum balance in terms of the material coordinates
x. Of course this changes everything.
The momentum in terms of the material coordinates is
Z
ρ 0 (x) v (t, x) dV
V0
the first term on the right being the contribution of the body force given per unit volume
in the material coordinates and the last term being the traction force discussed earlier. The
task is to write this last integral as one over ∂V0 . For y ∈ ∂Vt there is a unit outer normal n.
Here y = y (t, x) for x ∈ ∂V0 . Then define N to be the unit outer normal to V0 at the point
x. Near the point y ∈ ∂Vt the surface ∂Vt is given parametrically in the form y = y (s,t)
for (s,t) ∈ D ⊆ R2 and it can be assumed the unit normal to ∂Vt near this point is
y s (s,t) × yt (s,t)
n=
|y s (s,t) × yt (s,t)|
with the area element given by |y s (s,t) × yt (s,t)| ds dt. This is true for y ∈ Pt ⊆ ∂Vt , a
small piece of ∂Vt . Therefore, the last integral in 22.10 is the sum of integrals over small
pieces of the form Z
Ti j n j dA (22.11)
Pt
where Pt is parameterized by y (s,t), (s,t) ∈ D. Thus the integral in 22.11 is of the form
Z
Ti j (y (s,t)) (y s (s,t) × yt (s,t)) j ds dt.
D
Summation over repeated indices is used. Remember y = y (t, x) and it is always assumed
the mapping x → y (t, x) is one to one and so, since on the surface ∂Vt near y, the points
are functions of (s,t), it follows x is also a function of (s,t). Now by the properties of the
cross product, this last integral equals
∂ xα ∂ xβ ∂ y ∂y
Z
Ti j (x (s,t)) × ds dt (22.12)
D ∂ s ∂t ∂ xα ∂ xβ j
where here x (s,t) is the point of ∂V0 which corresponds with y (s,t) ∈ ∂Vt . Thus
Ti j (x (s,t)) = Ti j (y (s,t)) .
(Perhaps this is a slight abuse of notation because Ti j is defined on ∂Vt , not on ∂V0 , but it
avoids introducing extra symbols.) Next 22.12 equals
∂ xα ∂ xβ ∂ ya ∂ yb
Z
Ti j (x (s,t)) ε jab ds dt
D ∂ s ∂t ∂ xα ∂ xβ
∂ xα ∂ xβ ∂ ya ∂ yb
Z
= Ti j (x (s,t)) ε cab δ jc ds dt
D ∂ s ∂t ∂ xα ∂ xβ
=δ jc
z }| {
∂ xα ∂ xβ ∂ yc ∂ x p ∂ ya ∂ yb
Z
= Ti j (x (s,t)) ε cab ds dt
D ∂ s ∂t ∂ x p ∂ y j ∂ xα ∂ xβ
22.4. SOME APPLICATIONS OF THE DIVERGENCE THEOREM 417
=ε pαβ det(F)
}|
z {
∂ xα ∂ xβ ∂ x p ∂ yc ∂ ya ∂ yb
Z
= Ti j (x (s,t)) ε cab ds dt
D ∂ s ∂t ∂ y j ∂ x p ∂ xα ∂ xβ
∂ xα ∂ xβ ∂ x p
Z
= (det F) Ti j (x (s,t)) ε pαβ ds dt.
D ∂ s ∂t ∂ y j
∂ xp
Now ∂yj = Fp−1
j and also
∂ xα ∂ xβ
= (xs × xt ) p
ε pαβ
∂ s ∂t
so the result just obtained is of the form
Z
(det F) Fp−1
j Ti j (x (s,t)) (xs × xt ) p ds dt =
D
Z
(det F) Ti j (x (s,t)) F −T
jp
(xs × xt ) p ds dt.
D
This has transformed the integral over Pt to one over P0 , the part of ∂V0 which corresponds
with Pt . Thus the last integral is of the form
Z
det (F) T F −T
ip
N p dA
P0
Summing these up over the pieces of ∂Vt and ∂V0 , yields the last integral in 22.10 equals
Z
det (F) T F −T
ip
N p dA
∂V0
−T
The matrix det (F) T F ip
is called the Piola Kirchhoff stress S. An application of the
divergence theorem yields
Z Z Z ∂ det (F) T F −T ip
ρ 0 (x) vt (t, x) dV = b0 (t, x) dV + ei dV.
V0 V0 V0 ∂ xp
Since V0 is arbitrary, a balance law for momentum in terms of the material coordinates is
obtained
∂ det (F) T F −T ip
ρ 0 (x) vt (t, x) = b0 (t, x) + ei
∂ xp
= b0 (t, x) + div det (F) T F −T
As just shown, the relation between the Cauchy stress and the Piola Kirchhoff stress is
S = det (F) T F −T ,
(22.14)
418 CHAPTER 22. CALCULUS OF VECTOR FIELDS
This next lemma is a very interesting observation about the determinant of a matrix
added to the identity.
Lemma 22.4.2 det (I +U) = 1 + trace (U) + o (U) where o (U) is defined in terms of the
Frobenius norm for p × p matrices.
That last term follows from observing that you have some Ukn times terms which have at
least one other factor involving some Un j . Simply expand the resulting cofactors along the
bottom row. Therefore, multiplying this out gives 1 + trace (U) + o (U) . ■
With this lemma, it is easy to find D det (F) whenever F is invertible.
Therefore,
det (F +U) − det (F) = det (F) trace F −1U + o (U)
Proposition 22.4.3 Let F −1 exist. Then D det (F) (U) = det (F) trace F −1U .
From this, suppose F (t) is a p × p matrix and all entries are differentiable. Then the
following describes dtd det (F) (t) .
Proposition 22.4.4 Let F (t) be a p × p matrix and all entries are differentiable. Then
d
det (F) (t) = det (F (t)) trace F −1 (t) F ′ (t)
dt
= det (F (t)) trace F ′ (t) F −1 (t)
(22.15)
The situation of interest is where x is the material coordinates and y the spacial co-
ordinates and y = h (t, x) with F = F (t, x) = D2 h (t, x) . I will write ∇y to indicate the
gradient with respect to the y variables and F ′ to indicate ∂t
∂
F (t, x). Note that h (t, x) = y
and so by the inverse function theorem, this defines x as a function of y, also as smooth as
h because it is always assumed det F > 0.
Now let Vt be h (t,V0 ) where V0 is an open set whose boundary is sufficient for using
the divergence theorem. Let f (y,t) be differentiable with as many derivatives as needed
to make the computations valid. The idea is to simplify
d
Z
f (t, y) dV (y)
dt Vt
This will involve the change of variables in which the Jacobian will be det (F) . It will not
be necessary to take the absolute value because det (F) ≤ 0 is not physically possible. Then,
it is fairly routine to justify the interchange of the derivative and the integral under suitable
assumptions. The best would be to use the dominated convergence theorem, but formally,
it is like saying the derivative of a sum is the sum of the derivatives. There is of course
the question whether the divergence theorem will continue to hold for Vt . This will end
up holding under typical assumptions normally used for assumptions that the divergence
theorem will hold for V0 . For example, if h (t, ·) is smooth and the boundary of V0 is
Lipschitz, all will be well, but this is an application of things like Rademacher’s theorem
and the area formula.
d d
Z Z
f (t, y) dV (y) = f (t, h (t, x)) det (F) dV (x) (22.16)
dt Vt dt V0
420 CHAPTER 22. CALCULUS OF VECTOR FIELDS
Z Z
∂ ∂
= f (·, h (·, x)) det (F) dV (x) + f (t, h (t, x)) (det (F)) dV (x)
V0 ∂t V0 ∂t
Z
∂
= f (t, h (t, x)) det (F) dV (x)
∂t
V0
Z
+ f (t, h (t, x)) trace F ′ F −1 det (F) dV (x)
V0
Z
∂ ∂ f ∂ yi
= f (t, h (t, x)) + det (F) dV (x)
V0 ∂t ∂ yi ∂t
Z
f (t, h (t, x)) trace F ′ F −1 det (F) dV (x)
+
V0
∂ f ∂ yi
Z Z
∂
+ f (t, y) trace F ′ F −1 dV (y)
= f (t, y) dV (y) +
Vt ∂t Vt ∂ yi ∂t
∂
Now v = ∂t h (t, x) and also, as noted above, y = h (t, x) defines y as a function of x and
so trace F F −1 = ∂∂xvαi ∂∂xyαi . Hence the double sum ∂∂xvαi ∂∂xyαi is ∂∂ vyii = ∇y · v. The above then
′
gives
Z
∂ f ∂ yi
Z
∂
f (t, y) dV (y) + + f (t, y) ∇y · v dV (y)
Vt ∂t Vt ∂ yi ∂t
Z Z
∂
= f (t, y) dV (y) + (D1 f (y, t) v + f (t, y) ∇y · v) dV (y) (22.17)
Vt ∂t Vt
Now consider the ith component of the second integral in the above. It is
Z
∇y fi (t, y) · v + f (t, y) ∇y · vdV (y)
Vt
Z
= ∇y · ( fi (t, y) v) dV (y)
Vt
the new spacial coordinates are denoted by y ′ . Recall an orthogonal transformation is just
one which satisfies
Q (t)T Q (t) = Q (t) Q (t)T = I.
The stress has to do with the traction force area density produced by internal changes in
the body and has nothing to do with the way the body is observed. Therefore, it is required
that
T ′ n′ = QT n
Thus
T ′ Qn = QT n
Since this is true for any n normal to the boundary of any piece of the material considered,
it must be the case that
T ′ Q = QT
and so
T ′ = QT QT .
This is called frame indifference.
By 22.14, the Piola Kirchhoff stress S is related to T by
S = det (F) T F −T , F ≡ Dx y.
This stress involves the use of the material coordinates and a normal N to a piece of the
body in reference configuration. Thus SN gives the force on a part of ∂Vt per unit area on
∂V0 . Then for a different choice of spacial coordinates, y ′ = q (t) + Q (t) y,
−T
S′ = det F ′ T ′ F ′
but
F ′ = Dx y ′ = Q (t) Dx y = QF
and so frame indifference in terms of S is
This principle of frame indifference is sometimes ignored and there are certainly inter-
esting mathematical models which have resulted from doing this, but such things cannot be
considered physically acceptable.
There are also many other physical properties which can be included, which require a
certain form for the constitutive equations. These considerations are outside the scope of
this book and require a considerable amount of linear algebra.
There are also balance laws for energy which you may study later but these are more
problematic than the balance laws for mass and momentum. However, the divergence
theorem is used in these also.
422 CHAPTER 22. CALCULUS OF VECTOR FIELDS
0 0 −P
Then div T = −∇P. Also suppose the only body force is from gravity, a force of the form
−ρgk, so from the balance of momentum
Now in all this, the coordinates are the spacial coordinates, and it is assumed they are
rectangular. Thus x = (x, y, z)T and v is the velocity while v̇ is the total derivative of
v = (v1 , v2 , v3 )T given by vt + vi v ,i . Take the dot product of both sides of 22.18 with v.
This yields
d dz d
(ρ/2) |v|2 = −ρg − P (x) .
dt dt dt
Therefore, !
d ρ |v|2
+ ρgz + P (x) = 0,
dt 2
ρ |v|2
+ ρgz + P (x) = C′
2
For convenience define γ to be the weight density of this fluid. Thus γ = ρg. Divide by γ.
Then
|v|2 P (x)
+z+ = C.
2g γ
This is Bernoulli’s2 principle. Note how, if you keep the height the same, then if you raise
|v|, it follows the pressure drops.
This is often used to explain the lift of an airplane wing. The top surface is curved,
which forces the air to go faster over the top of the wing, causing a drop in pressure which
creates lift. It is also used to explain the concept of a venturi tube in which the air loses
pressure due to being pinched which causes it to flow faster. In many of these applica-
tions, the assumptions used in which ρ is constant, and there is no other contribution to the
traction force on ∂ B than pressure, so in particular, there is no viscosity, are not correct.
However, it is hoped that the effects of these deviations from the ideal situation are small
enough that the conclusions are still roughly true. You can see how using balance of mo-
mentum can be used to consider more difficult situations. For example, you might have a
body force which is more involved than gravity.
2 There were many Bernoullis. This is Daniel Bernoulli. He seems to have been nicer than some of the others.
Daniel was actually a doctor who was interested in [Link] lived from 1700-1782.
22.4. SOME APPLICATIONS OF THE DIVERGENCE THEOREM 423
utt − c∆u = 0.
The wave equation is utt − c∆u = 0 and so the above gives three wave equations, one for
each component.
of the ball, B (0, r) is 34 πr3 . This follows the above pattern. You just take the derivative
424 CHAPTER 22. CALCULUS OF VECTOR FIELDS
with respect to the radius of the volume of the ball of radius r to get the area of the surface
of this ball. Let ω n denote the area of the sphere Sn−1 = {x ∈ Rn : |x| = 1}. I just showed
that ω n = nα n .
I want to find α n now and also to get a relationship between ω n and ω n−1 . Consider
the following picture of the ball of radius ρ seen on the side.
r
y
ρ Rn−1
Taking slices at height y as shown and using that these slices have n − 1 dimensional
area equal to α n−1 rn−1 , it follows
Z ρ (n−1)/2
α nρ n = 2 α n−1 ρ 2 − y2 dy
0
π n/2
Theorem 22.4.5 α n = Γ( n2 +1)
where Γ denotes the gamma function, defined for α > 0 by
Z ∞
Γ (α) ≡ e−t t α−1 dt.
0
Proof: Recall that Γ (α + 1) = αΓ (α). Now note the given formula holds if n = 1
because √
1 1 1 π
Γ +1 = Γ = .
2 2 2 2
√
(I leave it as an exercise for you to verify that Γ 12 = π. This is also outlined in an
√
π
exercise in Volume 1.) Thus α 1 = 2 = √π/2 satisfying the formula. Now suppose this
formula holds for k ≤ n. Then from the induction hypothesis, (22.23), (22.22), (22.20) and
(22.21),
n
Z π/2 Z π/2
α n+1 = 2α n sinn+1 (θ ) dθ = 2α n sinn−1 (θ ) dθ
0 n+1 0
Γ n−2
n α n−1 π n/2 n 1/2 2 +1
= 2α n = π
Γ 2n + 1 n + 1
Γ n−1
n + 1 2α n−2 2 +1
n−2
π n/2 n 1/2 Γ 2 +1
= π
Γ n−2
n
Γ n−1
2 +1 2
n+1 2 +1
1 1 1 1
= 2π (n+1)/2 n−1
= π (n+1)/2 n+1
n−1
n+1 Γ 2 +1 2 Γ 2 +1
1 π (n+1)/2
= π (n+1)/2 n+1 n+1
= . ■
Γ n+1
2 Γ 2 2 +1
22.4.12 Electrostatics
Coloumb’s law says that the electric field intensity at x of a charge q located at point x0 is
given by
q (x − x0 )
E=k
|x − x0 |3
where the electric field intensity is defined to be the force experienced by a unit positive
charge placed at the point x. Note that this is a vector and that its direction depends on the
sign of q. It points away from x0 if q is positive and points toward x0 if q is negative. The
constant k is a physical constant like the gravitation constant. It has been computed through
careful experiments similar to those used with the calculation of the gravitation constant.
The interesting thing about Coloumb’s law is that E is the gradient of a function. In
fact,
1
E = ∇ qk .
|x − x0 |
The other thing which is significant about this is that in three dimensions and for x ̸= x0 ,
1
∇ · ∇ qk = ∇ · E = 0. (22.24)
|x − x0 |
426 CHAPTER 22. CALCULUS OF VECTOR FIELDS
where E is the electric field intensity due to a charge, q located at the point x0 ∈ U, a
bounded open set for which the divergence theorem holds.
Let Uε denote the open set obtained by removing the open ball centered at x0 which
has radius ε where ε is small enough that the following picture is a correct representation
of the situation.
ε
x0 Uε
Bε
x−x0
Then on the boundary of Bε the unit outer normal to Uε is − |x−x | . Therefore, 0
q (x − x0 )
x − x0
Z Z
E · ndS = − k dS3
·
∂ Bε ∂ Bε |x − x0 | |x − x0 |
1 −kq
Z Z
= −kq 2
dS = dS
∂ Bε |x − x0 | ε 2 ∂ Bε
−kq
= 4πε 2 = −4πkq.
ε2
Therefore, from the divergence theorem and observation (22.24),
Z Z Z
−4πkq + E · ndS = E · ndS = ∇ · EdV = 0.
∂U ∂Uε Uε
R
It follows that 4πkq = ∂U E · ndS. If there are several charges located inside U, say
q1 , q2 , · · · , qn , then letting E i denote the electric field intensity of the ith charge and E
denoting the total resulting electric field intensity due to all these charges,
Z n Z n n
E · ndS = ∑ E i · ndS = ∑ 4πkqi = 4πk ∑ qi .
∂U i=1 ∂U i=1 i=1
22.5 Exercises
1. To prove the divergence theorem, it was shown first that the spacial partial deriva-
tive in the volume integral could be exchanged for multiplication by an appropriate
component of the exterior normal. This problem starts with the divergence theorem
and goes the Rother direction. Assuming the divergenceR theorem, holds for a region
V , show that ∂V nu dA = V ∇u dV . Note this implies V ∂∂ ux dV = ∂V n1 u dA.
R R
22.5. EXERCISES 427
2. Fick’s law for diffusion states the flux of a diffusing species, J is proportional to
the gradient of the concentration, c. Write this law getting the sign right for the
constant of proportionality and derive an equation similar to the heat equation for
the concentration, c. Typically, c is the concentration of some sort of pollutant or a
chemical.
3. Sometimes people consider diffusion in materials which are not homogeneous. This
means that J = −K∇c where K is a 3 × 3 matrix. Thus in terms of components,
Ji = − ∑ j Ki j ∂∂xcj . Here c is the concentration which means the amount of pollutant
or whatever is diffusing in a volume is obtained by integrating c over the volume.
Derive a formula for a nonhomogeneous model of diffusion based on the above.
R
4. Let V be such that the divergence theorem holds. Show that V ∇ · (u∇v) dV =
R ∂v ∂v
∂V u ∂ n dA where n is the exterior normal and ∂ n denotes the directional derivative
of v in the direction n.
5. Let V be such that the divergence theorem holds. Show that
Z
∂u ∂v
Z
2 2
v∇ u − u∇ v dV = v −u dA
V ∂V ∂n ∂n
∂u
where n is the exterior normal and ∂n is defined in Problem 4.
14. Verify (22.19) from (22.13) and the assumption that S = kF.
15. Show that if uk , k = 1, 2, · · · , n each satisfies (22.7) with f = 0 then for any choice of
constants c1 , · · · , cn , so does ∑nk=1 ck uk .
16. Suppose k (x) = k, a constant and f = 0. Then in one dimension, the heat equation is
2
of the form ut = αuxx . Show that u (x,t) = e−αn t sin (nx) satisfies the heat equation3 .
17. Let U
R
be a three dimensional
R
region for which the divergence theorem holds. Show
that U ∇ × F dx = ∂U n × F dS where n is the unit outer normal.
18. In a linear, viscous, incompressible fluid, the Cauchy stress is of the form
vi, j (t, y) + v j,i (t, y)
Ti j (t, y) = λ − pδ i j
2
This is the famous Navier Stokes equation for incompressible viscous linear flu-
ids. There are still open questions related to this equation, one of which is worth
$1,000,000 at this time.
3 Fourier, an officer in Napoleon’s army studied solutions to the heat equation back in 1813. He was interested
in heat flow in cannons. He sought to find solutions by adding up infinitely many solutions of this form. Actually,
it was a little more complicated because cannons are not one dimensional but it was the beginning of the study of
Fourier series, a topic which fascinated mathematicians for the next 150 years and motivated the development of
analysis.
Chapter 23
d y = t(x)
x = l(y) U x = r(y)
c y = b(x)
a b
I will refer to such a region as being convex in both the x and y directions.
Lemma 23.1.1 Let F (x, y) ≡ (P (x, y) , Q (x, y)) be a C1 vector field defined near U where
U is a region of the sort indicated in the above picture which is convex in both the x and
y directions. Suppose also that the functions r, l,t, and b in the above picture are all C1
functions and denote by ∂U the boundary of U oriented such that the direction of motion is
counter clockwise. (As you walk around U on ∂U, the points of U are on your left.) Then
Z
∂Q ∂P
Z Z
Pdx + Qdy ≡ F ·d R = − dA. (23.1)
∂U ∂U U ∂x ∂y
Proof: First consider the right side of (23.1).
Z Z d Z r(y) Z b Z t(x)
∂Q ∂P ∂Q ∂P
− dA = dxdy − dydx
U ∂x ∂y c l(y) ∂ x a b(x) ∂ y
429
430 CHAPTER 23. STOKES AND GREEN’S THEOREMS
Z d
= (Q (r (y) , y) − Q (l (y) , y)) dy
c
Z b
+ (P (x, b (x))) − P (x,t (x)) dx. (23.2)
a
Now consider the left side of (23.1). Denote by V the vertical parts of ∂U and by H the
horizontal parts. Z Z
F ·d R = ((0, Q) + (P, 0)) · dR
∂U ∂U
Z d Z
(0, Q (r (s) , s)) · r′ (s) , 1 ds + (0, Q (r (s) , s)) · (±1, 0) ds
=
c H
Z d Z b
′
(P (s, b (s)) , 0) · 1, b′ (s) ds
− (0, Q (l (s) , s)) · l (s) , 1 ds +
c a
Z Z b
(P (s,t (s)) , 0) · 1,t ′ (s) ds
+ (P (s, b (s)) , 0) · (0, ±1) ds −
V a
Z d Z d Z b Z b
= Q (r (s) , s) ds − Q (l (s) , s) ds + P (s, b (s)) ds − P (s,t (s)) ds
c c a a
Corollary 23.1.2 Let everything be the same as in Lemma 23.1.1 but only assume the
functions r, l,t, and b are continuous and piecewise C1 functions. Then the conclusion this
lemma is still valid.
Proof: The details are left for you. All you have to do is to break up the various line
integrals into the sum of integrals over sub intervals on which the function of interest is C1 .
■
From this corollary, it follows (23.1) is valid for any triangle for example.
Now suppose (23.1) holds for U1 ,U2 , · · · ,Um and the open sets Uk have the property that
no two have nonempty intersection and their boundaries intersect only in a finite number of
piecewise smooth curves. Then (23.1) must hold for U ≡ ∪m i=1Ui , the union of these sets.
This is because
∂Q ∂P
Z
− dA =
U ∂x ∂y
m
∂Q ∂P
Z
= ∑ − dA
k=1 Uk ∂x ∂y
m Z Z
= ∑ F ·d R = F · dR
k=1 ∂Uk ∂U
because if Γ = ∂Uk ∩ ∂U j , then its orientation as a part of ∂Uk is opposite to its orientation
as a part of ∂U j and consequently the line integrals over Γ will cancel, points of Γ also not
being in ∂U. As an illustration, consider the following picture for two such Uk .
23.1. GREEN’S THEOREM 431
U1
U2
Similarly, if U ⊆ V and if also ∂U ⊆ V and both U and V are open sets for which (23.1)
holds, then the open set V \ (U ∪ ∂U) consisting of what is left in V after deleting U along
with its boundary also satisfies (23.1). Roughly speaking, you can drill holes in a region for
which (23.1) holds and get another region for which this continues to hold provided (23.1)
holds for the holes. To see why this is so, consider the following picture which typifies the
situation just described.
U V
Then Z
∂Q ∂P
Z
F ·d R = − dA
∂V V ∂x ∂y
Z
∂Q ∂P ∂Q ∂P
Z
= − dA + − dA
U ∂x ∂y V \U ∂x ∂y
∂Q ∂P
Z Z
= F ·dR + − dA
∂U V \U ∂x ∂y
and so
∂Q ∂P
Z Z Z
− dA = F ·d R− F ·dR
V \U ∂x ∂y ∂V ∂U
which equals Z
F · dR
∂ (V \U)
where ∂V is oriented as shown in the picture. (If you walk around the region V \ U with
the area on the left, you get the indicated orientation for this curve.)
You can see that (23.1) is valid quite generally. This verifies the following theorem.
Theorem 23.1.3 (Green’s Theorem) Let U be an open set in the plane and let ∂U be
piecewise smooth and let F (x, y) = (P (x, y) , Q (x, y)) be a C1 vector field defined near U.
Then it is often1 the case that
Z
∂Q ∂P
Z
F · dR = (x, y) − (x, y) dA.
∂U U ∂x ∂y
1 For a general version see the advanced calculus book by Apostol. The general versions involve the concept
Theorem 23.1.4 (Green’s Theorem) Let U be an open set in the plane and let ∂U be
piecewise smooth and let F (x, y) = (P (x, y) , Q (x, y)) be a C1 vector field defined near U.
Then it is often the case that
Z
∂Q ∂P
Z
F · dR = (x, y) − (x, y) dA.
∂U U ∂x ∂y
Proof: Suppose the divergence theorem holds for U. Consider the following picture.
(y′ , −x′ )
(x′ , y′ )
Since it is assumed that motion around U is counter clockwise, the tangent vector (x′ , y′ )
is as shown. The unit exterior normal is a multiple of
x′ , y′ , 0 × (0, 0, 1) = y′ , −x′ , 0 .
Use your right hand and the geometric description of the cross product to verify this. This
would be the case at all the points where the unit exterior normal exists.
Now let F (x, y) =q(Q (x, y) , −P (x, y)). Also note the area (length) element on the
bounding curve ∂U is (x′ )2 + (y′ )2 dt. Suppose the boundary of U consists of m smooth
curves, the ith of which is parameterized by (xi , yi ) with the parameter t ∈ [ai , bi ]. Then by
the divergence theorem,
Z Z Z
(Qx − Py ) dA = div (F ) dA = F · ndS
U U ∂U
m Z bi
= ∑ (Q (xi (t) , yi (t)) , −P (xi (t) , yi (t)))
i=1 ai
dS
z }| {
1 q
·q y′i , −xi
′
(xi′ )2 + (y′i )2 dt
(xi′ )2 + (y′i )2
m Z bi
(Q (xi (t) , yi (t)) , −P (xi (t) , yi (t))) · y′i , −xi′ dt
= ∑
i=1 ai
m Z bi Z
= ∑ Q (xi (t) , yi (t)) y′i (t) + P (xi (t) , yi (t)) xi′ (t) dt ≡ Pdx + Qdy
i=1 ai ∂U
Proposition 23.1.5 Let U be an open set in R2 for which Green’s theorem holds. Then
Z
Area of U = F ·dR
∂U
23.2 Exercises
R
1. Find S xdS
p where S is the surface which results from the intersection of the cone
z = 2 − x2 + y2 with the cylinder x2 + y2 − 2x = 0.
R
4. In the situation of the above problem, find the flux integral S F · ndS where n is the
unit normal to the surface which has positive z component and F = (x, y, z).
5. Let x2 /a2 + y2 /b2 = 1 be an ellipse. Show using Green’s theorem that its area is πab.
6. A spherical storage tank having radius a is filled with water which weights 62.5
pounds per cubic foot. It is shown later that this implies that the pressure of the
water at depth z equals 62.5z. Find the total force acting on this storage tank.
p
7. Let n be the unit normal to the cone z = x2 + y2 which has negative z component
and let F = (x, 0, z) be a vector field. Let S be the part of this cone which lies
between the planes z = 1 and z = 2.
R
Find SF · ndS.
8. Let S be the surface z = 9 − x2 − y2 for x2 +Ry2 ≤ 9. Let n be the unit normal to S
which points up. Let F = (y, −x, z) and find S F · ndS.
23.3. STOKE’S THEOREM FROM GREEN’S THEOREM 435
13. In the above, problem, let C be the Rboundary of S oriented counter clockwise as
viewed from high on the z axis. Find C 2xdx + dy + dz.
14. Let S be the top half of a sphere of
R
radius a centered at 0 and let n be the unit outward
normal. Let F = (0, 0, z). Find S F · ndS.
15. Let D be a circleR in the plane which has radius 1 and let C be its counter clockwise
boundary. Find C ydx + xdy.
16. Let D be a circleR in the plane which has radius 1 and let C be its counter clockwise
boundary. Find C ydx − xdy.
R
17. Find C (x + y) dx where C is the square curve which goes from (0, 0) → (1, 0) →
(1, 1) → (0, 1) → (0, 0).
2
R
18. Find the line integral C (sin x + y) dx + y dy where C is the oriented square
Compute directly C Pdx + Qdy where C is the counter clockwise circle of radius 1
which bounds the unit disk. Why don’t you get 0 for the line integral?
20. Let F = 2y, ln 1 + y2 + x . Find C F ·dR where C is the curve consisting of line
R
segments,
(0, 0) → (1, 0) → (1, 1) → (0, 0) .
S
∂S
i j k
∂ ∂ ∂ ∂ F3 ∂ F2 ∂ F1 ∂ F3 ∂ F2 ∂ F1
∇×F ≡ ∂x ∂y ∂z ≡ − i+ − j+ − k.
∂y ∂z ∂z ∂x ∂x ∂y
F1 F2 F3
The following lemma gives the fundamental identity which will be used in the proof of
Stoke’s theorem.
Proof: Start with the left side and let xi = Ri (u, v) for short.
∂ Fs
(Ru × Rv ) · (∇ × F ) (R (u, v)) = ε i jk x ju xkv ε irs
∂ xr
∂ Fs
= (δ jr δ ks − δ js δ kr ) x ju xkv
∂ xr
∂ Fk ∂ Fj
= x ju xkv − x ju xkv
∂xj ∂ xk
∂ (F ◦ R) ∂ (F ◦ R)
= Rv · − Ru ·
∂u ∂v
which proves (23.3). ■
The proof of Stoke’s theorem given next follows [11]. First, it is convenient to give a
definition.
Theorem 23.3.4 (Stoke’s Theorem) Let U be any region in R2 for which the conclusion
of Green’s theorem holds and let R ∈ C2 U, R3 be a one to one function satisfying
|(Ru × Rv ) (u, v)| ̸= 0 for all (u, v) ∈ U and let S denote the surface
S ≡ {R (u, v) : (u, v) ∈ U} ,
∂S ≡ {R (u, v) : (u, v) ∈ ∂U}
for t ∈ [α, β ] and letting R (C) denote the oriented part of ∂ S corresponding to C,
Z
F · dR
R(C)
Z β
F (R (u (t) , v (t))) · Ru u′ (t) + Rv v′ (t) dt
=
α
Z β
= F (R (u (t) , v (t))) Ru (u (t) , v (t)) u′ (t) dt
α
Z β
+ F (R (u (t) , v (t))) Rv (u (t) , v (t)) v′ (t) dt
α
Z
= ((F ◦ R) · Ru , (F ◦ R) · Rv ) · dr.
C
By the assumption that the conclusion of Green’s theorem holds for U, this equals
Z
[((F ◦ R) · Rv )u − ((F ◦ R) · Ru )v ] dA
ZU
= [(F ◦ R)u · Rv + (F ◦ R) · Rvu − (F ◦ R) · Ruv − (F ◦ R)v · Ru ] dA
ZU
= [(F ◦ R)u · Rv − (F ◦ R)v · Ru ] dA
U
438 CHAPTER 23. STOKES AND GREEN’S THEOREMS
the last step holding by equality of mixed partial derivatives, a result of the assumption that
R is C2 . Now by Lemma 23.3.2, this equals
Z
(Ru × Rv ) · (∇ × F ) dA
ZU
= ∇ × F · (Ru × Rv ) dA
ZU
= ∇ × F · ndS
S
(Ru ×Rv )
because dS = |(Ru × Rv )| dA and n = |(Ru ×Rv )| . Thus
(Ru × Rv )
(Ru × Rv ) dA = |(Ru × Rv )| dA
|(Ru × Rv )|
= ndS.
S
p+a
b a
a×b
p
23.3. STOKE’S THEOREM FROM GREEN’S THEOREM 439
Thus, if you were walking around ∂ S in the direction of the orientation with your left
hand over the surface S, the normal vector a × b would be pointing in the direction of your
head.
More generally, if S is a surface which is not necessarily a parallelogram but is instead
as described in Theorem 23.3.4, you could consider a small rectangle Q contained in U
and orient the boundary of R (Q) consistent with the counter clockwise orientation on ∂ Q.
Then if Q is small enough, as you walk around ∂ R (Q) in the direction of the described
orientation with your left hand over R (Q), your head points roughly in the direction of
Ru × Rv .
∆v Rv (u0 )∆v
R(Q)
Q
u0 ∆u
Ru (u0 )∆u
As explained above, this is true of the tangent parallelogram, and by continuity of
Rv , Ru , the normals to the surface R (Q) Ru × Rv (u) for u ∈ Q will still point roughly in
the same direction as your head if you walk in the indicated direction over ∂ R (Q), meaning
the angle between the vector from your feet to your head and the vector Ru × Rv (u) is less
than π/2.
You can imagine filling U with such non-overlapping regions Qi . Then orienting
∂ R(Qi ) consistent with the counter clockwise orientation on Qi , and adding the resulting
line integrals, the line integrals over the common sides cancel as indicated in the following
picture and the result is the line integral over ∂ S.
Thus there is a simple relation between the field of normal vectors on S and the ori-
entation of ∂ S. It is simply this. If you walk along ∂ S in the direction mandated by the
orientation, with your left hand over the surface, the nearby normal vectors in Stoke’s the-
orem will point roughly in the direction of your head.
This also illustrates that you can define an orientation for ∂ S by specifying a field of
unit normal vectors for the surface, which varies continuously over the surface, and require
that the motion over the boundary of the surface is such that your head points roughly in
the direction of nearby normal vectors as you walk along the boundary with your left hand
over S. The existence of such a continuous field of normal vectors is what constitutes an
440 CHAPTER 23. STOKES AND GREEN’S THEOREMS
orientable surface.
There is something quite interesting about this Mobeus band and this is that it can be
written parametrically with a simple parameter domain. The picture above is a maple graph
of the parametrically defined surface
θ
x = 4 cos θ + v cos 2
R (θ , v) ≡ y = 4 sin θ + v cos θ2 , θ ∈ [0, 2π] , v ∈ [−1, 1] .
θ
z = v sin 2
An obvious question is why the normal vector R,θ × R,v / R,θ × R,v is not a continuous
function of position on S. You can see easily that it is a continuous function of both θ and
v. However, the map, R is not one to one. In fact, R (0, 0) = R (2π, 0). Therefore, near
this point on S, there are two different values for the above normal vector. In fact, a tedious
computation will show that this normal vector is
D
where
v2
2 θ θ
D = 16 sin + + 4 sin v (sin θ − cos θ )
2 2 2
!
1 2
3 2 θ 1 1 2 1
+ 4 cos cos θ sin θ + cos θ −
2 2 2 2 2
and you can verify that the denominator will not vanish. Letting v = 0 and θ = 0 and 2π
yields the two vectors (0, 0, −1) , (0, 0, 1) so there is a discontinuity. This is why I was
careful to say in the statement of Stoke’s theorem given above that R is one to one.
The Mobeus band has some usefulness. In old machine shops the equipment was run
by a belt which was given a twist to spread the surface wear on the belt over twice the area.
The above explanation shows that R,θ × R,v / R,θ × R,v fails to deliver an orientation
for the Mobeus band. However, this does not answer the question whether there is some
23.4. A GENERAL GREEN’S THEOREM 441
orientation for it other than this one. In fact there is none. You can see this by looking at the
first of the two pictures below or by making one and tracing it with a pencil. There is only
one side to the Mobeus band. An oriented surface must have two sides, one side identified
by the given unit normal which varies continuously over the surface and the other side
identified by the negative of this normal. The second picture below was taken by Ouyang
when he was at meetings in Paris and saw it at a museum.
V ≡ R (U)
x u
Also let F (x, y, z) = (P (x, y) , Q (x, y) , 0) be a C1 vector field defined near V . Note that
F does not depend on z. Therefore,
xu xv
yu yv
k
xu xv
yu yv
442 CHAPTER 23. STOKES AND GREEN’S THEOREMS
Suppose
xu xv
>0
yu yv
so the unit normal is then just k. Then Stoke’s theorem applied to this special case yields
xu xv
Z Z
F ·dR = (Qx (x (u, v) , y (u, v)) − Px (x (u, v) , y (u, v))) k · k dA
∂V U yu yv
This is just Green’s theorem for V . Thus if U is a region for which Green’s theorem holds
and if V is another region, V = R (U) , where |Ru × Rv | ̸= 0, R is one to one, and twice
continuously differentiable with Ru × Rv in the direction of k, then Green’s theorem holds
for V also.
This verifies the following theorem.
Theorem 23.4.1 (Green’s Theorem) Let V be an open set in the plane and let ∂V be piece-
wise smooth and let F (x, y) = (P (x, y) , Q (x, y)) be a C1 vector field defined near V. Then
if V is oriented counter clockwise, it is often2 the case that
Z
∂Q ∂P
Z
F · dR = (x, y) − (x, y) dA. (23.4)
∂V V ∂x ∂y
In particular, if there exists U such as the simple convex in both directions case considered
earlier for which Green’s theorem holds, and V = R (U) where R : U → V is C2 U, R2
such that Rx × Ry ̸= 0 and Rx × Ry is in the direction of k, then 23.4 is valid where the
orientation around ∂V is consistent with the orientation around U.
This is a very general version of Green’s theorem which will include most of what will
be of interest.
The general versions involve the concept of a rectifiable Jordan curve. You need to be able to take the area integral
and to take the line integral around the boundary.
3 There is no such thing as a liberal vector field.
23.4. A GENERAL GREEN’S THEOREM 443
Conservative vector fields are important because of the following theorem, sometimes
called the fundamental theorem for line integrals.
Proof: To save space and fussing over things which are unimportant, denote by p (x0 , x)
a polygonal curve from x0 to x. Thus the orientation is such that it
goes from x0 to x. The curve p (x, x0 ) denotes the same set of points but in the opposite
order. Suppose first F is conservative. Fix x0 ∈ U and let
Z
φ (x) ≡ F · dR.
p(x0 ,x)
This is well defined because if q (x0 , x) is another polygonal curve joining x0 to x, Then
the curve obtained by following p (x0 , x) from x0 to x and then from x to x0 along
q (x, x0 ) is a closed piecewise smooth curve and so by assumption, the line integral along
this closed curve equals 0. However, this integral is just
Z Z Z Z
F · d R+ F ·d R = F · d R− F · dR
p(x0 ,x) q (x,x0 ) p(x0 ,x) q (x0 ,x)
which shows Z Z
F ·d R = F · dR
p(x0 ,x) q (x0 ,x)
by the mean value theorem for integrals. Here st is some number between 0 and 1. By
continuity of F, this converges to Fi (x) as t → 0. Therefore, ∇φ = F as claimed.
444 CHAPTER 23. STOKES AND GREEN’S THEOREMS
and this verifies (23.5) in the case where the curve joining the two points is smooth. The
general case follows immediately from this by using this result on each of the pieces of the
piecewise smooth curve. For example if the curve goes from x to p and then from p to y,
the above would imply the integral over the curve from x to p is φ (p) − φ (x) while from p
to y the integral would yield φ (y) − φ (p). Adding these gives φ (y) − φ (x). The formula
(23.5) implies the line integral over any closed curve equals zero because the starting and
ending points of such a curve are the same. ■
The specifics of the curve are not given so the problem is nonsense unless the vector
field is conservative. Therefore, it is reasonable to look for the function φ satisfying ∇φ =
F. Such a function satisfies
φ x = cos x − y (sin xz) z
and so, assuming φ exists,
I have to add in the most general thing possible, ψ (y, z) to ensure possible solutions are
not being thrown out. It wouldn’t be good at this point to only add in a constant since the
answer could involve a function of either or both of the other variables. Now from what
was just obtained,
φ y = cos (xz) + ψ y = cos xz
and so it is possible to take ψ y = 0. Consequently, φ , if it exists is of the form
and this shows ψ does not depend on z either. Therefore, it suffices to take ψ = 0 and
2
If φ exists, then φ x = x and so φ = x2 + ψ (y, z). Then φ y = ψ y (y, z) = xy2 but this
is impossible because the left side depends only on y and z while the right side depends
also on x. Therefore, this vector field is not conservative and there does not exist a scalar
potential.
Definition 23.4.7 A set of points in three dimensional space V is simply connected if every
piecewise smooth closed curve C is the edge of a surface S which is contained entirely
within V in such a way that Stokes theorem holds for the surface S and its edge, C.
This is like a sock. The surface is the sock and the curve C goes around the opening of
the sock.
As an application of Stoke’s theorem, here is a useful theorem which gives a way to
check whether a vector field is conservative.
Theorem 23.4.8 For a three dimensional simply connected open set V and F a C1 vector
field defined in V , F is conservative if ∇ × F = 0 in V .
Proof: If ∇ × F = 0 then taking an arbitrary closed curve C, and letting S be a surface
bounded by C which is contained in V , Stoke’s theorem implies
Z Z
0= ∇ × F · n dA = F · dR.
S C
Thus F is conservative. ■
Example 23.4.9 Determine whether the vector field
4x3 + 2 cos x2 + z2 x, 1, 2 cos x2 + z2 z
is conservative.
Since this vector field is defined on all of R3 , it only remains to take its curl and see if
it is the zero vector.
i j k
∂x ∂y ∂z .
4x3 + 2 cos x2 + z2 x 2 2
1 2 cos x + z z
This is obviously equal to zero. Therefore, the given vector field is conservative. Can you
find a potential function for it? Let φ be the potential function. Then φ z = 2 cos x2 + z2 z
and so φ (x, y, z) = sin x2 + z2 + g (x, y). Now taking the derivative of φ with respect to y,
2 + z2 . Taking
you see gy = 1 so g (x, y) = y + h (x). Hence φ (x, y, z) = y + g (x) + sin x
the derivative with respect to x, you get 4x3 + 2 cos x2 + z2 x = g′ (x) +2x cos x2 + z2
The vector er = (cos θ , sin θ ) and the vector eθ = (− sin θ , cos θ ). Note that eθ · er =
0. You should convince yourself that the directions of these two perpendicular vectors
correspond to what is shown in the above picture. To help with this, note that er × eθ =
k if these vectors are considered as eθ = (− sin θ , cos θ , 0) , er = (cos θ , sin θ , 0)and so
(er , eθ , k) forms a right hand system, so if you see that er points away from the origin,
then it follows that eθ points in the direction shown.
These two vectors also have the following relationship
der deθ
eθ = , er = − . (24.1)
dθ dθ
Now consider the position vector from 0 of a point in the plane, r (t). Then if r (t) , θ (t)
are its polar coordinates at time t,
where r (t) = |r (t)|. Thus r (t) is just the distance from the origin 0 to the point. What are
447
448 CHAPTER 24. MOVING COORDINATE SYSTEMS
the velocity and acceleration in terms of er and eθ ? Using the chain rule,
der der ′ deθ deθ ′
= θ (t) , = θ (t)
dt dθ dt dθ
and so from 24.1,
der deθ
= θ ′ (t) eθ , = −θ ′ (t) er (24.2)
dt dt
Using 24.2 as needed along with the product rule and the chain rule,
d
r ′ (t) = r′ (t) er + r (t) (er (θ (t)))
dt
= r′ (t) er + r (t) θ ′ (t) eθ .
Next consider the acceleration.
der d
r ′′ (t) = r′′ (t) er + r′ (t) + r′ (t) θ ′ (t) eθ + r (t) θ ′′ (t) eθ + r (t) θ ′ (t) (eθ )
dt dt
= r′′ (t) er + 2r′ (t) θ ′ (t) eθ + r (t) θ ′′ (t) eθ + r (t) θ ′ (t) (−er ) θ ′ (t)
r′′ (t) − r (t) θ ′ (t)2 er + 2r′ (t) θ ′ (t) + r (t) θ ′′ (t) eθ .
= (24.3)
dθ
In this picture, dθ is the indicated angle and the two lines determining this angle are
position vectors for the object at point t and point t + dt. The area of the sector, dA, is
essentially r2 dθ and so dA = 21 r2 dθ . Therefore,
dA 1 2 dθ c
= r = . (24.6)
dt 2 dt 2
r2 θ ′ = c. (24.8)
24.2. PLANETARY MOTION 451
c2
′′ ′ 2 ′′ 1
r (t) − r (t) θ (t) = r (t) − r (t) 4 = −k 2 . (24.9)
r r
This is a nice differential equation for r as a function of θ but its solution is not clear. It
turns out to be convenient to define a new dependent variable, ρ ≡ r−1 so r = ρ −1 . Then
2
dρ d 2 r d2ρ
dr dρ
= (−1) ρ −2 , = 2ρ −3 + (−1) ρ −2 .
dθ dθ dθ 2 dθ dθ 2
Substituting this in to 24.12 yields
2 2
d2ρ −kρ −2
dρ −2 dρ
2ρ −3 + (−1) ρ −2 − 2 ρ ρ − ρ −1
=
dθ dθ 2 dθ c2
which simplifies to
d2ρ −kρ −2
2
(−1) ρ −2
− ρ −1 =
dθ c2
2
dρ
since those two terms which involve dθ cancel. Now multiply both sides by −ρ 2 and
this yields
d2ρ k
2
+ρ = 2, (24.13)
dθ c
k
which is a much nicer differential equation. Let R = ρ − c2
. Then in terms of R, this
differential equation is
d2R
+ R = 0.
dθ 2
452 CHAPTER 24. MOVING COORDINATE SYSTEMS
dR
Multiply both sides by dθ . Then using the chain rule,
2 !
1 d dR 2
+R = 0
2 dθ dθ
and so 2
dR
+ R2 = δ 2 (24.14)
dθ
for some δ > 0. Therefore, there exists an angle ψ = ψ (θ ) such that
dR
R = δ sin (ψ) , = δ cos (ψ)
dθ
1 dR 1
because 24.14 says δ dθ , δ R is a point on the unit circle. But differentiating, the first of
the above equations,
dR dψ
= δ cos (ψ) = δ cos (ψ)
dθ dθ
and so dψ
dθ = 1. Therefore, ψ = θ + φ . Choosing the coordinate system appropriately, you
can assume φ = 0. Therefore,
k 1 k
R=ρ− = − 2 = δ sin (θ )
c2 r c
and so, solving for r,
1 c2 /k pε
r= = 2
=
k
+ δ sin θ 1 + (c /k) δ sin θ 1 + ε sin θ
c2
where
ε = c2 /k δ and p = c2 /kε.
(24.15)
Here all these constants are nonnegative.
Thus
r + εr sin θ = ε p
and so r = (ε p − εy). Then squaring both sides,
x2 + y2 = (ε p − εy)2 = ε 2 p2 − 2pε 2 y + ε 2 y2
And so
x2 + 1 − ε 2 y2 = ε 2 p2 − 2pε 2 y.
(24.16)
In case ε = 1, this reduces to the equation of a parabola. If ε < 1, this reduces to the
equation of an ellipse and if ε > 1, this is called a hyperbola. This proves that objects
which are acted on only by a force of the form given in the above example move along
hyperbolas, ellipses or circles. The case where ε = 0 corresponds to a circle. The constant
ε is called the eccentricity. This is called Kepler’s first law in the case of a planet.
24.2. PLANETARY MOTION 453
Now note this is the equation of an ellipse and that the diameter of this ellipse is
2ε p
≡ 2a. (24.18)
(1 − ε 2 )
Therefore,
2 πε 2 p2
T=
c (1 − ε 2 )3/2
and so
4π 2 ε 4 p4
T2 =
c2 (1 − ε 2 )3
Now using 24.15, recalling that k = GM, and 24.18,
4π 2 ε 4 p4 4π 2 (ε p)3 4π 2 a3 4π 2 a3
T2 = = = = .
kε p (1 − ε 2 )3 k (1 − ε 2 )3 k GM
Lemma 24.3.1 The following hold. Whenever r (t) , s (t) are two vectors from
{i (t) , j (t) , k (t)} ,
r (t) · s′ (t) = −r ′ (t) · s (t)
In particular, the case where r = s, implies r ′ (t) · r (t) = 0.
Theorem 24.3.2 Let (i (t) , j (t) , k (t)) be a right handed orthogonal system of unit vectors
as explained above. Then there exists a unique vector Ω (t) , the angular velocity vector,
such that for r (t) any of the {i (t) , j (t) , k (t)} ,
Proof: First I will show that if this angular velocity vector Ω (t) exists, then it must
be of a certain form. This will prove uniqueness. After showing this, I will verify that it
does what it needs to do by simply checking that it does so. In all considerations, recall
that in the box product, the × and · can be switched. I will use this fact with no comment
in what follows. So suppose that such an angular velocity vector exists. Then i′ (t) =
Ω (t) × i (t) with a similar formula holding for the other vectors. Also note that since this
is a right handed system, i (t) × j (t) = k (t) , j (t) × k (t) = i (t) , and k (t) × i (t) = j (t) as
earlier. In addition, if you want the component of a vector v with respect to some r (t), it
is v · r (t) = vr (t). Thus
v = vi i (t) + v j j (t) + vk k (t) , vr = v · r (t) for each r (t) ∈ {i (t) , j (t) , k (t)}
Then
i′ (t) · j (t) = Ω (t) · i (t) × j (t) = Ω (t) · k (t) = Ω (t)k
Thus the component of Ω (t) in the direction k (t) is determined. Next,
so the component of Ω (t) in direction i (t) is determined. Thus, if there is such an angular
velocity vector, it must be of the form
Ω (t) ≡ j ′ (t) · k (t) i (t) − i′ (t) · k (t) j (t) + i′ (t) · j (t) k (t)
It only remains to verify that this vector works. Recall Lemma 24.3.1 which will be
used without comment in what follows. Does the above Ω (t) work?
= i′ (t)
and finally,
Thus, this Ω (t) is the angular velocity vector and there is only one. Of course it might have
different descriptions but there can only be one and it is the vector just described. ■
This implies the following simple corollary.
Corollary 24.3.3 Let u (t) be a vector such that its components with respect to the basis
vectors i (t) , j (t) , k (t) are constant. Then u′ (t) = Ω (t) × u (t).
earth. Imagine you have a coordinate system fixed with the earth. Then it is actually
rotating through space because the earth is turning. However, to an observer on the surface
of the earth, these vectors are not moving and this observer wants to understand motion
in terms of these apparently fixed vectors. This is a very interesting problem which can
be understood relative to what was just discussed. In this, the motion of the earth through
space around the sun is not being considered because forces resulting from this motion are
negligible.
Imagine a point on the surface of the earth which is not moving relative to the earth.
Now consider unit vectors, one pointing South, one pointing East and one pointing directly
away from the center of the earth.
k
j
Denote the first as i (t), the second as j (t) , and the third as k (t). If you are standing on
the earth you will consider these vectors as fixed, but of course they are not. As the earth
turns, they change direction and so each is in reality a function of t. What is the description
of the angular velocity vector in this situation?
Let i∗ , j ∗ , k∗ , be the usual basis vectors fixed in space with k∗ pointing in the direction
of the north pole from the center of the earth and let i (t) , j (t) , k (t) be the unit vectors
described earlier with i (t) pointing South, j (t) pointing East, and k (t) pointing away
from the center of the earth at some point of the rotating earth’s surface p (t). (This means
that the components of p (t) are constant with respect to the vectors fixed with the earth. )
Letting R (t) be the position vector of the point p (t) , from the center of the earth, observe
that this is a typical vector having coordinates constant with respect to i (t) , j (t) , k (t) .
Also, since the earth rotates from West to East and the speed of a point on the surface of
the earth relative to an observer fixed in space is ω |R| sin φ where ω is the angular speed
of the earth about an axis through the poles and φ is the polar angle measured from the
positive z axis down as in spherical coordinates. It follows from the geometric definition of
the cross product that
R′ (t) = ωk∗ × R (t)
Therefore, the vector of Theorem 24.3.2 is Ω (t) = ωk∗ because it acts like it should for
vectors having components constant with respect to the vectors fixed with the earth. As
mentioned, you could let θ , ρ, φ each be a function of t and use the formula above along
with the chain rule to verify analytically that the angular velocity vector is what is claimed
above. That is, you would have θ (t) = ωt and the other spherical coordinates constant.
See Problem 12 on Page 464 below for a more analytical explanation.
24.5. CORIOLIS FORCE AND CENTRIPETAL FORCE 457
The acceleration perceived by an observer moving with the moving coordinate system
would then be
r ′′B (t) ≡ aB (t) = x′′ (t) i (t) + y′′ (t) j (t) + z′′ (t) k (t)
Let r (t) ≡ R (t)+r B (t) . Then, since R (t) has constant components relative to the moving
coordinate system,
v (t) = R′ (t) + r ′B (t) , r ′B (t) = v B (t) + x (t) i′ (t) + y (t) j ′ (t) + z (t) k′ (t)
= v B (t) + x (t) (Ω (t) ×i (t)) + y (t) (Ω (t) ×j (t)) + z (t) (Ω (t) ×k (t))
and so, from the last equation for r ′B (t) ,
Now take a further derivative to find the total acceleration. Using what was just shown, it
equals
d 2 rB
a (t) = R′′ (t) + (t) = aB (t) + Ω (t) × v B (t) + Ω′ (t) × r (t) + Ω (t) × v (t)
dt 2
= aB (t) + (Ω (t) × v B (t)) + Ω′ (t) × r (t) + Ω (t) × (v B (t) + Ω (t) × r (t))
d
+Ω (t) × (Ω (t) × r B (t)) + (Ω (t) × R (t))
dt
= aB (t) + 2 (Ω (t) × v B (t)) + Ω′ (t) × r B (t)
Therefore,
d 2 rB
(t) = aB (t) + 2 (Ω (t) × v B (t)) + Ω′ (t) × r B (t) + Ω (t) × (Ω (t) × r B (t))
dt 2
where recall that aB (t) is the perceived acceleration relative to the moving coordinate sys-
tem. Solving for this yields
d 2 rB
(t) − 2 (Ω (t) × v B (t)) + Ω′ (t) × r B (t) + Ω (t) × (Ω (t) × r B (t)) = aB (t)
dt 2
The part of the acceleration on the left depending on the relative velocity is called the
Coriolis acceleration. The rest of it is sometimes called centrifugal acceleration. It is felt
by the observer by regarding the moving coordinates as fixed. On the earth, this force
is small enough to be neglected. However, when v B is large, one can get a significant
contribution from the Coriolis force.
Since r B + R = r,
aB = a − Ω× (Ω × R) − 2Ω × v B − Ω× (Ω × r B ) . (24.22)
In this formula, you can totally ignore the term Ω× (Ω × r B ) because it is so small when-
ever you are considering motion near some point on the earth’s surface. To see this, note
seconds in a day
z }| {
ω (24) (3600) = 2π, and so ω = 7.2722 × 10−5 in radians per second. If you are using
seconds to measure time and feet to measure distance, this term is therefore, no larger than
2
7.2722 × 10−5 |r B | .
Clearly this is not worth considering in the presence of the acceleration due to gravity which
is approximately 32 feet per second squared near the surface of the earth.
If the acceleration a is due to gravity, then
aB = a − Ω× (Ω × R) − 2Ω × v B =
≡g
z }| {
GM (R + r B )
− − Ω× (Ω × R) − 2Ω × v B ≡ g − 2Ω × v B .
|R + r B |3
24.6. CORIOLIS FORCE ON THE ROTATING EARTH 459
Note that
Ω× (Ω × R) = (Ω · R) Ω− |Ω|2 R
and so g, the acceleration relative to the moving coordinate system on the earth is not di-
rected exactly toward the center of the earth except at the poles and at the equator, although
the components of acceleration which are in other directions are very small when com-
pared with the acceleration due to the force of gravity and are often neglected. Therefore,
if the only force acting on an object is due to gravity, the following formula describes the
acceleration relative to a coordinate system moving with the earth’s surface.
aB = g−2 (Ω × v B )
While the vector Ω is quite small, if the relative velocity, v B is large, the Coriolis acceler-
ation could be significant. This is described in terms of the vectors i (t) , j (t) , k (t) next.
Letting (ρ, θ , φ ) be the usual spherical coordinates of the point p (t) on the surface
taken with respect to i∗ , j ∗ , k∗ the usual way with φ the polar angle, it follows the i∗ , j ∗ , k∗
coordinates of this point are
ρ sin (φ ) cos (θ )
ρ sin (φ ) sin (θ ) .
ρ cos (φ )
It follows,
i = cos (φ ) cos (θ ) i∗ + cos (φ ) sin (θ ) j ∗ − sin (φ ) k∗
j = − sin (θ ) i∗ + cos (θ ) j ∗ + 0k∗
and
k = sin (φ ) cos (θ ) i∗ + sin (φ ) sin (θ ) j ∗ + cos (φ ) k∗ .
It is necessary to obtain k∗ in terms of the vectors, i (t) , j (t) , k (t) because, as shown
earlier, ωk∗ is the angular velocity vector Ω. To simplify notation, I will suppress the
dependence of these vectors on t. Thus the following equation needs to be solved for a, b, c
to find k∗ = a i+ b j+ ck
k∗ i j k
z }| {
z }| { z }| { z
}| {
0 cos (φ ) cos (θ ) − sin (θ ) sin (φ ) cos (θ )
0 = a cos (φ ) sin (θ ) + b cos (θ ) + c sin (φ ) sin (θ ) (24.23)
1 − sin (φ ) 0 cos (φ )
This equals
−y′ cos φ i+ x′ cos φ + z′ sin φ j − y′ sin φ k .
2ω (24.24)
Remember φ is fixed and pertains to the fixed point, p (t) on the earth’s surface. Therefore,
if the acceleration a is due to gravity,
aB = g−2ω −y′ cos φ i+ x′ cos φ + z′ sin φ j − y′ sin φ k
460 CHAPTER 24. MOVING COORDINATE SYSTEMS
Example 24.6.1 Suppose a rock is dropped from a tall building. Where will it strike?
The dominant term in this expression is clearly the second one because x′ will be small.
Also, the i and k contributions will be very small. Therefore, the following equation is
descriptive of the situation.
aB = −g k− 2z′ ω sin φ j.
z′ = −gt approximately. Therefore, considering the j component, this is
2gtω sin φ .
Two integrations give ωgt 3 /3 sin φ for the j component of the relative displacement at
time t.
This shows the rock does not fall directly towards the center of the earth as expected
but slightly to the east.
where T , the tension in the string of the pendulum, is directed towards the point at which
the pendulum is supported, and m is the mass of the weight at the end of the pendulum.
The pendulum can be thought of as the position vector from (0, 0, l) to the surface of the
sphere x2 + y2 + (z − l)2 = l 2 . Therefore,
x y l −z
T = −T i− T j+ T k
l l l
1 There is such a pendulum in the Eyring building at BYU and to keep people from touching it, there is a little
sign which says Warning! 1000 ohms. You certainly don’t want to encounter too many ohms! Most modern
Foucault pendulums have a mechanism which applies a periodic force to keep it vibrating.
24.7. THE FOUCAULT PENDULUM∗ 461
gm − 2ωy′ sin (φ ) m = T.
where a2 = gl and b = 2ω cos φ . There are systematic ways to solve the above linear system
of ordinary differential equations, but for the purposes here, it is fairly tedious but routine
to verify that for each constant c,
√ ! √ !
b2 + 4a2 b2 + 4a2
bt bt
x = c sin sin t , y = c cos sin t (24.26)
2 2 2 2
the pendulum will be vibrating in a plane determined by k and j. (Recall k points away
from the center of the earth and j points East. ) At this instant in time, defined as t = 0,
the conditions of 24.27 will hold for some value of c and so the solution to 24.25 having
these initial conditions will be those of 24.26. (Some interesting mathematical details are
being ignored here. Such initial value problems as 24.26 and 24.27 have only one solution
so if you have found one, then you have found the solution. This is a general fact shown in
differential equations courses. However, for the above system of equations see Problem 13
on Page 464 found below.) Writing these solutions differently,
! ! √ !
x (t) sin bt2 b2 + 4a2
=c sin t
y (t) cos bt2 2
!
sin bt2
This is very interesting! The vector, c always has magnitude equal to |c| but
cos bt2
T = 24 sec φ .
I think this is really amazing. You could determine latitude, not by taking readings with
instruments using the North star but by doing an experiment with a big pendulum. You
would set it vibrating, observe T in hours, and then solve the above equation for φ . Also
note the pendulum would not appear to change its plane of vibration at the equator because
limφ →π/2 sec φ = ∞.
24.8 Exercises
1. Find the length of the cardioid, r = 1 + cos θ , θ ∈ [0, 2π]. Hint: A parametrization
is x (θ ) = (1 + cos θ ) cos θ , y (θ ) = (1 + cos θ ) sin θ .
2. In general, show that theqlength of the curve given in polar coordinates by r =
f (θ ) , θ ∈ [a, b] equals ab f ′ (θ )2 + f (θ )2 dθ .
R
3. Using the above problem, find the lengths of graphs of the following polar curves.
(a) r = θ , θ ∈ [0, 3]
24.8. EXERCISES 463
5. Using the result of the above problem, find the area of the surfaces obtained by
revolving the polar graphs about the y axis.
6. Suppose an object moves in such a way that r2 θ ′ is a constant. Show that the only
force acting on the object is a central force.
7. Explain why low pressure areas rotate counter clockwise in the Northern hemisphere
and clockwise in the Southern hemisphere. Hint: Note that from the point of view
of an observer fixed in space above the North pole, the low pressure area already
has a counter clockwise rotation because of the rotation of the earth and its spherical
shape. Now consider 24.5. In the low pressure area stuff will move toward the center
so r gets smaller. How are things different in the Southern hemisphere?
8. What are some physical assumptions which are made in the above derivation of Ke-
pler’s laws from Newton’s laws of motion?
9. The orbit of the earth is pretty nearly circular and the distance from the sun to the
earth is about 149 × 106 kilometers. Using 24.19 and the above value of the universal
gravitation constant, determine the mass of the sun. The earth goes around it in 365
days. (Actually it is 365.256 days.)
10. It is desired to place a satellite above the equator of the earth which will rotate about
the center of mass of the earth every 24 hours. Is it necessary that the orbit be
circular? What if you want the satellite to stay above the same point on the earth
at all times? If the orbit is to be circular and the satellite is to stay above the same
point, at what distance from the center of mass of the earth should the satellite be?
You may use that the mass of the earth is 5.98 × 1024 kilograms. Such a satellite is
called geosynchronous.
2
x2
11. Show directly that the area of the inside of an ellipse a2
+ by2 = 1 is πab. Hint: Solve
for y and consider the top half of the ellipse.
464 CHAPTER 24. MOVING COORDINATE SYSTEMS
12. Recall the formula derived above for the angular velocity vector
Ω (t) = j ′ (t) · k (t) i (t) − i′ (t) · k (t) j (t) + i′ (t) · j (t) k (t)
− sin φ 0
sin (φ ) cos (ωt)
k (t) = sin (φ ) sin (ωt)
cos (φ )
where column vectors are in terms of the fixed vectors i∗ , j ∗ , k∗ . Show directly that
Ω (t) = ωk∗ as claimed above.
13. Suppose you have
x′′ + a2 x = by′ , y′′ + a2 y = −bx′ (24.28)
and x (0) = x′ (0)
= y (0) = y′ (0)
= 0. Show that x (t) = y (t) = 0. Show this implies
there is only one solution to the initial value problem 24.26 and 24.27. Hint: If you
had two solutions to 24.26 and 24.27, x̃, ỹ and x̂, ŷ, consider x = x̂ − x̃ and y = ŷ − ỹ
and show x, y satisfies 24.28. To show the first part, multiply the first equation by x′
the second by y′ add and obtain the following using the product rule.
d ′ 2 2
x + y′ + a2 x2 + y2 = 0
dt
Thus the inside is a constant. From the initial condition, this constant can only be 0.
Chapter 25
Curvilinear Coordinates
e1 × e2 · e3 ̸= 0.
Recall this means the volume of the box spanned by the three vectors is not zero.
e3 Suppose e1 , e2 , e3 are as just described. Does it follow that they form
a basis? In other words, for any vector v, there are unique scalars vi such
e2 that v = vi ei . Of course this is the case because the box product is really
e1 the determinant of the matrix which has ei as the ith row (column). This is
the content of the following theorem.
This gives a simple geometric condition which determines whether a list of three vectors
forms a basis in R3 . One simply takes the box product. If the box product is not equal to
zero, then the vectors form a basis. If not, the list of three vectors does not form a basis.
p j p
generalizes to R as follows. If ei = ai i j , then {ei }i=1 forms a basis if and
This condition
only if det aij ̸= 0.
These vectors may or may not be orthonormal. In any case, it is convenient to define
something called the dual basis.
465
466 CHAPTER 25. CURVILINEAR COORDINATES
p p
Definition 25.1.2 Let {ei }i=1 form a basis for R p . Then ei i=1 is called the dual basis if
(
i i 1 if i = j
e ·ej = δ j ≡ . (25.1)
0 if i ̸= j
p p
Theorem 25.1.3 If {ei }i=1 is a basis then ei i=1 is also a basis provided 25.1 holds.
Proof: Suppose
v = vi ei . (25.2)
Then taking the dot product of both sides of 25.2 with e j ,yields
v j = v · e j. (25.3)
Thus there is at most one choice of scalars v j such that v = v j e j and it is given by 25.3.
v − v · e j e j · ek = 0
p
and so, since {ei }i=1 is a basis,
v − v · e je j · w = 0
p
for all vectors w. It follows v − v · e j e j = 0 and this shows ei i=1 is a basis. ■
In the above argument are obtained formulas for the components of a vector v, vi ,
with respect to the dual basis, found to be v j = v · e j . In the same way, one can find the
p
components of a vector with respect to the basis {ei }i=1 . Let v be any vector and let
v = v je j. (25.4)
Then taking the dot product of both sides of 25.4 with ei we see vi = ei · v.
Does there exist a dual basis and is it uniquely determined?
p p
is a basis for R p , then there exists a unique dual basis, e j j=1
Theorem 25.1.4 If {ei }i=1
satisfying
e j · ei = δ ij .
p
Proof: First I show the dual basis is unique. Suppose f j j=1 is another set of vectors
f j = f j · ei ei = δ ij ei = e j .
p
Note that from the definition, the dual basis to i j j=1 is just i j = i j . It remains to verify
the existence of the dual basis. Consider the matrix gi j ≡ ei · e j . This is called the metric
tensor. If the resulting matrix is denoted as G, does it follow that G−1 exists? Suppose you
have ei · e j x j = 0. Then, since i is arbitrary, this implies e j x j = 0 and since e j is a basis,
this requires each x j to be zero. Thus G is invertible. Denote by gi j the i jth entry of this
inverse matrix. Consider e j ≡ g jk ek . Is this the dual basis as the notation implies?
e j · ei = g jk ek · ei = g jk gki = δ ij
so yes, it is indeed the dual basis. This has shown both existence and uniqueness of the
dual basis. ■
From this is a useful observation.
25.1. BASIS VECTORS 467
p
Proposition 25.1.5 {ei }i=1 is a basis for R p if and only if when ei = aij i j , det aij ̸= 0.
p
Proof: First suppose {ei }i=1 is a basis for R p . Letting Ai j ≡ aij , we need to show that
det (A) ̸= 0. This is equivalent to showing that A or AT is one to one. But
aij xi = 0 ⇒ aij xi i j = 0 ⇒ ei xi = 0 ⇒ xi = 0
Conversely, suppose A has nonzero determinant. Why are the ek a basis? Suppose
xk ek = 0. Is each xk = 0? Then xk akj i j = 0 and so for each j, akj xk = 0 and since A has
nonzero determinant, xk = 0. ■
p
Summarizing what has been shown so far, we know that {ei }i=1 is a basis for R p if and
j
only if when ei = ai i j ,
det aij ̸= 0. (25.5)
p p
is a basis, then there exists a unique dual basis, e j
If {ei }i=1 j=1
satisfying
e j · ei = δ ij , (25.6)
gi j e j = ei , gi j e j = ei , (25.9)
gi j v j = vi , gi j v j = vi , (25.10)
gi j g jk = δ ik , (25.11)
det (gi j ) > 0, det gi j > 0.
(25.12)
Proof: First,
ei = ei · e j e j = gi j e j
by 25.7 and 25.8. Similarly, by 25.7 and 25.8,
ei = ei · e j e j = gi j e j .
vi = ei · v = gi j e j · v = gi j v j .
468 CHAPTER 25. CURVILINEAR COORDINATES
gi j g jk = ei · e j e j · ek = ei · e j e j · ek = ei · ek = δ ik .
This shows the two determinants in 25.12 are non zero because the two matrices are in-
verses of each other. It only remains to verify that one of these is greater than zero. Letting
ei = aij i j = bij i j , we see that since i j = i j , aij = bij . Therefore,
It follows that for G the matrix whose i jth entry is ei · e j , G = AAT where the ikth entry of
A is aki . Therefore, det (G) = det (A) det AT = det (A)2 > 0. It follows from 25.11 that if
Note that det AAT ≥ 0 always, because the eigenvalues are nonnegative.
As noted above, we have the following definition.
25.2 Exercises
1. Let e1 = i + j, e2 = i − j, e3 = j + k. Find e1 , e2 , e3 , (gi j ) , gi j . If
yk = yk x1 , ..., xn , y = y x1 , ..., xn
Let x1 · · · xn ∈ D ⊆ Rn be an open set and let x → y x1 , ..., xn ≡ M x1 , ..., xn
satisfy
M is C2 , (25.13)
M is one to one. (25.14)
Letting x ∈ D, we can write
M (x) = M k (x) ik
where, as usual, ik are the standard basis vectors for Rn , ik being the vector in Rn which
has a one in the kth coordinate and a 0 in every other spot. Thus yk = M k (x) where this yk
refers to the kth rectangular coordinate of the point y as just described.
For a fixed x ∈ D, we can consider the space curves,
t → M (x + tik ) ≡ y (x + tik )
for t ∈ I, some open interval containing 0. Then for the point x,we let
∂M d ∂y
ek ≡ (x) ≡ (M (x + tik )) |t=0 ≡ k (x)
∂ xk dt ∂x
Denote this vector as ek (x) to emphasize its dependence on x. The following picture
illustrates the situation in R3 .
470 CHAPTER 25. CURVILINEAR COORDINATES
e3 e2 e1
∂ Mi
det ≡ det (Dy (x)) ≡ det (D (M ) (x)) ̸= 0. (25.15)
∂ xk
Let
yi = M i (x) i = 1, · · · , n (25.16)
yi
so that the are the usual rectangular coordinates with respect to the usual basis vectors
{ik }nk=1 of the point y = M (x) . Letting x ≡ x1 , · · · , xn , it follows from the inverse
function theorem (See Chapter 26) that M (D) is open, and that 25.15, 25.13, and 25.14
imply the equations 25.16 define each xi as a C2 function of y ≡ y1 , · · · , yn . Thus, abusing
xi = xi y1 , ..., yn , i = 1, · · · , n
∂ xk (y) j
∇xk (y) = i.
∂yj
Then
∂ x k s ∂ yr ∂ x k ∂ ys
∇xk (y) · e j = s
i · j ir = s j = δ kj
∂y ∂x ∂y ∂x
by the chain rule. Therefore, the dual basis is given by
Notice that it might be hard or even impossible to solve algebraically for xi in terms
of the y j . Thus the straight forward approach to finding ek by 25.17 might be impossible.
Also, this approach leads to an expression in terms of the y coordinates rather than the
desired x coordinates. Therefore, it is expedient to use another method to obtain these
vectors in terms of x. Indeed, this is the main idea in this chapter, doing everything in
terms of x rather than y. The vectors, ek (x) may always be found by using formula 25.9
and the result is in terms of the curvilinear coordinates x. Here is a familiar example.
25.3. CURVILINEAR COORDINATES 471
y3 x1 cos x2
z ρ cos (φ )
where (ρ, φ , θ ) are the spherical coordinates. We are calling them x1 , x2 , and x3 to preserve
the notation just discussed.) Thus
1 0 0
i j 1 −2
= e ,e = 0 x 0 .
1
−2 −2 2
0 0 x sin x
To obtain the dual basis, use Theorem 25.1.6 to write
25.4 Exercises
1. Let
y1 x1 + 2x2
2 2
y = x + x3
y3 x1 − 2x2
where the yi are the rectangular coordinates of the point. Find ei , ei , i = 1, 2, 3, and
i j
find (gi j ) (x) and g (x) .
2. Let y = y (x,t) where t signifies time and x ∈ U ⊆ Rm for U an open set, while
y ∈ Rn and suppose x is a function of t. Physically, this corresponds to an object
moving over a surface in Rn which may be changing as a function of t. The point
y = y (x (t) ,t) is the point in Rn corresponding to t. For example, consider the pen-
dulum
l
θ
•m
1
T ≡ mẏ · ẏ (∗)
2
where the dot on the top signifies differentiation with respect to t. Show
∂T ∂y
= m ẏ· k .
∂ ẋk ∂x
Hint: First show
∂y j ∂y
ẏ = ẋ + (∗∗)
∂xj ∂t
and so
∂ ẏ ∂y
= .
∂ ẋ j ∂xj
3. ↑ Show
∂ 2y r ∂ 2y
d ∂T ∂y
= m ÿ· + m ẏ· ẋ + m ẏ · .
dt ∂ ẋk ∂ xk ∂ xk ∂ xr ∂t∂ xk
4. ↑ Show 2
∂ 2y
∂T ∂ y r
= m ẏ· ẋ + .
∂ xk ∂ xr ∂ xk ∂t∂ xk
Hint: Use ∗ and ∗ ∗ .
25.4. EXERCISES 473
5. ↑ Now show from Newton’s second law ( mass times acceleration equals force ) that
for F the force,
d ∂T ∂T ∂y ∂y
− k = m ÿ· k = F · k . (∗ ∗ ∗)
dt ∂ ẋk ∂x ∂x ∂x
Use ∗ ∗ ∗ to find a differential equation which describes the vibrations of the pendu-
lum in terms of θ . First write the kinetic energy and then consider the force acting
on the mass which is −mgj.
7. Of course, the idea is to write equations of motion in terms of the variables xk , instead
of the rectangular variables yk . Suppose y = y (x) and x is a function of t. Letting G
denote the metric tensor, show that the kinetic energy is of the form 21 mẋT Gx where
m is a point mass with m its mass.
8. The pendulum problem is fairly easy to do without the formalism developed. Now
consider the case where x = (ρ, θ , φ ) , spherical coordinates, and write differential
equations for ρ, θ , and φ to describe the motion of an object in terms of these coor-
dinates given a force, F.
9. Suppose the pendulum is not assumed to vibrate in a plane. Let it be suspended at
the origin and let φ be the angle between the negative z axis and the positive x axis
while θ is the angle between the projection of the position vector onto the xy plane
and the positive x axis in the usual way. Thus
10. If there are many masses, mα , α = 1, · · · , R, the kinetic energy is the sum of the
kinetic energies of the individual masses. Thus,
1 R
T≡ ∑ mα |ẏα |2 .
2 α=1
y α = y α (x,t) ,
R
d ∂T ∂T ∂ yα
− = ∑ Fα ·
dt ∂ ẋk ∂x k
α=1 ∂ xk
where F α is the force acting on mα .
11. Discuss the equivalence of these formulae with Newton’s second law, force equals
mass times acceleration. What is gained from the above so called Lagrangian for-
malism?
474 CHAPTER 25. CURVILINEAR COORDINATES
12. The double pendulum has two masses instead of only one.
l1
θ
m1
l2
φ
m2
Write differential equations for θ and φ to describe the motion of the double pendu-
lum.
U
M N
D Db
(x1 , x2 , x3 ) (z1 , z2 , z3 )
Thus M (x) = N (z) and so z = N −1 (M (x)) . The point in U will be denoted in
rectangular coordinates as y and we have y (x) = y (z) Now by the chain rule,
∂y ∂y ∂xj ∂xj
ei (z) = = = e j (x) (25.19)
∂ zi ∂ x j ∂ zi ∂ zi
Define the covariant and contravariant coordinates for the various curvilinear coordinates
in the obvious way. Thus,
Then the following theorem tells how to transform the vectors and coordinates.
Theorem 25.5.1 The following transformation rules hold for pairs of curvilinear coordi-
nates.
∂xj ∂ zi j
vi (z) = v j (x) , vi (z) = v (x) , (25.20)
∂ zi ∂xj
∂xj ∂ zi j
ei (z) = e j (x) , ei (z) = e (x) , (25.21)
∂ zi ∂xj
25.6. DIFFERENTIATION AND CHRISTOFFEL SYMBOLS 475
∂ xr ∂ xs ij ∂ zi ∂ z j rs
gi j (z) = grs (x) , g (z) = g (x) . (25.22)
∂ zi ∂ z j ∂ xr ∂ xs
Proof: We already have shown the first part of 25.21 in 25.19. Then, from 25.19,
∂ zk
ei (z) = ei (z) · e j (x) e j (x) = ei (z) · ek (z) e j (x)
∂xj
∂ zk j ∂ zi j
= δ ik e (x) = e (x)
∂xj ∂xj
and this proves the second part of 25.21. Now to show 25.20,
∂ xr ∂ xs ∂ xr ∂ xs
gi j (z) = ei (z) · e j (z) = er (x) i
· es (x) j = grs (x) i j . ■
∂z ∂z ∂z ∂z
∂ F (x) ∂ F (x)
j
= F,ij (x) ei (x) , = Fi, j (x) ei (x) (25.23)
∂x ∂xj
We will see how these scalars transform when the coordinates are changed.
∂ xr ∂ z j ∂ xr ∂ xs
F,sr (x) = F,ij (z) , Fr,s (x) = Fi, j (z) . (25.24)
∂ zi ∂ x s ∂ zi ∂ z j
Proof:
∂ F (x) ∂ F (z) ∂ z j
F,sr (x) er (x) ≡ = ≡
∂ xs ∂ z j ∂ xs
∂zj ∂ z j ∂ xr
F,ij (z) ei (z)
s
= F,ij (z) s i er (x)
∂x ∂x ∂z
which shows the first formula of 25.23. To show the other formula,
∂ F (z) ∂ F (x) ∂ xs
Fi, j (z) ei (z) ≡ = ≡
∂zj ∂ xs ∂ z j
∂ xs ∂ xs ∂ xr
Fr,s (x) er (x) j
= Fr,s (x) j i ei (z) ,
∂z ∂z ∂z
476 CHAPTER 25. CURVILINEAR COORDINATES
and this shows the second formula for transforming these scalars. ■
Now F (x) = F i (x) ei (x) and so by the product rule,
∂F ∂ Fi ∂ ei (x)
= ei (x) + F i (x) . (25.25)
∂xj ∂xj ∂xj
( )
∂ ei (x) k
Now ∂xj
is a vector and so there exist scalars, such that
ij
( )
∂ ei (x) k
= ek (x) .
∂xj ij
Thus
∂ 2y
k
ek (x) =
ij ∂ x j ∂ xi
and so
( ) ( ) ( )
k k r ∂ 2y
r
ek (x) · e (x) = δ rk = = · er (x) (25.26)
ij ij ij ∂ x j ∂ xi
( )
∂F ∂ Fk r
Therefore, from 25.25, ∂xj
= ∂xj k
e (x) + F i (x) ek (x) which shows
ij
( )
∂ Fk k
F,kj (x) = + F i (x) . (25.27)
∂xj ij
Theorem 25.6.2 The Christoffel symbols of the second kind satisfy the following
( )
∂ ei (x) k
= ek (x) , (25.28)
∂xj ij
( )
∂ ei (x) i
=− ek (x) , (25.29)
∂xj kj
( ) ( )
k k
= , (25.30)
ij ji
( )
g jm ∂ gi j ∂ gk j ∂ gik
m
= + − . (25.31)
ik 2 ∂ xk ∂ xi ∂xj
Proof: Formula 25.28 is the definition of the Christoffel symbols. We verify 25.29 next.
To do so, note
ei (x) · ek (x) = δ ik .
25.6. DIFFERENTIATION AND CHRISTOFFEL SYMBOLS 477
This verifies 25.29. Formula 25.30 follows from 25.26 and equality of mixed partial deriva-
tives.
It remains to show 25.31.
( ) ( )
∂ gi j ∂ ei ∂ej r r
= k · e j + ei · k = er · e j + ei · er .
∂ xk ∂x ∂x ik jk
Therefore,
∂ gi j r r
= grj + gri . (25.32)
∂ xk ik jk
Switching i and k while remembering 25.30 yields
( ) ( )
∂ gk j r r
= gr j + grk . (25.33)
∂ xi ik ji
Now multiplying both sides by g jm and using the fact shown earlier in Theorem 25.1.6 that
gr j g jm = δ m
r , it follows
( )
m ∂ gi j ∂ gk j ∂ gik
2 = g jm + −
ik ∂ xk ∂ xi ∂xj
y ≡ yk ik , ek (y) = ik = ek (y) .
∂ φ (x)
(∇φ (x))r = , (25.35)
∂ xr
Formally the same as in rectangular coordinates. To find the contravariant components,
“raise the index” in the usual way. Thus
∂ φ (x)
(∇φ (x))r = grk (x) (∇φ (x))k = grk (x) . (25.36)
∂ xk
What about the divergence of a vector field? The divergence of a vector field F defined
on U is a scalar field, div (F ) which from calculus is
∂ Fk
(y) = F,kk (y)
∂ yk
in terms of the usual rectangular coordinates y. The reason the above equation holds in
this case is that ek (y) is a constant and so the Christoffel symbols are zero. We want an
expression for the divergence in arbitrary coordinates. From Theorem 25.6.1,
∂ x s ∂ yi
F,ij (y) = F,sr (x)
∂ y j ∂ xr
From 25.27, ( ) !
∂ F r (x) r ∂ xs ∂ yi
= + F k (x) (x) .
∂ xs ks ∂ y j ∂ xr
25.7. GRADIENTS AND DIVERGENCE 479
Letting j = i yields
( ) !
∂ F r (x) r ∂ xs ∂ yi
div (F ) = + F k (x) (x)
∂ xs ks ∂ yi ∂ xr
( ) !
∂ F r (x) r
= + F k (x) (x) δ sr
∂ xs ks
( ) !
∂ F r (x) r
= + F k (x) (x) . (25.37)
∂ xr kr
( )
r
is simplified using the description of it in Theorem 25.6.2. Thus, from this theo-
kr
rem, ( )
g jr ∂ gr j ∂ gk j ∂ grk
r
= + −
rk 2 ∂ xk ∂ xr ∂xj
g jr
Now consider 2 times the last two terms in [·] . Relabeling the indices r and j in the second
term implies
g jr ∂ gk j g jr ∂ grk g jr ∂ gk j gr j ∂ g jk
− = − = 0.
2 ∂ xr 2 ∂xj 2 ∂ xr 2 ∂ xr
Therefore, ( )
r g jr ∂ gr j
= . (25.38)
rk 2 ∂ xk
Now recall g ≡ det (gi j ) = det (G) > 0 from Theorem 25.1.6. Also from the formula for the
inverse of a matrix and this theorem,
where Ar j is the r jth cofactor of the matrix (gi j ) . Also recall that
n
g= ∑ gr j Ar j no sum on j.
r=1
∂g
= Ar j . From 25.38,
Therefore, g is a function of the variables gr j and ∂ gr j
( )
r g jr ∂ gr j 1 ∂ gr j jr 1 ∂ g ∂ gr j 1 ∂g
= k
= k
A = k
=
rk 2 ∂x 2g ∂ x 2g ∂ gr j ∂ x 2g ∂ xk
This is the formula for the divergence of a vector field in general curvilinear coordinates.
Note that it uses the contravariant components of F .
480 CHAPTER 25. CURVILINEAR COORDINATES
The Laplacian of a scalar field is nothing more than the divergence of the gradient. In
symbols, ∆φ ≡ ∇ · ∇φ . From 25.39 and 25.36 it follows
1 ∂ ik ∂ φ (x) p
∆φ (x) = p g (x) g (x) . (25.40)
g (x) ∂ xi ∂ xk
Theorem 25.7.1 The following formulas hold for the gradient, divergence and Laplacian
in general curvilinear coordinates.
∂ φ (x)
(∇φ (x))r = , (25.41)
∂ xr
∂ φ (x)
(∇φ (x))r = grk (x) , (25.42)
∂ xk
1 ∂ i p
div (F ) = p F (x) g (x) , (25.43)
g (x) ∂ xi
1 ∂ ik ∂ φ (x) p
∆φ (x) = p g (x) g (x) . (25.44)
g (x) ∂ xi ∂ xk
x = r cos θ , y = r sin θ
Find ∇2 f (r, θ ). That is, find the Laplacian in terms of these new variables r, θ .
Notice how easy this is. It is anything but easy if you try to do it by brute force with none
of the machinery developed here.
25.8. EXERCISES 481
25.8 Exercises
1. Let y1 = x1 + 2x2 , y2 = x2 + 3x3 , y3 = x1 + x3 . Let
2
F (x) = x1 e1 (x) + x2 e2 (x) + x3 e (x) .
Find div (F ) (x) .
2. For the coordinates of the preceding problem, and φ a scalar field, find
(∇φ (x))3
in terms of the partial derivatives of φ taken with respect to the variables xi .
3. Let y1 = 7x1 + 2x2 , y2 = x2 + 3x3 , y3 = x1 + x3 . Let φ be a scalar field. Find ∇2 φ (x) .
4. Derive ∇2 u in cylindrical coordinates, r, θ , z, where u is a scalar field on R3 .
x = r cos θ , y = r sin θ , z = z.
p
5. ↑ Find all solutions to ∇2 u = 0 which depend only on r where r ≡ x2 + y2 .
6. Derive ∇2 u in spherical coordinates.
7. ↑Let u be a scalar field on R3 . Find all solutions to ∇2 u = 0 which depend only on
p
ρ ≡ x 2 + y2 + z2 .
∂ ri dx j
k
p dx
vi (x) = j
− r p (x)
∂ x dt ik dt
and ri (x) are the covariant components of the displacement vector,
r = ri (x) ei (x) .
11. ↑ Using problem 9 and 10, show the covariant components of velocity in spherical
coordinates are
dφ dθ dρ
v1 = ρ 2 , v2 = ρ 2 sin2 (φ ) , v3 = .
dt dt dt
Hint: First observe that if r is the position vector from the origin, then r = ρe3 so
r1 = 0 = r2 , and r3 = ρ. Now use 10.
482 CHAPTER 25. CURVILINEAR COORDINATES
and
∂ xi
1
det =p . (25.47)
∂yj g (x)
Proof:
∂ yk
ei (x) = ik
∂ xi
and so
∂ yk ∂ yl ∂ yk ∂ yk
gi j (x) =
i k · il = .
∂ xi ∂xj ∂ xi ∂ x j
k 2 √ k
Therefore, g = det (gi j (x)) = det ∂∂ yxi . By 25.45, g = det ∂∂ yxi as claimed. Now
∂ yk ∂ xi
= δ kr
∂ xi ∂ yr
and so
∂ xi
1
det =p .
∂ yr g (x)
This proves the theorem.
To get the curl and cross product in curvilinear coordinates, let ε i jk be the usual permu-
tation symbol. Thus,
ε 123 = 1
and when any two indices in ε i jk are switched, the sign changes. Thus
Now define
1
ε i jk (x) ≡ ε i jk p .
g (x)
Then for x and z satisfying 25.45,
∂ zr ∂ zs ∂ zt
p r s t
i jk i jk ∂x ∂z ∂z ∂z
ε (x) i j k = ε det q
∂x ∂x ∂x ∂y ∂ xi ∂ x j ∂ xk
25.9. CURL AND CROSS PRODUCTS 483
∂ xp ∂ zi
rst
=ε det det = ε rst det (MN)
∂ yq ∂ xk
p ∂ zi
where N is the matrix whose pqth entry is ∂∂ xyq and M is the matrix whose ikth entry is ∂ xk
.
Therefore, from the definition of matrix multiplication and the chain rule, this equals
i
rst ∂z
= ε det ≡ ε rst (z)
∂ yp
from the above discussion.
Now ε i jk (y) = ε i jk and for a vector field, F,
curl (F ) ≡ ε i jk (y) Fk, j (y) ei (y) .
Therefore, since we know how everything transforms assuming 25.45, it is routine to write
this in terms of x.
∂ yi ∂ y j ∂ yk ∂ x p ∂ xq ∂ xm
curl (F ) = ε rst (x) r s t
Fp,q (x) k j
em (x) i
∂x ∂x ∂x ∂y ∂y ∂y
q p
= ε rst (x) δ m
r δ s δ t Fp,q (x) em (x) = ε
mqp
(x) Fp,q (x) em (x) . (25.48)
More simplification is possible. Recalling the definition of Fp,q (x) ,
∂F ∂
≡ Fp,q (x) e p (x) = q [Fp (x) e p (x)]
∂ xq ∂x
( )
∂ Fp (x) p ∂ ep ∂ Fp (x) p r
= e (x) + Fp (x) q = e (x) − Fr (x) e p (x)
∂ xq ∂x ∂ xq pq
by Theorem 25.6.2. Therefore,
( )
∂ Fp (x) r
Fp,q (x) = − Fr (x)
∂ xq pq
and so
( )
∂ Fp (x) r
curl (F ) = ε mqp (x) em (x) − ε mqp (x) Fr (x) em (x) .
∂ xq pq
( ) ( )
r r
However, because = , the second term in this expression equals 0. To
pq qp
see this, ( ) ( ) ( )
mqp r mpq r mqp r
ε (x) =ε (x) = −ε (x) .
pq qp pq
Therefore, by 25.48,
∂ Fp (x)
curl (F ) = ε mqp (x)
em (x) . (25.49)
∂ xq
What about the cross product of two vector fields? Let F and G be two vector fields.
Then in terms of standard coordinates y,
F × G = ε i jk (y) Fj (y) Gk (y) ei (y)
484 CHAPTER 25. CURVILINEAR COORDINATES
∂ yi ∂ y j ∂ yk ∂ xp ∂ xq ∂ xl
= ε rst (x) Fp (x) G q (x) el (x)
∂ xr ∂ xs ∂ xt ∂yj ∂ yk ∂ yi
= ε rst (x) δ sp δ tq δ lr Fp (x) Gq (x) el (x) = ε l pq (x) Fp (x) Gq (x) el (x) . (25.50)
We summarize these results in the following theorem.
Let
1
ε i jk (x) ≡ ε i jk p .
g (x)
Then the following formulas for curl and cross product hold in this system of coordinates.
∂ Fp (x)
curl (F ) = ε mqp (x) em (x) ,
∂ xq
and
F × G = ε l pq (x) Fp (x) Gq (x) el (x) .
Chapter 26
The implicit function theorem is one of the greatest theorems in mathematics. There are
many versions of this theorem which are of far greater generality than the one given here.
The proof given here is like one found in one of Caratheodory’s books on the calculus
of variations. It is not as elegant as some of the others which are based on a contraction
mapping principle but it may be more accessible. However, it is an advanced topic. Don’t
waste your time with it unless you have first read and understood the material on rank and
determinants found in the chapter on the mathematical theory of determinants. You will
also need to use the extreme value theorem for a function of n variables and the chain rule
of multivariable calculus as well as everything about matrix multiplication.
Definition 26.0.1 Suppose U is an open set in Rn × Rm and (x, y) will denote a typical
point of Rn × Rm with x ∈ Rn and y ∈ Rm . Let f : U → R p be in C1 (U) . Then define
f1,x1 (x, y) · · · f1,xn (x, y)
.. ..
D1 f (x, y) ≡ . .
,
f p,x1 (x, y) · · · f p,xn (x, y)
f1,y1 (x, y) · · · f1,ym (x, y)
.. ..
D2 f (x, y) ≡ . .
.
f p,y1 (x, y) · · · f p,ym (x, y)
Then there exist positive constants, δ , η, such that for every y ∈ B (y 0 , η) there exists a
unique x (y) ∈ B (x0 , δ ) such that
f (x (y) , y) = 0. (26.2)
485
486 CHAPTER 26. IMPLICIT FUNCTION THEOREM*
Proof: Let
f1 (x, y)
f2 (x, y)
f (x, y) =
.. .
.
fn (x, y)
n
Define for x1 , · · · , xn ∈ B (x0 , δ ) and y ∈ B (y 0 , η) the following matrix.
f1,x1 x1 , y · · · f1,xn x1 , y
.. ..
J x1 , · · · , xn , y ≡
. (*)
. .
n n
fn,x1 (x , y) · · · fn,xn (x , y)
Then by the assumption of continuity of all the partial derivatives and the extreme value
theorem, there exists r > 0 and δ 0 , η 0 > 0 such that if δ ≤ δ 0 and η ≤ η 0 , it follows that
n
for all x1 , · · · , xn ∈ B (x0 , δ ) and y ∈ B (y 0 , η),
det J x1 , · · · , xn , y
> r > 0. (26.3)
and B (x0 , δ 0 )× B (y 0 , η 0 ) ⊆ U. By continuity of all the partial derivatives and the extreme
value theorem, it can also be assumed there exists a constant, K such that for all (x, y) ∈
B (x0 , δ 0 )× B (y 0 , η 0 ) and i = 1, 2, · · · , n, the ith row of D2 f (x, y) , given by D2 fi (x, y)
satisfies
|D2 fi (x, y)| < K, (26.4)
1 n
n th
and for all x , · · · , x ∈ B (x0 , δ 0 ) and y ∈ B (y 0 , η 0 ) the i row of the matrix,
−1
J x1 , · · · , xn , y
−1
which equals eTi J x1 , · · · , xn , y satisfies
−1
eTi J x1 , · · · , xn , y < K. (26.5)
(Recall that ei is the column vector consisting of all zeros except for a 1 in the ith position.)
To begin with it is shown that for a given y ∈ B (y 0 , η) there is at most one x ∈ B (x0 , δ )
such that f (x, y) = 0.
Pick y ∈ B (y 0 , η) and suppose there exist x, z ∈ B (x0 , δ ) such that f (x, y) = f (z, y) =
0. Consider fi and let
h (t) ≡ fi (x + t (z − x) , y) .
Then h (1) = h (0) and so by the mean value theorem, h′ (ti ) = 0 for some ti ∈ (0, 1) . There-
fore, from the chain rule and for this value of ti ,
n
∂
h′ (ti ) = ∑ ∂ x j fi (x + ti (z − x) , y) (z j − x j ) = 0. (26.6)
j=1
J x1 , · · · , xn , y (z − x) = 0
487
and so from 26.3 z − x = 0. (The matrix, in the above is invertible since its determinant
is nonzero.) Now it will be shown that if η is chosen sufficiently small, then for all y ∈
B (y 0 , η) , there exists a unique x (y) ∈ B (x0 , δ ) such that f (x (y) , y) = 0.
Claim: If η is small enough, then the function, x → hy (x) ≡ |f (x, y)|2 achieves its
minimum value on B (x0 , δ ) at a point of B (x0 , δ ) . (The existence of a point in B (x0 , δ )
at which hy achieves its minimum follows from the extreme value theorem.)
Proof of claim: Suppose this is not the case. Then there exists a sequence η k → 0
and for some y k having |y k −y 0 | < η k , the minimum of hyk on B (x0 , δ ) occurs on a
point xk such that |x0 −xk | = δ . Now taking a subsequence, still denoted by k, it can
n assumed that xk → x witho|x − x0 | = δ and y k → y 0 . This follows from the fact that
be
x ∈ B (x0 , δ ) : |x − x0 | = δ is a closed and bounded set and is therefore sequentially
compact. Let ε > 0. Then for k large enough, the continuity of y → hy (x0 ) implies
hyk (x0 ) < ε because hy0 (x0 ) = 0 since f (x0 , y 0 ) = 0. Therefore, from the definition
of xk , it is also the case that hyk (xk ) < ε. Passing to the limit yields hy0 (x) ≤ ε. Since
ε > 0 is arbitrary, it follows that hy0 (x) = 0 which contradicts the first part of the argument
in which it was shown that for y ∈ B (y 0 , η) there is at most one point, x of B (x0 , δ ) where
f (x, y) = 0. Here two have been obtained, x0 and x. This proves the claim.
Choose η < η 0 and also small enough that the above claim holds and let x (y) denote
a point of B (x0 , δ ) at which the minimum of hy on B (x0 , δ ) is achieved. Since x (y) is an
interior point, you can consider hy (x (y) + tv) for |t| small and conclude this function of t
has a zero derivative at t = 0. Now
n
hy (x (y) + tv) = ∑ fi2 (x (y) + tv, y)
i=1
where y i is a point on the line segment joining y 1 and y 2 . Thus from 26.4 and the Cauchy-
Schwarz inequality, D2 fi x (y 2 ) , y i (y 1 − y 2 ) ≤ K |y 1 − y 2 | . Therefore, defining the
symbol M y 1 , · · · , y n ≡ M denote the matrix having the ith row equal to
D2 fi x (y 2 ) , y i ,
it follows !1/2
2 2 √
|M (y 1 − y 2 )| ≤ ∑K |y 1 − y 2 | = mK |y 1 − y 2 | . (26.8)
i
Also, from 26.7,
J x1 , · · · , xn , y 1 (x (y 1 ) − x (y 2 )) = −M (y 1 − y 2 )
(26.9)
and so from 26.8, 26.5, |x (y 1 ) − x (y 2 )| =
−1
= J x1 , · · · , xn , y 1 M (y 1 − y 2 )
!1/2
n −1 2
1
= ∑ eTi J n
x , · · · , x , y1 M (y 1 − y 2 )
i=1
!1/2 !1/2
n n √ 2
2
≤ ∑ K 2 |M (y1 − y2 )| ≤ ∑ K2 mK |y 1 − y 2 |
i=1 i=1
√
= K 2 mn |y 1 − y 2 |
Now let y 2 = y, y 1 = y + hek for small h. Then M depends on h and
lim M (h) = D2 f (x (y) , y)
h→0
F (x, y) ≡ f (x) − y
where y 0 ≡ f (x0 ). Thus the function y → x (y) defined in that theorem is f −1 . Now let
W ≡ B (x0 , δ ) ∩ f −1 (B (y 0 , η))
and
V ≡ B (y 0 , η) .
This proves the theorem. ■
∂ |α| f
Dα f (x) ≡ (x) , D0 f (x) ≡ f (x)
∂ α1 ∂ α2 · · · ∂ αn
Theorem 26.1.1 (implicit function theorem) Suppose U is an open set in Fn × Fm . Let
f : U → Fn be in Ck (U) and suppose
Then there exist positive constants δ , η, such that for every y ∈ B (y 0 , η) there exists a
unique x (y) ∈ B (x0 , δ ) such that
f (x (y) , y) = 0. (26.15)
Proof: From the implicit function theorem y → x (y) is C1 . It remains to show that it
is Ck for k > 1 assuming that f is Ck . From (26.15)
∂x ∂f
= −D1 f (x, y)−1 l .
∂ yl ∂y
where Mβ is a matrix whose entries are differentiable functions of Dγ x for |γ| < q and
Dτ f (x, y) for |τ| ≤ q. This follows easily from the description of D1 f (x, y)−1 in terms
490 CHAPTER 26. IMPLICIT FUNCTION THEOREM*
of the cofactor matrix and the determinant of D1 f (x, y). Suppose (26.16) holds for |α| =
q < k. Then by induction, this yields x is Cq . Then
∂ M (x,y )
By the chain rule β∂ y p is a matrix such that its entries are differentiable functions of
Dτ f (x, y) for |τ| ≤ q + 1 and Dγ x for |γ| < q + 1. It follows, since y p was arbitrary,
that for any |α| = q + 1, a formula like (26.16) holds with q being replaced by q + 1. By
induction, x is Ck . ■
As a simple corollary, this yields the inverse function theorem. You just let F (x, y) =
y − f (x) and apply the implicit function theorem.
x0 ∈ W ⊆ U, (26.18)
gi (x) = 0, i = 1, · · · , m (26.21)
f (x) = a
gi (x) = 0, i = 1, · · · , m.
Recall x0 is a local maximum if f (x0 ) ≥ f (x) for all x near x0 which also sat-
isfies the constraints (26.21). A local minimum is defined similarly. Let F : U ×
R → Rm+1 be defined by
f (x) − a
g1 (x)
F (x,a) ≡ .. .
(26.22)
.
gm (x)
26.2. THE METHOD OF LAGRANGE MULTIPLIERS 491
If this matrix has rank m + 1 then some m + 1 × m + 1 submatrix has nonzero deter-
minant. It follows from the implicit function theorem, there exists m + 1 variables
xi1 , · · · , xim+1 such that the system
F (x,a) = 0 (26.23)
λ 1, · · · , λ m,
is m, then we can choose µ = 1 because the columns span Rm . Thus there are scalars
λ i such that
fx1 (x0 ) g1x1 (x0 ) gmx1 (x0 )
..
= λ1 ..
+···+λm
..
. . .
(26.26)
fxn (x0 ) g1xn (x0 ) gmxn (x0 )
at every point x0 which is either a local maximum or a local minimum. This proves
the following theorem.
F (x1 , · · · , xk , · · · , xl , · · · , xn ) = (x1 , · · · , xl , · · · , xk , · · · , xn )T .
It turns out that if h (0) = 0, Dh (0)−1 exists, and h is C1 on U, then h can be written
as a composition of primitive functions and flips. This is a very interesting application of
the inverse function theorem.
Proof: Let T
h1 (x) ≡ h (x) = α 1 (x) · · · α n (x)
T
Dh (0) e1 = α 1,1 (0) · · · α n,1 (0)
where α k,1 denotes ∂∂αx k . Since Dh (0) is one to one, the right side of this expression cannot
1
be zero. Hence there exists some k such that α k,1 (0) ̸= 0. Now define
T
G1 (x) ≡ α k (x) x2 ··· xn
26.3. THE LOCAL STRUCTURE OF C1 MAPPINGS∗ 493
and its determinant equals α k,1 (0) ̸= 0. Therefore, by the inverse function theorem, there
exists an open set U1 , containing 0 and an open set V2 containing 0 such that G1 (U1 ) = V2
and G1 is one to one and onto, such that it and its inverse are both C1 . Let F 1 denote the
flip which interchanges xk with x1 . Now define
h2 (y) ≡ F 1 ◦ h1 ◦ G−1
1 (y)
Thus
h2 (G1 (x)) ≡ F 1 ◦ h1 (x) (26.27)
T
= α k (x) · · · α 1 (x) · · · α n (x)
Therefore, T
P1 h2 (G1 (x)) = α k (x) 0 ··· 0 .
Also T
P1 (G1 (x)) = α k (x) 0 ··· 0
so P1 h2 (y) = P1 (y) for all y ∈ V2 . Also, h2 (0) = 0 and Dh2 (0)−1 exists because of the
definition of h2 above and the chain rule. Since F 21 = I, the identity map, it follows from
(26.27) that
h (x) = h1 (x) = F 1 ◦ h2 ◦ G1 (x) . (26.28)
Note that on an open set V2 ≡ G1 (U1 ) containing the origin, h2 leaves the first entry un-
changed. This is what P1 h2 (G1 (x)) = P1 (G1 (x)) says. In contrast, h1 = h left possibly
no entries unchanged.
Suppose then, that for m ≥ 2, hm leaves the first m − 1 entries unchanged,
Pm−1 hm (x) = Pm−1 (x) (26.29)
for all x ∈ Um , an open subset of U containing 0, and hm (0) = 0, Dhm (0)−1 exists. From
(26.29), hm (x) must be of the form
T
hm (x) = x1 · · · xm−1 α 1 (x) · · · α n (x)
where these α k are different than the ones used earlier. Then
T
Dhm (0) em = 0 · · · 0 α 1,m (0) · · · α n,m (0) ̸ 0
=
because Dhm (0)−1 exists. Therefore, there exists a k ≥ m such that α k,m (0) ̸= 0, not the
same k as before. Define
T
Gm (x) ≡ x1 · · · xm−1 α k (x) · · · xn (26.30)
494 CHAPTER 26. IMPLICIT FUNCTION THEOREM*
so a change in Gm occurs only in the mth slot. Then Gm (0) = 0 and DGm (0)−1 exists
similar to the above. In fact
Therefore, by the inverse function theorem, there exists an open set Vm+1 containing 0 such
that Vm+1 = Gm (Um ) with Gm and its inverse being one to one, continuous and onto. Let
F m be the flip which flips xm and xk . Then define hm+1 on Vm+1 by
Thus for x ∈ Um ,
hm+1 (Gm (x)) = (F m ◦ hm ) (x) . (26.31)
and consequently, since F 2m = I,
It follows
and T
Pm (Gm (x)) = x1 ··· xm−1 α k (x) 0 ··· 0 .
h (x) = F 1 ◦ h2 ◦ G1 (x)
= F 1 ◦ F 2 ◦ h3 ◦ G2 ◦ G1 (x)
..
.
= F 1 ◦ · · · ◦ F n−1 ◦ hn ◦ Gn−1 ◦ · · · ◦ G1 (x)
Differential Equations
495
Chapter 27
Determinants
From the definition this is just (2) (6) − (−1) (4) = 16.
Having defined what is meant by the determinant of a 2 × 2 matrix, what about a 3 × 3
matrix?
497
498 CHAPTER 27. DETERMINANTS
3 2 1
The (1, 2) minor is the determinant of the 2 × 2 matrix which results when you delete the
first row and the second column. This minor is therefore
!
4 2
det = −2.
3 1
The (2, 3) minor is the determinant of the 2 × 2 matrix which results when you delete the
second row and the third column. This minor is therefore
!
1 2
det = −4.
3 2
The cofactors of a matrix are so important that special notation is appropriate when re-
ferring to them. The i jth cofactor of a matrix A will be denoted by cof (A)i j . It is also
convenient to refer to the cofactor of an entry of a matrix as follows. For ai j an entry of
the matrix, its cofactor is just cof (A)i j . Thus the cofactor of the i jth entry is just the i jth
cofactor.
3 2 1
The (1, 2) minor is the determinant of the 2 × 2 matrix which results when you delete the
first row and the second column. This minor is therefore
!
4 2
det = −2.
3 1
It follows !
1+2 4 2
cof (A)12 = (−1) det = (−1)1+2 (−2) = 2
3 1
The (2, 3) minor is the determinant of the 2 × 2 matrix which results when you delete the
second row and the third column. This minor is therefore
!
1 2
det = −4.
3 2
27.1. BASIC TECHNIQUES AND PROPERTIES 499
Therefore, !
2+3 1 2
cof (A)23 = (−1) det = (−1)2+3 (−4) = 4.
3 2
Similarly, !
2+2 1 3
cof (A)22 = (−1) det = −8.
3 1
3 2 1
You see, we just followed the rule in the above definition. We took the 1 in the first column
and multiplied it by its cofactor, the 4 in the first column and multiplied it by its cofactor,
and the 3 in the first column and multiplied it by its cofactor. Then we added these numbers
together.
You could also expand the determinant along the second row as follows.
cof(A)21 cof(A)22 cof(A)23
z }| { z }| { z }| {
2 3 1 3 1 2
4(−1)2+1 + 3(−1)2+2 + 2(−1)2+3 = 0.
2 1 3 1 3 2
Observe this gives the same number. You should try expanding along other rows and
columns. If you don’t make any mistakes, you will always get the same answer.
What about a 4 × 4 matrix? You know now how to find the determinant of a 3 × 3
matrix. The pattern is the same.
Definition 27.1.9 Suppose A is a 4 × 4 matrix. The i jth minor is the determinant of the
3 × 3 matrix you obtain when you delete the ithrow and the jth column. The i jth cofactor,
cof (A)i j is defined to be (−1)i+ j × i jth minor . In words, you multiply (−1)i+ j times the
i jth minor to get the i jth cofactor.
As in the case of a 3 × 3 matrix, you can expand this along any row or column. Lets
pick the third column. det (A) =
5 4 3 1 2 4
1+3 2+3
3 (−1) 1 3 5 + 2 (−1) 1 3 5
3 4 2 3 4 2
1 2 4 1 2 4
3+3 4+3
+4 (−1) 5 4 3 + 3 (−1) 5 4 3 .
3 4 2 1 3 5
Now you know how to expand each of these 3 × 3 matrices along a row or a column. If you
do so, you will get −12 assuming you make no mistakes. You could expand this matrix
along any row or any column and assuming you make no mistakes, you will always get
the same thing which is defined to be the determinant of the matrix A. This method of
evaluating a determinant by expanding along a row or a column is called the method of
Laplace expansion.
Note that each of the four terms above involves three terms consisting of determinants
of 2×2 matrices and each of these will need 2 terms. Therefore, there will be 4×3×2 = 24
terms to evaluate in order to find the determinant using the method of Laplace expansion.
Suppose now you have a 10 × 10 matrix and you follow the above pattern for evaluating
determinants. By analogy to the above, there will be 10! = 3, 628 , 800 terms involved in
the evaluation of such a determinant by Laplace expansion along a row or column. This is
a lot of terms.
In addition to the difficulties just discussed, you should regard the above claim that you
always get the same answer by picking any row or column with considerable skepticism. It
is incredible and not at all obvious. However, it requires a little effort to establish it. This
is done in the section on the theory of the determinant.
With this definition of the cofactor matrix, here is how to define the determinant of an
n × n matrix.
27.1. BASIC TECHNIQUES AND PROPERTIES 501
The first formula consists of expanding the determinant along the ith row and the second
expands the determinant along the jth column.
Theorem 27.1.14 Expanding the n × n matrix along any row or column always gives the
same answer so the above definition is a good definition.
0 ··· 0 ∗
A lower triangular matrix is defined similarly as a matrix for which all entries above the
main diagonal are equal to zero.
You should verify the following using the above theorem on Laplace expansion.
Corollary 27.1.16 Let M be an upper (lower) triangular matrix. Then det (M) is obtained
by taking the product of the entries on the main diagonal.
Example 27.1.17 Let
1 2 3 77
0 2 6 7
A=
0 0 3 33.7
0 0 0 −1
Find det (A) .
From the above corollary, it suffices to take the product of the diagonal elements. Thus
det (A) = 1 × 2 × 3 × (−1) = −6. Without using the corollary, you could expand along the
first column. This gives
2 6 7 2 3 77
2+1
1 0 3 33.7 + 0 (−1) 0 3 33.7
0 0 −1 0 0 −1
2 3 77 2 3 77
+0 (−1)3+1 2 6 7 + 0 (−1)4+1
2 6 7
0 0 −1 0 3 33.7
502 CHAPTER 27. DETERMINANTS
2 6 7
1 0 3 33.7 .
0 0 −1
Next expand this last determinant along the first column to obtain the above equals
1 × 2 × 3 × (−1) = −6
which is just the product of the entries down the main diagonal of the original matrix. It
works this way in general.
Theorem 27.1.19 Let A be an n × n matrix and let A1 be a matrix which results from
multiplying some row of A by a scalar c. Then c det (A) = det (A1 ).
! !
1 2 2 4
Example 27.1.20 Let A = , A1 = . det (A) = −2, det (A1 ) = −4.
3 4 3 4
Theorem 27.1.21 Let A be an n × n matrix and let A1 be a matrix which results from
switching two rows of A. Then det (A) = − det (A1 ) . Also, if one row of A is a multiple of
another row of A, then det (A) = 0.
! !
1 2 3 4
Example 27.1.22 Let A = and let A1 = . det A = −2, det (A1 ) = 2.
3 4 1 2
27.1. BASIC TECHNIQUES AND PROPERTIES 503
Theorem 27.1.23 Let A be an n × n matrix and let A1 be a matrix which results from
applying row operation 3. That is you replace some row by a multiple of another row
added to itself. Then det (A) = det (A1 ).
! !
1 2 1 2
Example 27.1.24 Let A = and let A1 = . Thus the second row of
3 4 4 6
A1 is one times the first row added to the second row. det (A) = −2 and det (A1 ) = −2.
Theorem 27.1.25 In Theorems 27.1.19 - 27.1.23 you can replace the word, “row” with
the word “column”.
There are two other major properties of determinants which do not involve row opera-
tions.
Example 27.1.27 Compare det (AB) and det (A) det (B) for
! !
1 2 3 2
A= ,B = .
−3 2 4 1
First ! ! !
1 2 3 2 11 4
AB = =
−3 2 4 1 −1 −4
and so !
11 4
det (AB) = det = −40.
−1 −4
Now ! !
1 2 3 2
det (A) = det = 8, det (B) = det = −5.
−3 2 4 1
Thus det (A) det (B) = 8 × (−5) = −40.
Replace the second row by (−5) times the first row added to it. Then replace the third
row by (−4) times the first row added to it. Finally, replace the fourth row by (−2) times
the first row added to it. This yields the matrix
1 2 3 4
0 −9 −13 −17
B=
−3 −8 −13
0
0 −2 −10 −3
and from Theorem 27.1.23, it has the same determinant as A. Now using other row opera-
tions, det (B) = −1
3 det (C) where
1 2 3 4
0 0 11 22
C= .
0 −3 −8 −13
0 6 30 9
The second row was replaced by (−3) times the third row added to the second row. By
Theorem 27.1.23 this didn’t change the value of the determinant. Then the last row was
multiplied by (−3) . By Theorem 27.1.19 the resulting matrix has a determinant which is
(−3) times the determinant of the un-multiplied matrix. Therefore, we multiplied by −1/3
to retain the correct value. Now replace the last row with 2 times the third added to it.
This does not change the value of the determinant by Theorem 27.1.23. Finally switch
the third and second rows. This causes the determinant to be multiplied by (−1) . Thus
det (C) = − det (D) where
1 2 3 4
0 −3 −8 −13
D=
0 0 11 22
0 0 14 −17
You could do more row operations or you could note that this can be easily expanded along
the first column followed by expanding the 3×3 matrix which results along its first column.
Thus
11 22
det (D) = 1 (−3) = 1485
14 −17
Replace the second row by (−1) times the first row added to it. Next take −2 times the
first row and add to the third and finally take −3 times the first row and add to the last row.
This yields
1 2 3 2
0 −5 −1 −1
.
0 −3 −4 1
0 −10 −8 −4
By Theorem 27.1.23 this matrix has the same determinant as the original matrix. Remem-
ber you can work with the columns also. Take −5 times the last column and add to the
second column. This yields
1 −8 3 2
0 0 −1 −1
0 −8 −4 1
0 10 −8 −4
By Theorem 27.1.25 this matrix has the same determinant as the original matrix. Now take
(−1) times the third row and add to the top row. This gives.
1 0 7 1
0 0 −1 −1
−8 −4
0 1
0 10 −8 −4
which by Theorem 27.1.23 has the same determinant as the original matrix. Lets expand
it now along the first column. This yields the following for the determinant of the original
matrix.
0 −1 −1
det −8 −4 1
10 −8 −4
which equals ! !
−1 −1 −1 −1
8 det + 10 det = −82
−8 −4 −4 1
We suggest you do not try to be fancy in using row operations. That is, stick mostly to
the one which replaces a row or column with a multiple of another row or column added to
it. Also note there is no way to check your answer other than working the problem more
than one way. To be sure you have gotten it right you must do this.
27.2 Applications
27.2.1 A Formula For The Inverse
The definition of the determinant in terms of Laplace expansion along a row or column
also provides a way to give a formula for the inverse of a matrix. Recall the definition of
the inverse of a matrix in Definition 8.6.2 on Page 144. Also recall the definition of the
506 CHAPTER 27. DETERMINANTS
cofactor matrix given in Definition 27.1.12 on Page 500. This cofactor matrix was just the
matrix which results from replacing the i jth entry of the matrix with the i jth cofactor.
The following theorem says that to find the inverse, take the transpose of the cofactor
matrix and divide by the determinant. The transpose of the cofactor matrix is called the
adjugate or sometimes the classical adjoint of the matrix A. In other words, A−1 is equal
to one divided by the determinant of A times the adjugate matrix of A. This is what the
following theorem says with more precision.
Theorem 27.2.1 A−1 exists if and only if det(A) ̸= 0. If det(A) ̸= 0, then A−1 = a−1 ij
where
a−1 −1
i j = det(A) cof (A) ji
1 2 1
First find the determinant of this matrix. Using Theorems 27.1.23 - 27.1.25 on Page
503, the determinant of this matrix equals the determinant of the matrix
1 2 3
0 −6 −8
0 0 −2
2 8 −6
Each entry of A was replaced by its cofactor. Therefore, from the above theorem, the
inverse of A should equal
T
−2 −2 6 −1/6 1/3 1/6
1
4 −2 0 = −1/6 −1/6 2/3 .
12
2 8 −6 1/2 0 −1/2
Does it work? You should check to see if it does. When the matrices are multiplied
−1/6 1/3 1/6 1 2 3 1 0 0
−1/6 −1/6 2/3 3 0 1 = 0 1 0
1/2 0 −1/2 1 2 1 0 0 1
and so it is correct.
27.2. APPLICATIONS 507
First find its determinant. This determinant is 16 . The inverse is therefore equal to
T
1/3 −1/2 −1/6 −1/2 −1/6 1/3
−
2/3 −1/2 −5/6 −1/2 −5/6 2/3
0 1/2 1/2 1/2 1/2 0
6 − − .
2/3 −1/2 −5/6 −1/2 −5/6 2/3
0 1/2 1/2 1/2 1/2 0
−
1/3 −1/2 −1/6 −1/2 −1/6 1/3
Expanding all the 2 × 2 determinants this yields
T
1/6 1/3 1/6 1 2 −1
6 1/3 1/6 −1/3 = 2 1 1
Now consider
n
∑ air cof (A)ik det(A)−1
i=1
when k ̸= r. Replace the kth column with the rth column to obtain a matrix Bk whose
determinant equals zero by Theorem 27.1.21. However, expanding this matrix Bk along the
kth column yields
n
0 = det (Bk ) det (A)−1 = ∑ air cof (A)ik det (A)−1
i=1
508 CHAPTER 27. DETERMINANTS
Summarizing, (
n
−1 1 if r = k
∑ air cof (A)ik det (A) = δ rk ≡ .
i=1 0 if r ̸= k
Now
n n
∑ air cof (A)ik = ∑ air cof (A)Tki
i=1 i=1
T
which is the krth entry of cof (A) A. Therefore,
cof (A)T
A = I. (27.2)
det (A)
Now
n n
∑ ar j cof (A)k j = ∑ ar j cof (A)Tjk
j=1 j=1
T
which is the rkth entry of A cof (A) . Therefore,
cof (A)T
A = I, (27.3)
det (A)
and it follows from 27.2 and 27.3 that A−1 = a−1
i j , where
−1
a−1
i j = cof (A) ji det (A) .
In other words,
cof (A)T
A−1 = .
det (A)
so det (A) ̸= 0. ■
This way of finding inverses is especially useful in the case where it is desired to find
the inverse of a matrix whose entries are functions.
0 − sint cost
0 −1 0
You need to have
1 −1 −1 1 0 0
det 0 3 2 −λ 0 1 0 = 0
0 −1 0 0 0 1
That on the left equals a polynomial of degree 3 which when factored yields
(1 − λ ) (λ − 1) (λ − 2)
Therefore, the possible eigenvalues are 1,1,2. Note how the 1 is listed twice. This is because
it occurs twice as a root of the characteristic polynomial. Also, if M −1 does not exist where
M is an n × n matrix, then this means that the columns of M cannot be lineraly independent
since if they were, then by Theorem 11.5.2 M −1 would exist. Thus if A − λ I fails to have
an inverse as above, then the columns are not independent and so there exists a nonzero x
such that (A − λ I) x = 0. Thus we have the following proposition.
Proposition 27.2.5 The eigenvalues of an n × n matrix are the roots of det (A − λ I) = 0.
Corresponding to each of these λ is an eigenvector.
Note that if A = S−1 BS, then A, B have the same characteristic polynomial, hence the
same eigenvalues. (They might have different eigenvectors and usually will.) To see this,
note that from the properties of determinants
det (A − λ I) = det S−1 BS − λ S−1 IS = det S−1 (B − λ I) S
Proposition 27.2.7 Let A be m × n and let B be n × m. Then trace (AB) = trace (BA) . Also
for square matrices A, B, if A = S−1 BS, then trace (A) = trace (B). Also det (A) = det (B).
As to the claim about the determinant, it follows from the properties of the determinant that
det (A) = det S−1 BS = det S−1 det (B) det (S)
These two, the trace and the determinant are two of the so called principal invariants of a
3 × 3 matrix. The reason these are called invariants is that they are the same for A and B if
these two are related as described in the above proposition. In this case, the other principal
invariant is
1 1
(trace (A))2 − trace A2
2 2
It turns out these are related to the coefficients of the characteristic polynomial defined as
det (A − λ I)
Theorem 27.2.8 The trace of a matrix is the sum of its eigenvalues listed according to
multiplicity as a root of the characteristic polynomial. Also, the determinant of the matrix
equals the product of its eigenvalues.
27.2. APPLICATIONS 511
U ∗ AU = T
(λ − µ 1 ) (λ − µ 2 ) · · · (λ − µ n )
where µ 1 , · · · , µ n are the diagonal entries of T . From the above discussion 27.4, these
must also be the eigenvalues of A listed according to multiplicity since these two matrices
A, T have the same characteristic polynomial. By Proposition 27.2.7 A, T have the same
determinant, but since T is upper triangular, the product of its diagonal entries is the product
of the eigenvalues of A and this is the common value of the determinant of these two
matrices. ■
7 8 0
You take det (A − λ I) and after much fussing with details, you get the following for the
characteristic polynomial.
−X 3 + X 2 + X − 1
Thus the eigenvalues are the roots of this polynomial. These roots are 1, 1, −1 when listed
according to multiplicity. You can use the above Theorem 27.2.8 as a way to check whether
you likely have this right. Indeed, when you add these together, you get 1. When you take
the trace of the above matrix, you get 1. This is a little reassurance that you didn’t make a
mistake. Note that the determinant of the above matrix is −1 which also equals the product
of these eigenvalues.
thus solving the system. Now in the case that A−1 exists, there is a formula for A−1 given
above. Using this formula,
n n
1
xi = ∑ a−1
ij yj = ∑
det (A)
cof (A) ji y j .
j=1 j=1
512 CHAPTER 27. DETERMINANTS
where here the ith column of A is replaced with the column vector (y1 · · · ·, yn )T , and the
determinant of this modified matrix is taken and divided by det (A). This formula is known
as Cramer’s rule.
PROCEDURE 27.2.10 Suppose A is an n × n matrix and it is desired to solve
the system Ax = y, y = (y1 , · · · , yn )T for x = (x1 , · · · , xn )T . Then Cramer’s rule says
det Ai
xi =
det A
where Ai is obtained from A by replacing the ith column of A with the column
(y1 , · · · , yn )T .
Find x, y if
1 2 1 x 1
3 2 1 y = 2 .
2 −3 2 z 3
1 2 1
The determinant of the matrix of coefficients, 3 2 1 is −14. From Cramer’s
2 −3 2
rule, to get x, you replace the first column of A with the right side of the equation and take
its determinant and divide by the determinant of A. Thus
1 2 1
2 2 1
3 −3 2 1
x= =
−14 2
You see the pattern. For large systems Cramer’s rule is less than useful if you want to
find an answer. This is because to use it you must evaluate determinants. However, you
have no practical way to evaluate determinants for large matrices other than row operations
and if you are using row operations, you might just as well use them to solve the system to
begin with. It will be a lot less trouble. Nevertheless, there are situations in which Cramer’s
rule is useful.
27.3. MATLAB AND DETERMINANTS 513
You could do it by row operations but it might be easier in this case to use Cramer’s
rule because the matrix of coefficients does not consist of numbers but of functions. Thus
1 0 1
0 et cost t
0 −et sint t2
z= = t ((cost)t + sint) e−t .
1 0 0
0 et cost et sint
0 −et sint et cost
You end up doing this sort of thing sometimes in ordinary differential equations in the
method of variation of parameters.
and the solutions to qA (t) = 0 are called eigenvalues. For A a matrix and p (t) = t n +
an−1t n−1 + · · · + a1t + a0 , denote by p (A) the matrix defined by
The explanation for the last term is that A0 is interpreted as I, the identity matrix.
The Cayley Hamilton theorem states that every matrix satisfies its characteristic equa-
tion, that equation defined by qA (t) = 0. It is one of the most important theorems in linear
514 CHAPTER 27. DETERMINANTS
algebra1 . The proof in this section is not the most general proof, but works well when the
field of scalars is R or C. The following lemma will help with its proof.
A0 + A1 λ + · · · + Am λ m = 0,
A0 λ −m + A1 λ −m+1 + · · · + Am−1 λ −1 + Am = 0.
A0 + A1 λ + · · · + Am λ m = B0 + B1 λ + · · · + Bm λ m
for all |λ | large enough. Then Ai = Bi for all i. If Ai = Bi for each Ai , Bi then one can
substitute an n × n matrix M for λ and the identity will continue to hold.
Proof: Subtract and use the result of the lemma. The last claim is obvious by matching
terms. ■
With this preparation, here is a relatively easy proof of the Cayley Hamilton theorem.
Proof: Let C (λ ) equal the transpose of the cofactor matrix of (λ I − A) for |λ | large.
(If |λ | is large enough, then λ cannot be in the finite list of eigenvalues of A and so for such
λ , (λ I − A)−1 exists.) Therefore, by Theorem 28.1.14
C (λ ) = q (λ ) (λ I − A)−1 .
Say
q (λ ) = a0 + a1 λ + · · · + λ n
Note that each entry in C (λ ) is a polynomial in λ having degree no more than n − 1. For
example, you might have something like
2
λ − 6λ + 9 3−λ 0
C (λ ) = 2λ − 6 λ 2 − 3λ 0
2
λ −1 λ −1 λ − 3λ + 2
1 A special case was first proved by Hamilton in 1853. The general case was announced by Cayley some time
−1 −1 2 1 1 −3 0 0 1
Therefore, collecting the terms in the general case,
C (λ ) = C0 +C1 λ + · · · +Cn−1 λ n−1
for C j some n × n matrix. Then
C (λ ) (λ I − A) = C0 +C1 λ + · · · +Cn−1 λ n−1 (λ I − A) = q (λ ) I
Then multiplying out the middle term, it follows that for all |λ | sufficiently large,
a0 I + a1 Iλ + · · · + Iλ n = C0 λ +C1 λ 2 + · · · +Cn−1 λ n
h i
− C0 A +C1 Aλ + · · · +Cn−1 Aλ n−1
However,
(NI + E1 ) (NI + E2 ) ̸= (NI + E2 ) (NI + E1 )
The reason this can take place is that N fails to commute with Ei . Of course a scalar
commutes with any matrix so there was no difficulty in obtaining that the matrix equation
held for arbitrary λ , but this factored equation does not continue to hold if λ is replaced
by a matrix. In the above proof of the Cayley Hamilton theorem, this issue was avoided by
considering only polynomials which are of the form C0 +C1 λ +· · · in which the polynomial
identity held because the corresponding matrix coefficients were equal. However, you can
also argue that in the above proof, the Ci each commute with A.
Theorem 27.4.5 Let q (λ ) be the characteristic polynomial and p (λ ) the minimal poly-
nomial. Then there is a polynomial l (λ ) which could be a constant such that q (λ ) =
l (λ ) p (λ ).
Proof: By the division algorithm, q (λ ) = p (λ ) l (λ )+r (λ ) where the degree of r (λ ) is
less than the degree of p (λ ) or else r (λ ) = 0. But then, substituting in A, you get r (A) = 0
which is impossible if its degree is less than that of p (λ ). It follows that r (λ ) = 0 and so
the claim is established. p (λ ) “divides” q (λ ). ■
516 CHAPTER 27. DETERMINANTS
27.5 Exercises
1. Find the determinants of the following matrices.
1 2 3 375.)
(a) 3 2 2 (The answer is 31.)
1 2 3 2
0 9 8 1 3 2 3
(c) , (The answer is
4 3 2 4 1 5 0
(b) 1 7 8 (The answer is
1 2 1 2
3 −9 3 −2.)
2. Find the following determinant by expanding along the first row and second column.
1 2 1
2 1 3
2 1 1
3. Find the following determinant by expanding along the first column and third row.
1 2 1
1 0 1
2 1 1
4. Find the following determinant by expanding along the second row and first column.
1 2 1
2 1 3
2 1 1
5. Compute the determinant by cofactor expansion. Pick the easiest row or column to
use.
1 0 0 1
2 1 1 0
0 0 0 2
2 1 3 1
6. Find the determinant using row operations.
1 2 1
2 3 2
−4 1 2
2 1 3
2 4 2
1 4 −5
27.5. EXERCISES 517
1 2 1 2
3 1 −2 3
−1 0 3 1
2 3 2 −2
1 4 1 2
3 2 −2 3
−1 0 3 3
2 1 2 −2
11. An operation is done to get from the first matrix to the second. Identify what was
done and tell how it will affect the value of the determinant.
! !
a b a c
,
c d b d
12. An operation is done to get from the first matrix to the second. Identify what was
done and tell how it will affect the value of the determinant.
! !
a b c d
,
c d a b
13. An operation is done to get from the first matrix to the second. Identify what was
done and tell how it will affect the value of the determinant.
! !
a b a b
,
c d a+c b+d
14. An operation is done to get from the first matrix to the second. Identify what was
done and tell how it will affect the value of the determinant.
! !
a b a b
,
c d 2c 2d
15. An operation is done to get from the first matrix to the second. Identify what was
done and tell how it will affect the value of the determinant.
! !
a b b a
,
c d d c
518 CHAPTER 27. DETERMINANTS
16. Let A be an r × r matrix and suppose there are r − 1 rows (columns) such that all rows
(columns) are linear combinations of these r − 1 rows (columns). Show det (A) = 0.
17. Show det (aA) = an det (A) where here A is an n × n matrix and a is a scalar.
18. Illustrate with an example of 2 × 2 matrices that the determinant of a product equals
the product of the determinants.
19. Is it true that det (A + B) = det (A) + det (B)? If this is so, explain why it is so and if
it is not so, give a counter example.
20. An n × n matrix is called nilpotent if for some positive integer, k it follows Ak = 0.
If A is a nilpotent matrix and k is the smallest possible integer such that Ak = 0, what
are the possible values of det (A)?
21. A matrix is said to be orthogonal if AT A = I. Thus the inverse of an orthogonal ma-
trix is just its transpose. What are the possible values of det (A) if A is an orthogonal
matrix?
22. Fill in the missing entries to make the matrix orthogonal as in Problem 21.
√
−1
√ √1 12
2 6 6
√1 .
2
√
6
3
25. Two n × n matrices, A and B, are similar if B = S−1 AS for some invertible n × n
matrix S. Show that if two matrices are similar, they have the same characteristic
polynomials. The characteristic polynomial of an n × n matrix M is the polynomial,
det (λ I − M) .
(f) If B is obtained by multiplying a single row of A by 4 then det (B) = 4 det (A) .
(g) For A an n × n matrix, det (−A) = (−1)n det (A) .
27.5. EXERCISES 519
(i) Cramer’s rule is useful for finding solutions to systems of linear equations in
which there is an infinite set of solutions.
(j) If Ak = 0 for some positive integer, k, then det (A) = 0.
(k) If Ax = 0 for some x ̸= 0, then det (A) = 0.
3 1 0
Determine whether the matrix has an inverse by finding whether the determinant is
non zero. If the determinant is nonzero, find the inverse using the formula for the
inverse which involves the cofactor matrix.
30. Here is a matrix,
1 2 0
0 2 1
3 1 1
Determine whether the matrix has an inverse by finding whether the determinant is
non zero. If the determinant is nonzero, find the inverse using the formula for the
inverse which involves the cofactor matrix.
31. Here is a matrix,
1 3 3
2 4 1
0 1 1
Determine whether the matrix has an inverse by finding whether the determinant is
non zero. If the determinant is nonzero, find the inverse using the formula for the
inverse which involves the cofactor matrix.
32. Here is a matrix,
1 2 3
0 2 1
2 6 7
Determine whether the matrix has an inverse by finding whether the determinant is
non zero. If the determinant is nonzero, find the inverse using the formula for the
inverse which involves the cofactor matrix.
33. Here is a matrix,
1 0 3
1 0 1
3 1 0
520 CHAPTER 27. DETERMINANTS
Determine whether the matrix has an inverse by finding whether the determinant is
non zero. If the determinant is nonzero, find the inverse using the formula for the
inverse which involves the cofactor matrix.
34. Use the formula for the inverse in terms of the cofactor matrix to find if possible the
inverses of the matrices
! 1 2 3 1 2 1
1 1
, 0 2 1 , 2 3 0 .
1 2
4 1 1 0 1 2
0 sint cost
Does there exist a value of t for which this matrix fails to have an inverse? Explain.
36. Here is a matrix,
1 t t2
0 1 2t
t 0 2
Does there exist a value of t for which this matrix fails to have an inverse? Explain.
37. Here is a matrix,
et cosht sinht
t
e sinht cosht
et cosht sinht
Does there exist a value of t for which this matrix fails to have an inverse? Explain.
38. Show that if det (A) ̸= 0 for A an n × n matrix, it follows that if Ax = 0, then x = 0.
39. Suppose A, B are n × n matrices and that AB = I. Show that then BA = I. Hint: You
might do something like this: First explain why det (A) , det (B) are both nonzero.
Then (AB) A = A and then show BA (BA − I) = 0. From this use what is given to
conclude A (BA − I) = 0. Then use Problem 38.
40. Use the formula for the inverse in terms of the cofactor matrix to find the inverse of
the matrix
et 0 0
A= 0 et cost et sint .
t t t
0 e cost − e sint e cost + e sint t
et − cost − sint
27.5. EXERCISES 521
Does there exist a value of t for which this matrix fails to have an inverse? Explain.
43. Suppose A is an upper triangular matrix. Show that A−1 exists if and only if all
elements of the main diagonal are non zero. Is it true that A−1 will also be upper
triangular? Explain. Is everything the same for lower triangular matrices?
44. If A, B, and C are each n × n matrices and ABC is invertible, why are each of A, B,
and C invertible.
!
a (t) b (t)
45. Let F (t) = det . Verify
c (t) d (t)
! !
′ a′ (t) b′ (t) a (t) b (t)
F (t) = det + det .
c (t) d (t) c′ (t) d ′ (t)
Now suppose
a (t) b (t) c (t)
F (t) = det d (t) e (t) f (t) .
Conjecture a general result valid for n × n matrices and explain why it will be true.
Can a similar thing be done with the columns?
46. Let Ly = y(n) + an−1 (x) y(n−1) + · · · + a1 (x) y′ + a0 (x) y where the ai are given con-
tinuous functions defined on a closed interval, (a, b) and y is some function which
has n derivatives so it makes sense to write Ly. Suppose Lyk = 0 for k = 1, 2, · · · , n.
The Wronskian of these functions, yi is defined as
y1 (x) ··· yn (x)
y′ (x) ··· y′n (x)
1
W (y1 , · · · , yn ) (x) ≡ det
.. ..
. .
(n−1) (n−1)
y1 (x) · · · yn (x)
522 CHAPTER 27. DETERMINANTS
Now use the differential equation, Ly = 0 which is satisfied by each of these func-
tions, yi and properties of determinants presented above to verify the differential
equation W ′ + an−1 (x)W = 0. Give an explicit solution of this linear differential
equation, Abel’s formula, and use your answer to verify that the Wronskian of these
solutions to the equation, Ly = 0 either vanishes identically on (a, b) or never. Hint:
To solve the differential equation, let A′ (x) = an−1 (x) and multiply both sides of the
differential equation by eA(x) and then argue the left side is the derivative of some-
thing.
47. Find the following determinants and the inverses of the given matrices. You might
use MATLAB to do this with no trouble.
2 2 + 2i 3 − 3i 10 2 + 6i 8 − 6i
(a) det 2 − 2i 5 1 − 7i (b) det 2 − 6i 9 1 − 7i
3 + 3i 1 + 7i 16 8 + 6i 1 + 7i 17
48. Find the eigenvalues and eigenvectors of the following matrices. List the eigenvalues
according to multiplicity as a root of the characteristic polyinomial.
4 7 5
(a) −2 −4 −4
1 3 4
1 1 2
(b) 0 0 −2
0 1 3
−3 −7 −2
(c) 4 8 2
−2 −3 1
4 6 3
(d) −2 −3 −2
1 2 2
49. The eigenspace for an eigenvalue λ is defined to be the span of all eigenvectors. If
the dimension of the eigenspace for each λ equals the multiplicity of the eigenvalue
as a root of the characteristic polynomial, then the matrix is said to be nondefective.
If, for any eigenvalue, the dimension of the eigenspace called geometric multiplicity
27.5. EXERCISES 523
is less than the algebraic multiplicity of the eigenvalue as a root of the characteris-
tic polynomial, then the matrix is called defective. It can be shown that A can be
diagonalized if and only if it is nondefective. See Theorem 11.5.3.
50. The typical situation is that an n × n matrix has n distinct eigenvalues. In this case,
the matrix is always nondefective. This comes from the following theorem which
you will show in this problem.
Do the following. If not independent, then there exist scalars ai such that
l
∑ ai xi = 0
i=1
in which the ai are not all zero and l is as small as possible for this to take place.
Explain why al ̸= 0 and why l ≥ 2. Then multiply both sides on the left by A and
then both sides on the left by µ l . Subtract and obtain a contradiction of some sort,
having to do with l being as small as possible and all eigenvectors being nonzero.
524 CHAPTER 27. DETERMINANTS
Chapter 28
Lemma 28.0.1 There exists a function, sgnn which maps each ordered list of numbers from
{1, · · · , n} to one of the three numbers, 0, 1, or −1 which also has the following properties.
sgnn (i1 , · · · , iθ −1 , n, iθ +1 , · · · , in ) ≡
This delivers either −1, 1, or 0 by definition. What about the other claims? Suppose you
switch i p with iq where p < q so two numbers in the ordered list (i1 , · · · , in ) are switched.
525
526 CHAPTER 28. THE MATHEMATICAL THEORY OF DETERMINANTS∗
i1 i2 iq ip in
··· ··· ···
1 2 p q n
The last product consists of the product of terms which were in the un-switched product
∏r<s (is − ir ) so produces no change in sign, while the two products in the middle both
introduce q − p − 1 minus signs. Thus their product produces no change in sign. The first
factor is of opposite sign to the iq − i p which occured in sgnn (i1 , · · · , in ) . Therefore, this
switch introduced a minus sign and
Now consider the last claim. In computing sgnn (i1 , · · · , iθ −1 , n, iθ +1 , · · · , in ) there will
be the product of n − θ negative terms
(iθ +1 − n) · · · (in − n)
and the other terms in the product for computing sgnn (i1 , · · · , iθ −1 , n, iθ +1 , · · · , in ) are those
which are required to compute sgnn−1 (i1 , · · · , iθ −1 , iθ +1 , · · · , in ) multiplied by terms of the
form (n − i j ) which are nonnegative. It follows that
It is obvious that if there are repeats in the list the function gives 0. ■
Lemma 28.0.2 Every ordered list of distinct numbers from {1, 2, · · · , n} can be obtained
from every other such ordered list by a finite number of switches. Also, sgnn is unique.
To see sgnn is unique, if there exist two functions, f and g both satisfying 28.1 and
28.2, you could start with f (1, · · · , n) = g (1, · · · , n) = 1 and applying the same sequence
of switches, eventually arrive at f (i1 , · · · , in ) = g (i1 , · · · , in ) . If any numbers are repeated,
then 28.2 gives both functions are equal to zero for that ordered list. ■
Definition 28.0.3 When you have an ordered list of distinct numbers from
{1, 2, · · · , n} ,
say
(i1 , · · · , in ) ,
this ordered list is called a permutation. The symbol for all such permutations is Sn . The
number sgnn (i1 , · · · , in ) is called the sign of the permutation.
{1, 2, · · · , n} to {1, 2, · · · , n}
∑ f (k1 · · · kn )
(k1 ,··· ,kn )
to be the sum of all the f (k1 · · · kn ) for all possible choices of ordered lists (k1 , · · · , kn ) of
numbers of {1, · · · , n} . For example,
where the sum is taken over all ordered lists of numbers from {1, · · · , n}. Note it suffices
to take the sum over only those ordered lists in which there are no repeats because if there
are, sgn (k1 , · · · , kn ) = 0 and so that term contributes 0 to the sum.
528 CHAPTER 28. THE MATHEMATICAL THEORY OF DETERMINANTS∗
and
A (1, · · · , n) = A.
and proves the proposition in the case when there are no repeated numbers in the ordered
list, (r1 , · · · , rn ). However, if there is a repeat, say the rth row equals the sth row, then the
reasoning of 28.7 -28.8 shows that det A (r1 , · · · , rn ) = 0 and also sgn (r1 , · · · , rn ) = 0 so the
formula holds in this case also. ■
Observation 28.1.4 There are n! ordered lists of distinct numbers from {1, · · · , n} .
To see this, consider n slots placed in order. There are n choices for the first slot. For
each of these choices, there are n − 1 choices for the second. Thus there are n (n − 1) ways
to fill the first two slots. Then for each of these ways there are n − 2 choices left for the third
slot. Continuing this way, there are n! ordered lists of distinct numbers from {1, · · · , n} as
stated in the observation.
aTij = a ji .)
Summing over all ordered lists, (r1 , · · · , rn ) where the ri are distinct, (If the ri are not
distinct, sgn (r1 , · · · , rn ) = 0 and so there is no contribution to the sum.)
n! det (A) =
This proves the corollary since the formula gives the same number for A as it does for AT .
■
Then
det (A) = x det (A1 ) + y det (A2 )
where the ith row of A1 is (a1 , · · · , an ) and the ith row of A2 is (b1 , · · · , bn ) , all other rows of
A1 and A2 coinciding with those of A. In other words, det is a linear function of each row
A. The same is true with the word “row” replaced with the word “column”.
Proof: By Proposition 28.1.3 when two rows are switched, the determinant of the re-
sulting matrix is (−1) times the determinant of the original matrix. By Corollary 28.1.5 the
same holds for columns because the columns of the matrix equal the rows of the transposed
matrix. Thus if A1 is the matrix obtained from A by switching two columns,
If A has two equal columns or two equal rows, then switching them results in the same
matrix. Therefore, det (A) = − det (A) and so det (A) = 0.
It remains to verify the last assertion.
det (A) ≡ ∑ sgn (k1 , · · · , kn ) a1k1 · · · xaki + ybki · · · ankn
(k1 ,··· ,kn )
of A. ■
w ∈ span (v 1 , · · · , v r ) .
Corollary 28.1.8 Suppose A is an n × n matrix and some column (row) is a linear combi-
nation of r other columns (rows). Then det (A) = 0.
Proof: Let A = a1 · · · an be the columns of A and suppose the condition that
one column is a linear combination of r of the others is satisfied. Then by using Corollary
28.1. THE DETERMINANT 531
28.1.6 the determinant of A is zero if and only if the determinant of the matrix B, which has
this special column placed in the last position, equals zero. Thus an = ∑rk=1 ck ak and so
det (B) = det a1 · · · ar · · · an−1 ∑rk=1 ck ak .
By Corollary 28.1.6
r
det (B) = ∑ ck det a1 ··· ar ··· an−1 ak = 0.
k=1
becausethere are two equal columns. The case for rows follows from the fact that det (A) =
det AT . ■
Definition 28.1.9 If A and B are n × n matrices, A = (ai j ) and B = (bi j ), AB = (ci j ) where
n
ci j ≡ ∑ aik bk j .
k=1
One of the most important rules about determinants is that the determinant of a product
equals the product of the determinants.
det (AB) =
= ∑ sgn (r1 · · · rn ) a1r1 · · · anrn det (B) = det (A) det (B) . ■
(r1 ··· ,rn )
or !
A 0
M= (28.11)
∗ a
where a is a number and A is an (n − 1) × (n − 1) matrix and ∗ denotes either a column
or a row having length n − 1 and the 0 denotes either a column or a row of length n − 1
consisting entirely of zeros. Then det (M) = a det (A) .
Proof: Denote M by (mi j ) . Thus in the first case, mnn = a and mni = 0 if i ̸= n while in
the second case, mnn = a and min = 0 if i ̸= n. From the definition of the determinant,
det (M) ≡ ∑ sgnn (k1 , · · · , kn ) m1k1 · · · mnkn
(k1 ,··· ,kn )
Letting θ denote the position of n in the ordered list, (k1 , · · · , kn ) then using Lemma 28.0.1,
det (M) equals
θ n−1
n−θ
∑ (−1) sgn n−1 k1 , · · · , k , k
θ −1 θ +1 , · · · , k n m1k1 · · · mnkn
(k1 ,··· ,kn )
Now suppose 28.11. Then if kn ̸= n, the term involving mnkn in the above expression equals
zero. Therefore, the only terms which survive are those for which θ = n or in other words,
those for which kn = n. Therefore, the above expression reduces to
a ∑ sgnn−1 (k1 , · · · kn−1 ) m1k1 · · · m(n−1)kn−1 = a det (A) .
(k1 ,··· ,kn−1 )
To get the assertion in the situation of 28.10 use Corollary 28.1.5 and 28.11 to write
!!
T AT 0
= a det AT = a det (A) .■
det (M) = det M = det
∗ a
In terms of the theory of determinants, arguably the most important idea is that of
Laplace expansion along a row or a column. This will follow from the above definition of
a determinant.
Definition 28.1.12 Let A = (ai j ) be an n × n matrix. Then a new matrix called the cofactor
matrix, cof (A) is defined by cof (A) = (ci j ) where to obtain ci j delete the ith row and the
jth column of A, take the determinant of the (n − 1) × (n − 1) matrix which results, (This
is called the i jth minor of A. ) and then multiply this number by (−1)i+ j . To make the
formulas easier to remember, cof (A)i j will denote the i jth entry of the cofactor matrix.
The following is the main result. Earlier this was given as a definition and the outra-
geous totally unjustified assertion was made that the same number would be obtained by
expanding the determinant along any row or column. The following theorem proves this
assertion.
Theorem 28.1.13 Let A be an n × n matrix where n ≥ 2. Then
n n
det (A) = ∑ ai j cof (A)i j = ∑ ai j cof (A)i j . (28.12)
j=1 i=1
The first formula consists of expanding the determinant along the ith row and the second
expands the determinant along the jth column.
28.1. THE DETERMINANT 533
Proof: Let (ai1 , · · · , ain ) be the ith row of A. Let B j be the matrix obtained from A by
leaving every row the same except the ith row which in B j equals
(0, · · · , 0, ai j , 0, · · · , 0) .
Denote by Ai j the (n − 1) × (n − 1) matrix obtained by deleting the ith row and the jth col-
i+ j i j
umn of A. Thus cof (A)i j ≡ (−1) det A . At this point, recall that from Proposition
28.1.3, when two rows or two columns in a matrix M, are switched, this results in multi-
plying the determinant of the old matrix by −1 to get the determinant of the new matrix.
Therefore, by Lemma 28.1.11,
!!
n− j n−i Ai j ∗
det (B j ) = (−1) (−1) det
0 ai j
!!
A i j ∗
= (−1)i+ j det = ai j cof (A)i j .
0 ai j
Therefore,
n
det (A) = ∑ ai j cof (A)i j
j=1
which is the formula for expanding det (A) along the ith row. Also,
n
det (A) = det AT = ∑ aTij cof AT
ij
j=1
n
= ∑ a ji cof (A) ji
j=1
which is the formula for expanding det (A) along the ith column. ■
Now consider
n
∑ air cof (A)ik det(A)−1
i=1
−1
a−1
i j = cof (A) ji det (A) .
so det (A) ̸= 0. ■
The next corollary points out that if an n × n matrix A has a right or a left inverse, then
it has an inverse.
det B det A = 1
thus solving the system. Now in the case that A−1 exists, there is a formula for A−1 given
above. Using this formula,
n n
1
xi = ∑ a−1
ij yj = ∑
det (A)
cof (A) ji y j .
j=1 j=1
where here the ith column of A is replaced with the column vector (y1 · · · , yn )T , and the
determinant of this modified matrix is taken and divided by det (A). This formula is known
as Cramer’s rule.
536 CHAPTER 28. THE MATHEMATICAL THEORY OF DETERMINANTS∗
Chapter 29
d at
eat y′ + ay =
e y = 0.
dt
Therefore, since the derivative of the function t → eat y (t) equals zero, it follows this func-
tion must equal some constant C. Consequently, yeat = C and so y (t) = Ce−at . This shows
that if there is a solution of the equation, y′ + ay = 0, then it must be of the form Ce−at
for some constant, C. You should verify that every function of the form, y (t) = Ce−at is
a solution of the above differential equation, showing that this yields all solutions. This
proves the following theorem.
Theorem 29.1.1 The solutions to the equation, y′ + ay = 0 for a a real number consist of
all functions of the form, Ce−at where C is some constant.
Example 29.1.2 Radioactive substances decay in the following way. The rate of decay is
proportional to the amount present. In other words, letting A (t) denote the amount of the
radioactive substance at time t, A (t) satisfies the following initial value problem.
where A0 is the initial amount of the substance. What is the solution to the initial value
problem?
537
538 CHAPTER 29. FIRST ORDER SCALAR ODE
Write the differential equation as A′ (t)+k2 A (t) = 0. From Theorem 29.1.1 the solution
is
2t
A (t) = Ce−k
and it only remains to find C. Letting t = 0, it follows A0 = A (0) = C. Thus A (t) =
A0 exp −k2t .
Now here is another problem which is a little harder because it has something extra
added in at the end.
Example 29.1.3 Find solutions to y′ = 2y + 1.
Here is how you do it:
1. Write as y′ − 2y = 1
R
2. Find an “Integrating Factor” (−2) dt = −2t. Note that I didn’t bother to add in the
arbitrary constant. This is because it does not matter. You don’t care about finding
all integrating factors. You just need one. Then an integrating factor is e−2t .
3. Multiply both sides of the equation by the integrating factor.
d −2t
e−2t y′ − 2y = e y (t) = e−2t (1)
dt
Note that the first equal sign follows from the product rule and the chain rule. This
is why we multiply by the integrating factor, to get the derivative of something
equal to something known.
4. Take antiderivatives of both sides.
1
Z
e−2t y (t) = e−2t dt = − e−2t +C
2
Thus
1
y (t) = − +Ce2t
2
This time you need to be sure to keep the constant of integration because it does
matter.
Note that by varying C you get different solutions to the differential equation. Now
here are graphs of a few of these solutions along with the slope field.
Note how the solutions follow the slope field. How
do you determine the “right value” of C? This involves
an
INITIAL CONDITION
An initial condition involves specifying a particular
point which is to lie on the graph of the solution to the
differential equation. Then you can see from the picture
that, having made this specification, the rest of the graph
should be determined by the need to follow the slope
field. When you have specified the initial condition as
well as the differential equation, the problem is called an
initial value problem.
29.1. FIRST ORDER LINEAR EQUATIONS 539
y′ = 2y + 1, y (1) = 2
From the above example, all solutions are of the form y = − 12 + Ce2t . It is now just
a matter of finding the value of C which will cause the given point (1, 2) , expressed by
saying that y (1) = 2, to lie on the graph of y. Thus you need to have 2 = − 12 +Ce2 . Then
you just need to solve this equation for C. This yields C = 2e52 . Therefore, the solution to
the initial value problem is
1 5
y = − + 2 e2t
2 2e
Note the use of the definite article. There is only one solution to this initial value problem
although there are infinitely many solutions to the differential equation, three of which were
graphed above. This uniqueness property will be discussed more later, but for now, you can
see roughly why this is. It comes from the need for the solution to follow the slope field,
so if you specify a point on the curve, you have essentially determined it.
d
exp t 2 y′ + 2ty = exp t 2 y = sin (t)
dt
R
3. Take of both sides.
exp t 2 y (t) = − cos (t) +C
4. Solve for y
y = exp −t 2 (C − cos (t))
3 = C − 1, C = 4.
Now at this point, you should check and see if it works. It needs to solve both the initial
condition and the differential equation.
y′ + a (t) y = b (t) .
R
1. Find integrating factor. A (t) +C ≡ a (t) . Integrating factor: exp (A (t))
540 CHAPTER 29. FIRST ORDER SCALAR ODE
Theorem 29.1.7 The solutions to the equation, y′ + a (t) y = b (t) consist of all functions
of the form y (t) = e−A(t) F (t) + e−A(t)C where F (t) ∈ eA(t) b (t) dt and C is a constant,
R
A′ (t) = a (t).
Theorem 29.1.8 If a (t) is a continuous function, there is at most one solution to the initial
value problem, y′ + a (t) y = b (t) , y (r) = y0 .
y′ + a (t) y = b (t)
Now here are the steps for solving the initial value problem.
R
1. Find the integrating factor a (t) dt ≡ A (t)+C. The integrating factor is exp (A (t)) =
eA(t) .
2. Multiply both sides by the integrating factor.
d
exp (A (t)) y′ (t) + a (t) y (t) = (exp (A (t)) y (t)) = exp (A (t)) b (t)
dt
Why is this so? It involves the chain rule and the product rule.
d
(exp (A (t)) y (t)) = exp (A (t)) A′ (t) y (t) + exp (A (t)) y′ (t)
dt
= exp (A (t)) a (t) y (t) + exp (A (t)) y′ (t)
= exp (A (t)) y′ (t) + a (t) y (t)
29.1. FIRST ORDER LINEAR EQUATIONS 541
Rt
3. Next do t0 to both sides.
Z t Z t
d
(exp (A (s)) y (s)) ds = exp (A (s)) b (s) ds
t0 ds t0
This shows that if the linear initial value problem has a solution, then it must be of the
above form. Hence there is at most one solution to the initial value problem. Does the
above formula actually give a solution to the initial value problem? Let y (t) be given by
that formula. Then
Z t0
y (t0 ) = exp (0) y0 + exp (A (s) − A (t)) b (s) ds = y0
t0
so the initial condition holds. Does it solve the differential equation? By the chain rule and
the fundamental theorem of calculus,
y′ (t) = −A′ (t) exp (A (t0 ) − A (t)) y0 + exp (−A (t)) exp (A (t)) b (t)
Z t
+ −A′ (t) exp (−A (t)) exp (A (s)) b (s) ds
t0
= (−a (t)) exp (A (t0 ) − A (t)) y0 + exp (−A (t)) exp (A (t)) b (t)
Z t
+ (−a (t)) exp (−A (t)) exp (A (s)) b (s) ds = −a (t) y (t) + b (t)
t0
1
Z
e2x y = e2x sin (x) dx = e2x (2 sin x − cos x) +C
5
1
y = (2 sin x − cos x) +Ce−2x
5
The reason for writing it this way is that sometimes you want to find x as a function of y
and this notation is neutral in terms of which variable is the independent variable.
542 CHAPTER 29. FIRST ORDER SCALAR ODE
Example 29.1.11 A radioactive substance decays in such a way that the rate of change of
the amount of the substance is a constant multiple of the amount present, the constant being
negative. Thus dA dt = −kA. There is a certain sample of decaying material. Measurements
are taken after 5 years and it is found that there is about 9/10 of the original amount
present. Find the half life of this material. The half life is the amount of time it takes for
half of it to have decayed.
.2 12(3.5)
1+ = 2. 002 2
12
which is very similar to compounding the interest continuously. The rational for this for-
mula is that if it is compounded monthly, then the interest rate per month is .2/12. Each
successive month is called a payment period.
Example 29.1.13 A lake contains one million gallons of water. A gas tank starts to leak
upstream and contaminated water mixed with gasoline starts flowing into the lake at the
rate of 1000 gallons per month. This is mixed well due to large numbers of fish in the lake
and water flows out at the same rate. The amount of gasoline in the contaminated water
varies due to the demand for gas at the gas station and the concentration of gasoline in the
contaminated water is (1 + sin (t)) grams per gallon. Find a formula for the concentration
of gasoline in the lake in grams per gallon as a function of time in months after a long time.
29.1. FIRST ORDER LINEAR EQUATIONS 543
a − a2 − 1 be−at
eat
−at 2 2
A = be a sint − a cost + a + 1 +
a3 + a a3 + a
Now placing in the formula the values of a and b and then simplifying the result it follows
that A equals
106 e−0.001t 1.0e0.001t − 0.001 e0.001t cost + 1.0 × 10−6 e0.001t sint − 0.999
Then, dividing by the number of gallons in the lake, this yields for the number of grams
per gallon
e−0.001t 1.0e0.001t − 0.001 e0.001t cost + 1.0 × 10−6 e0.001t sint − 0.999
After a long time, the terms having the negative exponential will disappear in the limit and
this yields for the number of grams per gallon the formula
1 − 0.001 cost + 1.0 × 10−6 sint
Note that this yields approximately 1 gram per gallon. Compare to the concentration of the
incoming water. The concentration of the incoming water oscillates about 1 and so does
the concentration of gas in the lake, although the oscillations are much much smaller. This
is due to the large number of gallons in the lake. You might have expected this but you
could not have predicted exact values without the differential equation.
Example 29.1.14 A pumpkin is launched 30◦ from the horizontal at a speed of 60 feet per
second. It is acted on by the force of gravity which delivers an acceleration which is 32
feet per second squared and an acceleration due to air resistance which we assume is .2
times the speed which acts in the opposite direction to the direction of motion. Describe
the position of the pumpkin as a function of time.
544 CHAPTER 29. FIRST ORDER SCALAR ODE
Let the initial position be at (0, 0) the coordinates of the point be (x (t) , y (t)) .
√ and let
What is the initial velocity? It is 30 3, 30 . Then the acceleration is given by
As to x,
′
x′′ + .2x′ = 0 so x′ e.2t =0
√ −.2t
and so x′ (t) = Ce−.2t . To satisfy the initial condition, x′ (t) = 30 3e . Then
√
30 3 −.2t
x (t) = e +D
− (1/5)
√
What is D? to satisfy the initial condition for the position, D = 150 3 and so
√ √
x (t) = −150 3e−.2t + 150 3
y′ + a (t) y = f (t) ,
do the following:
1. Find A (t) ∈ a (t) dt. That is, find A (t) such that A′ (t) = a (t).
R
1
yα z′ + a (t) yα z = b (t) yα
(1 − α)
and so
z′ + (1 − α) a (t) z = (1 − α) b (t) .
Now this is a linear equation for z. Solve it and then use the transformation to find y.
You let z = y−2 and make the above substitution. Thus zy3 = y and
1
z′ = (−2) y−3 y′ , y′ = − y3 z′
2
and so − 21 y3 z′ + y3 z = ty3 . Hence, cancelling the y3 , z′ − 2z = (−2)t. Then
d −2t
e z = −2te−2t
dt
and so
1
e−2t z = te−2t + e−2t +C
2
and so
1
y−2 = z = t + +Ce2t
2
and so
1
y2 = 1
.
t + +Ce2t
2
When you get this far, it is a good idea to check and see if it works. After all, this is
the point of the manipulations, to get the answer. If you get the answer, then if there is a
mistake, it is no longer terribly relevant.
!
d 1 8Ce2t + 4
2yy′ = = −
dt t + 12 +Ce2t (2t + 2Ce2t + 1)2
8Ce2t + 4
y′ = −
2y (2t + 2Ce2t + 1)2
1 This is named after Jacob Bernoulli (1654-1705), one of a whole family of Swiss mathematicians. Others
Then
8Ce2t + 4
y′ + y = − +y
2y (2t + 2Ce2t + 1)2
2
8Ce2t + 4 2y2 2t + 2Ce2t + 1
= − +
2y (2t + 2Ce2t + 1)2 2y (2t + 2Ce2t + 1)2
1
2
2 2t + 2Ce2t + 1
8Ce2t + 4 1
t+ 2 +Ce2t
= − 2
+
2y (2t + 2Ce2t + 1) 2y (2t + 2Ce2t + 1)2
t t t 4 3
= 4 2
= 2 = y = ty
2t
y (2t + 2Ce + 1) 2t
y t +Ce + 2 1 y
so it appears to work.
The following procedure gives a summary of the above.
Proof: Differentiate both sides of F (x) − G (y) = c with respect to x. Using the chain
rule,
dy
F ′ (x) − G′ (y) = 0.
dx
dy
Therefore, since F ′ (x) = f (x) and G′ (y) = g (y) , f (x) = g (y) dx which is equivalent to
29.2. ■
Definition 29.3.3 The curves F (x) − G (y) = c for various values of c are called integral
curves or solution curves. It makes sense to think of these as giving a solution if, near a
point on the level curve, one variable is a function of the other.
y2 y′ = x, y (0) = 1.
This is a separable equation and in fact, y2 dy = xdx so the solution to the differential
3 2
equation is of the form y3 − x2 = C and it only remains to find the constant C. To do this,
you use the initial condition. Letting x = 0, it follows 13 = C and so
y3 x 2 1
− =
3 2 3
The following picture shows how the integral curves follow the tangent field.
Sometimes, you can’t expect to solve for one of the variables in terms of the other.
In other words, the integral curve might not be a function of one variable. Here is a nice
example from [7].
x2
y′ =
(1 − y2 )
Separating variables, you get 1 − y2 dy = x2 dx and so the integral curves are of the
form
y3 x3
y− − =C
3 3
Here is a picture of a few of these integral curves along with the slope field.
548 CHAPTER 29. FIRST ORDER SCALAR ODE
-2
-4
-4 -2 0 2 4
I used MATLAB to graph the above. One thing might be helpful to mention about
MATLAB. It is very good at manipulating matrices and vectors and there is distinctive
notation used to accomplish this. For example say you type
and then press “enter”. You will get 2,6,12. Of course you would get an error if you wrote
x*y. Similarly, type
[2,4,6,8]./[1,2,3,4]
and press “enter”. This yields 2, 2, 2, 2. Of course [2,4,6,8]/[1,2,3,4] doesn’t make any
sense.
You can get graphs of some integral curves in MATLAB by typing the following and
then “enter”. You don’t have to type it on two lines, but if you want to do so, to get to a
new line, you press “shift” and “enter”.
>> [x,y]=meshgrid(-4:.1:4,-4:.1:4);
z=y-(y.ˆ3/3+x.ˆ3/3);contour(x,y,z,[-.5,-1,-.3,1,2])
T (x)
T (x) sin θ
θ
T (x) cos θ
T0
ρl(x)g
In this picture, ρ denotes the density of the chain which is assumed to be constant and
g is the acceleration due to gravity. T (x) and T0 represent the magnitude of the tension in
29.3. SEPARABLE DIFFERENTIAL EQUATIONS, STABILITY 549
the chain at t and at 0 respectively, as shown. Let the bottom of the chain be at the origin
as shown. If this chain does not move, then all these forces acting on it must balance. In
particular,
T (x) sin θ = l (x) ρg, T (x) cos θ = T0 .
Therefore, dividing these yields
≡c
sin θ z }| {
= l (x) ρg/T0 .
cos θ
Now letting y (x) denote the y coordinate of the hanging chain corresponding to x,
sin θ
= tan θ = y′ (x) .
cos θ
Therefore, this yields
y′ (x) = cl (x) .
Now differentiating both sides of the differential equation,
q
y′′ (x) = cl ′ (x) = c 1 + y′ (x)2
and so
y′′ (x)
q = c.
1 + y′ (x)2
Let z (x) = y′ (x) so the above differential equation becomes
z′ (x)
√ = c.
1 + z2
′
√z (x) dx = cx + d. Change the variable in the antiderivative letting u = z (x)
R
Therefore, 2
1+z
and this yields
z′ (x) du
Z Z
√ dx = √ = sinh−1 (u) +C = sinh−1 (z (x)) +C.
1 + z2 1 + u2
Therefore, combining the constants of integration,
sinh−1 y′ (x) = cx + d
and so
y′ (x) = sinh (cx + d) .
Therefore,
1
y (x) =
cosh (cx + d) + k
c
where d and k are some constants and c = ρg/T0 . Curves of this sort are called catenaries.
Note these curves result from an assumption that the only forces acting on the chain are as
shown.
550 CHAPTER 29. FIRST ORDER SCALAR ODE
The next example has to do with population models. It was mentioned earlier. The
idea is that if there were infinite resources, population growth would satisfy the differential
equation
dy
= ky
dt
where k is a constant. However, resources are not infinite and so k should be modified to
be consistent with this. Instead of k, one writes r 1 − Ky which will cause the population
growth to decrease as soon as y exceeds K. Of course the problem with this is that we are
not sure whether K itself is dependent on other factors not included in the model.
Therefore,
ln (y) − ln (K − y) = rt +C
if 0 < y < K. If y > K, you get
ln (y) − ln (y − K) = rt +C
Cert
y=K , C>0
Cert + 1
In case y > K, these curves are described by
Cert
y=K , C>0
Cert − 1
What follows is a picture of the slope field along with some of these integral curves in case
r = 1 and K = 10.
29.3. SEPARABLE DIFFERENTIAL EQUATIONS, STABILITY 551
The bottom axis is the t axis. Note how all the integral
curves in the picture approach K as t increases. This is why
K is called a stable equilibrium point.
Now observe that y = 0 is the solution which results if you begin with the initial con-
dition y (0) = 0. If there is nothing to start with, it can’t grow. However, if you have any
other positive number for y (0) , then you see that the solution curve approaches the stable
point K. You can see this, not just by looking at the picture but also by taking the limit as
t → ∞ in the above formulae.
One of the interesting things about this equation is that it is possible to determine K the
maximum capacity, by taking measurements at three equally spaced times. Suppose you
do so at times t, 2t, 3t and obtain y1 , y2 , y3 respectively. Assume you are in the region where
y < K. In an actual experiment, this is where you would be. Let λ ≡ ert . Then from the
above formula for y, you have the equations
KCλ = y1 (Cλ + 1) , KCλ 2 = y2 Cλ 2 + 1 , KCλ 3 = y3 Cλ 3 + 1
Then divide the second equation by λ and compare with the first. This shows that λ =
y2 /y1 . Next divide the top equation by Cλ and the last by Cλ 3 . This yields
1 1
K = y1 1 + = y3 1 +
Cλ Cλ 3
Now it becomes possible to solve for C. This yields
y3 y3 − y21 y22
C= 1 3
y1 y2 − y32 y3
Then you can solve this for K. After some simplification, it yields
y22 y3 − y21 y3
=K
y22 − y1 y3
552 CHAPTER 29. FIRST ORDER SCALAR ODE
Note how the equilibrium point K was stable in the above example. There were only
two equilibrium points, K and 0. The equilibrium point 0 was unstable because if the
integral curve started near 0 but slightly positive, it tended to increase to K. Here is another
harder example. In this example, there are three equilibrium points.
Example 29.3.9 dy y
1 − Ky y, r > 0, 0 < T < K.
dt = −r 1 − T
This is a separable equation.
dy
= −rdt
1 − Ty 1 − Ky y
dy
dt
→
← ←
→
y
T K
29.3. SEPARABLE DIFFERENTIAL EQUATIONS, STABILITY 553
Is there a systematic way to figure this out without doing lots of computer generated
pictures? The answer is yes! Furthermore, it is very easy to do. Consider the right side of
the equation. If you graph the function z = f (y) , you get something which looks like the
right side of the above.
Look at the graph. When y ∈ (0, T ) , you have the slope of the graph is negative and
so, from the equation, dy dt is negative and so t → y (t) is decreasing. (Remember calculus.)
If y ∈ (T, K) , then the graph is positive and so dy
dt is positive which requires that t → y (t)
is increasing. When y ∈ (K, ∞) , the graph is negative and so t → y (t) is decreasing. Thus
T is unstable, K is stable while 0 is also stable. I have not considered the case where
y < 0 because this is not too interesting in the example which typically describes y as a
population of something. However, you can see from the graph that if y < 0, then t → y (t)
is increasing.
In general, you can consider y′ = f (y) and the equilibrium points. The following picture
is descriptive of the situation. Such an equation is called autonomous because the function
on the right depends only on y and not on t.
unstable
• •
stable
Proposition 29.3.10 Suppose f is continuous with continuous derivative and that f (y0 ) =
0, f ′ (y0 ) < 0. Then y0 is asymptotically stable.
Proof: By continuity of f ′ , there is δ > 0 such that for y ∈ (y0 − δ , y0 + δ ) = I, f ′ (y) ≤
−2η, η > 0. Thus
f (y) = f (y0 ) + f ′ (y0 ) (y − y0 ) + o (y − y0 )
= f ′ (y0 ) (y − y0 ) + o (y − y0 )
Then if y1 ∈ I, and if y (t) is the solution to the equation y′ = f (y) having this initial
condition, then
Z t
y (t) − y0 = y1 − y0 + f (y (s)) ds
0
Z t Z t
′
= y1 − y0 + f (y0 ) (y (s) − y0 ) ds + o (y (s) − y0 ) ds
0 0
We can also assume δ is small enough that |o (y − y0 )| < η |y − y0 | for y ∈ I. Say y1 > y0 .
Then by assumption, t → y (t) is decreasing since y′ = f (y) < 0 and so if y (t) fails to
converge to y0 , there would exist ε > 0 which is the limit of y (t) − y0 . Then
Z t Z t
ε+ − f ′ (y0 ) (y (s) − y0 ) ds ≤ y1 − y0 + η (y (s) − y0 )
0 0
Thus Z t
ε+ ηε ≤ y1 − y0
0
554 CHAPTER 29. FIRST ORDER SCALAR ODE
which is impossible because as t → ∞, the left side is unbounded. Similar reasoning shows
asymptotic stability if y1 < y0 . ■
y2 + xy
y′ = .
x2
2 Gottfried Wilhelm (von) Leibniz, (1646-1716) is credited with Newton as being one of the inventors of
calculus. There was much controversy over who did it first. It is likely that Newton did it first, but Leibniz had
dy
superior notation. The notation dx for the derivative and the notation for integrals is due to him. Like many of
these men, he was interested in many other subjects besides mathematics, such as philosophy, theology, geology,
and medicine.
29.5. EXACT EQUATIONS 555
du dx
=
u2 x
Hence
1
− = ln |x| +C
u
and so
y 1
=u=
x K − ln |x|
where K = −C. Hence
x
y (x) =
K − ln |x|
M (x, y) dx + N (x, y) dy = 0
where Nx = My . In this happy situation, one can find a function of two variables f (x, y)
such that
fx (x, y) = M (x, y) , fy (x, y) = N (x, y) (29.3)
556 CHAPTER 29. FIRST ORDER SCALAR ODE
f (x, y) = C (29.4)
where C is a constant. This function f is called a scalar potential or potential for short.
These equations are called exact. Why does ∗ yield a solution? Say the above relation
defines y as a function of x. Then using the chain rule,
dy
fx (x, y) + fy (x, y) =0
dx
and so
fx (x, y) dx + fy (x, y) dy = 0
M (x, y) dx + N (x, y) dy = 0
It is easy to see that if there exists a C2 function f with the property that fx = M, fy = N,
then Nx = My . This follows because My = fxy and Ny = fyx . By equality of mixed partial
derivatives, you need to have My = Nx . In fact, if this last condition holds, then there will
generally be such a potential function f (x, y).
Why is it that if Nx = My then there exists f with the properties described?
Let Z x
f (x, y) ≡ M (t, y) dt + N (0, y) .
0
Then fx (x, y) = M (x, y) , and formally differentiating across the integral,
Z x Z x
fy (x, y) = My (t, y) dt + N (0, y) = Nx (t, y) dt
0 0
= N (x, y) − N (0, y) + N (0, y) = N (x, y)
R
In general, this process of ∂∂y 0x M (t, y) dt = 0x My (t, y) dt has not been proved, but in
R
examples, it will be obviously true. Also, it is formally true when you think of the integral
as a sort of sum and use the fact that the derivative of a sum is the sum of the derivatives.
You see that this is exact (2x = 2x). Then the f (x, y) satisfies fx (x, y) = cos (x) + 2xy
and so f (x, y) = sin (x) + x2 y + g (y). Then taking the partial derivative with respect to y,
it follows that x2 + g′ (y) = x2 and so is suffices to let g (y) = 0. Then the solutions to this
differential equation are
sin (x) + x2 y = C
where C is a constant which would be determined by some sort of an initial condition.
Example 29.5.2 In the above example, determine C if (x, y) = π2 , 0 is to be on the curve
which yields a solution to the differential equation.
29.6. THE INTEGRATING FACTOR 557
2y3 + 2y dx + 3xy2 + x dy = 0
We look for one which depends on only one variable. Let’s try to find µ = µ (y) first. If
there is such a solution, then
1
µ ′ (x) = µ (x)
x
Thus µ = x is also an integrating factor. Which would you rather use? Multiply by x. The
equation is now
2xy3 + 2yx dx + 3x2 y2 + x2 dy = 0
and it is an exact equation so you are in the situation of the preceding section. You find a
scalar potential. The manipulations explained in the last section yield x2 y3 + x2 y as a scalar
potential. Then the solutions are
x2 y3 + x2 y = C
All of these are the same. You begin with 29.5 and look for solutions. In particular you
look for solutions that depend on only one variable. If you can find one, then the problem
has been reduced to that of the preceding section. If you can’t find such a solution, then
you give up. Under general conditions, it can be proved that solutions exist but as usual in
mathematics, there is a big gap between knowing something exists and finding it. However,
29.6. THE INTEGRATING FACTOR 559
here is something nice which was discovered by Euler back in the 1700s. It is called Euler’s
identity along with the more famous one involving complex numbers.3
M (tx,ty) = t α M (x, y)
∂M ∂M
αt α−1 M (x, y) = x (tx,ty) + y (tx,ty)
∂x ∂y
Now let t = 1. ■
The reason this is pretty nice is that if you have the equation
M (x, y) dx + N (x, y) dy = 0
of the most important mathematicians to ever live. He wrote more mathematics than anyone else, some 530 books
and papers in all areas of the subject. His very unusual memory allowed him to continue doing mathematical
research even after he went blind in 1766. Many of the ideas in this book are due to him. Like many of the other
great mathematicians of his time Euler’s interests were not limited to mathematics. His work is also very important
in engineering and physics. A remarkable amount of notation is due to him or popularized by him. Included in this
list is the summation symbol Σ, e, π, i, and f (x). Like many of his time, he was a very religious man who believed
the Bible was inspired. He had incredible insight but like most of us, he made mistakes because he sometimes
neglected issues related to convergence. However, the need for this sort of thing was not well understood in his
time. Euler died in St. Petersburg.
560 CHAPTER 29. FIRST ORDER SCALAR ODE
if and only if
M (xNx + yNy ) = N (yMy + xMx )
But this is true because by Euler’s identity, xNx + yNy = αN and yMy + xMx = αM so the
above is just αNM = αNM. Of course it is assumed that xM + yN ̸= 0 in the above.
x2 + xy dx + y2 + x2 dy = 0
Of course this can be written as a homogeneous equation and the technique for solving
these can be used. However, let’s use this new technique which says that an integrating
factor is
1 1
= 3
x (x + xy) + y (y + x ) x + 2x2 y + y3
2 2 2
x2 + xy y2 + x2
dx + dy = 0
x3 + 2x2 y + y3 x3 + 2x2 y + y3
Unfortunately, it is too complicated for me to solve this conveniently. However, knowing
that it is exact allows the use of the formula derived in showing that if My = Nx then the
equation was exact. Thus the integral curves are of the form
Z x
M (t, y) dt + N (0, y)
0
t 2 + ty
Z x
1
= dt + =C
0 t 3 + 2t 2 y + y3 y
Now we consider an easier one.
xy + y2 dx + x2 dy = 0
Then integrating the first term with respect to x, the scalar potential is of the form
1 1
f (x, y) = ln |x| − ln x + y + g (y)
2 2
Then differentiating with respect to y,
1 x
− + g′ (y) =
2 (2x + y) y (2x + y)
1
g′ (y) =
2y
and so g (y) = 12 ln |y| will work. Thus the integral curves are of the form
1 1 1
ln |x| − ln x + y + ln |y| = C
2 2 2
You could simplify this if desired.
PROCEDURE 29.6.5 To solve
M (x, y) dx + N (x, y) dy = 0
using an integrating factor, do the following:
1. Look for an integrating factor µ which is a function of x alone. You do this if
My − Nx
N
does not depend on y. In this case, you solve
My − Nx
µ ′ (x) = µ (x)
N
which is a separable equation. Solve and choose constant to satisfy initial condition.
If this doesn’t work,
2. Look for an integrating factor µ which is a function of y alone. You do this if
Nx − My
M
does not depend on x. In this case, you solve
Nx − My
µ ′ (y) = µ (y)
M
which is a separable equation. Solve and choose constant to satisfy initial condition.
3. If neither of these work, check to see if M, N are both homogeneous of the same
degree. If they are, you could use either the methods of homogeneous equations or
Euler’s formula for the integrating factor
1
.
xM + yN
4. If none of the above works, give up. You don’t know how to do it. The integrating
factor exists, but you don’t know how to find it.
562 CHAPTER 29. FIRST ORDER SCALAR ODE
(px + qy + r) dx + (αx + β y + γ) dy = 0
It doesn’t quite fit anything in the earlier discussion. It won’t be exact, homogeneous, or
separable or linear. However, one can massage it to get something which is homogeneous.
This is illustrated in some examples.
(x + 2y + 3) dx + (2x − y + 1) dy = 0
(u + a + 2 (v + b) + 3) dx + (2 (u + a) − (v + b) + 1) dy = 0
(u + 2v + (a + 2b + 3)) dx + (2u − v + (2a − b + 1)) dy = 0
and we want
a + 2b + 3 = 0
2a − b + 1 = 0
Hence we should let a = −1 and b = −1. Then with this, the equations reduce to
(u + 2v) du + (2u − v) dv = 0
This is now a homogeneous equation, or we could use the integrating factor described
earlier, but, in this case, it is also an exact equation. A scalar potential is
u2 v2
+ 2uv − ,
2 2
and so the integral curves for the original equation would be
1 1
(x + 1)2 + 2 (x + 1) (y + 1) − (y + 1)2 = C
2 2
The example illustrates what to do in general. You just change the variables to remove
those constant terms and then obtain a homogeneous equation which can be solved by a
variety of methods.
(x + y + 2) dx + (2x − y + 4) dy = 0
(u + v) du + (2u − v) dv = 0
dz 1
−z2 + 3z + 1
u = (29.7)
du z − 2
and so, separating the variables,
2−z du
dz =
z2 − 3z − 1 u
Then after much work one obtains integral curves of the form
1 √13
v 1√
3 26 1
ln − 13 − + ln √ 1√
u 2 2 v 1 3 26 13
u + 2 13 − 2
1 1
+ ln q √ + ln q √ − ln |u| = C
v 1 3 v 1 3
u − 2 13 − 2 u + 2 13 − 2
Example 29.7.3 Find the integral curve which contains the given ordered pair.
The equation is
dy 6x − y − 4
=
dx y − 2x
Now let x = u + a, y = v + b. Then we choose a, b such that in terms of the new variables
the equation becomes homogeneous. Thus we need
6a − b − 4 = 0
b − 2a = 0
6−z 1
uz′ = −z2 + z + 6
−z =
z−2 z−2
Separating the variables,
(2 − z) dz du
=
z2 − z − 6 u
This is easily solved,
4 1
C− ln |z + 2| + ln |z − 3| = ln |u|
5 5
The in terms of the original variables,
4 y−2 1 y−2
C= ln + 2 + ln − 3 + ln |x − 1|
5 x−1 5 x−1
Then to contain the ordered pair, you need
4 1 1
C= ln 2 + ln 3 = ln (48)
5 5 5
(px + qy + r) dx + (αx + β y + γ) dy = 0,
do the following:
where p (t) and q (t) are continuous functions of t. Then if t0 ∈ [a, b] , an interval, there
exists a unique solution to the initial value problem given above which is defined for all
t ∈ [a, b]. The following theorem which is really something of a review gives a proof.
Theorem 29.8.1 Let [a, b] be an interval containing t0 and let p (t) and q (t) be continuous
functions defined on [a, b] . Then there exists a unique solution to 29.9 valid for all t ∈ [a, b] .
Rt
Proof: Let P′ (t) = p (t) , P (t0 ) = 0. For example, let P (t) ≡ t0 p (s) ds. Then multiply
both sides of the differential equation by exp(P (t)). This yields
and so Z t
y (t) = exp (−P (t)) y0 + exp (−P (t)) q (s) exp (P (s)) ds
t0
which shows that if there is a solution to 29.9, then the above formula gives that solution.
Thus there is at most one solution. Also, you see the above formula makes perfect sense
on the whole interval. Since the steps are reversible, this shows y (t) given in the above
formula is a solution. You should provide the details. Use the fundamental theorem of
calculus. ■
It is not so simple for a nonlinear initial value problem of the form
y′ = f (t, y) , y (t0 ) = y0 .
Theorem 29.8.2 Let f and ∂∂ yf be continuous in some rectangle, a < t < b, c < y < d con-
taining the point (t0 , y0 ) . Then there exists a unique local solution to the initial value prob-
lem
y′ = f (t, y) , y (t0 ) = y0 .
This means there exists an interval, I such that t0 ∈ I ⊆ (a, b) and a unique function, y
defined on this interval which solves the above initial value problem on that interval.
A much more general theorem will be proved later. Also, in the above, it suffices to say
that f is continuous on the given rectangle and that for y, z ∈ [c, d] ,t ∈ [a, b] ,
for some K > 0. This is called a Lipschitz condition. For now, note that it is reasonable
to believe the conclusion of this theorem. Start with the point (t0 , y0 ) and follow the slope
field as illustrated in many of the above examples. The problem is, sometimes you can’t
extend the solution as far as you might like.
This satisfies the conditions of Theorem 29.8.2. Therefore, there is a unique solution
to the above initial value problem defined on some interval containing 0. However, in this
case, we can solve the initial value problem and determine exactly what happens. The
equation is separable.
dy
= dt
1 + y2
and so arctan (y) = t +C. Then from the initial condition, C = 0. Therefore, the solution to
the equation is y = tan (t) . Of course this function is defined on the interval − π2 , π2 . It is
impossible to extend it further because it has an asymptote at the two ends of this interval.
Theorem 29.8.2 does not say that the local solution can never be extended beyond
some small interval. Sometimes it can. It depends very much on the nonlinear equation.
For example, the initial value problem
y′ = 1 + y2 − εy3 , y (0) = y0
566 CHAPTER 29. FIRST ORDER SCALAR ODE
turns out to have a solution on R. Here ε is a small positive number. You might think about
why this is so. It is related to the fact that in this new equation, the extra term prevents y′
from becoming unbounded.
Also, you don’t know whether the interval of existence is symmetric about the point at
which the initial condition is given.
y′ = y1/3 , y (0) = 0.
dy
The equation is separable so y1/3
= dt and so the solutions are of the form
3 2/3
y = t +C.
2
3/2
Letting C = 0 from the initial condition, one solution is y = 23 t for t > 0. However,
you can see that y = 0 is also a solution. Thus uniqueness is violated. Note there are two
solutions to the initial value problem and both exist and solve the initial value problem on
all of [0, ∞).
29.9. COMPUTER ALGEBRA METHODS 567
Observation 29.8.7 What are the main differences between linear and nonlinear equa-
tions? Linear initial value problems have an interval of existence which is the same as
the interval on which the functions in the equation are continuous. Nonlinear initial value
problems sometimes don’t. Solutions to linear initial value problems are unique. This is not
always true for nonlinear equations although if in the nonlinear equation, f and ∂ f /∂ y
are both continuous, then you at least get uniqueness as well as existence on some possibly
small interval of undetermined length.
29.9.1 MATLAB
A frequently used computer algebra system is MATLAB. You can use this to find solutions
to the initial value problem. If you want commands to appear on separate lines, you use
“shift enter”.
The basic version of MATLAB is sufficient to do the numerical procedures discussed.
In order to do procedures which involve commands like “syms” you will need to have the
symbolic math toolbox also. In particular, you need this toolbox for the first example given
here in which “dsolve” is used, but not for the numerical procedures mentioned next.
Here is what you type to get MATLAB to compute the solution to
y′ = y − .01y2 , y (0) = 2.
After typing in the above, you press enter and here is what results.
If you want a graph of this solution, this is also easy to get. After doing the above, type
in the following to the right of >>
ezplot(y(t),[0,3])
and then press “enter” to obtain the graph of the solution on the interval [0, 3].
568 CHAPTER 29. FIRST ORDER SCALAR ODE
Similarly, you can ask for numerical solutions in case you can’t find an analytical so-
lution. MATLAB can find these also. For example, if you wanted to solve on the interval
[0, 2] the initial value problem
y′ = y − .01y5 , y (0) = 1,
f=@(x,y) y-.01*yˆ5;
[x,y]=ode45(f,[0,2],1) (*)
[x1,y1]=ode45(f,[0,2],2)
and press return. This will define the function x1 → y1(x1). Then to graph both on the
same axes, you would type
plot(x,y,x1,y1)
and both will appear. You can do as many of these as you want of course. If you wanted to
do a lot of graphs all at once, you can also have this done. You would do the following:
Then press “enter” and you will get graphs of solutions for initial conditions
x′ = x − x3 , x (0) = z
29.10 Exercises
Linear Equations
1. Find all solutions to the following linear equations. You may need to leave answers
in terms of integrals on some of them.
2
(a) y′ + 2ty = e−t (e) y′ + t−1
1
y= 1
(t−1)2
(b) y′ − ty = et (f) y′ + tan (t) y = cos (t)
(c) y′ + cos (t) y = cos (t) (g) y′ − tan (t) y = sec (t)
(d) y′ + ty = sin (t) (h) y′ − tan (t) y = sec2 (t)
2. In the above linear equations find the solution to the initial value problems when y (0)
equals the following numbers.
570 CHAPTER 29. FIRST ORDER SCALAR ODE
(a) 1 (e) −2
(b) 2 (f) 12
(c) 3 (g) −3
(d) 4 (h) −2
6. You have the equation y′ + p (t) y = q (t) where P′ (t) = p (t) . Give a formula for all
solutions to this differential equation.
7. The height of an object at time t is y (t) . It falls from an airplane at 30,000 feet which
is traveling East at 500 miles per hour and is acted on by gravity which we will
assume has acceleration equal to 32 feet per second squared and air resistance which
we will suppose yields an acceleration equal to .1 times the speed of the falling object
opposite to the direction of motion. If its initial velocity is in the direction of motion
of the airplane, find a formula for the position of the object as a function of t in feet.
8. Solve the following differential equations. Give the general solution.
(a) x3 + y dx − xdy = 0
di
(e) L dt + Ri = E sin (ωt) . Here L, R, E are positive constants. L symbolizes induc-
tance and R resistance while i is the current.
9. For compounding interest n times in one year which has interest rate r per year, the
tn
amount after t years is given by A0 1 + nr . Show that
r tn
lim 1 + = ert ,
n→∞ n
thus giving the same conclusion as mentioned in the chapter.
10. Consider the equation y′ + 2ty = t, y (0) = 32.76. Find limt→∞ y (t).
29.10. EXERCISES 571
11. Although the gas supply was shut off, the air in the building continued to circulate.
When the gas was shut off, the temperature in the building was 70 and after five
hours, the temperature had fallen to a chilly 50 degrees. If the outside temperature
was at 10 degrees, what is the constant in Newton’s law of cooling?
12. A radioactive substance decays according to how much is present. Thus the equation
is A′ = −kA. If after 40 years, there is 5/6 of the amount initially there still present,
what is the half life of this substance?
13. You have the following initial value problem y′ + y = sint, y (0) = y0 . Letting y be
the solution to this initial value problem, find a function u (t) which does not depend
on y0 and limt→∞ |y (t) − u (t)| = 0.
14. A pond which holds V cubic meters is being polluted at the rate of 10 + sin (2πt) kg
per year. The periodic source represents seasonal variability. The total volume of the
lake is constant because it loses 14 V cubic meters per year and gains the same. After
a long time, what is the average amount of pollutant in this lake in a year?
Bernouli Equations
15. Solve the following initial value problems involving Bernouli equations.
p
16. Consider y′ = py − qy2 , y (0) = mq where p, q are positive and m > 1. Solve this
Bernouli equation and also find limt→∞ y (t).
17. Consider y′ = 3y − y3 , y (0) = 1. Solve this Bernouli equation and find limt→∞ y (t).
18. Find the solution to the Bernouli equation y′ = (cost + 1) y − y3 , y (0) = 1. Hint:
You may have to leave the solution in terms of an integral.
19. Actually the drag force of a small object moving through the air is proportional not
to the speed but to the square of the speed. Thus a falling object would satisfy the
following equation for downward velocity. v′ = g − kv2 . Here g is acceleration of
gravity in whatever units are desired. Find limt→∞ v (t) in terms of g, k. Hint: Look
at the equation.
20. A Riccati equation is like a Bernouli equation except you have an extra function
added in. These are of the form y′ = a (t) + b (t) y + c (t) y2 . If you have a solution,
1
y1 , show that y (t) = y1 (t) + v(t) will be another solution provided v satisfies a suit-
able first order linear equation. Thus the set of all such y will involve a constant
of integration and so can be regarded as a general solution to the Riccati equation.
These equations result in a very natural way when you consider y′ = f (t, y) and ap-
proximate f (t, y) by fixing t and approximating the resulting function of y with a
second order Taylor polynomial.
Separable Equations
21. Solve the following initial value problems involving separable equations. The or-
dered pair given is to be included in the solution curve.
572 CHAPTER 29. FIRST ORDER SCALAR ODE
(a) x2 dx + y2 + 1 dy = 0,
π π
(1, 1) (e) 0 = cos (y) dx + tan (x) dy, 2, 4
(b) xydx + y2 + 1 dy = 0,
(1, 1)
(f) xydx = y2 + 1 dy, (1, 1)
(c) xydx + y2 + 1 dy = 0,
(1, −1)
(d) ydx + y2 + 1 xdy = 0, (g) xydx = y2 − 1 dy, (2, 1)
(1, 2)
2
22. Find all integral curves of the equation yxdx + e−x dy = 0. Graph several.
1
23. Find all integral curves of the equation yxdx + ln y3 dy = 0. Graph several.
(1+x2 )
24. Give the integral curves to the equation v′ = g − kv2 mentioned above where g is
acceleration of gravity and k a positive constant.
25. You have a collection of hyperbolas x2 − y2 = C where each choice of C leads to a
different hyperbola. Find another collection of curves which intersect these at a right
angle. Hint: Say you have f (x, y) = C is one of these. If you are at a point where the
relation defines y as a function of x, and (x, y) is a point on one of these hyperbolas
dy
just mentioned, then dx should have a relation to the tangent line to x2 − y2 = C.
Since the two curves are to be perpendicular,
you should have the product of their
dy x
slopes equal to −1. Thus dx y = −1.
26. Generalize the above problem. Suppose you have a family of level curves f (x, y) = C
and you want another family of curves which is perpendicular to this family of curves
at every point of intersection. Find a differential equation which will express this
condition. Recall that two curves are perpendicular if the products of the slopes of
the tangent lines to the two curves equals −1.
27. Find and determine the stability of the equilibrium points for the following separable
equations.
y′ = y2 (y − 1) (e) y′ = ln 1 + y2
(a)
(b) y′ = (y + 1) (y − 1) (y + 2)
(f) y′ = e2y − 1
(c) y′ = sin (y)
2
(d) y′ = cos (y) (g) y′ = 1 − ey
28. The force on an object of mass m acted on by the earth having mass M is given
by Newton’s formula kmM/r2 where k is the gravitation constant first calculated by
Cavendish4 in 1798. Letting R be the radius of the earth and letting g denote the
acceleration of gravity on the earth’s surface, show that kM = R2 g. Now suppose a
large gun having its muzzle at the surface of the earth is fired away from the center
of the earth such that the projectile has velocity v0 . Explain why
dv R2 g
=−
dt (R + r)2
4 For about 100 years, since the time Newton claimed the existence of this gravitation constant, no one knew
what it was. Henry Cavendish did an extremely sensitive experiment in 1797-1798 to determine it. It involved
lead balls mirrors telescopes and a torsion balance. He was a chemist who also found ways to make hydrogen. He
did many other very precise experiments in physics and chemistry.
29.10. EXERCISES 573
where r is the distance to the surface of the earth and here v = v (t) the speed of the
projectile at time t when it is at a distance of r from the surface of the earth. Next
explain why
dv R2 g
v =−
dr (R + r)2
The two variables are v and r. Separate the variables and find the solution to this
differential equation given that the initial speed is v0 as stated above. Show that the
maximum distance from the surface of the earth is given by
!
Rg
R −1
Rg − 12 v20
provided that Rg > 21 v20 . What is the smallest value of v0 such that the projectile will
leave the earth and never return?
29. The Grompertz equation is dy dt = ry ln K
y . Find the solutions to this equation with
initial condition y (0) = y0 . Alsoidentify
all equilibrium solutions and their stability.
Also verify the inequality ry ln Ky ≥ ry 1 − Ky for y ∈ [0, K]. Explain why for a
given initial condition y0 ∈ (0, K) , the solution to the Grompertz equation should be
at least as large as the solution to the logistic equation.
30. You have a population which satisfies the logistic equation y′ = ry 1 − Ky and the
initial condition is y (0) = αK where 0 < α < 1/2. How long will it take for the
population to double?
31. An equilibrium point is called semi-stable if it is stable from one side and not stable
from the other. Sketch the appearance of f (y) near y0 if y0 is a semi-stable equilib-
rium point. Here f (y0 ) = 0 and the differential equation is y′ = f (y).
32. Consider the differential equation y′ = a − y2 where a is a real number. Show that
there are no equilibrium solutions if a < 0 but there are two of them if a > 0 and only
one if a = 0. Discuss the stability of the two equilibrium points when a > 0. What
about stability of equilibrium when a = 0?
33. Do exactly the same problem when y′ = ay − y3 . This time show there are three
equilibrium points when a > 0 and only one if a < 0. Discuss the stability of these
points.
35. Find the solution curve to the following differential equations which contains the
given point.
(a) y′ = 1
x(2x+y) (x + y)2 , (1, 1)
(b) y′ = − x(x−2y)
1
x2 − xy + 2y2 , (2, 0)
574 CHAPTER 29. FIRST ORDER SCALAR ODE
(c) y′ = 1
x2 + 4xy + y2 , (−1, 1)
4x2 +yx
36. Find the solution curve to the following ODEs which contains the given point.
37. Find the solution curve to the following ODEs which contains the given point.
Find all solutions to y′ + sin xy = 1. Hint: You might need to leave the answer in
38.
terms of integrals.
Solve: x2 dy + 4x2 − xy + 5y2 dx = 0, y (3) = −1.
39.
(0, 1)
44. Find the solution curve to the following ODEs which contains the given point.
45. Explain why every separable ODE can be considered as an exact ODE.
46. Suppose you have a family of level curves f (x, y) = C where C is a constant. Also
suppose that f is a harmonic function. That is fxx + fyy = 0. Consider the problem
of finding another family of level curves such that each of these is perpendicular to
the original level curves f (x, y) = C at any point on both of them. Show that the
appropriate equation to solve is 0 = fy dx − fx dy. Verify that this is an exact equation.
Thus there exists g (x, y) such that the solutions are g (x, y) = C.
M, N Both Affine Linear
47. Find the integral curve for the following differential equation which contains the
given point. These are also exact so you could use either method.
48. Find the integral curves for the following differential equation.
An Assortment of Exercises
576 CHAPTER 29. FIRST ORDER SCALAR ODE
54. Solve: x3 − 6x2 y − y3 dx + 6x3 + xy2 dy = 0, y (2) = −3. Graph the integral
curve.
55. Solve: (2y − 3x) dx+ 2x − 43 y dy = 0 which contains the point (x, y) = (1, 2) . Graph
58. Solve: 3x + 19 9
4 y dx + −4x − 4 y dy = 0 which contains the point (x, y) = (1, 2) .
60. Solve: (y) dx + (x + 4y) dy = 0 which contains the point (x, y) = (1, 2) .
7
61. Solve: 5 t 6 y + y′ = −5t 6 et , y (1) = 1.
63. Find the solutions to the equation y′ + y (3 cost) = 3 (cost) e−3 sint .
64. Solve: (y − 2x) dx + 29 y − x dy = 0 which contains the point (x, y) = (1, 2) .
2
66. Find the solutions to the equation y′ + 2ty = tet .
67. Solve: 73 y − 2x dx + x − 43 y dy = 0 which contains the point (x, y) = (1, 2) .
70. Show that the following initial value problem fails to have a unique solution.
y′′ = f y, y′
and you are looking for a function t → y (t) so the independent variable is missing.
These can be massaged into a first order equation as follows. Let v = y′ and then you
have
v′ = f (y, v)
dv dv dy dv
Now dt = dy dt = dy v. Thus we have
dv
v = f (y, v)
dy
which is now a first order differential equation. Use this technique to solve the fol-
lowing problems. This won’t always work. It is a gimmick which sometimes works.
(i) yy′′ + (y′ )2 = 0. Give a general solution involving two constants of integration.
(j) y′′ + y (y′ )2 = 0. Give a general solution involving two constants of integration.
(k) y′′ y2 − 2y (y′ )2 = 0, Give a general solution involving two constants of integra-
tion.
(l) y′′ y3 − 3y′ y2 = 0,Give a general solution involving two constants of integration.
(m) 3 (y′ )2 y′′ y2 + 2y (y′ )4 = 0,Give a general solution involving two constants of
integration.
72. Explain how you would proceed to solve an equation of the form y′′ = f (t, y′ ) where
the function you are looking for is t → y (t) . How many independent constants would
you have in a general solution?
Computer Algebra Problems
73. Give a graph of the solution to the following initial value problem on the interval
[0, 5]. y′ = −y3 + 3y2 + 2, y (0) = 0.
74. Give a graph of the solution to the following initial value problem on the interval
[0, 5].y′ = −y3 + xy2 + 1, y (0) = 1.
578 CHAPTER 29. FIRST ORDER SCALAR ODE
75. Solve the following initial value problems and give a graph of each on [0, 3] on the
same axes. y′ = 10
1
y (5 − y) , y (0) = .3, y′ = 10
1
y (5 − y) , y (0) = .5, y′ = 10
1
y (5 − y) , y (0) =
−.3.
76. Give a graph of the solutions to the differential equation y′ = ty2 − (.1) y3 on the
interval [0, 5] which result from the initial conditions y (0) = 1, 0, 2, −3.
3/4
77. Give a graph of the solution to y′ = x y2 − xy3 + 1, y (0) = 0.
78. Use a computer algebra system to obtain a solution to the initial value problem
y3
y′ = , y (0) = 1
x3 + 8y3
You may have to obtain a numerical solution in terms of a graph. It is true that the
equation is homogeneous, but it might be too hard to carry out the computations.
Scientific notebook has trouble with this one.
79. Use a computer algebra system to obtain the graph of the solution to the initial value
problem x2 y′ = 4x2 + xy + y2 , y (4) = 1.
80. Find the solution to the following initial value problem, either a graph or a formula.
Then graph it
1
y′ = xy + sin (x) − y2 , y (0) = 1
10
81. When you use MATLAB or other computer algebra system to find a numerical solu-
tion to a differential equation, you are using a fairly sophisticated numerical method.
The most primitive method for obtaining numerical solutions to y′ = f (t, y) is called
Euler’s method. In this method, one has a step size h and partitions the time interval
into t0 < t1 < · · · < tn = T,t j+1 = t j + h. Then letting y0 be the initial condition,
Euler’s method goes like this. You iterate the following process.
When you get to tn , you stop. Your solution consists of a function y which interpo-
lates the points (ti , yi ) meaning yi = y(ti ). You can easily get MATLAB to do this for
you. Here is the case of y′ = y, y (0) = 1.
The first line is defining the function f (t, y) = y. Thus the real solution is et . The
number y(501) is the Euler solution at 5. Compare with e5 .
82. Suppose you have the initial value problem y′ = y, y (0) = y0 . You know the solution
is et y0 . Consider the interval [0,t]. Consider for k ≤ n
t
yk+1 = yk + yk
n
29.10. EXERCISES 579
for all s sufficiently large. It is customary to write this transform as F (s) or L f (s) and
the function as f (t) instead of f . In other words, t is considered a generic variable as is s
and you tell the difference by whether it is t or s. It is sloppy but convenient notation.
Lemma 30.1.2 L is a linear mapping in the sense that if f , g have exponential growth,
then for all s large enough and a, b scalars,
L (a f (t) + bg (t)) (s) = aL f (s) + bL g (s)
1 Pierre-Simon, marquis de Laplace (1749-1827) had interests in mathematics, physics, probability, and as-
tronomy. He wrote a major book called celestial mechanics. There is also the Laplacian named after him, and
Laplace’s equation in potential theory. The expansion of a determinant along a row or column is called Laplace
expansion. He was also involved in the development of the metric system. It is hard to overstate the importance
of his contributions to mathematics and the other subjects which interested him. [14]
581
582 CHAPTER 30. LAPLACE TRANSFORM METHODS
Proof: Let f , g be two functions having exponential growth. Then for s large enough,
Z ∞
L (a f (t) + bg (t)) ≡ e−ts (a f (t) + bg (t)) dt
0
Z ∞ Z ∞
= a e−ts f (t) dt + b e−ts g (t) dt = aL f (s) + bL g (s) ■
0 0
The usefulness of this method in solving differential equations, comes from the follow-
ing observation.
Z ∞ Z ∞
L x′ (t) = x′ (t) e−ts dt = x (t) e−st |∞
0 + se−st x (t) dt = −x (0) + sL x (s) .
0 0
The function uc (t) denotes the step function which equals 1 for t > c and 0 for t < c.
1
uc (t)
c
The expression in Formula 20.) is defined as follows
Z
δ (t − c) f (t) dt = f (c)
It models an impulse and is sometimes called the Dirac delta function. There is no such
function but it is called this anyway. In the following, n will be a positive integer and
f ∗ g (t) ≡ 0t f (t − u) g (u) du. Also, F (s) will denote L { f (t)} the Laplace transform of
R
You should verify the claims in this table. It is best if you do it yourself. The fun-
damental result in using Laplace transforms is this. If you have F (s) = G (s) then aside
from finitely many jumps on each bounded interval, it follows that f (t) = g (t) . Thus you
just go backwards in the table to find the desired functions. To see this shown, see Section
4.2 on Page 47. I will illustrate with a second order differential equation having constant
coefficients. Of course you can change to a first order system and this will be the emphasis
next, but you can also use the method directly. Note
Z ∞ Z ∞
′′ −st ′
y (t) e dt = y (t) e−st |∞
0 +s y′ (t) e−st dt
0 0
Z ∞
= −y′ (0) + s y′ (t) e−st dt
0
Z ∞
= −y′ (0) + s y (t) e−st |∞
0 + s y (t) e−st dt
0
′ 2
= −y (0) − sy (0) + s Y (s) (30.1)
A similar formula holds for higher derivatives. You can also get this by iterating 21.
Example 30.1.3 Find all solutions to the equation y′′ − 2y′ + y = e−t .
From the table, first go to y′′ . This gives −y′ (0) − sy (0) + s2Y (s) then you go to the
next term which gives −2sY (s) + 2y (0) and finally, you get Y (s) from the y. On the right
you get from formula 2. 1/ (s + 1) . Therefore, you have
1
s2Y (s) − 2sY (s) +Y (s) − y′ (0) − sy (0) + 2y (0) =
s+1
1
s2 − 2s + 1 Y (s) = y′ (0) + (s − 2) y (0) +
s+1
584 CHAPTER 30. LAPLACE TRANSFORM METHODS
1
s+1 1 1 1
= + 2
−
(s2 − 2s + 1) 4 (s + 1) 2 (s − 1) 4 (s − 1)
Now you go backwards in the table to find that this comes from
1 −t 1 t 1 t
e + te − e .
4 2 4
Next consider the other two terms.
s−2 1 1
=− 2
+
s2 − 2s + 1 (s − 1) s − 1
You can use change of variables to observe that the last equation is true so f ∗ g = g ∗ f .
Why is this formula so? It follows from the definition and interchanging the order of
integration.
30.1. LINEAR O.D.E. WITH CONSTANT COEFFICIENTS 585
Z ∞ Z ∞ Z t Z ∞Z t
e−st f ∗ g (t) dt = e−st f (t − u) g (u) dudt = e−st f (t − u) g (u) dudt
0 0 0 0 0
Z ∞Z t Z ∞ Z ∞
= e−s(t−u) f (t − u) e−su g (u) dudt = e−su g (u) e−s(t−u) f (t − u) dtdu
0 0 0 u
Z ∞ Z ∞
= e−su g (u) e−sv f (v) dvdu = G (s) F (s)
0 0
Now here is another example in which the right side of the equation is such that it will
be hard to find the Laplace transform.
Example 30.1.4 Solve the initial value problem y′′ + 5y′ + 6y = sin t 2 , y (0) = 1, y′ (0) =
0.
Using the initial conditions and taking the Laplace transform of both sides,
Y (s) s2 + 5s + 6 = 5 + s + L sin t 2
and so
5+s 1
L sin t 2
Y (s) = + (30.2)
s2 + 5s + 6 s2 + 5s + 6
Now
1 1 1
= − +
s2 + 5s + 6 s+3 s+2
5+s 2 3
= − +
s2 + 5s + 6 s+3 s+2
so going backwards in the table
1
= L −e−3t + L e−2t = L −e−3t + e−2t
s2 + 5s + 6
5+s
= L −2e−3t + 3e−2t
s2 + 5s + 6
Using the convolution formula, and taking inverse Laplace transforms by going backwards
in the table, it follows from 30.2
Z t
y (t) = −2e−3t + 3e−2t + −e−3(t−u) + e−2(t−u) sin u2 du
0
Z t Z t
−3t −2t −3t 3u 2 −2t
e2u sin u2 du
= −2e + 3e −e e sin u du + 3
0 0
If you are interested in a finite time interval, there is no loss of generality in using this
method because any continuous function on [0, T ] can be considered the restriction to [0, T ]
of one having exponential growth.
586 CHAPTER 30. LAPLACE TRANSFORM METHODS
I want Φ′ (t) = AΦ (t) , Φ (0) = I. Take the Laplace transform of both sides. By this I
mean replace each entry of the matrix with its Laplace transform. Then if F (s) is the name
of the Laplace transform of Φ (t) ,
sF (s) − I = AF (s) so (sI − A) F (s) = I
and so F (s) = (sI − A)−1 . Now this is easy to find using the formula for the inverse pre-
sented earlier. Recall you took the transpose of the cofactor matrix and divided by the
determinant to get the inverse. See Theorem 27.2.1. In this example,
! !!−1 !
s−4 2
−1 1 0 −1 2 s 2 −3s+2 s 2 −3s+2
F (s) = (sI − A) = s − = 3 s+1
0 1 −3 4 − s2 −3s+2 s2 −3s+2
30.2. FIRST ORDER SYSTEMS, CONSTANT COEFFICIENTS 587
Note how the entries are all rational functions. This will ALWAYS happen no matter what
matrix you use and this follows from that method for finding the inverse in terms of the
transpose of the cofactor method. Since theoretically, by the fundamental theorem of alge-
bra, one can always factor a polynomial into a product of linear and irreducible quadratics
in the denominator of those rational functions, this process will ALWAYS work with the
caveat that one might not be able to actually carry out the factorization of the polynomials
in the denominator. However this shows that the fundamental matrix does exist and that
your ability to explicitly compute it is exactly as good as your ability to factor a polyno-
mial. In this case, I can take the inverse Laplace transform of that matrix on the right and
get !
3 2 2 2
s−1 − s−2 s−2 − s−1
F (s) = 3 3 3 2
s−1 − s−2 s−2 − s−1
!
3et − 2e2t 2e2t − 2et
Φ (t) =
3et − 3e2t 3e2t − 2et
Does it work?
! !
3et − 2e2t 2e2t − 2et 3et − 4e2t 4e2t − 2et
Dt =
3et − 3e2t 3e2t − 2et 3et − 6e2t 6e2t − 2et
! ! !
−1 2 3et − 2e2t 2e2t − 2et 3et − 4e2t 4e2t − 2et
=
−3 4 3et − 3e2t 3e2t − 2et 3et − 6e2t 6e2t − 2et
so yes, it solves the equation. Also Φ (0) = I. Thus this is indeed the fundamental matrix.
because 0∞ se−st dt = 1, this being true for all large enough s. Letting s → ∞, the first term
R
converges to 0. Here is roughly why this is so. Letting δ > 0, be so small that all entries of
Φ (t) are closer than ε to the entries of Φ (0) whenever t < δ ,
Z ∞ Z ∞
se−st (Φ (t) − Φ (0)) dt ≤ se−st Ceλt +C dt
δ δ
where ∥A∥ will denote the maximum of the absolute values of all entries of A and it is
assumed that each of these is no more than Ceλt . Now that integral on the right can be
computed and it equals the following for large s
1 −st+λt −st ∞ 1 −sδ +λ δ −sδ
e s−e |δ = e s+e
−s + λ s−λ
588 CHAPTER 30. LAPLACE TRANSFORM METHODS
and so for all s large enough, ∥(I − A/s) 0∞ se−st (Φ (t) − Φ (0)) dt∥ < ε showing that this
R
does indeed converge to 0. The last term in 30.6 converges to Φ (0) as s → ∞ and so we do
indeed have Φ (0) = I.
What about Φ′ (t) = AΦ (t)? For large s,integrate by parts using Φ (0) = I to obtain
Z ∞ Z ∞
e−st Φ′ (t) dt = −I + se−st Φ (t) dt = −I + sF (s)
0 0
Z ∞
e−st AΦ (t) dt = AF (s)
0
Is −I + sF (s) = AF (s)? Yes because F (s) = (sI − A)−1 and so the Laplace transforms of
Φ′ (t) and AΦ (t) are the same. This means the two functions are the same because they are
both continuous, something which is shown later that the Laplace transform determines the
functions from which it comes. This has shown the following important theorem.
Theorem 30.2.3 Let A be a p × p matrix and suppose F (s) = (sI − A)−1 = L (Φ (t)) for
Φ (t) a matrix whose entries have exponential growth. Then Φ′ (t) = AΦ (t) , Φ (0) = I.
Conversely, if Φ′ (t) = AΦ (t) , Φ (0) = I, then L (Φ (t)) = (sI − A)−1 . Thus the fundamen-
tal matrix is unique.
As noted above, one can ALWAYS find from the table of Laplace transforms an explicit
solution Φ (t) whose Laplace transform is (sI − A)−1 provided you can factor the polyno-
mials in the denominators of the rational functions which are the entries of (sI − A)−1 . Such
factorizations always exist by the fundamental theorem of algebra and so the fundamental
matrix always exists. Thus your ability to find an explicit formula for such a fundamental
matrix is exactly as good as your ability to factor polynomials which occur as denominators
in the formula for (sI − A)−1 . Note that Φ (t) is unique, because if you have one then its
Laplace transform must be (sI − A)−1 .
One other item is of interest in these fundamental matrices and this is the group prop-
erty.
Proof: 1. Consider the first claim. Letting G (s) be the Laplace transform, it follows
that
sG (s) − 0 = AG (s)
for all s large enough. This is impossible unless G (s) = 0. Therefore, L (0) = L (Ψ (t))
and so 0 = Ψ (t) from what is shown later about the Laplace transform determining the
function.
30.2. FIRST ORDER SYSTEMS, CONSTANT COEFFICIENTS 589
2. (AΦ (t) − Φ (t) A)′ = A2 Φ (t) − AΦ (t) A = A (AΦ (t) − Φ (t) A) , and also AΦ (0) −
Φ (0) A = A − A = 0 for from 1., it follows that AΦ (t) − Φ (t) A = 0.
3. Using 2., and letting t be the variable of differentiation,
Φ (t + u) − Φ (t) Φ (u) = 0. ■
x′ = Ax + f, x (0) = x0 (30.7)
Multiply on the left by Φ (−t) and permute A and Φ (t) as needed using Theorem 30.2.4.
Therefore, there is at most one solution to 30.7 and if there is one, then this is it.
Proof: I just showed there is at most one solution. It only remains to verify that the
above works. However, the formula can be written as
Z t
x (t) = Φ (t) x0 + Φ (t) Φ (−u) f (u) du
0
When t = 0 this yields x0 as it should. Now differentiate. Using the product rule,
I
Z t z }| {
′
x (t) = AΦ (t) x0 + AΦ (t) Φ (−u) f (u) du + Φ (t) Φ (−t)f (t)
0
= Ax (t) + f (t) . ■
590 CHAPTER 30. LAPLACE TRANSFORM METHODS
First find the fundamental matrix. One goes backwards in the table to find the following.
! !!−1
−1 1 0 −4 −3
(sI − A) = s −
0 1 6 5
3
− −s2s−5
+s+2 −s2 +s+2
= 1
1 s+ 2
− − 6 3
− 16 s2 + 16 s+ 31 − 6 s2 + 16 s+ 31
1
Then using going backwards in the table and writing in terms of cosh and sinh,
1 1 !
e 2 t cosh 32 t − 3 sinh 32 t −2 sinh 23 t e 2 t
Φ (t) = 1 1
4 sinh 32 t e 2 t e 2 t cosh 32 t + 3 sinh 32 t
1 ! Z !
e 2 t cosh 32 t − 5 sinh 32 t t cos s
x (t) = 1t + Φ (t − s) ds
e 2 cosh 32 t + 7 sinh 32 t es
0
Using the table as just described really is a pretty good way to solve these kinds of
equations, but there is a much easier way to do it. You let the computer algebra system do
the tedious work for you. Here is the general idea for a first order system. Be patient. I will
30.2. FIRST ORDER SYSTEMS, CONSTANT COEFFICIENTS 591
consider specific examples a little later. However, if you are looking for something which
will solve all first order systems in closed form using known elementary functions, then
you are looking for something which is not there. You can indeed speak of it in general
theoretical terms but the only problems which are completely solvable in closed form are
those for which you can exactly find the eigenvalues of the matrix. Unfortunately, this
involves solving polynomial equations and none of us can do these in general.
where X (s) is the Laplace transform of x (t) and F (s) is the Laplace transform of f (t).
Then you can solve for X (s) , at least for large enough s so that (sI − A)−1 exists. Thus
Then
X (s) = (sI − A)−1 (x0 + F (s))
Note that there is even a formula for (sI − A)−1 . See Theorem 28.1.14. Thus you can
always find X (s). Then having done so, it is a matter of finding the function whose Laplace
transform gives X (s). By hand, you would consider each entry of X (s) and by using partial
fractions, you would go backwards in the table. It won’t always work. Sometimes you
won’t be able to factor the polynomials enough to carry this out and even when it does
work, it will be pretty tedious. This is why you should use Matlab or some computer
algebra system. Here is an example which can be done. The reason I know it will work out
is that I cooked it up to work out. I picked a matrix whose eigenvalues are known. I also
picked the forcing function to be something which will tend to make things work.
−1 0 2 et 1
Following the above general procedure, the Laplace transform of the forcing function
is s
s2 +1
1
s2 +1
1
s−1
and so
−1 s
s 0 0 2 2 −1 1 s2 +1
1
X (s) = 0 s 0 − −1 0 1 0 +
s2 +1
0 0 s −1 0 2 1 1
s−1
592 CHAPTER 30. LAPLACE TRANSFORM METHODS
At this point, I use partial fractions and go backwards in the table or I ask a computer
algebra system to find the inverse Laplace transform. I recommend using the computer
algebra system. Thus
1 1 t 1 2 t 3 t
2 cost + 2 e − 2 t e + 2 te
x (t) = 12 et − 109
cost − 103
sint + 25 e2t − tet
1 1 4 2t 1 2 t 1 t
5 cost − 10 sint + 5 e − 2 t e + 2 te
This is then the solution to the first order system. I used Scientific Notebook to do all of
these computations. However, one can also use Matlab. You will need Matlab and the
symbolic math toolbox installed for this to work.
>>syms s t; a=(enter initial vector here); b=(enter sI-A here); c=(enter f(t) here);
simplify(ilaplace(inv(b)*(a+laplace(c))))
I will use this to solve the above problem.
>> syms s t; a=[1;0;1]; b=[s-2 -2 1;1 s -1;1 0 s-2]; c=[cos(t);sin(t);exp(t)];
simplify(ilaplace(inv(b)*(a+laplace(c))))
Note the use of square brackets in entering the matrix. You must use these. You enter
one row at a time with a space between successive entries and a semicolon to indicate the
start of a new row. Then you press enter on your keyboard and it will produce the following:
cos(t)/2 + exp(t)/2 - (tˆ2*exp(t))/2 + (3*t*exp(t))/2
(2*exp(2*t))/5 - (9*cos(t))/10 + exp(t)/2 - (3*sin(t))/10 - t*exp(t)
(4*exp(2*t))/5 + cos(t)/5 - sin(t)/10 - (tˆ2*exp(t))/2 + (t*exp(t))/2
The advantage to using Scientific notebook is the result comes out looking a lot nicer
but you get the same thing either way. In fact Scientific notebook is based on mupad which
is part of the symbolic math toolbox in Matlab.
4 −4 3
cos (t) 1
It will not be possible to give a closed form solution for this problem but we can write
it in terms of an integral if the fundamental matrix is found.
30.3. HOMOGENEOUS PARTICULAR AND GENERAL SOLUTIONS 593
−1
1 0 0 −3 2 −1
Ψ (s) = s 0 1 0 − 0 −1 1
0 0 1 4 −4 3
s−1 2 1
s2 +2s+1 s2 +2s+1
− s2 +2s+1
s2 −5
− −s3 −s42 +s+1 − −s3 −s s+3
− −s3 −s
= 2 +s+1 2 +s+1
1 3
1 4 s+ 4
1 s2 − 1 − 1 21 1 1 s2 − 1
4 4 4s −4 4 4
Therefore,
−e−t (2t − 1) 2te−t −te−t
Φ (t) = e − e−t − 2te−t 2e−t − et + 2te−t et − e−t − te−t
t
Note how there is no initial condition. We just look for all solutions to the above
differential equation. The following theorem describes all of these solutions.
Theorem 30.3.2 The general solution to the homogeneous problem x′ = Ax consists of all
vectors of the form Φ (t) c where c is a vector in Fn and Φ (t) is the fundamental matrix of
A.
Proof: Let x be a solution to the equation. Then x (0) = c for some c. Consider Φ (t) c
and x (t) both solve x′ = Ax the first doing so because
Φ′ (t) c = AΦ (t) c
Thus Φ (t) c and x (t) both solve the same differential equation and have the same initial
condition. Therefore, these are the same and this shows that the set of solutions to x′ = Ax
consists of Φ (t) c for c ∈ Fn as claimed. ■
According to the above theory, it suffices to find the fundamental matrix. The inverse
of sI − A is the matrix which has the following columns, beginning at the left and moving
toward the right:
s+2 1
s2 −2s+1 s2 −2s+1
3 s−2
− s2 −2s+1
, s2 −2s+1
,
7s−13 3s−5
−s3 +4s2 −5s+2 −s3 +4s2 −5s+2
1 6s−10 2s−3 6s−10
− 3s−5 (4s − 7) −s3 +4s 2 −5s+2 − 3s−5 −s3 +4s2 −5s+2
2 1
s2 −2s+1 s2 −2s+1
2 1
− s2 −2s+1 − s2 −2s+1
2
,
−8s+11 3s−5
− −s3s +4s 2 −5s+2
−s3 +4s2 −5s+2
6s−10 s2 +s−4
− −s3 +4s2 −5s+2 − −s3 +4s 2 −5s+2
This was done by a computer algebra system. Now take inverse Laplace transforms of this
to get the fundamental matrix Φ (t) =
therefore, the general solution is of the form Φ (t) c where c ∈ Fn . In other words, it is the
set of linear combinations of the columns of Φ (t). Since Φ (t)−1 = Φ (−t) , the columns
30.3. HOMOGENEOUS PARTICULAR AND GENERAL SOLUTIONS 595
are linearly independent and this shows that the dimension of the solution space is n if A is
n × n. In the above example, the dimension of the general solution is 4 because A is 4 × 4.
Now consider the general solution to
x′ = Ax + f
There is a very easy way to describe this. It is just the general solution to x′ = Ax added to
x p where x p is any particular solution to the above nonhomogeneous equation.
Theorem 30.3.4 The general solution to x′ = Ax + f consists of all solutions to this equa-
tion. It is of the form Φ (t) c + x p where x p is a particular solution meaning x′p = Ax p +f .
x′ = Ax + f
where
2 −4 −2 et sint
A= 3 −4 −2 , f (t) = e−t cost
−3 10 6 t
First I will find the fundamental matrix using the following syntax.
>>syms s t; b=eye(3);
c=[2 -4 -2;3 -4 -2;-3 10 6];f=[exp(t)*sin(t);exp(-t)*cos(t);t];
simplify(ilaplace(inv(s*b-c)))
simplify(ilaplace(inv(s*b-c)*laplace(f)))
The first line starting with “simplify” will give the fundamental matrix and the second
will give a particular solution. The claim about the first was already considered. As to the
second, if x is a particular solution with zero initial condition,
and this involves inv(s*b-c)*laplace(f) in the above syntax. Then you do ilaplace to this
thing to get a particular solution. Try it. You will get a horrendous mess but Matlab has no
problem in doing it.
This has shown how to solve first order systems at least up to a suitable variation of
constants formula. There is one other topic which is sometimes useful and that is the
convolution integral and its relation to the Laplace transform.
596 CHAPTER 30. LAPLACE TRANSFORM METHODS
Theorem 30.3.6 Suppose F (s) is the Laplace transform of f (t) and G (s) is the Laplace
transform of g (t). Then F (s) G (s) is the Laplace transform of
Z t Z t
f (u) g (t − u) du = f (t − u) g (u) du ≡ f ∗ g (t)
0 0
Proof: To be rigorous, you really need to replace improper integrals with integrals over
a finite interval and then take a limit, but the idea is essentially as follows:
Z ∞ Z t Z ∞Z ∞
e−st f (t − u) g (u) dudt = e−st f (t − u) g (u) dtdu
0 0 0 u
Z ∞Z ∞
= e−s(t−u) f (t − u) e−su g (u) dtdu
0 u
Z ∞Z ∞
= e−sr f (r) e−su g (u) drdu
0 0
Z ∞ Z ∞
= e−su g (u) e−sr f (r) dr du
0 0
Z ∞ Z ∞
= e−sr f (r) dr e−su g (u) du
0 0
= F (s) G (s)
where
t
f (t) = t
ln t 2 + 1
and
−1 0 −6
A = −2 1 −5
1 0 4
There is no way you will find a decent closed form solution to this in terms of elemen-
tary functions because of the horrible ln t 2 + 1 but this is not really a problem because
you can find a particular solution in terms of a convolution. You just need to find the fun-
damental matrix which is not hard. I will use the following to find the fundamental matrix.
syms s t; b=eye(3); c=[-1 0 -6;-2 1 -5;1 0 4];
simplify(ilaplace(inv(s*b-c)))
This yields for Φ (t)
−et (2et − 3) 0 −6et (et − 1)
−et (t + et − 1) et −et (2t + 3et − 3)
et (et − 1) 0 et (3et − 2)
30.4. HIGHER ORDER SCALAR LINEAR EQUATIONS 597
This gives a perfectly good description of a particular solution. Thus the general solution
is of the form
−et (2et − 3) 0 −6et (et − 1)
−et (t + et − 1) et −et (2t + 3et − 3) c + x p (t)
et (et − 1) 0 et (3et − 2)
Here c is an arbitrary vector in Fn . Note how this is essentially a return to the notion of the
variation of constants formula presented earlier.
Of course all of this depends on being able to say that if two functions have the same
Laplace transform, then they must in some sense be the same function. This will be dis-
cussed later when it will also be shown how to explicitly go backwards in the table and find
the original function given its Laplace transform.
In terms of matrices,
′ 0 1 0 ··· 0
x (1) x (1) 0
x (2) .. ..
0 0 1 . . x (2)
0
..
.. ..
..
.
= .. .. ..
.
+
.
. . . . 0
x (n − 1) 0 ··· 0 0 1
x (n − 1) 0
x (n) −a0 −a1 ··· −an−2 −an−1 x (n) f
Theorem 30.4.2 Let Ψ (t) be as in 30.9 where x′k = Axk . Then Ψ (t)−1 exists for all t
if and only if Ψ (0)−1 exists and if this happens, then the fundamental matrix is Φ (t) =
Ψ (t) Ψ (0)−1 .
30.4. HIGHER ORDER SCALAR LINEAR EQUATIONS 599
′
Proof: ⇐Say Ψ (0)−1 exists. Then ΨΨ (0)−1 = (AΨΨ (0)) and so Φ (t) ≡ Ψ (t) Ψ (0)−1
is the fundamental matrix. Recall that there is only one and that it is invertible. Thus Ψ (t)−1
exists for all t.
⇒ If Ψ (t)−1 exists for all t, then this is true for t = 0. ■
The above says that if Ψ (t) is given by 30.9 then det (Ψ (t)) either vanishes for all t
or for no t. This determinant is called the Wronskian and this little observation is known
as the Wronskian alternative. Also note that the general solution is of the form Φ (t) c as
explained above. If Ψ (0) is invertible, this is Ψ (t) Ψ (0)−1 c but a generic c can be written
as Ψ (0)−1 Ψ (0) c and so the general solution is of the form Ψ (t) c exactly when Ψ (0)−1
exists.
Theorem 30.4.3 Consider the equation Ly ≡ y(n) +an−1 (t) y(n−1) +· · ·+a1 (t) y′ +a0 (t) y =
0 and suppose Lyk = 0 for k = 1, 2, · · · , n. Then every solution to Ly = 0 is of the form
∑nk=1 ck yk if and only if W (y1 , · · · , yn ) (t) ̸= 0 for some t. If this Wronskian condition holds
for some t, then it holds for all t. That is, the Wronskian vanishes identically or never.
In the case that W (y1 , · · · , yn ) (t) ̸= 0 for some t, we say that the general solution to
Ly = 0 consists of expressions of the form ∑nk=1 ck yk .
A useful way to recognize that you have the general solution in the case of second order
equations is as follows.
{c1 y1 + c2 y2 , c1 , c2 ∈ R}
and so the Wronskian is nonzero at some point if and only if y2 /y1 is not constant so that
the derivative of the quotient is not zero. ■
600 CHAPTER 30. LAPLACE TRANSFORM METHODS
Chapter 31
You usually can’t factor the characteristic polynomial and so you usually can’t find explicit
solutions to the system
Another serious difficulty is the case where f depends not just on t but also on x. This is
the case of nonlinear equations.
This is really just a more complicated problem than finding the integral when you are
unable to find an antiderivative in terms of known functions. In the simpler case of finding
integrals, there are numerical methods for determining the integral. It is no different in the
case of systems of ordinary differential equations.
y ′ = F (t, y) , y (0) = y 0
y ′ = f (t, y) , y (0) = y 0
601
602 CHAPTER 31. NUMERICAL SOLUTIONS FOR SYSTEMS
It predicts what the slope should be at a point and then averages the two values to
advance another step.
This problem of getting solutions to first order systems of differential equations has
been studied extensively and a book like this is not the place to see a careful description of
the best methods. However, one of the very best was developed long before computers by
Runge and Kutta in 1901.
y ′ = f (t, y) , y (0) = y 0
You can have MATLAB use the Runge-Kutta algorithm to numerically find a solution to
a system of ordinary differential equations. I will illustrate with a first order system which
comes from the Van der Pol equation. The exact equation studied is not too important at
this point. My intent is to illustrate the syntax used. Here it is:
It will graph both components as functions of t, and it will give you a table of values at the
points t = 2, 3, 4, 5, 6.
To illustrate how the Runge Kutta algorithm works in comparison to the other two, con-
sider the initial value problem y′ = y, y (0) = 1. Then the three methods give the following
graphs.
The exact solution is y = et . In the picture,
the Euler method, improved Euler method, and
Runge-Kutta methods are used to solve the differ-
ential equation numerically. The diamonds on the
graph of y = et are from the Runge-Kutta method
and the other diamonds represent the result of us-
ing the other two methods. Note that the Runge-
Kutta points appear to be exactly right while the
other solutions stray from the true solution. When
one is evaluating numerical algorithms, it is in
general a good idea to experiment with them on
problems with a known answer. The improved Eu-
ler method is just what the words suggest but the
Runge Kutta method beats it easily. In all of these graphs, the step size was h = .2.
>>f=@(t,y)[-sin(y(2))*y(2)-y(2);(t+1)*y(1)+2*y(2)];
[t,x]=ode45(f,[0:.05:2],[0;1]); plot(t,x)
T T
The vector x y is denoted as y= y(1) y(2) . Then press “enter” and it will
graph these functions on [0, 2]. You should see two graphs, one for x (t) and one for y (t).
The first is 0 when t = 0 and the second is 1 when t = 0. In the second line, .05 is the
minimum step size for t. You can change this is you like.
If you want a table, you type in
>> s=ode45(f,[0,2],[0;1]);
deval(s,[0,.2,.4,.6,.8,1,1.2,1.4,1.6,1.8,2])
Then when you press ! “enter”, you get a table of column vectors which give the values of
y (1)
the vector at the specified values of t. You can also click on the data cursor icon
y (2)
on the top of the graph. Then place the little cross on a point of the curve which interests
you and left click. It will display the ordered pair on this point, a value for t and one for
604 CHAPTER 31. NUMERICAL SOLUTIONS FOR SYSTEMS
either y (1) or y (2). In the line which has ode45, if you type ode45(f,[0,2],[0;1]), then
MATLAB will decide on the step size for you.
Then, when you have what you want, you ought to type “clear all” and then “enter”
and then type clf and then “enter” to get rid of any figures. This is so you can do some-
thing else without closing MATLAB and starting it over again. MATLAB remembers the
functions which have been defined and so unless you do this, it may think you are referring
to something other than what you want if you do another computation without closing it
down.
You are not limited to systems which have two variables. For example, suppose you
wanted to get a solution to
′
x −x3 + x − y x 0
y = z − y + sin(z) , y (0) = 1
z x z 1
>> f=@(t,y)[-y(1)ˆ3+y(1)-y(2);y(3)-y(2)+sin(y(3));y(1)];
[t,x]=ode45(f,[0:.05:2],[0;1;1]);plot(t,x)
Of course the solution to the initial value problem is a space curve. Suppose you wanted to
see the graph of this space curve. Try this
>> f=@(t,y)[-y(1)ˆ3+y(1)-sin(y(2));y(3)-y(2)+sin(y(3));y(1)];
[t,x]=ode45(f,[0:.05:30],[0;-1;1]);
plot3(x(:,1),x(:,2),x(:,3),’LineWidth’,2)
a a a
The stability is determined by the sign of f ′ (a). However, if f ′ (a) = 0, then the equi-
librium point can be stable from one side and not from the other. In the example of the
above, it is stable from the left and unstable from the right. This is because if y is close
to a but less than a, the derivative y′ is positive so the solution to the differential equation
increases. If y is close to a but larger than a, then y′ > 0 and so the solution moves away
from a. Similar considerations show why the other two claims are so, stable if f ′ (a) < 0
and unstable if f ′ (a) > 0.
However, the situation is even more complicated when f ′ (a) = 0. You could have f
be strictly increasing through (a, 0) in which case, you would have that the equilibrium
31.3. STABILITY OF EQUILIBRIUM POINTS 605
point is unstable. Think f (y) = (y − a)3 . Then f has a 0 derivative at a but is increasing.
Similarly, you could have f decreasing through (a, 0) in which case, the equilibrium point
would be stable. The point is, anything can happen when f ′ (a) = 0.
You should regard f ′ (a) as an eigenvalue for the linear map x → f ′ (a) x. The eigen-
value is negative implies stability. The eigenvalue is positive implies not stable. The eigen-
value is 0 means anything can happen.
The situation is completely similar for nonlinear systems of equations.
f (a + y) = 0 + Df (a) y + o (y)
The situation which generalizes what happens with functions of one variable is as follows.
Let a be an equilibrium point for the differential equation y ′ = f (y). Thus f (a) = 0.
So what exactly is meant by stable? It is the same as in the case of scalar valued
equations.
Definition 31.3.2 An equilibrium point a for y ′ = f (y) is stable if whenever the initial
condition y 0 is sufficiently close to a, it follows that the solution to the initial value problem
y ′ = f (y) , y (0) = y 0 will stay close to a. Also, a is asymptotically stable if whenever y 0
is close enough to a, then the solution of the initial value problem just described converges
to a as t → ∞.
In fact, one has a little more in case all eigenvalues are negative.
z xy2 + x + 2z
You need to get the derivative of the right side. The matrix of this is
y−5 x −12
−2 2y − 1 −6
y2 + 1 2xy 2
606 CHAPTER 31. NUMERICAL SOLUTIONS FOR SYSTEMS
1 0 2
The eigenvalues are −1, −2, −1 and so this equilibrium point is stable.
Example 31.3.4 The point (1, 0, 0)T is an equilibrium point of the following system
′
x 11x + 11y − 12z + xy − 11
y = 6z − 7y − 6x + yz + 6
z 4x + 4y − 6z + xz − 4
z+4 4 x−6
4 4 −5
Now you consider the eigenvalues for this matrix. In this case, there is a positive eigenvalue
and so the equilibrium point is unstable.
Of course there is a problem with this. How do you find the sign of the eigenvalues.
You don’t need to know the eigenvalues exactly, just their signs. However, MATLAB can
tell you the approximate eigenvalues. To find them in this case, you do the following.
You enter the rows starting with the top row and then the next and so forth. You type
the numbers from left to right leaving a space between numbers or you can put a comma
between them. When you start a new row, you tell MATLAB this is the case by placing ;
there. Then type eig(A) and press enter. It will give you the eigenvalues.
T
Example 31.3.5 1 1 0 is an equilibrium point for the differential equation
′
x 7x + 14y − 3z + xy − 22
y = z − 9y − 5x + yz + 14
z z2 − 2z + 3x + 5y − 8
3 5 2z − 2
Now find this at the equilibrium point.
8 15 −3
−5 −9 2
3 5 −2
Next you need to consider the real parts of the eigenvalues. Use MATLAB. This gives the
eigenvalues are −1 + i, −1 − i, and −1 so they have negative real parts and this shows that
the equilibrium point is stable.
When the eigenvalues include one which has real part equal to 0 and none of them
having positive part larger than 0, then you really don’t know much. Nevertheless, there
is a way to consider this case also, but I do not plan to include it in this book. It involves
something called the center manifold and understanding it properly requires a little too
much hard mathematics. However, it is also true that in many cases of interest, the system
takes place in the plane and in this case, you can often figure out what is happening by
simply having MATLAB graph the space curves resulting from various initial conditions.
For example, consider !′ !
x −4y2
=
y 2x
If you graph the space curves which result from many different small initial conditions, you
will see that (0, 0) is a stable point although not asymptotically stable.
hold on
r=.1; f=@(t,x)[-4*x(2)ˆ3;2*x(1)];
for n=1:10
[t,x]=ode45(f,[0,40],[0,n*.1]);
plot(x(:,1),x(:,2),’LineWidth’,1.3)
end
You could modify this just a little and find a situation where (0, 0) is asymptotically
stable. !′ !
x −4y2
=
y 2x + .1y
hold on
r=.1; f=@(t,x)[-4*x(2)ˆ3;2*x(1)+.1*x(2)];
for n=1:3
[t,x]=ode45(f,[0,40],[0,n*.1]);
plot(x(:,1),x(:,2),’LineWidth’,1.3)
end
If you solve numerically and graph the solution using the above syntax, you will see
the solution spiral in towards (0, 0).
A great deal more can be said concerning stability and more generally the geometric
behavior of solutions to ordinary differential equations, especially for systems which have
608 CHAPTER 31. NUMERICAL SOLUTIONS FOR SYSTEMS
solutions in the plane. In the next section are some major results about these things. For
much more see a text on ordinary differential equations. My book has a good deal more
discussion. See [25].
{x (t, x0 ) ,t ≥ 0}
such that for some T > 0, x (t + T, x0 ) = x (t, x0 ) for all t ≥ 0. The number T is called a
period. Thus the point x (t, x0 ) goes around and around always returning to the point from
where it started.
Now the following is the Poincare Bendixon theorem which gives existence of periodic
orbits in the plane.
Theorem 31.4.2 Let D be the closure of a bounded region of the plane such that f is a
C1 function which has no zeros in D, and suppose that x (t, x0 ) stays in D for all t ≥ 0 if
x0 ∈ D, where this is the solution to
x′ = f (x) , x (0) = x0
Then letting Λ+ = ∪t≥0 x (t, x0 ) , it follows that Λ+ is either a periodic orbit or t → x (t, x0 )
spirals in toward a periodic orbit.
It is a plausible result. Say you have that every initial condition which starts off in a
bounded closed set stays in that set and there are no equilibrium points. Thus t → x (t, x0 )
just keeps moving. Then from this theorem, there must be a periodic orbit somewhere such
that either this function traces out a periodic orbit or it gets close to one. For example,
consider the system !′ !
x x + y − x x2 + 2y2
=
−x + y − y 2x2 + y2
y
From looking at the eigenvalues of the matrix in the almost linear system, you will see that
they are both positive. Hence every solution near (0, 0) but not equal to (0, 0) must fail to
remain near (0, 0). Also, you can see from the equations that the solutions cannot get very
large because the sign of x′ will change to oppose |x| getting large and a similar condition
happens for y′ . Therefore, there should exist a periodic orbit from the above theorem.
The following picture illustrates what happens for various initial conditions. Note how the
solutions spiral in toward a periodic orbit.
1 Ivar Otto Bendixson (1861-1935) was a Swedish mathematician. He is most famous for the Poincare
-1
-1 0 1
Definition 31.4.3 A saddle point x0 for x′ = f (x) is an equilibrium point (f (x0 ) = 0)
which is not stable, but which has the property that in in every set of the form
{x : r > |x − x0 | > 0}
there are points for which the solution having these as initial conditions converges to x0
as t → ∞. These saddle points occur for example if you have a negative and a positive
eigenvalue for Df (x0 ).
The following very interesting theorem can be obtained from the above.
Theorem 31.4.4 If you have a periodic orbit of a solution to an autonomous two dimen-
sional differential equation, x′ = f (x) , then it must go around some equilibrium point.
If there is only one equilibrium point inside the periodic orbit, then it cannot be a saddle
point.
31.5 Exercises
1. The Van der Pol equation describes nonlinear oscillations. It is
x′′ + x2 − 1 x′ + x = 0
(31.1)
Show that it has a non constant periodic solution. Do as follows. First write as a first
order system
x′ = y
′
y = − x2 − 1 y + x
Have MATLAB or some other computer algebra system give a graph of solutions for
the above system corresponding to various initial conditions in a way to show the
periodic solution. Try the following:
f=@(t,x)[x(2);-((x(1)ˆ2-1)*x(2)+x(1))];
d=pi/4; r=.3;
hold on
for n=1:9
[t,x]=ode45(f,[0:.05:10],[n*r*cos(n*d);n*r*sin(n*d)]);
plot(x(:,1),x(:,2),’LineWidth’,1.5)
end
610 CHAPTER 31. NUMERICAL SOLUTIONS FOR SYSTEMS
-2
-4
-2 0 2
Chapter 32
where p (x) and q (x) can be expressed in terms of a power series centered at 0. Such
equations are said to have a regular singular point. This is very different because there is
generally no way to write such an equation in the form
where p (x) , q (x) are continuous near 0. Thus the initial value problem makes no sense.
Thus, none of the above theory applies to these equations and further analysis is needed.
Equations of this sort were found to be very important in the nineteenth century for various
reasons. For more on these topics, you can see my book [25]. What is here is a subset of
the contents of this book. Also, the most important example of this kind of equation is the
Bessel equation. Whole books are available on this which will develop more of the theory
than presented here or in my differential equations book. See [17].
Solving a Cauchy Euler equation is really easy. You look for a solution like y = xr
and try to choose r in such a way that it solves the equation. Plugging this in to the above
equation,
x2 r (r − 1) xr−2 + xarxr−1 + bxr = 0
611
612 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
This reduces to
xr (r (r − 1) + ar + b) = 0
and so you have to solve the equation
r (r − 1) + ar + b = 0
to find the values of r. If these values of r are different, say r1 ̸= r2 then the general solution
must be
C1 xr1 +C2 xr2
because the Wronskian of the two functions will be nonzero. I know this because the ratio
of the two functions is not a constant so Proposition 30.4.4 implies this gives the general
solution. The reason for this is that the quotient rule gives the numerator as ±1 times the
Wronskian.
r (r − 1) − 2r + 2 = r2 − 3r + 2 = 0
and so the two values of r are 1, 2. Therefore, the general solution to this equation is
C1 x +C2 x2 .
Of course there are three cases for solutions to the so called indicial equation
r (r − 1) + ar + b = 0
Either the zeros are distinct and real, distinct and complex or repeated. Consider the case
where they are distinct and complex next.
x−1+i , x−1−i ?
It is real easy. You assume always that x > 0 since otherwise the leading coefficient could
vanish. Then
x−1+i = eln(x)(−1+i) = e− ln(x)+i ln(x)
and by Euler’s formula this equals
−1
x−1+i = eln(x ) (cos (ln (x)) + i sin (ln (x)))
1
= (cos (ln (x)) + i sin (ln (x)))
x
Corresponding to x−1−i we get something similar.
1
x−1−i = ((cos (ln (x)) − i sin (ln (x))))
x
32.1. THE EULER EQUATIONS 613
Adding these together and dividing by 2 to get the real part, the principle of superposition
implies
1
cos (ln (x))
x
is a solution. Then subtracting them and dividing by 2i you get
1
sin (ln (x))
x
is a solution. Hence anything of the form
1 1
C1 cos (ln (x)) +C2 sin (ln (x))
x x
is a solution. Is this the general solution? Of course. This follows because the ratio of the
two functions is not constant and this implies their Wronskian is nonzero. See Proposition
30.4.4.
In the general case, suppose the solutions of the indicial equation
r (r − 1) + ar + b = 0 (32.1)
Finally consider the case where the zeros of the indicial equation are real and repeated.
Note I have included all cases because, since the coefficients of this equation are real, the
zeros come in conjugate pairs if they are not real. Suppose then that xr is a solution of
x2 y′′ + axy′ + by = 0
and that r is a repeated root. By the quadratic formula applied to the indicial equation 32.1,
− (a − 1)
r= (32.2)
2
Then if z (x) is another solution which is not a multiple of xr , you would have
z (x) = xr u (x)
Then
x2 r (r − 1) xr−2 u + 2rxr−1 u′ + xr u′′ + ax rxr−1 u + xr u′ + bxr u = 0
Therefore,
xu′′ + u′ = 0
and this is a first order linear equation for u′ . Thus, a nonzero solution to this is
1
u′ =
x
Therefore, if u = ln x, it follows that z (x) = u (x) xr is a solution to the Euler equation with
the repeated roots and so another solution is
z = xr ln (x)
x2 y′′ + 3xy′ + y = 0.
r (r − 1) + 3r + 1 = r2 + 2r + 1 = 0
(x − a)2 y′′ + a (x − a) y′ + by = 0?
The answer is that is wouldn’t be any different. You could just define a new independent
variable t ≡ (x − a) and then the equation in terms of t becomes
t 2 z′′ + atz + bz = 0
where z (t) ≡ y (x) = y (t + a) . You can always reduce these sorts of equations to the case
where the singular point is at 0. However, you might not want to do this. If not, you look
for a solution in the form y = (x − a)r , plug in and determine the correct value of r. In the
case of real and distinct zeros you get
Definition 32.2.1 A function f is analytic in some open set U if for each a ∈ U, f (x) =
k
∑∞
k=0 ak (x − a) for all x close enough to a. In other words, you can get the function near a
by a power series.
n
Theorem 32.2.2 Suppose f (x) = ∑∞
n=0 an (x − a) for x near a and suppose a0 ̸= 0. Then
1
f (x)−1 = + h (x)
a0
n
where h (x) = ∑∞
n=1 bn (x − a) so h (a) = 0.
Proof: It turns out that f (x)−1 has a power series representation near a and so f (a)−1 =
1/a0 . ■
Proof: See the material on power series in my calculus book. However, it is quite
plausible.
! !
∞ ∞
∑ an x n ∑ bn xn
n=0 n=0
a0 + a1 x + a2 x 2 + · · · b0 + b1 x + b2 x2 + · · ·
=
Now formally multiply the two power series like they were polynomials and collect terms.
This will yield 32.3. ■
Definition 32.3.1 A differential equation has a regular singular point at 0 if the equation
can be written in the form
x2 y′′ + xb (x) y′ + c (x) y = 0 (32.4)
where
∞ ∞
b (x) = ∑ bn xn , ∑ cn xn = c (x)
n=0 n=0
616 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
for all x near 0. Such functions are called analytic in this section. More generally, a differ-
ential equation
P (x) y′′ + Q (x) y′ + R (x) y = 0 (32.5)
where P, Q, R are analytic near a has a regular singular point at a if it can be written in the
form
(x − a)2 y′′ + (x − a) b (x) y′ + c (x) y = 0 (32.6)
where
∞ ∞
b (x) = ∑ bn (x − a)n , ∑ cn (x − a)n = c (x)
n=0 n=0
for all |x − a| small enough. The equation 32.5 has a singular point at a if P (a) = 0.
The following table emphasizes the similarities between the Euler equations and the
regular singular point equations. I have featured the point 0. If you are interested in another
point a, you just replace x with x − a everywhere it occurs.
How do you know a singular differential equation can be written a certain way? In
particular, how can you recognize a regular singular point when you see one? Suppose
where all of P, Q, R are analytic functions near a. How can you tell if it has a regular
singular point at a? Here is how. It has a regular singular point at a if
Q (x)
lim (x − a) exists
x→a P (x)
R (x)
lim (x − a)2 exists
x→a P (x)
If these conditions hold, then by theorems in complex analysis it will be the case that
∞
Q (x)
(x − a) = ∑ bn (x − a)n ,
P (x) n=0
and
∞
R (x)
(x − a)2 = ∑ cn (x − a)n
P (x) n=0
for x near a. Indeed, equations of this form reduce to the form in 32.6 upon dividing by
P (x) and multiplying by (x − a)2 .
32.3. REGULAR SINGULAR POINTS 617
Example 32.3.2 Find the regular singular points of the equation and find the singular
points.
x3 (x − 2)2 (x − 1)2 y′′ + (x − 2) sin (x) y′ + (1 + x) y = 0
(x − 2) sin (x)
lim x
x→0 x3 (x − 2)2 (x − 1)2
does not exist. Therefore, 0 is not a regular singular point. I don’t have to check any further.
Now consider the singular point 2.
(x − 2) sin (x) 1
lim (x − 2) = sin 2
x→2 x3 (x − 2)2 (x − 1)2 8
and
1+x 3
lim (x − 2)2 =
x→2 x3 (x − 2)2 (x − 1)2 8
and so yes, 2 is a regular singular point. Now consider 1.
(x − 2) sin (x)
lim (x − 1)
x→1 x3 (x − 2)2 (x − 1)2
does not exist so 1 is not a regular singular point. Thus the above equation has only one
regular singular point and this is where x = 2.
The singular points are 0, nπ where n is an integer. Let’s consider a point at nπ where
n ̸= 0. To be specific, let’s let n = 3
3 tan (x)
lim (x − 3π) =0
x→3π x sin (x)
3 tan (x)
lim x =3
x→0 x sin (x)
and
2
lim x2 =2
x→0 x sin (x)
so it appears all these singular points are regular singular points.
618 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
Let’s look at x = 0 first. The equation has the same singular points.
3 tan (x)
lim x = undefined
x→0 x2 sin (x)
so 0 is not a regular singular point.
3 tan (x)
lim (x − 3π) =0
x→3π x2 sin (x)
and the situation is similar for other singular points nπ. Also
2
lim (x − 3π)2 =0
x→3π x2 sin (x)
with similar result for arbitrary nπ where n ̸= 0. Thus in this case 0 is not a regular singular
point but nπ is a regular singular point for all integers n ̸= 0.
In general, if you have an equation which has a regular singular point at a so that the
equation can be massaged to give something of the form
you could always define a new variable t ≡ (x − a) and letting z (t) = y (x) , you could
rewrite the equation in terms of t in the form
t 2 z′′ + tb (a + t) z′ + c (a + t) z = 0
and thereby reduce to the case where the regular singular point is at 0. Thus there is no
loss of generality in concentrating on the case where the regular singular point is at 0. In
addition, the most important examples are like this. Therefore, from now on, I will consider
this case. This just means you have all the series in terms of powers of x rather than the
more general powers of x − a.
and you have two solutions to it y1 , y2 . Abel’s formula is a lovely little identity for the
Wronskian of these two functions. It gives another way to show that the Wronskian either
vanishes identically or not at all. From the equation,
Now subtract.
y1 y′′2 − y2 y′′1 + p (x) y1 y′2 − y2 y′1 = 0
(32.7)
32.5. FINDING THE SOLUTION 619
W ′ + p (x)W = 0
Proposition 32.4.1 Let y1 , y2 be two solutions to y′′ + p (x) y′ + q (x) y = 0 for x in some
interval on which p (x) , q (x) are continuous. Then
Note how this shows directly that the Wronskian either vanishes identically or not at
all. This also motivates the following procedure.
p (x) = b0 + b1 x + · · ·
620 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
q (x) = c0 + c1 x + · · ·
you see that for small x the equation should be approximately equal to
x2 y′′ + xb0 y′ + c0 y = 0
which is an Euler equation. This would have a solution in the form xr where
r (r − 1) + b0 r + c0 = 0,
the indicial equation for the Euler equation, and so it is not unreasonable to look for a
solution to the equation in 32.9 which is of the form The values of r are called the exponents
of the singularity.
∞
xr ∑ ak xk , a0 ̸= 0.
k=0
You perturb the coefficients of the Euler equation to get 32.9 and so it is not unreasonable
to think you should look for a solution to 32.9 of the above form.
x2 y′′ + x 1 + x2 y′ − 2y = 0.
x2 y′′ + xy′ − 2y = 0
∞ ∞
+x 1 + x2 ∑ ak (k + r) xk+r−1 − 2 ∑ ak xk+r = 0
k=0 k=0
This simplifies to
∞ ∞
∑ ak (k + r) (k + r − 1) xk+r + ∑ ak (k + r) xk+r (32.11)
k=0 k=0
∞ ∞
+ ∑ ak (k + r) xk+r+2 − 2 ∑ ak xk+r = 0
k=0 k=0
The lowest order term is the xr term and it yields
a1 ((1 + r) (r) + (1 + r) − 2) = 0
Now if r solves 32.10 then 1 + r does not do so because the two solutions to this equation
do not differ by an integer. Therefore, the above equation requires a1 = 0. At this point we
can give a recurrence relation for the other ak . To do this, change the variable of summation
in the third sum of 32.11 to obtain
∞ ∞
∑ ak (k + r) (k + r − 1) xk+r + ∑ ak (k + r) xk+r
k=0 k=0
∞ ∞
+ ∑ ak−2 (k − 2 + r) xk+r − 2 ∑ ak xk+r = 0
k=2 k=0
Thus for k ≥ 2,
ak [(k + r) (k + r − 1) + (k + r) − 2] + ak−2 (k − 2 + r) = 0
Hence for k ≥ 2,
−ak−2 (k − 2 + r) −ak−2 (k − 2 + r)
ak = =
[(k + r) (k + r − 1) + (k + r) − 2] [(k + r) (k + r − 1) + (k + r) − 2]
and we take a0 ̸= 0 while
√ a1 = 0. Now let’s find the√ first several terms of two independent
solutions, one for r = 2 and the other for r = − 2. Let a0 = 1 for simplicity. Then the
above recurrence relation shows that since a1 = 0 all the odd terms equal 0. Also
−r r
a2 = =−
[(2 + r) (2 + r − 1) + (2 + r) − 2] [(2 + r) (1 + r) + r]
while
r
− − [(2+r)(1+r)+r] (4 − 2 + r) r 2+r
a4 = =
[(4 + r) (4 + r − 1) + (4 + r) − 2] [2 + 4r + r2 ] [14 + 8r + r2 ]
Continuing this way, you can get as many terms as you want. Now √ let’s put in the two
values of r to obtain the beginning of the two solutions. First let r = 2
√
√
2
y1 (x) = x 2 1 + − h √ √ √ i x2 +
2+ 2 2+1 + 2
√ √
2 2+ 2 4
+ h √ ih √ i x ···
4 + 4 2 16 + 8 2
√
the solution which corresponds to r = − 2 is
√
√
2
y2 (x) = x− 2 1 + h √ √ √ ix +
2
2− 2 1− 2 − 2
622 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
√
√ −2 + 2 4
2h √ ih √ ix +···
4 − 4 2 16 − 8 2
Then the general solution is
C1 y1 +C2 y2
and this is valid for x > 0. Note that the ratio of the two solutions is not a constant so this
is indeed the general solution.
Generalities
For an equation
x2 y′′ + xp (x) y′ + q (x) y = 0
having a regular singular point at 0, one looks for solutions in the form
∞
y (x) = ∑ an xr+n (32.12)
n=0
where r is a constant which is to be determined, in such a way that a0 ̸= 0. It turns out that
such equations always have such solutions although solutions of this sort are not always
enough to obtain the general solution to the equation. The constant r is called the exponent
of the singularity because the solution is of the form
Thus the behavior of the solution to the equation given above is like xr for x near the
singularity, 0.
If you require that 32.12 solves 32.9 and plug in, you obtain using Theorem 32.2.3
!
∞ ∞ n
∑ (r + n) (r + n − 1) an xn+r + + ∑ ∑ ak (k + r) bn−k xn+r
n=0 n=0 k=0
!
∞ n
+∑ ∑ cn−k ak xn+r = 0. (32.13)
n=0 k=0
Since a0 ̸= 0,
p (r) ≡ r (r − 1) + b0 r + c0 = 0 (32.14)
and this is called the indicial equation. (Note it is the indicial equation for the Euler equa-
tion which comes from deleting all the nonconstant terms in the power series for p (x) and
q (x).) Also the following equation must hold for n = 1, · · · .
n−1 n−1
p (n + r) an = − ∑ ak (k + r) bn−k − ∑ cn−k ak ≡ fn (ai , bi , ci ) (32.15)
k=0 k=0
These equations are all obtained by setting the coefficient of xn+r equal to 0.
There are various cases depending on the nature of the solutions to this indicial equa-
tion. I will always assume the zeros are real, but will consider the case when the zeros are
distinct and do not differ by an integer and the case when the zeros differ by a non negative
integer.
32.5. FINDING THE SOLUTION 623
It turns out that the nature of the problem changes according to which of these cases
holds. You can see why this is the case by looking at the equations 32.14 and 32.15. If r1 , r2
solve the indicial equation and r1 − r2 ̸= an integer, then with r in equation 32.15 replaced
by either r1 or r2 , for n = 1, · · · , p (n + r) ̸= 0 and so there is a unique solution to 32.15 for
each n ≥ 1 once a0 ̸= 0 has been chosen. Therefore, in this case that r1 − r2 ̸= an integer,
equation 32.4 has a general solution in the form
∞ ∞
C1 ∑ an xn+r1 +C2 ∑ bn xn+r2 , a0 , b0 ̸= 0.
n=0 n=0
It is obvious this is the general solution because the ratio of the two solutions is non con-
stant. As pointed out earlier, this requires their Wronskian to be nonzero.
On the other hand, if r1 − r2 = an integer, then there exists a unique solution to 32.15
for each n ≥ 1 if r is replaced by the larger of the two zeros r1 . Therefore, in this case there
is always a solution of the form
∞
y1 (x) = ∑ an xn+r1 , a0 = 1, (32.16)
n=0
but you might very well hit a snag when you attempt to find a solution of this form with
r1 replaced with the smaller of the two zeros r2 due to the possibility that for some m ≥ 1,
p (m + r2 ) = p (r1 ) = 0 without the right side of 32.15 vanishing. In the case when both
zeros are equal, there is only one solution of the form in 32.16 since there is always a
unique solution to 32.15 for n ≥ 1. Therefore, in the case when r1 − r2 = a non negative
integer either 0 or some positive integer, you must consider other solutions. I will use
Abel’s formula to find the second solution. The equation solved by these two solutions is
and dividing by x2 to place in the right form for using Abel’s formula, Proposition 32.4.1.
1 1
y′′ + p (x) y′ + 2 q (x) y = 0
x x
Thus letting y1 be the solution of the form in 32.16, and y2 another solution, Abel’s formula
gives
p (x)
Z
y′2 y1 − y2 y′1 = W ∈ e−P(x) dx, P′ (x) =
x
Thus, following Procedure 32.4.2
y′1 1
y′2 − y2 = W
y1 y1
Z
b0
P (x) ∈ + b1 + b2 x + · · · dx = b0 ln x + b1 x + b2 x2 /2 + · · ·
x
and so
−P (x) = ln x−b0 + k (x)
for k (x) some analytic function, k (0) = 0. Therefore,
−b0
e−P(x) = eln(x )+k(x) = x−b0 g (x)
Next it is good to understand y1 and r1 in terms of b0 . Consider the zeros to the indicial
equation,
r (r − 1) + b0 r + c0 = r2 − r + b0 r + c0 = 0.
It is given that r1 = r2 + m where m is a non negative integer. Thus the left side of the above
equals
(r − r2 ) (r − r2 − m) = r2 − 2rr2 − rm + r22 + r2 m
and so
−2r2 − m = b0 − 1
which implies
1 − b0 m
r2 = −
2 2
and hence
1 − b0 m
r1 = r2 + m = +
2 2
1−b0 +m ∞
y1 (x) = x 2
∑ an xn , a0 = 1 (32.18)
n=0
Now from Theorem 32.2.2 and looking at 32.18 y1 (x)−2 is of the form
1
= xb0 −1−m (1 + h (x))
x1−b0 +m (∑∞ n 2
n=0 an x )
where we can have a0 = 1 and b0 = 1. If r1 = r2 = r then the general solution of 32.4 may
be obtained in the form
y1 y1
z }| { z }| {
∞ ∞ ∞
C1 ∑ an xn+r +C2 n+r n+r
ln (x) ∑ an x + ∑ Cn x
n=0 n=0 n=0
x2 y′′ + xy′ + x2 − ν 2 y = 0
Obviously this has a regular singular point at 0 and the indicial equation is
r (r − 1) + r − ν 2 = r2 − ν 2 = 0
Thus the two indices of singularity are ±ν. There are various cases according to whether
ν is 0, not an integer, or an integer.
Then change the variable of summation in the last sum. This yields
∞ ∞ ∞
∑ an n (n − 1) xn + ∑ an nxn + ∑ an−2 xn = 0
n=0 n=0 n=2
an (n (n − 1) + n) + an−2 = an n2 + an−2 = 0
a
Thus an = − n−2
n2
.
Taking a0 = 1, a1 = 0, it follows that all odd terms equal 0 and
−1 1 1 1 1 1
a2 = , a4 = 2 2 , a6 = − 2 2 2 , · · ·
4 2 4 2 4 6
The pattern is now fairly clear:
1
a2n = (−1)n
2n (n!)2
for suitable choice of the Cn . Thus one is bounded near x = 0 and the other is unbounded
near x = 0. In fact, it is customary to let the second solution be a complicated linear
32.6. THE BESSEL EQUATIONS 627
combination of these two solutions. When this is done, the function which results is known
as Y0 (x). Then J0 (x) is the Bessel function of the first kind and the Y0 (x) is called the
Bessel function of the second kind. Here are graphs of these functions.
Y0 (x)
J0 (x)
∞ ∞
+ ∑ an xn+ν+2 − ∑ ν 2 an xn+ν = 0
n=0 n=0
Thus all the odd terms are 0 and the first several terms are as follows.
1 1 1
a0 = 1, a2 = − , a4 = ,···
2 (2 + 2ν) 2 (2 + 2ν) 4 (4 + 2ν)
(−1)n 1
a2n =
(2 · 4 · · · · · 2n) (2 + 2ν) (4 + 2ν) · · · (2n + 2ν)
628 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
(−1)n 1
=
22n n! (1 + ν) (2 + ν) · · · (n + ν)
That product (1 + ν) (2 + ν) · · · (n + ν) in the bottom will be denoted as (n + ν)n . Then
this reduces to
(−1)n
a2n = 2n
2 n! (n + ν)n
Thus a solution corresponding to ν is
∞
(−1)k
xν + ∑ 2k k! (k + ν)
x2k+ν
k=1 2 k
1
Then this is massaged a little more. It is multiplied by the constant Γ(ν+1)2ν . Recall that
the Gamma function satisfies
Γ (α) α = Γ (α + 1)
Applying this rule repeatedly in the above sum yields
∞
(−1)k x 2k+ν
Jν (x) = ∑ k!Γ (k + ν + 1)
k=0 2
is also a solution to the Bessel equation. The definition of Γ (k − ν + 1) when the argu-
ment is negative is defined in terms of the property of the gamma function which was
responsible for making Jν (x) be a solution, Γ (α + 1) = αΓ (α) . Thus, for example, if
−ν + 1 < 0, Γ (−ν + 1) (−ν + 1) · · · (−ν + m) = Γ (−ν + 1 + m) where m is large enough
that −ν + 1 + m > 0. Since ν is not an integer, −ν + k is never zero so there is never a
difficulty in encountering something which does not make sense.
The Bessel function of the first kind Jν converges to 0 as x → 0+ while J−ν is un-
bounded as x → 0 + . Consequently, their ratio cannot be a constant and so the general
solution is obtained as linear combinations of these two solutions. Of course everything
changes if ν is a positive integer. In this case, the second solution fails to even make sense
because you could have k − ν = 0 and Γ (0) is not even defined.
In fact, what people tabulate is a linear combination of these two solutions
cos (πν) Jν (x) − J−ν (x)
Yν (x) ≡
sin (πν)
It is called the Weber function or the Neumann function. The main thing to notice here is
that it is unbounded as x → 0.
as one solution. In fact, you could consider simply replacing m with −m in the above, but
this will not work out. It won’t work out roughly because Γ (k − m + 1) = ±∞ for k +1 ≤ m.
Thus the sum will reduce to
∞
(−1)k x 2k−m
∑
k=m k!Γ (k − m + 1) 2
so the new solution obtained by replacing m with −m is nothing more than (−1)m times
the old solution. It follows that there is no way to obtain the general solution as a linear
combination of these two. The second solution must involve a logarithmic term and will
therefore, be unbounded near 0. However, it is convenient to define
x2 y′′ + xy′ + x2 − ν 2 y = 0
Proof: Change the independent variable to s where x = es . Thus, letting y (s) = y (x) ,
it will suffice to show that s → y (s) has infinitely many zeros. Doing the transformation
yields the following differential equation for s → y (s)
Obviously for all s large enough, e2s − ν 2 > 1. Consider now the equation
z′′ + z = 0
The idea is to show that if a, b are successive zeros of z for a large enough that for s > a,
e2s − ν 2 > 1 it follows that y must have a zero in [a, b]. Since z has infinitely many zeros, it
follows that so does y.
630 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
where W (y, z) is the Wronskian. It follows from the mean value theorem that W (y, z) (a) <
W (y, z) (b). Then
y (a) 0 y (b) 0
′ ′
< ′ ′
y (a) z (a) y (b) z (b)
positive = y (a) z′ (a) < y (b) z′ (b) = negative,
a contradiction. ■
For the purposes of this book, this will suffice. The main message is that there are two
independent solutions, one bounded near 0 and the other unbounded as described above.
Both oscillate about 0 and have infinitely many zeros. In many applications, the unbounded
one is of no interest based on physical considerations.
1 x m ∞ 1 x 2 k
∞
1 x 2k+m
|Jm (x)| ≤ ∑ ≤ ∑ k! 2
k=0 k!m! 2 m! 2 k=0
1 x m
exp x2 /4
= (32.22)
m! 2
Therefore, it is permissible to sum the various series which result in what follows in any
order desired.
Now for t ̸= 0,
∞ ∞
xt 1 x l l − x 1 x k
e2 = ∑ l! t , e 2t = ∑ (−1)k t −k
l=0 2 k=0 k! 2
32.7. OTHER PROPERTIES OF BESSEL FUNCTIONS 631
We multiply these two series. This will involve many terms which can be added in any
order thanks to absolute convergence. To get t m for m ≥ 0, you need to multiply terms
l = m + k times the term for t −k in the second sum. Thus you get for this term
∞ x m+k 1 x k
1
tm ∑ (−1)k
k=0 (m + k)! 2 k! 2
∞
1 x 2k+m
= t m ∑ (−1)k = t m Jm (x)
k=0 k! (m + k)! 2
∞
(−1)l x 2l−m
= (−1)m t m ∑ = (−1)m t m J−m (x)
l=0 l! (l − m)! 2
Therefore, xt x
e 2 e− 2t = e(x/2)(t−1/t)
must equal the sum of t m terms for m ≥ 0 and the sum of t m terms for m < 0. It follows that
∞ ∞
e(x/2)(t−1/t) = J0 (x) + ∑ t m Jm (x) + ∑ (−1)m t −m Jm (x)
m=1 m=1
∞
t m + (−1)m t −m
= J0 (x) + ∑ Jm (x)
m=1
That is, Jm (x) is just the mth coefficient of the series for e(x/2)(t−1/t) . This has proved
the following interesting result on the generating function for Bessel equations.
Theorem 32.7.1 For m an integer and Jm (x) = (−1)m J−m (x) , we have the following gen-
erating function for these Bessel functions.
∞
e(x/2)(t−1/t) = ∑ t m Jm (x) (32.23)
m=−∞
Proof: It remains to obtain the above addition formula. This is remarkably easy to
obtain.
∞
e((x+y)/2)(t−1/t) = ∑ t m Jm (x + y)
m=−∞
((x+y)/2)(t−1/t) (x/2)(t−1/t) (y/2)(t−1/t)
e =e e
∞ ∞
= ∑ t l Jl (x) ∑ t k Jk (y)
l=−∞ k=−∞
and in this product, the tm term is the sum of products for which l + k = m. That is,
∞
Jm (x + y) = ∑ Jk (y) Jm−k (x)
k=−∞
multiply the top by cos (nθ ) and the bottom by sin (nθ ) and add. Thus
∞
cos (nθ − x sin (θ )) = ∑ cos (nθ − mθ ) Jm (x)
m=−∞
Because of the uniform convergence of the partial sums of Rthe above series which follows
from computations like those in 32.22, one can interchange 0π with the infinite summation.
This yields Z π
cos (nθ − x sin (θ )) dθ = πJn (x)
0
because, unless n = m, 0π cos (nθ − mθ ) dθ = 0. Therefore, this yields the very important
R
The interchange of the integral with the summation follows from noting that the sums
of the form ∑km=−k cos (nθ − mθ ) Jm (x) converge uniformly on [0, π] to the infinite sum
thanks to the 1/m! in the estimates of 32.22. Thus, from the fact that the integral is linear,
Z π ∞ Z π k
∑ cos (nθ − mθ ) Jm (x) dθ = lim ∑ cos (nθ − mθ ) Jm (x) dθ
0 m=−∞ 0 k→∞ m=−k
k Z π ∞ Z π
= lim ∑ cos (nθ − mθ ) Jm (x) dθ = ∑ cos (nθ − mθ ) Jm (x) dθ
k→∞ m=−k 0 m=−∞ 0
How do you compute Jn (x)? You can’t get it the usual way very conveniently because
the leading term vanishes at 0. This integral will give an easy way to do it. For example,
1
Z π
J4 (6) = cos (4θ − 6 sin (θ )) dθ = 0.357 64
π 0
I just did the integral numerically in Scientific Notebook and got the answer easily. One
can also produceRa graph of x → J4 (x) very easily in this software by graphing the function
of x given by π1 0π cos (4θ − x sin (θ )) dθ . To do this, you simply type the expression in
math mode and then select plot 2d. It has to work at it a little but will produce the graph. It
knows that the variable is x and acts accordingly. In the exercises is a problem on how to
do this in MATLAB. It is more elaborate.
There are whole books written on Bessel functions, [17].
32.8 Exercises
1. The Hermite equation is
y′′ − xy′ + ny = 0
Verify that if n = 0 or a positive integer, then this equation always has a polynomial
solution. These are called Hermite polynomials. Hint: This is easier than the case
of a regular singular point. Just look for a solution of the form y = ∑∞ n
n=0 an x and
choose the an in such a way that the series satisfies the equation using the fact that
you can differentiate a power series term by term. In this case, there should be two
solutions.
2. If you have two polynomial solutions to the Hermite equation above, pm (x) corre-
sponding to m in the equation and pn (x) corresponding to n in the equation, n ̸= m,
show that Z ∞
2
e−x pm (x) pn (x) dx = 0
−∞
3. The equation
1 − x2 y′′ − 2xy′ + n (n + 1) y = 0
is Legendre’s equation. Note that 0 is an ordinary point for this equation. Show that
for n a non-negative integer, this equation has polynomial solutions. Also explain
why this equation has a regular singular point at 1, −1.
634 CHAPTER 32. SOLUTIONS NEAR A REGULAR SINGULAR POINT
4. In the above problem, suppose pk (x) and pl (x) are solutions, to the equations corre-
sponding to n = k, l respectively. Show that
Z 1
pk (x) pl (x) dx = 0
−1
solutions to this equation. That is, specify a recurrence relation and two solutions.
Explain why there exist polynomial solutions to this equation. Hint: You just look
for power series solutions.
7. The equation 1 − x2 y′′ − 3xy′ + n (n + 2) y = 0 is also called the Chebychev equa-
tion. Find solutions to this equation. That is, specify a recurrence relation and two
solutions. Explain why there exist polynomial solutions to this equation. Hint: You
just look for power series solutions.
8. Specify two solutions to the following differential equation by determining a recur-
rence relation and then describing how to obtain two solutions. Hint: You just look
for power series solutions.
9. Find the solution to the initial value problem y′′ + sin (x) y′ + cos (3x) y = 0 along
with the initial conditions y (0) = 1, y′ (0) = −1. You just need to find the first terms
of the power series solution up to x4 .
10. Find the solution to the initial value problem y′′ + tan (2x) y′ + cos (3x) y = 0 along
with the initial conditions y (0) = −1, y′ (0) = 2. You just need to find the first terms
of the power series solution up to x4 .
11. Find the solution to the initial value problem y′′ + tan (5x) y′ + sec (3x) y = 0 along
with the initial conditions y (0) = −2, y′ (0) = 3. You just need to find the first terms
of the power series solution up to x4 .
12. Find the general solution to the following Euler equations.
x (1 − x) y′′ + (γ − (1 + α + β ) x) y′ − αβ y = 0
Show it has a regular singular point at 0 and that the roots of the indicial equation are
0 and 1 − γ.
14. In the above example, change the independent variable as follows: t = 1/x. Deter-
mine the equation which results in terms of t and show that the resulting equation
has a regular singular point at 0 and that the roots of the indicial equation are α, β .
Hint: You need to show that y′′ (x) = y′′ (t)t 4 + 2t 3 y′ (t) , y′ (x) = −t 2 y′ (t). When
you let t = 0, you are looking at the “point at infinity”. Thus you are showing that
the “point at infinity” is a regular singular point.
15. Consider the Bessel equation in which ν = 1/2. In this case, the roots of the indicial
equation differ by an integer. Nevertheless, there are two solutions, neither of which
involves a logarithm. Verify that for ν not an integer,
∞
(−1)k
x−ν + ∑ 2k k! (k − ν)
x2k−ν
k=1 2 k
xy′′ + (1 − x) y′ + my = 0
Show that when m is a nonnegative integer, there always exists a polynomial which is
a solution to this differential equation. Letting pk (x) , pl (x) be polynomial solutions
corresponding to m = k, l respectively, show that
Z ∞
e−x pk (x) pl (x) dx = 0, k ̸= l
0
20. Suppose you have any linear second order differential equation Ly = 0 in which
there is a general solution C1 y +C2 z such that W (y, x) ̸= 0 for x ∈ [a, b]. Show that if
y (x) = 0, then y′ (x) ̸= 0. Why does this show that given a zero of a nonzero solution
to the Bessel equation, or any other second order linear differential equation, there is
a next zero?
21. Consider the equation x3 y′′ + 2xy′ + y = 0. Explain why it does not have a regular
singular point at 0. Show that the only possible nonzero power series solution to this
has radius of convergence equal to 0. In fact there really isn’t any such series solution
to this problem.
22. Consider the Bessel function Jm (x) for m a positive integer. Recall the summation
formula.
∞
Jm (x + y) = ∑ Jm−k (x) Jk (y) ,
k=−∞
∞
(−1)k x 2k+m
Jm (x) = ∑ k! (k + m)! 2 , Jm (x) = (−1)m J−m (x)
k=0
Explain why Jm is even if m is even and Jm is odd if m is odd. Next let m = 0 and see
what comes out of the summation formula. Then let y = −x to obtain an inequality
which shows that all the J√n are bounded. Show in particular that each Jn (x) has the
property that |Jn (x)| ≤ 1/ 2 if n > 0.
23. Use the integral formula for the Bessel function to graph J4 (x) for x ∈ [0, 20] . Here
is the syntax which will work for this. You put in the new lines.
hold on
for k=1:201 f=@(t,k)cos(4*t-((k-1)*.1)*sin(t));
y(k)=piˆ(-1)*integral(@(t)f(t,k),0,pi);
x(k)=(k-1)*.1; plot(x,y,’linewidth’,2) end.
Chapter 33
637
638 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
It is the same equation, but the end points are different. As in the above example, if
it has a solution, then it is of the form B sin x − 21 x cos (x) Now let x = π/2 and you find
B − 41 π0 = 0. Thus a solution to this boundary value problem is y = − 12 x cos (x)
In this example, there was exactly one solution. Next consider
Example 33.1.4 Find the solutions to the equation y′′ + y = sin x, and boundary conditions
π π
y (0) = 0, y′ =
2 4
The general solution to the differential equation is easily seen to be A cos (x)+B sin (x)−
1
2 x cos (x) .You have find A, B such that the boundary conditions are satisfied. Substituting
t = 0 yields A = 0. Thus if there is a solution it is of the form y = B sin (x) − 12 x cos (x) .
Then y′ (x) = B cos x− 12 cos x+ 12 x sin x. Then you also need π4 = y′ π2 = B cos π2 +0+ π4
which happens for any value of B. Therefore, for any B, y = B sin (x) − 21 x cos (x) is a solu-
tion to this two point boundary value problem.
This is an example of a boundary value problem which has infinitely many solutions.
Notice how all three examples involved the same differential equation, just different bound-
ary conditions.
It turns out that for two point boundary value problems it is always this way. Either
there are no solutions, exactly one or there are infinitely many. This may look familiar.
Recall that it was this way for systems of linear equations. There are profound reasons why
this similarity takes place but they are not for a book like this.
Example 33.2.1 Find the values of λ such that there exist nonzero solutions to the
boundary value problem
y′′ + λ y = 0
y (0) = y (L) = 0
Along with any pair of boundary conditions which satisfy the conditions
Integrate by parts.
Z L Z L
′ ′ 2
y|L0 − y2 dx = 0
y y dx + λ
0 0
Consider now the boundary term. It equals 0 by assumption. Therefore,
Z L 2 Z L
− y′ dx + λ y2 dx = 0
0 0
33.2. EIGENVALUE PROBLEMS 639
If λ < 0, this equation could not be true and have y ̸= 0 because it would imply 0L y2 dx = 0
R
y′′ + µ 2 y = 0
y (0) = y (L) = 0
C2 = 0, C1 sin (µL) = 0
Therefore, for some nonnegative integer n, you must have µL = nπ. You can’t have n = 0
since then y = 0 and this is not allowed. Therefore, n is a positive integer and the eigenval-
ues are
n2 π 2
λ = 2 , n = 1, 2, · · ·
L
The corresponding eigenfunctions are
nπ
sin x , n = 1, 2, · · ·
L
Case 2: Next consider the case where y′ = 0 at the ends. Thus you want nonzero y and
λ such that
y′′ + µ 2 y = 0
y (0) = y′ (L) = 0
′
Then
y′ = C1 µ cos µx −C2 µ sin µx
Insert the boundary conditions. At 0 this requires that
C1 µ = 0
C2 µ sin (µL) = 0
y=1
640 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
which is a nonzero function. Of course any nonzero multiple of this is also an eigenfunc-
tion. If µ is not zero, then you need
µL = nπ, n = 1, 2, · · ·
so
n2 π 2
λ= , n = 0, 1, 2, · · ·
L2
The eigenfunctions in this case are
nπ
1, cos x , n = 1, 2, · · ·
L
Case 3: Next consider the case where y (0) = 0 and y′ (L) = [Link] you want nonzero
y and λ such that
y′′ + µ 2 y = 0
y (0) = y′ (L) = 0
and on inserting the left boundary condition, this requires that C2 = 0. Now consider the
right boundary condition. You can’t have µ = 0 in this case, because if you did, you would
have y = 0 which is not allowed. Hence you have
µL = (2n − 1) π for n = 1, 2, · · ·
(2n − 1)2 π 2
λ= , n = 1, 2, · · ·
L2
and the eigenfunctions are
(2n − 1) π
sin x , n = 1, 2, · · ·
L
f (x + T ) = f (x) .
Z L
(
1 mπ 1 nπ 0 if m ̸= n
√ cos x √ cos x dx =
−L L L L L 1 if m = n
Z L mπ nπ
sin x cos x dx = 0
−L L L
Proof: Consider the first of these formulas. From one of the above trig. identities,
Z L mπ nπ
sin x sin x dx =
−L L L
Z L
1 mπ nπ mπ nπ
cos − x − cos + x dx
2 −L L L L L
If m ̸= n, this clearly integrates to 0. If m = n, you have
1 L
Z
2n
1 − cos x dx = L
2 −L L
Thus Z L
1 nπ 1 nπ
√ sin x √ sin x dx = 1
−L L L L L
The second formula works out the same way. Consider the third.
Z L mπ nπ
sin x cos x dx =
−L L L
642 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
1 L mπ nπ mπ nπ
Z
sin + x + sin − x dx
2 −L L L L L
It is easy to see that this integral is always 0 regardless the choice of m, n. ■
Now suppose you succeed in approximating f with a Fourier series in some meaningful
way. ∞
∞
1 1 kπ 1 kπ
f (x) ≈ a0 √ + ∑ ak √ cos x + ∑ bk √ sin x (33.5)
2L k=1 L L k=1 L L
What should be the formula for ak and bk ? Multiply both sides by √1L sin mπ
L x and then
integrate the resulting infinite sum by saying the integral of the sum is the sum of the
integrals. Since the sum involves a limit, this is nothing but a formal and highly speculative
piece of pseudo mathematical nonsense but we will not let a little thing like that get in the
way. Thus
Z L Z L
1 mπ 1 mπ
f (x) √ sin x dx = a0 √ sin x dx+
−L L L −L 2L L
∞ Z L
1 kπ 1 mπ
∑ ak √ cos x √ sin x dx
k=1 −L L L L L
∞ Z L
1 kπ 1 mπ
+ ∑ bk √ sin x √ sin x dx
k=1 −L L L L L
All these integrals equal 0 but one and that is the one involving the sine and k = m. This is
by the above lemma. Therefore,
Z L Z L
1 mπ 1 mπ
f (x) √ sin x dx = bm sin2 x dx = bm
−L L L L −L L
It seems likely therefore, that bm should be defined as
Z L
1 mπ
bm = f (x) √ sin x dx (33.6)
−L L L
This is so far completely speculative, but this was they often did things back in the
time when Fourier came up with the idea back in the early 1800s. Here is the definition
of the Fourier series in which we combine the various constant terms to make it easier to
remember.
1 L 1 L mπ
Z Z
a0 = f (y) dy, am = f (y) cos y dy
2L −L L −L L
Z L
1 mπ
bm = f (y) sin y dy
L −L L
We will refer to a0 , an , bn as Fourier coefficients.
To say that two functions are close in this sense is to say that for each x you have f (x) close
to g (x). The two functions are said to be uniformly close if they are close in this norm.
This norm is also called the uniform norm.
This is a good way to define distance between functions, but it turns out that a more
useful way in many situations is the following. You define
Z b
1/2
∥ f − g∥ ≡ | f (x) − g (x)|2 dx
a
Then ∥ f − g∥ is called the mean square norm with the above definition. You should verify
that if two functions are close in the uniform norm, then they must be close in the mean
square norm, but not the other way around. Often the mean square norm is denoted as
| f − g|. So why is this a norm and what is meant by a norm? First here is a simple lemma.
644 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
(a f + bg, h) = a ( f , h) + b (g, h)
( f , ag + bh) = a ( f , g) + b ( f , h)
Proof: All of the above are completely obvious except for the last one. As to that one,
note that from the first obvious properties, for t ∈ R
0 ≤ (t f + g,t f + g) = t 2 ( f , f ) + 2t ( f , g) + (g, g)
Proposition 33.4.2 The mean square norm ∥ f ∥ = | f | = ( f , f )1/2 satisfies the following
axioms.
1. ∥ f ∥ ≥ 0
2. If a is a number, ∥a f ∥ = |a| ∥ f ∥
3. ∥ f + g∥ ≤ ∥ f ∥ + ∥g∥
Proof: The only one which is not completely obvious is the last. Then by the definition
of the norm and the properties of (·, ·) ,
∥ f + g∥2 ≡ ( f + g, f + g) = ∥ f ∥2 + ∥g∥2 + 2 ( f , g)
≤ ∥ f ∥2 + ∥g∥2 + 2 |( f , g)|
≤ ∥ f ∥2 + ∥g∥2 + 2 ∥ f ∥ ∥g∥
= (∥g∥ + ∥ f ∥)2
33.4. MEAN SQUARE APPROXIMATION 645
Now taking the square root of both sides yields the desired inequality. ■
The reason this is important is that if you have f close to g and h close to g, then you
have f close to h. Indeed,
∥ f − h∥ ≤ ∥ f − g∥ + ∥g − h∥
and if both of the terms on the right are small, then the term on
the left is also.
There are 2n + 1 functions, √12L , √1L cos kπ √ sin jπ x for k, j ∈ 1, 2, · · · , n. De-
1
L x , L L
2n+1
note these functions as {φ k }k=1 to save on notation. It was shown above that φ k , φ j =
δ jk which is 1 if k = j and 0 if k ̸= j. Then for f a Riemann integrable function on [−L, L] ,
our problem is to choose α k to minimize
2
2n+1
f− ∑ α kφ k = (A + B, A + B)
k=1
for any choice of ak which includes the case of (A, B). Thus ∗ implies
2 2 2
2n+1 2n+1 2n+1
f− ∑ α kφ k = f− ∑ ( f , φ k) φ k + ∑ (( f , φ k ) − α k ) φ k
k=1 k=1 k=1
Hence
2 2
2n+1 2n+1 2n+1
f− ∑ α kφ k = f− ∑ ( f , φ k) φ k + ∑ (( f , φ k ) − α k )2 (**)
k=1 k=1 k=1
which shows that the left sideis minimized exactly when α k = ( f , φ k ). It is clear then that
corresponding to √1L cos kπxL , you would have
Z L
1 kπx
αk = f (x) √ cos dx
−L L L
646 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
and so, the term in the Fourier series which corresponds to this would be
Z L
1 kπy 1 kπx
f (y) √ cos dy √ cos
−L L L L L
ZL
1 kπy kπx
= f (y) cos dy cos
L −L L L
which is Bessel’s inequality. In particular, in the case of most interest here, this inequality
is
2 2
1 n
Z L Z L
2 1 kπx
|f| ≥ f (x) dx + ∑ f (x) sin dx
2L −L L k=1 −L L
2
1 n
Z L
kπx
+ ∑ f (x) cos dx (**)
L k=1 −L L
It follows that the sequence of partial sums in the sum on the right in ∗∗ converges and
so
Z L
kπ
lim f (x) cos x dx = 0
k→∞ −L L
Z L
kπ
lim f (x) sin x dx = 0 (33.9)
k→∞ −L L
The two limits in 33.9 are special cases of the Riemann-Lebesgue lemma. These are the
considerations which make it possible to consider the pointwise convergence properties of
Fourier series. In particular, the following lemma is used.
Proof: It equals
Z L πx kπ Z L
πx kπ
lim f (x) cos sin x dx + f (x) sin cos x dx
k→∞ −L 2L L −L 2L L
Theorem 33.5.2 Suppose f is a periodic function of period 2L such that f has only finitely
many jump discontinuities on the interval [−L, L). Suppose there exists a constant K such
that for all x,
| f (x+) − f (x + y)| < Ky
for all sufficiently small positive y. Also
In words, this says that the Fourier series converges to the midpoint of the jump. A
picture which represents a part of the graph of f is as follows.
You note that the dot is at the midpoint of the jump. The condition in the theorem is
there to rule out excessive steepness of the graph of the function. In fact, one can do a lot
better than what it says in this theorem. You should see [3] for two more general treatments
of this theorem.
One way to satisfy the condition on not having excessive steepness is to have f be
piecewise continuous such that if a, b are successive discontinuities, then redefining f on
[a, b] to equal f (a+) at the left and f (b−) at the right, the new function has a continuous
derivative on [a, b].
Theorem 33.5.2 is the convergence theorem. I am going to give a discussion of this
convergence theorem. If you are not interested in understanding why it works, ignore the
proof. It is included in case someone would be interested. This important theorem or one
like it was first proved in 1829 by Dirichlet.
648 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
Here Dn (t) is called the Dirichlet kernel. In order to consider the convergence of the partial
sums, it is necessary to study the properties of the Dirichlet kernel.
sin n + 21 πL t
Dn (t) = π
2L sin 2L t
π 1 n !
1 1 kπ π kπ π
= sin t + ∑ sin + t − sin − t
L 2 2L 2 k=1 L 2L L 2L
" #
n n
1 π 1 π 1 π
= sin t + ∑ sin k+ t − ∑ sin k− t
2L 2L k=1 2 L k=1 2 L
" #
n n−1
1 π 1 π 1 π
= sin t + ∑ sin k+ t − ∑ sin k+ t
2L 2L k=1 2 L k=0 2 L
1 1 π
= sin n+ t
2L 2 L
Thus the desired formula is
sin n + 21 πL t
Dn (t) = π
■
2L sin 2L t
Z L
f (x+) + f (x−)
= − f (x − y) Dn (y) dy
−L 2
Z L Z L
= ( f (x+) + f (x−)) Dn (y) dy − ( f (x − y) + f (x + y)) Dn (y) dy
0 0
Z L
f (x+) − f (x + y) 1 π
≤ π
sin n+ y dy +
0 2L sin 2L y
2 L
Z L
f (x−) − f (x − y) 1 π
π
sin n+ y dy
0 2L sin 2L y
2 L
Both of these converge to 0 thanks to Lemma 33.4.3. To use this lemma, it is only necessary
to verify that the functions
f (x−) − f (x − y) f (x+) − f (x + y)
y→ π
, y→ π
2L sin 2L y 2L sin 2L y
f (x+) − f (x + y) K |y|
π
≤ π
2L sin 2L y 2L sin 2L y
and this expression converges to K/π, so the function is Riemann integrable. The other
function is similar. ■
Example 33.5.4 Let f (x) = |x| for x ∈ [−1, 1) and let f be periodic of period 2. Find the
Fourier series of f .
Since the function is even, the bk = 0. Therefore, the Fourier series equals
∞
1 4
−∑ cos (2k − 1) πx
2 k=1 π 2 (2k − 1)2
Now here is the graph of the function between −1 and 1 along with the sum up to 2 in the
Fourier series. You will notice that after only three terms the Fourier series appears to be
very close to the function on the interval [−1, 1]. This also shows how the Fourier series
approximates the periodic extension of this function off this interval.
33.5. POINTWISE CONVERGENCE OF FOURIER SERIES 651
It follows that
0
-2 0 2 π2 ∞
1
=∑ 2
.
8 k=1 (2k − 1)
Example 33.5.5 Let f (x) = 1 on (0, 2] and f (x) = −1 on (−2, 0] and f (x + 4) = f (x).
First note that L = 2. In this case, the function is odd and so all the ak = 0.
1 2
Z 2
kπx kπx
Z
bk = f (x) sin dx = sin dx
2 −2 2 0 2
Then bk = πk2
1 − (−1)k . Thus for k even, this is 0. For k odd, this is πk4
. It follows the
Fourier series is
∞
4 (2k − 1) πx
∑ sin
k=1 π (2k − 1) 2
In the picture, is a graph of the addition of the
first four terms of the Fourier series along with part
1
of the function. Notice the way the Fourier series
is struggling to do the impossible, approximate uni-
0 formly a discontinuous function with one which is
very smooth. That little blip near the jump in the
function will never go away by taking more terms
-1 in the sum.
Note that if you take x = 1 the series must con-
-4 -2 0 2 4 verge to 1. Therefore,
∞
4
1= ∑ π (2k − 1) (−1)k−1
k=1
It follows that
π ∞
(−1)k−1
=∑
4 k=1 2k − 1
This is another remarkable assertion.
652 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
I will show this now, leaving out a few details which will be reasonable to believe. Suppose
that f is continuous and periodic with period 2L. The Cesaro means of f are defined as
follows.
1 n 1 L
Z
σ n f (x) ≡ ∑ Sk f (x) , S0 f (x) = a0 ≡ 2L −L f (x) dx
n + 1 k=0
Thus, from what was shown above,
1 n
Z L
σ n f (x) = ∑ Dk (x − y) f (y) dy
n + 1 k=0 −L
!
1 n
Z L
=
−L
∑ Dk (x − y) f (y) dy
n + 1 k=0
sin n + 12 πL t
Dn (t) = π
2L sin 2L t
Thus
1 1 n π
2
π 1 π
sin t Fn (t) = ∑ sin 2L t sin k + 2 L t
2L 2L n + 1 k=0
1 n
π
1 1 π π 1 π
= ∑ cos k + t − t − cos t + k + t
2L (n + 1) 2 k=0 2 L 2L 2L 2 L
1 1 1 n h π π i
= ∑ cos kt − cos t (k + 1)
2L n + 1 2 k=0 L L
1 π
= 1 − cos t (n + 1)
4L (n + 1) L
Thus
1 1 − cos πL t (n + 1)
Fn (t) = (**)
sin2 2L
4L (n + 1) π
t
Here are graphs of Fn (t) for n = 1, 2, · · · , 7 for L = π. Notice how they are nonnegative
and are large on a small interval containing 0. As you increase n, the bump in the middle
gets taller.
33.5. POINTWISE CONVERGENCE OF FOURIER SERIES 653
1 2
Z
≤ 2M 2
+ 2M | f (x) − f (x − u)| Fn (u) du
4L (n + 1) sin 2L π
δ |u|<δ
Now if ε > 0, there is δ > 0 such that if |u| < δ , then for all x, | f (x) − f (x − u)| < ε/2.
Thus for such a choice of δ and ∗ ∗ ∗,
1 2 ε
| f (x) − σ n f (x)| ≤ 2M 2
+
4L (n + 1) sin 2L δ
π 2
this for any x. Thus the convergence of σ n f (x) to f (x) is uniform. It follows that
Z L
lim | f (x) − σ n f (x)|2 dx = 0
n→∞ −L
Proposition 33.5.6 If f is continuous and 2L periodic, then the Cesaro means converge
uniformly to f and also they converge to f in the mean square sense.
From this, it is not hard to establish that the Cesaro means converge in mean square to
any 2L periodic function f which is Riemann integrable on intervals of length 2L. To do
this, you argue that, given a Riemann integrable function which is 2L periodic, there exists
a continuous function which is close to it in the mean square norm. Then apply the above
proposition to this continuous function and get a Cesaro mean close to it in mean square
which is close to the original function in mean square sense.
654 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
One of these can be made as close as desired to f in the mean square sense. Hence the
corresponding Fourier series is even closer, by the above section on mean square approxi-
mation. Thus, for every ε > 0 there exists N such that if n > N, then
Z L
|Sn f (x) − f (x)|2 dx < ε
−L
which says the Fourier series converge in the mean square sense to f .
Note that the above proposition also shows an improved result about pointwise conver-
gence. The function f did not need to have any control on its derivative and yet the Cesaro
means converged uniformly to the function. If the function were piecewise continuous,
the Cesaro means would converge to the mid point of the jump with no condition on the
derivatives from left or right. This is easy to show but is as far as this will be taken here.
If you want uniform approximation using trigonometric series, you should not be using the
Fourier series. You should use the Cesaro means.
Definition 33.6.1 Let f be a bounded function defined on [a, b] . It is called piecewise con-
tinuous if there is a partition of [a, b] , {x0 , · · · , xn } and for each k, a continuous function gk
such that f (x) = gk (x) for all x ∈ (xk−1 , xk ).
It turns out that you can integrate a Fourier series term by term. This is generally true
but I will show it here for piecewise continuous 2L periodic functions. Let f be such a
function equal to a continuous function on [xi , xi+1 ] for i ≤ n. Then consider
Z x
G (x) ≡ ( f (t) − a0 ) dt
−L
Thus G (−L) = G (L) = 0 and if we continue using G to denote the 2L periodic extension,
it follows from Theorem 33.5.2 that the Fourier series of G
∞ nπx ∞ nπx
A0 + ∑ An cos + ∑ Bn sin
n=1 L n=1 L
converges to G at every point. This is because | f (t) − a0 | is bounded by some M due to the
assumption that it is piecewise continuous and the observation that
Z x
|G (x) − G (x̂)| ≤ | f (t) − a0 | ≤ M |x − x̂|
x̂
33.6. INTEGRATING AND DIFFERENTIATING FOURIER SERIES 655
n−1 Z xk+1
L nπx
−∑ sin ( f (x) − a0 ) dx
k=0 xk nπ L
The series telescopes and the result is 0 because G (L) = G (−L) = 0. Thus the result of it
all is
n−1 Z xk+1
L nπx
LAn = −∑ sin ( f (x) − a0 ) dx
k=0 xk nπ L
Z L
L nπx
= − sin ( f (x) − a0 ) dx
−L nπ L
656 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
Thus Z L
L 1 nπx L
An = − sin ( f (x) − a0 ) dx = − bn
nπ L −L L nπ
Similar computations will show that for n > 0,
Z L
L 1 nπx L
Bn = cos ( f (x) − a0 ) dx = an
nπ L −L L nπ
where an , bn are, respectively, the cosine and sine Fourier coefficients of f . Thus we have
from ∗, An
Z x ∞
L
G (x) = ( f (t) − a0 ) dt = − ∑ − bn (−1)n +
−L n=1 nπ
∞ ∞
L nπx L nπx
∑ − nπ bn cos L
+∑ an sin
n=1 n=1 nπ L
Hence
Z x ∞ nπx
Lbn −nπL
( f (t) − a0 ) dt = ∑ nπ cos − cos
−L n=1 L L
∞
L nπx
+∑ an sin
n=1 nπ L
Thus
Z x Z x ∞ Z x nπt
f (t) dt = a0 dt + ∑ bn sin dt
−L −L n=1 −L L
∞ Z x nπt
+ ∑ an cos dt
n=1 −L L
Theorem 33.6.2 Let f be piecewise continuous and 2L periodic. Then for every x ∈
[−L, L] ,
Z x Z x ∞ Z x nπt
f (t) dt = a0 dt + ∑ bn sin dt
−L −L n=1 −L L
∞ Z x nπt
+ ∑ an cos dt
n=1 −L L
Note that there is nothing which says that the Fourier series of f converges to f ! This
is a wonderful result.
You can’t expect to be able to differentiate Fourier series. See the exercises. However,
there is something which can be said. Suppose for x ∈ [−L, L)
Z x
f (x) = f (−L) + f ′ (t) dt
−L
33.6. INTEGRATING AND DIFFERENTIATING FOURIER SERIES 657
and that f ′ is piecewise continuous and 2L periodic. Let f denote the 2L periodic extension
of the above f . Then let the formal Fourier series for f ′ be
∞ nπx ∞ nπx
a0 + ∑ an cos + ∑ bn sin
n=1 L n=1 L
Then by Theorem 33.6.2,
Z x Z x ∞
L nπx
f ′ (t) dt = a0 dt + ∑ an sin
−L −L n=1 nπ L
∞
L nπx
+ ∑ bn (−1)n − cos
n=1 nπ L
1 RL ′ 1
Then a0 ≡ 2L −L f (t) dt ( f (L) − f (−L)) = 0.
= 2L
1 L nπt 1 nπt
Z
an ≡ f ′ (t) cos dt = f (t) cos |L−L
L −L L L L
1 nπ L nπt
Z
+ f (t) sin dt
L L −L L
1 nπ L nπt nπ
Z
= f (t) sin dt = Bn
L L −L L L
where Bn is the Fourier coefficient for f (t) . Similarly,
1 L ′ nπt 1 nπ L nπt nπ
Z Z
bn = f (t) sin dt = − f (t) cos dt = − An
L −L L L L −L L L
where An is the nth cosine Fourier coefficient for f . Thus
Z x ∞
nπ L nπx
f ′ (t) dt = ∑ Bn sin
−L n=1 L nπ L
∞ nπ L nπx
+ ∑ − An (−1)n − cos
n=1 L nπ L
∞ nπx ∞ nπx ∞
f (x) − f (−L) = ∑ Bn sin + ∑ An cos − ∑ An (−1)n
n=1 L n=1 L n=1
!
∞ nπx ∞ nπx ∞
n
f (x) = ∑ Bn sin + ∑ An cos + f (−L) − ∑ An (−1)
n=1 L n=1 L n=1
Thus that constant on the end is A0 . It follows that
∞ nπx ∞ nπx
f (x) = A0 + ∑ Bn sin + ∑ An cos
n=1 L n=1 L
and − nπ nπ
L An = bn , Bn L = an and so
∞ nπx ∞ nπx
f ′ (x) = ∑ an cos + ∑ bn sin
n=1 L n=1 L
∞ ∞
nπ nπx nπ nπx
= ∑ Bn cos + ∑ An − sin
n=1 L L n=1 L L
∞ ∞
d nπx d nπx
= ∑ Bn sin + ∑ An cos
n=1 dx L n=1 dx L
658 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
Theorem 33.6.3 Let f denote the 2L periodic extension of the function f given on [−L, L)
by Z x
f (x) = f (−L) + f ′ (t) dt
−L
and suppose f ′ is 2L periodic and piecewise continuous. Then for each x ∈ [−L, L] ,
∞ nπx ∞ nπx
f (x) = A0 + ∑ Bn sin + ∑ An cos
n=1 L n=1 L
where the Ak , Bk are the Fourier coefficients of f and the Fourier series for f ′ is
∞ nπx ∞
d d nπx
∑ Bn sin + ∑ An cos
n=1 dx L n=1 dx L
−L L
−L L
The first of these is an even extension to [−L, L] and the second is an odd extension
to [−L, L]. In the first case where there is an even extension, the Fourier coefficients are
bk = 0
1 L 1 L
Z Z
a0 = f (x) dx = f (x) dx
2L −L L 0
1 L 2 L
kπx kπx
Z Z
ak = f (x) cos dx = f (x) cos dx
L −L L L 0 L
In the second case where you are dealing with the odd extension, each ak = 0 and
1 L 2 L
kπx kπx
Z Z
bk = f (x) sin dx = f (x) sin dx
L −L L L 0 L
Example 33.7.1 Let f (x) = x on [0, 1] . Find the Fourier series of its even extension.
33.8. EXERCISES 659
Its even extension is nothing more than the function of Example 33.5.4. This is
∞
1 4
−∑ cos (2k − 1) πx
2 k=1 π 2 (2k − 1)2
Example 33.7.2 Let f (x) = x on [0, 1] . Find the Fourier series of its odd extension which
is periodic of period 2.
1
0
-1
-2 0 2
Note the difficulty in handling the jump with the little bump right before the disconti-
nuity. This illustrates that if you are only interested in the function on [0, 1] , it would be
better to use the even extension than the odd extension. However, in the applications, you
don’t get to choose.
Also, note that, unlike power series, Fourier series are attempting to approximate a
function on a whole interval, not just near a single point. This is much more interesting.
There is a general sort of problem called a Sturm-Liouville problem discussed in Prob-
lem 13. It turns out that there are general theorems about convergence of expansions in
terms of eigenfunctions to such problems [38]. However, you can often see that conver-
gence in the mean square sense will hold from observing that the Fourier series for the
eigenfunctions will converge because it is the restriction of the Fourier series of an even
or odd extension as discussed in this section. For many other considerations on Sturm-
Liouville problems, the old book by Ince [23] is very good. These problems have been
intensively studied since around 1830.
33.8 Exercises
1. Let f (x) be the even extension of sin x. Find the Fourier series and at x = π/2 write a
series which says that the Fourier series converges to the function at this point. Note
that here L = π and so nπ/L = n.
2. Let f (x) be the odd 2π periodic extension of y = x2 . Find what the sum converges to
at x = π/2. Again L = π and so nπ/L = π.
660 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
3. Let f (x) be the even 2π periodic extension of y = x2 . Find the Fourier coefficients
and obtain an interesting series by letting x = π.
4. In Example 33.5.5 the Fourier series was found for the function f which is 1 on [0, 2]
and −1 on (−2, 0).
∞
4 (2k − 1) πx
∑ sin
k=1 π (2k − 1) 2
This function has a jump so it is not differentiable at 0,2,4, etc. However, it is dif-
ferentiable at most points, other than a few jumps. Furthermore, the Fourier series
converges to the function at these points. Can you differentiate the Fourier series
term by term and get something which converges to the derivative of the function?
What does this show about interchange of limits?
5. In one of the problems above, you found that the Fourier series for the 2π periodic
2 k
(−1)
extension of y = x2 is π3 + ∑∞
k=1 4 k2 cos (kx) . The derivative of this function, y =
2x is sure piecewise continuous. Find the Fourier series expansion for y = 2x without
any effort.
π2
Z x
1 1
t2 − dt = x3 − π 2 x.
−π 3 3 3
7. Suppose f is periodic with period 2L. Does it follow that f ′ is also periodic of period
2L? Explain.
8. Here are some boundary value problems. Find nonzero solutions if there are any or
determine that there are none.
2
(a) y′′ + 14 π 2 y = 0, (e) y′′ + 12 π y = 0,
y (0) = 0, y (2) = 0 y (0) = 0, y (1) = 0
2
(b) y′′ + 7π 5 y = 0, (f) y′′ + π 2 y = 0,
y (0) = 0, y 52 = 0
y (0) = 0, y (1) = 0
2 2
(c) y′′ + 5π 3 y = 0, (g) y′′ + 4π 2 y = 0,
y (0) = 0, y 32 = 0 y (0) = 0, y 22 = 0
2
(d) y′′ + 2π 7 y = 0, (h) y′′ + 25
9 2
π y = 0,
y (0) = 0, y 72 = 0 y (0) = 0, y 52 = 0
9. Here are some boundary value problems. Find nonzero solutions if there are any or
determine that there are none.
2 2
(a) y′′ + 11π
2 y = 0, (c) y′′ + 2π
7 y = 0,
′
y (0) = 0, y 22 = 0 ′
y (0) = 0, y 72 = 0
2 2
(b) y′′ + 4π
5 y = 0, (d) y′′ + 7π
3 y = 0,
y (0) = 0, y′ 25 = 0 y (0) = 0, y′ 32 = 0
33.8. EXERCISES 661
π 2 y (0) = 0, y′ 25 = 0
(e) y′′ + 13
y = 0,
y (0) = 0, y′ 13
2 =0
2
(g) y′′ + 5π
11 y = 0,
2
(f) y′′ + 2π ′
y (0) = 0, y 11
5 y = 0, 2 =0
10. In boundary value problems like the above, why is it that there is either no nonzero
solution or infinitely many?
11. In the study of buckling beams, you have an equation
y(4) (x) + λ y′′ (x) = 0, x ∈ [0, L]
along with boundary conditions like
y (0) = y′ (0) = 0, clamped at left end
y (L) = 0 = y′′ (L) , hinged at right end
where λ increases with the axial force and depends on geometrical and physical
properties of the beam. The idea is to find values of λ for which there is a nonzero
solution to the differential equation and the boundary conditions. Assume all bound-
ary conditions considered have y (0) = y (L) = 0 and at each end, either y′ or y′′ is
equal to 0. Thus one considers beams for which each end is either clamped or hinged.
Show that if λ is such that there exists a nonzero solution, then λ > 0. Hint: You
show this by multiplying the equation by y and integrating by parts.
12. Letting λ = δ 2 , in the above problem, show that there exist infinitely many values
for δ and corresponding nonzero solutions to the boundary value problem for the
following situation.
13. A Sturm-Liouville problem involves the differential equation for an unknown func-
tion of x which is denoted here by y,
′
p (x) y′ (x) + (λ q (x) + r (x)) y = 0, x ∈ [a, b]
and it is assumed that p (t) , q (t) ≥ 0 and are nonzero except for finitely many points
in [a, b] for any t along with boundary conditions,
C1 y (a) +C2 y′ (a) = 0
C3 y (b) +C4 y′ (b) = 0
where
C12 +C22 > 0, and C32 +C42 > 0.
There is an immense theory connected to these important problems. The constant λ
is called an eigenvalue. Show that if y is a solution to the above problem correspond-
ing toλ = λ 1 and if z is a solution corresponding to λ = λ 2 ̸= λ 1 , then
Z b
q (x) y (x) z (x) dx = 0. (33.11)
a
662 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
and then integrate. Use the boundary conditions to show that y′ (a) z (a)−z′ (a) y (a) =
0 and y′ (b) z (b) − z′ (b) y (b) = 0. The formula 33.11 is called an orthogonality rela-
tion and it makes possible an expansion in terms of certain functions called eigen-
functions.
14. Here is a really nice result. Suppose you have y, z are both solutions of the differential
equation ′
p (x) y′ (x) + q (x) y (x) = 0
Show that p (x)W (y, z) (x) = C a constant. Here W (y, z) is the Wronskian.
(x)′
15. In the above problem, change the variables as follows. Let z (x) = p (x) yy(x) and
determine the equation which results for z. This kind of equation is called a Riccati
equation. In particular, show that
1 2
z′ + z + q (x) = 0
p (x)
This kind of equation is like a Bernouli equation with exponent 2, but with another
function added in. For more on this, see [29].
16. Suppose in the equation of Problem 14 you have two solutions u, v whose Wronskian
is nonzero so they are independent solutions. Suppose that a, b are consecutive zeros
of u and that p (x) > 0 on [a, b]. Show that v has exactly one zero in (a, b). This is
called the Sturm separation theorem. Hint: Use the result of the above mentioned
problem and argue that v (a) ̸= 0 and that you can assume that v (a) > 0 and that u is
positive on the open interval (a, b).
17. Letting [a, b] = [−π, π] , consider an example of a Sturm-Liouville problem which is
of the form
y′′ + λ y = 0, y (−π) = 0, y (π) = 0.
Show that if λ = n2 and yn (x) = sin (nx) for n a positive integer, then yn is a solution
to this regular Sturm-Liouville problem. In this case, q (x) = 1 and so from Problem
13, it must be the case that
Z π
sin (nx) sin (mx) dx = 0
−π
if n ̸= m. Show directly using integration by parts that the above equation is true.
33.8. EXERCISES 663
not both Ci equal zero and y bounded near 0. Discover an orthogonality relation
between this solution and one for which λ is changed to µ. Hint: You might divide
by x.
19. Let x → Jn (x) be a solution to the Bessel equation
x2 y′′ + xy′ + x2 − n2 y = 0
and suppose α is a positive number. Let z (x) ≡ Jn (αx). Find a differential equation
satisfied by z. You should show that it satisfies x2 z′′ + xz + α 2 x2 − n2 z = 0.
20. Let α, β be two zeros of the Bessel function Jn (x). It was shown in Proposition
32.6.1 on Page 629 that there are infinitely
many of these zeros. Now consider the
two functions x → Jn αL x , x → Jn βL x . Show that
Z L α β
Jn x Jn x xdx = 0
0 L L
21. Consider
x2 y′′ + xy′ + δ 2 x2 − n2 y = 0, y (L) = 0, y bounded near 0
Show that there are only certain values of δ which work and they are of the form
δ 2 = (α/L)2 where α is some zero of a solution to Bessel’s equation.
22. Show that the only eigenvalues λ for
are positive.
23. Recall that for n an integer, the general solution to Bessel’s equation is C1 Jn (x) +
C2Yn (x) where Yn is unbounded at 0. Using the above problem, characterize all
eigenvalues λ of the eigenvalue problem
and describe all solutions to this boundary value problem in terms of Bessel func-
√
tions. Hint: Rule out Yn to begin with. Then consider z λ x = y (x) for y a
solution to the above Sturm-Liouville equation.
24. A Sturm-Liouville eigenvalue problem involves the equation
′
p (x) y′ (x) + (λ q (x) + r (x)) y = 0, x ∈ (a, b)
Then determine the equation solved by z. Hint: This is a little involved. First verify
that the left side reduces to
r
d d −1/4
1/4 dz q
p (pq) z + (pq) + (λ q + r) (pq)−1/4 z = 0
dt dx dt p
Next verify that the z′ (t) terms all cancel. That way, in the above, you can neglect
these terms in using the product rule. This leads to
!
d 1 −1/4 −5/4 d −1/4
− p q (pq) r (pq)
dx 4 dx + −1/4 3/4 z + z′′ + λ z = 0
p−1/4 q3/4 p q
z′′ + (λ + m (t)) z = 0
n2
′
xy′ + λ x − y=0
x
Thus in this case, q (x) = x and r (x) = −n2 /x. What is the form of the equation if Li-
ouville’s transformation is applied to this Bessel eigenvalue problem? Hint: Just use
the specific description of what was obtained above and that r (x) = −n2 /x, p (x) =
q (x) = x, and so t = x. You should get something like
1 − 4n2
′′
z +λz+ z=0
4x2
26. In the above problem, let λ = 1 and let n = 1/2 and use to find the general solution
to the Bessel equation in which ν = 1/2. Show, using the above, that this general
solution is of the form
C1 x−1/2 cos x +C2 x−1/2 sin x.
out of all polynomials p of degree n is the nth partial sum of the Fourier series
taken with respect to the Legendre polynomials q (x) = Sn f (x) , where Sn f (x) ≡
R1
∑nk=0 ck pk (x) , ck = −1 qk (x) f (x) dx .
33.8. EXERCISES 665
29. Show that if f is any continous function on [−1, 1] , then the Fourier series in terms
of Legendre polynomials converges R1
to f in the mean square sense. This means that
for Sn f (x) ≡ ∑nk=0 ck pk (x) , ck = −1 qk (x) f (x) dx, it follows that
Z 1
lim | f (x) − Sn f (x)|2 dx = 0
n→∞ −1
30. It can be shown that there are no continuous, nonzero solutions to Legendre’s equa-
tion ′
1 − x2 y′ + λ y = 0
defined on [−1, 1] unless λ = n (n + 1) for n an integer. Use the above problem to
show this.
31. One of the applications of Fourier series is to obtain solutions to linear differential
equations which have a periodic right side. This is done by expanding the right side
which is a forcing function in a Fourier series, solving the simple equation which
corresponds to each term and then adding these solutions to obtain what is hoped
to be a representation of the solution. Find a particular solution for each of the
following. Let
y′′ + 3y = f (t) ,
where f (t) is the step function which is periodic of period 2 and equals −1 on
[−1, 0) and 1 on (0, 1]. Here are the steps. First find a Fourier series for f . Say
∑∞n=1 bn sin (nπx) . Then let yn be the solution to
and then hopefully, on neglecting mathematical issues, the solution to the original
problem is
∞
y (t) = ∑ bn yn (t)
n=1
32. Explain why the above procedure should give a particular solution if mathematical
issues related to interchange of limit operations are ignored.
666 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
33. This problem is tedious but maybe it is better to do it all at once than to repeat
seemingly endless virtually identical problems. In this problem, a is positive and b is
a nonzero real number while n is a nonnegative integer. Find the real and imaginary
parts of a solution y to nπt
y′′ + 2ay′ + by = exp i
L
using the method of undetermined coefficients. Show that the real part is
L4 b2 + 4π 2 L2 a2 n2 − 2π 2 L2 bn2 + π 4 n4
Explain why the real part is a particular solution to
nπt
y′′ + 2ay′ + by = cos
L
and the imaginary part is a particular solution to
nπt
y′′ + 2ay′ + by = sin
L
In case n is 0, a solution is 1/b.
34. Using the above problem, describe the solution after a long time to the equation
where f (t) is a periodic function which has the following Fourier series. Note that
the transient terms will disappear due to the fact that a = 1 is positive. Note that
with the above problem, you could do many other examples in which a and b are not
given as here.
1 nπt 1 nπt
(a) ∑∞ ∞
n=1 n2 cos 3 + ∑n=1 1+n2 sin 3 + 3
−n nπt 1 nπt
(b) ∑∞ ∞
n=1 e cos 2 + ∑n=1 n4 sin 2 + 1
1 nπt 1 nπt
(c) ∑∞ ∞
n=1 n3 cos 4 + ∑n=1 n3 +1 sin 4 − 2
y′′ + 4y = f (t)
where f is periodic. Suppose in the Fourier expansion of f (t) there is a nonzero term
which is of the form b sin (2t) . Say it describes the transverse vibrations of a bridge
in the center. What will likely happen to this bridge?
33.8. EXERCISES 667
36. Consider the functions yn (x) = sin (nπx) on the interval [0, 2] . Show that these func-
tions satisfy 02 yn (x) ym (x) dx is 1 if n = m and zero if n ̸= m. Now consider using
R
them to expand the function f (x) = x in a Fourier series. Thus you would have
∞
∑ bn sin (nπx)
n=1
where Z 2
bn = x sin (nπx) dx
0
Graph the sum of the first seven terms in this Fourier series expansion along with
the function it is supposedly approximating. What does this tell you about being
able to approximate with orthogonal
functions? Now do the same problem with the
orthonormal functions sin n π2 x .
37. Recall that a sequence of functions defined on [a, b] { fn } converges to f in the mean
square sense if
Z b
lim | fn (x) − f (x)|2 dx = 0
n→∞ a
√
consider the function fn (x) for x ∈ [0, 1] defined as follows. fn (x) = n on (0, 1/n)
and fn (x) = 0 for x not on this interval. Show that limn→∞ fn (x) = 0 for each x
but
fn fails to converge to 0 in the mean square sense. Now let fn (x) = 1 for x ∈
1, 1/2, 1/22 , · · · , 1/2n but it equals zero at all other points. Show that fn converges
to 0 in the mean square sense but not at every point.
38. Using Example 33.5.5 and the convergence theorem for Fourier series, explain why
∞
4 (2k − 1) πα
1= ∑ sin for all α ∈ (0, 2) .
k=1 π (2k − 1) 2
668 CHAPTER 33. BOUNDARY VALUE PROBLEMS, FOURIER SERIES
Chapter 34
where g (x) was the determinant of the metric tensor. Using this, it was shown earlier that
the Laplacian in spherical coordinates can be obtained.
1 ∂ ∂f ∂ ρ sin φ ∂ f ∂ ρ ∂f
∆f = 2
ρ 2 sin φ + +
ρ sin φ
∂ρ ∂ρ ∂φ ρ ∂φ ∂ θ ρ sin φ ∂ θ
∂2 f
1 ∂ ∂f 1 ∂ ∂f 1
= 2 ρ2 + 2 sin (φ ) + 2 2
ρ ∂ρ ∂ρ ρ sin φ ∂ φ ∂φ ρ sin φ ∂ θ 2
Using the same machinery, one can obtain the Laplacian in sylindrical coordinates.
x = r cos θ
y = r sin θ
z=z
1 ∂2 f
1 ∂ ∂f ∂ 1∂f 1 ∂ ∂f
∆f = r + = r + 2
r ∂r ∂r ∂θ r ∂θ r ∂r ∂r r ∂θ2
669
670 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
J = −k∇u
So what is the “heat flux”? Hopefully, you saw flux integrals in calculus but here is a short
review. If you have a surface S and a field of unit normals on S denoted as n, then the rate
at which the heat crosses S in the direction of n is
Z
J · ndS
S
where this is an integral over the surface. Now consider a ball B with boundary S in a heat
conducting material. Then the heat in B is given by
Z
ρcudV
B
where ρ is the density and c the specific heat. Then if no heat is being produced by some
chemical reaction for example, it follows that the time rate of change of the total heat in B
is equal to the rate at which heat flows into B. Thus
Z
d
Z
ρcudV = − J · ndS
dt B S
where n is the outer normal from B. This is why there is a minus sign on the right. You
want the rate at which heat enters B. Then from the divergence theorem,
Z
d
Z
ρcudV = − ∇ · J dV
dt B B
The integral is a sort of a sum, here over the spacial variables and so it makes sense to
formally take the time derivative into the integral1 and write, using the Fourier law of heat
conduction
∂ (ρcu)
Z Z
dV = ∇ · (k∇u) dV
B ∂t B
This must hold for any ball B and so the only way this could take place is to have
∂ (ρcu)
= ∇ · (k∇u)
∂t
We now let k, c, ρ all be constants and obtain
∂u k
= ∆u
∂t ρc
Of course these things are typically not constant, especially k but if we don’t assume this,
we can’t solve the equation.
1 This is horrible mathematics because it exchanges two limit operations. However, when modeling, one
ut = α 2 uxx
and this is the equation in what follows. There are other issues besides the equation to
consider.
You have a rod of length L. The heat equation for the temperature u in the rod is
ut = α 2 uxx
In addition to this, there are boundary conditions given on u at the ends of the rod. For
example, you could have
u (0,t) = u (L,t) = 0
and there is also an initial temperature given
u (x, 0) = f (x)
Then the idea is to find the unknown function u (t, x) . Here t is time and x is the coordinate
of a point on the rod. The constant α 2 varies from material to material. It is different for
iron than for aluminum for example. Here you have x ∈ [0, L] and t > 0.
This is a rectangular shape and so it is reasonable to look for a nonzero solution to the
above partial differential equation and boundary condition in the form
Then
a ′ (t) b (x) = α 2 a (t) b ′′ (x)
One can separate the variables as follows.
a′ (t) b′′ (x)
2
= (34.1)
α a (t) b (x)
Both sides must equal to some constant c since otherwise they could not be equal. One way
to see this is to differentiate both sides with respect to t. Then
a (t) ′
′
a′ (t)
2
= 0 and so 2 = c,
α a (t) α a (t)
a constant. Consider the side involving x.
Of course you can’t have b (x) = 0 since if it were 0, you would have u (x,t) = 0. Therefore,
2 2
from Example 33.2.1, −c = nLπ2 where n is a positive integer and
nπx
b (x) = sin
L
Of course there is such a function for each n a positive integer. Having picked such a
positive integer, 34.1 now forces a (t) to satisfy the equation
n2 π 2 α 2
a′ (t) + a (t) = 0
L2
672 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
Therefore,
2 2 2
− n π 2α t
a (t) = an e L
It follows that for each n, there exists a solution to the partial differential equation along
with the boundary conditions which is of the form
2 2 2 nπx
−n π α t
un (x,t) = an e L2 sin
L
Now if you have solutions to the differential equation along with the boundary condition
and you add them together, you have another solution to these things. Therefore, it is not
unreasonable to hope that this would also be true for an infinite sum of such solutions.
Therefore, we look for a solution to the partial differential equation which is of the form
∞ 2 2 2 nπx
−n π α t
u (x,t) = ∑ an e L2 sin
n=1 L
At least formally, such a thing would solve everything but the initial condition. Now you
choose an in such a way that when t = 0,
∞ nπx
f (x) = ∑ an sin
n=1 L
3. Choose bn (t) to satisfy the equation b′n (t) = −λ 2n bn (t) in order that the terms of the
sum satisfy the partial differential equation. Thus
bn (t) = bn exp −tλ 2n
Example 34.2.2 Find the solution to the initial boundary value problem
where (
x if x ∈ [0, 1]
f (x) =
1 − x if x ∈ [1, 2]
kπx
the eigenfunctions being sin 2 , and to satisfy the initial condition, you need
2 2 kπx
Z
2
ak = 1 − (1 − x) sin dx
2 0 2
674 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
The next example has to do with the same equation but with one end insulated and
the other held at a temperature of 0. The physical modeling of this equation shows that to
consider an insulated boundary, say at L, you let ux (L,t) = 0.
where bn is an appropriate Fourier coefficient chosen to satisfy the initial condition. Thus
2 2
(2n − 1) πx
Z
bn = sin 1 − (1 − x)2 dx
2 0 4
32
= (2 (−1)n πn − (−1)n π + 4)
π 3 (2n − 1)3
34.2. HEAT AND WAVE EQUATIONS 675
0.5
0
0 5 1 2
10 0
34.2.2 The Wave Equation
The next example is of a different sort of equation, the wave equation. This equation is of
the form
utt = c2 uxx
It models the transverse displacements of a vibrating string. Here is a picture to discuss
why this is an appropriate equation. It is important to note that it is a string, not a beam.
This means that it cannot support itself in the sense that there is no internal stiffness. It is
also very important to note that the transverse displacements are assumed to be very small.
Thus the picture drawn below is blown up in the vertical direction.
T
θ
α
T x x + ∆x
Let ρ be the length density of this string which is assumed constant. This means that
the mass of the segment of string shown is just ρ (length of the segment of string) . Since
the transverse displacements are very small, this is essentially ρ∆x. The force acting on
the segment of string shown is T sin θ − T sin α, where T is the magnitude of the vector
T . We assume also that the magnitude of the tension in the string is also a constant due to
the assumption that the displacements are small. Let u (t, x) denote the vertical displace-
ment from horizontal. For ∆x small enough, the acceleration utt (t, x) should be essentially
constant on the interval [x, x + ∆x]. Then by Newton’s second law,
ρ∆xutt (t, x) = T (sin θ − sin α)
676 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
Since the displacement is very small, we can assume that there is really no difference in
replacing sin θ , sin α with tan θ , tan α respectively. But tan θ is just the slope of the tangent
line at (t, x + ∆x). Thus
Example 34.2.4 Find the solution to the initial boundary value problem
Now you need to find an and bn to get the initial conditions. Letting t = 0, you need to have
∞ nπx
1 − (1 − x)2 = ∑ an sin
n=1 2
Of course this operation is complete garbage because it involves the interchange of limit
operations without any justification. However, we do it anyway. In fact it is all right. You
can do the formal manipulations and then you can rigorously verify that what you end up
with really is a solution to the problem in some sense. Now plug in t = 0. Then you need
∞ nπ mπx
0= ∑ α 2 sin 2
b n
n=0
Note that from calculus, the series makes perfect sense because in fact, it converges
absolutely.
where (
1 − (x − 2)2 on [1, 3]
f (x) =
0 on the rest of [0, 4]
-1
0
5 4
10 0 2
and it is assumed that one can obtain a valid Fourier series expansion in terms of these
eigenfunctions of all the functions of interest. Note how, for the sake of simplicity, it is
assumed that Z L
y2n (x) dx = 1
0
You multiply by an appropriate constant to make it this way. Thus, if the eigenfunctions
are multiples of sin nπ
L x , you choose the multiple to satisfy the above equation. Let
∞
f (x,t) = ∑ fn (t) yn (x)
n=0
where bn (0) needs to be chosen to satisfy the initial condition. Thus it is required that
Z L
bn (0) = g (u) yn (u) du
0
In what was done earlier, yn was typically something like (2/L)1/2 sin nπx
L . Then the
solution is
∞ Z L Zt
u (x,t) = ∑ e−aλ n t g (u) yn (u) du + e−aλ n (t−s) fn (s) ds yn (x)
n=0 0 0
2
You must have λ strictly positive. The eigenvalues are λ = nπ 2 , and the eigenfunctions
are sin nπx
2 . Also, there is a Fourier series expansion for f (x,t) as follows.
∞ nπx
f (x,t) = ∑ fn (t) sin
n=1 2
where Z 2
2 nπx
fn (t) = f (x,t) sin dx
2 0 2
Thus Z 2 nπx 1 n+1
fn (t) = (xt) sin dx = 4πnt (−1)
0 2 π 2 n2
Now the solution is
nπ 2 R
e−( 2 ) t L nπu
∞
0 u sin 2 du + nπx
u (x,t) = ∑ R t −( nπ )2 (t−s) 1 sin
n=0 e 2 4πns (−1)n+1 ds 2
0 π 2 n2
Once you know how to solve this kind of problem, it becomes routine, if long, to find
solutions to problems like this.
In this case, you massage the problem to get one which is like one you do know how to
do which involves zero boundary conditions. Let
x
w (x,t) = u (x,t) − g (t)
L
then
x x x
wt = ut − g′ (t) = uxx + f − g′ (t) = wxx + f (x,t) − g′ (t)
L L L
w (0,t) = u (0,t) = 0, w (L,t) = u (L,t) − g (t) = 0
x x
w (x, 0) = u (x, 0) − g (0) = h (x) − g (0)
L L
and now you solve for w using the above procedure. There are seemingly endless variations
of this but all amount to the following.
ut = Au + f
You let w = u−k (x,t) where k is a known function chosen such that the boundary conditions
on w involve w or its partial x derivatives set equal to 0. Then adjust to consider the
equation solved for w which is of the form
wt = Aw + fˆ
Ayn = −λ 2n yn
where
b′n (t) = −λ 2n bn (t) + fn (t)
and bn (0) is an appropriate Fourier coefficient chosen to satisfy the initial condition. Find
w and then u (x,t) = w (x,t) + k (x,t).
In case the problem is second order in time, you do something similar except that the
differential equation for bn will now be second order in time and you will need to adjust
both bn (0) and b′n (0) to achieve appropriate initial conditions.
Initially the string is at rest and then something starts moving the right side up and
down. What happens?
Following the procedure, let
x
w (x,t) = u (x,t) − sin (t)
L
this works because w has zero boundary conditions. Then
x x x
wtt = utt + sint = uxx + sint = wxx + sint
L L L
w (0,t) = w (L,t) = 0
x
w (x, 0) = 0, wt (x, 0) = − cos (t)
L
682 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
nπ
The eigenfunctions are sin . Then the expansion for (x/L) sin (t) is
L x
∞ Z L nπ nπ
2 x
∑ sint sin x dx sin x
n=1 L 0 L L L
!
∞
(−1)n+1 nπ
= ∑ 2 sin (t) sin x
n=1 πn L
Now
∞
π ′ n+1 2 cost nπ
wt (x,t) = ∑ cos nt bn (0) + 2 (−1) L sin x
n=1 L π 3 n3 − πL2 n L
and so
(−1)n 2 (−1)n+1 L2 n
b′n (0) = 2 − 3 3 = 2 (−1)n π 2 2
πn π n − πL2 n π n − L2
Thus
sin π nt
!
∞
2 (−1)n L π 2 n2L−L2 nπ
w (x,t) = ∑ sin x
n=1 +2 (−1)n+1 L2 π 3 n3sint
−πL2 n
L
It is understood that the point (x, y) is contained in some region in the plane. One looks
for a solution to the equation which also satisfies boundary conditions on the boundary of
the region. When these conditions involve given values for the function u it is called the
Dirichlet problem. When it involves giving values for the normal derivative of u defined by
∇u · n for n the unit outer normal, it is called a Neuman problem. In this short introduction
this region will be either a circular disk or a rectangle. These are called boundary value
problems.
34.4.1 Rectangles
First consider the rectangle. Here is a typical problem. The boundary conditions are as
shown in the picture, zero on the top bottom and left side and f (y) on the right.
0
(0, b) (a, b)
0 f (y)
(0, 0) 0 (a, 0)
You can solve this the usual way. Look for eigenfunctions. These need to correspond
to the two opposite sides where the boundary condition is 0. Thus the eigenfunctions are
the nonzero solutions to
f ′′ (y) + λ f (y) = 0, f (0) = 0 = f (b)
It follows the eigenfunctions are
nπ
sin y , n = 1, 2, · · ·
b
2
and the eigenvalues are πb2 n2 , n = 1, 2, · · · . Next you need to find some g (x) such that
g (x) sin nπ
b y solves the boundary conditions and the equation. The boundary conditions
are automatic. Now consider the equation. You need
π2 2 π
nπ
′′
g (x) sin y + g (x) − 2 n sin ny =0
b b b
684 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
Now it turns out that in this application, it is much more convenient to write the general
solution as nπ nπ
an cosh x + bn sinh x
b b
This gives the same general solution. The above functions are linear combinations of the
known solutions and so things in the above form are solutions. Furthermore, the ratio of
the two solutions is not constant so their Wronskian does not vanish. Hence it is the general
solution. Now you try and get the solution to the boundary value problem in the form
∞ nπ nπ nπ
u (x, y) = ∑ an cosh x + bn sinh x sin y
n=1 b b b
nπ
when x = 0, you get ∑∞
n=1 an sin b y = 0 and so each an = 0. When x = a, you need
∞ nπ nπ
f (y) = ∑ bn sinh a sin y
n=1 b b
This shows how to solve a more general problem in which you have functions given on
the edges. You solve the problem for the situation in which there is something nonzero on
exactly one edge with 0 on the others and then you add these solutions together.
uxx + uyy = 0
where the boundary conditions and rectangle are as expressed in the following picture.
1 − (x − 1)2
(0, 1) (2, 1)
0
sin(πy)
(0, 0) 0 (2, 0)
34.4. LAPLACE EQUATION 685
First find the solution which has sin y on the right and zero on the other edges. This was
done in the above. It is
∞
u1 (x, y) = ∑ bn sinh (nπx) sin (nπy)
n=1
nπ sin 1 (−1)n
Z 1
2 2
bn = sin (t) sin (nπt) dt =
sinh (nπa) 0 sinh nπa n2 π 2 − 1
Next find the solution to the equation which has 1 − (x − 1)2 on the top and zero on the
other sides. This is just like what was done earlier except that you would switch a and b.
You find the eigenfunctions for the two opposite zero boundary conditions. These are
nπ
sin x , n = 1, 2, · · ·
2
n2 π 2
with eigenvalues 4 . Next you look for solutions to the equation which involve
nπ
a (y) sin x
2
Thus
π2 2
nπ
′′ π
a (y) sin x + a (y) − n sin nx = 0
2 4 2
Hence
π2 2
a′′ (y) −
n a (y) = 0
4
and so nπ nπ
a (y) = an cosh y + bn sinh y
2 2
Then the general solution is
∞ nπ nπ nπ
u2 (x, y) = ∑ an cosh y + bn sinh y sin x
n=1 2 2 2
When y = 0, you are supposed to get 0 for the boundary condition. Hence an = 0. When
y = b you need
∞ nπ nπ
1 − (1 − x)2 = ∑ bn sinh sin x
n=1 2 2
Therefore, you need
2 − 2 (−1)n
nπ Z 2 nπ
bn sinh = 1 − (1 − s)2 sin s ds = 8
2 0 2 n3 π 3
686 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
∞
32 1 (2n − 1) πy (2n − 1) π
= ∑ (2n − 1)3 π 3 sinh sin x
n=1 sinh (2n−1)π 2 2
2
Therefore, the solution to the boundary value problem is the sum of these two solutions.
∞
2 nπ sin 1 (−1)n
u (x, y) = ∑ sinh nπa sinh (nπx) sin (nπy) +
n=1 n2 π 2 − 1
∞
32 (2n − 1) πy
1 (2n − 1) π
∑ 3 3
sinh sin x
n=1 (2n − 1) π sinh
(2n−1)π 2 2
2
You can probably see how to consider given functions in place of 0 on the remaining
two sides.
x = r cos θ
y = r sin θ (34.2)
You have a scalar field u and it is a function of a point in two dimensional space. This
point can be described in terms of either polar coordinates or rectangular coordinates. Thus
u (x, y) = u (r, θ )
there (x, y) and (r, θ ) pertain to the same point in two dimensions. As discussed above in
Section 34.1, the Laplacian in polar coordinates is
1 ∂ 2u
1 1 1 ∂ ∂u
urr + ur + 2 uθ θ = r + 2
r r r ∂r ∂r r ∂θ2
u (R, θ ) = f (θ )
where f (0) = f (2π) . This last condition is necessary because θ = 0 and θ = 2π corre-
spond to the same point on the boundary of this disk. Note how everything is in terms of the
variables r, θ and that in terms of these variables, the circular disk is actually a rectangle.
Use the method of separation of variables. Look for a solution to the equation which is
of the form R (r) Θ (θ ) .
R′′ R′ Θ′′
r2 +r + =0
R R Θ
Hence
Θ′′ R′′ R′
= −λ = r2 + r
Θ R R
for some constant λ . First consider Θ. You must have Θ (0) = Θ (2π) . Also
Θ′′ + λ Θ = 0
The boundary terms disappear because you must also have Θ′ (2π) = Θ′ (0). Therefore,
to have a solution, it is necessary that λ ≥ 0. If λ = 0, you need to have Θ′ = 0 and
so Θ (θ ) = C a constant. Otherwise, you need λ = µ 2 , µ > 0. Then the solution to the
equation is
C1 cos µθ +C2 sin µθ
and you need to have Θ (0) = Θ (2π). Therefore, it is required that µ2π is an integer
multiple of 2π so µ = n for n an integer. Thus the eigenvalues are the nonnegative integers
and you get
Θn (θ ) = (an cos (nθ ) + bn sin (nθ )) , n = 0, 1, 2, · · ·
It follows that for each of these n,
r2 R′′n + rR′n − n2 Rn = 0
This is an Euler equation and you look for solutions in the form R (r) = rα . Then to
find α, you insert this into the equation.
r2 α (α − 1) rα−2 + rαrα−1 − n2 rα = 0
α (α − 1) + α − n2 = (α − n) (α + n) = 0
688 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
cn rn + dn r−n
We can immediately conclude that dn = 0 because it makes no sense to have the solution to
the differential equation be unbounded as r → 0. Recall the theorem from calculus that on a
closed and bounded set, a continuous function achieves its maximum and minimum. If u is
going to be continuous, which we certainly expect it to be, then this cannot be harmonized
with dn ̸= 0. Thus this has found many solutions to the partial differential equation which
are of the form
rn (an cos (nθ ) + bn sin (nθ ))
The solution to the equation will then be an infinite sum of the functions of the above
form. Thus combining the cn with an and bn ,
∞
u (r, θ ) = ∑ rn (an cos (nθ ) + bn sin (nθ ))
n=0
If you want to achieve the boundary condition, then you need to have Rn an =
Z 2π Z 2π Z 2π
1 1 1
cos (nθ ) f (θ ) dθ , a0 = f (θ ) dθ , Rn bn = sin (nθ ) f (θ ) dθ
π 0 2π 0 π 0
If you like, you can simplify this and write an interesting formula for the solution to
this problem.
1 2π
Z
u (r, θ ) = f (θ ) dθ +
2π 0
1 ∞ rn
Z 2π Z 2π
∑ Rn cos (nα) f (α) dα cos (nθ ) + sin (nα) f (α) dα sin (nθ )
π n=1 0 0
1 ∞ rn
Z 2π Z 2π
1
= f (α) dα + ∑ Rn f (α) cos (n (θ − α)) dα
2π 0 π n=1 0
In fact, it can be proved that the infinite sum and the integral can be interchanged. This
is thanks to the term (r/R)n which yields absolute convergence. There is no problem if it
were a finite sum and thanks to this term, the tail of the series is negligible. Thus one can
reduce to the finite sum case and make the interchange. Thus the above implies
!
rn
Z 2π ∞
1 1
u (r, θ ) = + ∑ n cos (n (θ − α)) f (α) dα
0 π 2 n=1 R
Thus
R2 − r2
Z 2π
1
u (r, θ ) = f (α) dα
2π 0 R2 − 2 (cos (θ − α)) Rr + r2
Note that this shows that if r = 0 so you are at the center, then
Z 2π
1
u (r, θ ) = f (α) dα
2π 0
so the value at the center is the average of the boundary values. This proves the following
fundamental result.
R2 − r2
Z 2π
1
u (r, θ ) = f (α) dα
2π 0 R2 − 2 (cos (θ − α)) Rr + r2
34.5 Exercises
1. Solve the following initial boundary value problems.
Hint: You might consider defining w = e2t u and see what equation is solved by w.
6. Find the solution to the initial boundary value problem
Determine the appropriate equation for the eigenfunctions and show that there exists
a sequence of strictly positive eigenvalues converging to ∞. Also explain why the
solution u if it exists, must have a limit limt→∞ u (x,t) = w (x) and that this limit
satisfies w (x) = 0.
692 CHAPTER 34. SOME PARTIAL DIFFERENTIAL EQUATIONS
Determine the appropriate equation for the eigenfunctions and show that there exists
a sequence of strictly positive eigenvalues converging to ∞. Also explain why the
solution u if it exists, must have a limit limt→∞ u (x,t) = w (x) and that this limit
satisfies w′′ (x) = w (x) = 0.
20. Consider the following initial boundary value problem,
Determine the appropriate equation for the eigenfunctions and show that there exists
a sequence of strictly positive eigenvalues converging to R∞. Also explain why the
solution u if it exists, must have a limit limt→∞ u (x,t) = 21 02 f (x) dx.
21. Recall that on the circular disk of radius R centered at the origin, denoted here as DR
!
rn
Z 2π ∞
1 1
u (r, θ ) = + ∑ n cos (n (θ − α)) f (α) dα
0 π 2 n=1 R
gave the solution to ∆u = 0 and f (α) a given function on the boundary where f (0) =
f (2π). Show, using the divergence theorem from calculus that there is at most one
smooth solution to this problem. Then explain why
!
rn
Z 2π ∞
1 1
+ ∑ n cos (n (θ − α)) dα = 1
0 π 2 n=1 R
22. Recall that on a simple computation was done which showed that
!
1 1 ∞
rn 1 R2 − r2
+ ∑ n cos (n (θ − α)) =
π 2 n=1 R 2π R2 − 2 (cos (θ − α)) Rr + r2
Therefore,
R2 − r2
Z 2π
1
dα = 1
0 2π R2 − 2 (cos (θ − α)) Rr + r2
Explain why it is also the case that
1 R2 − r 2
≥0
2π R2 − 2 (cos (θ − α)) Rr + r2
1 R2 − r2
lim =0
r→R− 2π R − 2 (cos (θ − α)) Rr + r 2
2
23. The solution to Laplace’s equation on the disk DR which has boundary values f (α)
was derived and it is
R2 − r2
Z 2π
1
u (r, θ ) = f (α) dα
0 2π R2 − 2 (cos (θ − α)) Rr + r2
Show that
lim u (r, θ ) = f (θ )
r→R−
1 ∞ rn
Z 2π Z 2π
1
f (θ ) dθ + ∑ Rn cos (nα) f (α) dα cos (nθ )
2π 0 π n=1 0
2π
Z
+ sin (nα) f (α) dα sin (nθ )
0
Fundamentals of Complex
Analysis
695
Chapter 35
Analytic Functions
This part of the book is on the fundamentals of complex analysis. I will not try to give
theorems in greatest possible generality. My intent is to give a fairly rigorous presentation
of those parts of the subject which have the most interesting applications. I think that
sometimes, when one tries to give the greatest generality and precision, the fundamental
ideas are obscured. These are often very simple ideas and it is too bad when they are lost.
Complex analysis is quite different than real analysis. It is relatively free of pathology and
often has a much more algebraic flavor than real analysis. I am trying to emphasize these
things, many of which are very important in both pure and applied math.
The fundamental theorems of Chapter 13 are going to be needed here.
f (z + h) − f (z)
lim ≡ f ′ (z)
h→0 h
When functions of many variables were encountered earlier, it was necessary to present
this in another way in terms of little o notation or more directly as
|f (x + v) − f (x) − Df (x) v|
lim =0
|v |→0 |v|
We had to do it this way because one cannot divide by a vector. However, in the case where
z ∈ C, no such worry is necessary. The familiar calculus formula can be used because
indeed, you can divide by a nonzero complex number. This leads to the concept of an
analytic function which will be presented in what follows. We will see that these are just
697
698 CHAPTER 35. ANALYTIC FUNCTIONS
like long polynomials. In fact, this is the correct context for the study of power series.
Then from calculus, the next thing considered is the rational functions. The generalization
of this simple concept will be the meromorphic functions. Remarkable things are obtained
from these simple considerations. Surprising applications are available when this theory is
developed. I will demonstrate that these extravagant assertions are abundantly verified.
We will be considering line integrals and it will be assumed that the curves over which
the line integrals are taken are piecewise C1 . Actually, all that is needed is that these
curves have finite length but this is better considered in a book devoted primarily to the
mathematical theory.
x + iy ≡ x − iy
are continuous where f (z) ≡ u (x, y) + iv (x, y) with u and v being called the real and imag-
inary parts of f . The only new thing is that writing an ordered pair (x, y) as x + iy with
the convention i2 = −1 makes C into a field. You should verify that for z, w two complex
numbers, |zw| = |z| |w| . Also z + w = z + w.
Now here is the definition of what it means for a function to be analytic.
f (z + ∆z) − f (z)
lim ≡ f ′ (z)
∆z→0 ∆z
exists and is a continuous function of z ∈ U. For a function having values in C denote by
u (x, y) the real part of f and v (x, y) the imaginary part. Both u and v have real values and
All of the usual methods and formulas for finding the derivative which were discussed
in calculus hold with no change for a function of a complex variable. That is, you have
the product rule, chain rule, and quotient rule with no change. Also the differentiation of
polynomials is the same. The proofs of these theorems are exactly the same as in calculus.
Thus I will use the standard methods with no comment whenever convenient. The new
thing is a relationship between the partial derivatives of the real and imaginary parts known
as the Cauchy Riemann equations.
and all these partial derivatives, ux , uy , vx , vy are continuous on U. (The above equations
are called the Cauchy Riemann equations.)
Proof: First suppose f is analytic. First let ∆z = ih and take the limit of the difference
quotient as h → 0 in the definition. Thus from the definition,
f (z + ih) − f (z)
f ′ (z) ≡ lim
h→0 ih
u (x, y + h) + iv (x, y + h) − (u (x, y) + iv (x, y))
= lim
h→0 ih
1
= lim (uy (x, y) + ivy (x, y)) = −iuy (x, y) + vy (x, y)
h→0 i
f (z + h) − f (z)
f ′ (z) ≡ lim
h→0 h
u (x + h, y) + iv (x + h, y) − (u (x, y) + iv (x, y))
= lim
h→0 h
= ux (x, y) + ivx (x, y) .
ux = vy , vx = −uy (35.1)
and this yields the Cauchy Riemann equations. Since z → f ′ (z) is continuous, it follows
the real and imaginary parts of this function must also be continuous. Thus from the above
formulas for f ′ (z) , it follows from the continuity of z → f ′ (z) all the partial derivatives of
the real and imaginary parts are continuous.
Next suppose the Cauchy Riemann equations hold and these partial derivatives are all
continuous. For ∆z = h + ik,
Dividing by ∆z and taking a limit yields f ′ (z) exists and equals ux (x, y) + ivx (x, y) which
are assumed to be continuous. ■
For functions of a real variable, it is perfectly possible for the derivative to exist and not
be continuous. For example, consider
(
x2 sin 1x if x ̸= 0
f (x) ≡
0 if x = 0
You can verify that f ′ (x) exists for all x but at 0 this derivative is not continuous. This
will NEVER happen with functions of a complex variable. This will be shown later when
it is more convenient. For now make continuity of f ′ part of the requirement for f to be
analytic.
For a piecewise smooth curve γ going from z1 to z2 to · · · zm , and for γ ∗z(k−1)k the curve
joining zk−1 to zk ,
Z m Z
f (z) dz ≡ ∑ f (z) dz
γ k=1 γ z(k−1)k
Example 35.3.2 Let γ (t) = cos (t) + i sin (t) ,t ∈ [0, 1] and let f (z) = z2 . Find
R
γ f (t) dz.
35.3. CONTOUR INTEGRALS 701
It equals
Z 1
(cos (t) + i sin (t))2 (− sin (t) + i cos (t)) dt
0
Z 1
i cos3 t − 3 cos2 t sint − 3i cost sin2 t + sin3 t dt
=
0
1 1 1
= cos 3 − + i sin 3
3 3 3
As claimed above, every contour integral reduces to a line integral. Say z = x + iy and
f (z) = u (x, y) + iv (x, y) as above and γ (t) = x (t) + iy (t) ,t ∈ [a, b] . Then from the above
definition,
Z Z b
(u (x (t) , y (t)) + iv (x (t) , y (t))) x′ (t) + iy′ (t) dt
f (z) dz =
γ a
Z b
u (x (t) , y (t)) x′ (t) − v (x (t) , y (t)) y′ (t)
=
a
+i v (x (t) , y (t)) x′ (t) + u (x (t) , y (t)) y′ (t) dt
Z Z
≡ u (x, y) dx − v (x, y) dy + i v (x, y) dx + u (x, y) dy
Γ Γ
which is indeed, just the sum of two line integrals. Thus all the theory of line integrals
applies. In particular, the contour integral is dependent only on the smooth curves and their
orientation. This yields most of the following lemma.
Lemma 35.3.3 Let f be defined and continuous on a piecewise smooth oriented curve Γ
contained in C having parametrization γ. Let the real and imaginary parts of f be denoted
by u and v respectively. Then
Z Z Z
f (z) dz = udx − vdy + i vdx + udy
γ Γ Γ
If fn is continuous and
then Z Z
lim fn (z) dz = f (z) dz (35.3)
n→∞ γ γ
R
Proof: It only remains to verify the estimate. γ f (z) dz is some complex number I so
let (
I
|I| if I ̸= 0
ω=
1 if I = 0
702 CHAPTER 35. ANALYTIC FUNCTIONS
R R
Thus |ω| = 1 and ω γ f (z) dz = γ f (z) dz . Then letting γ be a parametrization for a
smooth curve,
Z Z Z b Z b
f (z) dz = ω f (z) dz = ω f (γ (t)) γ ′ (t) dt ≤ | f (γ (t))| γ ′ (t) dt
γ γ a a
Z b
≤ max (| f (z)| : z ∈ γ ∗ ) γ ′ (t) dt
a
Now recall that this last integral is the definition of the length of γ ∗ . If the curve Γ is
piecewise C1 composed of smooth curves γ i , Then
Z m Z m Z
f (z) dz ≡ ∑ f (z) dz ≤ ∑ f (z) dz
Γ j=1 γ j j=1 γj
m
≤ ∑ max (| f (z)| : z ∈ Γ) length of γ ∗j
j=1
= max (| f (z)| : z ∈ Γ) (length of Γ)
Consider the last claim. From Theorem 13.6.3, z → f (z) is continuous. Therefore, the
integral makes sense. Also from the estimate,
Z Z Z
f (z) dz − fn (z) dz = ( f (z) − fn (z)) dz
Γ Γ Γ
≤ max (| f (z) − fn (z)| : z ∈ γ ∗ ) (length of γ ∗ )
Observation 35.3.4 In the case that γ ∗ = [a, b] an interval on the real line,R the above
definition of the contour integral shows that if γ is oriented from a to b, then γ f (z) dz =
Rb R Ra
a f (z) dz and if γ is oriented from b to a, then γ f (z) dz = b f (z) dz where the notation
on the right signifies the usual Riemann integral.
Definition 35.3.5 If one reverses the order in which points of γ ∗ are encountered, then one
replaces γ with −γ in which, for γ : [a, b] → C, −γ (t) encounters the points of γ ∗ in the
opposite order, the definition of the contour integral shows that
Z Z
− f (z) dz = f (z) dz
γ −γ
One other technical result is often useful. It involves interchanging the order of contour
integrals.
Recall the mean value theorem for integrals from calculus.
35.3. CONTOUR INTEGRALS 703
Lemma 35.3.6 Let f : [a, b] → R be continuous. Then there exists c ∈ (a, b) such that
Z b
f (c) (b − a) = f (x) dx
a
Rx
Proof: Let F (x) ≡ a f (t) dt. Then by the mean value theorem,
for some c ∈ (a, b). But F ′ (x) = f (x) and so this proves the lemma. ■
Lemma 35.3.7 Let γ, η be parametrizations for two smooth curves, γ ([a, b]) and η ([c, d])
and let f : γ ∗ × η ∗ → R be continuous. Then
Z Z Z Z
f (z, w) dzdw = f (z, w) dwdz
η γ γ η
Let P be a partition for [a, b] and Q a partition for [c, d] . Then the above is
n m Z si Z t j
∑∑ f (γ (t) , η (s)) γ ′ (t) η ′ (s) dtds
i=1 j=1 si−1 t j−1
n m Z si
f (γ (tˆj ) , η (s)) γ ′ (tˆj ) t j − t j−1 η ′ (s) ds
= ∑∑
i=1 j=1 si−1
n m
∑ ∑ f (γ (tˆj ) , η (ŝi )) γ ′ (tˆj ) η ′ (ŝi )
= t j − t j−1 (si − si−1 )
i=1 j=1
by an application
of the mean value theorem for integrals from calculus. Here (tˆj , ŝi ) ∈
t j−1 ,t j × (si−1 , si ). Similarly,
Z Z m n
∑ ∑ f (γ (t˜j ) , η (s̃i )) γ ′ (t˜j ) η ′ (s̃i )
f (z, w) dwdz = t j − t j−1 (si − si−1 )
γ η j=1 i=1
n m
∑ ∑ f (γ (t˜j ) , η (s̃i )) γ ′ (t˜j ) η ′ (s̃i )
= t j − t j−1 (si − si−1 )
i=1 j=1
where (t˜j , s̃i ) ∈ t j−1 ,t j × (si−1 , si ). By uniform continuity, if ∥P∥ , ∥Q∥ are small enough,
then
Theorem 35.3.8 Let γ, η be two piecewise smooth oriented curves. Then if the oriented
parametrizations that go with γ ∗ are respectively γ 1 , γ 2 , · · · , γ n and the oriented parametriza-
tions that go with η are respectively η 1 , η 2 , · · · , η m , then if f : γ ∗ × η ∗ → C is continuous,
Z Z Z Z
f (z, w) dwdz = f (z, w) dzdw
γ η η γ
Proof: First suppose f has values in R. Then, starting with the left and using Lemma
35.3.7,
Z Z n Z m Z n m Z Z
f (z, w) dwdz ≡ ∑ ∑ f (z, w) dwdz = ∑∑ f (z, w) dwdz
γ η k=1 γ k l=1 η l k=1 l=1 γ k η l
n m Z Z m n Z Z
= ∑∑ f (z, w) dwdz = ∑∑ f (z, w) dwdz
k=1 l=1 η l γk l=1 k=1 η l γk
Z Z
= f (z, w) dzdw
η γ
In the general case, you simply apply this to the real and imaginary parts of f . ■
The main result is the Cauchy integral theorem which is presented next. First recall
Green’s theorem.
Theorem 35.3.9 (Green’s Theorem) Let V be an open set in the plane and let its boundary
Γ be piecewise smooth and let F (x, y) = (P (x, y) , Q (x, y)) be a C1 vector field defined near
V. Then if Γ is oriented counter clockwise, it is often1 the case that
Z
∂Q ∂P
Z
F · dR = (x, y) − (x, y) dm2 . (35.4)
Γ V ∂x ∂y
In particular, if there exists U such as the simple convex in both directions case considered
earlier for which Green’s theorem holds, and V = R (U) where R : U → V is C2 U, R2
such that Rx × Ry ̸= 0 and Rx × Ry is in the direction of k, then 35.4 is valid where
the orientation around Γ is consistent with the orientation around U. Also, one can paste
together regions for which Green’s theorem holds to get another one for which Green’s
theorem holds.
Here are some examples of regions for which Green’s theorem holds:
U U Γ U Γ
Γ Γ
Recall that you determine the positive orientation for use with Green’s theorem as fol-
lows. You regard k as pointing out of the paper because the x axis points to the right and the
1 For a general version see the advanced calculus book by Apostol. This is presented in the next section also.
The general versions involve the concept of a rectifiable Jordan curve. You need to be able to take the area integral
and to take the line integral around the boundary.
35.4. CAUCHY INTEGRAL THEOREM 705
y axis points up. Then the motion is such that if your head points in the direction of k, your
left hand will be over the surface if you walk in the direction of the positive orientation.
These examples work for Green’s theorem and if you have a C2 mapping defined near
these regions, then if the resulting curves around images of U are oriented consistent with
the above orientations, then you have another example of a region and its boundary for
which Green’s theorem holds.
Theorem 35.4.1 Let U be an open set and suppose U and its boundary Γ satisfy Green’s
theorem where Γ is suitably oriented for using Green’s theorem. Suppose also that f is
analytic on an open set containing U ∪ Γ. Then
Z
f (z) dz = 0.
Γ
Ur
a+
• ib
Hr
Cr
Theorem 35.4.2 Let Γ be a simple closed curve in C and let z ∈ U, the inside component
of ΓC . Then for γ a parametrization of Γ,
1 1
Z
n (γ, z) ≡ dw = ±1
2πi γ w−z
depending on the orientation of Γ. If z ∈
/ U ∪ Γ, the integral equals 0. n (γ, z)is called the
winding number.
706 CHAPTER 35. ANALYTIC FUNCTIONS
Proof: Denote by Γr the insider circle in the above picture having radius r oriented as
1
shown. Then f (w) = w−z has a derivative which is
−1
(w − z)2
a continuous function, and so its real and imaginary parts are continuous for w ̸= z. There-
fore, the function is analytic near Ur the open set bounded by the two curves Γr and Γ.
It follows from the Cauchy theorem that for γ an orientation on Γ as shown and γ̂ r an
orientation as shown on Γr ,
1 1
Z Z
dw + dw = 0
γ w−z γ̂ r w−z
Therefore, orienting Γr in the usual direction, a parametrization for this circle is
Definition 35.4.3 Given Γ a simple closed curve, the orientation is said to be positive if
the winding number is 1 and negative if the winding number is −1.
The following theorem shows that the primitive acts just like a potential, the difference
being that a primitive has complex, not real values. In calculus, in the context of a function
of one real variable, this is often called an antiderivative and every continuous function has
one thanks to the fundamental theorem of calculus. However, it will be shown below that
the situation is not at all the same for functions of a complex variable.
So what if a function has a primitive? Say F ′ (z) = f (z) where f is continuous.
35.5. PRIMITIVES AND CAUCHY GOURSAT THEOREM 707
Theorem 35.5.2 Suppose γ is a piecewise C1 curve. Let its endpoints be p and q with the
orientation of the curve from p to q. Suppose f : γ ∗ → C is continuous and has a primitive
F. Thus F ′ (z) = f (z) for some open set Ω ⊇ γ ∗ . Then
Z
f (z) dz = F (q) − F (p)
γ
Proof: Assume first that γ is a C1 curve defined on an interval [a, b]. Then by definition,
Z b Z b
d
Z
f (z) dz = f (γ (t)) γ ′ (t) dt =
(F (γ (t))) dt
γ a dt a
= F (γ (b)) − F (γ (a)) = F (q) − F (p)
γ j : [a j , b j ] → C
Z m Z m
f (z) dz ≡ ∑ f (z) dz = ∑ F γ j (b j ) − F γ j (a j )
γ j=1 γ j j=1
z3
z1 z2
R R
Denote by ∂T f (z) dz, the expression, γ(z1 ,z2 ,z3 ,z1 ) f (z) dz. Consider the following pic-
ture.
708 CHAPTER 35. ANALYTIC FUNCTIONS
z3
T11 T
T21
T31 T41
z1 z2
Thus
Z 4 Z
f (z) dz = ∑ f (z) dz. (35.5)
∂T 1
k=1 ∂ Tk
On the “inside lines” the integrals cancel because there are two integrals going in opposite
directions for each of these inside lines. Recall the method for evaluating a line integral
with a C1 parametrization.
Now let T1 play the same role as T . Subdivide as in the above picture, and obtain T2 such
that Z
α
f (w) dw ≥ 2 .
∂ T2 4
Continue in this way, obtaining a sequence of triangles,
and Z
α
f (w) dw ≥ .
∂ Tk 4k
35.6. FUNCTIONS DIFFERENTIABLE ON A DISK, ZEROS 709
Then let z ∈ ∩∞ ′
k=1 Tk and note that by assumption, f (z) exists. Therefore, for all k large
enough, Z Z
f (z) + f ′ (z) (w − z) + g (w) dw
f (w) dw =
∂ Tk ∂ Tk
where |g (w)| < ε |w − z| . Now observe that w → f (z) + f ′ (z) (w − z) has a primitive,
namely,
F (w) = f (z) w + f ′ (z) (w − z)2 /2.
Therefore, by Theorem 35.5.2,
Z Z
f (w) dw = g (w) dw.
∂ Tk ∂ Tk
and so
α ≤ ε (length of T ) diam (T ) .
R
Since ε is arbitrary, this shows α = 0, a contradiction. Thus ∂ T f (w) dw = 0 as claimed.
■
Note that no assumption of continuity of z → f ′ (z) was needed.
Obviously, there is a version of the above Cauchy Goursat theorem which is valid for
a rectangle. Indeed, apply the Cauchy Goursat theorem for the triangles obtained from a
diagonal of the rectangle. The diagonal will be oriented two different ways depending on
which triangle it is a part of.
Corollary 35.5.4 Let Ω be an open set on which f ′ (z) exists. Then if R is a rectangle
contained in Ω along with its inside, then orienting R either way results in
Z
f (z) dz = 0.
R
The following is a general version of the Cauchy integral theorem. If f ′ (z) exists on
the inside and if f is continuous on the boundary, then the integral over the bounding curve
is 0. Note how the closed curve is arbitrary, not just a triangle.
Theorem 35.6.1 (Morera2 ) Let Ω be an open set and let f ′ (z) exist for all z ∈ Ω. Let
D ≡ B (z0 , r) ⊆ Ω. Then there exists ε > 0 such that f has a primitive on B (z0 , r + ε).
Proof: Choose ε > 0 small enough that B (z0 , r + ε) ⊆ Ω. Then for w ∈ B (z0 , r + ε) ,
define Z
F (w) ≡ f (u) du.
γ(z0 ,w)
Then by the Cauchy Goursat theorem, and w ∈ B (z0 , r + ε) , it follows that for |h| small
enough,
F (w + h) − F (w) 1
Z
= f (u) du
h h γ(w,w+h)
1 1 1
Z Z
= f (w + th) hdt = f (w + th) dt
h 0 0
which converges to f (w) due to the continuity of f at w. ■
Consider the following picture where you have a large circle of radius R and a small
circle of radius r centered at z, a point on the inside of γ R . The Cauchy integral formula
gives f (z) in terms of the values of f on the large circle.
γR
•z
γr
Γ2 • z0 Γ1
Theorem 35.6.2 Let γ R be a positively oriented circle of radius R and let U be its inside.
Suppose f has a derivative on an open set containing Ui ∪ γ ∗R . Then if z ∈ U,
1 f (w)
Z
f (z) = dw
2πi γR w−z
Proof: Use −γ r for the orientation of the smaller circle. Then from the Cauchy integral
theorem above, if w → g (w) is analytic,
Z Z Z Z
0= g (w) dw + g (w) dw = g (w) dw − g (w) dw
γR −γ r γR γr
This results from using −γ r on the small circle so the small circle has the opposite orienta-
tion indicated in the picture. Now let
f (w)
g (w) =
w−z
2 Giancinto Morera 1856-1909. This theorem or one like it dates from around 1886
35.6. FUNCTIONS DIFFERENTIABLE ON A DISK, ZEROS 711
This has derivative outside the small disk and inside some open set containing the large
disk. Also
f (w) f (w)
Z Z
dw = dw
γR w − z γr w − z
1 f (w) − f (z) 1 1
Z
dw ≤ 2πrε = ε
2πi γr w−z 2π r
This is the Cauchy integral formula for a disk. This remarkable formula is sufficient to
show that if a function has a derivative, then it has infinitely many and in fact, the function
can be represented as a power series. When this is shown, it will be easy to give the general
Cauchy integral formula for an arbitrary piecewise smooth simple closed curve. Let z0 be
the center of the large circle.
In the situation of Theorem 35.6.2,
1 f (w) 1 1 f (w)
Z Z
f (z) = dw = z−z0 dw
2πi γR w − z0 − (z − z0 ) 2πi γR w − z0 1 − w−z
0
z−z0 |z−z0 |
Now w−z0 = R < 1 for all w ∈ γ ∗R . Therefore, the above equals
!
1 ∞
f (w) (z − z0 )k 1 ∞
(z − z0 )k
Z Z
∑ dw = ∑ (w − z )k+1 f (w) dw
2πi γ R k=0 (w − z0 )k+1 2πi γR k=0 0
If the partial sums of the above series converge uniformly on γ ∗R then by Lemma 35.3.3,
!
1 ∞
(z − z0 )k
Z
1 p (z − z0 )k
Z
= lim ∑ f (w) dw (35.7)
p→∞ 2πi
k=0 γR (w − z0 )k+1
Which by definition is
!
∞
1 1
Z
∑ k+1
f (w) dw (z − z0 )k
k=0 2πi γR (w − z0 )
and |z − z0 | /R < 1 so the right side is summable. Therefore, by Theorem 13.8.3, conver-
gence is indeed uniform on γ ∗R and so
!
∞ ∞
1 1
Z
f (z) = ∑ k+1
f (w) dw (z − z0 )k ≡ ∑ ak (z − z0 )k
k=0 2πi γ R (w − z0 ) k=0
This proves part of the next theorem which says, among other things, that when f has
one derivative on the interior of a disk, then it must have all derivatives.
where
1 1
Z
an ≡ f (w) dw
2πi γR (w − z0 )n+1
and γ R is a positively oriented parametrization for the circle bounding B (z0 , R). Then
Proof: 35.8 follows from the above argument. Now consider 35.10. The above argu-
ment based on the Cauchy integral formula for a disk shows that if R > |ẑ − z0 | > |z − z0 | ,
then
∞
f (ẑ) = ∑ an (ẑ − z0 )n
n=0
and so, by the root test, Theorem 13.7.1,
1 ≥ lim sup |an |1/n |ẑ − z0 | > lim sup |an |1/n |z − z0 |
n→∞ n→∞
35.6. FUNCTIONS DIFFERENTIABLE ON A DISK, ZEROS 713
Consider 35.11 which involves identifying the an in terms of the derivatives of f . This is
obvious if k = 0. Suppose it is true for k. Then for small h ∈ C,
1 (k)
f (z + h) − f (k) (z)
h
1 ∞
= ∑ n (n − 1) · · · (n − k + 1) an (z + h − z0 )n−k − (z − z0 )n−k
h n=k
!
∞ n−k n − k j (z − z )(n−k)− j
1 ∑ h 0
= ∑ n (n − 1) · · · (n − k + 1) an j=0 j
h n=k+1
n−k
− (z − z0 )
! !
∞ n−k
n−k
= ∑ n (n − 1) · · · (n − k + 1) an ∑ h j−1 (z − z0 )(n−k)− j
n=k+1 j=1 j
∞
= ∑ n (n − 1) · · · (n − k + 1) (n − k) an (z − z0 )(n−k)−1
n=k+1
! !
∞ n−k
n−k j−2 (n−k)− j
+h ∑ n (n − 1) · · · (n − k + 1) an ∑ h (z − z0 ) (35.12)
n=k+1 j=2 j
By what was shown earlier,
1/n
lim sup n (n − 1) · · · (n − k + 1) |an | |z − z0 |n−k
n→∞
Corollary 35.6.4 Suppose f is continuous on ∂ B (z0 , r) and suppose that for all z ∈ B (z0 , r) ,
1 f (w)
Z
f (z) = dw,
2πi γ w−z
where γ is the positively oriented boundary of the circular disk, conveniently given as
γ (t) ≡ z0 + reit ,t ∈ [0, 2π] . Then f is analytic on B (z0 , r) and in fact has infinitely many
derivatives on B (z0 , r) .
Proof: This is just a repeat of the above arguments. You show that f (z) is given by a
power series for |z − z0 | < r and from this, the result follows. ■
The following is very different than what is expected in real analysis. It says that
uniform convergence tends to take with it differentiability.
Lemma 35.6.5 Let γ (t) = z0 + reit , for t ∈ [0, 2π], suppose fn → f uniformly on B (z0 , r),
and suppose
1 fn (w)
Z
fn (z) = dw (35.14)
2πi γ w − z
for z ∈ B (z0 , r) . Then
1 f (w)
Z
f (z) = dw, (35.15)
2πi γ w−z
implying that f is analytic on B (z0 , r) .
Proof: From 35.14 and the uniform convergence of fn to f on γ ([0, 2π]) , the integrals
in 35.14 converge to
1 f (w)
Z
dw.
2πi γ w − z
Therefore, the formula 35.15 follows. ■
Because of the above result, from now on, the term analytic will be used interchange-
ably with “has a derivative”. This has shown that if the function has one derivative on an
open set, then it has all of them. Now here is another version of Morera’s theorem.
γ (z1 , z2 , z3 , z1 )
then f is analytic on Ω.
Proof: As in the proof of Morera’s theorem, let B (z0 , r) ⊆ Ω and use the given condition
to construct a primitive, F for f on B (z0 , r) . Then F is analytic and so by Theorem 35.6.3,
it follows that F and hence f have infinitely many derivatives, implying that f is analytic
on B (z0 , r) . Since z0 is arbitrary, this shows f is analytic on Ω. ■
The following observation is useful to keep in mind.
35.6. FUNCTIONS DIFFERENTIABLE ON A DISK, ZEROS 715
1 ∞
lim ∑ an hn = 0
h→0 hk n=k+1
To see this, note the expression is h ∑∞ n−(k+1) . Now the sum of the absolute values
n=k+1 an h
∞ n−(k+1)
is ∑n=k+1 |an | |h| and it converges because there exists ĥ, such that r > ĥ > |h| and
by the root test, Theorem 13.7.1, lim supn→∞ |an |1/n ĥ ≤ 1 so
The tail of the series just described is sometimes referred to as “higher order terms”.
The following is a remarkable result about the zeros of an analytic function on a con-
nected open set. It turns out that if the set of zeros have a limit point, then the function
ends up being zero. It is an illustration of how analytic functions are a lot like polynomials
which have finitely many zeros unless they are identically zero.
Definition 35.6.8 Suppose f is an analytic function defined near a point, α where f (α) =
0. Thus α is a zero of the function f . The zero is of order m if f (z) = (z − α)m g (z) where
g is an analytic function which is not equal to zero at α.
Theorem 35.6.9 Let Ω be a connected open set (region) and let f : Ω → C be analytic.
Then the following are equivalent.
Z ≡ {z ∈ Ω : f (z) = 0} .
f (z) = (z − z0 )k g (z)
716 CHAPTER 35. ANALYTIC FUNCTIONS
0 = (zn − z0 )k g (zn )
which implies g (zn ) = 0. Then by continuity of g, we see that g (z0 ) = 0 also, contrary to
the choice of k. Therefore, k cannot be less than ∞ and so z0 is a point satisfying the second
condition, all derivatives at z0 are zero.
Now suppose the second condition and let
n o
S ≡ z ∈ Ω : f (n) (z) = 0 for all n .
It is clear that S is a closed set which by assumption is nonempty. However, this set is also
open. To see this, let z ∈ S. Then for all w close enough to z,
∞
f (k) (z)
f (w) = ∑ (w − z)k = 0.
k=0 k!
Thus f is identically equal to zero near z ∈ S. Therefore, all points near z are contained
in S also, showing that S is an open set. Now Ω = S ∪ (Ω \ S) , the union of two disjoint
open sets, S being nonempty. It follows the other open set, Ω \ S, must be empty because
Ω is connected. Therefore, the first condition is verified. This proves the theorem. (See the
following diagram.)
1.)
↙↗ ↘
2.) ←− 3.)
Note how radically different this is from the theory of functions of a real variable.
Consider, for example the function
(
x2 sin 1x if x ̸= 0
f (x) ≡
0 if x = 0
which has a derivative for all x ∈ R and for which 0 is a limit point of the set Z, even though
f is not identically equal to zero.
Here is a very important application called Euler’s formula. Recall that
zk
Is it also true that ez = ∑∞
k=0 k! ?
Proof: The Cauchy Riemann equations show that ez given by 35.16 is analytic. So is
zk
exp (z) ≡ ∑∞k=0 k! . In fact the power series converges for all z ∈ C. Furthermore the two
functions, ez and exp (z) agree on the real line which is a set which contains a limit point.
Therefore, they agree for all values of z ∈ C. ■
35.7. LIOUVILLE’S THEOREM 717
This properties of zeros of an analytic function can be used to verify with no effort that
identities which hold for z real continue to hold for z complex and this can be done with no
effort.
Theorem 35.7.1 Let U along with its boundary Γ satisfy satisfy Green’s theorem and let
f be analytic on an open set V containing U ∪ Γ and let γ be an orientation of Γ such that
Green’s theorem holds. Thus,
1 1
Z
n (γ, z) ≡ dw = 1
2πi γ w−z
Then if z ∈ U,
1 f (w)
Z
f (z) = dw
2πi γ w−z
Proof: Consider the function
(
f (w)− f (z)
w−z if w ̸= z
g (w) ≡ ′
(35.17)
f (z) if w = z
It remains to consider whether g′ (z) exists for z ∈ V . Then from the Theorem 35.6.3, we
can write f (z + h) as a power series in h whenever h is suitably small.
f (z+h)− f (z)
h − f ′ (z)
=
h
1 1 1 1
f ′ (z) h + f ′′ (z) h2 + f ′′′ (z) h3 + · · · − f ′ (z)
h h 2! 3!
1 1 1
= f ′ (z) + f ′′ (z) h + f ′′′ (z) h2 + · · · − f ′ (z)
h 2! 3!
1 ′′ 1 ′′′
= f (z) + f (z) h + higher order terms
2! 3!
1 ′′
Thus the limit of the difference quotient exists and is 2! f (z). It follows that
1 1 f (w) 1 f (z)
Z Z Z
0 = g (w) dw = dw − dw
2πi γ 2πi γ w − z 2πi γ w−z
1 f (w)
Z
= dw − f (z) ■
2πi γ w − z
The following is a spectacular application. It is Liouville’s theorem.
718 CHAPTER 35. ANALYTIC FUNCTIONS
Theorem 35.7.2 Suppose f is analytic on C and that | f (z)| is bounded for z ∈ C. Then f
is constant.
1 f (w)
Z
f ′ (z) = dw if |z| < r
2πi γr (w − z)2
and so
1 1
f ′ (z) ≤ C2πr 2
2π r
where | f (z)| < C for all z and this is true for any r so let r → ∞ and you can conclude that
f ′ (z) = 0 for all z ∈ C. However, this shows that f (k) (z) = 0 for all z and for each k ≥ 1.
Thus the power series for f (z) , which exists by Theorem 35.6.3, is
∞
f (k) (0) k
f (z) = f (0) + ∑ z = f (0) . ■
k=1 k!
This leads right away to the shortest proof of the fundamental theorem of algebra.
Theorem 35.7.3 Let p (z) be a non constant polynomial with complex coefficients. Then
p (z) = 0 for some z ∈ C. That is, p (z) has a root in C.
Proof: Suppose not. Then 1/p (z) is analytic on C. Also, the leading order term dom-
inates the others and so 1/p (z) must be bounded. Indeed, lim|z|→∞ (1/ |p (z)|) = 0 and the
continuous function z → 1/ |p (z)| achieves a maximum on any bounded ball centered at
0 by the extreme value theorem. By Liouville’s theorem, this quotient must be constant.
However, by assumption, this does not take place. Hence there is a root of p (z). ■
(0, 0, 2)
•
• • θ (p)
(0, 0, 1)
p
• C
−1
Then θ is sometimes called stereographic projection. The mapping θ is clearly con-
tinuous because it takes converging sequences, to converging sequences. Furthermore, it is
clear that θ −1 is also continuous. In terms of the extended complex plane C,
b consisting of
35.9. EXERCISES 719
Definition 35.8.1 Let S ⊆ C b the extended complex plane in which this extra point ∞ has
been included as just described. Then S is separated if there exist A, B not both empty such
that S = A ∪ B, A ∩ B = 0/ and no point of A is a limit of any sequence of points of B while
no point of B is the limit of any sequence of points of A. If S is not separated, then it is
called connected.
Example 35.8.2 Consider the open set S ≡ {z ∈ C such that Im (z) > 0} . Then S ∪ {∞} ≡
b.
Sb is connected in C
Definition 35.8.3 Let S ⊆ C. It is said to be simply connected if the set is connected and
C \ S ∪ {∞} is connected in C
b . Written more compactly, S is simply connected means S is
connected and also C \S is connected in C.
b b
When looking at
a set S in C, how do you determine whether it is simply connected?
You consider θ SC in S2 and ask whether it is connected with the convention that if SC is
unbounded, you must include (0, 0, 2) in the image of θ .
Example 35.8.4 Consider the set S ≡ {z ∈ C such that |z| > 1} . This is a connected set,
b \S is not connected. On S2 it consists of a piece
but it is not simply connected because C
near the bottom of the sphere and the point (0, 0, 2) at the top.
Example 35.8.5 Consider S ≡ {z ∈ C such that |z| ≤ 1} . This connected set is simply con-
b \S corresponds to a connected set on S2 .
nected because C
35.9 Exercises
In the following exercises, the term “simple closed curve” will be used repeatedly. Assume
that such curves Γ have an inside Ui and an outside and that Green’s theorem applies for
Ui with its boundary Γ if the boundary is oriented appropriately. This can be proved, but is
not in this book. It is one of these things which is mainly of mathematical interest. In the
examples of interest, it is typically not an issue.
720 CHAPTER 35. ANALYTIC FUNCTIONS
1. Suppose you have U ⊆ C an open set and f : U → C is analytic but has only real
values. Find all possible f with these properties.
2. Suppose f is an entire function (analytic on C) and suppose Re f is never 0. Show
that f must be constant. Hint: Consider U = {(x, y) : Re f (x, y) > 0} ,V = {(x, y) : Re f (x, y) < 0} .
These are open and disjoint so one must be empty. If V is empty, consider 1/e f (z) .
Use Liouville’s theorem.
3. Suppose f : C → C is analytic. Suppose also there is an estimate
| f (z)| ≤ M 1 + |z|α , α > 0
Show that f must be a polynomial. Hint: Consider the formula for the derivative in
which γ r is positively oriented and a circle or radius r for r very large centered at 0,
n! f (w)
Z
f (n) (z) =
2πi γr (w − z)n+1
and pick large n. Then let r → ∞.
n z 2n+1
4. Define for z ∈ C sin z ≡ ∑∞ k=0 (−1) (2n+1)! . That is, you just replace x with z. Give a
z
similar definition for cos z, and e . Show that the series converges for sin z and that a
corresponding series converges for cos z. Then show that
x
iz
The function z → ez is analytic on the curve and on its inside. Therefore, the con-
tour integral with respect to the givenR orientation is 0. Use this contour and the
Cauchy integral theorem to verify that 0∞ sinz z dz = π/2 where this improper integral
is defined as Z R
sin z
lim dz
R→∞ −1/R z
The function is actually not absolutely integrable and so the precise description of
its meaning just given is important. To do this, show that the integral over the large
35.9. EXERCISES 721
−z
circle of CR e z dz → 0 as R → ∞ and verify that you get something else like −π for
R
11. Suppose f (z) = u (x, y) + iv (x, u) is analytic. Show that both u, v satisfy Laplace’s
equation, uxx + uyy = 0.
12. Suppose you have two complex numbers z = a + ib and w = x + iy. Show that the
dot product of the two vectors (a, b) · (x, y) is Re ((a + ib) (x − iy)) = Re (zw̄) .
13. ↑Suppose you have two curves t → z (t) and s → w (s) which intersect at some point
z0 corresponding to t = t0 and s = s0 . Show that the cosine of the angle θ between
these two curves at this point is
Re z′ (t0 ) w′ (s0 )
cos (θ ) =
|z′ (t0 )| |w′ (s0 )|
Now suppose z → f (z) is analytic. Thus there are two curves t → f (z (t)) and s →
f (w (s)) which intersect when t = t0 and s = s0 . Show that the angle between these
two new curves at their point of intersection is also θ . This shows that analytic
mappings preserve the angles between curves.
14. Suppose z = x + iy and f (z) = u (x, y) + iv (x, y) where f is analytic. Explain why
level curves of u and v intersect in right angles.
15. Let Γ be a simple closed piecewise C1 curve in C. Let γ be a parametrization of
Γ which has positive orientation. Thus n (γ, z) = 1 for all z inside Γ. Also suppose
f is an analytic function on a connected open set containing Γ and its inside Ui .
Suppose f is not identically zero and has no zeros on Γ. Explain why f has finitely
many zeros on the inside of Γ. A zero a has multiplicity m if f (z) = (z − a)m g (z)
where g (z) ̸= 0 on Ui . Let the zeros of f in Ui be {a1 , · · · , am } where there might be
repeated numbers in this list, zeros of multiplicity higher than 1. Show that
1 f ′ (z)
Z
m= dz (35.18)
2πi γ f (z)
722 CHAPTER 35. ANALYTIC FUNCTIONS
Thus you can count the zeros of an analytic function inside a simple closed curve by
doing an integral! Hint: First of all, m is finite since if not, Theorem 35.6.9 implies
that f (z) = 0 for all z since there would be a limit point or else a zero of infinite
order. Now argue that f (z) = ∏m k=1 (z − ak ) g (z) where g (z) is analytic and nonzero
′ (z)
on Ui . Use the product rule to simplify ff (z) . Then use the fact that n (γ, z) = 1.
16. Suppose now you have a piecewise C1 simple closed curve Γ and on Γ∗ , | f (z)| >
|g (z)| where f , g are analytic on an open set containing Γ∗ . Suppose also that f has
no zeros on Γ∗ . In particular, f is not identically 0. Let λ ∈ [0, 1].
(c) Use Theorem 35.3.3 to show that for γ a positively oriented parametrization of
Γ, Z ′
1 f (z) + λ g′ (z)
λ→ dz
2πi γ f (z) + λ g (z)
is continuous.
(d) Now explain why this shows that the number of zeros of f + λ g on the inside
of Γ is the same as the number of zeros of f on the inside of Γ. This is a version
of Rouche’s theorem.
17. Give an extremely easy proof of the fundamental theorem of algebra as follows. Let
γ R be a parametrization of the circle centered at 0 having radius R which has positive
orientation so n (γ, z) = 1. Let p (z) be a polynomial an zn + an−1 zn−1 + · · · + a1 z + a0 .
Now explain why you can choose R so large that |an zn | > an−1 zn−1 + · · · + a1 z + a0
for all |z| ≥ R. Using Problem 16 above explain why all zeros of p (z) are inside γ ∗R
and why there are exactly n of them counted according to multiplicity.
18. The polynomial z5 + z4 − z3 − 3z2 − 5z + 1 = p (z) has no rational roots. You can
check this by applying the rational root theorem from algebra. However, it has five
complex roots. Also
why the roots of p (z) are inside the circle |z| = 2.4.
19. This problem will feature the situation where the radius of the simple closed curve is
sufficiently small. The zero counting integral can be used to prove an open mapping
theorem for analytic functions. Suppose you have f (z) = f (z0 ) + φ (z)m for z ∈ V
an open set containing z0 and φ (z0 ) = 0, |φ ′ (z0 )| = 2r ̸= 0, and m ∈ N. Let C (a, ρ)
denote the positively oriented circle centered at a which has radius ρ.
(a) Explain why there exists δ > 0 such that if |z − z0 | = δ , then B (z0 , δ ) ⊆ V and
φ (z)
≥ r, |φ (z)| ≥ r |z − z0 | = rδ
z − z0
Therefore, if |w| < rδ , then if |z − z0 | = δ , |φ (z) − w| ̸= 0.
35.9. EXERCISES 723
φ (z)′
1 R r
(b) Use continuity of w → 2πi C(z0 ,δ ) φ (z)−w dz for |w| < δ 2 and Problem 15 to con-
clude that there exists ε < rδ such that if |w| < ε there is one zero for φ (z) − w
in B (z0 , δ ). In other words, φ (B (z0 , δ )) ⊇ B (0, ε) . Then also φ m (B (z0 , δ )) ⊇
B (0, ε m ). Hint: If you have
w∈B
m th
(0, ε ) , then there are m m roots of w
equally spaced around B 0, |w|1/m . Thus these roots are on a circle of ra-
dius less than ε. Pick one. Call it ŵ. Then there exists z ∈ B (z0 , δ ) such that
φ (z) = ŵ. Then φ m (z) = w. Fill in details.
(c) Explain why f (B (z0 , δ )) ⊇ f (z0 )+B (0, ε m ) and why for w ∈ f (z0 )+B (0, ε m )
there are m different points in B (z0 , δ ) , z1 , · · · , zm such that f (z j ) = w.
20. ↑Let Ω be an open connected set. Let f : Ω → C be analytic. Suppose f (Ω) is not
a single point. Then pick z0 ∈ Ω. Explain why f (z) = f (z0 ) + (z − z0 )m g (z) for all
z ∈ V an open ball contained in Ω which contains z0 and g (z) ̸= 0 in V, g (z) analytic.
If this were not so, then z0 would be a zero of infinite order and by the theorem on
zeros, Theorem 35.6.9, f (z) = f (z0 ) for all z ∈ Ω which is assumed not to happen.
Thus, every z0 in Ω has this property that near z0 , f (z) = f (z0 ) + (z − z0 )m g (z) for
nonzero g (z). Now explain why f (z) = f (z0 )+φ m (z) where φ (z0 ) = 0 but φ ′ (z0 ) ̸=
0 and φ (z) is some analytic function. Thus from Problem 19 above, there is δ such
that f (Ω) ⊇ f (z0 ) + B (0, ε m ). Hence f (Ω) is open since each f (z0 ) is an interior
point of f (Ω). You only need to show that there is G (z) such that G (z)m = g (z) and
then φ (z) ≡ (z − z0 ) G (z) will work fine. When you have done this, Problem 19 will
yield a proof of the open mapping theorem which says that if f is analytic on Ω a
connected open set, then f (Ω) is either an open set or a single point. So here are
some steps for doing this.
g′ (z)
(a) Consider z → g(z) . It is analytic on the open ball V and so it has a primitive on
R g′ (w)
V . In fact, you could take h (z) ≡ γ(z0 ,z) g(w) dw.
′
(b) Let the primitive be h (z) . Then consider g (z) e−h(z) . Show this equals 0.
Then explain why this requires it to be constant. Explain why there is a + ib
such that g (z) = eh(z)+a+ib . Then use the primitive h (z) + a + ib instead of the
original one. Call it h (z). Then
g (z) = eh(z)
You can then complete the argument by letting g (z)1/m ≡ eh(z)/m and
G (z) ≡ (z − z0 ) g (z)1/m
(c) Show that this theorem is certainly not true when considering functions of a
real variable by considering f (x) = x2 .
21. If you have an open set U in C show that for all z ∈ U, |z| < sup {|w| : w ∈ U}. In
other words, z → |z| never achieves its maximum on any open set U ∈ C.
22. Let f be analytic on U and let B (z, r) ⊆ U. Let γ r be the positively oriented boundary
of B (z, r). Explain, using the Cauchy integral formula why
| f (z)| ≤ max {| f (w)| : w ∈ γ ∗r } ≡ mr
Show that if equality is achieved, then | f (w)| must be constantly equal to mr on γ ∗r .
724 CHAPTER 35. ANALYTIC FUNCTIONS
23. The maximum modulus theorem says that if Ω is a bounded connected open set and
f : Ω → C is analytic and f : Ω → C is continuous, then if | f | achieves its maximum
at any point of Ω then f is equal to a constant on Ω. Thus | f | achieves its maximum
on the boundary of Ω in every case. Hint: Suppose the maximum is achieved at
a point of Ω, z0 . Then let B (z0 , r) ⊆ Ω. Show that if f is constant on B (z0 , r) ,
then it equals this constant on all of Ω using Theorem 35.6.9. However, if it is not
constant, then from the open mapping theorem of Problem 20, f (B (z0 , r)) is an open
set. Then use Problem 21 above to obtain a contradiction. Alternatively, use Problem
22 to verify that the set where | f | achieves its maximum is both open and closed.
24. Let f : C → C be analytic with f ′ (z) ̸=!0 for all z. Say f (x + iy) = u (x, y) + iv (x, y).
u (x, y)
Thus the mapping (x, y) → is a C1 mapping of R2 to R2 . Show that at
v (x, y)
any point
ux uy
̸= 0
vx vy
Therefore, by the inverse function theorem, Theorem 26.0.3, this mapping is locally
one to one. However, the function does not need to be globally one to one. Give an
easy example using the complex exponential which shows this to be the case.
25. Let Γ be a simple closed piecewise C1 curve and let { fn } be a sequence of functions
which are analytic near Ui ∪ Γ∗ . Then if γ is a parametrization of Γ with n (γ, z) = 1
for z ∈ Ui , then
1 fn (w)
Z
fn (z) = dw
2πi γ w − z
This is by the Cauchy integral formula presented above. Suppose fn converges uni-
formly on Γ∗ to a continuous function f . Show that then, for z ∈ Ui , and f (z) defined
as
1 f (w)
Z
f (z) ≡ dw
2πi γ w − z
It follows that fn (z) → f (z) for each z ∈ Ui and also f is analytic on Ui . Hint: You
might use Theorem 35.3.3. This is very different than what happens with functions
of a real variable in which uniform convergence of polynomials pn to f does not nec-
essarily confer differentiability on f . For example, to approximate f , a continuous
function having no derivatives or even a very easy function like f (x) = |x − (1/2)|
for x ∈ [0, 1].
26. The Schwarz lemma is as follows: Suppose F : B (0, 1) → B (0, 1) , F is analytic, and
F (0) = 0. Then for all z ∈ B (0, 1) ,
and
F ′ (0) ≤ 1. (35.20)
If equality holds in 35.20 then there exists λ ∈ C with |λ | = 1 and
F (z) = λ z. (35.21)
35.9. EXERCISES 725
Prove the Schwarz lemma. Hint: Since F has a power series of the form ∑∞ k
k=1 ak z ,
it follows that F (z) /z equals an analytic function g (z) for all z ∈ B (0, 1). By the
maximum modulus theorem, Problem 23 above, applied to g (z) , if |z| < r < 1,
F reit
F (z) 1
≤ max ≤ .
z t∈[0,2π] r r
then the analytic function g (z) has the property that it achieves its maximum at an
interior point. Apply Problem 23 to conclude that g (z) must be a constant. Explain
F(z)
why this requires z = 1 for all z. Use this to conclude the proof.
27. Sketch an example of two differentiable functions defined on [0, 1] such that their
product is 0 but neither function is 0. Explain why this never happens for the set
of analytic functions defined on an open connected set. In other words, if you have
f g = 0 where f , g are analytic on D an open connected set, then either f = 0 or
g = 0. For those who like to classify algebraically, this says that the set of analytic
functions defined on an open connected set is an integral domain. It is clear that
this set of functions is a ring with the usual operations. The extra ingredient is this
observation that there are no nonzero zero divisors. Hint: To show this, consider
D \ f −1 (0) an open set. If f −1 (0) = D, then you are done. Otherwise, you have g is
0 on an open set. Now use Theorem 35.6.9.
1
28. For D ≡ {z ∈ C : |z| < 1} , consider the function sin 1−z . Show that this function
has infinitely many zeros in D. Thus there is a limit point to the set of zeros, but its
limit point is not in D. It is good to keep this example in mind when considering
Theorem 35.6.9.
726 CHAPTER 35. ANALYTIC FUNCTIONS
Chapter 36
Proof: Suppose f (Ω) is not a point. Then if z0 ∈ Ω it follows there exists r > 0 such
that f (z) ̸= f (z0 ) for all z ∈ B (z0 , r) \ {z0 } . Otherwise, z0 would be a limit point of the set,
{z ∈ Ω : f (z) − f (z0 ) = 0}
which would imply from Theorem 35.6.9 that f (z) = f (z0 ) for all z ∈ Ω. Therefore, mak-
ing r smaller if necessary and using the power series of f ,
? m
f (z) = f (z0 ) + (z − z0 )m g (z) (= f (z0 ) + (z − z0 ) g (z)1/m )
for all z ∈ B (z0 , r) , where g (z) ̸= 0 on B (z0 , r) . As implied in the above formula, one
wonders if you can take the mth root of g (z) .
727
728 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
g′
gis an analytic function on B (z0 , r) and so by Morera’s theorem, Theorem 35.6.1, it
has a primitive on B (z0 , r) called h. Therefore by the product rule and the chain rule,
′
ge−h = g′ e−h + g −e−h h′
g′
= g′ e−h + g −e−h =0
g
ge−h = ea+ib .
Therefore,
g (z) = eh(z)+a+ib
and so, modifying h by adding in the constant, a + ib it is still a primitive of g′ /g and now
′ (z)
g (z) = eh(z) where h′ (z) = gg(z) on B (z0 , r) . Letting
h(z)
φ (z) = (z − z0 ) e m
Shrinking r if necessary you can assume φ ′ (z) ̸= 0 on B (z0 , r). Is there an open set V
contained in B (z0 , r) such that φ maps V onto B (0, δ ) for some δ > 0?
Let φ (z) = u (x, y) + iv (x, y) where z = x + iy. Consider the mapping
! !
x u (x, y)
→
y v (x, y)
where u, v are C1 because φ is given to be analytic. The Jacobian of this map at (x, y) ∈
B (z0 , r) is
ux (x, y) uy (x, y) ux (x, y) −vx (x, y)
=
vx (x, y) vy (x, y) vx (x, y) ux (x, y)
2
= ux (x, y)2 + vx (x, y)2 = φ ′ (z) ̸= 0.
This follows from a use of the Cauchy Riemann equations. Also
! !
u (x0 , y0 ) 0
=
v (x0 , y0 ) 0
Therefore, by the inverse function theorem there exists an open set V, containing z0 and
δ > 0 such that (u, v)T maps V one to one onto B (0, δ ) . Thus φ is one to one onto B (0, δ )
as claimed. Applying the same argument to other points z of V and using the fact that
φ ′ (z) ̸= 0 at these points, it follows φ maps open sets to open sets. In other words, φ −1 is
continuous.
36.1. OPEN MAPPING THEOREM FOR COMPLEX VALUED FUNCTIONS 729
implying f (z2 ) = f (z1 ) contradicting the assumption that f is one to one. Thus m = 1
and f ′ (z) = φ ′ (z) ̸= 0 on V. Since f maps open sets to open sets, it follows that f −1 is
continuous and so
′ f −1 ( f (z1 )) − f −1 ( f (z))
f −1 ( f (z)) = lim
f (z1 )→ f (z) f (z1 ) − f (z)
z1 − z 1
= lim = ′ .■
z1 →z f (z1 ) − f (z) f (z)
You can dispense with the appeal to the inverse function theorem by using Problem 19 on
Page 722.
One does not have to look very far to find that this sort of thing does not hold for
functions mapping R to R. Take for example, the function f (x) = x2 . Then f (R) is neither
a point nor a region. In fact f (R) fails to be open.
Corollary 36.1.2 Suppose in the situation of Theorem 36.1.1 m > 1 for the local represen-
tation of f given in this theorem. Then there exists δ > 0 such that if w ∈ B ( f (z0 ) , δ ) =
f (V ) for V an open set containing z0 , then f −1 (w) consists of m distinct points in V. ( f is
m to one on V )
Proof: Let w ∈ B ( f (z0 ) , δ ) . n
Then w = fo(b z ∈ V. Thus f (b
z) where b z)m .
z) = f (z0 ) + φ (b
2kπi m
Consider the m distinct numbers, e m φ (b z) . Then each of these numbers is in B (0, δ )
k=1
and so since φ maps V one to one onto B (0, δ ) , there are m distinct numbers in V , {zk }m
k=1
2kπi
such that φ (zk ) = e m φ (b
z). Then
2kπi m
f (zk ) = f (z0 ) + φ (zk )m = f (z0 ) + e m φ (bz)
= z)m = f (z0 ) + φ (b
f (z0 ) + e2kπi φ (b z)m = f (b
z) = w ■
730 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
We usually let a = 0 and then the inverse is what is usually called the logarithm and is
denoted by log . As in Problem 10 this is ln (|z|) + i arg (z) where arg (z) is the angle between
−π and π corresponding to z ∈ C \ (−∞, 0].
With the open mapping theorem, the maximum modulus theorem is fairly easy.
Proof: Suppose f (Ω) is not a single point. That is, f is not constant. Then by the
open mapping theorem, f (Ω) is an open connected subset of C and so z → | f (z)| has no
maximum. Therefore, the maximum of | f (z)| for z ∈ Ω̄ is on ∂ Ω. If f (Ω) is a single point,
then the equation still holds. ■
Thus ann (a, 0, R) would denote the punctured ball, B (a, R) \ {a} and when r > 0, the
annulus looks like the following.
• a
γR
γ̂ r •z
Γ2 • z0 Γ1
This is because the contributions to the line integrals along those straight lines is 0 since
they cancel off because of opposite orientations. Let γ r be the opposite orientation from γ̂ r .
Then this reduces to
f (w) f (w)
Z Z
dw − dw = 2πi f (z)
γR w − z γr w − z
Thus Z
1 f (w) f (w)
Z
f (z) = dw + dw
2πi γR w − z0 − (z − z0 )
γ r (z − z0 ) − (w − z0 )
"Z #
1 1 f (w) 1 f (w)
Z
= z−z0 dw + w−z dw
2πi γ R w − z0 1 − w−z γ r z − z0 1 − z−z 0
0 0
z−z0
Now note that for z in the annulus between the two circles and w ∈ γ ∗R , w−z0 < 1, and for
w−z0
w ∈ γ ∗r , z−z0 < 1. In fact, in each case, there is b < 1 such that
z − z0 w − z0
w ∈ γ ∗R , < b < 1, w ∈ γ ∗r , <b<1 (36.3)
w − z0 z − z0
Thus you can use the formula for the sum of an infinite geometric series and conclude
R n
1 ∞ z−z0
1 γR f (w) ∑
w−z0 n=0 w−z0 dw
f (z) =
w−z0
n
2πi + f (w) 1 ∑∞
R
γr (z−z0 ) dw n=0 z−z0
Then from the uniform estimates of 36.3, one can conclude uniform convergence of the
partial sums for w ∈ γ ∗R or γ ∗r , and so by the Weierstrass M test, Theorem 13.8.3, one can
732 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
Theorem 36.2.2 Let z ∈ ann (z0 , r, R) and let f : ann (z0 , r, R) → X be analytic near ann (z0 , r, R).
Then for any z ∈ ann (z0 , r, R) ,
∞ ∞
f (z) = ∑ an (z − z0 )n + ∑ bn (z − z0 )−n (36.4)
n=0 n=1
where
1 1
Z
an = f (w) dw
2πi γR (w − z0 )n+1
1
Z
bn = f (w) (w − z0 )n−1 dw
2πi γr
and both of these series in 36.4 converge absolutely. If r < r̂ < R̂ < R, then convergence of
both series is absolute and uniform for z ∈ ann z0 , r̂, R̂ .
Proof: Consider the sum with the negative exponents. The other is similar. Let | f (w)| ≤
M on the closure of the annulus.
∞
1
Z
−n n
∑ bn (z − z0 ) , bn = 2πi γ f (w) (w − z0 ) dw
n=1 r
γR
γ̂ α
Γ2 • z0 Γ1
The integrand is analytic on the inside of the two simple closed curves Γ1 and Γ2 .
Letting γ 1 and γ 2 be oriented parametrizations for these and using the argument that the
integrals over the straight lines cancel, this yields
1 1 1 1
Z Z
f (w) n+1
dw + f (w) dw = 0
2πi γR (w − z0 ) 2πi γ̂ α (w − z0 )n+1
By uniform convergence,
Z ∞ Z
f (w) (w − z0 )k−1 dw = ∑ an (w − z0 )n+k−1 dw
γα n=0 γα
∞ Z
+ ∑ bn (w − z0 )−n+k−1 dw
n=1 γα
Now in the sums, all integrals are 0 except the one when n = k in the second sum. Therefore,
Z Z
f (w) (w − z0 )k−1 dw = bk (w − z0 )−1 dw = 2πibk
γα γα
734 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
Definition 36.2.4 For f near the closure of an annulus as just described, it follows that on
the annulus, f can be written as the sum of a power series and a series involving (z − z0 )
raised to negative powers. This is called the Laurent series. The series involving negative
powers of (z − z0 ) is called the principal part of the Laurent series.
Note that if f is analytic near z0 , but possibly not at z0 then the r in γ r can be taken as
small as desired.
Definition 36.3.1 Let B′ (a, r) ≡ {z ∈ C such that 0 < |z − a| < r}. Thus this is the usual
ball without the center. A function is said to have an isolated singularity at the point a ∈ C
if f is analytic on B′ (a, r) for some r > 0.
It turns out isolated singularities can be neatly classified into three types, removable
singularities, poles, and essential singularities. The next theorem deals with the case of a
removable singularity.
lim f (z) (z − a) = 0.
z→a
Thus the above limit occurs if and only if there exists a unique analytic function, g :
B (a, r) → X such that g = f on B′ (a, r) . In other words, you can re define f at a so
that the resulting function is analytic.
Proof: ⇒Let h (z) ≡ (z − a)2 f (z) , h (a) ≡ 0. Then h is analytic on B (a, r) because it is
easy to see that h′ (a) = 0. It follows h is given by a power series,
∞
h (z) = ∑ ak (z − a)k
k=2
36.3. ISOLATED SINGULARITIES 735
where a0 = a1 = 0 because of the observation above that h′ (a) = h (a) = 0. It follows that
for |z − a| > 0
∞
f (z) = ∑ ak (z − a)k−2 ≡ g (z) .
k=2
Theorem 36.3.4 (Casorati Weierstrass) Let a be an isolated singularity and suppose for
some r > 0, f (B′ (a, r)) is not dense in C. Then either a is a removable singularity or there
exist finitely many b1 , · · · , bM for some finite number, M such that for z near a,
M
bk
f (z) = g (z) + ∑ (36.6)
k=1 (z − a)k
Definition 36.4.1 Let a be an isolated singularity of f . When 36.6 holds for z near a, then
a is called a pole. The order of the pole in 36.6 is M. Essential singularities are those
which have infinitely many nonzero terms in the principal part of the Laurent series. When
a function f is analytic except for isolated singularities and the isolated singularities are
all poles, and there are finitely many of these poles in every compact set, the function is
called meromorphic.
Actually, if you insist only that the singularities are isolated and poles, then you can
prove that there are finitely many in any compact set so part of the above definition is
actually redundant as shown in the following lemma.
Lemma 36.4.2 If f has a pole at a, then limz→a | f (z)| = ∞. Also if f ∈ M (Ω) for Ω an
open set, then the poles cannot have a limit point in Ω and there are finitely many poles in
every B (0, R). For f ∈ M (Ω) , α is a pole if and only if limz→α | f (z)| = ∞. Also α is a
zero if and only if limz→α | f (z)| = 0.
Finally, consider the last claim. It is obvious that α is a zero if and only if limz→α f (z) =
0. It was shown above that at poles limz→α | f (z)| = ∞. Then suppose the limit condition
holds. Why is α a pole? This happens because of the Casorati Weierstrass theorem, The-
orem 36.3.4. Every singularity is isolated for a meromorphic function by definition. Thus
there is a Laurent expansion for f near α. If the principal part is an infinite series, then
by this theorem, the values of f near α are dense in C and so limz→α | f (z)| does not even
exist. Therefore, this principal part must be a finite sum and so α is a pole. ■
What follows is the definition of something called a residue. This pertains to a singu-
larity which has a pole at an isolated singularity.
γ0
γ1 γ2
a1 • a2 •
You have a simple closed curve, positively oriented. Say γ is a parametrization for this
curve. Then inside there are finitely many singularities {ak }nk=1 . Enclose each with a circle
oriented in the clockwise direction, parameterized by γ̂ k and connect them with straight
lines as shown. Then you have two simple closed curves which intersect in these finitely
many straight line segments. Orient them oppositely so that line integrals over the straight
line segments cancel and each of the two simple closed curves is oriented positively. Then
if f is analytic except at the points shown, the Cauchy integral theorem implies
Z n Z
f (z) dz + ∑ f (z) dz = 0
γ k=1 γ̂ k
Letting γ k ≡ −γ̂ k ,
Z n Z
f (z) dz = ∑ f (z) dz (36.8)
γ k=1 γ k
738 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
b1
Z
dz = 2πib1
γk z − ak
bn
Definition 36.5.1 Suppose f (z) = g (z) + ∑M
n=1 (z−a)n for z near a. Then res ( f , a) ≡ b1 .
R
Using this notation, by analogy to the above, γk f (z) dz = 2πi res ( f , ak ) . Then from
36.8, Z n
f (z) dz = 2πi ∑ res ( f , ak )
γ k=1
In words, the contour integral is 2πi times the sum of the residues.
So is there a way to find the residues? The answer is yes.
This is the case where you have a pole of order M at a. You would multiply by (z − a)M .
This would give
M
f (z) (z − a)M = g (z) (z − a)M + ∑ bn (z − a)M−n
n=1
Then you would take M − 1 derivatives and then take the limit as z → a. This would give
(M − 1)!b1 .
You can see from the formula that this will work and so there is no question that the
limit exists. Because of this, you could use L’Hospitals rule to formally find this limit. This
rule pertains only to real functions of a real variable so it is somewhat unjustified to use
it. However, since you know the limit exists in this case, you can pick a one dimensional
direction and apply L’Hospital to the real and imaginary parts to identify the limit which
is typically what needs to be done. It is a nice illustration of the difference between real
analysis which is characterized by pathology and complex analysis which is much more
agreeable. Difficult mathematical questions about whether something exists are often less
the issue in complex analysis.
provided the degree of p (x) is two less than the degree of q (x). This can be done by
using the contour γ R which goes from (−R, 0) to (R, 0) along the real line and then on the
semicircle of radius R from (R, 0) to (−R, 0).
y
x
Letting CR be the circular part of this contour, for large R,
p (z) CRk
Z
dz ≤ πR k+2
CR q (z) R
which converges to 0 as R → ∞. Therefore, it is only a matter of taking large enough R to
enclose all the roots of q (z) which are in the upper half plane, finding the residues at these
points and then computing the contour integral. Then you would let R → ∞ and the part
of the contour on the semicircle will disappear leaving the Cauchy principal value integral
which is desired. There are other situations which will work just as well. You simply need
to have the case where the integral over the curved part of the contour converges to 0 as
R → ∞.
Here is an easy example.
R∞ 1
Example 36.6.1 Find −∞ x2 +1 dx
You know from calculus that the answer is π. Lets use the method of residues to find
this. The function z21+1 has poles at i and −i. We don’t need to consider −i. It seems clear
that the pole at i is of order 1 and so all we have to do is take
x−i 1 1
lim = (x − i) =
1 + x2
z→i (x − i) (x + i) 2i
factoring 1 + x4 and computing the limit, you could get the answer. Applying L’Hospital’s
rule to identify the limit you know is there,
1 1 √
1
lim √ 3 = − i 2
z→−( 12 + 21 i) 2 4z 8 8
√
Similarly, the residue at 21 + 12 i 2 is
1 1 √
− + i 2
8 8
Then the contour integral is
1 1 √ 1 1 √ 1√
2πi − i 2 + 2πi − + i 2 = 2π
8 8 8 8 2
You might observe that this is a lot easier than doing the usual partial fractions and trig
substitutions etc. Now here is another tedious example.
R∞ x+2
Example 36.6.3 Find −∞ 2 dx
(x2 +1)(x2 +4)
The poles of interest are located at i, 2i. The pole at 2i is of order 2 and the one at i is
of order 1. In this case, the partial fractions expansion is
1 2 1 2 1 2
9x+ 9 3x+ 3 9x+ 9
− −
x2 + 1 (x2 + 4)2 x2 + 4
The pole at i would be
1 2 1 2
9z+ 9 (z − i) 9i+ 9 1 1
lim = = − i
z→i (z + i) (z − i) (i + i) 18 9
Now consider the pole at 2i by consideration of the next two terms in the partial fractions
expansion. You must multiply it by (x − 2i)2 , take the derivative and then take a limit as
x → 2i. Multiplying and taking the derivative yields
!
1 2
3 x + 3 1
Dx 2
=− (x + 4 − 2i)
(x + 2i) 3 (x + 2i)3
Then you have to take a limit as x → 2i which is
1
− i
48
Finally, consider the last term which has a pole of order 1.
1
x + 92 (x − 2i)
1 1
lim 9 = − i
x→2i (x − 2i) (x + 2i) 18 18
Then adding in the minus sign, we have the following for the integral.
1 1 1 1 1 5
2πi − i + 2πi − − i − 2πi − i = π
18 9 18 18 48 72
Sometimes you don’t blow up the curves and take limits. Sometimes the problem of
interest reduces directly to a complex integral over a closed curve. Here is an example of
this.
36.6. EVALUATION OF IMPROPER INTEGRALS 741
1 cos θ
Z π
dθ .
2 −π 2 + cos θ
For z on the unit circle, z = eiθ , z = 1z and therefore, cos θ = 12 z + 1z . Thus dz = ieiθ dθ
and so dθ = dz iz . Note that this is done in order to get a complex integral which reduces
to the one of interest. It follows that a complex integral which reduces to the integral of
interest is
1 1
1 2 z+ z dz 1 z2 + 1
Z Z
1 1
= dz
2i γ z (4z + z2 + 1)
2i γ 2 + 2 z + z z
where γ is the unit circle oriented counter clockwise. Now the integrand has poles of order
1 at those points where z 4z + z2 + 1 = 0. These points are
√ √
0, −2 + 3, −2 − 3.
Only the first two are inside the unit circle. It is also clear the function has simple poles at
these points. Therefore,
z2 + 1
res ( f , 0) = lim z = 1.
z→0 z (4z + z2 + 1)
√
res f , −2 + 3 =
√ z2 + 1 2√
lim √ z − −2 + 3 2
=− 3.
z→−2+ 3 z (4z + z + 1) 3
It follows
cos θ 1 z2 + 1
Z π Z
dθ = dz
0 2 + cos θ 2i γ z (4z + z2 + 1)
2√
1
= 2πi 1 − 3
2i 3
2√
= π 1− 3 .
3
Other rational functions of the trig functions will work out by this method also.
Sometimes we have to be clever about which version of an analytic function that re-
duces to a real function we should use. The following is such an example.
It is natural to try and use the contour in the following picture in which the small circle
has radius r and the large one has radius R.
y
x
However, this will create problems with the log since the usual version of the log is not
defined on the negative real axis. This difficulty may be eliminated by simply using another
branch of the logarithm as in Example 36.1.3. Leave out the ray from 0 along the negative
y axis and use this example to define L (z) on this set. Thus L (z) = ln |z| + i arg1 (z) where
arg1 (z) will be the angle θ , between − π2 and 3π iθ
2 such that z = |z| e . Then the function
L(z)
used is f (z) ≡ 1+z4 . Now the only singularities contained in this contour are
1√ 1√ 1√ 1√
2 + i 2, − 2+ i 2
2 2 2 2
√ √
and the integrand f has simple poles at these points. Thus res f , 21 2 + 21 i 2 =
√ √
z − 12 2 + 12 i 2 (ln |z| + i arg1 (z))
lim √
√
z→ 12 2+ 12 i 2 1 + z4
√ √
(ln |z| + i arg1 (z)) + z − 12 2 + 12 i 2 (1/z)
= lim √
√
z→ 12 2+ 12 i 2 4z3
q
1 1 π
ln + 2 +i4
2 1 √
1
= √ √ 3 = 32 − 32 i 2π
4 12 2 + 21 i 2
Similarly
−1 √ 1√
res f , 2+ i 2 =
2 2
3 √ 3 √
2π + i 2π.
32 32
Of course it is necessary to consider the integral along the small semicircle of radius r. This
reduces to Z 0
ln |r| + it
rieit dt
it 4
π 1 + (re )
R L(z)
Observing that large semicircle 1+z4 dz → 0 as R → ∞,
Z R Z 0 √
lnt 1 1 1
e (R) + 2 lim 4
dt + iπ 4
dt = − + i π2 2
r→0+ r 1+t −∞ 1 + t 8 4
2
To evaluate these integrals we will consider f (z) = eiz on the curve which
goes from
1+i
√
the origin to the point r on the x axis and from this point to the point r 2
along a circle
of radius r, and from there back to the origin as illustrated in the following picture.
y
x
Thus the curve is shaped like a slice of pie. The angle is 45◦ . Denote by γ r the curved
part. Since f is analytic,
Z r Z r 1+i 2
1+i
Z
2 2 i t √
0 = eiz dz + eix dx − e 2 √ dt
γr 0 0 2
Z r Z r
1+i
Z
2 2
2
= eiz dz + e−t
eix dx −
√ dt
γr 0 0 2
Z r √
π 1+i
Z
iz2 ix2
= e dz + e dx − √ + e (r)
γr 0 2 2
744 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
R ∞ −t 2 √
where e (r) → 0 as r → ∞. This used 0 e dt = 2π . Now examine the first of these
integrals.
Z Z π
2 4 it 2
eiz dz = ei(re ) rieit dt
γr 0
Z π
4 2 sin 2t
≤ r e−r dt
0
Z 1 −r2 u
r e
= √ du
2 0 1 − u2
Z −(3/2) Z 1
r r
1 r 1 1/2
= √ du + √ e−(r )
2 0 1 − u2 2 0 1 − u2
which converges to zero as r → ∞. Therefore, taking the limit as r → ∞,
√ Z∞
π 1+i 2
√ = eix dx
2 2 0
The following example is one of the most interesting. By an auspicious choice of the
contour it is possible to obtain a very interesting formula for cot πz known as the Mittag
Leffler expansion of cot πz.
Example 36.6.7 Let γ N be the contour which goes from −N − 12 − Ni horizontally to N +
1 1 1
2 − Ni and from there, vertically to N + 2 + Ni and then horizontally to −N − 2 + Ni and
finally vertically to −N − 21 − Ni. Thus the contour is a large rectangle and the direction of
integration is in the counter clockwise direction.
(−N − 21 ) + Ni (N + 12 ) + Ni
(−N − 12 ) − Ni (N + 12 ) − Ni
Consider the following integral.
π cos πz
Z
IN ≡ dz
γN (α 2 − z2 ) sin πz
where α is not an integer. This will be used to verify the formula of Mittag Leffler,
∞
1 2 π cot πα
2
+∑ 2 2
= . (36.10)
α n=1 α − n α
36.6. EVALUATION OF IMPROPER INTEGRALS 745
It is left as an exercise to verify that cot πz is bounded on this contour and that therefore,
IN → 0 as N → ∞. Now compute the residues of the integrand at ±α and at n where
|n| < N + 12 for n an integer. These are the only singularities of the integrand in this contour
and therefore, IN can be obtained by using these. First consider the residue at ±α. These
are obviously poles of order 1 and so to get the one at α, you take
π (−1)n 1
= = 2
(α 2 − n2 ) π (−1)n α − n2
Therefore, " #
N
1 π cot πα
0 = lim IN = lim 2πi ∑ 2 2
−
N→∞ N→∞ n=−N α − n α
which establishes the following formula of Mittag Leffler.
N
1 π cot πα
lim ∑ = .
N→∞ n=−N α 2 − n2 α
thing called a branch cut. The idea is you need to pick a single determination of z p−1
which converges to x p−1 for x real and z getting close to x. It will make use of the following
contour. In this contour, the radius of the large circle is R and the radius of the small one
is r. The angle between the straight lines and the x axis is ε. Denote this contour by γ R,r,ε .
Choose a branch of the logarithm of the form log (z) = ln |z| + iA (z) where A (z) is the
angle of z in (0, 2π). Thus
z p−1 = e(p−1)(ln|z|+iA(z))
The straight lines, the one on top. reiε + t Reiε = z, t ∈ [0, 1].
746 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
Contour integral:
p−1 (p−1)iε
reiε + t Reiε
Z 1
e
Reiε dt
1 + reiε + t (Reiε ) f s
0
The one on the bottom: rei(2π−ε) + t Rei(2π−ε) = z, t ∈ [0, 1]
Contour integral:
p−1
Z 1 rei(2π−ε) + t Rei(2π−ε) e(p−1)i(2π−ε)
− Rei(2π−ε) dt
0 1 + rei(2π−ε) + t Rei(2π−ε)
The integral over the small circle: z = reit ,t ∈ [ε, 2π − ε]
Contour integral:
Z 2π−ε p−1 (p−1)it
r e
− rieit dt
ε 1 + reit
The integral over the large circle: z = Reit ,t ∈ [ε, 2π − ε]
Contour integral:
Z 2π−ε p−1 (p−1)it
R e
Rieit dt
ε 1 + Reit
z p−1
Z
2πieiπ(p−1) = dz
γ R,r,ε 1+z
The residue at −1 of the function is eiπ(p−1) and so the contour integral on the right equals
the sum of those other integrals above. Now let ε → 0. This yields
z p−1
Z
2πieiπ(p−1) = dz
γ R,r 1+z
36.7 Exercises
R ∞ cos x
1. Find the following improper integral. −∞ 1+x4 dx Hint: Use upper semicircle con-
∞ e
R ix
tour and consider instead −∞ 1+x4
dx. This is because the integral over the semicircle
will converge to 0 as R → ∞ if you have eiz but this won’t happen if you use cos z be-
cause cos z will be unbounded. Just write down and check and you will see why this
eiz
happens. Thus you should use 1+z 4 and take real part. I think the standard calculus
techniques will not work for this horrible integral.
748 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
cos(x)
dx. Hint: Do the same as above replacing cos x with eix .
R∞
2. Find −∞ 2
(1+x2 )
3. Consider the following contour.
The small semicircle has radius r and is centered at (1, 0). The large semicircle has
radius R and is centered at (0, 0). Use the method of residues to compute
Z R Z r
x x
lim lim dx + dx
r→0 R→∞ r 1 − x3 −R 1 − x
3
∞ x R
This is called the Cauchy principal value for −∞ 1−x3
dx. The integral makes no sense
in terms of a real honest integral. The function has Ra pole on the x axis. Another
instance of this was in Problem 6 on Page 720 where 0∞ sin (x) /xdx was determined
similarly. However, you can define such a Cauchy principal value. Rather than
belabor this issue, I will illustrate with this example. These principal value integrals
occur because of cancelation. They depend on a particular way of taking a limit.
They are not mathematically respectable but are certainly interesting. They are in that
general area of finding something by taking a certain kind of symmetric limit. Such
problems include the Lebesgue fundamental theorem of calculus with the symmetric
derivative.
R 2π cos(θ )
4. Find 0 1+sin2 (θ )
dθ .
R 2π dθ
5. Find 0 2−sin θ .
R π/2 dθ
6. Find −π/2 2−sin θ .
7. Suppose you have a function f (z) which is the quotient of two polynomials in which
the degree of the top is two less than the degree of the bottom and you consider the
contour.
Then define Z
f (z) eisz dz
γR
in which s is real and positive. Explain why the integral makes sense and why the
part of it on the semicircle converges to 0 as R → ∞. Use this to find
eisx
Z ∞
dx, k > 0.
−∞ k 2 + x2
36.7. EXERCISES 749
383, F (0) = 0. Using the mean value theorem on difference quotients, explain why
Z ∞ √
′ −x2 π −b2
F (b) = −2xe sin (2bx) dx + 2b e
0 2
Z ∞ √
′ −x2 π −b2
F (b) = 2b e cos (2bx) dx + e
0 2
√ √
π −b2 π −b2
= 2b F (b) + e + e
2 2
√ 2
= 2bF (b) + π2be−b
Now use the integrating factor method for solving linear differential equations from
beginning differential equations to solve the ordinary differential equation.
d −b2 √ 2
e F (b) = π2be−2b
db
Then
2 1 2√ 1√
e−b F (b) − 0 = − e−2b π + π
2 2
1 2 1 √ −b2
F (b) = − e−b + πe =0
2 2
You fill in the details. This is meant to be a review of real variable techniques.
9. For b > 0, use the contour which goes from −a to a to a + ib to −a + ib to −a.
2
Then let a → ∞ and show that the integral of e−z over the vertical parts of this
contour converge to 0. Hint: You know from an earlier problem what happens
2 2
on the bottom part of the contour. Also for z = x + ib, e−z = e−(x −b +2ixb) =
2
2 2
eb e−x (cos (2xb) + i sin (2xb)) .
10. Consider the circle of radius 1 oriented counter clockwise. Evaluate
Z
z−6 cos (z) dz
γ
R ∞ 2+x2
12. Find 0 1+x4 dx.
R ∞ x1/3
13. Find 0 1+x2 dx
750 CHAPTER 36. ISOLATED SINGULARITIES AND ANALYTIC FUNCTIONS
14. Suppose f is an entire function and that it has no zeros. Show there must exist an
entire function g such that f (z) = eg(z) . Hint: Letting γ (0, z) be the line segment
′ (w) ′ (z)
which goes from 0 to z, let ĝ (z) ≡ γ(0,z) ff (w) dw. Then show that ĝ′ (z) = ff (z)
R
. Then
′ ′
e−ĝ(z) f (z) = e−ĝ(z) −ff(z)(z) f (z) + e−ĝ(z) f ′ (t) = 0. Now when you have an entire
function whose derivative is 0, it must be a constant. Modify ĝ (z) to make f (z) =
eg(z) .
Hint: You know f (z) = ∏nk=1 (z − α k ) h (z) where h (z) has no zeros. To see this, note
that near α 1 , f (z) = a1 (z − α 1 ) + a2 (z − α 1 )2 + · · · and so f (z) = (z − α 1 ) f1 (z)
where f1 (z) ̸= 0 at α 1 . Now do the same for f1 and continue till fn = h. Now use the
above problem.
Chapter 37
Z R
lim f (t) dt
R→∞ a
First is a very important function defined in terms of an integral. Also recall that the value
of the Riemann integral does not depend on the value of the function at single points. All
this is more satisfactory if you do it in the context of the Lebesgue integral. Here it is
assumed that all functions are piecewise continuous having finitely many jumps in every
finite interval so there will be no difficulty in writing the Riemann integral.
whenever α > 0.
751
752 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
Z δ −1
!
−1
= lim e−δ δ − e−(δ ) δ
α −α
+α e−t t α−1 dt = αΓ (α)
δ →0 δ
Now it is defined that 0! = 1 and so Γ (1) = 0!. Suppose that Γ (n + 1) = n!, what of
Γ (n + 2)? Is it (n + 1)!? if so, then by induction, the proposition is established. From
what was just shown,
Γ (n + 2) = Γ (n + 1) (n + 1) = n! (n + 1) = (n + 1)!
Similar usages of this symbol are defined synonomously. Sometimes I will just write L1
to indicate that the absolute value of the function is integrable. Here is the definition of a
Laplace transform.
37.2. LAPLACE TRANSFORM 753
Definition 37.2.1 A function φ has exponential growth on [0, ∞) if there are positive con-
stants λ ,C such thatR |φ (t)| ≤ Ceλt for all t. Then for s > λ , one defines the Laplace
transform L φ (s) ≡ 0∞ φ (t) e−st dt.
Theorem 37.2.2 If s is a complex number and Re s > λ where |φ (t)| ≤ Ceλt , and
Z ∞
f (s) ≡ e−st φ (t) dt
0
f (s + h) − f (s)
Z ∞
lim ≡ f ′ (s) = (−t) e−st φ (t) dt
h→0 h 0
Then
!
e−ht − 1 1 ∞
k k k
+t = ∑ (−1) h t −1 +t
h h k=0
!
∞
k k−1 k
= ∑ (−1) h t +t
k=1
∞
= h ∑ (−1)k hk−2t k
k=2
Thus
e−ht − 1
+t ≤ |h|t 2 e|h|
h
and so
Z ∞ −(s+h)t
e − e−st
Z ∞ Z ∞
φ (t) dt + te−st φ (t) dt ≤ |h|t 2 e|h|t e− Re(s)t eλt dt
0 h 0 0
where ε is small enough that Re (s) > λ + ε. Thus the integral is finite for all |h| small
enough and it is multiplied by |h|. ■
This shows that f is analytic on Re (s) > λ . Hence it has all derivatives. In fact, you
can do a similar computation to the above and verify that
Z ∞
f (k)
(s) = (−t)k e−st φ (t) dt
0
754 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
1
Z ∞
F f (t) ≡ √ e−itx f (x) dx
2π −∞
The inverse Fourier transform is defined the same way except you delete the minus sign in
the complex exponential.
1
Z ∞
F −1 f (t) ≡ √ eitx f (x) dx
2π −∞
Does it deserve to be called the “inverse” Fourier transform? This question will be
explored somewhat below.
There is a very important improper integral involving sin (x) /x. You can show with a
little estimating that x → sin (x) /x is not in L1 (0, ∞) . Nevertheless, a lot can be said about
improper integrals involving this function.
Proof: The first claim follows from Problem 6 on Page 720 above.
Now consider δ∞ sin(ru)
R R ∞ sin(ru) R δ sin(ru)
u du. It equals 0 u du − 0 u du which can be seen from
the definition of what the improper integral means. Also, you can change the variable. Let
ru = t so rdu = dt and the above reduces to
Z rδ
sin (t) 1 sin (t) sin (ru)
Z ∞ Z ∞
r dt − dt = du
0 t r 0 t δ u
Thus Z rδ
sin (t) sin (ru)
Z ∞
π
− dt = du
2 0 t δ u
and so limr→∞ δ∞ sin(ru)
R
u du = 0 from the first part.
Now consider the third claim, the Riemann Lebesgue lemma. For I an interval let
(
1 if t ∈ I
XI (t) ≡
0 if t ∈
/I
37.3. FOURIER TRANSFORM 755
Then for f ∈ L1 , let fR (t) ≡ X[−R,R] (t) f (t). Then for R large,
Z ∞ Z ∞ Z −R
| f (t) − fR (t)| dt = | f (t)| dt + | f (t)| dt < ε
−∞ R −∞
Now fR is Riemann integrable and so there is a step function s (t) = ∑ni=1 ai XIi (t) such that
|s (t)| ≤ | fR (t)| and
Z R Z ∞
| fR (t) − s (t)| dt = | fR (t) − s (t)| dt < ε
−R −∞
This follows from the definition of the Riemann integral as a limit of integrals of step
functions, details are left for you. Therefore,
Z ∞
|s (t) − f (t)| dt < 2ε
−∞
Now
Z ∞ Z ∞ Z ∞
f (t) sin (rt) dt ≤ |( f (t) − s (t)) sin (rt)| dt + s (t) sin (rt) dt
−∞ −∞ −∞
Z ∞
≤ 2ε + s (t) sin (rt) dt (37.1)
−∞
∞ R
It remains to verify that limr→∞ −∞ s (t) sin (rt) dt =R0. Since s (t) is a sum of scalars times
XI for I an interval, it suffices to verify that limr→∞ −∞ ∞
X[a,b] (t) sin (rt) dt = 0. However,
this integral is just
Z b
−1 1
sin (rt) dt = cos (rb) + cos (ra)
a r r
which clearly converges to 0 as r → ∞. Therefore, for r large enough, 37.1 implies
Z ∞
f (t) sin (rt) dt < 3ε
−∞
Definition 37.3.3 The following notation will be used assuming the limits exist.
Theorem 37.3.4 Suppose that g ∈ L1 (R) and that at some x, g is locally Holder continuous
from the right and from the left. This means there exist constants K, δ > 0 and r ∈ (0, 1]
such that for |x − y| < δ ,
|g (x+) − g (y)| < K |x − y|r (37.2)
for y > x and
|g (x−) − g (y)| < K |x − y|r (37.3)
for y < x. Then
2 sin (ur) g (x − u) + g (x + u)
Z ∞
lim du
r→∞ π 0 u 2
g (x+) + g (x−)
= .
2
756 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
R ∞ sin(ru)
Proof: As in the proof of Theorem 37.3.2, changing variables shows that π2 0 u du =
[Link],
2 ∞ sin (ur) g (x − u) + g (x + u) g (x+) + g (x−)
Z
du −
π 0 u 2 2
2 sin (ur) g (x − u) − g (x−) + g (x + u) − g (x+)
Z ∞
= du
π 0 u 2
2 g (x − u) − g (x−) g (x + u) − g (x+)
Z δ
= sin (ur) + du
0 π 2u 2u
2 ∞ sin (ur) g (x − u) − g (x−) g (x + u) − g (x+)
Z
+ + du (37.4)
π δ u 2 2
Second Integral: It equals
2 ∞ sin (ur) g (x − u) + g (x + u) g (x−) + g (x+)
Z
− du
π δ u 2 2
2 sin (ur) g (x − u) + g (x + u)
Z ∞
=
π δ u 2
2 sin (ur) g (x−) + g (x+)
Z ∞
− (37.5)
π δ u 2
From part 2 of Theorem 37.3.2,
2 sin (ur) g (x−) + g (x+)
Z ∞
lim du = 0
r→∞ π δ u 2
Thus consider the first integral in 37.4.
2 ∞ sin (ur) g (x − u) + g (x + u)
Z
du
π δ u 2
1 ∞ sin (ur) 1 ∞ sin (ur)
Z Z
= g (x − u) du + g (x + u) du
π δ u π δ u
Z −δ
1 sin (ur) sin (ur)
Z ∞
= g (x + u) du + g (x + u) du
π −∞ u δ u
Now Z −δ Z −δ
sin (ur) g (x + u)
g (x + u) du = sin (ur) du
−∞ u −∞ u
g(x+u) 1 g(x+u)
and u ≤ δ |g (x + u)| for u < −δ . Thus u → u is in L1 ((−∞, −δ )) . Indeed,
Z −δ
g (x + u) 1 1
Z Z
du ≤ |g (x + u)| du = |g (y)| dy < ∞
−∞ u δ R δ R
One merely takes a constant outside the integral and then moves a constant inside an inte-
gral. Consider the following manipulations.
Z R
1
Z ∞
eixt e−ity g (y) dydt =
2π −R −∞
Z ∞Z R Z ∞Z R
1 1
eixt e−ity g (y) dtdy = ei(x−y)t g (y) dtdy
2π −∞ −R 2π −∞ −R
Z R Z R
1 ∞
Z
= g (y) ei(x−y)t dt + e−i(x−y)t dt dy
2π −∞ 0 0
Z R
1 ∞
Z
= g (y) 2 cos ((x − y)t) dt dy
2π −∞ 0
1 sin R (x − y) 1 sin Ry
Z ∞ Z ∞
= g (y) dy = g (x − y) dy
π −∞ x−y π −∞ y
1 ∞ sin Ry
Z
= (g (x − y) + g (x + y)) dy
π 0 y
2 ∞ g (x − y) + g (x + y) sin Ry
Z
= dy
π 0 2 y
758 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
and also s → L g (s) is differentiable on Re (s) > λ in the sense that if h ∈ C and G (s) ≡
L g (s) , then
G (s + h) − G (s)
Z ∞
lim = G′ (s) = − ue−su g (u) du
h→0 h 0
Thus G is analytic and has all derivatives. Then the next theorem shows how to invert the
Laplace transform. It is another one of those results which says that you get the mid point
of the jump when you do a certain process. It is like what happens in Fourier series where
the Fourier series converges to the midpoint of the jump under suitable conditions and like
what was just shown for the inverse Laplace transform. For a fairly elementary discussion
of this kind of thing related to Fourier series, see the single variable advanced calculus book
on my web page.
The next theorem gives a more specific version of what is contained in Theorem 4.2.3
presented later. However, this theorem does assume a Holder continuity condition which
is not needed for Theorem 4.2.3. I think that it is usually the case that the needed Holder
condition will be available.
Theorem 37.4.1 Let g be a piecewise continuous function defined on (0, ∞) which has
exponential growth
|g (t)| ≤ Ceλt for some real λ
and is Holder continuous from the right and left as in 37.2 and 37.3. For Re (s) > λ
Z ∞
L g (s) ≡ e−su g (u) du
0
1 R (γ+iy)t ∞ −(γ+iy)u
Z Z
e e g (u) dudy
2π −R −∞
Z R
1
Z ∞
= eγt eiyt e−(γ+iy)u g (u) dudy
2π −R −∞
where the contour is the straight line from γ − iR to γ + iR. Indeed, if you parametrize this
contour as z = γ + iy and use the procedures for evaluation of contour integrals, you get the
integral in 37.6. Then taking the limit as R → ∞ it is customary to write this limit as
1
Z γ+i∞
eut L g (u) du
2πi γ−i∞
This is called the Bromwich integral and as shown earlier it recovers the mid point of the
jump of g at t for every point t where g is Holder continuous from the right and from the
left. Remember t ≥ 0. Now u → eut L g (u) is analytic for Re (u) > η and in particular for
Re (u) ≥ γ therefore, all of the poles of u → L g (u) are contained in the set Re (u) < γ.
Indeed, in practice, u → L g (u) ends up being represented by a formula which is clearly a
meromorphic function, one which is analytic except for isolated poles.
So how do you compute this Bromwich integral? This is where the method of residues
is very useful. Consider the following contour.
760 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
y x=γ
Let η R be the above contour oriented as shown. The radius of the
circular part is R. Let CR be the curved part. Then one can show that
x
under suitable assumptions
1
Z
lim eut F (u) du = 0 (37.7)
R→∞ 2πi CR
Z π +arcsin c
2 R1−β
+ π −arcsin c
e(R cos θ +iR sin θ )t F Reiθ Rieiθ dθ
2 R( )
3π +arcsin c
Z
2 R( ) (R cos θ +iR sin θ )t
+ 3π −arcsin
c
e F Reiθ Rieiθ dθ
2 R1−β
Consider the last two integrals first. For large |z| , with z ∈ CR∗ , the sum of the absolute
values of these is no more than
π +arcsin c Z 3π +arcsin( c )
C R(cos θ )t C
Z
2 R1−β 2 R
eR(cos θ )t
Rdθ + e Rdθ
π −arcsin c
2 (R) Rα 3π −arcsin
2
c Rα
R1−β
c
c c
≤ CeR(cos( 2 −arcsin( R )))t arcsin 1−β + arcsin
π
R1−α
R c R c
3π c
+CeR(cos( 2 +arcsin( R )))t arcsin 1−β + arcsin R1−α
R R
37.5. THE BROMWICH INTEGRAL 761
1
Z
| f (tˆ) − f (t)| ≤ f (tˆ) − eutˆF (u) du
2πi ηR
1 1
Z Z
+ eutˆF (u) du − eut F (u) du
2πi ηR 2πi ηR
1
Z
+ eut F (u) du − f (t)
2πi ηR
1 1
Z Z
= eutˆF (u) du − eut F (u) du
2πi ηR 2πi ηR
Since η R is fixed, it follows that if |tˆ − t| is small enough, then | f (tˆ) − f (t)| is also small.
■
It follows from Lemma 37.5.1 that
1 γ+iR Z
f (t) ≡ lim eut F (u) du
R→∞ 2πi γ−iR
1 1
Z γ+iR Z
ut ut
= lim e F (u) du + e F (u) du
R→∞ 2πi γ−iR 2πi CR
1
2πi sum of residues of the poles of ezt F (z)
=
2πi
= sum of residues.
The following procedure shows how the Bromwich integral can be computed to obtain
an actual formula for a function. However, the integral itself will make sense and could be
numerically computed to solve for the inverse Laplace transform.
762 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
There are two residues of this function, one at i and one at −i. At both of these points
the poles are of order two and so we find the residue at i by
!
d ets s (s − i)2 −iteit
res ( f , i) = lim =
s→i ds (s2 + 1)2 4
From the above procedure, the function f (t) is the sum of these.
ite−it −iteit 1
it e−it − eit
+ =
4 4 4
1
= it (cos (t) − i sint − (cost + i sint))
4
1
= t sint
2
You should verify that this actually works giving L ( f ) = s
2 .
(s2 +1)
Example 37.5.5 Find f (t) if F (s) , the Laplace transform is e−s /s.
est e−s
You need to compute the residues of s . The function equals
1 ∞ (−1)k (t − 1)k sk
∑ .
s k=0 k!
Thus the residue is 1. However, this fails to be the function whose Laplace transform is
F (s) . What is wrong? The problem with this is the failure of the estimate on F (s) to hold
for large s. Indeed, if s = −n, you would have en /n but it would need to be less than C/nα
which is not possible. The estimate requires F (s) → 0 as |s| → ∞ and this does not happen
here. You can verify directly that the function which works is u1 (t) which is 0 for t < 1
and 1 for t ≥ 1. Thus if the estimate does not hold, the procedure does not necessarily hold
either.
37.5. THE BROMWICH INTEGRAL 763
If Re p < γ for all p a pole of F (s) and if F (s) is meromorphic and satisfies the growth
condition 37.8, and if f (t) is defined by that Bromwich integral, is it true that F (s) is the
Laplace transform of f (t) for large s? Thus
Z R
1 1
Z γ+i∞
f (t) ≡ lim e(γ+iy)t F (γ + iy) dy = ezt F (z) dz
R→∞ 2π −R 2πi γ−i∞
is eventually constant because the contour will have enclosed all poles of F (z), but as R
continues to increase, the integral over the curved part CR converges to 0. Let Re s be larger
than γ. One needs to consider
1
Z ∞ Z γ+i∞
L ( f ) (s) = e−st ezt F (z) dzdt
0 2πi γ−i∞
1
Z ∞ Z
−st
= e lim ezt F (z) dzdt
2πi 0 R→∞ η R
This equals Z r
1
Z
lim e−st lim ezt F (z) dzdt
r→∞ 2πi 0 R→∞ η R
Eventually, for all R large enough, the contour includes all of the finitely many poles of
F (z). There are only finitely many poles because of the estimate on F (z). Thus we can
pick R large enough that the limit on the inside equals the contour integral. Thus
1
Z ∞ Z
L ( f ) (s) = e−st ezt F (z) dzdt
2πi 0 ηR
Z r
1
Z
= lim e−st ezt F (z) dzdt
r→∞ 2πi 0 ηR
1 F (z)
Z
= dz
2πi ηR s−z
Now this contour integral is not zero because F (z) is not analytic on the inside of η ∗R . Let
the orientation of η R be switched and call the new contour η̂ R . Then
1 F (z)
Z
L ( f ) (s) = dz
2πi η̂ R z−s
764 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
Is this equal to F (s)? Consider a large circular contour of radius M where M > |s| and
orient it counter clockwise about s as shown in the following picture. Denote this oriented
curve as η M .
y
x=c
x
s
F (z) C 1
Z
dz ≤ α 2πM
ηM z−s M M − |s|
Now as M → ∞, this converges to 0. Therefore, from the usual Cauchy integral formula,
Z
1 F (z) F (z)
Z
F (s) = dz + dz
2πi η̂ R z − s ηM z − s
1 F (z) 1 F (z)
Z Z
F (s) = dz = dz
2πi η̂ R z−s 2πi ηR s−z
Thus this shows the following interesting proposition. This proposition shows conditions
under which a meromorphic function is the Laplace transform of a function which happens
to be given by the Bromwich integral and they are the conditions used earlier.
Proposition 37.5.6 If Re p < γ for all p a pole of F (s) and if F (s) is meromorphic and
satisfies the growth condition 37.8, and if f (t) is defined by the Bromwich integral, then
F (s) is the Laplace transform of f (t) for large s.
37.6 Exercises
2
1. Let F (s) = so it is the Laplace transform of some f (t). Use the method of
(s−1)2 +4
residues to determine f (t).
2. This problem is about finding the fundamental matrix for a system of ordinary dif-
ferential equations
Φ′ (t) = AΦ (t) , Φ (0) = I
having constant coefficients. Here A is an n × n matrix and I is the identity matrix.
A matrix, Φ (t) satisfying the above is called a fundamental matrix for A. In the
following, s will be large, larger than the magnitude of all poles of (sI − A)−1 .
R
(·)
(a) Show that L 0 f (u) du (s) = 1s F (s) where F (s) ≡ L ( f ) (s)
(c) Show that there exists an n × n matrix Φ (t) such that L (Φ) (s) = (sI − A)−1 .
Hint: From linear algebra
cof (sI − A) ji
(sI − A)−1 =
ij det (sI − A)
Show that the i jth entry of (sI − A)−1 satisfies the conditions of Proposition
37.5.6 and so there exists Φ (t) such that L (Φ) (s) = (sI − A)−1 . By Corollary
37.5.2, this t → Φ (t) is continuous.
(d) Thus (sI − A) L (Φ) (s) = I. Then explain why I − 1s A L (Φ) (s) = 1s I =
L (I) and
1
L (Φ) (s) − L (AΦ) (s) = L (I)
s
Z (·)
L (Φ) − L AΦ (u) du = L (I)
0
so Z t
Φ (t) − AΦ (u) du = I
0
and so Φ is a fundamental matrix.
(e) Next explain why Φ must be unique by showing that if Φ (t) is a fundamen-
tal matrix, then its Laplace transform must be (sI − A)−1 and use the theorem
which says that if the two continuous functions have the same Laplace trans-
form, then they are the same function.
3. In the situation of the above problem, show that there is one and only one solution to
the initial value problem
and it is given by Z t
x (t) = Φ (t) x0 + Φ (t − u) f (u) du
0
R
(·)
Hint: Verify that L 0 Φ (t − u) f (u) du (s) = L (Φ) (s) L (f ) (s) . Thus if x is
given by the variation of constants formula just listed, then
Now divide by s and verify x (t) = x0 + 0t Ax (u) du + 0t f (u) du. You could also
R R
simply differentiate the variation of constants formula using chain rule and verify it
works.
766 CHAPTER 37. SOME FUNDAMENTAL FUNCTIONS AND TRANSFORMS
Part IV
767
Chapter 38
Probability
if this limit exists. Otherwise the improper integral is not defined. If f is only Riemann
integrable on [δ , R] for each δ < R, then
Z ∞ Z R
f (x) dx ≡ lim f (x) dx
0 (δ ,R)→(0,∞) δ
R∞
provided this limit exists. This expression means: There exists I ≡ 0 f (x) dx such that for
each ε > 0 there is R0 and δ 0 such that if δ < δ 0 and R > R0 , then
Z R
f (x) dx − I < ε
δ
R0
Otherwise we don’t give a definition
R∞
of the improper integral. Integrals of the form −∞ f (x) dx
are defined similarly. As to −∞ f (x) dx, it equals
Z ∞ Z 0
f (x) dx + f (x) dx
0 −∞
provided these last two exist. As an application of polar coordinates, here is an important
theorem.
2 √ R ∞ −x2 √
Theorem 38.1.1 0∞ e−x dx = 12 π and −∞
R
e dx = π.
R R −x2 2 2
dx. Then IR IR = 0R 0R e−x e−y dx. Also
R R
Proof: Let IR ≡ 0 e
I ≡ lim IR
R→∞
769
770 CHAPTER 38. PROBABILITY
also exists. This is left as an exercise. Let DR be the quarter circle centered at (0, 0) with
2 2
radius R. Then using polar coordinates to write DR e−(x +y ) dx,
R
Z R Z π/2 Z RZ R
2 2 +y2
IR2 = e−r rdθ dr + √ e−(x ) dydx
0 0 0 R2 −x2
Z xZ 1 Z 1Z x
2 2 2 2
F (x) = 2ye−y (t +1) dtdy = 2ye−y (t +1) dydt
0 0 0 0
−y2 (t 2 +1)
Z 1
!
e
= − 2 |x
0 t +1 0
2 2
!
e−x (t +1)
Z 1
1 π
= 2
− 2 dt = − e (x)
0 1+t t +1 4
2
R 2
∞ −t 2
where |e (x)| < e−x . It follows on taking a limit that 0 e dt = π4 .
√
Corollary 38.1.2 Γ (1/2) = π
R ∞ −t −1/2
Proof: By definition it is 0 e t dt. Let t = u2 so dt = 2udu. Then, changing the
variables,
1√ √
Z ∞ Z ∞
−u2 −1 2
Γ (1/2) = e u 2udu = 2 e−u du = 2 π= π■
0 0 2
38.2. COMBINATIONS 771
38.2 Combinations
The fundamental problem is to find the number of ways of selecting a subset of k ≤ n
elements from a set having n elements. For example, consider the set S = {1, 2, 3} . How
many subsets having two elements are there? In this case, you can simply list them. Here
they are
{1, 2} , {1, 3} , {2, 3}
This seems easy enough, but what if you had a set of 52 things like a deck of cards and you
wanted the number of ways of picking a set of 5 things from it. Then it would be a little
harder. Here is some standard notation.
!
n
Definition 38.2.1 Let 0 ≤ k ≤ n. Then denotes the number of subsets of a set
k
having n elements which have k elements.
The first says there is one subset which has no elements in it. Of course it is the empty
set. The next says there is one subset of a set having n things which has n things in it. Of
course, this would be the whole set itself. The last says there are!n subsets which have a
n
single element of the set in them. Now to get a formula for , here is a lemma.
k
{a1 , · · · , an , an+1 }
Here ai denotes the ith element of the set and this is just a list of the elements of the set.
Then there are two ways to select a set of k things from this !set depending on whether an+1
n
is in the set of k things. If it is, there are exactly ways to obtain such a set of
k−1
k things because it must be the number of ways of selecting the remaining k − 1 elements
from the first n elements in the set. The other case is where all
! k elements are selected from
n
the first n elements of the set. By definition, there are ways to do this. Thus
k
! ! !
n+1 n n
= +
k k−1 k
■
772 CHAPTER 38. PROBABILITY
Proof: You see easily this is true if n = 1. In this case, the only possibilities for k are
0, 1 the the formula gives the right answer in either of these cases. Assume the formula
holds for n. Then by Lemma 38.2.2 and the induction hypothesis, if 1 ≤ k ≤ n
! ! !
n+1 n n
= +
k k−1 k
n! n!
= +
(k − 1)! (n − k + 1)! k! (n − k)!
kn! n! (n − k + 1)
= +
k! (n − k + 1)! k! (n − k)! (n − k + 1)
kn! (n − k + 1) n! (n + 1) n! (n + 1)!
= + = =
k! (n − k + 1)! k! (n − k + 1)! k! (n + 1 − k)! k! (n + 1 − k)!
and so this proves the formula in the case that 1 ≤ k ≤ n. If k = 0 or n + 1, the definition of
the factorial symbol and the obvious observations of 38.1 shows the formula holds in these
cases also. ■
Notice that ! !
n n
= .
k n−k
Proof: In case n = 1, both sides reduce to a + b so it works in this case. Suppose now
it works for n. Then by induction,
!
n
n+1 n
(a + b) = (a + b) ∑ an−k bk
k=0 k
38.3. THE BINOMIAL THEOREM 773
! !
n n
n n
= ∑ an+1−k bk + ∑ an−k bk+1
k=0 k k=0 k
! !
n n+1
n n+1−k k n
= ∑ a b +∑ an+1−k bk
k=0 k k=1 k−1
! !
n n
n+1 n n+1−k k n
=a +∑ a b +∑ an+1−k bk + bn+1
k=1 k k=1 k−1
! !!
n
n+1 n n
=a +∑ + an+1−k bk + bn+1
k=1 k k−1
By Lemma 38.2.2 this reduces to
!
n
n+1 n+1
a +∑ an+1−k bk + bn+1
k=1 k
!
n+1
n+1
= ∑ an+1−k bk
k=0 k
which shows that when the formula holds for n it also holds for n + 1. ■
Another way to verify this important formula is as follows. For n a positive integer
(a + b)n must be of the form (a + b) (a + b) · · · (a + b) and it must consist of a sum of terms
of the form ak bn−k . How many are there for a given k? This involves the number of ways
to pick k factors in the product which contribute! a and the remaining factors contributing
n
b. Thus the coefficient of this term is . As to the case where k = 0, this means
k
all factors k n−k and this is
! contribute b and so there is only one way to obtain this term a b
n
. Thus the above product of terms reduces to
0
!
n
n
∑ k an−k bk
k=0
Thus (x + y)9 is the sum of terms ck xk yn−k and the ck which corresponds to k = 3 is 84.
8
Example 38.3.3 Find the constant coefficient of 2x + 3x−3 .
k
You have that this is the sum of constants times x8−k x−3 and so you need to have
8 − k − 3k = 0 so k = 2. It follows that this term is of the form
!
8 2 8! 6 2
(2x)6 3x−3 = 2 3 = 16 128
2 2!6!
774 CHAPTER 38. PROBABILITY
38.4 Exercises
1. Use the binomial theorem to expand or simplify the following.
(a) (x + y)5
(b) (x − y)5
(c) (x − y)4
(d) (x + h)3 − x3
(e) (x + h)4 − x4
(f) h−1 (x + h)5 − x5
(g) h−1 (x + h)6 − x6
4. Approximate 100 (1. 005)12 . This would be the amount in the bank after one year if
interest is 6% compounded monthly.
5. Show that for k ≥ 1,
k factors
! z }| {
n n (n − 1) · · · (n − k + 1)
= .
k k!
1, 1 1, 2 1, 3 1, 4 1, 5 1, 6
2, 1 2, 2 2, 3 2, 4 2, 5 2, 6
3, 1 3, 2 3, 3 3, 4 3, 5 3, 6
4, 1 4, 2 4, 3 4, 4 4, 5 4, 6
5, 1 5, 2 5, 3 5, 4 5, 5 5, 6
6, 1 6, 2 6, 3 6, 4 6, 5 6, 6
The first number represents the one on the first die and the second represents the number
on the second die. (die is singular for dice) How many ways are there to get a 4? From
the table, there are exactly 3 ways, (3, 1) , (2, 2) , (1, 3). How many possible outcomes are
38.5. COUNTING AND BASIC PROBABILITY 775
there? There are 36. Thus if every outcome is as likely as any other, the probability of
rolling a 4 is 3/36 or 1/12.
Now in a succession of rolls of the dice, the probability of a particular outcome on roll
k is not affected by what happened on earlier rolls of the dice. Each time the dice are rolled,
the probability of rolling a four is 1/12 and the probability rolling a non four is 11/12.
What is the probability of rolling a 5 twice in a row? In this case there would be 362
possible outcomes and only 42 of them are favorable to rolling two fives in succession.
(Four possibilities for the first roll of the dice and for each of these, four for the second.)
Thus the probability of this occurring is
42 1
2
=
36 81
What about the probability of a five on the first roll and a non five on the second? This
probability is
4 32 8
· = .
36 36 81
You can determine this the same way by counting the ways favorable to the desired outcome
and dividing this by the number of possible outcomes.
4 · 32 8
2
=
36 81
Similarly, the probability of rolling a non five followed by a five would be
32 4 8
· =
36 36 81
More generally, the probability of getting k fives and n − k non fives in a particular order
would be k n−k
4 32
.
36 36
More generally, you have a situation where the probability of k success with probability
p and (n − k) failures happening with probability q ≡ (1 − p) in any particular order is
pk qn−k . What is the probability of having k successes in n trials? This is known as the
binomial distribution. How many ways can k success happen in n trials? It can ! happen
n
exactly the number of ways there are of selecting k of the n trials. There are ways
k
for this to happen. Therefore, since each of these has the same probability, pk qn−k , the
probability of k successes in n trials is
!
n
pk qn−k
k
This motivates the following definition of the binomial distribution and the idea of a
random variable.
Definition 38.5.1 Define a “random variable” X to be the number of successes, each hav-
ing probability p in n trials. Thus X has values 0,1,· · · , n. If the probability that X has
value k, written
P (X = k)
776 CHAPTER 38. PROBABILITY
is given by !
n
P (X = k) = pk qn−k
k
then X is said to have a binomial distribution.
needs to equal 1 because the random variable must achieve one of the numbers 0, 1, 2, · · · , n.
This occurs by the binomial theorem,
!
n n
n
∑ P (X = k) = ∑ k pk qn−k = (p + q)n = 1n = 1.
k=0 k=0
There is a general principle of counting which should be mentioned. Suppose you have
m “positions” and n different things. How many ways are there to fill the m positions with
the n things? There are n choices for the first, and having filled this position, there are
n − 1 left to place in the second. Thus the number of ways to fill the first two positions
is n (n − 1) . Then, having filled these two, there are now n − 2 things left to place in the
third position and so there are n (n − 1) (n − 2) ways to fill the first three of these positions.
Continue this way till you run out of positions to fill. How many ways of filling them do
you obtain? You see that there are n (n − 1) (n − 2) · · · (n − m + 1) ways to do it. This is
called permutations of n things taken m at a time. See the exercise below.
Example 38.5.2 In a class of 12 students who are arranged in three rows of four students,
what is the probability that the particular four students, Eliphaz, Elihu, Zophar, and Bildad
will occupy the front four seats?
There are 4! ways for them to occupy these four seats in some order. There are 12 · 11 ·
10 · 9 ways to fill these seats in some order. Therefore, the probability is
4! 1
=
12 (11) (10) (9) 495
Of course, you don’t care about order in this problem so you could also do this in terms of
combinations of n things taken m at a time.
1 1
12!
=
4!8!
495
There is exactly one way to select these four students for the first four seats and then there
are 12!/ (4!8!) ways to fill these seats.
Example 38.5.3 In the above example involving 12 students, it is absolutely necessary for
disciplinary reasons that Eliphaz must not sit next to Elihu. If the students file in and sit
down randomly, what is the probability that Eliphaz ends up on the front right seat when
viewed by the teacher and is not sitting next to Elihu?
38.6. EXERCISES 777
There is one way to fill the front right seat with Eliphaz. Then there are 10 favorable
ways to fill the seat on the left side of Eliphaz with someone other than Eliphaz. There
are now 10 students left who can fill the remaining seats in any order because you have
used two. Thus there are 1 × 10 × 10 × 9 ways to have a favorable outcome. There are
12 × 11 × 10 × 9 ways for them to select seats at random. Therefore, the probability is
1 × 10 × 10 × 9 5
=
12 × 11 × 10 × 9 66
38.6 Exercises
1. Let k ≤ n where k and n are natural numbers. P (n, k) , permutations of n things taken
k at a time, is defined to be the number of different ways to form an ordered list of k
of the numbers {1, 2, · · · , n} . Show
n!
P (n, k) = .
(n − k)!
2. Now consider the word “mississippi”. By rearranging the letters, how many dis-
tinctly different words can you obtain? Note that for each list of these letters the four
different s are indistinguishable. There are therefore, 4! ways which are not really
different.
3. Using Problem 1, show the number of ways of selecting a set of k things from a set
n!
of n things is (n−k)!k! .
1 n
n+1
1
1+ ≤ 1+ .
n n+1
n n·(n−1)···(n−k+1)
Hint: Show first that k = k! . By the binomial theorem,
k factors
z }| {
1 n n k n
n 1 n · (n − 1) · · · (n − k + 1)
1+ =∑ =∑ .
n k=0 k n k=0 k!nk
n·(n−1)···(n−k+1)
Now consider the term k!nk
and note that a similar term occurs in the
1 n+1
binomial expansion for 1 + n+1 except that n is replaced with n + 1 wherever
this occurs. Argue the term got bigger and then note that in the binomial expansion
1 n+1
for 1 + n+1 , there are more terms.
778 CHAPTER 38. PROBABILITY
If X is a random variable having values in {0, 1, · · · , k} such that the probability that
X = j is given by the jth term of the above sum, then X is said to have a hyperge-
ometric distribution. Much much more can be said about this topic. Hint: If you
pick k things from N things m of which are marked and N − m unmarked, there are
various ways to do it determined by the value of j, the number of marked things out
of your sample of k things.
19. Suppose a pair of dice has one blue and the other one red. What is the probability
that when they are rolled the blue die delivers a strictly larger number than the red
die? Now what is the probability that either this happened or a 6 is rolled? What is
the probability that the blue is greater than the red and a 6 is rolled?
20. Recall the following table illustrating the possible outcomes of rolling a pair of dice.
1, 1 1, 2 1, 3 1, 4 1, 5 1, 6
2, 1 2, 2 2, 3 2, 4 2, 5 2, 6
3, 1 3, 2 3, 3 3, 4 3, 5 3, 6
4, 1 4, 2 4, 3 4, 4 4, 5 4, 6
5, 1 5, 2 5, 3 5, 4 5, 5 5, 6
6, 1 6, 2 6, 3 6, 4 6, 5 6, 6
Find the probability that you roll a 7 before you roll either a 3 or an 11. Hint: It can
happen in infinitely many distinct ways. You don’t roll either a 3 or an 11 for k rolls
and then on the kth roll you get a 7. Here k = 0, 1, 2, 3, · · · so you need to take a limit
of the partial sums associated with the different values of k and then take a limit. So
what is the probability of getting a 7 on try k + 1 and not getting either a 3 or an 11
k 1
before this? Argue it is 13
18 6.
22. Let X be the random variable which gives the number of heads when you flip a coin
6 times. Which value of X has the highest probability? What is the expected value
of X? What is the variance of X. For these last parts, see Problem 13 and 14 above.
23. You have a class of 12 students who will be seated in four rows consisting of three
students in each row. Jeroboam, Nadab, Baasha, and Elah must sit in the front for dis-
ciplinary reasons. Also, you absolutely must not have Baasha sitting next to Nadab
because Baasha is a thug who will attack Nadab. If Baasha is to sit on the front left
seat as viewed by the teacher, what is the probability that an acceptable outcome will
occur if the students take their seats completely at random?
random variable takes values in some subset of the integers. The following two examples
consider situations where X can only take finitely many values.
Example 38.7.1 Let an experiment be performed n times. Each time the experiment is
performed, the probability of a “success” is p and the probability of a “failure” is q, p +
q = 1. Then let X be the number of successes in the n experiments. The probability that
X = k, P (X = k) is !
n
pk qn−k
k
A distribution of this sort is called a binomial distribution.
Example 38.7.2 Let k ≤ m < N. If X is a random variable such P (X = j) , j ≤ k, is given
by ! !
m N −m
j k− j
P (X = j) ≡ !
N
k
this is called a hypergeometric distribution. This is when you have m marked fish and you
take a sample of k fish. Then X is the number of marked fish you get in your sample of k
fish. The probability it equals j is given by the above. Thus as explained in Problem 18 on
Page 778, ! !
m N −m
k j k− j
∑ ! =1
j=0 N
k
! !
m N −m
There are ways to get exactly j marked fish from a sample of k
j k− j
!
m
fish. You have ways to get j marked fish from the set of m marked fish and for
j
!
N −m
each of these, there are exactly ways to fill the set of k fish with non marked
k− j
fish. Thus ! ! !
k
m N −m N
∑ j =
j=0 k− j k
where the last is the total number of ways of selecting k fish from the N fish. Thus the
above claim is verified.
Now sometimes a random variable can take values from the set of all nonnegative in-
tegers. Suppose you have a binomial distribution in which the probability of a success is
extremely small and the number of trials is very large. Say pn = λ where n is large. Then
the probability of success in the n trials is
!
λ k λ n−k
n
P (X = k) = 1−
k n n
38.7. GENERAL CONSIDERATIONS PROBABILITY 781
λ n−k
n! 1
P (X = k) ≈ lim λk k 1−
n→∞ k! (n − k)! n n
λ n−k λ k −λ
n (n − 1) · · · (n − k + 1) k
= lim λ 1− = e
n→∞ k!nk n k!
Note that
∞
λ k −λ −λ
∞
λk
∑ k! e = e ∑ k! = e−λ eλ = 1.
k=0 k=0
Example 38.7.3 A random variable has Poisson distribution if for k a nonnegative integer,
λ k −λ
P (X = k) = e
k!
The sort of thing this models is the probability of being kicked by a mule k times in
some time interval of moderate length or the probability that k customers arrive at the check
out of a store in some 1 minute interval.
These random variables just discussed take values in a set of integers but often the
random variable takes values in the real numbers or Rn . When this is the case, you must
use an integral to determine the probability that the random variable is in some set. These
are called continuous random variables when you use a Riemann integral to determine the
probability that a random variable is in some set.
Example 38.7.4 Let (
x/2 if x ∈ [0, 2]
f (x) ≡
0 if x ∈
/ [0, 2]
R ∞
Thus −∞ f (x) dx = 1. Then f (x) is a distribution function for the random variable X if
P (X ∈ [a, b]) = ab f (x) dx. More generally, for all “suitable” sets F,
R
Z Z
P (X ∈ F) = f (x) dx ≡ XF (x) f (x) dx
F
where (
1 if x ∈ F
XF (x) ≡
0 if x ∈
/F
You really need the notions of measure spaces and Lebesgue integrals to do this right.
Now here is some terminology.
Definition 38.7.5 Two random variables X,Y are said to have the same distribution if for
all intervals I,
P (X ∈ I) = P (Y ∈ I)
Example 38.7.6 Let α > 0 and let f (x) ≡ Γ(α) 1
xα−1 e−x . Then the random variable X hav-
ing values in [0, ∞) has this as its distribution function if
Z b
f (x) dx = P (X ∈ [a, b]) .
a
R∞
Note that 0 f (x) dx = 1 from the definition of the gamma function.
782 CHAPTER 38. PROBABILITY
A modification of this density function gives the very important X 2 (r), chi squared,
distribution in the next example.
Example 38.7.7 Let r be a positive integer. The X 2 (r) distribution with r degrees of
freedom for a random variable having values in [0, ∞) is given by
1
f (x) = x(r/2)−1 e−x/2
Γ (r/2) 2r/2
Thus there are infinitely many of these, one for each r. I have no idea why they refer to r as
“degrees of freedom”.
1 1
Z ∞ Z ∞
x(r/2)−1 e−x/2 dx = (2t)(r/2)−1 e−t 2dt
0 Γ (r/2) 2r/2 0 Γ (r/2) 2r/2
1
Z ∞
= 2r/2 (t)(r/2)−1 e−t dt = 1
0 Γ (r/2) 2r/2
from the definition of Γ (r/2). The following picture gives the graphs of
Z x
1
Fr (x) ≡ t (r/2)−1 e−t/2 dt
0 Γ (r/2) 2r/2
0.5
0
0 5 10 15
As the number of degrees of freedom r increases, the graph becomes increasingly flat
near 0. This is good. Having many “degrees of freedom” is a fine thing because this
chi squared distribution can be used to estimate the variance of a normal distribution and
having the graph flat near 0 ends up meaning that you can be confident in a smaller upper
bound for the variance. This will be discussed more later. It turns out that having r large
is associated with having a large sample size. In other words, you are considering many
identically distributed random variables.
Example 38.7.8 Let X have values in R p . Then the density function of X will be f (x)
where Z Z
P (X ∈ A) = f (x) dV ≡ XA (x) f (x) dV
A
(
1 if x ∈ A
XA (x) =
0 if x ∈
/A
38.7. GENERAL CONSIDERATIONS PROBABILITY 783
where dV refers to the p dimensional volume. Thus the expression on the right is an integral
of a function of p variables. x = (x1 , · · · , x p ). We usually write dV as dx1 dx2 · · · dx p . Of
course the case p = 3 was discussed earlier and the higher dimensional case is exactly
similar. When it is desired to emphasize that X has values in R p it will be referred to as a
random vector and may be written in bold face.
The most important distribution is the normal distribution. It has two parameters and is
given as follows.
Example 38.7.9 Let µ, σ > 0 then a random variable X having values in R is normally
distributed if
Z b (x−µ)2
1 −
P (X ∈ (a, b)) = √ e 2σ 2 dx
2πσ a
The density function is then
1 (x−µ)2
−
√ e 2σ 2
2πσ
It is necessary to verify that this really is a density function. To do this, let
1 x−µ
y=
2 σ
Then, changing the variables in
1 (x−µ)2
Z ∞
−
√ e 2σ 2 dx
−∞ 2πσ
yields
1 y2 1 2√ 2
Z ∞ Z ∞ Z ∞
2
√ e− 2 dy = √ e−u 2du = √ e−u du
−∞ 2π −∞ 2π π 0
0.2
0
-4 -2 0 2 4
You observe that if a random variable has this distribution defined by this probability
density function, it is very likely to assume a value between −2 and 2. The graph of
F (x) ≡ P (X ≤ x) for X a normally distributed random variable with µ = 0 and σ = 1
follows.
784 CHAPTER 38. PROBABILITY
0.5
0
-2 0 2
You can see that the probability that X ≤ 3 is very close to 1.
Example 38.7.10 The multivariate normal is as follows. The random variable X has
values in R p and its density function is of the form
1 −1 (x−m)∗ Σ−1 (x−m)
p/2 1/2
e 2
(2π) det (Σ)
Here Σ is the covariance matrix. It is a symmetric matrix with positive eigenvalues and
m ∈ R p is the mean. Thus
1
Z
−1 (x−m)∗ Σ−1 (x−m)
P (X ∈ A) = p/2 1/2
e 2 dx
A (2π) det (Σ)
You integrate over the set A the density function. Just as in the case of three dimensions, this
p
is easier said than done. However, if A has a simple form ∏k=1 (−∞, ak ], then P (X ∈ A) =
Z a1 Z a2 Z ap
1 −1 (x−m)∗ Σ−1 (x−m)
··· p/2 1/2
e 2 dx p · · · dx1
−∞ −∞ −∞ (2π) det (Σ)
Assuming there are no mathematical difficulties, the following is the definition of what
is meant by expectation.
Definition 38.7.11 Let X be a discrete random variable such that P (X = j) = f ( j). Then
if g is some function defined on the values of X, E (g (X)) ≡ ∑ j g ( j) f ( j) assuming the sum
makes sense. It is called the expected value of g (X) or simply the expectation of g (X). In
case X is a continuously
R
distributed random variable with density f (x) , the expectation of
g (X) is E (g (X)) ≡ g (x) f (x) dx, assuming the integral makes sense.
The two cases considered above are the discrete and continuously distributed cases for
random variables. However, this does not include all cases. To do this right, one needs
the notion of the Lebesgue integral and measure spaces and one defines exactly what a
random variable is, a measurable function defined on a measure space, instead of referring
to it vaguely in terms of the probability “it” has certain values or lies in some set called an
“event”. What does always happen is that, assuming everything makes sense,
E (aX + bY ) = aE (X) + bE (Y )
for two random variables X,Y and scalars a, b. Also, for any random variable X it may
or may not have a valid expectation, denoted as E (X) but in every case, it makes sense to
speak of P (X ∈ E) where E is some interval or more generally something called a Borel
set.
38.7. GENERAL CONSIDERATIONS PROBABILITY 785
Observation 38.7.12 In every case, if a, b are numbers, then if everything makes sense,
and X, X̂ are two random
variables having the same probability distribution, meaning that
P (X ∈ F) = P X̂ ∈ F for all F an interval, then
E aX + bX̂ = aE (X) + bE X̂
Suppose you had many random variables Xi each having the same distribution and the
collection of random variables independent, explained below. If you averaged Xi for all i,
what you would get is probably close to E (X). This is why taking the expectation is of
interest. I will give a brief explanation why this is so.
Where do independent random variables come from? In practice, you have independent
observations from an underlying probability space, meaning that it makes sense to ask for
the probability that a random variable is in suitable subsets of R or Rn . These observations
are independent in the sense that the outcome of an observation does not depend on the
outcome of the others. Then the numerical values are called independent random variables.
A more precise description is given below.
First, here is an important formula. I will be considering only the case of a continuous
distribution in explaining this inequality, but it all works in general. The inequality is called
the Chebychev inequality.
1 1
Z Z
P (|g (X)| ≥ ε) = f (x) dx ≤ |g (x)| f (x) dx = E (|g (X)|) ■
E ε R ε
Now suppose you have Xi a random
variable having distribution function f (x) and suppose
2 2
µ = E (X) , σ = E (X − µ) both exist. Suppose Xi , i = 1, ... all these random variables
are independent as in the next definition.
Definition 38.7.14 Let there be random variables X1 , ..., having well defined mean µ ≡
E (Xk ) and variance σ 2 = E (X − µ)2 . Then to say these are independent implies that
E ((Xi − µ) (X j − µ)) = E (Xi − µ) E (X j − µ) = 0 whenever i ̸= j. The more complete
meaning of independence is as follows: For each m,
m
P (Xi ∈ Ei for each i ≤ m) = ∏ P (Xi ∈ Ei ) .
i=1
Here the Ei can be considered intervals. The idea is that what happens in terms of proba-
bility involving each X j for j ̸= i does not affect probability involving Xi . Also, if you have
X1 , ..., independent, then if g is some continuous function, then g (X1 ) , ... will also be inde-
pendent. This is because g (Xi ) ∈ Ei if and only if Xi ∈ g−1 (Ei ). Then there is a significant
observation.
786 CHAPTER 38. PROBABILITY
Proposition 38.7.15 Suppose Xi for i = 1, ..., m are independent random variables and
E (Xi ) = µ while E (Xi − µ)2 = σ 2 . Then if Z ≡ m1 ∑m i=1 Xi is their average, then E (Z) =
µ and E (Z − µ)2 = σ 2 /m.
Proof: E (Z) = E m1 ∑m
1 m 1 m
i=1 Xi = m ∑i=1 E (Xi ) = m ∑i=1 µ = µ. Also, using the inde-
pendence of these random variables,
!2
m
2
1
E (Z − µ) = E ∑ Xk − µ
m k=1
m !2
Xk − µ
= E ∑
k=1 m
!
1
= E ∑ (Xk − µ) (Xl − µ)
m2 k,l
1
= E ((Xk − µ) (Xl − µ))
m2 ∑
k,l
1 m 2
σ2
= ∑ E (X k − µ) = ■
m2 k=1 m
Then it follows from this proposition and Proposition 38.7.13 the following important re-
sult which says that the average of observations of independent random variables which
have the same mean and same variance converges in probability to 0 as more and more
independent observations are taken. Actually much more can be said, but this is enough
here.
Proposition 38.7.16 Let Xi , i = 1..., be independent random variables with common mean
µ and common variance σ 2 then for Zm ≡ m1 ∑m k=1 Xk , the average of the first m,
lim P (Zm − µ)2 ≥ ε = 0
m→∞
Proof: This follows from the above propositions which imply
1 1 2
P (Zm − µ)2 ≥ ε ≤ E (Zm − µ)2 = σ ■
ε εm
In words, this says that if you average independent observations (That is, the ith obser-
vation does not depend on the others. For example, you throw the marked fish back into the
lake and let them swim around before taking another observation.) then as you take more
and more of them, the probability that this average differs by very much from the true mean
becomes very small. This is a version of the law of large numbers. In words, the average is
probably close to the true mean if you average many independent observations.
Example 38.7.17 Let X have the hypergeometric distribution.
! !
m N −m
j k− j
P (X = j) = ! ,k ≥ 1
N
k
38.8. MOMENT GENERATING FUNCTIONS 787
Then you would simply let t = 0 and find various moments. The kth moment is E X k . In
all cases, you are using the fact that E is linear, either a sum or some sort of integral and
you interchange the derivative with the sum or integral. Of course the legitimacy of this
operation is in question, but in most cases of interest, there is no problem.
This will suffice for what is considered in this introduction, but the moment generating
function has some deficiencies. In particular, it might not exist.
A much better approach is the characteristic function
φ X (t) ≡ E eitX
because it always exists. It can be shown, although it won’t be attempted here, that the
distribution of the random variable is completely determined by the characteristic function.
However, you can see why this is so in case there is a continuous density function. Say
Z Z
eitx f (x) dx = eitx g (x) dx
R R
Then Z
eitx ( f (x) − g (x)) dx = 0
R
and by the Fourier inversion theorem adapted slightly, Theorem 37.3.5,
Z R
1
Z
−iyt
f (y) − g (y) = lim e eitx ( f (x) − g (x)) dxdt = 0
R→∞ 2π −R R
Thus it is not unreasonable to believe this assertion that if the two characteristic functions
coincide, then the densities are the same.
However, it is less trouble to use the moment generating functions because it does not
require fussing with complex numbers, and it can be shown that if two random variables
have the same moment generating function, then they have the same density, although it
has not been done in this book. Everything could be done just as well with the more general
characteristic functions.
The following definition includes the case where X is a random vector and gives the
above discussion as a special case.
Definition 38.8.1 Let X = X1 · · · X p be a random vector. The moment generating
function is defined as E et·X .
As mentioned above, if two random variables have the same moment generating func-
tion, then they will have the same distribution.
Example 38.8.2 Find the moment generating function for a binomial random variable X
and use to find some moments.
!
n
n n
∑ etk pk qn−k = q + pet = M (t)
k=0 k
38.8. MOMENT GENERATING FUNCTIONS 789
Then M ′ (t) = npet (q + pet )n−1 . Then let t = 0 and you get M ′ (0) = np which is E (X).
Also n−2
M ′′ (t) = npet q + pet q + npet
so E X 2 = np (q + np) .
= E X 2 − E (X)2
Thus the variance of X for X a binomial random variable is np (q + np) − (np)2 = npq.
Example 38.8.5 Let X be normally distributed with parameters µ, σ 2 . Find the mean and
variance. In fact, show that the mean is µ and the variance is σ 2 . Determine the moment
generating function.
This will be done by using a moment generating function as above. For X normally
distributed,
Z∞ 1 (x−µ)2
tX −
M (t) ≡ E e = √ e 2σ 2 etx dx
−∞ 2πσ
1 1
Z ∞ 2
=√ exp − 2 x − µ + tσ 2 − t 2 σ 4 + 2tσ 2 µ dx
2πσ −∞ 2σ
after simplification and completing the square. Thus this equals
1 2 2 1 1
Z ∞
2 2
exp t σ + µt √ exp − 2 x − µ + tσ dx
2 2πσ −∞ 2σ
√
1 2 2 1
Z ∞
exp t σ + µt √ exp −u2 dx 2σ
2 2πσ −∞
1 2 2
= exp t σ + µt = M (t) (38.2)
2
790 CHAPTER 38. PROBABILITY
Example 38.8.6 Let X be a X 2 (r) distribution. Find the moment generating function
valid for t in some interval containing 0.
By definition, this is
1 1
Z ∞ ∞ Z
1
r/2
x(r/2)−1 e−x/2 etx dx = r/2
x(r/2)−1 e−x( 2 −t ) dx
0 Γ (r/2) 2 0 Γ (r/2) 2
so change the variable letting u = x 12 − t so du = 21 − t dx. Let |t| < 21 . Then the integral
is
(r/2)−1
1 u 1
Z ∞
e−u du
0 Γ (r/2) 2r/2 (1/2 − t) (1/2 − t)
1 1 1
Z ∞
= r/2
ur/2−1 e−u du =
2r/2 (1/2 − t) Γ (r/2) 0 (1 − 2t)r/2
Now with this, you can find all the moments desired.
Proposition 38.8.7 Suppose X is normally distributed with mean µ and variance σ 2 . Then
X−µ
σ is normally distributed with mean 0 and variance 1.
X −µ t tµ t tµ
E exp t = E exp X− = E exp X exp −
σ σ σ σ σ
Now t
σX and − tµ
σ are independent. (Check the definition.) Therefore, the above reduces
to
1 σ 2 t2
t tµ
−t
t 1 2
E exp X E exp − = eσ µe2 σ2 e σ µ = e 2 t
σ σ
which is the moment generating function of a random variable which is normally dis-
tributed with mean 0 and variance 1. ■
You might call X−µ
σ a standard normal deviate.
Corollary 38.8.8 Let X be normally distributed with mean µ and variance σ 2 . Then
2
X−µ
σ is distributed as X 2 (1).
38.9. INDEPENDENCE AND CONDITIONAL PROBABILITY 791
Proof: From Proposition 38.8.7, X−µ σ is normally distributed with mean µ and vari-
2
ance σ 2 . If f (t) is the density of X−µ
σ , then
2 !
Z x
√ X −µ √
X −µ
F (x) ≡ f (t) dt ≡ P <x =P − x< < x
0 σ σ
Z √x √ Z√
1 2 x
− 12 t 2 1 2
=√ √ e dt = √ e− 2 t dt
2π − x π 0
t2 √du .
change variables. Let 2 = u so tdt = du, dt = 2u
Then the above is
√ Z
2 x/2
√ √ u−1/2 e−u du
2 π 0
Then, taking the derivative will yield the density. This is
1 1 x −1/2 −x/2 1 1
√ e = √ √ √ e−x/2
π2 2 π 2 x
1
= x1/2−1 e−x/2
Γ (1/2) 21/2
Definition 38.9.1 Let C be a collection of sets contained in some universal set U. These
could be intervals on the real line for example, and U could be R. Let P : C → [0, 1]. Thus
for A a set, P (A) ∈ [0, 1] . It satisfies the following conditions.
1. If Ai are disjoint sets in C , then P ∪ni=1 Ai = ∑ni=1 P (Ai ) . More generally, if you
∞
have infinitely many such disjoint sets, P (∪∞ i=1 Ai ) = ∑i=1 P (Ai ).
2. If A ∈ C , then P (A) + P (U \ A) = 1.
P (A ∩ B)
P (A|B) ≡
P (B)
To do this right, you should be using σ algebras and measures on an abstract probability
space. However, these things are not discussed in this book.
The words used when you write P (A|B) are: probability of A given B. In other words,
if you are considering random variables, you know that X ∈ B where B is some possibly
smaller set than U. For example, you might know that a normally distributed random
variable is in [1, 5] and given this knowledge, the appropriate probability function would be
defined as
P (X ∈ A and X ∈ [1, 5])
P (X ∈ A|X ∈ [1, 5]) =
P (X ∈ [1, 5])
This really restricts the set U to B and A → P (A|B) is a probability function defined on B.
As indicated earlier, events A1 , · · · , An are said to be independent if
n
P (∩ni=1 Ai ) = ∏ P (Ai )
i=1
Example 38.9.2 You roll a die n times. Let Xk be the value on the die on the kth roll of the
die. Let Ak be the event that the value of Xk is in Sk where Sk is some set of numbers from 1
to 6. Then the value of X j for j ̸= k has absolutely no bearing on whether Xk is in Sk .
n
P (X1 ∈ S1 and X2 ∈ S2 · · · , and Xn ∈ Sn ) = ∏ P (Xk ∈ Sk ) .
k=1
Indeed, this follows from noting that if |Sk | is the number of outcomes in Sk then the expres-
sion on the left is
∏nk=1 |Sk | n
|Sk | n
= ∏ = ∏ P (Xk ∈ Sk ) (38.3)
6n k=1 6 k=1
This is a typical way of getting independent events. Just do experiments in which the
outcome of any experiment is totally unaffected by the outcome of all the others. This
also illustrates what it means for random variables to be independent. Recall the following
definition.
It follows that if the Xi are independent and if gi is a continuous function, then the gi (Xi )
are also independent. All this does is change the sets Ik in the above definition, but to do
this right, you need more mathematical machinery.
When you have a random vector X = (X1 , · · · , X p ) with density function f what does
it mean for the components of this random vector to be independent? It means that there
38.9. INDEPENDENCE AND CONDITIONAL PROBABILITY 793
p
are nonnegative functions xi → fi (xi ) such that f (x) = ∏i=1 fi (xi ) . Note how this gives
the conclusion of the above theorem.
Z
P (X1 ∈ I1 , · · · , X p ∈ I p ) = p
f (x) dx
∏i=1 Ii
Z Z
= ··· f1 (x1 ) · · · f p (x p ) dx p · · · dx1
I1 Ip
Z Z
= f1 (x1 ) dx1 · · · f p (x p ) dx p
I1 Ip
p
= ∏ P (Xi ∈ Ii )
i=1
In fact, this is a specialization of what always happens in every situation. Note that the
same argument shows that if these components are an independent set, then if you consider
(g1 (X1 ) , · · · , g p (X p ))
these would also be independent random variables. In this case,
P (g1 (X1 ) ∈ I1 , · · · , g p (X p ) ∈ I p )
= P X1 ∈ g−1 −1
1 (I1 ) , · · · , X p ∈ g p (I p )
Z
= p
f (x) dx
∏i=1 g−1
i (Ii )
Z Z
= ··· f1 (x1 ) · · · f p (x p ) dx p · · · dx1
g−1
1 (I1 ) g−1
p (I p )
Z Z
= f1 (x1 ) dx1 · · · f p (x p ) dx p
g−1
1 (I1 ) g−1
p (I p )
p p
−1
= ∏ P Xi ∈ g i (Ii ) = ∏ P (gi (Xi ) ∈ Ii )
i=1 i=1
Definition 38.9.5 Let X be a random variable. Its mean is defined as µ ≡ E (X) . The
2
variance is defined as E (X − µ) . The mean is a weighted average. It is what you
would expect to see if you took many random samples from this distribution and averaged
them. (In fact there is a theorem which says this.) The variance is a description of how
spread out the probability density is. If the variance is small, then the random variable will
be close to µ with high probability and if it is large, then it is not as certain the random
variable is close to µ.
Now with this definition of mean and variance, why is the normal distribution so impor-
tant? It is because of the central limit theorem. Suppose E Xk2 < ∞ where Xk is a random
variable.
2
Theorem 38.9.6 Let {Xk }∞ k=1 be random variables satisfying E Xk < ∞, which are inde-
pendent
and identically
distributed with mean µ = E (Xk ) and positive variance 0 < σ 2 ≡
E (Xk − µ)2 . Let
n √
Xj − µ n (X̄ − µ)
Zn ≡ ∑ √ = (38.4)
j=1 σ n σ
where X̄ is the average of the Xk n1 ∑nk=1 Xk . Then for Z a normally distributed random
variable having mean 0 and variance 1,
lim P (Zn ∈ A) = P (Z ∈ A)
n→∞
Of course this begs the question: What are µ, σ ? Much that is done in statistics has to
do with determination of these or other parameters. They both give interesting information
if they can be estimated.
How does independence relate to moment generating functions?
Proof: First suppose the X k are independent. Then the density function for X is of the
form
f (x) = f1 (x1 ) f2 (x2 ) · · · f p (x p )
38.9. INDEPENDENCE AND CONDITIONAL PROBABILITY 795
Therefore, Z Z Z
M (t) = m
··· f1 (x1 ) f2 (x2 )
Rm p R p−1 Rm1
!
p
· · · f p (x p ) exp ∑ tk · X k dx1 · · · dx p
k=1
Z Z Z p
= m
··· f1 (x1 ) f2 (x2 ) · · · f p (x p ) ∏ exp (tk · xk )
Rm p R p−1 Rm1 k=1
p Z p
=∏ m
fk (xk ) exp (tk · xk ) dxk = ∏ M (0, · · · 0, tk , 0, · · · , 0)
k=1 R k k=1
Conversely, suppose the other condition. Then
p
M (t) = ∏ M (0, · · · 0, tk , 0, · · · , 0) =
k=1
p Z Z Z
∏ mp m
··· f (x) exp (tk · xk )
k=1 R R p−1 Rm1
by Fubini’s theorem,
p Z Z Z
∏ m
exp (tk · xk ) · · · m
··· f (x) dx1 · · · dx j · · · dxk
k=1 R k R j Rm1
p Z
≡∏ m
exp (tk · xk ) fk (xk ) dxk (38.6)
k=1 R k
where fk (xk ) is called the marginal distribution and is obtained as
Z Zd Z
fk (xk ) ≡ ··· ··· f (x) dx1 · · · dx
dk · · · dxm
p
Rm p Rmk Rm1
T
Corollary 38.9.9 Suppose X = X1 ··· Xn where X has a moment generating
function of the form
1 T At
M (t) = e 2 t
where A is real and symmetric having rank r ≤ n and eigenvalues 0 or 1. Then X T AX is
X 2 (r). (When r < n, this is a moment generating function of a random variable which is
said to be a singular multivariate normal. )
Proof: By Theorem
! 11.4.7 there is orthogonal U such that U T AU = D where D is of
I 0
the form where I is an r × r identity matrix. Then let Y = U T X. What is the
0 0
distribution of Y ?
Now exp (tYk ) = 1 and so Yk = 0 if k > r and otherwise, Yk is n (0, 1) , normal with mean 0
and variance 1. Thus Theorem 38.9.7 implies that these random variables are independent
and each n (0, 1). Hence by Proposition 38.9.8,
r
X T AX = Y T U T AUY = Y T DY = ∑ Yk2 which is X 2 (r) . ■
k=1
Chapter 39
Statistical Tests
In this chapter, are various tests for determining parameters and answering other questions
with a certain probability associated with the answers. This is all based on the notion of
random variables of various forms, called statistics, for which there is a known distribution.
The pattern is to compute the statistic which is based on a random sample and then to use
its known distribution to make statistical inferences. This is always what you do when
you know that the samples are coming from a probability distribution involving unknown
parameters.
For example, it is reasonable to believe that the weight of adult men in Arkansas is
normally distributed. However, you don’t know the mean µ and the variance σ 2 and these
are what you want because you want to know the probability that some man weighs between
140 and 180 pounds. You pick randomly 40 males and record their weights. These weights
are the values of independent random variables. Then, you estimate µ and σ 2 from this
sample, and things like an interval where you have a probability of .95 that the weight of
a person will lie in this interval. A hypothesis you might want to test for would be that the
average weight of men in Arkansas is the same as the average weight of men in Alabama.
If you are interested in something other than weight, you would adjust accordingly. You
could be interested in errors produced by a machine when it makes bolts for example. How
sure are you that some measurement is acceptable? If you were an insurrance company, you
would want to know with some confidence an interval containing the lifespan of a person
or an interval and probability associated with it which gives the number of accidents that
people age 17-30 will have. One could go on and on.
In addition to this, each application of these methods would need to be examined car-
fully to be sure that the assumptions on the underlying distribution are not unreasonable.
As suggested, there are two main forms these inferences take. One involves something
called a confidence interval and the other involves rejecting or accepting a given hypothesis,
called a null hypothesis. I admit to being prejudiced toward confidence intervals because
they deliver a straight forward affirmation that with a certain probability something happens
and involve less jargon. However, it is sometimes appropriate to test for a hypothesis
which is either true or false and you may be able to identify a probability that the so called
null hypothesis, that which is being tested, is false and this is also very useful. These
notions will be developed on specifice examples. I think this will make the ideas easier to
understand than to focus first on generalities laden with jargon. The statistics of interest in
the following will be those which have X 2 (r) , T, or F distributions. The first of these has
797
798 CHAPTER 39. STATISTICAL TESTS
When the sample is taken from a normal distribution having mean µ and variance σ 2 ,
it turns out that the random variable nS2 /σ 2 has a chi-squared distribution. When this
is shown, it becomes possible to estimate the variance along with a probability that the
variance is really in some interval called a confidence interval. One can also use this in
terms of a hypothesis test. For example, you might reject the hypothesis that the variance
is very large. This fact that nS2 /σ 2 is X 2 (n − 1) which is shown below is very significant
because the statistic nS2 /σ 2 does not involve µ. The following proposition makes this
possible. It is a statement about independence of the sample mean X̄ and the random
vector of deviations from the sample mean.
Proposition 39.1.2 Let Xk k = 1, 2, · · · , n be independent random variables all having a
normal distribution with mean µ and variance
σ 2 . Let X̄ ≡ n1 ∑nk=1 Xk , called the sample
mean . Then X̄ and the random vector X1 − X̄ ··· Xn − X̄ are independent.
Proof: This is done most easily with the moment generating technique.
n
n n
E et X̄+∑k=1 tk (Xk −X̄) = E e(t−∑k=1 tk )X̄+∑k=1 tk Xk (39.1)
n
It is necessary to verify that this equals E et X̄ E e∑k=1 tk (Xk −X̄) . However, 39.1 equals
1 n 1 n n
= E e( n t−∑k=1 n tk ) ∑ j=1 X j +∑k=1 tk Xk
n 1 n 1 n
= E e∑ j=1 ( n t−∑k=1 n tk )X j +∑ j=1 t j X j
n 1 n 1
= E e∑ j=1 ( n t−∑k=1 n tk +t j )X j
! !!
n n
1 1
= E ∏ exp t − ∑ tk + t j X j
j=1 n k=1 n
39.1. THE DISTRIBUTION OF nS2 /σ 2 799
In that last term you have the product of continuous functions of independent random vari-
ables and so, by 38.2 which gives the moment generating function for a normally distributed
random variable, it equals
n 1 n 1
∏E e( n t−∑k=1 n tk +t j )X j
j=1
! !2
n n n
1 1 1 1 1
= ∏ exp n t − ∑ n tk + t j µ + 2 σ 2 t − ∑ tk + t j
n k=1 n
j=1 k=1
! !2
n n
1 1 1 1 1
= exp ∑ t − ∑ tk + t j µ + ∑ σ 2 t − ∑ tk + t j
j n k=1 n j 2 n k=1 n
1 n 1
Simple algebra shows that ∑ j n t − ∑k=1 n tk + t j = t. Thus the above is
!2
n
1 1 1
= exp tµ + ∑ σ 2 t − ∑ tk + t j
j 2 n k=1 n
So you see, the moment generating function splits up the first factor depending only on t
and the second depending only on the tk .
!! !
1 t
E et X̄ = E exp tXk = E ∏ exp Xk
n∑k k n
t 2
t µ+ 1 σ 2 t 1 2 t2
= ∏ E exp Xk = ∏ e n 2 n2 = etµ+ 2 σ n
k n k
800 CHAPTER 39. STATISTICAL TESTS
Thus the first term in 39.2 is the moment generating function of X̄. Some computations
show that the second term is the moment generating function of the vector
X1 − X̄ · · · Xn − X̄
Indeed, ! !!
n
1
E exp ∑ tk (Xk − X̄) = E exp ∑ tk Xk − ∑ tk ∑ X j
k=1 k k n j
!! !!
1 tk − t j
= E exp ∑ tk Xk − ∑ t j ∑ Xk = E exp ∑ ∑ Xk
k j n k j k n
!!
tk − t j tk − t j
= ∏ E exp ∑ n Xk = ∏ ∏ E exp n Xk
j k j k
!!
1 tk − t j 2 2
tk − t j
= ∏ ∏ exp µ + σ
j k n 2 n
!
1 tk − t j 2 2
= exp ∑ ∑ σ
j k 2 n
Therefore, by Proposition 38.9.7, X̄ and this random vector are linearly independent. ■
The above proposition leads to something interesting, the distribution of nS2 /σ 2 . Let
the Xk be independent and normally distributed with mean µ and variance σ 2 . Then
1 n 2
S2 ≡ ∑ (Xk − X̄)
n k=1
2
The distribution of nS2 /σ 2 = ∑nk=1 (Xkσ−2X̄) will be considered. If we know this, then since
S2 is experimentally determined, it will follow that we could estimate σ 2 . First note that
Xk − X̄ = Xk − µ + µ − X̄
and so
2 2
(Xk − X̄) = (Xk − µ)2 − 2 (Xk − µ) (X̄ − µ) + (X̄ − µ)
n
2 ∑ (Xk − µ) (X̄ − µ) = 2n (X̄ − µ) (X̄ − µ)
k=1
Therefore,
n n
2 2
∑ (Xk − X̄) + n (X̄ − µ) = ∑ (Xk − µ)2
k=1 k=1
Then
2 2
n
(Xk − X̄) n (X̄ − µ) n
(Xk − µ)2
∑ σ2 + σ2 = ∑ σ2
k=1 k=1
39.1. THE DISTRIBUTION OF nS2 /σ 2 801
2
From what was shown above, n(X̄−µ)σ2
and the vector X1 − X̄ ··· Xn − X̄ are inde-
pendent. From this, it follows that
2 2
n (X̄ − µ) n t (Xk − X̄)
,∑
σ2 k=1 σ2
are independent.
(Xk −µ)2
Using this and the known distribution of σ2
,
! !!
2 2
(Xk − µ)2
n
t (Xk − X̄) n
n (X̄ − µ)
E t∑ = E exp ∑ +t
k=1 σ2 k=1 σ 2 σ2
! !!
n 2 2
(Xk − X̄) n (X̄ − µ)
= E exp t ∑ exp t
k=1 σ2 σ2
By independence, this is
!! !!
n 2 2
(Xk − X̄) n (X̄ − µ)
= E exp t ∑ E exp t (39.3)
k=1 σ2 σ2
2
Of course the thing we want is E exp t ∑nk=1 (Xkσ−2X̄) , but the expression on the left
2
E t ∑nk=1 (Xkσ−µ)
2 , and the factor on the right are known or easy to find. Consider the
factor on the right.
2 1
2
n (X̄ − µ) ∑nk=1 (Xk − µ)
n n
t = t
σ2 σ2
n !2
Xk − µ
= t ∑ √
k=1 nσ
What is the distribution of ∑nk=1 X√k −µ
nσ
? By independence, its moment generating func-
tion is !! !
n n
Xk − µ Xk − µ
E exp t ∑ √ = E ∏ exp t √
k=1 nσ k=1 nσ
n n 2
√ −1 Xk − µ
1 √t 1 2
= ∏ E exp t n = ∏e 2 n = e2t
k=1 σ k=1
so it is a normal distribution having variance 1 and mean 0. It follows from Corollary 38.8.8
that the square of this random variable is X 2 (1). Since we know the moment generating
function for chi squared distributions, it follows that we know all the terms in 39.3 except
for the one we want. It just a matter of filling in the expressions. Recall the moment
generating function for X 2 (r) is
1
(1 − 2t)r/2
802 CHAPTER 39. STATISTICAL TESTS
This last term is the moment generating function of the sum of squares of standard normal
deviates and so its moment generating function is known by Proposition 38.9.8 equals
1 1
n/2 . Thus, dividing both sides by 1/2 we get
(1−2t) (1−2t)
!!
n 2
(Xk − X̄) 1
E exp t ∑ =
k=1 σ2 (1 − 2t)(n−1)/2
which shows that nS2 /σ 2 is distributed as X 2 (n − 1). This proves the following major
theorem.
Theorem 39.1.3 Suppose {X1 , · · · , Xn } are independent and they are normally distributed
2
with variance σ 2 . Let S2 = 1n ∑nk=1 (Xk − X̄) , called the sample variance, where X̄ =
n ∑k=1 Xk . Then the random variable nS /σ is distributed as X (n − 1).
1 n 2 2 2
This is really interesting. Note that we don’t know the mean and yet this allows an
estimation of the variance based on observations of the Xi .
These are independent samples taken from a normal distribution. Find a confidence inter-
val for the variance of this normal distruibution.
Definition 39.1.5 An interval [a, b] is a .95 confidence interval for a parameter ν means
that the probability that ν lies in [a, b] is .95.
Of course, if the probability that the parameter lies in [a, b] is .9, then it would be a .9
confidence interval and so forth.
Now consider the above example of 11 numbers. The sample mean or average of
these numbers is −. 263 64. Then 11S2 for these numbers is 37. 065. This just follows
from a computation. Then from Theorem 39.1.3, 11S2 /σ 2 is a X 2 (10) random variable.
We find an interval such that the probability that such a X 2 (10) random variable is in
this interval. This is easy to do from tables. However, you can also use the distribution
39.1. THE DISTRIBUTION OF nS2 /σ 2 803
F (x) ≡ P (X ≤ x) . You can obtain your own table of this using MATLAB or you can use
the graph of this function using MATLAB. Here is an easy way to do it. I am sure there
are more elegant ways to obtain this graph but I am picking one which seems to minimize
the fussiness. MATLAB knows how to do numerical integration. The following tells it to
integrate up to n ∗ .05 and place a dot there at the point (n ∗ .05, y) where y is the integral
up to n ∗ .05.
>>hold on
r=10;
for n=1:1:1200
f=@(t)[1/(gamma(r/2)*2ˆ(r/2))*t.ˆ((r/2)-1).*exp(-t/2)];
y=integral(f,0,n*.05);
plot(n*.05,y,’.’,’Linewidth’,2,’color’,’black’)
end
This will produce a nice graph of F (x) ≡ P (X ≤ x) , called the probability distribution
function, and so you identify an interval for which the area under the curve is no more than
.95. Click on the icon on the tool bar for the graph which says: “data cursor”. This will give
you a little cross which you can move around and click on points of the graph and it will
tell you coordinates, an x coordinate and a y coordinate which is the probability that X ≤ x.
This allows you to avoid hunting for things in a table. In fact, MATLAB can essentially
produce the tables for you. In ancient times, we had to use tables and we even used tables
of trig. functions and logarithms. There was a whole set of specialized techniques which
are now obsolete which we suffered with long ago. Now of course, there is software which
can do all of it for you so it is important to understand what the software is doing.
If you have scientific notebook, it is even easier. In this case, all you have to do is type
in math mode Z x
1
t 4 e−t/2 dt
0 Γ (10/2) 210/2
and ask it to graph this function of x. It will do so. Then you click on the icon which lets
you identify coordinates just like you can do in MATLAB. The quality of the graph is not
as good as what you get in MATLAB, but it does the job quite well with less hassle. I like
looking at pictures better than rummaging through tables. However, if you like to look at
tables, try this. Matlab will make a table for you.
>> hold on
T=[]; r=10;
for n=1:1:100
f=@(t)[(gamma(r/2)*2ˆ(r/2))ˆ(-1)*t.ˆ((r/2)-1).*exp(-t/2)];
x=n*.5;
y=integral(f,0,x);
T=[T; x y];
end
T
I found this on line which is where I usually go for questions about MATLAB. It will
produce a table having two columns, one for x and the next for y which will be the proba-
bility up to x.
Here are two points on the graph: (3.45, .0312) and (21.85, .9841) . Thus the probability
that X ≤ 21.85 is .9841 and the probability that X ≤ 3.45 is .0312. It follows that the
probability that X ∈ [3.45, 21.85] is .9841 − .0312 = 0.952 9. Therefore, the probability
804 CHAPTER 39. STATISTICAL TESTS
1 σ2 1
≥ ≥
3.45 (37. 065) 21.85
In other words, the probability is better than .95 that
What if we only wanted to know with probability .7 where σ 2 is? Then one could get
a much smaller interval. Two points on the graph are (5.1, .1156) and (14.5, .8486). Then
the same process yields with probability better than .7
1 σ2 1
≥ ≥
5.1 (37. 065) 14.5
7. 267 6 ≥ σ 2 ≥ 2. 556 2
This is a much shorter interval but we can’t be as sure that the variance is in this interval. If
you say more about something, it is hardly surprising that you can’t be quite as sure about
your assertion.
PROCEDURE 39.1.6 To find a .95 confidence interval for the variance using a
random sample
X1 , X2 , · · · , Xn
from a normal distribution of mean µ and variance σ 2 do the following.
1. Using a table or graph, determine an interval [a, b] , a > 0 such that the probability
that a X 2 (n − 1) random variable is in [a, b] is at least .95.
2
2. Compute the sample mean X̄ ≡ 1n ∑nk=1 Xk and nS2 ≡ ∑nk=1 (Xk − X̄) .
3. The .95 confidence interval is determined by solving the following inequality for σ 2 .
nS2
a≤ ≤b
σ2
nS2 nS2
≥ σ2 ≥
a b
The same procedure is followed if you want some other probability than .95.
Incidentally, if you knew the mean µ you could replace the sample mean with this and
use a chi-squared distribution with one more degree of freedom which of course will result
in a better confidence interval. However, I don’t think you could have a good reason for
thinking you know the mean, so such observations are mainly theoretical at this point.
39.2. THE T AND F DISTRIBUTIONS 805
1 w2 1
Z
P ((V,W ) ∈ A) = √ e− 2 r/2
v(r/2)−1 e−v/2 dwdv
A 2π Γ (r/2) 2
thus (V,W ) ∈ (0, ∞) × (−∞, ∞). The idea is to find the probability density of the statistic
W
T=p
V /r
It is a random variable which has a known distribution. This involves changing the variable.
Let ! !
w u v
t = p , u = v, =r
v/r t w
This maps (0, ∞) × (−∞, ∞) one to one onto (0, ∞) × (−∞, ∞) as can be seen with a short
computation. Let the density function of (t, u) be f (t, u).
By the change of variables formula for multiple integrals if U is some open set in R2 ,
1 w2 1
Z Z
f (t, u) dudt = √ e− 2 v(r/2)−1 e−v/2 dwdu
U −1
r (U) 2π Γ (r/2) 2r/2
!
w
Z
= f p , v J (v, w) dwdu
r −1 (U) v/r
where
1 0
J (v, w) = det − 1 w q1
= q1
2r 3 1v 1
( 1r v) rv
2 r
Thus !
w 1 1 w2 1
f p ,v q = √ e− 2 r/2
v(r/2)−1 e−v/2
v/r 1 2π Γ (r/2) 2
rv
Then ! r
w 1 − w2 1 1 (r/2)−1 −v/2
f p ,v = √ e 2 vv e
v/r 2π Γ (r/2) 2r/2 r
806 CHAPTER 39. STATISTICAL TESTS
Now this is the density for a random vector (T,U) and it is desired to find the density for
T. This means U can be anywhere in (0, ∞) and so to get this density we do the following
integral. r
1 1 1
Z ∞
1 2 1 1 1
√ r/2
e− 2r t u e− 2 u u 2 r− 2 du
2π r Γ (r/2) 2 0
! 1 (r−1)
2
x 1
Z ∞
e−x dx
t2 1 t2
0
2r + 2 2r + 12
! 1 r+ 1 Z
2 2
1 ∞ 1
= e−x x 2 (r−1) dx
t2 1
2r + 2
0
To get this graph I was tricky. I wanted to integrate from −∞ to some positive
Rx
point.
I used the fact that the Rdensity function is even. I didn’t want to consider −∞ f (t) dt so
instead considered .5 + 0x f (t) dt for x ≥ 0 and then this gave the right thing for positive x.
A similar adjustment took care of the graph for x < 0. In the syntax, you can pick r. I have
shown it for r = 10.
hold on
for n=1:1:1000
r=10;
a=((r*pi)ˆ(-1/2))*(gamma(.5*(r+1))/gamma(r/2));
f=@(t)[a*(((t.ˆ2)/r)+1).ˆ(-(.5*(r+1)))];
y=integral(f,0,n*.01);
hold on
plot(n*.01,y+.5,’.’,’Linewidth’,2,’color’,’black’)
plot(-n*.01,-y+.5,’.’,’Linewidth’,2,’color’,’black’)
end
If you wanted a table of x → P (X ≤ x), you can do the following.
hold on
T=[]; r=10;
for n=1:1:1500
a=((r*pi)ˆ(-1/2))*(gamma(.5*(r+1))/gamma(.5*r));
f=@(t)[a*(((t.ˆ2)/r)+1).ˆ(-.5*(r+1))];
x=-10+(n*.1);
y=integral(f,-10,x);
T=[T; x y];
end
T
This will produce a table for the T distribution with r = 10. You can follow the same
pattern to get a table for other values of r. Just change the statement r = 10 to r = 5 for
example. I started the integral at −10 because if x <R−10, P (X ≤ x) isRconsidered 0 due to
x x
round off error so there is no point in trying to take −∞ f (t) dt when −10 f (t) dt is going
to give the same thing as far as can be assertained. You might want to change where you
start the integral depending on r. The table should start at 0 and end at 1 or something close
to it.
1 r+1 Xk − µ
√ ∑
r + 1 k=1 σ
Proof:
!! !
1 r+1 Xk − µ r+1
t Xk − µ
E exp t √ ∑ =E ∏√
r + 1 k=1 σ k=1 r + 1 σ
Now recall that Xkσ−µ is normally distributed with mean 0 and variance 1. Therefore, by
independence, this equals
r+1
1 t2
1 2
∏ exp − = exp − t
k=1 2 r+1 2
which is the moment generating function for a normally distributed random variable with
mean 0 and variance 1. ■
Recall that (r + 1) S2 /σ 2 is X 2 (r) . By the above discussion of the T distribution,
√1 r+1 Xk −µ
r+1
∑k=1 σ
r
2
∑r+1
k=1 (Xk −X̄)
rσ 2
is a T random variable with r degrees of freedom discussed above. However, this expres-
sion simplifies quite a bit. It becomes
√ √
√ r √ r √ √
r+1
∑r+1
k=1 (Xk − µ) r+1
(r + 1) (X̄ − µ) r r + 1 (X̄ − µ)
q = q = q
2 2 2
∑r+1
k=1 (Xk − X̄) ∑r+1
k=1 (Xk − X̄) ∑r+1
k=1 (Xk − X̄)
Example 39.2.2 Here are 11 numbers from an independent random sample of a normal
distribution having variance σ 2 and mean µ. Find a .95 confidence interval for the mean
µ. The numbers are
3, 4, 5, 6, 2, 3.5, 5, 4, 6, 2, 4.2
After some computations, we find X̄ = 4.0636 and 11S2 = 19. 245. Then the statistic
above is of the form √ √
10 11 (4. 063 6 − µ)
√
19. 245
Using the data cursor in the graph of the function F (x) = P (X ≤ x) for X a T random
variable with r = 10, we can find an interval corresponding to probability at least .95. A
39.2. THE T AND F DISTRIBUTIONS 809
point on this graph is (2.48, .9837). Another point is (−2.52, .01519) and so the probability
that X is in this interval is .9837 − .01519 = 0.968 51. Thus with probability at least .95
√ √
10 11 (4. 063 6 − µ)
−2.52 ≤ √ ≤ 2.48
19. 245
Of course you could arrange the interval to be symmetric about 0 because the distribution is
symmetric. I just used the data cursor to identify a couple of points. Thus with probability
at least .95,
1. 054 1 ≥ (µ − 4. 063 6) ≥ −1. 037 3
5. 117 7 ≥ µ ≥ 3. 026 3
Note that theoretically we could have used
X1 −µ
σ
r
2
∑r+1
k=1 (Xk −X̄)
rσ 2
√ √
but this would not give us such a√good result because instead of dividing by r r + 1 we
would end up dividing by only r. The interval would be much longer. Of course this is
not surprising. If you use more information, you should get better results. You might try
this to see what happens.
PROCEDURE 39.2.3 To find a .95 confidence interval for the mean of a normal
distribution having variance σ 2 and mean µ based on a random sample X1 , · · · , Xn , do the
following.
1. Using a table or graph, determine an interval [a, b] such that for X distributed as a
T random variable with r = n − 1, such that P (X ∈ [a, b]) ≥ .95.
2. Find the sample mean X̄ ≡ n1 ∑nk=1 Xk .
3. The .95 confidence interval for µ is determined by solving the following inequality
for µ. √ √
n − 1 n (X̄ − µ)
a≤ q ≤b
n 2
∑k=1 (Xk − X̄)
If you want some other probability than .95, just find [a, b] associated with this other
probability for X ∈ [a, b] where X is X 2 (n − 1) and do the same thing.
810 CHAPTER 39. STATISTICAL TESTS
Definition 39.2.4 The hypothesis to be tested is called the null hypothesis, often denoted
as H0 . For example, you might have equality of two means be the null hypothesis. Rejection
of the hypothesis depends on whether some statistic, depending on the validity of H0 is in
a region for which we agree to reject the hypothesis. Usually this is done based on the
probability of the statistic being in this region. The set of values for which we don’t reject
the hypothesis is called the acceptance region.
Lemma 39.2.5 Let X,Y be independent random variables taken from two different normal
distributions, respectively n µ 1 , σ 21 and n µ 2 , σ 22 . Then X −Y is n µ 1 − µ 2 , σ 21 + σ 22 .
n µ 1 − µ 2 , σ 21 + σ 22
■
that {Xk }r+1 r+1 2
Now suppose k=1 and {Yk }k=1 are two random samples taken from n µ 1 , σ 1
and n µ 2 , σ 22 respectively. Thus from Lemma 39.2.5,
Xk −Yk
1 r+1 Zk − (µ 1 − µ 2 )
√ ∑ q 2 2 is n (0, 1)
r + 1 k=1 σ +σ 1 2
is a T random variable with parameter equal to r, T (r). As before, we can simplify this to
obtain that the following is a T random variable.
√ √
r r + 1 (Z̄ − (µ 1 − µ 2 ))
q (39.4)
2
∑r+1
k=1 (Zk − Z̄)
39.2. THE T AND F DISTRIBUTIONS 811
Let H0 be the hypothesis that µ 1 = µ 2 . Then with this assumption, the above T (r) is
√ √
r r + 1Z̄
T≡q (39.5)
r+1 2
∑k=1 (Zk − Z̄)
Example 39.2.6 You have two random samples from normal distributions. The first {Xk }
is (2, 3, −2, −5, 7, 9) . The second {Yk } is (−2, −4, 1, 3, 4, 5) these taken in the order indi-
cated. Then the corresponding list of normal random variables Zk ≡ Xk −Yk is
Lets agree to reject H0 that the two means are equal if T in 39.5 is either too large or too
small, meaning that T is in a region which is associated with small probability, thus the
imperative to reject the Hypothesis. Let a be such that P (T > a) < .05. Then reject H0 if T
is either larger than a or smaller than −a.
q
r+1 2
First find Z̄. It equals 1.1667. Next find ∑k=1 (Zk − Z̄) . It equals 12. 443. Thus T =
√ √
5 6 (1.1667)
= . 513 56
12. 443
Now we need to go to a table or use MATLAB or something to find out information about
T (5). From a table, P (T > 2.015) = .05 and so we do not reject H0 . In other words, we
“accept” the hypothesis that the two means are equal.
PROCEDURE 39.2.7 To test the hypothesis H0 that two means from two differ-
ent normal distributions are equal, do the following:
1. Take random samples (X1 ,Y1 ) , (X2 ,Y2 ) , · · · , (Xr+1 ,Yr+1 ) where Xk is from n µ 1 , σ 22
and Yk is from n µ 2 , σ 22 .
2. Letting T (r) be a T random variable with parameter r, determine a such that
is smaller than .05. (You could pick any other number in (0, 1) here depending on
how sure you want to be that a rejection of H0 is warranted.)
3. Compute √ √
r r + 1Z̄
q
r+1 2
∑k=1 (Zk − Z̄)
Example 39.2.8 Find a .54 confidence interval for |µ 1 − µ 2 | in the above example.
812 CHAPTER 39. STATISTICAL TESTS
Here we use 39.4. From MATLAB, for T the T statistic with r = 5 being used here,
because the probability that ( f , k) is in r (U) is the same as the probability that (u, v) is in
U. Thus
ur2 vr1 1 1
g ,v = u(r1 /2)−1 e−u/2 v(r2 /2)−1 e−v/2
vr1 r2 Γ (r1 /2) 2r1 /2 Γ (r2 /2) 2r2 /2
Of course k ∈ (0, ∞) and so if we want the density of F, all that is needed is to integrate the
above from 0 to ∞ with respect to k. Then this integral is
r1 /2 Z
r1 +r2
fr
1 1 r1 ∞
2 −1 − 2r1 + 12 k
f (r1 /2)−1 k e 2 dk
Γ (r1 /2) 2r1 /2 Γ (r2 /2) 2r2 /2 r2 0
f r1
Change the variable in the integral. Let u = 2r2 + 12 k so
du
dk =
f r1
2r2 + 12
Z ∞ r1 +r2
1 −1
= r1 +r2 u 2
e−u du
0
f r1 1 2
2r2 + 2
1 r1 + r2
= r1 +r2 Γ
f r1 2 2
2r2 + 12
r1 /2
r1 +r2 r1
Γ 2 r2 f (r1 /2)−1
= r1 +r2 , f > 0
Γ (r1 /2) Γ (r2 /2) f r
2
1
r2 + 1
Γ (r) f (r/2)−1
r
Γ (r/2)2 ( f + 1)
You can probably see that this F distribution could be used to test the ratio of variances
coming from two normal densities and obtain a confidence interval for this ratio. If this
interval did not contain 1, then you could conclude that with a certain probability the two
variances are different. Here is a graph of F (x) ≡ P (X ≤ x) where X is an F random
variable with r = r1 = r2 = 10.
1
0.5
0
0 5 10
r r
2 2
rS12 ≡ ∑ (Xk − X̄) , rS22 ≡ ∑ (Yk − Ȳ )
k=1 k=1
rS12 /σ 21 σ 2 rS2
2 2
= 22 12
rS2 /σ 2 σ 1 rS2
n µ 2 , σ 22 . These samples are {−3, 2, −1, 0, 1, −2, .5, .4, −.2, −.5, .3} and
{−4, −7, 7, 10, 15, 5, −8, 11, 12, −12, −5} . You can see that the second sample is much
more spead out than the first. Thus, they should have different variances. Does the confi-
dence interval predict this?
Some computations show that 11S12 = 19.22 and 11S22 = 906.64. Now, from the graph
of F (x) ≡ P (X ≤ x) where X has F distribution with r1 = r2 = r = 10 given above, using
39.2. THE T AND F DISTRIBUTIONS 815
the data cursor, two ordered pairs on this curve are (.33, .047) and (3.01, .9516) . Thus the
associated probability for X in (.33, 3.01) is .9516 − .047 = 0.904 6. Thus
σ 22 19.22
.33 ≤ ≤ 3.01
σ 21 906.64
with probability larger than .9. Thus, with probability larger than .9,
σ 22
15. 567 ≤ ≤ 141. 99
σ 21
It is obvious from this that the ratio is much larger than 1 so, just as you might have guessed,
the two variances are very different. In fact, we could have asserted this with much higher
probability.
From the data cursor, we find the ordered pair (.16, .0038) . thus the probability that
σ 22 19.22
.16 ≤
σ 21 906.64
is at least .9962. There can be no doubt that the second variance is much larger than the
first. Of course we would have thought that, but in general, the samples might not exhibit
such extreme differences in how spread out they are.
If you believe that the two means are the same, then you can add one degree of freedom
to the X 2 distributions and replace rS2 with ∑rk=1 (Xk − µ)2 . This means you can get better
confidence intervals, but why should you believe this? I think that in general, you wouldn’t
know this, so I have emphasized the case where the means are not known and the sample
mean is used instead. There is seemingly no end to complicated tests on statistics which
can be used to draw conclusions about the parameters of underlying distributions. This
book is not the place to explore each and every such technical procedure. To do this, you
should see specialized texts on statistics.
and two random samples {X1 , · · · , Xn } , {Y1 , · · · ,Yn } respectively from these two distribu-
2
tions. To find a .95 confidence interval for the ratio σσ̂ 2 , do the following.
σ̂ 2
3. The confidence interval is determined by solving for the ratio σ2
in the inequality
σ̂ 2 nS2
a≤ ≤b
σ 2 nŜ2
nŜ2 σ̂ 2 nŜ2
a 2
≤ 2
≤b 2
nS σ nS
or in other words,
2 2
∑nk=1 (Yk − Ȳ ) σ̂ 2 ∑nk=1 (Yk − Ȳ )
a 2
≤ ≤ b 2
∑nk=1 (Xk − X̄) σ2 ∑nk=1 (Xk − X̄)
You do the same thing if you want a different probability. Just identify a different inter-
val corresponding to the different probability and do the above.
Example 39.3.1 You know a random variable is a binomial random variable. Thus
!
n
P (X = k) = pk qn−k
k
To find an estimate, you seek to pick p in order to maximize this likelihood. Obviously it
would be better to maximize ln (L (p)) which equals
m
ln (L (p)) = ∑ [Xk ln (p) + (1 − Xk ) ln (1 − p)]
k=1
Then from beginning calculus, we take a derivative with respect to p and set equal to 0 and
solve for p. This is the maximum likelihood estimate for p.
m
Xk −1
∑ + (1 − Xk ) =0
k=1 p 1 −p
39.3. MAXIMUM LIKELIHOOD ESTIMATES 817
Thus ! !
m
1 1 m m m
1
∑ Xk = ∑ 1 − Xk = − ∑ Xk
p k=1 1 − p k=1 1− p k=1 1− p
!
m
1 m
∑ Xk =
p (1 − p) k=1 1− p
and so !
m
1 1 m
∑ Xk = m, p = ∑ Xk
p k=1 m k=1
Surely this makes sense. Recall that p was the probability of a success in a Bernouli trial
and the random variable X is the sum of these successes in n trials. To emphasize that this
is an estimate, people will write
1 m
p̂ = ∑ Xk .
m k=1
The above trick in which you maximize ln (L) is typically used. It is generally a good
idea because the likelihood involves taking a product and when you take the ln of a product,
you end up with a sum which is a lot easier to work with than the original product.
Example 39.3.2 Find a maximum likelihood estimate for µ and σ based on a random
sample X1 , · · · , Xn taken from a normal distribution.
In this and other cases of random variables having a density function, f (x) , you choose
the parameters to maximize the likelihood ∏nk=1 f (Xk ) . Thus, in this case, you maximize
n
1 1
L (µ, σ ) ≡ ∏ √ exp − 2 (Xk − µ)2
k=1 2πσ 2σ
√
You can delete the 1/ 2π. Then maximize the ln of this. Thus you want to maximize
n
1 2
∑ − ln (σ ) + − (Xk − µ)
k=1 2σ 2
and so
1 n
µ̂ = ∑ Xk ≡ X̄
n k=1
which is the sample mean. Next take partial derivative with respect to σ
n
1 1
∑ − σ + σ 3 (Xk − µ)2 = 0
k=1
and so
1 n 2
σ̂ 2 = ∑ (Xk − X̄) ≡ S2
n k=1
This is the maximum likelihood estimate for the variance.
It should
be noticed that there is a problem with this. The estimate is biased. This means
2 2
that E σ̂ = E S ̸= σ 2 . To see this, recall that it was shown above that nS2 /σ 2 is a
and it was shown, using the special form of the normal distribution that this random variable
and random vector are independent. This is what made it possible to determine the moment
generating function and distribution of nS2 /σ 2 which made possible a whole collection of
statistical tests and motivated the T and F distributions. However, what was really needed
2
were independence of the quadratic forms ∑nk=1 (Xkσ−2X̄) and X̄ 2 being independent. Thus
we have already been using quadratic forms evaluated at random samples of the normal
distribution.
The idea now is to just extend this to more general situations in which the symmetric
matrix is perhaps not I. To do this, I will first consider the moment generating function for
X T AX where
A is symmetric and X is a random vector whose components are distributed
as n 0, σ 2 . To save space let dx1 · · · dxn = d →−x
n Z
1 T − 1 x·x
M (t) ≡ √ et x Ax e 2 σ 2 dx1 · · · dxn
2πσ R n
39.4. QUADRATIC FORMS 819
n Z T
n Z
1 σ 2 t x 2Ax − 12 x·x 1 − 1 2 xT (I−2σ 2 tA)x →
= √ e σ e σ2 d→ −
x = √ e2σ d−
x
2πσ Rn 2πσ Rn
diagonal matrix having all positive diagonal entries. We can get such a thing whenever |t|
is small enough because then the expression I − 2σ 2tA will have all positive eigenvalues.
Now det (U) = ±1 because it is orthogonal. Changing variables to y and using the change
of variables formula,
n Z
1 − 1 y T U T (I−2σ 2 tA)U y →
M (t) = √ e 2σ 2 d−
y
2πσ Rn
n Z
1 − 1 y T D(t)y →
= √ e 2σ 2 d−y
2πσ R n
where D (t) is the diagonal matrix which has the positive eigenvalues λ 2k (t) down the diag-
onal. Then the above expression splits into factors of the form
1
Z
− 1 2 y2k λ 2k
√ e2σ dyk
2πσ R
variables X1 , · · · , Xn . Then there are two random variables X T AX, X T BX and we want
to determine when these two are independent. Then using similar reasoning to the above,
it follows that for |s| , |t| both small enough,
1
M (t, s) ≡ E exp tX T AX + sX T BX
=
det (I − 2σ 2tA − 2σ 2 sB)1/2
If AB = 0, then
I − 2σ 2tA I − 2σ 2 sB = I − 2σ 2tA − 2σ 2 sB + 4σ 4tsAB
= I − 2σ 2tA − 2σ 2 sB
820 CHAPTER 39. STATISTICAL TESTS
and so
1 1 1
M (t, s) = =
det (I − 2σ 2tA − 2σ 2 sB)1/2 det (I − 2σ 2tA)1/2 det (I − 2σ 2 sB)1/2
= M (t, 0) M (0, s)
which shows that the two quadratic forms X T AX, X T BX are independent.
In fact this is true the other direction. Suppose the two quadratic forms are independent.
Thus M (t, 0) M (0, s) = M (t, s). Then this requires
1 1 1
=
det (I − 2σ 2tA − 2σ 2 sB)1/2 det (I − 2σ 2tA)1/2 det (I − 2σ 2 sB)1/2
and so
det I − 2σ 2tA − 2σ 2 sB = det I − 2σ 2tA det I − 2σ 2 sB
This is to hold for all |t| , |s| small enough. However, if AB ̸= 0, the polynomial on the right
will be of degree 2n while the one on the left will be of degree n. Therefore, these cannot
be equal. The details follow.
From the definition of the determinant, the left side is
T
X ≡ X1 · · · Xn
and A, B two symmetric real matrices, then X T AX and X T BX are independent if and
only if AB = 0.
Note that for A, B symmetric, AB = 0 if and only if BT AT = BA = 0.
If you have more than two of these, say Ak , k ≤ m the result would end up being similar
although you would need to have A j Ak = 0 whenever j ̸= k.
As an interesting observation, from linear algebra, this condition that the products give
0 implies that the matrices {Ak } are a commuting family of diagonalizable matrices and so
they are simultaneously diagonalizable, meaning that there exists a single invertible matrix
S such that S−1 Ak S = Dk where Dk is a diagonal matrix. However, more is assumed here in
saying that the product is 0. In particular, you can’t have a repeated nonzero matrix in the
list of matrices.
39.4. QUADRATIC FORMS 821
T
X≡ X1 ··· Xn
m
and let {Ak }m
T
k=1 be symmetric real matrices. Then the random variables X Ak X k=1
are independent if and only if Ak A j = 0 whenever k ̸= j.
Recall that for X1 , · · · , Xn independent random variables which are n µ, σ 2 , their sum
2
X −µ
∑ni=1 iσ is X 2 (n). As noted, this is a quadratic form in the independent random
n on
variables Xiσ−µ . You just let the symmetric matrix A be the identity.
i=1
T
What about X σA2 X ? When will this be distributed as a X 2 (r) random variable? For
simplicity, assume the random variables are n 0, σ 2 . It was shown above that the moment
X T AX
Therefore, the moment generating function of σ2
is
T
t −1/2
t X 2AX
M (t) ≡ E e σ 2
= det I − 2σ 2 A = det (I − 2tA)−1/2
σ
Of course, it was shown some time ago that the moment generating function for X 2 (r) is
1 T
r/2 . Let U be an orthogonal matrix such that U AU = D, a diagonal matrix. Thus
(1−2t)
Now if there is anything other than 1 or 0 on the diagonal of D then M (t) cannot possibly
1
be of the form r/2 . Lets consider why this is. Suppose the diagonal entries of D are
(1−2t)
d1 , · · · , dn . Then
!−1/2
n
M (t) = ∏ (1 − 2tdi )
i=1
If you have a factor (1 − 2tdi ) for some di ∈ / {0, 1} , then it simply does not have the right
form to be the moment generating function for X 2 (r). On the other hand, if each di is
either 0 or 1, then M (t) will have the right form and the r will be the number of eigenvalues
equal to 1, the rank of A.
Is there a simple way to describe this condition that X T AX is X 2 (r)? Yes there is.
The eigenvalues of the symmetric matrix A are either 1 or 0.
Lemma 39.4.4 Let A be a real symmetric matrix. Then A2 = A if and only if the eigenval-
ues of A are either 0 or 1.
basis to 0.
Conversely, suppose A2 = A. Why are all eigenvalues 1 or 0? Say Av = λ v and say
λ ̸= 0. Then for each v an eigenvector, A2 v = Av = λ Av and so A (1 − λ ) v = 0. If λ ̸= 1,
then Av = 0 which is assumed not to be so. Hence λ = 1. Thus all eigenvalues are either
0 or 1. ■
This proves the following interesting theorem.
is X 2 (n − 1) where
1 n
X̄ = ∑ Xk
n k=1
In showing this, first there was some algebra.
X 2 (n)
z }| {
2
(Xk − µ)2
n n
((Xk − X̄) + (X̄ − µ))
∑ σ2 = ∑ σ2
k=1 k=1
Then it was proved that the two random variables at the end are independent. This was
done by using the special form of the normal distribution. Then from this, we obtained on
looking at the moment generating functions,
!2
n/2 2 n
1 nS (Xk − µ)
= E exp t 2 E exp t ∑ √
1 − 2t σ j=1 nσ
2
nS 1
= E exp t 2
σ (1 − 2t)1/2
39.4. QUADRATIC FORMS 823
xT Ax = xT Bx + xT Cx (39.6)
and suppose X T AX is X 2 (r) , X T BX is X 2 (r1 ) for r1 < r. Then the two random
variables on the right are independent and X T CX is X 2 (r − r1 ).
Proof: Since 39.6 is a statement about quadratic forms for arbitrary x, it ! follows that
I 0
A = B +C. Now there is an orthogonal matrix U such that U T AU = where I is
0 0
r × r for r the rank of A. This follows from Theorem 11.4.7 presented much earlier in the
material on linear algebra and the fact that X T AX is X 2 (r) which implies, from Theorem
39.4.5 the eigenvalues of A are 1 or 0. Therefore,
! ! !
I 0 P P12 Q Q12
= + (39.7)
0 0 P21 P22 Q21 Q22
! !
P P12 Q Q12
where P, Q are r × r matrices and U T BU = ,U T CU = .
P21 P22 Q21 Q22
!
I 0
Now multiply on both sides of 39.7 by . This yields
0 0
! ! !
P P12 Q Q12 I 0
+ =
P21 P22 Q21 Q22 0 0
! ! !
I 0 P 0 Q 0
= +
0 0 0 0 0 0
Thus P12 , P21 , P22 , Q12 , Q21 , Q22 are all 0 and
! ! !
T I 0 P 0 Q 0
U AU = = U T (B +C)U = + (39.8)
0 0 0 0 0 0
824 CHAPTER 39. STATISTICAL TESTS
Note that the symmetry of B,C implies P, Q are symmetric also. It is given that X T BX is
X 2 r1 which happens if and only if B2 = B thanks to Theorem 39.4.5. In other words, B
= E exp tX T BX exp tX T CX
= E exp tX T BX E exp tX T CX
m
xT A x = ∑ xT Ak x (39.9)
k=1
A = A1 + (A2 + · · · + Am ) ≡ A1 + B.
Then doing the same argument as above, you find that A1 B = 0 and B2 = B since X T BX
is X 2 (r − r1 ). Now
B = A2 + · · · + Am
and there are only m − 1 in the sum on the right. By induction, Am is
!!
m−1
X 2 r − r1 − ∑ rk
k=2
and X T Ak X are independent for k between 2 and m because Ak A j = 0 for such k, j. Recall
Proposition 39.4.2. It only remains to verify that A1 Ak for 2 ≤ k ≤ m. You could do
the same argument in the form A = A2 + (A1 + A3 + · · · + Am ) and conclude that A1 Ak =
0 for 3 ≤ k ≤ m − 1. Then all that is left is A1 A2 . Just do the argument again for A =
A3 + (A1 + A2 + A4 + · · · + Am ) and conclude in particular that A1 A2 = 0. Thus all mixed
products are 0 and so the quadratic forms are independent. ■
Summary 39.4.8 The following are the main ideas in this section. In all of this,
T
X = X1 · · · Xn
where the Xi are independent and n 0, σ 2 and the matrices are symmetric
for each k ̸= j.
X T AX
2. σ2
is X 2 (r) if and only if A2 = A and the rank of A is r.
n α + β (tk − t¯) , σ 2
where t¯ ≡ n1 ∑nk=1 tk . There may be many Xi associated with a single tk but it is assumed
that they are independent and normally distributed with a mean which depends on the tk
but the variance is constant. Note that the tk might be repeated in the list. Typically they
are repeated because one is taking a sample larger than one for each tk .
826 CHAPTER 39. STATISTICAL TESTS
Should the above condition be assumed? I am not sure, from the point of view of
rigorous math, but this kind of thing is often assumed in experimental work and leads to
useful conclusions and is not unreasonable since it is just an assumption that the random
variables for each ti are normally distributed.
For example suppose someone is developing vaccines for antiplasmosis, a disease in
animals which causes anemia. You can measure anemia easily by keeping track of the
packed cell volume. He has 15 animals which are infected by the disease and every week,
he takes a small sample of blood from each and measures this packed cell volume using a
centrifuge and capillary tubes. These measurements yield the Xk . If he had another group
of animals say 20 which have been given a vaccine, how would he tell if the vaccine was
effective? He would look for differences in the two different values of β . If he has a confi-
dence interval for each β , the one for the vaccinated cows and the one for the unvaccinated
ones, he could possibly conclude that his vaccine was working. An ordinary least squares
approach would approximate the data with a straight line for each group of animals and
would give a slope β̂ based solely on geometric conditions. This may suggest that the vac-
cine is working, but to be sure the pictures mean something, he needs a confidence interval
or something similar involving a probability for the two parameters β , not just the estimate
β̂ . It would of course also be very interesting to estimate the variance. The machinery for
doing these estimates will be considered in this section. It is a very nice application of the
results of the last section in which the distribution of quadratic forms was considered.
T
By independence, the probability density of the vector X = X1 · · · Xn is
Here tk is the time which goes with Xk . Thus the tk may be repeated because for a given
ti , there are at least one Xk , maybe more. The reason for writing the mean as α + β (tk − t¯)
rather than more simply a + tb is that certain formulas come out looking much simpler if it
is written this way and the maximum likelihood estimates for α, β turn out to be X 2 (1).√
First consider the maximum likelihood estimates for α, β , σ 2 . Forget about the 2π
and work with ln of the expression.
n
1 (Xk − (α + β (tk − t¯)))2
n ln (σ ) + ∑ = L (σ , α, β ) (39.10)
k=1 2 σ2
Next take partial with respect to β and set equal to 0. Denote by α̂, β̂ the solutions. These
are the maximum likelihood estimates.
n
∑ (Xk − (α + β (tk − t¯))) (tk − t¯) = 0
k=1
Thus
∑ Xk − nα = 0,
k
39.5. LINEAR REGRESSION 827
and so
1
α̂ = Xk ≡ X̄
n∑k
Then also
n
∑ Xk (tk − t¯) − β ∑ (tk − t¯)2 = 0
k=1 k
and so
∑nk=1 Xk (tk − t¯) ∑nk=1 (Xk − X̄) (tk − t¯)
β̂ = 2
= 2
∑k (tk − t¯) ∑k (tk − t¯)
because ∑nk=1 X̄ (tk − t¯) = 0. It remains to find the maximum likelihood estimate for σ 2 .
Using 39.10,
2
n n Xk − α̂ + β̂ (tk − t¯)
−∑ =0
σ k=1 σ3
1 n 2
σ̂ 2 = ∑ Xk − α̂ + β̂ (tk − t¯)
n k=1
Now consider
n
(Xk − (α + β (tk − t¯)))2
∑ (39.11)
k=1 σ2
I will add in α̂ + β̂ (tk − t¯) and subtract it and then write this as a sum of quadratic forms.
First of all, note that it is the sum of the squares of independent random variables in n (0, 1)
and so it is X 2 (n). It equals
2
n Xk − α̂ + β̂ (tk − t¯) + α̂ + β̂ (tk − t¯) − (α + β (tk − t¯))
∑ (39.12)
k=1 σ2
This will be expanded. I need to consider the mixed term in which I will use the above
descriptions of α̂ and β̂ .
∑ Xk − α̂ + β̂ (tk − t¯) α̂ + β̂ (tk − t¯) − (α + β (tk − t¯))
k
h i h i
= ∑ (Xk − X̄) − β̂ (tk − t¯) X̄ + β̂ (tk − t¯) − (α + β (tk − t¯))
k
First note that
∑ (Xk − X̄) X̄ = ∑ (Xk − X̄) α = ∑ β̂ (tk − t¯) X̄ = ∑ β̂ (tk − t¯) α = 0
k k k k
Thus the mixed term is
∑ (Xk − X̄) β̂ (tk − t¯) − β ∑ (Xk − X̄) (tk − t¯)
k k
2 2
−β̂ ∑ (tk − t¯) + β̂ β ∑ (tk − t¯)2
k k
= β̂ − β ∑ (Xk − X̄) (tk − t¯) + β̂ β − β̂ ∑ (tk − t¯)2
k k
= β̂ − β β̂ ∑ (t j − t¯)2 + β̂ β − β̂ ∑ (tk − t¯)2 = 0
j k
828 CHAPTER 39. STATISTICAL TESTS
It follows from the vanishing of the mixed term that 39.11 equals
n
(Xk − (α + β (tk − t¯)))2
∑ σ2
k=1
2
n Xk − α̂ + β̂ (tk − t¯) + α̂ + β̂ (tk − t¯) − (α + β (tk − t¯))2
= ∑
k=1 σ2
1 nσ̂ 2
= 2 ∑ α̂ + β̂ (tk − t¯) − (α + β (tk − t¯))2 + 2
σ k σ
1 2 nσ̂ 2
= ∑ (α̂ − α) + β̂ − β (t k − ¯
t ) + 2
σ2 k σ
Consider the mixed term in the first sum.
∑ (α̂ − α) β̂ − β (tk − t¯) = 0
k
2
Thus α̂ = X̄ is n n1 ∑ni=1 (α + β (ti − tˆ)) , ∑i n12 σ 2 = n α, σn . Also (σα̂−α
√ = X̄−α
/ n)
√ is
(σ / n)
n (0, 1) and so the square root of the first term on the right in 39.13 is n (0, 1) so that first
term is X 2 (1). Similarly, consider the second term or rather its square root. This is
β̂ − β
1/2 (39.14)
2
σ / ∑k (tk − t¯)
39.5. LINEAR REGRESSION 829
nσ̂ 2 1 n 2
= ∑ k X − α̂ + β̂ (t k − ¯
t )
σ2 σ 2 k=1
Thus we have
X 2 (1)
X 2 (n)
X 2 (1)
z { }|
z }| { 2
n
(Xk − (α + β (tk − t¯)))2
z
n
}| { β̂ − β
∑ = (α̂ − α)2 + ∑ (tk − t¯)2
k=1 σ2 σ2 σ2 k
n 2
1
+ 2 ∑ Xk − α̂ + β̂ (tk − t¯) (39.15)
σ k=1
In fact, the terms on the right are quadratic forms in the variables Xk − (α + β (tk − t¯))
although it does not look like it. Consider the first term.
1 1
α̂ − α = Xk − α = ∑ (Xk − α)
n∑k n k
1
= (Xk − (α + β (ti − t¯)))
n∑k
This is squared and that is why this term is a quadratic form in the variables
Xk − (α + β (tk − t¯))
Note that the terms added in sum to 0. A similar trick will apply to the other terms. Consider
the second term.
2
∑nk=1 Xk (tk − t¯) ∑nk=1 Xk (tk − t¯) − β ∑k (tk − t¯)
β̂ − β = 2
− β = 2
∑k (tk − t¯) ∑k (tk − t¯)
830 CHAPTER 39. STATISTICAL TESTS
∑nk=1 (Xk − β (tk − t¯)) (tk − t¯) ∑nk=1 (Xk − (α + β (tk − t¯))) (tk − t¯)
= 2
= 2
∑k (tk − t¯) ∑k (tk − t¯)
Note that the terms added in which include α sum to 0. Thus this second term is a
constant times the square of the above which is a quadratic form in the variables Xk −
(α + β (tk − t¯)) .
Finally, consider the last term. Since all the other terms are quadratic forms in the
variables Xk − (α + β (tk − t¯)) , this one must also be so because it is equal to a linear com-
bination of these terms. Alternatively, you could verify this in a similar manner. However, I
will stop here and not wade in sorrow to massage the complicated expression into the right
form. This is what is needed for the following proposition.
Proposition 39.5.3 In 39.15 the various terms are chi-squared as indicated in the formula
and the last term is X 2 (n − 2). Also, the three terms on the right are independent random
variables.
Thus
∑nk=1 (Xk ) (tk − t¯) ∑k Xk tk − t¯ ∑k Xk
b = β̂ = 2
=
∑k (tk − t¯) ∑k tk2 − 2tk t¯ + t¯2
∑k Xk tk − t¯ ∑k Xk
=
∑k tk2 − nt¯2
Recall how the least squares line is a + bt where b =
− (∑nk=1 tk ) (∑nk=1 Xk ) + (∑nk=1 tk Xk ) n
2
∑nk=1 tk2 n − (∑nk=1 tk )
(∑nk=1 tk Xk ) − t¯ (∑nk=1 Xk )
=
∑nk=1 tk2 − nt¯2
is X 2 (n − 2) and so you can use this statistic and a table or graph of the appropriate chi
∑n X j (t j −t¯)
squared distribution to obtain a confidence interval for σ 2 . Since β̂ = j=1 2 , the
∑ j (t j −t¯)
39.5. LINEAR REGRESSION 831
above expression is
1 n 2
2 ∑ Xk − α̂ + β̂ (tk − t¯)
σ k=1
! !!2
1 n ∑nj=1 X j (t j − t¯)
= ∑ Xk − X̄ + 2
(tk − t¯)
σ 2 k=1 ∑ j (t j − t¯)
1. If there are n observations, n fairly large, certainly larger than 2, find an interval
[a, b] such that if V is a X 2 (n − 2) random variable P (V ∈ [a, b]) ≥ .95.
2. Find X̄ the sample mean and t¯ the average of the t values. Then fill in to find
! !!2
n ∑nj=1 X j (t j − t¯)
S≡ ∑ Xk − X̄ + 2
(tk − t¯)
k=1 ∑ j (t j − t¯)
I think one is even more interested in β , the slope of the line for the mean. To find
a confidence interval for β , recall the T test. The T distribution was the distribution of
√W where V was X 2 (r) and W was n (0, 1). Do we have such random variables above?
V /r
2
Recall it was shown above that β̂ is n β , σ ¯ 2 . Therefore,
∑i (ti −t )
β̂ − β
q is n (0, 1)
σ / ∑i (ti − t¯)2
Therefore,
√β̂ −β
σ / ∑i (ti −t¯)2
r 2
1
σ2 ∑nk=1 Xk − α̂ + β̂ (tk − t¯) / (n − 2)
832 CHAPTER 39. STATISTICAL TESTS
1. If there are n observations, n fairly large, certainly larger than 2, find an interval
for the T distribution [a, b] such that if X is a random variable with this distribution,
P (X ∈ [a, b]) ≥ .95.
2. Compute t¯ the average t value and X̄ the sample mean. Then compute
v !!2
∑nj=1 X j (t j − t¯)
u
s u n
2t
S ≡ ∑ (t j − t¯) ∑ Xk − X̄ + ∑ (t − t¯)2 (tk − t¯)
j k=1 j j
√
and P ≡ n − 2 ∑nj=1 X j (t j − t¯) . Then the confidence interval is obtained by solving
the following inequality for β .
√
P − n − 2β ∑nj=1 (t j − t¯)2
a≤ ≤b
S
Then the confidence interval for β is
P − aS P − Sb
√ 2
≥β ≥ √
n
n − 2 ∑ j=1 (t j − t¯) n − 2 ∑nj=1 (t j − t¯)2
You can also find a confidence interval for α. Here you would use a T distribution
involving (σα̂−α
√ which was shown above to be n (0, 1) along with the distribution of the
/ n)
2
X 2 (n − 2) random variable σ12 ∑nk=1 Xk − α̂ + β̂ (tk − t¯) in the description of the T
statistic. This is left to the interested reader. It is just like the above.
it. These methods come from Pearson around 1900. Again, they involve massaging things
to use a known distribution, this time a chi-squared distribution.
To do this right, you should be using characteristic functions, but everything of interest
in this book will have a moment generating function and it is just less fussy to do everything
in terms of moment generating functions. However, the complex variable material in this
book is sufficient for you to do in terms of characteristic functions, except even then, there
are more advanced and theoretical theorems needed which involve much harder techniques.
These are related to convergence of the characteristic functions leading to convergence of
the distributions. Because of these considerations, I will give a discussion to make the
main result plausible based on moment generating functions. To see a full discussion of the
theory about to be presented, see [9]. The following is the situation of interest.
If this is small, then there isn’t much difference between the observed value Vi and
the expected value npi and it would be reasonable to think that the sample is from
the given probability distribution. On the other hand, if it is large, then it would not
be reasonable to consider the sample as coming from the given distribution.
Of course, the problem is in quantifying these issues and this involves the next major
proposition. First is a lemma about counting.
Lemma 39.6.1 The number of ways of selecting subsets having v1 , · · · , vr elements where
∑k vk = n, from a set having n elements is
n!
v1 !v2 ! · · · vr !
Also
n!
(a1 + a2 + · · · + ar )n = ∑ av11 av22 · · · avr r
v1 +···+vr =n v 1 !v2 ! · · · vr !
where there are n products. Thus this product equals a sum of terms of the form av11 av22 · · · avr r
where ∑k vk = n. How many are there for a given choice of exponents v1 , v2 , · · · , vr ? it is
the number of ways of picking v1 factors from the above product to go with av11 , v2 factors
to go with av22 and so forth. Thus the total number associated with a particular term of this
form is v1 !v2n!!···vr ! and this proves the second part. ■
Proposition 39.6.2 Let pk ,Vk be as described above where F (x) is a given distribution
function. Then if n is large, Q (n) is distributed approximately as X 2 (r − 1) where there
are r disjoint intervals covering R.
Proof: Assume the Xk are samples from F (x). Then the Vk have a multinomial distri-
bution. That is
n!
P (V1 = v1 ,V2 = v2 , · · · ,Vr = vr ) = pv1 · · · pvr r , ∑ vk = n.
v1 !v2 ! · · · vn ! 1 k
Indeed, the probability that any Xk is in Si is pi and so the probability that there are vi of
them in Si is as claimed above. Then consider the moment generating function
!
r
M (t1 , · · · ,tr ) ≡ E exp ∑ tkVk
k=1
n!
= ∑ pv11 · · · pvr r et1 v1 · · · etr vr
v !v
v1 +···+vr =n 1 2 ! · · · vn !
Then ! !
np
Vk − npk − ∑k tk √npk tk
E ∑ tk √ =e kE
∑ √npk Vk
k npk k
t
√k
npk
Now replace each e with the first few terms of its power series. Then the inside of ()
above becomes
2 2
√t1 √tr
t1 np1 tr npr 1
p1 1 + √ + + · · · + pr 1 + √ + +O
np1 2! npr 2! n3/2
1
That last term indicates that what is left over is just a lot of stuff times powers of n3/2
. Since
the sum of the pi is one, this yields ln (Mn ) =
2
t1
p1 √np
√ 1 + √pnp
1 t1
1
+ 2!
1
+ · · · + √pnp
r tr
r
− ∑ tk pk n + n ln
t
2
pr √nprr
k 1
+ 2! + O n3/2
Of course this simplifies. When you multiply by the n you get ln (Mn ) =
√ √ √
√ (t1 )2 (tr )2
√ n p1 t 1 + + · · · + n p r tr +
− ∑ tk p k n + 2 2 2
1 pk tk 1
k − 2 n ∑k np √ + O n1/2
k
!2
(t1 )2 (tr )2 1
√ 1
= +···+ − ∑ p k tk +O
2 2 2 k n1/2
Therefore, !2
1 √ √
Mn = exp ∑ tk2 − ∑ pktk eO(1/ n)
2 k k
1 T
where t ∈ Rr . What is A?
which is of the form exp 2 t At
!2
√ √
∑ tk2 − ∑ p k tk = ∑ tk2 − ∑ pi p j tit j
k k k i, j
836 CHAPTER 39. STATISTICAL TESTS
and so √ √
1 − p1 − p1 p2 · · · − p1 pr
√ √
− p1 p2 1 − p2 ··· − p2 pr
A= .. .. .. ..
. .
. .
√ √
− pr p1 − pr p2 · · · 1 − pr
√
p1
√
p2 √ √ √
A = I −
..
p1 p2 ··· pr
.
√
pr
Thus A2 = A and so by Lemma 39.4.4 the matrix A has only 0 and 1 as eigenvalues. Now
note that
I − aaT a = 0
and so there is a 0 eigenvalue. In fact multiples of this single eigenvector are the only ones
which deliver 0 as an eigenvalue. I show this now. If I − aaT b = 0, then b = aaT b
and so |b| = |a| aT b ≤ |a|2 |b| = |b| and so you must have (a · b) = aT b = |a| |b| which
means that the only eigenvectors b which have 0 as an eigenvalue are multiples of a. Recall
that this was the condition for equality in the Cauchy Schwarz inequality. Therefore, the
rank of A is r − 1. This is because A is symmetric so there is a basis of eigenvectors. By
Corollary 38.9.9, and the fact that if the moment generating functions converge, then so do
the random variables having the given moment generating function, it follows that for large
2
n, the distribution of ∑rk=1 (Vk −np
np
k)
is X 2 (r − 1) as claimed. ■
k
Example 39.6.3 A die is half of a pair of dice. It is cubic and has numbers from 1 to 6 on
the sides. They are suppose to come up with equal probability. Now you have a die and it
is rolled 60 times. The following table summarizes the outcomes.
1 2 3 4 5 6
6 5 9 10 23 7
Is it reasonable to conclude that the die is fair, doing what it is supposed to do by
giving the same probability to each possible outcome? Well, obviously not, but lets see how
to quantify this conclusion.
Let S1 = (−∞, 1], S2 = (1, 2], S3 = (2, 3], S4 = (3, 4], S5 = (4, 5], S6 = (5, ∞). Then the
pi are each 1/6. We compute the thing which will have a X 2 (5) distribution.
(6−10)2 2 2 !
r
(Vk − npk )2 10 + (5−10)
10 + (9−10)
10
∑ npk = 2 2 = 22
k=1 + (23−10) + (7−10)
10 10
Now from a table or using MATLAB and data cursor you find that the probability that a
X 2 (5) random variable is less than 14.35 is .98. However, here we have that the random
variable is 22 so I can say with probability .98 that the die is unfair.
39.6. GOODNESS OF FIT 837
Actually, there is a fly in the ointment. You know the random variable is not exactly
X 2 (5). After all, you only used a sample of 60 = n. The idea is to let n → ∞. Cramér
says that if n is large enough that the expected numbers npi ≥ 10 for each Si , then the
approximation will be good enough for ordinary applications. Of course you end up being
more sure if you take n larger. More information is typically better.
This process illustrates another example of Hypothesis testing. In this case, the “null
hypothesis” is that the die is fair and the density function is 1/6 for each outcome. The
above process indicates that we should reject the “null hypothesis” with probability .98.
This is a general notion in statistics called hypothesis testing. There is quite a bit of jargon
associated with this, but the main idea is illustrated by the above example. Here is another
example where it is not so clear.
Example 39.6.4 A die is half of a pair of dice. It is cubic and has numbers from 1 to 6 on
the sides. They are suppose to come up with equal probability. Now you have a die and it
is rolled 60 times. The following table summarizes the outcomes.
1 2 3 4 5 6
9 11 9 11 10 10
Is it reasonable to conclude that the die is fair, doing what it is supposed to do by giving
the same probability to each possible outcome?
We can do this the same way. Lets agree to reject the null hypothesis that the die
is fair if the statistic used above which measures discrepency is in a region x > a where
P (X ≤ a) = .6. The X 2 (5) variable is
1 1 1
+ + = .3
10 10 10
It is clearly not in a region associated with smaller than probability .4. In fact, from the
graph or a table, X 2 > .3, occurs with probability almost 1, certainly larger than .98.
Therefore, it is totally unsurprising that this random variable would be larger than .3. There-
fore, we don’t reject the hypothesis. It is reasonable to think that the die is fair.
Since n is large, this is distributed as X 2 (r − 1) . The null hypothesis H0 is that F (x) is the
distribution for the sample. We reject H0 with probability .95 if D ≥ α where P (D ≤ α) ≥
.95.
The following example illustrates a situation which is more typical in which there are
parameters. The question is whether grades are normally distributed. Of course there are
two parameters µ and σ 2 and what you are asking is whether some choice of µ and σ 2 re-
sults in a normal distribution from which a random sample of test scores can be considered
drawn. The way to deal with this is to regard D in the above as X 2 ((r − 1) − s) where s is
838 CHAPTER 39. STATISTICAL TESTS
the number of unknown parameters and to replace each parameter with its maximum like-
lihood estimate. The proof of this is very technical and you can see it discussed in Cramér,
[9].
First we need to compute the maximum likelihood estimates. There are 400 exams.
!
1 40 × 120 + 55 × 150 + 65 × 60
X̄ = = 57.7 5
400 +75 × 20 + 85 × 10 + 95 × 40
1 400 1 400 2
∑ (Xi − 56.5)2 = ∑ Xi − X̄ 2
400 k=1 400 k=1
1
To find the first term, 400 ∑400 2
k=1 Xi =
!
1 1369 × 120 + 3136 × 150 + 4489 × 60
= 3682. 3
400 +5929 × 20 + 7396 × 10 + 9409 × 40
Z 90 2
1 1 (x−56. 5)
p5 = √ √ e− 2 347. 24 dx = 6. 752 6 × 10−2
2π 347. 24 80
2
1
Z ∞
1 (x−56. 5)
p6 = √ √ e− 2 347. 24 dx = 3. 610 8 × 10−2
2π 347. 24 90
D = 134. 96
Now since there are two parameters, D is X 2 (3) , (6 − 1)−2. If you use the data cursor
on a graph of the distribution function, you find the pair (15.3, .9984). Thus if the null
hypothesis is true that this sample is normally distributed, it would involve a probability
of less than .01. Therefore, the null hypothesis can be rejected with probability larger than
.99. This isn’t quite true of course. Clearly if you used more disjoint intervals, you should
be more sure that the approximation is good, so there is a little fuzziness in this goodness of
fit test. However, it does help to quantify the appearance that the distribution is not normal.
In the above example, this seems fairly clear just from looking at the scores, but this allows
you to give numbers to justify its lack of normality.
Incidentally, if you are not careful, you can get such a distribution of scores on a fi-
nal exam. All you need are faculty who wax creative rather than focussing on published
outcomes. One wonders whether it is reasonable to base assigning letter grades on an as-
sumption that the final exam scores are normally distributed, if the hypothesis that this is
so can be rejected with high probability according to the above procedure. However, I
think that it is often the case that people who follow these automatic procedures do not do
goodness of fit tests like that just described.
A1 A2 A3
B1 p11 p12 p13
B2 p21 p22 p23
For example, you might be looking at the people in a city and B1 is the event that the
person is female and B2 the event that the person is male while A1 might be that the person
is a democrat, A2 the person is a republican and A3 the person is neither one. A given
person will be in exactly one of the Ai ∩ B j .
The numbers pi j are probabilities and ∑ j ∑i pi j = 1. Thus there is a random variable Z
and pi j is P (Z ∈ Ai ∩ B j ) = P (Ai ∩ B j ). Denote as p· j the marginal probability ∑i pi j and
840 CHAPTER 39. STATISTICAL TESTS
subject to the constraint that ∑i pi· = 1as usual, it works best to maximize the ln of the
above. Thus maximize
2 3
∑ ∑ (Xi j ln (p· j ) + Xi j ln (pi,· )) , ∑ pi· = 1
i=1 j=1 i
S2 ∑i ∑ j Xi j
thus λ p1· = S1 , λ p2· = S2 . Thus λ + Sλ1 = 1 and so λ = 1 and so λ = n. Then
Si ∑ j Xi j
p̂i· = =
n n
where this is the maximum likelihood estimate for pi· . Similar reasoning shows that
∑i Xi j
p̂· j = .
n
Now form
(Xi j − n p̂i· p̂· j )2
D≡∑
i, j n p̂i· p̂· j
By what was explained above, this is X 2 ((2 × 3 − 1) − 3) . The reason there is a 3 there
rather than a 5 is that there are only 3 unknown parameters due to the fact that ∑i pi· =
1, ∑ j p· j = 1. In general, if the table is r × s, the above expression would be
X 2 ((rs − 1) − (r + s − 2))
This justifies the following proposition.
39.7. CONTINGENCY TABLES 841
Proposition 39.7.1 Let there be an r × s contingency table such that the random variable
is in exactly one of Bi ∩ A j for i = 1, · · · , r, j = 1, · · · , s. If P (Bi ∩ A j ) = P (Bi ) P (A j ) for all
i, j, then if a sample is taken of size n and Xi j is the observed number in Bi ∩ A j , then when
n is large,
(Xi j − n p̂i· p̂· j )2
D≡∑
i, j n p̂i· p̂· j
Assuming the null hypothesis that the events Bi and A j are independent, one can now
test this hypothesis by using a graph or table for X 2 (rs − s − r + 1) .
Example 39.7.2 You have a 3 × 2 contingency table, three rows and two columns. Also
the number in a random sample is 900. The numbers of observations found in the various
positions are illustrated in the following.
120 300
180 80
100 120
Determine whether the underlying contingency table has the property that the events
could be independent. If the probability is no more than .01 that the events are independent,
reject the null hypothesis. Otherwise conclude that the events might be independent.
260
400
2 260
500
2
180 − 900 900 900 80 − 900 900 900
+ 260
400
+ 260
500
900 900 900 900 900 900
220
400 2
220
500
2
100 − 900 900 120 − 900
+ 220
400900
+ 220
900
500
900
900 900 900 900 900 900
Now compute this.
D = 107. 64
This is way too big to accept the null hypothesis. The events are not independent. The
statistic is distributed as X 2 (2) and a table gives probability 1 that the variable is less than
10. Yet D is larger than 100.
842 CHAPTER 39. STATISTICAL TESTS
Example 39.7.3 You have a 2 × 2 contingency table, three rows and two columns. Also
the number in a random sample is 1500. The numbers of observations found in the various
positions are illustrated in the following.
297 196
600 407
Determine whether the underlying contingency table has the property that the events
could be independent. If the probability is no more than .5 that the events are independent,
reject the null hypothesis. Otherwise conclude that the events might be independent.
1007
897
2 1007
201
2
600 − 1500 1500 407 − 1500
+ 493
2011500
+ 1500
1007
201500
1500 1500 500 1500 1500 500
D = 7. 623 7 × 10−2
This is distributed as X 2 ((4 − 1) − (2)) = X 2 (1) . From a table or graph, (.1, .248) is on
the graph of the distribution function. Therefore, since D is far smaller than .1, we don’t
reject the hypothesis that the sets are independent. Not being independent is indicated by
D being larger than some number a where the probability that a X 2 (1) random variable
is larger than a is very small, but this D is very small, so it is highly probable under the
null hypothesis that X 2 (1) > .1. This does not mean that the sets are independent. It
only means we don’t reject the possibility that they are. This is termed acceptance of
the hypothesis but you might fail to have independence even though you accept the
hypothesis.
Appendix A
843
844 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
Lemma A.2.2 If G and F are two grids, they have a common refinement, denoted here by
G ∨F.
n o∞
Proof: Let α ik k=−∞ be the sequences used to construct G and let β ik
∞
be the
ik=−∞
sequence used to construct F . Now let γ k k=−∞ denote the union of α k k=−∞ and
i ∞ ∞
n o∞
β ik . It is necessary to show that for each i these points can be arranged in order. To
k=−∞
do so, let γ i0 ≡ α i0 . Now if
γ i− j , · · · , γ i0 , · · · , γ ij
have been chosen such that they are in order and all distinct, let γ ij+1 be the first element of
i ∞ n o∞
α k k=−∞ ∪ β ik (1.3)
k=−∞
which is larger than γ ij and let γ i−( j+1) be the last element of (1.3) which is strictly smaller
than γ i− j . The assumption (1.1) insures such a first and last element exists. Now let the grid
G ∨ F consist of boxes of the form
n h i
Q ≡ ∏ γ iji , γ iji +1 . ■
i=1
The Riemannn integral is only defined for functions f which are bounded and are equal
to zero off some bounded set D. In what follows f will always be such a function.
Definition A.2.3 Let f be a bounded function which equals zero off a bounded set D, and
let G be a grid. For Q ∈ G , define
Now define upper sums, UG ( f ) and lower sums, LG ( f ) with respect to the indicated grid,
by the formulas
UG ( f ) ≡ ∑ MQ ( f ) v (Q) , LG ( f ) ≡ ∑ mQ ( f ) v (Q) .
Q∈G Q∈G
UG ( f ) ≥ UF ( f ) , LG ( f ) ≤ LF ( f ) .
LG ( f ) ≤ UF ( f ) .
{Q ∈ F : Q ⊆ P} .
LF ( f ) ≡ ∑ mQ ( f ) v (Q) = ∑ ∑ mQ ( f ) v (Q)
Q∈F P∈G Q∈Pb
≥ ∑ mP ( f ) ∑ v (Q) = ∑ mP ( f ) v (P) ≡ LG ( f ) .
P∈G Q∈Pb P∈G
LG ( f ) ≤ LG ∨F ( f ) ≤ UG ∨F ( f ) ≤ UF ( f ) . ■
Lemma A.2.6 I ( f ) ≥ I ( f ).
Proof: From Lemma A.2.4 it follows for any two grids G and F ,
LG ( f ) ≤ UF ( f ) .
Therefore, taking the supremum for all grids on the left in this inequality,
I ( f ) ≤ UF ( f )
for all grids F . Taking the infimum in this inequality, yields the conclusion of the lemma.
■
Definition A.2.7 A bounded function f which equals zero off a bounded set D, is said to be
Riemannn integrable, written as f ∈ R (Rn ) exactly when I ( f ) = I ( f ). In this case define
Z Z
f dV ≡ f dx = I ( f ) = I ( f ) .
As in the case of integration of functions of one variable, one obtains the Riemannn
criterion which is stated as the following theorem.
846 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
Theorem A.2.8 (Riemannn criterion) f ∈ R (Rn ) if and only if for all ε > 0 there exists a
grid G such that
UG ( f ) − LG ( f ) < ε.
Proof: If f ∈ R (Rn ), then I ( f ) = I ( f ) and so there exist grids G and F such that
ε ε
UG ( f ) − LF ( f ) ≤ I ( f ) + − I ( f ) − = ε.
2 2
Then letting H = G ∨ F , Lemma A.2.4 implies
UH ( f ) − LH ( f ) ≤ UG ( f ) − LF ( f ) < ε.
UG ( f ) − LG ( f ) < ε,
then
I ( f ) − I ( f ) ≤ UG ( f ) − LG ( f ) < ε.
Since ε > 0 is arbitrary, this proves the theorem. ■
Proof: Let ε > 0 and let δ 1 > 0 be such that if (yi , zi ) , i = 1, 2 are points in K, such that
|z1 − z2 | ≤ δ 1 and |y1 − y2 | ≤ δ 1 , then
Let 0 < δ < min (δ 1 , ε, 1). Let G be a grid with the property that for Q ∈ G , the diameter
of Q is less than δ and also for k = f , g,
it follows
δ2 > ∑ (MQ (k) − mQ (k)) v (Q) ≥
Q∈G
A.3. BASIC PROPERTIES 847
and so for k = f , g,
ε > δ > ∑ v (Q) . (1.6)
Pk
Suppose for k = f , g,
MQ (k) − mQ (k) ≤ δ .
Then if x1 , x2 ∈ Q,
Therefore,
Now since K is compact, it follows φ (K) is bounded and so there exists a constant C,
depending only on h and φ such that MQ (h) − mQ (h) < C. Therefore, the above inequality
implies
UG (h) − LG (h) ≤ C ∑ v (Q) +C ∑ v (Q) + ∑ δ v (Q) ,
Q∈P f Q∈Pg Q∈S
Corollary A.3.2 Let f , g ∈ R (Rn ) and let a, b ∈ R. Then a f + bg, f g, and | f | are all in
R (Rn ). Also, Z Z Z
(a f + bg) dx = a f dx + b g dx, (1.7)
Rn Rn Rn
and Z Z
| f | dx ≥ f dx . (1.8)
848 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
and so
Z
k dx − ∑ k (xQ ) v (Q) < ε.
Q∈G
Consequently, since
∑ (a f + bg) (xQ ) v (Q)
Q∈G
it follows Z Z Z
(a f + bg) dx − a f dx − b g dx ≤
Z
(a f + bg) dx − ∑ (a f + bg) (xQ ) v (Q) +
Q∈G
Z Z
a ∑ f (xQ ) v (Q) − a f dx + b ∑ g (xQ ) v (Q) − b g dx
Q∈G Q∈G
≤ ε + |a| ε + |b| ε.
Since ε is arbitrary, this establishes (1.7) and shows the integral is linear.
It remains to establish the inequality (1.8). By (1.9), and the triangle inequality for
sums, Z
| f | dx + ε ≥ ∑ | f (xQ )| v (Q)
Q∈G
Z
≥ ∑ f (xQ ) v (Q) ≥ f dx − ε.
Q∈G
This symbol says to sum the volumes of all boxes from G which have nonempty intersection
with E.
Next it is necessary to define the oscillation of a function.
Definition A.4.2 Let f be a function defined on Rn and let
ω f ,r (x) ≡ sup {| f (z) − f (y)| : z, y ∈ B (x,r)} .
This is called the oscillation of f on B (x,r). Note that this function of r is decreasing in r.
Define the oscillation of f as
ω f (x) ≡ lim ω f ,r (x) .
r→0+
Theorem A.4.6 Let f be a bounded function which equals zero off a bounded set and let
W denote the set of points where f fails to be continuous. Then f ∈ R (Rn ) if W has
content zero. That is, for all ε > 0 there exists a grid G such that
where
GW ≡ {Q ∈ G : Q ∩W ̸= 0}
/ .
Proof: Let W have content zero. Also let | f (x)| < C/2 for all x ∈ Rn , let ε > 0 be
given, and let G be a grid which satisfies (1.10). Since f equals zero off some bounded
set, there exists R such that f equals zero off of B 0, R2 . Thus W ⊆ B 0, R2 . Also note
that if G is a grid for which (1.10) holds, then this inequality continues to hold if G is
replaced with a refined grid. Therefore, you may assume the diameter of every box in G
which intersects B (0, R) is less than R3 and so all boxes of G which intersect the set where
f is nonzero are contained in B (0,R). Since W is bounded, GW contains only finitely many
boxes. Letting
n
Q ≡ ∏ [ai , bi ]
i=1
be one of these boxes, enlarge the box slightly as indicated in the following picture.
Q̃
and Gf
W denotes those Q for Q ∈ G which have nonempty intersection with W , then
e
∑ Qe < ε
v (1.11)
e
e Gf
Q∈ W
because each Q in FW is contained in a set Q described above and the sum of the volumes
ee
of these is less than ε by (1.11). Then
UF ( f ) − LF ( f ) = ∑ (MQ ( f ) − mQ ( f )) v (Q)
Q∈FW
+ ∑ (MQ ( f ) − mQ ( f )) v (Q) .
Q∈F1 \FW
If Q ∈ F1 \ FW , then Q must be a subset of some set of C \CW since it is not in any set of
CW . Say Q ⊆ Q f1 ∩ B (x,rx ) where x ∈
/ W . Therefore, from (1.12) and the observation that
x∈ / W , it follows ω f (x) = 0 and so
MQ ( f ) − mQ ( f ) ≤ ε.
UF ( f ) − LF ( f ) ≤ ∑ Cv (Q) + ∑ εv (Q)
Q∈FW Q∈F1 \FW
≤ Cε + ε (2R)n ,
the estimate of the second sum coming from the fact that
n
B (0, R) ⊆ ∏ [−R, R] .
i=1
Definition A.4.7 A bounded set E is a Jordan set in Rn , also called a contented set in Rn
if XE ∈ R (Rn ). The symbol XE means
(
1 if x ∈ E
XE (x) =
0 if x ∈
/E
1 Infact one cannot do any better. It can be shown that if a function is Riemann integrable, then it must be
the case that for all ε > 0, (1.10) is satisfied for some grid G . This along with what was just shown is known as
Lebesgue’s theorem after Lebesgue who discovered it in the early years of the twentieth century. Actually, he also
invented a far superior integral which made the Riemann integral which is the topic of this appendix obsolete.
852 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
Also let K ≥ ∑mj=1 vn (Q j ) where the Q j are the boxes which intersect E. Let {ai }∞
i=−∞ be a
sequence on R, ai < ai+1 for all i, which includes
ε
MQ j ( f XE ) + , MQ j ( f XE ) , MQ j (gXE ) ,
4mK
ε
mQ j ( f XE ) , mQ j (gXE ) , mQ j (gXE ) −
4mK
for all j = 1, · · · , m. Now define a grid on Rn+1 as follows.
G ′ ≡ {Q × [ai , ai+1 ] : Q ∈ G , i ∈ Z}
In words, this grid consists of all possible boxes of the form Q × [ai , ai+1 ] where Q ∈ G
and ai is a term of the sequence just described. It is necessary to verify that for P ∈ G ′ ,
XP ∈ R Rn+1 . This is done by showing that UG ′ (XP ) − LG ′ (XP ) < ε and then noting
that ε > 0 was arbitrary. For G ′ just described, denote by Q′ a box in G ′ . Thus Q′ =
Q × [ai , ai+1 ] for some i.
and all sums are bounded because the functions f and g are given to be bounded. Therefore,
there are no limit considerations needed here. Thus
UG ′ (XP ) − LG ′ (XP ) =
m ∞
∑ vn (Q j ) ∑ MQ j ×[ai ,ai+1 ] (XP ) − mQ j ×[ai ,ai+1 ] (XP ) (ai+1 − ai ) .
j=1 i=−∞
Consider the inside sum with the aid of the following picture.
A.4. WHICH FUNCTIONS ARE INTEGRABLE? 853
Qj 0 0 0 0 0 0 0 0 0
mQ j (g) MQ j (g)
xn+1
In this picture, the little rectangles represent the boxes Q j × [ai , ai+1 ] for fixed j. The
part of P having x contained in Q j is between the two surfaces, xn+1 = g (x) and xn+1 =
f (x) and there is a zero placed in those boxes for which
You see, XP has either the value of 1 or the value of 0 depending on whether (x, y) is
contained in P. For the boxes shown with 0 in them, either all of the box is contained in P
or none of the box is contained in P. Either way,
on these boxes. However, on the boxes intersected by the surfaces, the value of
is 1 because there are points in this box which are not in P as well as points which are in P.
Because of the construction of G ′ which included all values of
ε
MQ j ( f XE ) + , MQ j ( f XE ) ,
4mK
MQ j (gXE ) , mQ j ( f XE ) , mQ j (gXE )
for all j = 1, · · · , m,
∞
∑ MQ j ×[ai ,ai+1 ] (XP ) − mQ j ×[ai ,ai+1 ] (XP ) (ai+1 − ai ) ≤
i=−∞
The first of the sums in (1.15) contains all possible terms for which
might be 1 due to the graph of the bottom surface gXE while the second sum contains
all possible terms for which the expression might be 1 due to the graph of the top surface
f XE .
ε ε
≤ MQ j (gXE ) + − mQ j (gXE ) + MQ j ( f XE ) + − mQ j ( f XE )
4mK 4mK
854 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
!−1
m
ε
= MQ j (gXE ) − mQ j (gXE ) + MQ j ( f XE ) − mQ j ( f XE ) +
2m ∑ v (Q j ) .
j=1
Therefore, by (1.14),
UG ′ (XP ) − LG ′ (XP ) ≤
m
MQ j (gXE ) − mQ j (gXE ) + MQ j ( f XE ) − mQ j ( f XE )
∑ vn (Q j )
j=1
!−1
m m
ε
+ ∑ v (Q j ) ∑ v (Q j )
j=1 2m j=1
ε
= UG ( f ) − LG ( f ) + UG (g) − LG (g) +
2
ε ε ε
< + + = ε.
4 4 2
Since ε > 0 is arbitrary, this proves the theorem. ■
Corollary A.4.9 Suppose f and g are continuous functions defined on E, a contented set
in Rn and that g (x) ≤ f (x) for all x ∈ E. Then
P ≡ {(x,xn+1 ) : x ∈ E and g (x) ≤ xn+1 ≤ f (x)}
is a contented set in Rn .
Proof: Since E is contented, meaning XE is integrable, it follows from Theorem A.4.6
the set of discontinuities of XE has Jordan content 0. But the set of discontinuities of XE
is ∂ E defined as those points x such that B (x, r) contains points of E and points of E C
for every r > 0. Extend f and g to equal 0 off E. Then the set of discontinuities of these
extended functions still denoted as f , g is ∂ E which has Jordan content 0. This reduces to
the situation of Theorem A.4.8. ■
As an example of how this can be applied, it is obvious a closed interval is a contented
set in R. Therefore, if f , g are two continuous functions with f (x) ≥ g (x) for x ∈ [a, b], it
follows from the above theorem or its corollary that the set
P1 ≡ {(x, y) : g (x) ≤ y ≤ f (x)}
is a contented set in R2 . Now using the theorem and corollary again, suppose f1 (x, y) ≥
g1 (x, y) for (x, y) ∈ P1 and f , g are continuous. Then the set
P2 ≡ {(x, y, z) : g1 (x, y) ≤ z ≤ f1 (x, y)}
is a contented set in R3 . Clearly you can continue this way obtaining examples of contented
sets. ■
Note that as a special case, it follows that every box is a contented set. Therefore, if Bi
is a box, functions of the form
m
∑ ai XBi
i=1
are integrable. These functions are called step functions.
The following theorem is analogous to the fact that in one dimension, when you inte-
grate over a point, the answer is 0.
A.4. WHICH FUNCTIONS ARE INTEGRABLE? 855
Theorem A.4.10 If a bounded set E, has Jordan content 0, then E is a Jordan (contented)
set and if f is any bounded function defined on E, then f XE ∈ R (Rn ) and
Z
f dV = 0.
E
Proof: Let m be a lower bound for f and let M be an upper bound. Let G be a grid with
ε
∑ v (Q) < .
Q∩E̸=0/ 1 + (M − m)
Then
εM
UG ( f XE ) ≤ ∑ Mv (Q) ≤
Q∩E̸=0/ 1 + (M − m)
and
εm
LG ( f XE ) ≥ ∑ mv (Q) ≥
Q∩E̸=0/ 1 + (M − m)
and so
UG ( f XE ) − LG ( f XE ) ≤ ∑ Mv (Q) − ∑ mv (Q)
Q∩E̸=0/ Q∩E̸=0/
ε (M − m)
= (M − m) ∑ v (Q) < < ε.
Q∩E̸=0/ 1 + (M − m)
∑ v (Q) < ε
Q∩E̸=0/
Corollary A.4.11 If f XEi ∈ R (Rn ) for i = 1, 2, · · · , r and for all i ̸= j, Ei ∩ E j is either the
empty set or a set of Jordan content 0, then letting F ≡ ∪ri=1 Ei , it follows f XF ∈ R (Rn )
and Z Z Z r
f XF dV ≡ f dV = ∑ f dV.
F i=1 Ei
856 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
Proof: This is true if r = 1. Suppose it is true for r. It will be shown that it is true
for r + 1. Let Fr = ∪ri=1 Ei and let Fr+1 be defined similarly. By the induction hypothesis,
f XFr ∈ R (Rn ). Also, since Fr is a finite union of the Ei , it follows that Fr ∩ Er+1 is either
empty or a set of Jordan content 0.
and by Theorem A.4.10 each function on the left is in R (Rn ) and the first one on the left
has integral equal to zero. Therefore,
Z Z Z
f XFr+1 dV = f XFr dV + f XEr+1 dV
This is because
Q \ Q′ = ∪ni=1 ai × ∏(a j , b j ]
j̸=i
a finite union of sets of content 0. It is obvious XQ dV = v (Q) because you can use a grid
R
which has Q as one of the boxes and then the upper and lower sums are the same and equal
to v (Q). Therefore, the claim about the equality of the two integrals in (1.16) follows right
away from Corollary A.4.11. That XQ′ is integrable follows from
XQ′ = XQ − XQ\Q′
and each of the two functions on the right is integrable thanks to Theorem A.4.10.
In fact, here is an interesting version of the Riemannn criterion which depends on these
half open boxes.
Lemma A.4.12 Suppose f is a bounded function which equals zero off some bounded set.
Then f ∈ R (Rn ) if and only if for all ε > 0 there exists a grid G such that
∑ MQ′ ( f ) − mQ′ ( f ) v (Q) < ε. (1.17)
Q∈G
Proof: Since Q′ ⊆ Q,
MQ′ ( f ) − mQ′ ( f ) ≤ MQ ( f ) − mQ ( f )
A.5. ITERATED INTEGRALS 857
α ik + η k < α ik+1 .
You only need to have η k > 0 for the finitely many boxes of G which intersect the bounded
set where f is not zero. Then for
n
Q ≡ ∏ α iki , α iki +1 ∈ G ,
i=1
Let
n
b ≡ ∏ αi + ηk , αi
Q ki i ki +1
i=1
and denote by Gb the collection of these smaller boxes. For each set Q in G there is the
smaller set Qb along with n boxes, Bk , k = 1, · · · , n, one of whose sides is of length η k and
the remainder of whose sides are shorter than the diameter of Q such that the setQ is the
union of Q b and these sets Bk . Now suppose f equals zero off the ball B 0, R . Then
2
without loss of generality, you may assume the diameter of every box in G which has
nonempty intersection with B (0,R) is smaller than R3 . (If this is not so, simply refine G
to make it so, such a refinement leaving (1.17) valid because refinements do not increase
the difference between upper and lower sums in this context either.) Suppose there are P
sets of G contained in B (0,R) (So these are the only sets of G which could have nonempty
intersection with the set where f is nonzero.) and suppose that for all x, | f (x)| < C/2.
Then
∑ (MQ ( f ) − mQ ( f )) v (Q) ≤ ∑ MQb ( f ) − mQb ( f ) v (Q)
Q∈F b Gb
Q∈
+ ∑ (MQ ( f ) − mQ ( f )) v (Q)
Q∈F \Gb
The first term on the right of the inequality in the above is no larger than ε/2 because
MQb ( f ) − mQb ( f ) ≤ MQ′ ( f ) − mQ′ ( f ) for each Q. Therefore, the above is dominated by
y → f (x, y)
858 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
Let Gn be the grid on Rn obtained by considering only the first n of these sequences and
let Gm be the grid on Rm obtained by considering only the last m of the sequences. Thus a
typical box in Gm would be
n+m i i
∏ α ki , α ki +1 , ki ≥ n + 1
i=n+1
G = {R × P : R ∈ Gn and P ∈ Gm } .
Proof: If Q ∈ G , then Q is clearly of this form. On the other hand, if R × P is one of the
sets described above, then from the above description of R and P, it follows R × P is one of
the sets of G . ■
Now let G be a grid on Rn+m and suppose
where φ Q equals zero for all but finitely many Q. Thus φ is a step function. Recall that for
n+m n+m
Q= ∏ [ai , bi ] , Q′ ≡ ∏ (ai , bi ]
i=1 i=1
The function
φ= ∑ φ Q XQ′
Q∈G
A.5. ITERATED INTEGRALS 859
is integrable because it is a finite sum of integrable functions, each function in the sum
being integrable because the set of discontinuities has Jordan content 0. (why?) Letting
(x, y) = z,
φ (z) = φ (x, y) = ∑ ∑ φ R×P XR′ ×P′ (x, y)
R∈Gn P∈Gm
For a function of two variables h, denote by h (·, y) the function x → h (x, y) and
h (x, ·) the function y → h (x, y). The following lemma is a preliminary version of Fubini’s
theorem.
Where x ∈ R′ and this is a finite sum of integrable functions because each has set of dis-
continuities with Jordan content 0. From the description in (1.19),
Z
φ (x, y) dVy = ∑ ∑ φ R×P XR′ (x) v (P)
Rm R∈Gn P∈Gm
!
= ∑ ∑ φ R×P v (P) XR′ (x) , (1.23)
R∈Gn P∈Gm
From (1.23),
Z ( ! )
MR′ φ (·, y) dVy ≡ sup ∑ ∑ φ R×P v (P) XR′ (x) : x ∈ R′1
1 Rm R∈Gn P∈Gm
= ∑ φ R1 ×P v (P) (1.24)
P∈Gm
860 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
(·, y) dVy has the constant value given in (1.24) for x ∈ R′1 . Similarly,
R
because Rm φ
Z ( ! )
mR′ φ (·, y) dVy ≡ inf ∑ ∑ φ R×P v (P) XR′ (x) : x ∈ R′1
1 Rm R∈Gn P∈Gm
= ∑ φ R1 ×P v (P) . (1.25)
P∈Gm
Theorem A.5.4 (Fubini) Let f ∈ R (Rn+m ) and suppose also that f (x, ·) ∈ R (Rm ) for
each x. Then Z
f (·, y) dVy ∈ R (Rn ) (1.26)
Rm
and Z Z Z
f (z) dV = f (x, y) dVy dVx . (1.27)
Rn+m Rn Rm
Proof: Let G be a grid such that UG ( f ) − LG ( f ) < ε and let Gn and Gm be as defined
above. Let
Therefore,
Z Z
∑ MR′ f (·, y) dVy − mR′ f (·, y) dVy v (R) ≤
R∈Gn Rm Rm
Next,
Z Z Z Z Z
LG ( f ) ≤ ψ dV = ψ dVy dVx ≤ f (x, y) dVy dVx
Rn+m Rn Rm Rn Rm
A.6. THE CHANGE OF VARIABLES FORMULA 861
Z Z Z
≤ φ (x, y) dVy dVx = φ dV ≤ UG ( f ) .
Rn Rm Rn+m
Therefore, Z Z Z
f (x, y) dVy dVx − f (z) dV ≤ ε
Rn Rm Rn+m
It follows f XP ∈ R R n+1
and
Z Z Z φ (x)
f dV = f (x, y) dy dVx .
P E ψ(x)
Proof: Since f is continuous, there is no problem in writing f (x, ·) X[ψ(x),φ (x)] (·) ∈
R R1 . Also, f XP ∈ R Rn+1 because P is contented thanks to Corollary A.4.9. There-
Theorem A.6.1 Let h : U → Rn be a C1 function with h (0) = 0,Dh (0)−1 exists. Then
there exists an open set V ⊆ U containing 0 flips, F 1 , · · · , F n−1 , and primitive functions
Gn , Gn−1 , · · · , G1 such that for x ∈ V,
Theorem A.6.2 Let φ : [a, b] → [c, d] be one to one and suppose φ ′ exists and is continuous
on [a, b]. Then if f is a continuous function defined on [a, b] ,
Z d Z b
f (s) ds = f (φ (t)) φ ′ (t) dt
c a
2 Actually, Fubini’s theorem usually refers to a much more profound result in the theory of Lebesgue integra-
tion.
862 APPENDIX A. THE THEORY OF THE RIEMANNN INTEGRAL∗
and by refining the grid if necessary, no box of G has nonempty intersection with both U
and H C . Refining this grid still more, you can also assume that for all boxes in G ′ ,
li
<2
lj
A.6. THE CHANGE OF VARIABLES FORMULA 863
where li is the length of the ith side. (Thus the boxes are not too far from being cubes.)
Let C be the constant of Lemma A.6.4 applied to g on H.
Now consider one of these boxes, Q ∈ G ′ . If x, y ∈ Q, it follows from the chain rule
that Z 1
g (y) − g (x) = Dg (x+t (y − x)) (y − x) dt
0
By Lemma A.6.4 applied to H
Z 1
|g (y) − g (x)| ≤ |Dg (x+t (y − x)) (y − x)| dt
0
Z 1
≤ C |x − y| dt ≤ C diam (Q)
0
!1/2
n √
= C ∑ li2 ≤ C nL
i=1
√
Q. Thus diam (g (Q)) ≤ C nL and so g (Q) is
where L is the length of the longest side of √
contained in a cube having sides equal to C nL and volume equal to
Since ε > 0 is arbitrary, this shows h (∂U) has content zero as claimed. ■
Theorem A.6.7 Suppose f ∈ C U where U is a bounded open set with ∂U having content
0. Then f XU ∈ R (Rn ).
Proof: Let H be a compact set whose interior contains U which is also contained in the
domain of g where g is a continuous functions whose restriction to U equals f . Consider
gXU , a function whose set of discontinuities has content 0. Then gXU = f XU ∈ R (Rn ) as
claimed. This is by the big theorem which tells which functions are Riemannn integrable.
■
The symbol U − p is defined as {x − p : x ∈ U}. It merely slides U by the vector p.
The following lemma is obvious from the definition of the integral.
Lemma A.6.8 Let U be a bounded open set and let f XU ∈ R (Rn ). Then
Z Z
f (x + p) XU−p (x) dx = f (x) XU (x) dx
Proof: Consider | f (x) − f (x1 )|and suppose without loss of generality that f (x1 ) ≥
f (x). Then choose y ∈ S such that f (x) + ε > |x − y|. Then
Since ε is arbitrary, it follows that | f (x1 ) − f (x)| ≤ |x − x1 | and this proves the lemma.
■
Theorem A.6.10 (Urysohn’s lemma for Rn ) Let H be a closed subset of an open set U.
Then there exists a continuous function g : Rn → [0, 1] such that g (x) = 1 for all x ∈ H
and g (x) = 0 for all x ∈
/ U.
Proof: If x ∈/ C, a closed set, then dist (x,C) > 0 because there exists δ > 0 such that
B (x,δ ) ∩ C = 0.
/ This is because, since C is closed, its complement is open. Therefore,
dist (x, H) + dist x,U C > 0 for all x ∈ Rn . Now define a continuous function g as
dist x,U C
g (x) ≡ .
dist (x, H) + dist (x,U C )
It is easy to see this verifies the conclusions of the theorem and this proves the theorem. ■
Definition A.6.11 Define spt( f ) (support of f ) to be the closure of the set {x : f (x) ̸= 0}.
If V is an open set, Cc (V ) will be the set of continuous functions f , defined on Rn having
spt( f ) ⊆ V .
and φ ≺ V if
φ (Rn ) ⊆ [0, 1] and spt(φ ) ⊆ V.
for all x ∈ K.
A.6. THE CHANGE OF VARIABLES FORMULA 865
Wi Ui Vi
Lemma A.6.14 Let U be a bounded open set with ∂U having content 0. Also let h ∈
C1 U; Rn be one to one on U with Dh (x)−1 exists for all x ∈ U. Let f ∈ C U be
nonnegative. Then
Z Z
Xh(U) (z) f (z) dVn = XU (x) f (h (x)) |det Dh (x)| dVn
where the Gi are primitive functions,and the F j are flips. Also h (O j ) is an open set.
q
Finitely many of these open sets O j j=1 cover K. Let the distinguished point for O j
be denoted by p j . Now refine G if necessary, such that the diameter of every cell of the
new G which intersects U is smaller than a Lebesgue number for this open cover. Denote
by G ′ those boxes of the new G which intersect U. Thus the union of these boxes of G ′
of G o
equals the set K and every box n ′ is contained in one of these O . By Theorem A.6.13,
j
there exists a partition of unity ψ j on h (K) such that ψ j ≺ h (O j ). Then
Z
LG (g) ≤ ∑′ XQ (x) f (h (x)) |det Dh (x)| dx
Q∈G
q Z
= ∑ ∑ XQ (x) ψ j f (h (x)) |det Dh (x)| dx. (1.28)
Q∈G ′ j=1
Consider the term XQ (x) ψ j f (h (x)) |det Dh (x)| dx. By Lemma A.6.8 and Fubini’s
R
The vertical lines in the above signify the absolute value of the determinant of the matrix
on the inside. Here dVn−1 is with respect to the variables x2 , · · · , xn . Also F denotes
F 1 ◦ · · · ◦ F n−1 . Now
G1 (x) = (α (x) , x2 , · · · , xn )T
and is one to one. Therefore, fixing x2 , · · · , xn , x1 → α (x) is one to one. Also
Thus
x = (x1 , x2 , · · · , xn )T = G−1 −1
x′
1 (y1 , x2 , · · · , xn ) ≡ G1
Then in (1.30) you can use Corollary A.6.3 to write (1.30) as
Z Z
XQ−p j G−11 x′ ψjf
Rn−1 R
h (pi ) + F 1 ◦ · · · ◦ F n−1 ◦ Gn ◦ · · · ◦ G1 G−1 x′
1
· DF Gn ◦ · · · ◦ G2 x′ DGn Gn−1 ◦ · · · ◦ G2 x′
·
Gn−2 ◦ · · · ◦ G2 x′ · · · DG2 x′ dVn .
DGn−1
Now use Fubini’s theorem again to make the inside integral taken with respect to x2 . Note
that the term |DG1 (x)| disappeared. Exactly the same process yields
Z Z
XQ−p j G−1 1 ◦ G −1
2 x ′′
ψ j f
Rn−1 R
h (pi ) + F 1 ◦ · · · ◦ F n−1 ◦ Gn ◦ · · · ◦ G3 x′′
XQ−p j G−1 −1 −1 −1 −1
1 ◦ · · · ◦ Gn−2 ◦ Gn−1 ◦ Gn ◦ F (y) = 1
But now you can use the same information just derived to obtain equality.
x = h−1 (z)
Z
= Xh−1 (h(U)) (x) f (h (x)) |det Dh (x)| dVn
Z
Xh(U) (z) f (z) det Dh h−1 (z) det Dh−1 (z) dVn
≥
Z
= Xh(U) (z) f (z) dVn
so
Theorem A.6.15 Let U be a bounded open set with ∂U having content 0. Also let h ∈
C1 U; Rn be one to one on U and Dh (x)−1 exists for all x ∈ U. Let f ∈ C U . Then
Z Z
Xh(U) (z) f (z) dz = XU (x) f (h (x)) |det Dh (x)| dx
| f |+ f | f |− f
Proof: You note that the formula holds for f + ≡ 2 and f − ≡ 2 . Now f =
f+− f− and so Z
Xh(U) (z) f (z) dz
Z Z
= Xh(U) (z) f + (z) dz − Xh(U) (z) f − (z) dz
Z Z
= XU (x) f + (h (x)) |det Dh (x)| dx − XU (x) f − (h (x)) |det Dh (x)| dx
Z
= XU (x) f (h (x)) |det Dh (x)| dx. ■
A.7. SOME OBSERVATIONS 869
Imagine a rigid body which is rotating about a point fixed in space. For example, you could
consider a bicycle wheel rotating about its axis which is held still. More generally, we let
the point about which the body rotates move also. In this case, the point is usually the
center of mass of the body. However, in this section, this point will be regarded as fixed.
Let B (t) denote the set of points in three dimensional space which the body occupies at
time t. We will refer to the points in three dimensional space occupied by the body at time
t = 0 as the material points of the body.
Recall Theorem 24.3.2 about the existence of the angular velocity vector. The idea is
that you have a material point x0 in the body and some right handed orthonormal system of
basis vectors {e1 (t) , e2 (t) , e3 (t)} which moves with the body such if x (t, x) is the vector
from x0 to the point where x is at time t, then x (t, x) = ae1 (t) + be2 (t) + ce3 (t) where
a, b, c are constants. Note that here it is assumed that x0 does not change. Thus it is not
moving through space. Then this theorem is summarized in the following lemma.
Lemma B.0.1 For a body which undergoes rigid body motion about a fixed point in three
dimensional space, if x (t, x) denotes the position vector of the point x at time t, from some
fixed point in the body, then there exists a time dependent vector ω (t) such that the velocity
of this point at time t, xt (t, x) is given by
xt (t, x) = ω (t) × x (t, x) .
In particular, letting x = ei , we see that e′i (t) = ω (t) × ei (t) .
Definition B.0.2 The vector, ω (t) whose existence is given by the above lemma is called
the angular velocity vector.
We are now ready to write the total angular momentum of the rigid body. In doing so,
we assume the density equals ρ (x) . Thus at time t the total angular momentum, Ω, would
be given by the three dimensional integral,
Z
Ω = x (t, x) × ρ (x) xt (t, x) dx
B(0)
Z
= ρ (x) x (t, x) × (ω (t) × x (t, x)) dx. (2.1)
B(0)
871
872 APPENDIX B. A RIGID BODY ROTATING ABOUT A POINT
In terms of the material basis, {e1 (t) , e2 (t) , e3 (t)} which is fixed with the body,
where the ω i are the components of ω taken with respect to {e1 (t) , e2 (t) , e3 (t)} and as
we observed earlier, {x1 , x2 , x3 } are the coordinates of the vector x (t, x) taken with respect
to the {e1 (t) , e2 (t) , e3 (t)} . To simplify the integrand in 2.1 that long cross product is
simplified.
a× (b × c) = (a · c) b− (a · b) c.
Proof: Let an orthonormal right handed coordinate system {e1 , e2 , e3 } be given. Then
a× (b × c) = ε i jk a j (b × c)k ei
= ε i jk ε kpq a j b p cq ei
= ε ki j ε kpq a j b p cq ei
= (δ ip δ jq − δ j p δ iq ) a j b p cq ei
= (a j bi c j − a j b j ci ) ei
= (a · c) b− (a · b) c. ■
Now simplify the integrand using this lemma.
and so
x (t, x) × (ω (t) × x (t, x)) =
!
2
∑ |x| ω i ei (t) − ∑ ∑ x j ω j xi ei (t) . (2.2)
i i j
Thus, listing the components of x (t, x) × (ω (t) × x (t, x)) with respect to the material
basis yields the following in which x (t, x)×(ω (t) × x (t, x)) is written as a column vector.
x12 + x22 + x32 ω 1 − x12 ω 1 + x2 x1 ω 2 + x3 x1 ω 3
2
x1 + x22 + x32 ω 2 − x2 x1 ω 1 + x22 ω 2 + x3 x2 ω 3
Therefore, the components of angular momentum taken with respect to the material basis
are
Ω1 (t) I11 I12 I13 ω 1 (t)
Ω2 (t) = I21 I22 I23 ω 2 (t) . (2.4)
Thus the matrix in 2.4 is symmetric. Because of the choice of coordinates, this matrix is
also time independent. It is called the moment of inertia tensor and the off diagonal terms
are called the products of inertia. Now recall that
Z
Ω= x (t, x) × ρ (x) xt (t, x) dx.
B(0)
Taking the time derivative on both sides, (We do not worry about mathematical details
related to differentiating under the integral sign here.)
Z
Ω′ = xt (t, x) × ρ (x) xt (t, x) dx
B(0)
d
Z
+ x (t, x) × (ρ (x) xt (t, x)) dx
B(0) dt
d
Z
= x (t, x) × (ρ (x) xt (t, x)) dx.
B(0) dt
Now from Newton’s second law, the force on the chunk of mass, ρ (x) dx at time t, denoted
here by F (x (t, x)) dx is just dtd (ρ (x) xt (t, x)) dx. Therefore,
Z
Γ (t) ≡ Ω′ (t) = x (t, x) × F (x (t, x)) dx
B(0)
which is the total torque acting on the body at time t. Note it has units of distance times
units of force. Now differentiate the angular momentum to find the torque, this in terms of
the moment of inertia tensor of 2.4 Ω = Iω. There is a slight complication due to the fact
that we have the angular momentum expressed in terms of a basis which is time dependent.
Therefore, when we take the derivative of this vector we must include this fact. From 2.4
we see
Ω (t) = ∑ ∑ Ii j ω j (t) ei (t) .
i j
874 APPENDIX B. A RIGID BODY ROTATING ABOUT A POINT
Γ (t) = Ω′ (t) =
This is called Euler’s equation for the torque. There are three equations hidden in the above
formula, one for each ei for i = 1, 2, and 3. If you want, you can write them down but there
is a simpler way to proceed. Recall the matrix, (Ii j ) is symmetric and real. Therefore, it
can be diagonalized by a unitary real matrix. See Theorem 11.4.7. If we let the columns of
this unitary matrix be the ei , it follows the moment of inertia tensor is a diagonal matrix,
diag (I1 , I2 , I3 ) and 2.5 becomes
I1 ω ′1 e1 + I2 ω ′2 e2 + I3 ω ′3 e3 + I1 ω 1 ω 3 e2 − ω 2 e3 +
z }| {
ω ×e2 ω ×e3
z }| { z }| {
I2 ω 2 ω 1 e3 − ω 3 e1 + I3 ω 3 ω 2 e1 − ω 1 e2
and now, collecting terms, Γ (t) = Γ1 (t) e1 (t) + Γ2 (t) e2 (t) + Γ3 (t) e3 (t) where
Γ1 (t) = I1 ω ′1 + ω 3 ω 2 (I3 − I2 )
Γ2 (t) = I2 ω ′2 + ω 1 ω 3 (I1 − I3 )
Γ3 (t) = I3 ω ′3 + ω 1 ω 2 (I2 − I1 ) . (2.6)
These are called Euler’s equations for the torque. Although I invoked the theorem that
Hermitian or symmetric matrices can be diagonalized by a unitary transformation in order
to get axes with respect to which the moment of inertia tensor is diagonal, it is usually much
easier than this. Often there are symmetry considerations which make it obvious how to
choose these axes and when this is done 2.6 allows us to compute the torque which results
from a given angular velocity.
Example B.0.4 Consider a disc having negligible thickness and radius R with constant
density ρ taken with respect to area which spins around its center. How should we choose
the material bases to get a nice diagonal moment of inertia tensor?
Consider the following picture in which the vectors e1 (t) and e2 (t) are shown fixed
with the disc which is assumed to be rotating.
875
e1 (t)
e2 (t)
We let e3 (t) = e1 (t) × e2 (t) so that we have a right handed orthonormal system of
basis vectors. We calculate the moment of inertia tensor first.
Z 2π Z R
1
Z
I11 ≡ ρ x22 dx = ρ (r sin θ )2 rdrdθ = R4 πρ
B(0) 0 0 4
Now by symmetry considerations, I12 = 0 as are all the other off diagonal terms. Those that
have a 3 in the subscript are zero because we are assuming for the sake of simplicity that
the disc has negligible thickness. However, if we didn’t assume this we would still get zero
for these terms by the symmetry of the shape with respect to the other variable. Therefore,
the moment of inertia tensor is
1 4
4 ρπR 0 0
1 4
0 0 .
4 ρπR
1 4
0 0 2 ρπR
It follows that for ω = ω 1 (t) e1 (t) + ω 2 (t) e2 (t) + ω 3 (t) e3 (t) we can find the Torque by
Euler’s equations.
1 1
Γ1 (t) = ρπR4 ω ′1 + ω 3 ω 2 ρπR4
4 4
1 1
Γ2 (t) = ρπR4 ω ′2 + ω 1 ω 3 − ρπR4
4 4
′
Γ3 (t) = I3 ω 3 . (2.7)
The physical interpretation of ω given above is that the term ω 3 (t) e3 (t) represents
the angular velocity about the axis determined by e3 (t) . Thus it is a measure of how fast
876 APPENDIX B. A RIGID BODY ROTATING ABOUT A POINT
and in what direction the disc is spinning about this axis. If the disc were spinning very
fast we would have ω 3 (t) very large. The other terms of angular velocity, ω 1 (t) e1 (t) +
ω 2 (t) e2 (t) , yield a vector which is in the plane determined by e1 (t) and e2 (t) and so it is a
measure of the angular velocity about this axis. If we assumed ω ′i (t) = 0 for each i = 1, 2, 3,
and ω 2 and ω 1 are moderate, note that we would still have substantial components of
torque, Γ2 (t) and Γ1 (t). Much more could be said about this problem and more examples
could be given but this much will suffice here.
Appendix C
Lagrangian Mechanics
Let y = y (x,t) where t signifies time and x ∈ U ⊆ Rm for U an open set, while y ∈ Rn
and suppose x is a function of t. Physically, this corresponds to an object moving over
a surface in Rn , its position being y (x,t). If we know about x (t) then we also know y.
More generally, we might have M masses, the position of mass α being y α . For example,
consider the pendulum in which there is only one mass.
in which n = 2, l is fixed and y1 = l sin θ , y2 = l − l cos θ . Thus, in this
simple example, m = 1 and x = θ . If l were changing in a known way
with respect to t, then this would be of the form y = y (x,t). We seek
l differential equations for x.
θ The kinetic energy is defined as
•m
1
T ≡ ∑ mα ẏ α ·ẏ α (∗)
2 α
where the dot on the top signifies differentiation with respect to t. Thus, from the chain
rule, T is a function of ẋ. The following lemma is an important observation.
Lemma C.0.1 The following formula holds.
∂T ∂ yα
= mα ẏ α · .
∂ ẋk ∑
α ∂ xk
Proof: From the chain rule,
∂ yα k ∂ yα
ẏ α = ∑ ẋ + (∗∗)
k ∂ xk ∂t
and so
∂ ẏ α ∂ yα
k
= .
∂ ẋ ∂ xk
Therefore,
∂T ∂ ẏ α ∂ yα
k
= ∑ mα ẏ α · k
= ∑ mα ẏ α · ■
∂ ẋ α ∂ ẋ α ∂ xk
It follows from the above and the product and chain rule that
d ∂T ∂ yα
= ∑ mα ÿ α · +
dt ∂ ẋk α ∂ xk
877
878 APPENDIX C. LAGRANGIAN MECHANICS
∂ 2y ∂ 2y
∑ mα ẏα · ∑ ∂ xr ∂ αxk ẋr + ∑ mα ẏα · ∂t∂ xαk . (∗ ∗ ∗)
α r α
Let Φ denote the total potential energy so Φ = ∑α Φα .Now Φα (y) does not depend on ẋ,
only on x. Hence ∂ Φ∂αẋ(y) = 0. It follows that in this special case,
k
d ∂ (T − Φ) ∂ (T − Φ)
− = 0, (3.2)
dt ∂ ẋk ∂ xk
died. He made major contributions to analysis, number theory, and mechanics. His most famous work is likely
Mécanique analytique. He invented the method of variation of parameters used earlier. With Euler, he invented
the calculus of variations and also the method of Lagrange multipliers in order to include constraints. Lagrange
was also involved in the development of the metric system.
879
Theorem C.0.2 Let y α (x,t) denote the position of an object of mass mα where x is a
function of t. Let the kinetic energy be defined by
1
T≡ mα ẏ α ·ẏ α .
2∑α
Let the mass mα be acted on by a force F α . Then Newton’s second law implies
d ∂T ∂T ∂ yα
− k = ∑F α · (3.3)
dt ∂ ẋk ∂x α ∂ xk
In case F α = ∇Φα + g α where g α is a force of constraint so the total force comes from
forces of constraint and the gradient of a potential function, then
d ∂ (T − Φ) ∂ (T − Φ)
− =0
dt ∂ ẋk ∂ xk
Also, the above 3.3 implies Newton’s second law.
Proof: The above derivation shows that Newton’s law implies the above two formulas.
On the other hand, if 3.3 holds, then in the case of one mass, the first part of the derivation
which depended only on the chain rule and product rule shows
d ∂T ∂T ∂y
− k = m ÿ· k
dt ∂ ẋk ∂x ∂x
Thus if 3.3 and there is no force of constraint, then F = mÿ which is Newton’s second law.
■
Example C.0.3 In the case of the simple pendulum, x = θ as shown in the picture and
! !
y1 l sin θ
=
y2 l − l cos θ
the force acting on weight being mg (−j) = ∇ −mgy2 . Find the equation of motion of
this pendulum.
! !
1 l cos (θ ) θ ′ l cos (θ ) θ ′ 1 2
T= m · = ml 2 θ ′
2 l sin (θ ) θ ′ l sin (θ ) θ ′ 2
2
Then Φ = −mg (l − l cos θ ) . T − Φ = 12 ml 2 θ ′ + mg (l − l cos θ ). Thus the equation of
motion of this pendulum is
d
ml 2 θ ′ − mgl (− sin (θ )) = 0
dt
so
g
θ ′′ + sin θ = 0
l
This is an equation which doesn’t have a simple analytic solution in terms of standard
calculus type functions.
880 APPENDIX C. LAGRANGIAN MECHANICS
Example C.0.4 In the above simple pendulum, suppose there is a friction force −k (y) ẏ
acting to impede the motion. What are equations of motion in this case?
The following is from the chain rule.
!
l cos θ
ẏ = θ′
l sin θ
Denote k (l sin θ , l − l cos θ ) as k (θ ) to save notation. Then it follows from 3.3 and the
previous example that
d ∂ 1 2 ′ 2
ml θ + mg (l − l cos θ ) −
dt ∂ θ ′ 2
! !
∂ 1 2 ′ 2 l cos θ l cos θ
ml θ + mg (l − l cos θ ) = −k (θ ) θ ′ ·
∂θ 2 l sin θ l sin θ
and so
d
ml 2 θ ′ + mgl sin (θ ) = −k (θ ) θ ′ l 2
dt
k (θ ) ′ g
θ ′′ + θ + sin (θ ) = 0
m l
This is another equation for which we don’t have a good way to obtain a simple analytic
solution.
x3 = x31 x31
x32
θ
x21 x22
φ θ
x2 x21
φ
x1
x11 x11 = x12
C.1. THE SPINNING TOP AND THE EULER ANGLES 881
x32 = x33
x23
ψ
x22
ψ
x12
x13
We obtain φ by rotating about the fixed x3 axis. Next we rotate about the x11 axis which
results from the first rotation. This gives θ . Finally, we rotate about the x32 axis by ψ.
This can realize any rotation about the origin in this manner. In practice one knows θ ′ , φ ′
and ψ ′ and you want to find a formula for the kinetic energy in terms of these quantities
because this will allow you to write a Lagrangian and obtain the equations of motion.
A little thought will show that a choice of these angles determines another right handed
orthogonal coordinate system, x13 , x23 , and x33 and that every such system is determined by a
suitable choice of the Euler angles. In the context of Lagrangian mechanics above, define
Gα (φ , θ , ψ) to be the point in space whose coordinates in x13 , x23 , and x33 are the same as the
coordinates of this point in x1 , x2 , and x3 and since the body is rigid, the constraints require
that G (φ , θ , ψ) ≡ (G1 (φ , θ , ψ) , · · · , GN (φ , θ , ψ)). Now recall Lemma B.0.1 listed here
for convenience.
Lemma C.1.1 For a body which undergoes rigid body motion about a fixed point in three
dimensional space, if we let x (t, x) denote the position vector of the point, x at time t,then
there exists a time dependent vector ω (t) such that the velocity of this point at time t,
xt (t, x) is given by
xt (t, x) = ω (t) × x (t, x) .
In particular, letting x = ei , we see that e′i (t) = ω (t) × ei (t) .
It follows from this lemma that the total kinetic energy of the rigid body is
1 1
Z Z
ρ (x) |xt (t, x)|2 dx = ρ (x) |ω (t) × x (t, x)|2 dx.
2 B(0) 2 B(0)
As discussed above, when the Euler angles change, this results in new coordinate axes that
come from rotating the original axes. If we let these new axes be fixed with the moving
body and call the new axes, x1 (t) , x2 (t) , and x3 (t) with ei (t) a unit vector in the positive
xi (t) direction, it follows the coordinates of x (t, x) with respect to these new axes are the
same as the coordinates of x with respect to x1 (0) , x2 (0) , and x3 (0) ,the axes at time t = 0.
We can compute |ω (t) × x (t, x)|2 as follows.
Here ω i are the components of ω taken with respect to the ei (t) = ei (t) . Thus, as in Section
B, |ω (t) × x (t, x)|2 =
I11 I12 I13
ω T (t) I12 I22 I23 ω (t)
As in this section, choose x1 (0) , x2 (0) and x3 (0) such that Ii j = 0 whenever i ̸= j. There-
fore, the kinetic energy in terms of the components of ω taken with respect to the axes,
xi (t) is seen to be
1 3
T = ∑ Ik ω k (t)2 .
2 k=1
Note that Ik is independent of t and the ω k are the components of ω taken with respect to the
axes, xi (t). While this is a nice formula, we want to relate it to the Euler angles because the
Euler angles have more geometric significance. Therefore, what we need to find is ω k (t) in
terms of the time derivatives of the Euler angles. Refering to the above picture of the Euler
angles, we see that φ ′ contributes a term, to the angular velocity vector which is of the
form (0, 0, φ ′ ) where these are the components taken with respect to x11 , x21 and x31 . Writing
this vector in terms of the axes, x12 , x22 and x32 , we get (0, φ ′ sin (θ ) , cos (θ ) φ ′ ) . Now to this
we add the angular velocity vector contributed by θ ′ which with respect to the axes, x12 , x22
′
and x3 is θ , 0, 0 . Therefore, in terms of x1 , x2 and x32 , we have the total angular velocity
2 2 2
vector resulting from θ and φ is θ ′ , φ ′ sin (θ ) , cos (θ ) φ ′ . Now we write this vector in
terms of the final coordinate system, x13 , x23 and x33 = x1 (t) , x2 (t) andx3 (t) . This yields
cos (ψ) θ ′ + sin (ψ) sin (θ ) φ ′ , cos (ψ) sin (θ ) φ ′ − sin (ψ) θ ′ , cos (θ ) φ ′ . To this we must
add the contribution to the angular velocity from ψ ′ which in terms of this last system of
coordinate axes is just (0, 0, ψ ′ ) . Therefore, in terms of x1 (t) , x2 (t) and x3 (t) we have the
angular velocity is
ω = cos (ψ) θ ′ + sin (ψ) sin (θ ) φ ′ , cos (ψ) sin (θ ) φ ′ − sin (ψ) θ ′ , cos (θ ) φ ′ + ψ ′ .
Now we will consider a spinning top or gyroscope. Consider the following picture.
There are two planes through the origin, one perpendicular to the x3 axis, and one perpen-
dicular to the x3 (t) axis. They intersect in the line of nodes shown in the picture. Also, in
the above discussion of the Euler angles, we see the x11 axis is in the plane perpendicular to
x3 and also is in the plane perpendicular to x33 = x3 (t) here. Therefore, φ is as shown in the
C.1. THE SPINNING TOP AND THE EULER ANGLES 883
picture and the other angles are as shown there as well. We see therefore, that φ ′ gives the
angular speed of the line of nodes as the axis, x3 (t) moves around the x3 axis. Thus φ ′ is a
measure of the speed the top or gyroscope moves around the fixed x3 axis.
x3
x3 (t)
x2
φ
x1
line of nodes
We will assume our top has the property that I1 = I2 . This would happen, for example if
the density is a constant and if the cross sections perpendicular to the x3 (t) axis are circles.
Then the potential energy of the top would be of the form Mgl cos θ where M is the total
mass, g is the acceleration of gravity, and l is the distance along the x3 (t) axis to the center
of mass. Then the Lagrangian is of the form
1 h 2 2 2 i
L = I1 sin (θ ) φ ′ + θ ′
2
1
+ I3 cos2 θ (φ ′ )2 + 2 (cos θ ) φ ′ ψ ′ + (ψ ′ )2 − Mgl cos θ
2
and therefore, the equations of motion are
′ ′
I1 sin2 (θ ) φ ′ + I3 cos2 (θ ) φ ′ + I3 cos (θ ) ψ ′ = 0 (3.5)
′
I3 cos (θ ) φ ′ + I3 ψ ′ = 0 (3.6)
2
I1 θ ′′ + φ ′ cos (θ ) sin (θ ) (I3 − I1 ) + I3 sin (θ ) φ ′ ψ ′ − Mgl sin (θ ) = 0 (3.7)
The conservation of energy yields
1 h 2 2 2 i I3 2
I1 sin (θ ) φ ′ + θ ′ + (cos θ ) (φ ′ ) + ψ ′ +
2 2
884 APPENDIX C. LAGRANGIAN MECHANICS
P − I3 cos (θ ) φ ′
ψ′ = (3.9)
I3
and from 3.5 there is a constant, Q such that I1 sin2 (θ ) φ ′ + I3 cos2 (θ ) φ ′ + I3 cos (θ ) ψ ′ =
Q. This along with 3.9 implies I1 sin2 (θ ) φ ′ + P cos (θ ) = Q and so we also have
Q − P cos (θ )
φ′ = . (3.10)
I1 sin2 (θ )
2 (Q − P cos (θ ))2
I1 θ ′ + I1 + I3 P2 + 2Mgl cos θ = C
I1 sin2 (θ )
2
The expression, f (θ ) = I1 (Q−P cos(θ ))
I sin2 (θ )
+ I3 P2 + 2Mgl cos θ is concave up and has some
1
assmptotes. If C happens to equal the minimum value of f then we must have θ ′ = 0 and
so the top will circle around the x3 axis with θ a constant. Thus we would observe the angle
between the axis of the top and the x3 axis would be constant. If C is not the minimum value
of f then we will have θ changing between two values. This is called nutation. Also, from
3.10 we see that φ ′ is probably not zero. Thus the line of nodes moves around the x3 axis.
Even ψ ′ may change due to 3.9. If ψ ′ were known to be constant, then you could use 3.9
to conclude φ ′ = cosC θ .
Bibliography
885
886 BIBLIOGRAPHY
[20] Hardy G., A Course Of Pure Mathematics, Tenth edition, Cambridge University Press
1992.
[21] Hog R. and Craig A., Introduction to Mathematical Statistics, third edition, Macmil-
lan Publishing co. 1970.
[22] Horn R. and Johnson C. matrix Analysis, Cambridge University Press, 1985.
[23] Ince, E.L. Ordinary Differential Equations, Dover 1956.
[24] Karlin S. and Taylor H. A First Course in Stochastic Processes, Academic Press,
1975.
[25] Kuttler K.L., Elementary Differential Equations, CRC Press 2018. 573 pages.
[26] Kuttler K. L., Basic Analysis, Rinton
[27] Kuttler K.L., Modern Analysis CRC Press 1998.
[28] Lang S. Real and Functional analysis third edition Springer Verlag 1993. Press, 2001.
[29] Leighton, W. An Introduction to the Theory of Differential Equations, McGraw Hill,
1952.
[30] Nobel B. and Daniel J. Applied Linear Algebra, Prentice Hall, 1977.
[31] Rudin, W., Principles of mathematical analysis, McGraw Hill third edition 1976
[32] Rudin W., Real and Complex Analysis, third edition, McGraw-Hill, 1987.
[33] Salas S. and Hille E., Calculus One and Several Variables, Wiley 1990.
[34] Sears and Zemansky, University Physics, Third edition, Addison Wesley 1963.
887
888 INDEX
variance, 789
meaning, 794
vector
scalar multiplication, 55
vector addition, 55
vector
contravariant components, 467
covariant components, 467
vector field, 265, 399
vector fields, 218
vector potential, 401
vector space axioms, 131
vector valued function
continuity, 222
derivative, 254
integral, 254
limit theorems, 223
vector valued functions, 217
vectors, 53, 67
velocity, 70
volume element, 381
volume increment, 381
volume of parallelepiped, 379
volume of unit ball in n dimensions, 424