Vcalc PDF
Vcalc PDF
Jerry Shurman
Reed College
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
2 Euclidean Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.1 Algebra: Vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2 Geometry: Length and Angle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.3 Analysis: Continuous Mappings . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.4 Topology: Compact Sets and Continuity . . . . . . . . . . . . . . . . . . . . 51
2.5 Review of the One-Variable Derivative . . . . . . . . . . . . . . . . . . . . . 59
2.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6 Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
6.1 Machinery: Boxes, Partitions, and Sums . . . . . . . . . . . . . . . . . . . . 257
6.2 Definition of the Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
6.3 Continuity and Integrability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
6.4 Integration of Functions of One Variable . . . . . . . . . . . . . . . . . . . . 281
6.5 Integration Over Nonboxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
6.6 Fubinis Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
6.7 Change of Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
6.8 Topological Preliminaries for the Change of Variable Theorem 331
6.9 Proof of the Change of Variable Theorem . . . . . . . . . . . . . . . . . . . 339
6.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
Preface
This is the text for a two-semester multivariable calculus course. The setting is
n-dimensional Euclidean space, with the material on differentiation culminat-
ing in the Inverse Function Theorem and its consequences, and the material
on integration culminating in the Generalized Fundamental Theorem of Inte-
gral Calculus (often called Stokess Theorem) and some of its consequences in
turn. The prerequisite is a proof-based course in one-variable calculus. Some
familiarity with the complex number system and complex mappings is occa-
sionally assumed as well, but the reader can get by without it.
The books aim is to use multivariable calculus to teach mathematics as
a blend of reasoning, computing, and problem-solving, doing justice to the
structure, the details, and the scope of the ideas. To this end, I have tried
to write in a style that communicates intent early in the discussion of each
topic rather than proceeding coyly from opaque definitions. Also, I have tried
occasionally to speak to the pedagogy of mathematics and its effect on the
process of learning the subject. Most importantly, I have tried to spread the
weight of exposition among figures, formulas, and words. The premise is that
the reader is ready to do mathematics resourcefully by marshaling the skills
of
geometric intuition (the visual cortex being quickly instinctive),
algebraic manipulation (symbol-patterns being precise and robust),
and incisive use of natural language (slogans that encapsulate central ideas
enabling a large-scale grasp of the subject).
Thinking in these ways renders mathematics coherent, inevitable, and fluent.
In my own student days I learned this material from books by Apostol,
Buck, Rudin, and Spivak, books that thrilled me. My debt to those sources
pervades these pages. There are many other fine books on the subject as well,
such as the more recent one by Hubbard and Hubbard. Indeed, nothing in
this book is claimed as new, not even its neuroses. Whatever improvement
the exposition here has come to show over the years is due to innumerable
ideas and comments from my students in turn.
x Preface
e1 x1 + + en xn = 1.
n/2 n
vol (Bn (r)) = r , n = 1, 2, 3, 4, .
(n/2)!
The meaning of the (n/2)! in the display when n is odd is explained by a
function called the gamma function. The sequence begins
4 3 1 2 4
2r, r2 , r , r , .
3 2
Chapter 7 discusses the fact that continuous functions, or differentiable
functions, or twice-differentiable functions, are well approximated by smooth
functions, meaning functions that can be differentiated endlessly. The approx-
imation technology is an integral called the convolution. One point here is that
the integral is useful in ways far beyond computing volumes. The second point
is that with approximation by convolution in hand, we feel free to assume in
the sequel that functions are smooth. The reader who is willing to grant this
assumption in any case can skip chapter 7.
Chapter 8 introduces parametrized curves as a warmup for chapter 9 to
follow. The subject of chapter 9 is integration over k-dimensional parametrized
xii Preface
surfaces in n-dimensional space, and parametrized curves are the special case
k = 1. Aside from being one-dimensional surfaces, parametrized curves are
interesting in their own right.
Chapter 9 presents the integration of differential forms. This subject poses
the pedagogical dilemma that fully describing its structure requires an in-
vestment in machinery untenable for students who are seeing it for the first
time, whereas describing it purely operationally is unmotivated. The approach
here begins with the integration of functions over k-dimensional surfaces in
n-dimensional space, a natural tool to want, with a natural definition suggest-
ing itself. For certain such integrals, called flow and flux integrals, the inte-
grand takes a particularly workable form consisting of sums of determinants
of derivatives. It is easy to see what other integrandsincluding integrands
suitable for n-dimensional integration in the sense of chapter 6, and includ-
ing functions in the usual sensehave similar features. These integrands can
be uniformly described in algebraic terms as objects called differential forms.
That is, differential forms assemble the smallest coherent algebraic structure
encompassing the various integrands of interest to us. The fact that differential
forms are algebraic makes them easy to study without thinking directly about
the analysis of integration. The algebra leads to a general version of the Fun-
damental Theorem of Integral Calculus that is rich in geometry. The theorem
subsumes the three classical vector integration theorems, Greens Theorem,
Stokess Theorem, and Gausss Theorem, also called the Divergence Theorem.
Comments and corrections should be sent to [email protected].
Exercises
0.0.1. (a) Consider two surfaces in space, each surface having at each of its
points a tangent plane and therefore a normal line, and consider pairs of
points, one on each surface. Conjecture a geometric condition, phrased in
terms of tangent planes and/or normal lines, about the closest pair of points.
(b) Consider a surface in space and a curve in space, the curve having at
each of its points a tangent line and therefore a normal plane, and consider
pairs of points, one on the surface and one on the curve. Make a conjecture
about the closest pair of points.
(c) Make a conjecture about the closest pair of points on two curves.
0.0.2. (a) Assume that the factorial of a half-integer makes sense, and grant
the general formula for the volume of a ball in n dimensions. Explain why
it follows that (1/2)! = /2. Further assume that the half-integral factorial
function satisfies the relation
x! = x (x 1)! for x = 3/2, 5/2, 7/2, .
Subject to these assumptions, verify that the volume of the ball of radius r
in three dimensions is 43 r3 as claimed. What is the volume of the ball of
radius r in five dimensions?
Preface xiii
As a warmup, these notes begin with a quick review of some ideas from one-
variable calculus. The material in the first two sections is assumed to be
familiar. Section 3 discusses Taylors Theorem at greater length, not assuming
that the reader has already seen it.
All of basic algebra follows from the field axioms. Additive and multi-
plicative inverses are unique, the cancellation law holds, 0 x = 0 for all real
numbers x, and so on.
Subtracting a real number from another is defined as adding the additive
inverse. In symbols,
We also assume that R is an ordered field. That is, we assume that there
is a subset R+ of R (the positive elements) such that the following axioms
hold.
x R+ , x R+ , x = 0.
(o2) Closure of positive numbers under addition: For all real numbers x and y,
if x R+ and y R+ then also x + y R+ .
(o3) Closure of positive numbers under multiplication: For all real numbers x
and y, if x R+ and y R+ then also xy R+ .
x<y
to mean
y x R+ .
The usual rules for inequalities then follow from the axioms.
Finally, we assume that the real number system is complete. Complete-
ness can be phrased in various ways, all logically equivalent. A version of
completeness that is phrased in terms of binary search is as follows.
N = {0, 1, 2 , }.
Indeed, the hypotheses of the theorem say that P (n) holds for a subset
of N that is inductive, and so the theorem follows from the definition of N as
the smallest inductive subset of R.
The Archimedean Principle states that the subset N of R is not
bounded above. Equivalently, the sequence {1, 1/2, 1/3, } converges to 0.
The Archimedean Principle follows from the assumption that R is complete
in the sense of binary search sequences or in the sense of set-bounds. A third
version of completeness is phrased in terms of monotonic sequences. Again it
is an existence statement.
This version of completeness follows from either of the other two. How-
ever, it does not imply the other two unless we also assume the Archimedean
Principle.
The set of integers, denoted Z, is the union of the natural numbers and
their additive inverses,
Z = {0, 1, 2 , }.
Exercises
1.1.1. Referring only to the field axioms, show that 0x = 0 for all x R.
1.1.2. Prove that in any ordered field, 1 is positive. Prove that the complex
number field C can not be made an ordered field.
4 1 Results from One-Variable Calculus
1.1.3. Use a completeness property of the real number system to show that 2
has a positive square root.
1.1.5. (a) Use the Induction Theorem to show that for any natural number m,
the sum m+n and the product mn are again natural for any natural number n.
Thus N is closed under addition and multiplication, and consequently so is Z.
(b) Which of the field axioms continue to hold for the natural numbers?
(c) Which of the field axioms continue to hold for the integers?
1.1.6. For any positive integer n, let Z/nZ denote the set {0, 1, . . . , n 1}
with the usual operations of addition and multiplication carried out taking
remainders. That is, add and multiply in the usual fashion but subject to the
additional condition that n = 0. For example, in Z/5Z we have 2 + 4 = 1 and
2 4 = 3. For what values of n does Z/nZ form a field?
The second theorem says that under suitable conditions, any value trapped
between two output values of a function must itself be an output value.
and
f (x ) > y for some x I.
Then
f (c) = y for some c I.
f (b) f (a)
= f (c) for some c (a, b).
ba
The Fundamental Theorem of Integral Calculus quantifies the idea that
integration and differentiation are inverse operations. In fact two different
results are both called the Fundamental Theorem, one a result about the
derivative of the integral and the other a result about the integral of the
derivative. Fundamental Theorem of Calculus, unmodified, usually refers
to the second of the next two results.
Exercises
1.2.1. Use the Intermediate Value Theorem to show that 2 has a positive
square root.
1.2.3. Let a and b be real numbers with a < b. Suppose that f : [a, b] R
is continuous and that f is differentiable on the open subinterval (a, b). Use
the Mean Value Theorem to show that if f > 0 on (a, b) then f is strictly
increasing on [a, b]. (Note: The quantities called a and b in the Mean Value
Theorem when you cite it to solve this exercise will not be the a and b given
here. It may help to review the definition of strictly increasing.)
1.2.4. For the Extreme Value Theorem, the Intermediate Value Theorem,
and the Mean Value Theorem, give examples to show that weakening the
hypotheses of the theorem gives rise to examples where the conclusion of the
theorem fails.
p(a) = f (a), p (a) = f (a), p (a) = f (a), ..., p(n) (a) = f (n) (a)?
a1 = f (a).
f (a)
a2 = .
2
Differentiate again to obtain
f (a)
a3 = .
32
Continue in this fashion to obtain a4 = f (4) (a)/4! and so on up to an =
f (n) (a)/n!. That is, the desired coefficients are
f (k) (a)
ak = for k = 0, . . . , n.
k!
Thus the answer to the existence part of Question 1 is Yes. Furthermore, since
the calculation offered us no choices en route, these are the only coefficients
that can work, and so the approximating polynomial is unique. It deserves a
name.
x2 x3 xn
Tn (x) = 1 + x + + + +
2 3! n!
n
X xk
= .
k!
k=0
Recall that the second question is how well the polynomial Tn (x) approxi-
mates f (x) for x 6= a. Thus it is a question about the difference f (x) Tn (x).
Giving this quantity its own name is useful.
The method and pattern are clear, and the answer in general is
1
Ik (x) = (x a)k , k Z+ .
k!
f (k) (a)
Note that this is part of the kth term (xa)k of the Taylor polynomial,
k!
the part that makes no reference to the function f . That is, f (k) (a)Ik (x) is
the kth term of the Taylor polynomial for k = 1, 2, 3, . . .
With the formula for Ik (x) in hand, we return to using the Fundamental
Theorem of Integral Calculus to study the remainder Rn (x), the function f (x)
minus its nth degree Taylor polynomial Tn (x). According to the Fundamental
Theorem, Z x
f (x) = f (a) + f (x1 ) dx1 ,
a
That is, f (x) is equal to the constant term of the Taylor polynomial plus an
integral, Z x
f (x) = T0 (x) + f (x1 ) dx1 .
a
By the Fundamental Theorem again, the integral is in turn
Z x Z x Z x1
f (x1 ) dx1 = f (a) + f (x2 ) dx2 dx1 .
a a a
10 1 Results from One-Variable Calculus
The first term of the outer integral is f (a)I1 (x), giving the first-order term
of the Taylor polynomial and leaving a doubly-nested integral,
Z x Z x Z x1
f (x1 ) dx1 = f (a)(x a) + f (x2 ) dx2 dx1 .
a a a
and the first term of the outer integral is f (a)I2 (x), giving the second-order
term of the Taylor polynomial and leaving a triply-nested integral,
Z x Z x1 Z x Z x1 Z x2
f (a)
f (x2 ) dx2 dx1 = 2
(x a) + f (x3 ) dx3 dx2 dx1 .
a a 2 a a a
Continuing this process through n iterations shows that f (x) is Tn (x) plus an
(n + 1)-fold iterated integral,
Z x Z x1 Z xn
f (x) = Tn (x) + f (n+1) (xn+1 ) dxn+1 dx2 dx1 .
a a a
(x a)n+1 (x a)n+1
m Rn (x) M . (1.2)
(n + 1)! (n + 1)!
(x a)n+1
g : [a, x] R, g(t) = f (n+1) (t) .
(n + 1)!
That is, since there exist values tm and tM in [a, x] such that f (n+1) (tm ) = m
and f (n+1) (tM ) = M , the result (1.2) of our calculation rephrases as
where
f (n+1) (c)
Rn (x) = (x a)n+1 for some c between a and x.
(n + 1)!
We have proved Taylors Theorem only when x > a. It is trivial for x = a.
If x < a, then rather than repeat the proof while keeping closer track of signs,
with some of the inequalities switching direction, we may define
f : I R, f(x) = f (x).
Since f = f neg where neg is the negation function, a small exercise with
the chain rule shows that
where
n (k)
X f (a)
Ten (x) = (x (a))k
k!
k=0
and
(n+1) (c)
en (x) = f
R (x (a))n+1 for some c between a and x.
(n + 1)!
But f(x) = f (x), and Ten (x) is precisely the desired Taylor polyno-
mial Tn (x),
n (k)
X f (a)
Ten (x) = (x (a))k
k!
k=0
Xn n
X f (k) (a)
(1)k f (k) (a)
= (1)k (x a)k = (x a)k = Tn (x),
k! k!
k=0 k=0
f (k) (0)
k f (k) (x)
k!
0 ln(1 + x) 0
1
1 1
(1 + x)
1 1
2 2
(1 + x) 2
2 1
3
(1 + x)3 3
3! 1
4
(1 + x)4 4
.. .. ..
. . .
(1)n1 (n 1)! (1)n1
n
(1 + x)n n
(1)n n!
n+1
(1 + x)n+1
Next, read off from the table that for n 1, the nth degree Taylor polynomial
is
Xn
x2 x3 xn xk
Tn (x) = x + + (1)n1 = (1)k1 ,
2 3 n k
k=1
(0.1)n+1
|Rn (0.1)| = for some c between 0 and 0.1.
(1 + c)n+1 (n + 1)
Now the symbol x is gone. Next, note that although we dont know the value
of c, the smallest possible value of the quantity (1 + c)n+1 in the denominator
of the absolute remainder is 1 because c 0. And since this value occurs in
14 1 Results from One-Variable Calculus
the denominator it lets us write the greatest possible value of the absolute
remainder with no reference to c. That is,
(0.1)n+1
|Rn (0.1)| ,
(n + 1)
and the symbol c is gone as well. The only remaining variable is n, and the
goal is to approximate ln(1.1) to within 1/500, 000. Set n = 4 in the previous
display to get
1
|R4 (0.1)| .
500, 000
That is, the fourth degree Taylor polynomial
1 1 1 1
T4 (0.1) = +
10 200 3000 40000
= 0.10000000 0.00500000 + 0.00033333 0.00002500
= 0.09530833
agrees with ln(1.1) to within 0.00000200 , so that
0.09530633 ln(1.1) 0.09531033 .
Machine technology should confirm this.
Continuing to work with the function f (x) = ln(1 + x) for x > 1, set
x = 1 instead to get that for n 1,
1 1 1
Tn (1) = 1 + + (1)n1 ,
2 3 n
and
1
|Rn (1)| = for some c between 0 and 1.
(1 + c)n+1 (n + 1)
Thus |Rn (1)| 1/(n + 1), and this goes to 0 as n . Therefore ln(2) is
expressible as an infinite series,
1 1 1
ln(2) = 1 + + .
2 3 4
This example illustrates an important general principle:
To check whether the Taylor polynomial Tn (x) converges to f (x) as n
grows, i.e., to check whether the infinite Taylor series
X f (k) (a)
T (x) = lim Tn (x) = (x a)k
n k!
k=0
To repeat a formula from before, the nth degree Taylor polynomial of the
function ln(1 + x) is
X n
x2 x3 xn xk
Tn (x) = x + + (1)n1 = (1)k1 ,
2 3 n k
k=1
The graphs of the natural logarithm ln(x) and the first five Taylor polynomials
Tn (x 1) are plotted from 0 to 2 in figure 1.1. (The switch from ln(1 + x)
to ln(x) places the logarithm graph in its familiar position, and then the switch
from Tn (x) to Tn (x 1) is forced in consequence to fit the Taylor polynomials
through the repositioned function.) A good check of your understanding is to
see if you can determine which graph is which in the figure.
0.5 1 1.5 2
The power series here can be used to define ex , but then obtaining the prop-
erties of ex depends on the technical fact that a power series can be differenti-
ated term by term in its open interval (or disk if we are working with complex
numbers) of convergence.
The power series in the previous display also allows a small illustration of
the utility of quantifiers. Since it is valid for every real number x, it is valid
with x2 in place of x,
X x2k
2 x4 x6 x2n
ex = 1 + x 2 + + + + + = for any x R.
2! 3! n! k!
k=0
2
There is no need here to introduce the function g(x) = ex , then work out its
Taylor polynomial and remainder, then analyze the remainder.
We end this chapter by sketching two cautionary examples. First, work
from earlier in the section shows that the Taylor series for the function ln(1+x)
at a = 0 is
X
x2 x3 xn xk
T (x) = x + + (1)n1 + = (1)k1 .
2 3 n k
k=1
The Ratio Test shows that this series converges absolutely when |x| < 1,
and the nth Term Test shows that the series diverges when x > 1. The se-
ries also converges at x = 1, as observed earlier. Thus, while the domain of
the function ln(1 + x) is (1, ), the Taylor series has no chance to match
the function outside of (1, 1]. As for whether the Taylor series matches the
function on (1, 1], recall the Lagrange form of the remainder,
(1)n xn+1
Rn (x) = for some c between 0 and x.
(1 + c)n+1 (n + 1)
Consequently, the absolute value of the Lagrange form of the remainder is
n+1
1 |x|
|Rn (x)| = for some c between 0 and x.
n+1 1+c
From the previous display, noting that |x| is the distance from 0 to x while
1 + c is the distance from 1 to c, we see that
If 0 x 1 then |x| 1 1 + c, and so Rn (x) goes to 0 as n gets large.
1.3 Taylors Theorem 17
but the Lagrange form does not readily show that the equality in the previous
display also holds for x (1, 1/2). Figure 1.1 suggests why: the Taylor
polynomials are converging more slowly to the original function the farther
left we go on the graph. However, a different form of the remainder, given in
exercise 1.3.6, proves that indeed the equality holds for all x (1, 1]. Also,
the geometric series relation
1
= 1 x + x2 x3 + , 1 < x < 1
1+x
gives the relation ln(1 + x) = T (x) for x (1, 1) upon integrating termwise
and then setting x = 0 to see that the resulting constant term is 0; but this
arguments invocation of the theorem that a power series can be integrated
termwise within its interval (or disk) of convergence is nontrivial.
For the last example, define f : R R by
( 2
e1/x if x 6= 0,
f (x) =
0 if x = 0.
That is, the Taylor series is the zero function, which certainly converges for all
x R. But the only value of x for which it converges to the original function f
is x = 0. In other words, although this Taylor series converges everywhere,
it fails catastrophically to equal the function it is attempting to match. The
problem is that the function f decays exponentially, and since exponential
behavior dominates polynomial behavior, any attempt to discern f by using
polynomials will fail to see it. Figures 1.2 and 1.3 plot f to display its rapid
decay. The first plot is for x [25, 25] and the second is for x [1/2, 1/2].
Exercises
1.3.1. (a) Let n N. What is the (2n+1)st degree Taylor polynomial T2n+1 (x)
for the function f (x) = sin x at 0? (The reason for the strange indexing here
18 1 Results from One-Variable Calculus
20 10 10 20
Figure 1.2. Rapidly decaying function, wide view
is that every second term of the Taylor polynomial is 0.) Prove that sin x is
equal to the limit of T2n+1 (x) as n , similarly to the argument in the text
for ex . Also find T2n (x) for f (x) = cos x at 0, and explain why the argument
for sin shows that cos x is the limit of its even-degree Taylor polynomials as
well.
(b) Many years ago, the authors high school physics textbook asserted,
bafflingly, that the approximation sin x x is good for x up to 8 . Decon-
struct.
1.3.2. What is the nth degree Taylor polynomial Tn (x) for the following func-
tions at 0?
(a) f (x) = arctan x. (This exercise is not just a matter of routine mechan-
ics. One way to proceed involves the geometric series, and another makes use
of the factorization 1 + x2 = (1 ix)(1 + ix).)
1.3 Taylors Theorem 19
1.3.3. (a) Further tighten the numerical estimate of ln(1.1) from the section
by reasoning as follows. As n increases, the Taylor polynomials Tn (0.1) add
terms of decreasing magnitude and alternating sign. Therefore T4 (0.1) un-
derestimates ln(1.1). Now that we know this, it is useful to find the smallest
possible value of the remainder (by setting c = 0.1 rather than c = 0 in the for-
mula). Then ln(1.1) lies between T4 (0.1) plus this smallest possible remainder
value and T4 (0.1) plus the largest possible remainder value, obtained in the
section. Supply the numbers, and verify by machine that the tighter estimate
of ln(1.1) is correct.
(b) In figure 1.1, identify the graphs of T1 through T5 and the graph of ln
near x = 0 and near x = 2.
1.3.4. Without a calculator, use the third degree Taylor polynomial for sin(x)
at 0 to approximate a decimal representation of sin(0.1). Also compute the
decimal representation of an upper bound for the error of the approximation.
Bound sin(0.1) between two decimal representations.
1.3.5. Use a second degree Taylor polynomial to approximate 4.2. Use Tay-
lors theorem to find a guaranteedaccuracy of the approximation and thus to
find upper and lower bounds for 4.2.
1.3.6. (a) Another proof of Taylors Theorem uses the Fundamental Theorem
of Integral Calculus once and then integrates by parts repeatedly. Begin with
the hypotheses of Theorem 1.3.3, and let x I. By the Fundamental Theorem,
Z x
f (x) = f (a) + f (t) dt.
a
Rx
Let u = f (t) and v = t x, so that the integral is a u dv, and integrating
by parts gives
Z x
f (x) = f (a) + f (a)(x a) f (t)(t x) dt.
a
Rx
Let u = f (t) and v = 12 (t x)2 , so that again the integral is a u dv, and
integrating by parts gives
Z x
(x a)2 (t x)2
f (x) = f (a) + f (a)(x a) + f (a) + f (t) dt.
2 a 2
20 1 Results from One-Variable Calculus
Whereas the expression for f (x) Tn (x) in Theorem 1.3.3 is called the La-
grange form of the remainder, this exercise has derived the integral form of
the remainder. Use the Extreme Value Theorem and the Intermediate Value
Theorem to derive the Lagrange form of the remainder from the integral form.
(b) Use the integral form of the remainder to show that
Rn = {(x1 , , xn ) : xi R for i = 1, , n} ,
0 = (0, , 0).
24 2 Euclidean Space
p+x
p
x x
+ : Rn Rn Rn ,
For example, (1, 2, 3) + (4, 5, 6) = (5, 7, 9). Note that the meaning of the
+ sign is now overloaded: on the left of the displayed equality, it denotes
the new operation of vector addition, whereas on the right side it denotes
the old addition of real numbers. The multiple meanings of the plus sign
shouldnt cause problems since which + is meant is clear from context, i.e.,
2.1 Algebra: Vectors 25
x+y
y
P
x
: R Rn Rn ,
defined by
a (x1 , , xn ) = (ax1 , , axn ).
For example, 2(3, 4, 5) = (6, 8, 10). We will almost always omit the symbol
and write ax for a x. With this convention, juxtaposition is overloaded as
+ was overloaded above, but again this shouldnt cause problems.
Scalar multiplication of the vector x (viewed as an arrow) by a also has a
geometric interpretation: it simply stretches (i.e., scales) x by a factor of a.
When a is negative, ax turns x around and stretches it in the other direction
by |a|. (See figure 2.4.)
3x
x
2x
All of these are consequences of how + and and 0 are defined for Rn
in conjunction with the fact that the real numbers, in turn endowed with +
and and containing 0 and 1, satisfy the field axioms (see section 1.1). For
example, to prove that Rn satisfies (M1), take any scalars a, b R and any
vector x = (x1 , , xn ) Rn . Then
The other vector space axioms for Rn can be shown similarly, by unwinding
vectors to their coordinates, quoting field axioms coordinatewise, and then
bundling the results back up into vectors (see exercise 2.1.3). Nonetheless, the
vector space axioms do not perfectly parallel the field axioms, and you are
encouraged to spend a little time comparing the two axiom sets to get a feel
for where they are similar and where they are different (see exercise 2.1.4).
Note in particular that
For n > 1, Rn is not endowed with vector-by-vector multiplication.
Although one can define vector multiplication on Rn componentwise, this mul-
tiplication does not combine with vector addition to satisfy the field axioms
except when n = 1. The multiplication of complex numbers makes R2 a field,
and in section 3.10 we will see an interesting noncommutative multiplication
of vectors for R3 , but these are special cases.
2.1 Algebra: Vectors 27
One benefit of the vector space axioms for Rn is that they are phrased
intrinsically, meaning that they make no reference to the scalar coordinates
of the vectors involved. Thus, once you use coordinates to establish the vector
space axioms, your vector algebra can be intrinsic thereafter, making it lighter
and more conceptual. Also, in addition to being intrinsic, the vector space
axioms are general. While Rn is the prototypical set satisfying the vector space
axioms, it is by no means the only one. In coming sections we will encounter
other sets V (whose elements may be, for example, functions) endowed with
their own addition, multiplication by elements of a field F , and distinguished
element 0. If the vector space axioms are satisfied with V and F replacing Rn
and R then we say that V is a vector space over F .
The pedagogical point here is that although the similarity between vector
algebra and scalar algebra may initially make vector algebra seem uninspiring,
in fact the similarity is exciting. It makes mathematics easier because familiar
algebraic manipulations apply in a wide range of contexts. The same symbol-
patterns have more meaning. For example, we use intrinsic vector algebra to
show a result from Euclidean geometry, that the three medians of a triangle
intersect. (A median is a segment from a vertex to the midpoint of the opposite
edge.) Consider a triangle with vertices x, y, and z, and form the average of
the three vertices,
x+y+z
p= .
3
This algebraic average will be the geometric center of the triangle, where the
medians meet. (See figure 2.5.) Indeed, rewrite p as
2 y+z
p=x+ x .
3 2
The displayed expression for p shows that it is two thirds of the way from x
along the line segment from x to the average of y and z, i.e., that p lies on
the triangle median from vertex x to side yz. (Again see the figure. The idea
is that (y + z)/2 is being interpreted as the midpoint of y and z, each of these
viewed as a point, while on the other hand, the little mnemonic
{e1 , e2 , , en }
28 2 Euclidean Space
y+z
2
p
x
where
(Thus each ei is itself a vector, not the ith scalar entry of a vector.) Any
vector x = (x1 , x2 , , xn ) (where the xi are scalar entries) decomposes as
x = (x1 , x2 , , xn )
= (x1 , 0, , 0) + (0, x2 , , 0) + + (0, 0, , xn )
= x1 (1, 0, , 0) + x2 (0, 1, , 0) + + xn (0, 0, , 1)
= x 1 e1 + x 2 e2 + + x n en ,
Note that in equation (2.1), x and the ei are vectors while the xi are scalars.
The equation shows that any x Rn is expressible as a linear combination
(sum of scalar multiples) Pn of the standard basis vectors. The expression is
unique, for if also x = i=1 xi ei for some scalars x1 , , xn then the equality
says that x = (x1 , x2 , , xn ), so that xi = xi for i = 1, , n.
(The reason that the geometric-sounding word linear is used here and
elsewhere in this chapter to describe properties having to do with the algebraic
operations of addition and scalar multiplication will be explained in chapter 3.)
The standard basis is handy in that it is a finite set of vectors from which
each of the infinitely many vectors of Rn can be obtained in exactly one way
as a linear combination. But it is not the only such set, nor is it always the
optimal one.
For example, the set {f1 , f2 } = {(1, 1), (1, 1)} is a basis of R2 . To see
this, consider an arbitrary vector (x, y) R2 . This vector is expressible as a
linear combination of f1 and f2 if and only if there are scalars a and b such
that
(x, y) = af1 + bf2 .
Since f1 = (1, 1) and f2 = (1, 1), this vector equation is equivalent to a pair
of scalar equations,
x = a + b,
y = a b.
Exercises
2.1.1. Write down any three specific nonzero vectors u, v, w from R3 and any
two specific nonzero scalars a, b from R. Compute u+v, aw, b(v +w), (a+b)u,
u + v + w, abw, and the additive inverse to u.
2.1.3. Verify that Rn satisfies vector space axioms (A2), (A3), (D1).
2.1.4. Are all the field axioms used in verifying that Euclidean space satisfies
the vector space axioms?
30 2 Euclidean Space
2.1.5. Show that 0 is the unique additive identity in Rn . Show that each vector
x Rn has a unique additive inverse, which can therefore be denoted x.
(And it follows that vector subtraction can now be defined,
2.1.7. Show the uniqueness of additive identity and additive inverse using
only (A1), (A2), (A3). (This is tricky; the opening pages of some books on
group theory will help.)
How many elements do you think a basis for Rn must have? Give (without
proof) geometric descriptions of all bases of R2 , of R3 .
Cn = {(z1 , , zn ) : zi C for i = 1, , n} ,
and endow it with addition and scalar multiplication defined by the same
formulas as for Rn . You may take for granted that under these definitions, Cn
satisfies the vector space axioms with scalar multiplication by scalars from R,
and also Cn satisfies the vector space axioms with scalar multiplication by
scalars from C. That is, using language that was introduced briefly in the
section, Cn can be viewed as a vector space over R and also, separately, as a
vector space over C. Give a basis for each of these vector spaces.
Before continuing, a few comments about how to work with these notes may
be helpful.
2.2 Geometry: Length and Angle 31
h , i : Rn Rn R,
For example,
n(n + 1)
h(1, 1, , 1), (1, 2, , n)i = ,
2
hx, ej i = xj where x = (x1 , , xn ) and j {1, , n},
hei , ej i = ij (this means 1 if i = j, 0 otherwise).
(IP1) The inner product is positive definite: hx, xi 0 for all x Rn , with
equality if and only if x = 0.
(IP2) The inner product is symmetric: hx, yi = hy, xi for all x, y Rn .
(IP3) The inner product is bilinear:
for all a, b R, x, x , y, y Rn .
Thus the modulus is defined in terms of the inner product, rather than by
its own formula. The inner product formula shows that the modulus formula
is q
|(x1 , , xn )| = x21 + + x2n ,
2.2 Geometry: Length and Angle 33
Like other symbols, the absolute value signs are now overloaded, but their
meaning can be inferred from context, as in property (Mod2). When n is 1, 2,
or 3, the modulus |x| gives the distance from 0 to the point x, or the length
of x viewed as an arrow. (See figure 2.6.)
|x| |x|
x |x|
x
The following relation between inner product and modulus will help to
show that distance in Rn behaves as it should, and that angle in Rn makes
sense. Since the relation is not obvious, its proof is a little subtle.
Note that the absolute value signs mean different things on each side of
the CauchySchwarz Inequality. On the left side, the quantities x and y are
vectors, their inner product hx, yi is a scalar, and |hx, yi| is its scalar absolute
value, while on the right side, |x| and |y| are the scalar absolute values of
vectors, and |x| |y| is their product. That is, the CauchySchwarz Inequality
says:
The size of the product is at most the product of the sizes.
The CauchySchwarz Inequality can be written out in coordinates, tem-
porarily abandoning the principle that we should avoid reference to formulas,
where the indices of summation run from 1 to n. Expand the square to get
X X X
x2i yi2 + x i yi x j yj x2i yj2 ,
i i,j i,j
i6=j
or X
(x2i yj2 xi yi xj yj ) 0.
i6=j
Rather than sum over all pairs (i, j) with i 6= j, sum over the pairs with
i < j, collecting the (i, j)-term and the (j, i)-term for each such pair, and the
previous inequality becomes
X
(x2i yj2 + x2j yi2 2xi yj xj yi ) 0.
i<j
So the main proof is done, although there is still the question of when equality
holds.
But surely the previous paragraph is not the graceful way to argue. The
computation draws on the minutiae of the formulas for the inner product and
2.2 Geometry: Length and Angle 35
View the right side as a quadratic polynomial in the scalar variable a, where
the scalar coefficients of the polynomial depend on the generic but fixed vec-
tors x and y,
f (a) = |x|2 a2 2hx, yia + |y|2 .
We have shown that f (a) is always nonnegative, so f has at most one root.
Thus by the quadratic formula its discriminant is nonpositive,
and the CauchySchwarz Inequality |hx, yi| |x| |y| follows. Equality holds
exactly when the quadratic polynomial f (a) = |ax y|2 has a root a, i.e.,
exactly when y = ax for some a R.
|x + y| |x| + |y|,
36 2 Euclidean Space
|x + y|2 = hx + y, x + yi
= |x|2 + 2hx, yi + |y|2 by bilinearity
2 2
|x| + 2|x||y| + |y| by CauchySchwarz
2
= (|x| + |y|) ,
proving the inequality. Equality holds exactly when hx, yi = |x||y|, or equiva-
lently when |hx, yi| = |x||y| and hx, yi 0. These hold when one of x, y is a
scalar multiple of the other and the scalar is nonnegative.
While the CauchySchwarz Inequality says that the size of the product is
at most the product of the sizes, the Triangle Inequality says:
x+y
y
x
Figure 2.7. Sides of a triangle
The only obstacle to generalizing the basic Triangle Inequality in this fashion
is notation. The argument cant use the symbol n to denote the number of
vectors since n already denotes the dimension of the Euclidean space where
we are working; and furthermore, the vectors cant be denoted with subscripts
since a subscript denotes a component of an individual vector. Thus, for now
we are stuck writing something like
or
Xk X k
x(i) |x(i) |, x(1) , , x(k) Rn .
i=1 i=1
As our work with vectors becomes more intrinsic, vector entries will demand
less of our attention, and we will be able to denote vectors by subscripts. The
notation-change will be implemented in the next section.
For any vector x = (x1 , , xn ) Rn , useful bounds on the modulus |x|
in terms of the scalar absolute values |xi | are
The CauchySchwarz Inequality also lets us define the angle between two
nonzero vectors in terms of the inner product. If x and y are nonzero vectors
in Rn , define their angle x,y by the condition
hx, yi
cos x,y = , 0 x,y . (2.2)
|x||y|
hx,yi
The condition is sensible because 1 1 by the CauchySchwarz
|x||y|
Inequality. For example, cos (1,0),(1,1) = 1/ 2, and so (1,0),(1,1) = /4. In
particular, two nonzero vectors x, y are orthogonal when hx, yi = 0. Natu-
rally, we would like x,y to correspond to the usual notion of angle, at least
in R2 , and indeed it doessee exercise 2.2.10. For convenience, define any two
vectors x and y to be orthogonal if hx, yi = 0, thus making 0 orthogonal to
all vectors.
Rephrasing geometry in terms of intrinsic vector algebra not only extends
the geometric notions of length and angle uniformly to any dimension, it also
makes some low-dimensional geometry easier. For example, vectors show in a
natural way that the three altitudes of any triangle must meet. Let x and y
denote two sides of the triangle, making the third side xy by the head minus
tail mnemonic. Let q be the point where the altitudes to x and y meet. (See
figure 2.8, which also shows the third altitude.) Thus
q y x and q x y.
We want to show that also q lies on the third altitude, i.e., that
q x y.
Since the inner product is linear in each of its arguments, a further rephrase
is that we want to show that
( )
hq, xi = hy, xi
= hq, xi = hq, yi.
hq, yi = hx, yi
And this is immediate since the inner product is symmetric: hq, xi and hq, yi
both equal hx, yi, and so they equal each other as desired. The point q where
the three altitudes meet is called the orthocenter of the triangle. In general
the orthocenter of a triangle is not the center, cf. the previous section.
2.2 Geometry: Length and Angle 39
xy
q
x
Figure 2.8. Three altitudes of a triangle
Exercises
2.2.1. Let x = ( 23 , 12 , 0), y = ( 12 , 23 , 1), z = (1, 1, 1). Compute hx, xi,
hx, yi, hy, zi, |x|, |y|, |z|, x,y , y,e1 , z,e2 .
2.2.2. Show that the points x = (2, 1, 3, 1), y = (4, 2, 1, 4), z = (1, 3, 6, 1)
form the vertices of a triangle in R4 with two equal angles.
Pn
2.2.3. Explain why for all x Rn , x = j=1 hx, ej iej .
2.2.5. Use the Inner Product Properties and the definition of the modulus in
terms of the inner product to prove the Modulus Properties.
2.2.6. In the text, the modulus is defined in terms of the inner product. Prove
that this can be turned around by showing that for every x, y Rn ,
|x + y|2 |x y|2
hx, yi = .
4
2.2.7. Prove the full Triangle Inequality: for any x, y Rn ,
Do not do this by writing three more variants of the proof of the Triangle
Inequality, but by substituting suitably into the basic Triangle Inequality,
which is already proved.
2.2.10. In R2 , depict the nonzero vectors x and y as arrows from the origin
and depict x y as an arrow from the endpoint of y to the endpoint of x. Let
denote the angle (in the usual geometric sense) between x and y. Use the
Law of Cosines to show that
hx, yi
cos = ,
|x||y|
so that our notion of angle agrees with the geometric one, at least in R2 .
Pn
2.2.11. Prove that for any nonzero x Rn , i=1 cos2 x,ei = 1.
2.2.12. Prove that two nonzero vectors x, y are orthogonal if and only if
|x + y|2 = |x|2 + |y|2 .
2.2.14. Use vectors to show that every angle inscribed in a semicircle is right.
2.2.15. Let x and y be vectors, with x nonzero. Define the parallel component
of y along x and the normal component of y to x to be
hx, yi
y(kx) = x and y(x) = y y(kx) .
|x|2
(a) Show that y = y(kx) + y(x) ; show that y(kx) is a scalar multiple of x; show
that y(x) is orthogonal to x. Show that the decomposition of y as a sum of
vectors parallel and perpendicular to x is unique. Draw an illustration.
(b) Show that
|y|2 = |y(kx) |2 + |y(x) |2 .
What theorem from classical geometry does this encompass?
(c) Explain why it follows from (b) that
|y(kx) | |y|,
with equality if and only y is a scalar multiple of x. Use this inequality to give
another proof of the CauchySchwarz Inequality. This argument gives the
geometric content of CauchySchwarz: The parallel component of one vector
along another is at most as long as the original vector.
(d) The proof of the CauchySchwarz Inequality in part (c) refers to parts
(a) and (b), part (a) refers to orthogonality, orthogonality refers to an angle,
and as explained in the text, the fact that angles make sense depends on the
CauchySchwarz Inequality. And so the proof in part (c) apparently relies on
circular logic. Explain why the logic is in fact not circular.
2.3 Analysis: Continuous Mappings 41
x1 = x1
x2 = x2 (x2 )(kx1 )
x3 = x3 (x3 )(kx2 ) (x3 )(kx1 )
..
.
xn = xn (xn )(kxn1 ) (xn )(kx1 ) .
(a) What is the result of applying the GramSchmidt process to the vectors
x1 = (1, 0, 0), x2 = (1, 1, 0), and x3 = (1, 1, 1)?
(b) Returning to the general case, show that x1 , , xn are pairwise or-
thogonal and that each xj has the form
Thus any linear combination of the new {xj } is also a linear combination of the
original {xj }. The converse is also true and will be shown in exercise 3.3.13.
f : R2 R2
defined by
f (x, y) = (x2 y 2 , 2xy)
takes the real and imaginary parts of a complex number z = x+iy and returns
the real and imaginary parts of z 2 . By the nature of multiplication of complex
numbers, this means that each output point has modulus equal to the square
of the modulus of the input point and has angle equal to twice the angle of
the input point. Make sure that you see how this is shown in figure 2.9.
Mappings expressed by formulas may be undefined at certain points (e.g.,
f (x) = 1/|x| is undefined at 0), so we need to restrict their domains. For
a given dimension n, a given set A Rn , and a second dimension m,
let M(A, Rm ) denote the set of all mappings f : A Rm . This set forms a
vector space over R (whose points are functions) under the operations
defined by
42 2 Euclidean Space
2
1
1 1 1
| |x| | = |x|, x Rn ,
and so a vector sequence {x } is null if and only if the scalar sequence {|x |}
is null.
Lemma 2.3.2 (Componentwise Nature of Nullness). The vector se-
quence {(x1, , , xn, )} is null if and only if each of its component scalar
sequences {xj, } (j {1, , n}) is null.
Proof. By the observation just before the lemma, it suffices to show that
{|(x1, , , xn, )|} is null if and only if each {|xj, |} is null. The Size Bounds
give for any j {1, , n} and any ,
n
X
|xj, | |(x1, , , xn, )| |xi, |.
i=1
| | : Rn R
| |x | |p| | |x p|.
Since the right side is the th term of a null sequence, so is the left, giving
the result.
For another example, let a Rn be any fixed vector and consider the
function defined by taking the inner product of this vector with other vectors,
Since |a| is a constant, the right side is the th term of a null sequence, hence
so is the left, and the proof is complete. We will refer to this example in
section 3.1. Also, note that as a special case of this example we may take
any j {1, , n} and set the fixed vector a to ej , showing that the jth
coordinate function map,
j : Rn R, j (x1 , , xn ) = xj ,
is continuous.
f + g, cf : A Rm
g f : A R
is continuous.
2x mx 2mx2 2m
f (x , y ) = f (x , mx ) = = = .
x2 2
+ m x 2 (1 + m2 )x2 1 + m2
The previous example was actually fairly simple in that we only needed to
study f (x, y) as (x, y) approached 0 along straight lines. Consider the function
g : R2 R defined by
2
x y if (x, y) 6= 0,
g(x, y) = x + y 2
4
b if (x, y) = 0.
For any nonzero slope m, take a sequence {(x , y )} approaching 0 along the
line y = mx. Compute that for each point of this sequence,
mx3 mx
g(x , y ) = g(x , mx ) = = 2 .
x4 + m2 x2 x + m2
for continuity. Since g is 0 at the nonzero points of either axis in the (x, y)-
plane, this requirement extends to the cases that {(x , y )} approaches 0 along
a horizontal or vertical line. However, next consider a sequence {(x , y )}
approaching 0 along the parabola y = x2 . For each point of this sequence,
x4 1
g(x , y ) = g(x , x2 ) = = .
x4 + x4 2
Thus, as the sequence of inputs {(x , y )} approaches 0 along the parabola,
the corresponding sequence of outputs {g(x , y )} holds steady at 1/2, and so
g(0) needs to be 1/2 for continuity as well. Thus g can not be made continuous
at 0, even though approaching 0 only along lines suggests that it can. The
reader who wants to work a virtually identical example can replace the formula
x2 y/(x4 + y 2 ) in g by x3 y/(x6 + y 2 ) and run the same procedure as in this
paragraph but using the curve y = x3 .
Thus, given a function f : R2 R, letting {(x , y )} approach 0 along
lines can disprove continuity at 0, but it can only suggest continuity at 0, not
prove it. To prove continuity, the Size Bounds may be helpful. For example,
let 3
x if (x, y) 6= 0,
h(x, y) = x2 + y 2
b if (x, y) = 0.
Can b be specified to make h continuous at 0? The estimate |x| |(x, y)| gives
for any (x, y) 6= 0,
and 2. The outputs neednt converge to 0 (or converge at all), but according
to this diagnostic they possibly could. Thus the Size Bounds tell us only that
f could be discontinuous at (0, 0), but they give no conclusive information.
In sum, these examples show that
The straight line test can prove that a limit does not exist, or it can
determine the only candidate for the value of the limit, but it can not
prove that the candidate value is the limit.
When the straight line test determines a candidate value of the limit,
approaching along a curve can further support the candidate, or it can
prove that the limit does not exist by determining a different candidate as
well.
The Size Bounds can prove that a limit does exist, but they can only
suggest that a limit does not exist.
Proof. Assume that the displayed statement in the proposition fails for ev-
ery > 0. Then in particular it fails for = 1/ for = 1, 2, 3, . So there
is a sequence {x } in A such that
|x p| < 1/ and f (x ) = b, = 1, 2, 3, .
Exercises
Briefly explain how the section has shown that C(A, Rm ) is a vector space.
Do the inner product properties (IP1), (IP2), and (IP3) (see Proposition 2.2.2)
hold for this inner product on C([0, 1], R)? How much of the material from
section 2.2 on the inner product and modulus in Rn carries over to hold for
C([0, 1], R)? Express the CauchySchwarz Inequality as a relation between
integrals.
2.3.6. Use the definition of continuity and the componentwise nature of con-
vergence to prove the componentwise nature of continuity.
Is f continuous?
Thus a bounded set is enclosed in some finite corral centered at the origin,
possibly a very big one. For example, any ball B(p, ), not necessarily centered
at the origin, is bounded, by a nice application of the Triangle Inequality
(exercise 2.4.5). On the other hand, the Archimedean property of the real
number system says that Z is an unbounded subset of R. The Size Bounds
show that any subset of Rn is bounded if and only if the jth coordinates of
its points form a bounded subset of R for each j {1, , n}. The geometric
content of this statement is that a set sits inside a ball centered at the origin
if and only if it sits inside a box centered at the origin.
Blurring the distinction between a sequence and the set of its elements
allows the definition of boundedness to apply to sequences. That is, a sequence
{x } is bounded if there is some R > 0 such that |x | < R for all Z+ . The
proof of the next fact in Rn is symbol-for-symbol the same as in R (or in C),
so it is only sketched.
Proof. Let {x } converge to p. Then there exists a starting index 0 such that
x B(p, 1) for all > 0 . Consider any real number R such that
Proof. The hypothesis that {x } converges to p means that for any given
> 0, only finitely many sequence-terms x lie outside the ball B(p, ). Con-
sequently only finitely many subsequence-terms xk lie outside B(p, ), which
is to say that {xk } converges to p.
subscripts are getting out of hand, so keep only the k th terms of the orig-
inal sequence and relabel it. In other words, we may as well assume that
the sequence of first components, {x1, }, converges. The real sequence of
second components, {x2, }, in turn has a convergent subsequence, and by
Lemma 2.4.9 the corresponding subsequence of first components, {x1, }, con-
verges too. Relabeling again, we may assume that {x1, } and {x2, } both
converge. Continuing in this fashion n 2 more times exhibits a subsequence
of {x } that converges at each component.
( = ) Conversely, suppose that A is not bounded. Then there is a se-
quence {x } in A with |x | > for all . This sequence has no bounded subse-
quence, and hence it has no convergent subsequence by Proposition 2.4.7.
Since the static notions of closed and bounded are reasonably intuitive, we
can usually recognize compact sets on sight. But it is not obvious from how
compact sets look that they are related to continuity. So our program now
has two steps: first, combine Proposition 2.4.5 and the BolzanoWeierstrass
property to characterize compact sets in terms of sequences, and second, use
the characterization to prove that compactness is preserved by continuous
mappings.
Again, the sets in Theorem 2.4.14 are defined with no direct reference to
sequences, but the theorem is proved entirely by using sequences. The point
is that with the theorem proved, we can easily see that it applies in particular
contexts without having to think any more about the sequences that were
used to prove it.
A corollary of Theorem 2.4.14 generalizes the theorem that was quoted to
begin the section:
so in particular it contains its greatest lower bound and its least upper bound.
This means precisely that f takes a minimum and a maximum value on K.
theorems remain the same: the continuous image of a compact set is compact,
and the continuous image of a connected set is connected.
Exercises
2.4.2. Give a set A Rn and limit point b of A such that b / A. Give a set
A Rn and a point a A such that a is not a limit point of A.
2.4.4. Prove the closed set properties: (1) The empty set and the full space
Rn are closed subsets of Rn , (2) any intersection of closed sets is closed, (3)
any finite union of closed sets is closed.
2.4.7. Show by example that a closed set need not satisfy the sequential char-
acterization of bounded sets, and that a bounded set need not satisfy the
sequential characterization of closed sets.
2.4.8. Show by example that the continuous image of a closed set need not
be closed, that the continuous image of a closed set need not be bounded,
that the continuous image of a bounded set need not be closed, and that the
continuous image of a bounded set need not be bounded.
: [0, 1] A
such that (0) = x and (1) = y. (This is the path that connects x and y.)
Draw a picture to illustrate the definition of a path-connected set. Prove that
path-connectedness is a topological property.
lim f (x) = ,
xa
This should be clear in light of the sentence immediately after Definition 2.5.1.
Returning to the general Sum Rule for mappings, other than this additional
detail to check, it follows from its counterpart for sequences. The Constant
Multiple Rule for mappings follows from its counterpart for sequences with-
out any additional technical considerations, since any constant multiple of a
mapping has the same domain as the original mapping.
Let A Rn be a set and let a Rn be a point. A mapping f : A Rm
is null at a if limxa f (x) = 0m . Thus if f is null at a then a must be a limit
point of A. Formulating the Sum Rule and the Constant Multiple Rule for
null mappings is left to you (exercise 2.5.1).
The notions of limit and continuity are closely related for mappings, but
again with a small technical issue present. The proof of the following propo-
sition is exercise 2.5.2.
f (a + h) f (a)
g : J {0} R, g(h) = .
h
Thus 0 is a limit point of the domain of g (though not a point of the domain
of g), so that according to Definition 2.5.1, limh0 g(h) might exist. When it
does, the derivative of f at a is this function limit,
f (a + h) f (a)
f (a) = lim g(h) = lim .
h0 h0 h
In sum, the derivative of f at a is
a limit of a different function g, the difference quotient function whose
domain is obtained by translating and puncturing the domain of f ,
the limit being taken at the limit point 0 of the domain of g, which is not
in the domain of g,
2.6 Summary 61
and the function limit being defined as the common value of output-
sequence limits over all input-sequences that approach but do not reach 0,
if this common value of output-sequence limits exists.
The full definition of the derivative in a first calculus course may have been dif-
ficult to digest, because all of these ideas had to be covered under intense time
pressure in the midst of everything else that was happening in that course,
and because the very process of getting all the ideas into play necessarily
rendered their presentation diffuse.
However, the author of these notes does not know any useful way to sim-
plify the setup without waving his hands. One can study an alternate differ-
ence quotient function g(x) = (f (x) f (a))/(x a) instead and thus avoid
translating the domain of f to place the puncture-point at 0, but this is not
not a good idea: in the definition of multivariable derivative to be introduced
in chapter 4, translating the situation to the origin will clarify rather than
complicate it. Also, one can define the limit of a function without reference
to sequence-limits, using the so-called epsilondelta definition rather than our
epsilonnu. For example, the formulation of the completeness of the real num-
ber system as a set-bound criterion in Theorem 1.1.4 makes no reference to
sequences, and if continuity of mappings is defined in epsilondelta language
then the Persistence of Inequality principle, which was a small nuisance to
prove, becomes true by definition. However, eschewing sequences and basing
all of the ideas in play here on an epsilondelta formulation of limit makes
other parts of the material harder. In particular, proving that compactness is a
topological property without using the sequential characterization of compact
sets requires considerable subtlety.
Exercises
2.5.1. Carefully state and prove the Sum Rule and the Constant Multiple
Rule for mappings and then for null mappings.
2.6 Summary
Along with introducing Euclidean space and its properties, this chapter is
meant to provide a quick review of some ideas from one-variable calculus
while generalizing them to higher dimension. This chapter has also empha-
sized working with vectors intrinsically rather than using coordinates. The
multivariable Extreme Value Theorem will play a crucial role in our proof of
the Inverse Function Theorem in chapter 5.
3
Linear Mappings and Their Matrices
for all positive integers k, all real numbers 1 through k , and all vectors x1
through xk .
The reader may find this definition discomfiting. It does not say what form
a linear mapping takes, and this raises some immediate questions. How are we
to recognize linear mappings when we encounter them? Or are we supposed to
think about them without knowing what they look like? For that matter, are
there even any linear mappings to encounter? Another troublesome aspect of
Definition 3.1.1 is semantic: despite the geometric sound of the word linear,
the definition is in fact algebraic, describing how T behaves with respect to
the algebraic operations of vector addition and scalar multiplication. (Note
that on the left of the equality in the definition, the operations are set in Rn ,
while on the right they are in Rm .) So what is the connection between the
definition and actual lines? Finally, how exactly do conditions (3.1) and (3.2)
relate to the condition in the definition?
On the other hand, Definition 3.1.1 has the virtue of illustrating the prin-
ciple that to do mathematics effectively we should characterize our objects
rather than construct them. The characterizations are admittedly guided by
hindsight, but there is nothing wrong with that. Definition 3.1.1 says how
a linear mapping behaves. It says that whatever form linear mappings will
turn out to take, our reflex should be to think of them as mappings through
which we can pass sums and constants. (This idea explains why one of the
inner product properties is called bilinearity: the inner product is linear as a
function of either of its two vector variables when the other variable is held
fixed.) The definition of linearity tells us how to use linear mappings once we
know what they are, or even before we know what they are. Another virtue
of Definition 3.1.1 is that it is intrinsic, making no reference to coordinates.
3.1 Linear Mappings 65
Some of the questions raised by Definition 3.1.1 have quick answers. The
connection between the definition and actual lines will quickly emerge from our
pending investigations. Also, an induction argument shows that (3.1) and (3.2)
are equivalent to the characterization in the definition, despite appearing
weaker (exercise 3.1.1). Thus, to verify that a mapping is linear, we only need
to show that it satisfies the easier-to-check conditions (3.1) and (3.2); but to
derive properties of mappings that are known to be linear, we may want to
use the more powerful condition in the definition. As for finding linear map-
pings, the definition suggests a two-step strategy: first, derive the form that
a linear mapping necessarily takes in consequence of satisfying the definition;
and second, verify that the mappings of that form are indeed linear, i.e., show
that the necessary form of a linear mapping is also sufficient for a mapping
to be linear. We now turn to this.
The easiest case to study is linear mappings from R to R. Following the
strategy, first we assume that we have such a mapping and determine its form,
obtaining the mappings that are candidates to be linear. Second we show
that all the candidates are indeed linear mappings. Thus suppose that some
mapping T : R R is linear. The mapping determines a scalar, a = T (1).
And then for any x R,
T (x) = T (x 1) since x 1 = x
= xT (1) by (3.2)
= xa by definition of a
= ax since multiplication in R commutes.
T (x) = ax by definition of T
= ax since multiplication in R commutes
= T (x) by definition of T ,
as needed. You can check (3.1) similarly, and the calculation that T (1) = a is
immediate. These last two paragraphs combine to show
Proposition 3.1.2 (Description of Linear Mappings from Scalars to
Scalars). The linear mappings T : R R are precisely the mappings
T (x) = ax
66 3 Linear Mappings and Their Matrices
Also, the proposition explains the term linear: the graphs of linear mappings
from R to R are lines through the origin. (Mappings f (x) = ax + b with
b 6= 0 are not linear according to our definition even though their graphs are
also lines. However, see exercises 3.1.15 and 3.2.6.) For example, a typical
linear mapping from R to R is T (x) = (1/2)x. Figure 3.1 shows two ways
of visualizing this mapping. The left half of the figure plots the domain axis
and the codomain axis in one plane, orthogonally to each other, the familiar
way to graph a function. The right half of the figure plots the axes separately,
using the spacing of the dots to describe the mapping instead. The uniform
spacing along the rightmost axis depicts the fact that T (x) = xT (1) for all
x Z, and the spacing is half as big because the multiplying factor is 1/2.
Figures of this second sort can generalize up to three dimensions of input and
three dimensions of output, whereas figures of the first sort can display at
most three dimensions of input and output combined.
T (x)
T
x
0 1 0 T (1)
a1 = T (e1 ), , an = T (en ),
(So here each xi is a scalar entry of the vector x, whereas in Definition 3.1.1,
each xi was itself a vector. The author does not know any graceful way to
avoid this notation collision, the systematic use of boldface or arrows to adorn
vector names being heavyhanded, and the systematic use of the Greek letter
rather than its Roman counterpart x to denote scalars being alien. Since
mathematics involves finitely many symbols and infinitely many ideas, the
reader will in any case eventually need the skill of discerning meaning from
context, a skill that may as well P start receiving practice now.) Returning to
n
the main discussion, since x = i=1 xi ei and T is linear, Definition 3.1.1
shows that
n
! n n
X X X
T (x) = T x i ei = xi T (ei ) = xi ai = hx, ai = ha, xi.
i=1 i=1 i=1
T (x) = ha, xi
although (1, 0) and (0, 1) lie on separate input axes, T (1, 0) and T (0, 1) lie on
the same output axis.
The most general mapping is T : Rn Rm . Such a mapping decomposes
as T = (T1 , , Tm ) where each Ti : Rn R is the ith component function
of T . The next proposition reduces the linearity of such T to the linearity of
its components Ti , which we already understand.
Proposition 3.1.4 (Componentwise Nature of Linearity). The vector-
valued mapping T = (T1 , , Tm ) : Rn Rm is linear if and only if each
scalar-valued component function Ti : Rn R is linear.
Proof. For any x, y Rn ,
T (x + y) = T1 (x + y), , Tm (x + y)
and
T (x) + T (y) = T1 (x), , Tm (x) + T1 (y), , Tm (y)
= T1 (x) + T1 (y), , Tm (x) + Tm (y) .
But T satisfies (3.1) exactly when the left sides are equal, the left sides are
equal exactly when the right sides are equal, and the right sides are equal
3.1 Linear Mappings 69
exactly when each Ti satisfies (3.1). A similar argument with (3.2), left as
exercise 3.1.5, completes the proof.
The componentwise nature of linearity combines with the fact that scalar-
valued linear mappings are continuous (as observed after Proposition 3.1.3)
and with the componentwise nature of continuity to show that all linear map-
pings are continuous. Despite being so easy to prove, this fact deserves a
prominent statement.
Theorem 3.1.5 (Linear Mappings are Continuous). Let the mapping
T : Rn Rm be linear. Then T is continuous.
whose ith row is the vector determined by Ti , and whose (i, j)th entry (this
means ith row, jth column) is thus given by
Sometimes one saves writing by abbreviating the right side of (3.3) to [aij ]mn ,
or even just [aij ] when m and n are firmly established.
The set of all m-by-n matrices (those with m rows and n columns) of real
numbers is denoted Mm,n (R). The n-by-n square matrices are denoted Mn (R).
Euclidean space Rn is often identified with Mn,1 (R) and vectors written as
columns,
x1
..
(x1 , , xn ) = . .
xn
This typographical convention may look odd, but it is useful. The idea is that
a vector in parentheses is merely an ordered list of entries, not inherently a
row or a column; but when a vectoror, more generally, a matrixis enclosed
by square brackets, the distinction between rows and columns is significant.
To make the linear mapping T : Rn Rm be multiplication by its matrix
A Mm,n (R), we need to define multiplication of an m-by-n matrix A by an
n-by-1 vector x appropriately. That is, the only sensible definition is
Definition 3.1.6 (Matrix-by-Vector Multiplication). Let A Mm,n (R)
and let x Rn . Then the product Ax Rm is defined the vector whose ith
entry is the inner product of As ith row and x,
70 3 Linear Mappings and Their Matrices
x1
a11 a12 a1n x2 a11 x1 + + a1n xn
a21 a22 a2n
..
a21 x1 + + a2n xn
Ax = . .. .. . = .. .
.. . . . .
..
am1 am2 amn am1 x1 + + amn xn
xn
For example,
7
123 17+28+39 50
8 = = .
456 47+58+69 122
9
T (x) = Ax
The columns of A also have a description in terms of T . Indeed, the jth column
is
a1j T1 (ej )
.. ..
. = . = T (ej ).
amj Tm (ej )
That is:
The jth column of A is T (ej ), i.e., is T of the jth standard basis vector.
x1 + x2
x2 r(x2 ) r(x1 )
x1
r(x1 + x2 ) and r(x1 ) + r(x2 ). Thus r satisfies (3.1). The geometric verification
of (3.2) is similar. (See figure 3.4.)
To find the matrix A of r, simply compute that its columns are
3/2 1/2
r(e1 ) = r(1, 0) = , r(e2 ) = r(0, 1) = ,
1/2 3/2
and thus
1/2
3/2
A= .
1/2 3/2
So now we know r because the rows of A describe its component functions,
" 3 #
1/2 x
3/2 x 21 y 3 1 1 3
r(x, y) = = 12 = x y, x + y .
1/2 3/2 y 2 x+ 2
3
y 2 2 2 2
Figures 3.5 through 3.8 show more depictions of linear mappings between
spaces of various dimensions. Note that although these mappings stretch and
torque their basic input grids, the grids still get taken to configurations of
straight lines. Contrast this to how the nonlinear mapping of figure 2.9 bent
the basic grid lines into curves.
has been deferred to this point in order to present some of the objects involved
more explicitly first, to make them familiar. However, it is most easily proved
intrinsically.
Let L(Rn , Rm ) denote the set of all linear mappings from Rn to Rm . This
set not only sits inside the vector space M(Rn , Rm ), it is a vector space in its
own right:
3.1 Linear Mappings 73
S + T, aS : Rn Rm
are also linear. Consequently, the set of linear mappings from Rn to Rm forms
a vector space.
Proof. The mappings S and T satisfy (3.1) and (3.2). We must show that
S + T and aS do the same. Compute for any x, y Rn ,
(S + T )(x + y)
= S(x + y) + T (x + y) by definition of + in M(Rn , Rm )
= S(x) + S(y) + T (x) + T (y) since S and T satisfy (3.1)
= S(x) + T (x) + S(y) + T (y) since addition in Rm commutes
= (S + T )(x) + (S + T )(y) by definition of + in M(Rn , Rm ).
Exercises
Show that this function satisfies the distance properties of Theorem 2.2.8.
(e) Show that for any S L(Rn , Rm ) and any T L(Rp , Rn ),
kST k kSkkT k.
A, B Mm,n (R),
76 3 Linear Mappings and Their Matrices
and if a is a real number, then the matrices for the linear mappings
S + T : Rn Rm and aS : Rn Rm
For example,
12 1 0 02
+ = .
34 21 55
A similar argument shows that the appropriate definition to make for scalar
multiplication of matrices is
Definition 3.2.2 (Scalar-by-Matrix Multiplication).
For example,
12 24
2 = .
34 68
The zero matrix 0m,n Mm,n (R), corresponding to the zero mapping in
L(Rn , Rm ), is the obvious one, with all entries 0. The operations in Mm,n (R)
precisely mirror those in L(Rn , Rm ), so
3.2 Operations on Matrices 77
Proposition 3.2.3 (Mm,n (R) Forms a Vector Space). The set Mm,n (R)
of m-by-n matrices forms a vector space over R.
The remaining important operation on linear mappings is composition. As
shown in exercise 3.1.13, if
S : Rn Rm and T : Rp Rn
S T : Rp Rm
Then the composition S T has a matrix in Mm,p (R) that is naturally defined
as the matrix-by-matrix product
AB Mm,p (R),
the order of multiplication being chosen for consistency with the composition.
Under this specification,
AB Mm,p (R),
has for its (i, j)th entry (for any i {1, , m} and j {1, , p}) the inner
product of the ith row of A and the jth column of B. In symbols,
Indeed, both quantities in the previous display are the 1-by-p vector whose
jth entry is the inner product of the ith row of A and the jth column of B.
For example, consider the matrices
1 2
123 45
A= , B = 2 3 , C= ,
456 67
3 4
111 x
D = 0 1 1 , E= abc , F = y .
001 z
id : Rn Rn , id(x) = x.
Proof. The right way to show these is intrinsic, by remembering that addition,
scalar multiplication, and multiplication of matrices precisely mirror addition,
scalar multiplication, and composition of mappings. For example, if A, B, C
are the matrices of the linear mappings S L(Rn , Rm ), T L(Rp , Rn ), and
U L(Rq , Rp ), then (AB)C and A(BC) are the matrices of (S T ) U and
S (T U ). But these two mappings are the same since the composition of
mappings (mappings in general, not only linear mappings) is associative. To
verify the associativity, we cite the definition of four different binary compo-
sitions to show that the ternary composition is independent of parentheses,
as follows. For any x Rq ,
The steps here are not explained in detail because the author finds this method
as grim as it is gratuitous: the coordinates work because they must, but their
presence only clutters the argument. The other equalities are similar.
Composing mappings is most interesting when all the mappings in ques-
tion take a set S back to the same set S, for the set of such mappings is
closed under composition. In particular, L(Rn , Rn ) is closed under compo-
sition. The corresponding statement about matrices is that Mn (R) is closed
under multiplication.
Exercises
Make specific choices of x and y to show that the transpose AT Mn,m (R) is
obtained by flipping A about its NorthwestSoutheast diagonal; that is, show
that the (i, j)th entry of AT is aji . It follows that the rows of AT are the
columns of A and the columns of AT are the rows of A.
(Similarly, let B Mn,p (R) be the matrix of T L(Rp , Rn ), so that B T
is the matrix of T T . Since matrix multiplication is compatible with linear
3.2 Operations on Matrices 81
3.2.5. The trace of a square matrix A Mn (R) is the sum of its diagonal
elements,
n
X
tr(A) = aii .
i=1
Show that
tr(AB) = tr(BA), A, B Mn (R).
(This exercise may entail double subscripts.)
3.2.6. For any matrix A Mm,n (R) and column vector a Rm define the
affine mapping (cf. exercise 3.1.15)
AffA,a : Rn Rm
3.2.7. The exponential of any square matrix A is the infinite matrix sum
1 2 1
eA = I + A + A + A3 + .
2! 3!
Compute the exponentials of the following matrices:
1 0 0
10
1 0 1 0
A = [], A= , A = 0 1 , A=
0
.
0 0 1
00
0 0 0
If so, what is T ?
The symmetry of the previous display shows that if T is an inverse of S
then S is an inverse of T in turn. Also, the inverse T , if it exists, must be
unique, for if T : Rm Rn also inverts S then
T = T idm = T (S T ) = (T S) T = idn T = T.
If the inverse T exists then it too is linear. To see this, note that the
elementwise description of S and T being inverses of one another is that every
y Rm takes the form y = S(x) for some x Rn , every x Rn takes the
form x = T (y) for some y Rm , and
Ax = 0m
(Here the a sits in the (i, j)th position, the diagonal entries are 1 and all other
entries are 0. The a is above the diagonal as shown only when i < j, otherwise
it is below.)
For any i {1, , m} and any nonzero a R, the m-by-m (i, a) scale
matrix is
1
..
.
1
Si,a = a .
1
.
. .
1
(Here the a sits in the ith diagonal position, all other diagonal entries are 1
and all other entries are 0.)
For any i, j {1, , m} (i 6= j), the m-by-m (i; j) transposition ma-
trix is
1
..
.
1
0 1
1
. ..
Ti;j = .
1
1 0
1
..
.
1
(Here the diagonal entries are 1 except the ith and jth, the (i, j)th and (j, i)th
entries are 1, all other entries are 0.)
The plan is to study the equation Ax = 0m by using these elementary
matrices to reduce A to a nicer matrix E and then solve the equation Ex = 0m
instead. Thus we are developing an algorithm rather than a formula. The next
3.3 The Inverse of a Linear Mapping 85
proposition describes the effect that the elementary matrices produce by left
multiplication.
Proof. (1) As observed immediately after Definition 3.2.4, each row of Ri;j,a M
equals the corresponding row of Ri;j,a times M . For any row index k 6= i, the
only nonzero entry of the row is a 1 in the kth position, so the product of the
row and M simply picks of the kth row of M . Similarly, the ith row of Ri;j,a
has a 1 in the ith position and an a in the jth, so the row times M equals the
ith row of M plus a times the jth row of M .
(2) and (3) are similar, left as exercise 3.3.2.
To get a better sense of why the statements in the proposition are true, it
may be helpful to do the calculations explicitly with some moderately sized
matrices. But then, the point of the proposition is that once one believes it, left
multiplication by elementary matrices no longer requires actual calculation.
Instead, one simply carries out the appropriate row operations. For example,
123 13 17 21
R1;2,3 = ,
456 4 5 6
because R1;2,3 adds 3 times the second row to the first. The slogan here is:
Thus we use the elementary matrices to reason about this material, but for
hand calculation we simply carry out the row operations.
The next result is that performing row operations on A doesnt change the
set of solutions x to the equation Ax = 0m .
(2) If the m-by-m matrices M and N are invertible by M 1 and N 1 , then the
product matrix M N is invertible by N 1 M 1 . (Note the order reversal.)
86 3 Linear Mappings and Their Matrices
Proof. (1) To prove that Ri;j,a Ri;j,a = Im , note that Ri;j,a is the identity
matrix Im with a times its jth row added to its ith row, and multiplying this
from the left by Ri;j,a subtracts back off a times the jth row, restoring Im .
The proof that Ri;j,a Ri;j,a = Im is either done similarly or by citing the
proof just given with a replaced by a. The rest of (1) is similar.
(2) Compute:
(M N )(N 1 M 1 ) = M (N N 1 )M 1 = M Im M 1 = M M 1 = Im .
Ax = 0m and (P A)x = 0m
Ax = Im Ax = (P 1 P )Ax = P 1 (P A)x = P 1 0m = 0m .
Note that B has a 1 as the leftmost entry of its first row. Recombine various
multiples of the first row with the other rows to put 0s beneath the leading 1
of the first row:
1 0 2 30 5
0 1 7 11 0 13
call
R5;1,5 R4;1,5 R3;1,2 R2;1,3 B =
0 1 7 11 0 13 = C.
0 1 7 11 1 30
0 0 0 0 1 17
Recombine various multiples of the second row with the others to put 0s
above and below its leftmost nonzero entry; scale the second row to make its
leading nonzero entry a 1:
102 30 5
0 1 7 11 0 13
call
S2,1 R4;2,1 R3;2,1 C =
0 0 0 0 0 0 = D.
0 0 0 0 1 17
0 0 0 0 1 17
Transpose the third and fifth rows; put 0s above and below the leading 1 in
the third row:
102 30 5
0 1 7 11 0 13
call
R4;3,1 T3;5 D =
0 0 0 0 1 17 = E.
0 0 0 0 0 0
000 00 0
Matrix E is a prime example of a so-called echelon matrix. (The term will be
defined precisely in a moment.) Its virtue is that the equation Ex = 05 is now
easy to solve. This equation expands out to
x1
102 30 5 x1 + 2x3 + 3x4 + 5x6 0
x
0 1 7 11 0 13 2 x2 + 7x3 + 11x4 + 13x6 0
x3
Ex =
0 0 0 0 1 17 x4 = x5 + 17x6
= 0.
0 0 0 0 0 0 0 0
x5
000 00 0 0 0
x6
Thus, x3 , x4 and x6 are free variables that may take any values we wish, but
then x1 , x2 and x5 are determined from these equations. For example, setting
x3 = 5, x4 = 3, x6 = 2 gives the solution x = (9, 24, 5, 3, 34, 2).
88 3 Linear Mappings and Their Matrices
Here the s are arbitrary entries and all entries below the stairway are 0.
Thus each rows first nonzero entry is a 1, each rows leading 1 is farther
right than that of the row above it, each leading 1 has a column of 0s above
it, and any rows of 0s are at the bottom.
showing that not all the columns are new. Thus A is not invertible when
m < n. On the other hand, if A Mm,n (R) has more rows than columns and
3.3 The Inverse of a Linear Mapping 89
it has an inverse matrix A1 Mn,m (R), then A1 in turn has inverse A, but
this is impossible since A1 has more columns than rows. Thus A is also not
invertible when m > n.
The remaining case is that A is square. The only square echelon matrix
with all new columns is I, the identity matrix (exercise 3.3.10). Thus, unless
As echelon matrix is I, A is not invertible. On the other hand, if As echelon
matrix is I, then P A = I for some product P of elementary matrices. Multiply
from the left by P 1 to get A = P 1 ; this is invertible by P , giving A1 = P .
Summarizing,
Theorem 3.3.7 (Invertibility and Echelon Form for Matrices). A non-
square matrix A is never invertible. A square matrix A is invertible if and only
if its echelon form is the identity matrix.
When A is square, the discussion above gives an algorithm that simulta-
neously checks whether it is invertible and finds its inverse when it is.
Proposition 3.3.8 (Matrix Inversion Algorithm). Given A Mn (R),
set up the matrix
B = A | In
in Mn,2n (R). Carry out row operations on this matrix to reduce the left side
to echelon form. If the left side reduces to In then A is invertible and the right
side is A1 . If the left side doesnt reduce to In then A is not invertible.
The algorithm works because if B is left multiplied by a product P of
elementary matrices, the result is
PB = PA | P .
As discussed, P A = In exactly when P = A1 .
For example, the calculation
1 1 0 100 100 111
R1;2,1 R2;3,1 0 1 1 0 1 0 = 0 1 0 0 1 1
0 0 1 001 001 001
shows that 1
1 1 0 111
0 1 1 = 0 1 1 ,
0 0 1 001
and one readily checks that the claimed inverse really works. Since arithmetic
by hand is so error-prone a process, one always should confirm ones answer
from the matrix inversion algorithm.
We now have an algorithmic answer to the question at the beginning of
the section.
Theorem 3.3.9 (Echelon Criterion for Invertibility). The linear map-
ping S : Rn Rm is invertible only when m = n and its matrix A has
echelon matrix In , in which case its inverse S 1 is the linear mapping with
matrix A1 .
90 3 Linear Mappings and Their Matrices
Exercises
3.3.1. Write down the following 3-by-3 elementary matrices and their inverses:
R3;2, , S3,3 , T3;2 , T2;3 .
3.3.2. Finish the proof of Proposition 3.3.2.
h1 2i
3.3.3. Let A = 3 4 . Evaluate the following products without actually mul-
56
tiplying matrices: R3;2, A, S3,3 A, T3;2 A, T2;3 A.
3.3.4. Finish the proof of Lemma 3.3.3, part (1).
3.3.5. What is the effect of right multiplying the m-by-n matrix M by an
n-by-n matrix Ri;j,a ? By Si,a ? By T i; j?
3.3.6. Recall the transpose of a matrix M (cf. exercise 3.2.4), denoted M T .
T T T
Prove: Ri;j,a = Rj;i,a ; Si,a = Si,a ; Ti;j = Ti;j . Use these results and the
T T T
formula (AB) = B A to redo the previous problem.
3.3.7. Are the following matrices echelon? For each matrix M , solve the equa-
tion M x = 0.
00
103 1000 011
0001 1100
1 0
0 1 1 , , ,
0 1 ,
0 1 1 0 , 1 0 3 .
0000 0011
001 0010 000
00
Ca + H3 PO4 Ca3 P2 O8 + H2 .
3.3.10. Prove by induction that the only square echelon matrix with all new
columns is the identity matrix.
3.3.11. Are the following matrices invertible? Find the inverse when possible,
and then check your answer.
1 1
1 1 1 2 5 1 1 2 3
2 0 1 , 4 1 2 , 1 1 1 .
2 3 4
1 1 1
3 01 6 4 1 3 4 5
and thus any linear combination of the original {xj } is also a linear combina-
tion of the new {xj }.
Ax = b, A Mm,n (R), x Rn , b Rm , b 6= 0.
Ex = P b,
and since P b is just a vector, the solutions to this can be read off as in the
homogeneous case. There may not always be solutions, however.
Exercises
have a solution?
92 3 Linear Mappings and Their Matrices
3.4.3. A parent has a son and a daughter. The parent is four times as old as
the daughter, the daughter is four years older than the son. In three years the
parent will be five times as old as the son. How old are the parent, daughter
and son?
3.4.4. Show that to solve an inhomogeneous linear equation, one may solve a
homogeneous system in one more variable and then restrict to solutions where
the last variable is equal to 1.
In this section all matrices are square, n-by-n. The goal is to define a function
that takes such a matrix, with its n2 entries, and returns a single number.
The putative function is called the determinant,
det : Mn (R) R.
For any square matrix A Mn (R), the scalar det(A) should contain as much
algebraic and geometric information about the matrix as possible. Not sur-
prisingly, so informative a function is complicated to encode.
This context nicely demonstrates a pedagogical principle already men-
tioned in section 3.1: characterizing a mathematical object illuminates its
construction and its use. Rather than beginning with a definition of the de-
terminant, we will stipulate a few natural behaviors for it, and then we will
eventually see that
there is a function with these behaviors (existence),
there is only one such function (uniqueness), and, most importantly,
these behaviors, rather than the definition, further show how the function
works (consequences).
We could start at the first bullet (existence) and proceed from the construction
of the determinant to its properties, but when a construction is complicated
(as the determinants construction is) it fails to communicate intent, and
pulling it out of thin air as the starting point of a long discussion is an obstacle
to understanding. A few naturally gifted readers will see what the unexplained
idea really is, enabling them to skim the ensuing technicalities and go on to
start using the determinant effectively; some other tough-minded readers can
work through the machinery and then see its operational consequences; but
it is all too easy for the rest of us to be defeated by disorienting detail-fatigue
before the presentation gets to the consequential points and provides any
energizing clarity.
Another option would be to start at the second bullet (uniqueness), letting
the desired properties of the determinant guide our construction of it. This
3.5 The Determinant: Characterizing Properties and Their Consequences 93
det : Rn Rn R.
The advantage of this view is that now we can impose conditions on the deter-
minant, using language already at our disposal in a natural way. Specifically,
we make three requirements:
(1) The determinant is multilinear, meaning that it is linear as a function
of each of its vector variables when the rest are held fixed. That is, for
any vectors r1 , , rk , rk , , rn and any scalar ,
det(r1 , , rk + rk , , rn ) = det(r1 , , rk , , rn )
+ det(r1 , , rk , , rn ).
det(r1 , , rj , , ri , , rn ) = det(r1 , , ri , , rj , , rn ).
What the condition does say is that if all rows but one of a square matrix are
held fixed, then the determinant of the matrix varies linearly as a function
94 3 Linear Mappings and Their Matrices
but to keep the notation manageable we work with the simpler version.
We will prove the following theorem in the next section.
det : Rn Rn R.
In more structural language, Theorem 3.5.1 says that the multilinear skew-
symmetric functions from the n-fold product of Rn to R form a 1-dimensional
vector space over R, and {det} is a basis.
The reader may object that even if the conditions of multilinearity, skew-
symmetry, and normalization are grammatically natural, they are concep-
tually opaque. Indeed they reflect considerable hindsight, since the idea of
a determinant originally emerged from explicit calculations. But again, the
payoff is that characterizing the determinant rather than constructing it illu-
minates its many useful properties. The rest of the section can be viewed as
an amplification of this idea.
For one quick application of the existence of the determinant, consider the
standard basis of Rn taken in order,
(e1 , , en ).
Since det is normalized, it follows that (1)m = 1, i.e., m is even. That is,
no odd number of pair-exchanges can leave an ordered n-tuple in its initial
order. Consequently, if two different sequences of pair-exchanges have the
same net effect then their lengths are both odd or both eventhis is because
3.5 The Determinant: Characterizing Properties and Their Consequences 95
running one sequence forwards and then the other back has no net effect and
hence comes to an even number of moves. In other words, although a net
rearrangement of an n-tuple does not determine a unique succession of pair-
exchanges to bring it about, or even a unique number of such exchanges, it does
determine the parity of any such number: the net rearrangement requires an
odd number of exchanges, or it requires an even number. (For reasons related
to this, an old puzzle involving fifteen squares that slide in a 4-by-4 grid can
be made unsolvable by popping two pieces out and exchanging them.)
The fact that the parity of a rearrangement is well defined may be easy to
believe, perhaps so easy that the need for a proof is hard to see, but a proof
really is required. The determinants skewness and normalization are so pow-
erful that they give the result essentially as an afterthought. See exercise 3.5.2
for an elementary proof that does not invoke the existence of the determinant.
To summarize clearly, with reference to the exercise:
Independently of the determinant, every rearrangement of n objects
has a well-defined parity, meaning that for any rearrangement of the
objects, either all sequences of pairwise exchanges that put the objects
back in order have even length or all such sequences have odd length.
Easy though it is to use the determinant to show that parity is well defined,
in the next section we will need the fact that parity is well defined to show
that the determinant is unique. Thus exercise 3.5.2 keeps us from arguing in
a circle.
The next result is a crucial property of the determinant.
det(A1 ) = (det(A))1 .
(r1 , , rj , , ri , , rn ) = det(r1 B, , rj B, , ri B, , rn B)
= det(r1 B, , ri B, , rj B, , rn B)
= (r1 , , ri , , rj , , rn ).
It follows from Theorem 3.5.1 that (A) = det(B) det(A), and this is the
desired main result det(AB) = det(A) det(B) of the theorem. Finally, if A is
invertible then
And we note that the same result holds for the trace, introduced in exer-
cise 3.2.5, in consequence of that exercise,
More facts about the determinant are immediate consequences of its char-
acterizing properties.
(2) and (3) are similar. For (4), if E = I then det(E) = 1 since the determinant
is normalized. Otherwise the bottom row of E is 0, and since a linear function
takes 0 to 0, it follows that det(E) = 0.
For one consequence of Theorem 3.5.2 and Proposition 3.5.3, recall that
every matrix A Mn (R) has a transpose matrix AT , obtained by flipping A
about its NorthwestSoutheast diagonal. The next theorem (whose proof is
exercise 3.5.4) says that all statements about the determinant as a function
of the rows of A also apply to the columns. This fact will be used without
comment from now on. In particular, det(A) is the unique multilinear skew-
symmetric normalized function of the columns of A.
are triangular.
Proof. We may consider only upper triangular matrices since a lower trian-
gular matrix has an upper triangular matrix for its transpose. The 3-by-3
98 3 Linear Mappings and Their Matrices
case makes the general argument clear. The determinant of a 3-by-3 upper
triangular matrix A is
3
X 3
X 3
X
det A = det( a1i1 ei1 , a2i2 ei2 , a3i3 ei3 )
i1 =1 i2 =2 i3 =3
X 3
3 X
3 X
det A = a1i1 a2i2 a3i3 det(ei1 , ei2 , ei3 ).
i1 =1 i2 =2 i3 =3
3 X
X 3
det A = a1i1 a2i2 a33 det(ei1 , ei2 , e3 ),
i1 =1 i2 =2
2
X
det A = a1i1 a22 a33 det(ei1 , e2 , e3 ).
i1 =1
That is, the zeroness or nonzeroness of the determinant says whether the
matrix is invertible. Once the existence and uniqueness of the determinant
are established in the next section, we will continue to use the determinant
properties to interpret the magnitude and the sign of the determinant as well.
Not only does equation (3.6) prove the Linear Invertibility Theorem, but
furthermore it describes an algorithm for computing the determinant of any
square matrix A: reduce A to echelon form by recombines, scales, and trans-
positions; if the echelon form is I then det(A) is the reciprocal product of the
scaling factors times 1 raised to the number of transpositions, and if the
echelon form is not I then det(A) = 0.
Exercises
ip : Rn Rn R,
(1, 2, , n)
and similarly its second row is r2 = ce1 + de2 . Thus, since we view the deter-
minant as a function of rows, its determinant must be
det(ae1 + be2 , ce1 + de2 ) = a det(e1 , ce1 + de2 ) + b det(e2 , ce1 + de2 ),
and since det is also linear in its second vector variable, this expands further,
And finally, since det is normalized, we have found the only possible formula
for the determinant of a 2-by-2 matrix,
det(A) = ad bc.
(As a brief digression, the reader can use the matrix inversion algorithm
from section 3.3 to verify that the 2-by-2 matrix A is invertible if and only
if ad bc is nonzero, showing that the formula for the 2-by-2 determinant
arises from considerations of invertibility as well as from our three conditions.
However, the argument requires cases, e.g., a 6= 0 or a = 0, making this
approach uninviting for larger matrices.)
Returning to the main line of exposition, nothing here has yet shown that
a determinant function exists at all for 2-by-2 matrices. What it has shown is
that there is only one possibility,
But now that we have the only possible formula, checking that indeed it
satisfies the desired properties is purely mechanical. For example, to verify
linearity in the first vector variable, compute
For skew-symmetry,
det((c, d), (a, b)) = cb da = (ad bc) = det((a, b), (c, d)).
We should also verify linearity in the second vector variable, but this no longer
requires the defining formula. Instead, since the formula is skew-symmetric
and is linear in the first variable,
det(r1 , r2 + r2 ) = det(r2 + r2 , r1 )
= det(r2 , r1 ) + det(r2 , r1 )
= det(r1 , r2 ) det(r1 , r2 )
= det(r1 , r2 ) + det(r1 , r2 ).
This little trick illustrates the value of thinking in general terms: a slight
modification, inserting a few occurrences of and replacing the subscripts
1 and 2 by i and j, shows that for any n, the three required conditions for the
determinant are redundantlinearity in one vector variable combines with
skew-symmetry to ensure linearity in all the vector variables.
One can similarly show that for a 1-by-1 matrix,
A = [a],
3.6 The Determinant: Uniqueness and Existence 103
det(A) = a,
and that indeed this works. The result is perhaps silly, but the exercise of
working through a piece of language and logic in the simplest instance can
help one to understand its more elaborate cases. As another exercise, the same
techniques show that the only possible formula for a 3-by-3 determinant is
ab c
det d e f = aek + bf g + cdh af h bdk ceg.
ghk
And again, this is the only possible formula because parity is well defined for
all rearrangements of e1 , e2 , and e3 . This formula is complicated enough that
we should rethink it in a more systematic way before verifying that it has
the desired properties. And we may as well generalize it to arbitrary n in the
process. Here are some observations about the 3-by-3 formula:
It is a sum of 3-fold products of matrix entries.
Every 3-fold product contains one element from each row of the matrix.
Every 3-fold product also contains one element from each column of the
matrix. So every 3-fold product arises from the positions of three rooks
that dont threaten each other on a 3-by-3 chessboard.
Every 3-fold product comes weighted by a + or a .
Similar observations apply to the 1-by-1 and 2-by-2 formulas. Our general
formula should encode them. Making it do so is partly a matter of notation,
but also an idea is needed to describe the appropriate distribution of plus
signs and minus signs among the terms. The following language provides all
of this.
Definition 3.6.1 (Permutation). A permutation of {1, 2, , n} is a vec-
tor
= ((1), (2), , (n))
whose entries are {1, 2, , n}, each appearing once, in any order. An inver-
sion in the permutation is a pair of entries with the larger one to the left.
The sign of the permutation , written (1) , is 1 raised to the number of
inversions in . The set of permutations of {1, , n} is denoted Sn .
Examples are the permutations = (1, 2, 3, , n), = (2, 1, 3, , n),
and = (5, 4, 3, 2, 1) (here n = 5). In these examples has no inversions,
has one, and has ten. Thus (1) = 1, (1) = 1, and (1) = 1. In
general, the sign of a permutation with an even number of inversions is 1 and
the sign of a permutation with an odd number of inversions is 1. There are
n! permutations of {1, 2, , n}; that is, the set Sn contains n! elements.
As advertised, permutations and their signs provide the notation for the
only possible n-by-n determinant formula. Consider any n vectors
104 3 Linear Mappings and Their Matrices
n
X n
X n
X
r1 = a1i ei , r2 = a2j ej , , rn = anp ep .
i=1 j=1 p=1
X n
n X n
X
= a1i a2j anp (ei , ej , , ep ).
i=1 j=1 p=1
where
c = (e1 , , en ).
Especially, a possible formula for a multilinear skew-symmetric normalized
function is
X
det(r1 , r2 , , rn ) = (1) a1i a2j anp .
=(i,j, ,p)
And as we have discussed twice already in this section, the previous display
gives the unique possible formula for a multilinear skew-symmetric normalized
function because any method of rearranging (ei , ej , , ep ) into order must
produce the same factor (1) .
3.6 The Determinant: Uniqueness and Existence 105
det : Mn (R) R,
The sum of the right column entries is the anticipated formula from before,
ab c
det d e f = aek + bf g + cdh af h bdk ceg.
ghk
and even the silly 1-by-1 formula det[a] = a. The 2-by-2 and 3-by-3 cases
are worth memorizing. They can be visualized as adding the products along
NorthwestSoutheast diagonals of the matrix and then subtracting the prod-
ucts along SouthwestNortheast diagonals, where the word diagonal connotes
106 3 Linear Mappings and Their Matrices
Figure 3.9. The rook placement for (2, 3, 1), showing the two inversions
+ + +
wraparound in the 3-by-3 case. (See figure 3.10.) But be aware that this
pattern of the determinant as the NorthwestSoutheast diagonals minus the
SouthwestNortheast diagonals is valid only for n = 2 and n = 3.
We have completed the program of the second bullet at the beginning of the
previous section, finding the only possible formula (the one in Definition 3.6.2)
that could satisfy the three desired determinant properties. We dont yet know
that it does, just that it is the only formula that could. That is, we have
now proved the uniqueness but not yet the existence of the determinant in
Theorem 3.5.1.
The first bullet tells us to prove the existence by verifying that the com-
puted determinant formula indeed does satisfy the three stipulated determi-
nant properties. Similarly to the 2-by-2 case, this is a mechanical exercise.
The impediments are purely notational, but the notation is admittedly cum-
bersome, and so the reader is encouraged to skim the next proof.
Proof. (1) If A has rows ri = (ai1 , , ain ) except that its kth row is the linear
combination rk +rk where rk = (ak1 , , akn ) and rk = (ak1 , , akn ), then
its (i, j)th entry is (
aij if i 6= k,
akj + akj if i = k.
Thus
det(r1 , , rk + rk , , rn )
X
= (1) a1(1) (ak(k) + ak(k) ) an(n)
Sn
X
= (1) a1(1) ak(k) an(n)
Sn
X
+ (1) a1(1) ak(k) an(n)
Sn
= det(r1 , , rk , , rn ) + det(r1 , , rk , , rn ),
as desired.
(2) Let A have rows r1 , , rn where ri = (ai1 , , ain ). Suppose that
rows k and k + 1 are exchanged. The resulting matrix has (i, j)th entry
aij if i
/ {k, k + 1},
ak+1,j if i = k,
akj if i = k + 1.
Thus (k) = (k + 1), (k + 1) = (k), and (i) = (i) for all other i.
As varies through Sn , so does , and for each we have the relation
(1) = (1) (exercise 3.6.6). The defining formula of the determinant
gives
det(r1 , , rk+1 , rk , , rn )
X
= (1) a1(1) ak+1,(k) ak(k+1) an(n)
X
= (1) a1 (1) ak+1, (k+1) ak (k) an (n)
= det(r1 , , rk , rk+1 , , rn ).
108 3 Linear Mappings and Their Matrices
The previous calculation establishes the result when adjacent rows of A are
exchanged. To exchange rows k and in A where > k, carry out the following
adjacent row exchanges:
rows k and k + 1, k and k + 1.
k + 1 and k + 2, k + 1 and k + 2,
, ,
2 and 1, 2 and 1,
1 and ,
This process trickles the kth row down to the th and then bubbles the th
row back up to the kth, bobbing each row in between them up one position
and then back down. And the display shows that the process carries out an
odd number of exchanges (all but the bottom one come in pairs), each of
which negates the determinant.
(3) This is left to the reader (exercise 3.6.7).
So a unique determinant function with the stipulated behavior exists. And
we have seen that any multilinear skew-symmetric function must be a scalar
multiple of the determinant. The last comment necessary to complete the
proof of Theorem 3.5.1 is that since the determinant is multilinear and skew-
symmetric, so are its scalar multiples. This fact was shown in exercise 3.5.3.
The reader is invited to contemplate how tortuous it would have been to
prove the various facts about the determinant in the previous section by using
the unwieldy determinant formula, with its n! terms.
The previous section has already established that the determinant of a
triangular matrix is the product of the diagonal entries, but the result also
follows immediately from the determinant formula (exercise 3.6.8). This fact
should be cited freely to save time.
An algorithm for computing det(A) for any A Mn (R) is now at hand.
Algebraically, the idea is that if
P1 AP2 =
where P1 and P2 are products of elementary matrices and is a triangular
matrix, then since the determinant is multiplicative,
det(A) = det(P1 )1 det() det(P2 )1 .
Multiplying A by P2 on the right carries out a sequence of column operations
on A, just as multiplying A by P1 on the left carries out row operations. Recall
that the determinants of the elementary matrices are
det(Ri;j,a ) = 1,
det(Si,a ) = a,
det(Ti;j ) = 1.
3.6 The Determinant: Uniqueness and Existence 109
becomes, after scaling the first row by 3!, the second row by 4!, the third row
by 5!, and the fourth row by 6!,
6 6 31
24 12 4 1
B=
60 20 5 1 .
120 30 6 1
and then scale the third row by 1/2 and the fourth row by 1/3, yielding
6 631
18 6 1 0
D=
27 7 1 0 .
38 8 1 0
Next subtract the second row from the third row and the fourth rows, and
scale the fourth row by 1/2 to get
6 631
18 6 1 0
E=
9 1 0 0 .
10 1 0 0
Subtract the third row from the fourth, transpose the first and fourth columns,
and transpose the second and third columns, leading to
110 3 Linear Mappings and Their Matrices
1 36 6
0 16 18
= .
0 01 9
0 00 1
Exercises
3.6.1. For this exercise, let n and m be positive integers, not necessarily equal,
and let Rn Rn denote m copies of Rn . Consider any multilinear function
f : Rn Rn R.
a1 = (a11 , , a1n ),
a2 = (a21 , , a2n ),
..
.
am = (am1 , , amn ),
explain why
X n
n X n
X
f (a1 , a2 , , am ) = a1i a2j amp f (ei , ej , , ep ).
i=1 j=1 p=1
3.6.2. Use the three desired determinant properties to derive the formulas in
the section for 1-by-1 and 3-by-3 determinant. Verify that the 1-by-1 formula
satisfies the properties.
3.6.3. For each permutation, count the inversions and compute the sign:
(2, 3, 4, 1), (3, 4, 1, 2), (5, 1, 4, 2, 3).
has determinant (b a)(c a)(c b). For what values of a, b, c is the Vander-
monde matrix invertible? (The idea is to do the problem conceptually rather
than writing out the determinant and then factoring it, so that the same ideas
would work for larger matrices. The determinant formula shows that the de-
terminant in the problem is a polynomial in a, b, and c. What is its degree in
each variable? Why must it vanish if any two variables are equal? Once you
have argued that that the determinant is as claimed, dont forget to finish the
problem.)
3.6.11. Consider the following n-by-n matrix based on Pascals triangle:
11 1 1 1
1 2 3 4 n
1 3
6 10 n(n+1)
2
A = 1 4 10 20 .
.. .. .. .. ..
. . . . .
n(n+1)
1n 2
T : Rn Rn
having matrix
A Mn (R).
In section 3.3 we discussed a process to invert A and thereby invert T . Now,
with the determinant in hand, we can also write the inverse of A explicitly in
closed form. Because the formula giving the inverse involves many determi-
nants, it is hopelessly inefficient for computation. Nonetheless, it is of interest
to us for a theoretical reason (the pending Corollary 3.7.3) that we will need
in chapter 5.
be the (n 1)-by-(n 1) matrix obtained by deleting the ith row and the jth
column of A. The classical adjoint of A is the n-by-n matrix whose (i, j)th
entry is (1)i+j times the determinant of Aj,i ,
Already for a 3-by-3 matrix the formula for the classical adjoint is daunting,
ef b c b c
adj det det det
ab c h k h k e f
ac
d e f = det d f det
ac
det
ghk g k g k d f
de ab ab
det det det
gh gh de
ek f h ch bk bf ce
= f g dk ak cg cd af .
dh eg bg ah ae bd
compute that
adj ad bc 0 10
AA = = (ad bc) = det(A)I2 .
0 ad bc 01
A Aadj = det(A)In .
The idea of the proof is that the inner product of the ith row of A and
the ith column of Aadj gives precisely the formula for det(A), while for i 6= j
the inner product of the ith row of A and the jth column of Aadj gives the
formula for the determinant of a matrix having the ith row of A as two of its
rows. The argument is purely formal but notationally tedious, and so we omit
it.
In the 2-by-2 case the proposition gives us a slogan:
To invert a 2-by-2 matrix, exchange the diagonal elements, negate the
off-diagonal elements, and divide by the determinant.
Again, for n > 2 the explicit formula for the inverse is rarely of calculational
use. We care about it for the following reason.
Exercise
3.7.1. Verify at least one diagonal entry and at least one off-diagonal entry
in the formula A Aadj = det(A)In for n = 3.
114 3 Linear Mappings and Their Matrices
T : Rn Rn .
E Rn ,
T E Rn ,
vol T E = t vol E.
B = {1 e1 + + n en : 0 1 1, , 0 n 1}.
3.8 Geometry of the Determinant: Volume 115
Thus box means interval when n = 1, rectangle when n = 2, and the usual
notion of box when n = 3. Let p be a point in Rn , let a1 , , an be positive
real numbers, and let B denote the box spanned by the vectors a1 e1 , , an en
and translated by p,
B = {1 a1 e1 + + n an en + p : 0 1 1, , 0 n 1}.
(See figure 3.11. The figures of this section are set in two dimensions, but the
ideas are general and hence so are the figure captions.) A face of a box is the
set of its points such that some particular i is held fixed at 0 or at 1 while
the others vary. A box in Rn has 2n faces.
A natural definition is that the unit box has unit volume,
vol B = 1.
And we assume that scaling any spanning vector of a box affects the boxs
volume continuously in the scaling factor. It follows that scaling any spanning
vector of a box by a real number a magnifies the volume by |a|. To see this,
first note that scaling a spanning vector by an integer creates || abutting
translated copies of the original box, and so the desired result follows in this
case from finite additivity. A similar argument applies to scaling a spanning
vector by a reciprocal integer 1/m (m 6= 0), since the original box is now |m|
copies of the scaled one. These two special cases show that the result holds
for scaling a spanning vector by any rational number r = /m. Finally, the
continuity assumption extends the result from the rational numbers to the
real numbers, since every real number is approached by a sequence of rational
numbers. Since the volume of the unit box is normalized to 1, since volume
is unchanged by translation, and since scaling any spanning vector of a box
by a magnifies its volume by |a|, the volume of the general box is (recalling
that a1 , , an are assumed to be positive)
vol B = a1 an .
p + a 2 e2
B e2
p p + a 1 e1 B
e1
Figure 3.11. Scaling and translating the unit box
N
[ M
[
Bi E Bi , (3.8)
i=1 i=1
and such that the boxes that complete the partial union to the full union have
a small sum of volumes,
M
X
vol Bi < . (3.9)
i=N +1
(See figure 3.12, where E is an elliptical region, the boxes B1 through BN that
it contains are dark, and the remaining boxes BN +1 through BM are light.)
To see that E should have a volume, note that the first containment of (3.8)
says that a number at most big enough to serve as vol E (a lower bound) is
SN
L = vol i=1 Bi , and the second containment says that a number at least
SM
big enough (an upper bound) is U = vol i=1 Bi . By the finite additivity
PN
condition (3.7), the lower and upper bounds are L = i=1 vol Bi and U =
PM
i=1 vol Bi . Thus they are close to each other by (3.9),
M
X
U L= vol Bi < .
i=N +1
P(v1 , , vn ) = {1 v1 + + n vn : 0 1 1, , 0 n 1},
abbreviated to P when the vectors are firmly fixed. Again the terminology
is pan-dimensional, meaning in particular interval, parallelogram, and paral-
lelepiped in the usual sense for n = 1, 2, 3. We will also consider translations
of parallelepipeds away from the origin by offset vectors p,
P = P + p = {v + p : v P}.
3.8 Geometry of the Determinant: Volume 117
(See figure 3.13.) A face of a parallelepiped is the set of its points such that
some particular i is held fixed at 0 or at 1 while the others vary. A paral-
lelepiped in Rn has 2n faces. Boxes are special cases of parallelepipeds. The
methods of chapter 6 will show that parallelepipeds are well approximated by
boxes, and so they have well defined volumes. We assume that parallelepiped
volume is finitely additive, and we assume that any finite union of paral-
lelepipeds each having volume zero again has volume zero.
p + v2
P
v2
p + v1
P
v1
p
vol B = a1 an .
The two displays combine to give
vol T B
= vol T B.
vol B
That is, the volume of the T -image of a box divided by the volume of the
box is constant, regardless of the boxs location or side lengths, the constant
being the volume of T B, the T -image of the unit box B. Call this constant
magnification factor t. Thus,
T (p) T B
B
p
B
TB
Figure 3.14. Linear image of the unit box and of a scaled translated box
We need one last preliminary result about volume. Again let E be a subset
of Rn that is well approximated by boxes. Fix a linear mapping T : Rn
Rn . Very similarly to the argument for E, the set T E also should have a
volume, because it is well approximated by parallelepipeds. Indeed, the set
containments (3.8) are preserved under the linear mapping T ,
N
[ M
[
T Bi T E T Bi .
i=1 i=1
In general, the image of a union is the union of the images, so this rewrites as
N
[ M
[
T Bi T E T Bi .
i=1 i=1
(See figure 3.15.) As before, numbers at most big enough and at least big
enough for the volume of T E are
N
[ N
X M
[ M
X
L = vol T Bi = vol T Bi , U = vol T Bi = vol T Bi .
i=1 i=1 i=1 i=1
3.8 Geometry of the Determinant: Volume 119
The only new wrinkle is that citing the finite additivity of parallelepiped
volume here assumes that the parallelepipeds T Bi either inherit from the
original boxes Bi the property of being disjoint except possibly for shared
faces, or they all have volume zero. The assumption is valid because if T is
invertible then the inheritance holds, while if T is not invertible then we will
see later in this section that the T Bi have volume zero as desired. With this
point established, let t be the factor by which T magnifies box-volume. The
previous display and (3.10) combine to show that the difference of the bounds
is
XM M
X M
X
U L= vol T Bi = t vol Bi = t vol Bi t.
i=N +1 i=N +1 i=N +1
vol T E = t vol E.
In sum, subject to various assumptions about volume, T magnifies the volumes
of all boxes and of all figures that are well approximated by boxes by the same
factor, which we have denoted t.
Now we investigate the magnification factor t associated to the linear map-
ping T , with the goal of showing that it is | det A| where A is the matrix of T .
As a first observation, if the linear mappings S, T : Rn Rn magnify volume
by s and t respectively, then their composition S T magnifies volume by st.
In other words, the magnification of linear mappings is multiplicative. Also,
recall that the mapping T is simply multiplication by the matrix A. Since any
matrix is a product of elementary matrices times an echelon matrix, we only
need to study the magnification of multiplying by such matrices. Temporarily
let n = 2.
The 2-by-2 recombine matrices take the form R = [ 10 a1 ] and R = [ a1 10 ]
with a R. The standard basis vectors e1 and e2 are taken by R to its
columns, e1 and ae1 + e2 . Thus R acts geometrically as a shear by a in the
e1 -direction, magnifying volume by 1. (See figure 3.16.) Note that 1 = | det R|
as desired. The geometry of R is left as an exercise.
discussion for recombine matrices Ri;j,a takes a small argument. Since trans-
position matrices have no effect on volume, we may multiply Ri;j,a from the
left and from the right by various transposition matrices to obtain R1;2,a and
study it instead. Multiplication by R1;2,a preserves all of the standard basis
vectors except e2 , which is taken to ae1 + e2 as before. The resulting paral-
lelepiped P(e1 , ae1 + e2 , e3 , , en ) consists of the parallelogram shown in the
right side of figure 3.16, extended one unit in each of the remaining orthogonal
n 2 directions of Rn . The n-dimensional volume of the parallelepiped is its
base (the area of the parallelogram, 1) times its height (the (n2)-dimensional
volume of the unit box over each point of the parallelogram, again 1). That is,
the n-by-n recombine matrix still magnifies volume by 1, the absolute value
of its determinant, as desired. The base times height property of volume is yet
122 3 Linear Mappings and Their Matrices
The work of this section has given a geometric interpretation of the mag-
nitude of det A: it is the magnification factor of multiplication by A. If the
columns of A are denoted c1 , , cn then Aej = cj for j = 1, , n, so that
even more explicitly | det A| is the volume of the parallelepiped spanned by
the columns of A. For instance, to find the volume of the three-dimensional
parallelepiped spanned by the vectors (1, 2, 3), (2, 3, 4), and (3, 5, 8), compute
that
123
| det 2 3 5 | = 1.
348
Exercises
3.8.1. (a) The section states that the image of a union is the union of the
images. More specifically, let A and B be any sets, let f : A B be any
mapping, and let A1 , , AN be any subsets of A. Show that
N
! N
[ [
f Ai = f (Ai ).
i=1 i=1
3.8.7. Let P be the parallelogram a b in R2 spanned by (a, c) and (b, d). Cal-
culate directly that | det c d | = area P. (Hint: area = base height
= |(a, c)| |(b, d)| | sin (a,c),(b,d) |. It may be cleaner to find the square of the
area.)
3.8.8. This exercise shows directly that | det | = volume in R3 . Let P be the
parallelepiped in R3 spanned by v1 , v2 , v3 , let P be spanned by the vectors
v1 , v2 , v3 obtained from performing the GramSchmidt process on the vj s,
let A M3 (R) have rows v1 , v2 , v3 and let A M3 (R) have rows v1 , v2 , v3 .
(a) Explain why det A = det A.
(b) Give a plausible geometric argument that vol P = vol P.
(c) Show that 2
|v1 | 0 0
t
A A = 0 |v2 |2 0 .
0 0 |v3 |2
Explain why therefore | det A | = vol P . It follows from parts (a) and (b) that
that | det A| = vol P.
Recall from section 2.1 that a basis of Rn is a set of vectors {f1 , , fp } such
that any vector in Rn is a unique linear combination of the {fj }. Though
strictly speaking a basis is only a set, we adopt here the convention that the
basis vectors are given in the specified order indicated. Given such a basis,
view the vectors as columns and let F denote the matrix in Mn,p (R) with
columns f1 , , fp . Thus the order of the basis vectors is now relevant. For
a standard basis vector ej of Rp , the matrix-by-vector product F ej gives the
jth column fj of F . Therefore, for any vector x = (x1 , , xp ) Rp (viewed
as a column),
124 3 Linear Mappings and Their Matrices
Xp p
X p
X
Fx = F
x j ej = x j F ej = x j fj .
j=1 j=1 j=1
{f1 , , fp } is a basis of Rn
!
each y Rn is uniquely expressible
as a linear combination of the {fj }
!
each y Rn takes the form
y = F x for a unique x Rp
F is invertible
F is square (i.e., p = n) and det F 6= 0.
f1 f2
form a basis if they are not coplanar. In other words they must form a right-
or left-handed triple. Only right-handed triples deform via other nonplanar
triples to {e1 , e2 , e3 }. Therefore in R3 , the basis {f1 , f2 , f3 } is positive exactly
when it forms a right-handed triple. (See figure 3.21.)
f3
f2
f2
f1
f1 f3
The calculation lets us interpret the sign of det A geometrically: If det A > 0
then T preserves the orientation of bases, and if det A < 0 then T reverses
orientation. For example, the mapping with matrix
0001
1 0 0 0
0 1 0 0
0010
126 3 Linear Mappings and Their Matrices
reverses orientation in R4 .
To summarize: Let A be an n-by-n matrix. Whether det A is nonzero says
whether A is invertible, the magnitude of det A is the factor by which A
magnifies volume, and (assuming that det A 6= 0) the sign of det A determines
how A affects orientation.
Exercises
uv u and u v v. (3.11)
There is the question of which way uv should point along the line orthogonal
to the plane spanned by u and v. The natural answer is that the direction
should be chosen to make the ordered triple of vectors {u, v, u v} positive
unless it is degenerate,
det(u, v, u v) 0. (3.12)
Also there is the question of how long u v should be. With hindsight, we
assert that specifying the length to be the area of the parallelogram spanned
by u and v will work well. That is,
3.10 The Cross Product, Lines, and Planes in R3 127
The three desired geometric properties (3.11) through (3.13) seem to describe
the cross product completely. (See figure 3.22.)
u
Figure 3.22. The cross product of u and v
The three geometric properties also seem disparate. However, they combine
into a uniform algebraic property, as follows. Since the determinant in (3.12) is
nonnegative, it is the volume of the parallelepiped spanned by u, v, and u v.
The volume is the base times the height, and since u v is normal to u and v
the base is the area of P(u, v) and the height is |u v|. Thus
Since orthogonal vectors have inner product 0, since the determinant is 0 when
two rows agree, and since the square of the absolute value is the vectors inner
product with itself, we can rewrite (3.11) and this last display (obtained from
(3.12) and (3.13)) uniformly as equalities of the form hu v, wi = det(u, v, w)
for various w,
hu v, ui = det(u, v, u),
hu v, vi = det(u, v, v), (3.14)
hu v, u vi = det(u, v, u v).
Instead of saying what the cross product is, as an equality of the form u v =
f (u, v) would, the three equalities of (3.14) say how the cross product interacts
with certain vectorsincluding itselfvia the inner product. Again, the idea
is to characterize rather than construct.
(The reader may object to the argument just given that det(u, v, u v) =
area P(u, v) |u v|, on the grounds that we dont really understand the area
of a 2-dimensional parallelogram in 3-dimensional space to start with, that
128 3 Linear Mappings and Their Matrices
in R3 we measure volume rather than area, and the parallelogram surely has
volume zero. In fact, the argument can be viewed as motivating the formula
as the definition of the area. This idea will be discussed more generally in
section 9.1.)
Based on (3.14), we leap boldly to an intrinsic algebraic characterization
of the cross product.
Definition 3.10.1 (Cross Product). Let u and v be any two vectors in R3 .
Their cross product u v is defined by the property
That is, u v is the unique vector x R3 such that hx, wi = det(u, v, w) for
all w R3 .
As with the determinant earlier, we do not yet know that the characterizing
property determines the cross product uniquely, or even that a cross product
that satisfies the characterizing property exists at all. But also as with the
determinant, we defer those issues and first reap the consequences of the
characterizing property with no reference to an unpleasant formula for the
cross product. Of course the cross product will exist and be unique, but for
now the point is that graceful arguments with its characterizing property show
that it has all the further properties that we want it to have.
Proposition 3.10.2 (Properties of the Cross Product).
(CP1) The cross product is skew-symmetric: v u = u v for all u, v R3 .
(CP2) The cross product is bilinear: For all scalars a, a , b, b R and all
vectors u, u , v, v R3 ,
Since w is arbitrary, v u = u v.
(2) For the first variable, this follows from the linearity of the determinant
in its first row-vector variable and the linearity of the inner product in its first
vector variable. Fix a, a R, u, u , v R3 . For any w R3 ,
3.10 The Cross Product, Lines, and Planes in R3 129
h(au + a u ) v, wi = det(au + a u , v, w)
= a det(u, v, w) + a det(u , v, w)
= ahu v, wi + a hu v, wi
= ha(u v) + a (u v), wi.
hu v, wi = det(u, v, w) 6= 0.
Therefore u v 6= 0.
(5) By (4), u v 6= 0, so 0 < hu v, u vi = det(u, v, u v). By the results
on determinants and orientation, {u, v, u v} is right-handed.
(6) By definition, |u v|2 = hu v, u vi = det(u, v, u v). As discussed
earlier in the section, det(u, v, u v) = areaP(u, v) |u v|. The result follows
from dividing by |u v| if it is nonzero, and from (4) otherwise.
Now we show that the characterizing property determines the cross prod-
uct uniquely. The idea is that a vectors inner products with all other vectors
completely describe the vector itself. The observation to make is that for any
vector x Rn (n need not be 3 in this paragraph),
That is, the inner product values hx, wi for all w Rn specify x, as anticipated.
To prove that the cross product exists, it suffices to write a formula for it
that satisfies the characterizing property in Definition 3.10.1. Since we need
hu v, e1 i = det(u, v, e1 ),
hu v, e2 i = det(u, v, e2 ),
hu v, e3 i = det(u, v, e3 ),
This formula indeed satisfies the definition because by definition of the inner
product and then by the linearity of the determinant in its third argument we
have for any w = (w1 , w2 , w3 ) R3 ,
e1 e1 = 03 , e1 e2 = e3 , e1 e3 = e2 ,
e2 e1 = e3 , e2 e2 = 03 , e2 e3 = e1 ,
e3 e1 = e2 , e3 e2 = e1 , e3 e3 = 03 .
1Y
3
and ei ej is minus the remaining standard basis vector if i 6= j and i and j
are out of order in the diagram.
(p, d) = {p + td : t R}.
If the components of d are all nonzero then the relation between the coordi-
nates can be expressed without the parameter t,
x xp y yp z zp
= = .
xd yd zd
For example, the line through (1, 1, 1) in the direction (1, 2, 3) consists of all
points (x, y, z) satisfying x = 1 + t, y = 1 + 2t, z = 1 + 3t for t R, or,
equivalently, satisfying x 1 = (y 1)/2 = (z 1)/3.
A plane in R3 is determined by a point p and a normal (orthogonal)
vector n. (See figure 3.24.) A point x lies on the plane exactly when the
vector from p to x is orthogonal to n. Therefore,
P (p, n) = {x R3 : hx p, ni = 0}.
p+d
Exercises
Show that the commutant product [U, V ] encodes the cross product u v.
3.10.6. Investigate the extent to which a cancellation law holds for the cross
product, as follows: for fixed u, v in R3 with u 6= 0, describe the vectors w
satisfying the condition u v = u w.
3.10.11. Show that (p, d) and (p , d ) intersect if and only if the linear equa-
tion Dt = p is solvable,
where D M3,2 (R) has columns d and d , t is the
t1
column vector t2 , and p = p p. For what points p and p do (p, (1, 2, 2))
and (p , (2, 1, 4)) intersect?
3.10.12. Use vector geometry to show that the distance from the point q to
the line (p, d) is
|(q p) d|
.
|d|
(Hint: what is the area of the parallelogram spanned by q p and d?) Find
the distance from the point (3, 4, 5) to the line ((1, 1, 1), (1, 2, 3)).
3.10.13. Show that the time of nearest approach of two particles whose po-
sitions are s(t) = p + tv, s(t) = p + tv is t = hp, vi/|v|2 . (You may
assume that the particles are at their nearest approach when the difference of
their velocities is orthogonal to the difference of their positions.)
3.10.14. Write the equation of the plane through (1, 2, 3) with normal direc-
tion (1, 1, 1).
3.10.15. Where does the plane x/a + y/b + z/c = 1 intersect each axis?
134 3 Linear Mappings and Their Matrices
3.10.16. Specify the plane containing the point p and spanned by directions
d and d . Specify the plane containing the three points p, q, and r.
3.10.17. Use vector geometry to show that the distance from the point q to
the plane P (p, n) is
|hq p, ni|
.
|n|
(Hint: Resolve q p into components parallel and normal to n.) Find the
distance from the point (3, 4, 5) to the plane P ((1, 1, 1), (1, 2, 3)).
3.11 Summary
Linear algebra is easy in the abstract since the vector space operations pass
through linear mappings, and it is easy in the concrete since mechanical ma-
trix manipulations are straightforward. While the matrix methods from this
chapter are handy computational tools, it is also crucial to understand the
intrinsic notion of a linear mapping: this is the idea that we will use to define
multivariable differentiation in the next chapter.
4
The Derivative
Exercise
but the definitions of O(h) and o(h) avoid the divisions in the previous display,
and the definitions further stipulate that any o(1)-mapping or O(h)-mapping
or o(h)-mapping takes the value 0 at h = 0. That is, beyond avoiding division,
the definitions are strictly speaking slightly stronger than the previous display.
Also, the definitions quickly give the containments
1/2
1
3
(h, k) = h, (h, k) = k
are O((h, k)) since the Size Bounds say that they are bounded absolutely
by the O(h)-mapping 1 (h, k) = |(h, k)|, i.e., |(h, k)| = |h| |(h, k)| and
similarly for . For general n and for any i {1, , n}, now letting h denote
a vector again as usual rather than the first component of a vector as it did
a moment ago, the ith component function
: Rn R, (h) = hi
is O(h) by the same argument. We will use this observation freely in the
sequel.
The o(1) and O(h) and o(h) conditions give rise to predictable closure
properties.
Proposition 4.2.4 (Vector Space Properties of the Landau Spaces).
For any fixed domain-ball B(0n , ) and codomain-space Rm , the o(1)-mappings
form a vector space, and O(h) forms a subspace, of which o(h) forms a sub-
space in turn. Symbolically,
i.e., o(1) and O(h) and o(h) absorb addition and scalar multiplication.
The fact that o(1) forms a vector space encodes the rules that sums and
constant multiples of continuous mappings are again continuous.
Proof (Sketch). Consider any , o(1). For any c > 0,
Using the left side of the Size Bounds and then the vector space properties of
o(1) and then the right side of the Size Bounds,
m
X
|| is o(1) = each |j | is o(1) = |i | is o(1) = || is o(1).
i=1
Thus || is o(1) if and only if each |i | is. As explained just above, we may
drop the absolute values, and so in fact is o(1) if and only if each i is,
as desired. The arguments for the O(h) and o(h) conditions are the same
(exercise 4.2.4). The componentwise nature of the o(1) condition encodes the
componentwise nature of continuity.
The place of linear mappings in the Landau notation scheme is straight-
forward, affirming the previously-mentioned intuition that the O(h) condition
describes at-most-linear growth and the o(h) condition describes smaller-than-
linear growth.
4.2 New Environment: the BachmannLandau Notation 141
Proposition 4.2.5. Every linear mapping is O(h). The only o(h) linear map-
ping is the zero mapping.
That is, |T (h)| > c|h| for some arbitrarily small h-values, i.e., it is not the
case that |T (h)| c|h| for all small enough h. Thus T fails the o(h) definition
for the particular constant c = |T (ho )|/2.
, , : B(0n , ) R.
Proof. Let c > 0 be given. For some d > 0, for all h close enough to 0n ,
and so
|()(h)| c|h|.
The second statement of the proposition follows from its first statement and
the previous proposition.
1 , 2 : R2 R, 1 (h, k) = h, 2 (h, k) = k.
The proposition combines with the vector space properties of o(h, k) to say
that the functions
142 4 The Derivative
, : R2 R, (h, k) = h2 k 2 , (h, k) = hk
o(o(1)) = o(1),
O(O(h)) = O(h),
o(O(h)) = o(h),
O(o(h)) = o(h).
That is, o(1) and O(h) absorb themselves, and o(h) absorbs O(h) from either
side.
The rule o(o(1)) = o(1) encodes the persistence of continuity under com-
position.
Proof. For example, to verify the third rule, suppose that : B(0n , ) Rm
is O(h) and that : B(0m , ) R is o(k). Then
Since c is some particular positive number and d can be any positive number,
cd again can be any positive number. That is, letting e = cd and combining
the previous two displays,
there exist c > 0 and > 0 such that |(h)| c|h| if |h|
and that
4.3 One-Variable Revisionism; the Derivative Redefined 143
for any d > 0 there exists d > 0 such that |(k)| d|k| if |k| d .
Now let e > 0 be given. Define d = e/c and e = min{, d /c}. Suppose that
|h| e . Then
and so
That is,
|((h))| e|h| since cd = e.
This shows that is o(h) since for any e > 0 there exists e > 0 such that
|( )(h)| e|h| if |h| e .)
The other rules are proved similarly (exercise 4.2.5).
Exercises
e : Rn R, (x) = |x|e .
(a) Suppose that e > 0. Let c > 0 be given. If |h| c1/e then what do we
know about |e (h)| in comparison to c? What does this tell us about e ?
(b) Prove that 1 is O(h).
(c) Suppose that e > 1. Combine parts (a) and (b) with the product
property for Landau functions (Proposition 4.2.6) to show that e is o(h).
(d) Explain how parts (a), (b), and (c) have proved Proposition 4.2.2.
4.2.4. Establish the componentwise nature of the O(h) condition, and estab-
lish the componentwise nature of the o(h) condition.
Thus g takes 0 to 0, and the graph of g near the origin is like the graph of f
near (a, f (a)) but with the line of slope t subtracted. To reiterate, the idea
that f has tangent slope t at (a, f (a)) has been normalized to the tidier idea
that g has slope 0 at the origin. Here the idea is:
To say that the graph of g is horizontal at the origin is to say that
for any positive real number c, however small, the region between the
lines of slope c contains the graph of g close enough to the origin.
That is:
The intuitive condition for the graph of g to be horizontal at the origin
is precisely that g is o(h). The horizontal nature of the graph of g at
the origin connotes that the graph of f has tangent slope t at (a, f (a)).
The symbolic connection between this characterization of the derivative
and the constructive definition is immediate. As always, the definition of f
having derivative f (a) at a is
f (a + h) f (a)
lim = f (a),
h0 h
which is to say,
f (a + h) f (a) f (a)h
lim = 0,
h0 h
and indeed this is precisely the o(h) condition on g. Figure 4.2 illustrates the
idea that when h is small, not only is the vertical distance f (a + h) f (a)
f (a)h from the tangent line to the curve small as well, but it is small even
relative to the horizontal distance h.
We need to scale these ideas up to many dimensions. Instead of viewing
the one-variable derivative as the scalar f (a), think of it as the corresponding
linear mapping Ta : R R, multiplication by f (a). That is, think of it as
the mapping
Ta (h) = f (a)h for all h R.
Figure 4.3 incorporates this idea. The figure is similar to figure 4.2, but it
shows the close approximation in the local coordinate system centered at the
point of tangency, and in the local coordinate system the tangent line is indeed
the graph of the linear mapping Ta . The shaded axis-portions in the figure
4.3 One-Variable Revisionism; the Derivative Redefined 145
f (x)
f (a + h)
f (a) + f (a)h
f (a)
x
a a+h
Ta (h)
f (a + h) f (a)
Ta (h)
h
h
are h horizontally and g(h) = f (a + h) f (a) f (a)h vertically, and the fact
that the vertical portion is so much smaller illustrates that g(h) is o(h).
We are nearly ready to rewrite the derivative definition pan-dimensionally.
The small remaining preliminary matter is to take into account the local
nature of the characterizing condition: it depends on the behavior of f only
on an -ball about a, but on the other hand, it does require an entire -ball.
Thus the following definition is appropriate for our purposes.
Now we can define the derivative in a way that encompasses many variables
and is suitably local.
Definition 4.3.2 (Derivative). Let A be a subset of Rn , let f : A Rm
be a mapping, and let a be an interior point of A. Then f is differentiable
at a if there exists a linear mapping Ta : Rn Rm satisfying the condition
f (a + h) f (a) Ta (h) is o(h). (4.1)
This Ta is called the derivative of f at a, written Dfa or (Df )a . When f
is differentiable at a, the matrix of the linear mapping Dfa is written f (a)
and is called the Jacobian matrix of f at a.
Here are two points to note about Definition 4.3.2:
Again, any assertion that a mapping is differentiable at a point has the
connotation that the point is an interior point of the mappings domain.
That is, if f is differentiable at a then B(a, ) A for some > 0. In the
special case n = 1 we are disallowing the derivative at an endpoint of the
domain.
The domain of the linear mapping Ta is unrestricted even if f itself is
defined only locally about a. Indeed, the definition of linearity requires
that the linear mapping have all of Rn as its domain. Any linear mapping
is so uniform that in any case its behavior on all of Rn is determined by its
behavior on any -ball about 0n (exercise 4.3.1). In geometric terms, the
graph of T , the tangent object approximating the graph of f at (a, f (a)),
extends without bound, even if the graph of f itself is restricted to points
near (a, f (a)). But the approximation of the graph by the tangent object
needs to be close only near the point of tangency.
Returning to the idea of the derivative as a linear mapping, when n = 2
and m = 1 a function f : A R is differentiable at an interior point
(a, b) of A if for small scalar values h and k, f (a + h, b + k) f (a, b) is well
approximated by a linear function
T (h, k) = h + k
where and are scalars. Since the equation z = f (a, b) + h + k describes
a plane in (x, y, z)-space (where h = x a and k = y b), f is differentiable
at (a, b) if its graph has a well-fitting tangent plane through (a, b, f (a, b)).
(See figure 4.4.) Here the derivative of f at (a, b) is the linear mapping tak-
ing (h, k) to h + k and the Jacobian matrix of f at a is therefore [, ].
The tangent plane in the figure is not the graph of the derivative Df(a,b) ,
but rather a translation of the graph. Another way to say this is that the
(h, k, Df(a,b) (h, k))-coordinate system has its origin at the point (a, b, f (a, b))
in the figure.
When n = 1 and m = 3, a mapping f : A R3 is differentiable at an
interior point a of A if f (a + h) f (a) is closely approximated for small real h
by a linear mapping
4.3 One-Variable Revisionism; the Derivative Redefined 147
f (x, y)
T (h, k)
k
h
x (a, b) y
T (h) = h
for some scalars , , and . As h varies through R, f (a) + T (h) traverses the
line = (f (a), (, , )) in R3 that ish tangent at f (a) to the output curve
i
of f . (See figure 4.5.) Here Dfa (h) = h and the corresponding Jacobian
hi
matrix is . Note that the figure does not show the domain of f , so it may
help to think of f as a time-dependent traversal of the curve rather than as
the curve itself. The figure does not have room for the (h, Dfa (h))-coordinate
system (which is 4-dimensional), but the Dfa (h)-coordinate system has its
origin at the point f (a).
For an example, let A = B((0, 0), 1) be the unit disk in R2 , and consider
the function
f : A R, f (x, y) = x2 y 2 .
We show that for any point (a, b) A, f is differentiable at (a, b) and its
derivative is the linear mapping
To verify this, we need to check Definition 4.3.2. The point that is written
in the definition intrinsically as a (where a is a vector) is written here in
coordinates as (a, b) (where a and b are scalars), and similarly the vector h in
the definition is written (h, k) here, because the definition is intrinsic whereas
here we are going to compute. To check the definition, first note that every
point (a, b) of A is an interior point; the fact that every point of A is interior
148 4 The Derivative
f (a)
doesnt deserve a detailed proof right now, only a quick comment. Second,
confirm the derivatives characterizing property (4.1) by calculating that
We saw immediately after the product property for Landau functions (Propo-
sition 4.2.6) that h2 k 2 is o(h, k). This is the desired result. Also, the calcula-
tion tacitly shows how the derivative was found for us to verify: the difference
f (a + h, b + k) f (a, b) is 2ah 2bk + h2 k 2 , which as a function of h and k
has a linear part 2ah 2bk and a quadratic part h2 k 2 that is much smaller
when h and k are small. The linear approximation of the difference is the
derivative.
Before continuing, we need to settle a grammatical issue. Definition 4.3.2
refers to any linear mapping that satisfies condition (4.1) as the derivative of f
at a. Fortunately, the derivative, if it exists, is unique, justifying the definite
article. The uniqueness is geometrically plausible: if two straight objects (e.g.,
lines or planes) approximate the graph of f well near (a, f (a)), then they
should also approximate each other well enough that straightness forces them
to coincide. The quantitative argument amounts to recalling that the only
linear o(h)-mapping is zero.
are both o(h). By the vector space properties of o(h), so is their difference
(Ta Ta )(h). Since the linear mappings from Rn to Rm form a vector space
as well, the difference Ta Ta is linear. But the only o(h) linear mapping is
the zero mapping, so Ta = Ta as desired.
Proof. Compute, using the differentiability of f at a and the fact that linear
mappings are O(h), then the containment o(h) O(h) and the closure of O(h)
under addition, and finally the containment O(h) o(1), that
We will study the derivative via two routes. On the one hand, the linear
mapping Dfa : Rn Rm is specified by mn scalar entries of its matrix f (a),
and so calculating the derivative is tantamount to determining these scalars
by using coordinates. On the other hand, developing conceptual theorems
without getting lost in coefficients and indices requires the intrinsic idea of
the derivative as a well-approximating linear mapping.
Exercises
4.3.1. Let T : Rn Rm be a linear mapping. Show that for any > 0, the
behavior of T on B(0n , ) determines the behavior of T everywhere.
4.3.4. Let f (x, y) = (x2 y 2 , 2xy). Show that Df(a,b) (h, k) = (2ah2bk, 2bh+
2ak) for all (a, b) R2 . (By the previous problem, you may work componen-
twise.)
4.3.5. Let g(x, y) = xey . Show that Dg(a,b) (h, k) = heb + kaeb for all (a, b)
R2 . (Note that because e0 = 1 and because the derivative of the exponential
function at 0 is 1, the one-variable characterizing property says that ek 1 =
k + o(k).)
150 4 The Derivative
Being the zero mapping, C(a + h) C(a) Z(h) is crushingly o(h), showing
that Z meets the condition to be DCa . And (2) is similar (exercise 4.4.1).
The proof is a matter of seeing that the vector space properties of o(h)
encode the Sum Rule and Constant Multiple Rule for derivatives.
Proof. Since f and g are differentiable at a, some ball about a lies in A and
some ball about a lies in B. The smaller of these two balls lies in A B. That
is, a is an interior point of the domain of f + g. With this topological issue
settled, proving the proposition reduces to direct calculation. For (1),
The fact that we can prove that the derivative of a composition is the
composition of the derivatives without an explicit formula for the derivative
is akin to the fact in the previous chapter that we could prove that the deter-
minant of the product is the product of the determinants without an explicit
formula for the determinant.
Proof. To showcase the true issues of the argument clearly, we reduce the
problem to a normalized situation. For simplicity, we first take a = 0n and
f (a) = 0m . So we are given that
Compute that
Since o(h) O(h) and O(h) is closed under addition, since o(h) absorbs O(h)
from either side, and since o(h) is closed under addition, the error (the last
two terms on the right side of the previous display) is
O(o(h)) + o O(h) + o(h) = O(o(h)) + o(O(h)) = o(h) + o(h) = o(h).
exactly as desired. The crux of the matter is that o(h) absorbs O(h) from
either side.
For the general case, now longer assuming that a = 0n and f (a) = 0m , we
are given that
Compute that
and from here the proof that the remainder term is o(h) is precisely as it is
in the normalized case.
Two quick applications of the Chain Rule arise naturally for scalar-valued
functions. Given two such functions, not only is their sum defined, but since R
is a field (unlike Rm for m > 1), so is their product and so is their quotient at
points where g is nonzero. With some help from the Chain Rule, the derivative
laws for product and quotient follow easily from elementary calculations.
4.4 Basic Results and the Chain Rule 153
p : R2 R, p(x, y) = xy,
Then
(1) The derivative of p at any point (a, b) R2 exists and is
By the Size Bounds |h| |(h, k)| and |k| |(h, k)|, so |hk| = |h| |k| |(h, k)|2 .
Since |(h, k)|2 is 2 (h, k) (where e is the example from Proposition 4.2.2), it
is o(h, k).
(2) is left as exercise 4.4.3.
Dp(f (a),g(a)) (Dfa (h), Dga (h)) = f (a)Dga (h) + g(a)Dfa (h)
= (f (a)Dga + g(a)Dfa )(h).
This proves (1) since h is arbitrary. (2) is similar (exercise 4.4.4) but with the
wrinkle that one needs to show that since g(a) 6= 0 and since Dga exists, it
follows that a is an interior point of the domain of f /g. Here it is relevant that
g must be continuous at a, and so by the Persistence of Inequality principle
(Proposition 2.3.10), g is nonzero on some -ball at a as desired.
Df(a,b) (h, k)
(Y + 1)(a, b)D(X 2 Y )(a,b) (X 2 Y )(a, b)D(Y + 1)(a,b)
= (h, k)
((Y + 1)(a, b))2
(b + 1)(D(X 2 )(a,b) DY(a,b) ) (a2 b)(DY(a,b) + D1(a,b) )
= (h, k)
(b + 1)2
(b + 1)(2X(a, b)DX(a,b) Y ) (a2 b)Y
= (h, k)
(b + 1)2
(b + 1)(2aX Y ) (a2 b)Y
= (h, k)
(b + 1)2
(b + 1)(2ah k) (a2 b)k
=
(b + 1)2
2a a2 + 1
= h k.
b+1 (b + 1)2
In practice this method is too unwieldy for any functions beyond the simplest,
and in any case it applies only to mappings with rational component functions.
4.4 Basic Results and the Chain Rule 155
But on the other hand, there is no reason to expect much in the way of
computational results from our methods so far, since we have been studying
the derivative based on its intrinsic characterization. In the next section we
will construct the derivative in coordinates, enabling us to compute easily by
drawing on the results of one-variable calculus.
For another application of the Chain Rule, let A and B be subsets of Rn ,
and suppose that f : A B is invertible with inverse g : B A. Suppose
further that f is differentiable at a A and that g is differentiable at f (a).
The composition g f is the identity mapping idA : A A which, being the
restriction of a linear mapping, has the linear mapping as its derivative at a.
Therefore,
id = D(idA )a = D(g f )a = Dgf (a) Dfa .
This argument partly shows that for invertible f as described, the linear map-
ping Dfa is also invertible. (A symmetric argument completes the proof by
showing that also id = Dfa Dgf (a) .) Since we have methods available to
check the invertibility of a linear map, we can apply this criterion once we
know how to compute derivatives.
Not too much should be made of this result, however; its hypotheses are
too strong. Even in the one-variable case the function f (x) = x3 from R
to R is invertible
and yet has the noninvertible derivative 0 at x = 0. (The
inverse, g(x) = 3 x is not differentiable at 0, so the conditions above are not
met.) Besides, we would prefer a converse statement, that if the derivative is
invertible then so is the mapping. The converse statement is not true, but we
will see in chapter 5 that it is locally true, i.e., it is true in the small.
Exercises
4.4.5. Let f (x, y, z) = xyz. Find Df(a,b,c) for arbitrary (a, b, c) R3 . (Hint:
f is the product XY Z where X is the linear function X(x, y, z) = x and
similarly for Y and Z.)
f : Rn Rn R
f (x + x , y) = f (x, y) + f (x , y),
f (x, y + y ) = f (x, y) + f (x, y ),
f (x, y) = f (x, y) = f (x, y).
f : Rn Rn R
(there are k copies of Rn ) is called multilinear if for each j {1, , k}, for
all x1 , , xj , xj , , xk Rn and all R,
(c) When k = n, what does this exercise say about the determinant?
f (x, y)
x y
(a, b)
(a, b, f (a, b)). The natural lines to consider are those whose (x, y)-shadows run
in the x and y directions. Call them x and y . (See figure 4.6.)
The line x is tangent to a cross section of the graph of f . To see this cross
section, freeze the variable y at the value b and look at the resulting function
of one variable, (x) = f (x, b). The slope of x in the vertical (x, b, z)-plane
is precisely (a). A small technicality here is that since (a, b) is an interior
point of A, also a is an interior point of the domain of .
Similarly, y has slope (b) where (y) = f (a, y). The linear function
approximating f (a + h, b + k) f (a, b) for small (h, k) is now specified as
T (h, k) = (a)h + (b)k. Thus Df(a,b) has matrix [ (a) (b)]. Since the
entries of this matrix are simply one variable derivatives, this is something
that we can compute.
Dj f (a) = (aj )
if (aj ) exists. Here the prime signifies ordinary one variable differentiation.
Equivalently,
f (a + tej ) f (a)
Dj f (a) = lim
t0 t
if the limit exists and it is not being taken at an endpoint of the domain of
the difference quotient.
158 4 The Derivative
Partial derivatives are easy to compute: fix all but one of the variables,
and then take the one-variable derivative with respect to the variable that
remains. For example if
f (x, y, z) = ey cos x + z
then
d b
D1 f (a, b, c) = (e cos x + c)x=a = eb sin a,
dx
D2 f (a, b, c) = eb cos a,
D3 f (a, b, c) = 1.
Proof. The idea is to read off the (i, j)th entry of f (a) by studying the ith
component function of f and letting h 0n along the jth coordinate direction
in the defining property (4.1) of the derivative. The ensuing calculation will
repeat the quick argument in section 4.3 that the characterization of the
derivative subsumes the construction in the one-variable case.
The derivative of the component function fi at a is described by the ith
row of f (a). Call the row entries di1 , di2 , , din . Since linear of is matrix
times, it follows that
That is,
fi (a + tej ) fi (a)
lim = dij .
t0 t
The previous display says precisely that Dj fi (a) exists and equals dij .
So the existence of the derivative Dfa makes necessary the existence of all
partial derivatives of all component functions of f at a. The natural question
is whether their existence is also sufficient for the existence of Dfa . It is
not. The proof of Theorem 4.5.2 was akin to the Straight Line Test from
section 2.3: the general condition h 0n was specialized to h = tej , i.e.,
to letting h approach 0n only along the axes. The specialization let us show
that the derivative matrix entries are the partial derivatives of the component
functions of f . But the price for this specific information was loss of generality,
enough loss that the derived necessary conditions are not sufficient.
For example, the function
(
2xy
2 2 2 if (x, y) 6= (0, 0),
f : R R, f (x, y) = x +y
0 if (x, y) = (0, 0)
has for its first partial derivative at the origin
f (t, 0) f (0, 0) 00
D1 f (0, 0) = lim = lim = 0,
t0 t t0 t
and similarly D2 f (0, 0) = 0; but as discussed in chapter 2, f is not continuous
at the origin, much less differentiable there. However, this example is con-
trived, the sort of function that one sees only in a mathematics class, and in
fact with slightly stronger hypotheses a statement in the spirit of the converse
to Theorem 4.5.2 does hold.
Theorem 4.5.3 (The Derivative in Coordinates: Sufficiency). Let f :
A Rm (where A Rn ) be a mapping, and let a be an interior point
of A. Suppose that for each i {1, , m} and j {1, , n}, the partial
derivative Dj fi exists not only at a but at all points in some -ball about a,
and the partial derivative Dj fi is continuous at a. Then f is differentiable
at a.
Note that if f meets the conditions of Theorem 4.5.3 (all partial derivatives
of all component functions of f exist at and about a, and they are continuous
at a) then the theorems conclusion (f is differentiable at a) is the condition
of Theorem 4.5.2, so that the latter theorem tells us the derivative of f (the
entries of its matrix are the partial derivatives). But the example given just be-
fore Theorem 4.5.3 shows that the converse fails: even if all partial derivatives
of all component functions of f exist at a then f need not be differentiable
at a.
The difference between the necessary conditions in Theorem 4.5.2 and the
sufficient conditions in Theorem 4.5.3 has a geometric interpretation when
n = 2 and m = 1. The necessary conditions in Theorem 4.5.2 are:
160 4 The Derivative
Also, o(1)hi = o(h) for i = 1, 2 and o(h3 ) = o(h), and so altogether we have
Note how all this compares to the discussion of the determinant in the
previous chapter. There we wanted the determinant to satisfy characterizing
properties, we found the only function that could possibly satisfy them, and
then we verified that it did. Here we wanted the derivative to satisfy a char-
acterizing property, and we found the only possibility for the derivativethe
linear mapping whose matrix consists of the partial derivatives, which must
exist if the derivative does. But analysis is more subtle than algebra: this linear
mapping need not satisfy the characterizing property of the derivative unless
we add further assumptions. The derivative-existence theorem, Theorem 4.5.3
or the slightly stronger Theorem 4.5.4, is the most substantial result so far
162 4 The Derivative
f (t, 0) f (0, 0) 00
D1 f (0, 0) = lim = lim = 0,
t0 t t0 t
and similarly D2 f (0, 0) = 0. So by Theorem 4.5.2, the only possibility for the
derivative of f at (0, 0) is the zero mapping. Now the question is:
|h|2 |k|
|f (h, k) f (0, 0) 0| = |f (h, k)| = .
|(h, k)|2
Let (h, k) approach 02 along the line h = k. Since |h| = |(h, h)|/ 2,
4.5 Calculating the Derivative 163
Figure 4.7. The crimped sheet is differentiable everywhere except at the origin
Similarly, the function g(x, y) = xey from exercise 4.3.5 has domain R2 ,
all of whose points are interior, and its partial derivatives D1 g(x, y) = ey and
D2 g(x, y) = xey are continuous everywhere. Thus it is differentiable every-
where. Its matrix of partial derivatives at any point (a, b) is
Proof. The composition is differentiable by the intrinsic Chain Rule. The Ja-
cobian matrix of g at b is
f w
f1 , fx , , wx , .
x x
If x, y, z are in turn functions of s and t then a classical formulation of the
Chain Rule would be
w w x w y w z
= + + . (4.2)
t x t y t z t
The formula is easily visualized as chasing back along all dependency chains
from t to w in a diagram where an arrow means contributes to:
7 E x
s
8
&
y /w
qqqq @
q
qqqq
qqqq
t
&
z
f
(y, x, z).
x
Blurring the distinction between functions and the variables denoting their
outputs is even more problematic. If one has, say, z = f (x, t, u), x = g(t, u),
t
'
x 7/ z
>
u
Exercises
4.5.1. Explain why in the discussion beginning this section the tangent
plane P consists of all points (a, b, f (a, b)) + (h, k, T (h, k)) where T (h, k) =
(a)h + (b)k.
4.5.2. This exercise shows that all partial derivatives of a function can exist at
and about a point without being continuous at the point. Define f : R2 R
by (
2xy
2 2 if (x, y) 6= (0, 0),
f (x, y) = x +y
0 if (x, y) = (0, 0).
(a) Show that D1 f (0, 0) = D2 f (0, 0) = 0.
(b) Show that D1 f (a, b) and D2 f (a, b) exist and are continuous at all other
(a, b) R2 .
(c) Show that D1 f and D2 f are discontinuous at (0, 0).
4.5.3. Define f : R R by
(
x2 sin x1 if x 6= 0,
f (x) =
0 if x = 0.
Show that f (x) exists for all x but that f is discontinuous at 0. Explain how
this disproves the converse of Theorem 4.5.3.
4.5.4. Discuss the derivatives of the following mappings at the following
points.
2
y
(a) f (x, y) = xy+1 on {(x, y) R2 : y 6= 1} at generic (a, b) with b 6= 1.
(After you are done, compare the effort of doing the problem now to the effort
of doing it as we did at the end of section 4.4.)
xy 2
(b) f (x, y) = y1 on {(x, y) R2 : y 6= 1} at generic (a, b) with b 6= 1.
( xy
2 2 if (x, y) 6= (0, 0)
(c) f (x, y) = x +y at generic (a, b) 6= (0, 0) and at
0 if (x, y) = (0, 0)
(0, 0).
For the rest of these exercises, assume as much differentiability as necessary.
4.5.5. For what differentiable mappings f : A Rm is f (a) a diagonal
matrix for all a A? (A diagonal matrix is a matrix whose (i, j)th entries for
all i 6= j are 0.)
168 4 The Derivative
4.5.6. Show that if z = f (xy) then x, y, and z satisfy the differential equation
x zx y zy = 0.
4.5.7. Let w = F (xz, yz). Show that x wx + y wy = z wz .
4.5.8. If z = f (ax + by), show that bzx = azy .
4.5.9. The function f : R2 R is called homogeneous of degree k if
f (tx, ty) = tk f (x, y) for all scalars t and vectors (x, y). Letting f1 and f2
denote the first and second partial derivatives of f , show that such f satisfies
the differential equation
exists and is differentiable with respect to x, its partial derivative with respect
to x being obtained by passing the x-derivative through the v-integral,
Z y
F (x, y)
= f (x, v) dv
x x v=0
Ry Ry
v=0
f (x + h, v) dv v=0 f (x, v) dv
= lim
h0 h
Z y
f (x + h, v) f (x, v)
= lim dv
h0 v=0 h
Z y
! f (x + h, v) f (x, v)
= lim dv
h0 h
Zv=0
y
f
= (x, v) dv.
v=0 x
Thus x affects G in two ways: as a parameter for the integrand, and as the
upper limit of integration. What is dG(x)/dx?
4.6 Higher Order Derivatives 169
Suspiciously many of these match. The result of two or three partial differen-
tiations seems to depend only on how many were taken with respect to x and
how many with respect to y, not on the order in which they were taken.
To analyze the situation, it suffices to consider only two differentiations.
Streamline the notation by writing D2 D1 f as D12 f . (The subscripts may look
reversed, but reading D12 from left to right as D-one-two suggests the appro-
priate order of differentiating.) The definitions for D11 f , D21 f , and D22 f are
similar. These four functions are called the second order partial derivatives
of f , and in particular D12 f and D21 f are the second order mixed partial
derivatives. More generally, the kth order partial derivatives of a function f
are those that come from k partial differentiations. A C k -function is a func-
tion for which all the kth order partial derivatives exist and are continuous.
The theorem is that with enough continuity the order of differentiation doesnt
matter. That is, the mixed partial derivatives agree.
170 4 The Derivative
(Thus the integral has reproduced the quantity that arose in the discussion
leading into this proof.) Let mh,k be the minimum value of D12 f on the box B,
and let Mh,k be the maximum value. These exist by Theorem 2.4.15 since B
is nonempty compact and D12 f : B R is continuous. Thus
or
(h, k)
mh,k Mh,k .
hk
As (h, k) (0+ , 0+ ), the continuity of D12 f at (a, b) forces mh,k and Mh,k
to D12 f (a, b), and hence
(h, k)
D12 f (a, b) as (h, k) (0+ , 0+ ).
hk
But also, reversing the order of the integrations and of the partial derivatives
gives the symmetric calculations
Z b+k Z a+h
dx dy = hk,
b a
and Z Z
b+k a+h
D21 f (x, y) dx dy = (h, k),
b a
and so the same argument shows that
(h, k)
D21 f (a, b) as (h, k) (0+ , 0+ ).
hk
Since both D12 f (a, b) and D21 f (a, b) are the limit of (h, k)/(hk), they are
equal.
Extending Theorem 4.6.1 to more variables and to higher derivatives is
straightforward provided that one supplies enough continuity. The hypotheses
of the theorem can be weakened a bit, in which case a subtler proof is required,
but such technicalities are more distracting than useful.
Higher order derivatives are written in many ways. If a function is de-
scribed by the equation w = f (x, y, z) then D233 f is also denoted
f 3f
f233 , fyzz , , ,
z z y z 2 y
w 3w
wyzz , , .
z z y z 2 y
172 4 The Derivative
2u 2u
+ 2 = 0.
x2 y
x = r cos , y = r sin .
r /x
@
'
qqq8 u
qq
qqqqq
qq
/yq
u r = u x x r + u y yr ,
urr = (ux xr + uy yr )r
= uxr xr + ux xrr + uyr yr + uy yrr .
Since ux and uy depend on r and via x and y just as u does, each of them can
take the place of u in the diagram above, and the Chain Rule gives expansions
of uxr and uyr as it did for ur ,
Note the use of equality of mixed partial derivatives. The same calculation
with instead of r gives
xr = x/r, yr = y/r, x = y, y = x,
xrr = 0, yrr = 0, x = x, y = y.
It follows that
and so
Recall that the cartesian form of Laplaces equation is uxx + uyy = 0. Now
the polar form follows:
r2 urr + rur + u = 0.
That is,
2u u 2 u
r22
+r + 2 = 0.
r r
The point of this involved calculation is that having done it once, and only
once, we now can check directly whether any function g of the polar variables
r and satisfies Laplaces equation. We no longer need to transform each
u = g(r, ) into cartesian terms u = f (x, y) before checking.
An n-by-n matrix A is orthogonal if AT A = I. (This concept was in-
troduced in exercise 3.5.5.) Let A be orthogonal and consider its associated
linear map,
TA : Rn Rn , TA (x) = Ax.
We show that prepending TA to a twice-differentiable function on Rn is inde-
pendent from applying the Laplacian operator to the function. That is, letting
denote the Laplacian operator on Rn ,
f : Rn R,
174 4 The Derivative
we show that
(f TA ) = f TA .
To see this, start by noting that for any x Rn , the chain rule and then the
fact that the derivative of any linear map is itself give two equalities of linear
mappings,
In terms of matrices, the equality of the first and last quantities in the previous
display is an equality of row vector valued functions of x,
D1 (f TA ) Dn (f TA ) (x) = ( D1 f Dn f TA )(x) A.
The derivative matrix of the left side has as its rows the row vector derivative
matrices of its entries, while the derivative matrix of the right side is computed
by the chain rule and the fact that the derivative of any linear map is itself,
Dij (f TA ) nn = A1 Dij f TA nn A.
The trace of a square matrix was introduced in exercise 3.2.5 as the sum of its
diagonal entries, and the fact that tr(A1 BA) = tr(B) if A is invertible was
noted just after the proof of Theorem 3.5.2. Equate the traces of the matrices
in the previous display to get the desired result,
(f TA ) = f TA .
(To complement the proof just given in functional notation, here is a more
elementary second proof. Let the matrix A have entries aij . For any x Rn ,
compute that for i = 1, , n,
n
X n
X
Di (f TA )(x) = Dj f (Ax)Di (Ax)j = aji Dj f (Ax),
j=1 j=1
and thus
n
X n
X n
X
Dii (f TA )(x) = aji Djk f (Ax)Di (Ax)k = aji aki Djk f (Ax),
j=1 k=1 j,k=1
4.6 Higher Order Derivatives 175
as desired.)
Exercises
4.6.1. This exercise shows that continuity is necessary for the equality of
mixed partial derivatives. Let
(
xy(y 2 x2 )
x2 +y 2 if (x, y) 6= (0, 0)
f (x, y) =
0 if (x, y) = (0, 0).
Away from (0, 0), f is rational and so it is continuous and and all its partial
derivatives of all orders exist and are continuous. Show: (a) f is continous
at (0, 0), (b) D1 f , and D2 f exist and are continuous at (0, 0), (c) D12 f (0, 0) =
1 6= 1 = D21 f (0, 0).
p = x + ct, q = x ct.
wpq = 0.
(b) Using part (a), show that in particular if w = F (x + ct) + G(x ct)
(where F and G are arbitrary C 2 -functions of one variable) then w satisfies
the wave equation.
(c) Now let 0 < v < c (both v and c are constant), and define new space
and time variables in terms of the original ones by a Lorentz transformation,
Show that
so that consequently (y, u) has the same spacetime norm as (x, t),
y 2 c 2 u 2 = x 2 c 2 t2 .
4.6.6. Let u be a function of x and y, and suppose that x and y in turn depend
linearly on s and t,
x ab s
= , ad bc = 1.
y cd t
What is the relation between uss utt u2st and uxx uyy u2xy ?
4.6 Higher Order Derivatives 177
4.6.7. (a) Let H denote the set of points (x, y) R2 such that y > 0. Associate
to each point (x, y) H another point,
x y
(z, w) = , .
x2 + y 2 x2 + y 2
You may take for granted or verify that
zx = z 2 w 2 , zy = 2zw, zxx = 2z(z 2 3w2 ), zyy = 2z(z 2 3w2 )
and
wx = 2zw, wy = z 2 w 2 , wxx = 2w(3z 2 w2 ), wyy = 2w(3z 2 w2 ).
1 2
(Xf )(x) = 2 |x| f (x),
(Y f )(x) = 12 f (x),
X n
n
(Hf )(x) = 2 f (x) + xi Di f (x).
i=1
XY Y X = H, HX XH = 2X, HY Y H = 2Y.
The three matrices generate a small instance of a Lie algebra, and this exercise
shows that the space of smooth functions on Rn can be made a representation
of the Lie algebra. Further show, partly by citing the work at the end of
the section, that the action of any orthogonal matrix A on smooth functions
commutes with the representation,
X(f TA ) = (Xf ) TA ,
Y (f TA ) = (Y f ) TA ,
H(f TA ) = (Hf ) TA .
In one variable calculus the derivative is used to find maximum and minimum
values (extrema) of differentiable functions. Recall the following useful facts.
(Extreme Value Theorem.) If f : [, ] R is continuous then it assumes
a maximum and a minimum on the interval [, ].
(Critical Point Theorem.) Suppose that f : [, ] R is differentiable
on (, ) and that f assumes a maximum or minimum at an interior point a
of [, ]. Then f (a) = 0.
(Second Derivative Test.) Suppose that f : [, ] R is C 2 on (, ) and
that f (a) = 0 at an interior point a of [, ]. If f (a) > 0 then f (a) is a
local minimum of f , and if f (a) < 0 then f (a) is a local maximum.
Geometrically the idea is that just as the affine function
specifies the tangent line to the graph of f at (a, f (a)), the quadratic function
1
P (a + h) = f (a) + f (a)h + f (a)h2
2
determines the best fitting parabola. When f (a) = 0 the tangent line is
horizontal and the sign of f (a) specifies whether the parabola opens upward
or downward. When f (a) = 0 and f (a) = 0, the parabola degenerates to
4.7 Extreme Values 179
the horizontal tangent line, and the second derivative provides no information.
(See figure 4.8.)
This section generalizes these facts to functions f of n variables. The Ex-
treme Value Theorem has already generalized as Theorem 2.4.15: a continuous
function f on a compact subset of Rn takes maximum and minimum values.
The Critical Point Theorem also generalizes easily to say that each extreme
value of the function f : A R that occurs at a point where f is differen-
tiable occurs at critical point of f , meaning a point a where Dfa is the zero
function.
Proof. For each j {1, , n}, the value f (a) is an extreme value for the
one-variable function from definition 4.5.1 of the partial derivative Dj f (a).
By the one-variable Critical Point Theorem, (aj ) = 0. That is, Dj f (a) = 0.
matrix defined only for scalar valued functions and its entries are second order
partial derivatives, while for scalar valued functions the Jacobian matrix is the
row vector of first partial derivatives.
Irksomely, f is not (f ) . The problem is that the seemingly-reasonable
map f : A Rn taking each point a A to f (a) does not fit correctly
into our conventions: each f (a) is specifically a row vector, but we view the
elements of Rn either as ordered lists with no shape at all or as column vectors.
T
Thus (f ) does not even exist. The correction is that the map f : A Rn
T
taking each point a A to f (a) does fit our scheme, and indeed
T
(f ) (a) = f (a) for interior points a of A.
The pettiness of this issue makes clear that eventually we should loosen our
conventions and freely transpose vectors and matrices as called for by context,
as indeed many software packages do. But since the conventions can be helpful
for a student who is seeing the material for the first time, we retain them for
now and grudgingly accept the transpose here.
As an example, if
f (x, y) = sin2 x + x2 y + y 2 ,
and
2 cos 2a + 2b 2a
f (a, b) = .
2a 2
Any n-by-n matrix M determines a quadratic function
QM : Rn R, QM (h) = hT M h.
and so the best quadratic approximation of f near, for instance, the point
(/2, 1) is
1
f (/2 + h, 1 + k) f (/2, 1) + Df(/2,1) (h, k) + Qf(/2,1) (h, k)
2
= 2 /4 + 2 + h + ( 2 /4 + 2)k + hk + k 2 .
Figure 4.9. Two bowls, two saddles, four halfpipes, and a plane
182 4 The Derivative
Thus the graph of f looks like a bowl near (0, 0) and f (0, 0) should be a local
minimum.
This discussion is not yet rigorous. Justifying the ideas and proving the
appropriate theorems will occupy the rest of this section. The first task is to
study quadratic approximation of C 2 -functions.
: I A, (t) = a + th.
= f : I R.
That is, (t) = f (a + th) is the restriction of f to the line segment from a
to a + h. By the Chain Rule and the fact that = h,
x2 + 1 ( 2 )y 2 ,
x2 + 2xy + y 2 = = x + 1 y.
x
That is, a change of variables eliminates the cross term, and the variant
quadratic function makes the results of the definiteness test clear.
The positive definite, negative definite, or indefinite character of a matrix
is preserved if the matrix entries vary by small enough amounts. Again we
restrict our discussion to the 2-by-2 case. Here the result is plausible geomet-
rically, since it says that if the matrix M (a, b) defines a function whose graph
is (for example) a bowl, then matrices close to M (a, b) should define functions
with similar graphs, which thus should still be bowl-shaped. The same persis-
tence holds for a saddle, but a halfpipe can deform immediately into either a
bowl or a saddle, and so can a plane.
Exercises
4.7.4. Find the extreme values taken by f (x, y) = xy(4x2 + y 2 16) on the
quarter ellipse
4.7.5. Find the local extrema of the function f (x, y) = x2 +xy 4x+ 23 y 2 7y
on R2 .
4.7.7. Find the critical points. Are they maxima, minima, or saddle points?
(The max/min test will not always help.)
pM () = 2 ( + ) + ( 2 ).
(b) Show that Theorem 4.7.10 is equivalent to Proposition 4.7.6 when
n = 2.
(c) Classify the 3-by-3 matrices
1 1 0 010
1 2 0 1 0 1 .
0 01 010
A generalization of Proposition 4.7.7 also holds, since the roots of a poly-
nomial vary continuously with the polynomials coefficients. The generalized
proposition leads to
Proposition 4.7.11 (General Max/min Test). Let f : A R (where
A Rn ) be C 2 on its interior points. Let a be an interior point of A, and
suppose that f (a) = 0n . Let the second derivative matrix f (a) have charac-
teristic polynomial p().
188 4 The Derivative
(1) If all roots of p() are positive then f (a) is a local minimum.
(2) If all roots of p() are negative then f (a) is a local maximum.
(3) If p() has positive and negative roots then f (a) is a saddle point.
4.7.11. This exercise eliminate the cross terms from a quadratic function of n
variables, generalizing the calculation for n = 2 in the section. Throughout, we
abbreviate positive definite to positive. Let M be a positive n-by-n symmetric
matrix where n > 1. This exercise shows how to diagonalize M as a quadratic
function. (This is different from diagonalizing M as a transformation, as is
done in every linear algebra course.) Decompose M as
T
ac
M= ,
cN
f (a + tej ) f (a)
Dj f (a) = lim ,
t0 t
measures the rate of change of f at a as its input varies in the jth direction.
Visually, Dj f (a) gives the slope of the jth cross section through a of the graph
of f .
Analogous formulas measure the rate of change of f at a as its input varies
in a direction that doesnt necessarily parallel a coordinate axis. A direction
in Rn is specified by a unit vector d, i.e., a vector d such that |d| = 1. As the
input to f moves distance t in the d direction, f changes by f (a + td) f (a).
Thus the following definition is natural.
Definition 4.8.1 (Directional Derivative). Let f : A R (where A
Rn ) be a function, let a be an interior point of A, and let d Rn be a unit
vector. The directional derivative of f at a in the d direction is
f (a + td) f (a)
Dd f (a) = lim ,
t0 t
if this limit exists.
The directional derivatives of f in the standard basis vector directions are
simply the partial derivatives.
When n = 2 and f is differentiable at (a, b) R2 , its graph has a well-
fitting tangent plane through (a, b, f (a, b)). The plane is determined by the
two slopes D1 f (a, b) and D2 f (a, b), and it geometrically determines the rate
of increase of f in all other directions. (See figure 4.11.) The geometry suggests
that if f : A R (where A Rn ) is differentiable at a then all directional
derivatives are expressible in terms of the partial derivatives. This is true and
easy to show. A special case of the differentiability property (4.1) is
or, since the constant t passes through the linear map Dfa ,
f (a + td) f (a)
lim = Dfa (d),
t0 t
or, since the linear map Dfa has matrix [D1 f (a), , Dn f (a)],
n
X
Dd f (a) = Dj f (a)dj ,
j=1
as desired.
The derivative matrix f (a) of a scalar-valued function f at a is often
called the gradient of f at a and written f (a). That is,
= hf (a), di
= |f (a)| cos f (a),d .
Therefore:
The rate of increase of f at a in the d direction varies with d, from
|f (a)| when d points in the direction opposite to f (a), to |f (a)|
when d points in the same direction as f (a).
In particular, the vector f (a) points in the direction of greatest increase
of f at a, and its modulus |f (a)| is precisely this greatest rate.
Also, the directions orthogonal to f (a) are the directions in which f
neither increases nor decreases at a.
For an example of using the theorem, if you are skiing on the quadratic
mountain f (x, y) = 9 x2 2y 2 at the point (a, f (a)) = (1, 1, 6), then your
gradient meter shows
f (1, 1) = (D1 f (1, 1), D2 f (1, 1)) = (2x, 4y)(x,y)=(1,1) = (2, 4).
Therefore the direction of steepest descent down the hillside is the (2, 4)-
direction (this could be divided by its modulus 20 to make it a unit vector),
and the slope of steepest descent is the absolute value |f (1, 1)| = 20.
On the other hand, cross-country skiing in the (2, 1)-direction, which is
orthogonal to f (1, 1), neither gains nor loses elevation immediately. (See
figure 4.12.) The cross-country skiing trail that neither climbs nor descends
has a mathematical name.
Figure 4.12. Gradient and its orthogonal vector for the parabolic mountain
The curves on a topographical map are level sets of the altitude function.
The isotherms on a weather map are level sets of the temperature function,
and the isobars on a weather map are level sets of the pressure function.
Indifference curves in economics are level sets of the utility function, and iso-
quants are level sets of the production function. Surfaces of constant potential
in physics are level sets of the potential function.
For example, on the mountain
f : R2 R, f (x, y) = 9 x2 2y 2 ,
192 4 The Derivative
L = {(x, y) R2 : x2 + 2y 2 = 4}.
And similarly the level set is an ellipse for any real number b up to 9. As
just mentioned, plotting the level sets of a function f of two variables gives a
topographical map description of f . The geometry is different for a function
of one variable: each level set is a subset of the line. For example, consider a
restriction of the sine function,
L = {/6, 5/6}.
For a function of three variables, each level set is a subset of space. For ex-
ample, if a, b, and c are positive numbers, and the function is
then its level sets are ellipsoids. Specifically, for every positive
r, the level set
of points taken
by f to r is the ellipsoid of x-radius a r, y-radius b r, and
z-radius c r,
( 2 2 2 )
3 x y z
L = (x, y, z) R : + + =1 .
a r b r c r
The third bullet in Theorem 4.8.2 says that the gradient is normal to the
level set. This fact may seem surprising, since the gradient is a version of the
derivative, and we think of the derivative as describing a tangent object to a
graph. The reason that the derivative has become a normal object is that
the graph of f over that point, one should move to the right, and the slope
to be encountered on the graph will be the length of the gradient on the axis.
Similarly, the other gradient points leftward because to climb the graph over
the other point, one should move to the left. Here each gradient is trivially
orthogonal to the level set, because the level set consists of isolated points.
For the three-variable function from the previous paragraph, we still can see
the level setsthey are concentric ellipsoidsbut not the graph, which would
require four dimensions. Instead, we can conceive of the function as measuring
temperature in space, and of the gradient as pointing in the direction to move
for greatest rate of temperature-increase, with the length of the gradient being
that rate. Figure 4.14 shows a level set for the temperature function, and
several gradients, visibly orthogonal to the level set.
Figure 4.13. Level set and gradients for the sine function
Figure 4.14. Level set and gradients for the temperature function
194 4 The Derivative
Although Theorem 4.8.2 has already stated that the gradient is orthogonal
to the level set, we now amplify the argument. Let f : A R (where
A Rn ) be given, and assume that it is differentiable. Let a be a point of A,
and let b = f (a). Consider the level set of f containing a,
L = {x A : f (x) = b} Rn ,
and consider any smooth curve from some interval into the level set, passing
through a,
: (, ) L, (0) = a.
The composite function
f : (, ) R
is the constant function b, so that its derivative at 0 is 0. By the Chain Rule
this relation is
f (a) (0) = 0.
Every tangent vector to L at a takes the form (0) for some of the sort that
we are considering. Therefore, f (a) is orthogonal to every tangent vector
to L at a, i.e., f (a) is normal to L at a.
Before continuing to work with the gradient, we pause to remark that level
sets and graphs are related. For one thing:
The graph of any function is also the level set of a different function.
To see this, let n > 1, let A0 be a subset of Rn1 , and let f : A0 R be any
function. Given this information, let A = A0 R and define a second function
g : A R,
Then the graph of f is a level of g, specifically the set of inputs that g takes
to 0,
H = {(x, y, z) R3 : x2 + y 2 z 2 = 1}.
(This surface is a hyperboloid of one sheet.) The point (2 2, 3, 4) belongs
to H. Note that H as a level set of the function f (x, y, z) = x2 + y 2 z 2 , and
compute the gradient
f (2 2, 3, 4) = (4 2, 6, 8).
Since this is the normal vector to H at (2 2, 3, 4), the tangent plane equation
at the
end of section 3.10 shows that the equation of the tangent plane to H
at (2 2, 3, 4) is
4 2(x 2 2) + 6(y 3) 8(z 4) = 0.
: I Rn
Whether (and how) one can solve this for depends on the data f and a.
In the case of the mountain function f (x, y) = 9 x2 2y 2 , with gradient
f (x, y) = (2x, 4y), the path has two components 1 and 2 , and the
differential equation and initial conditions (4.3) become
Let x = 1 (t) and y = 2 (t). Then the previous display shows that
a2 y = bx2 ,
and so the integral curve lies on a parabola. (The parabola is degenerate if the
starting point (a, b) lies on either axis.) Every parabola that forms an integral
curve for the mountain function meets orthogonally with every ellipse that
forms a level set. (See figure 4.15.)
Figure 4.15. Level sets and integral curves for the parabolic mountain
For another example, let f (x, y) = x2 y 2 . The level sets for this function
are hyperbolas having the 45 degree lines x = y and x = y as asymptotes.
The gradient of the function is f (x, y) = (2x, 2y), so to find the integral
curve starting at (a, b), we need to solve the equations
Thus (1 (t), 2 (t)) = (ae2t , be2t ), so that the integral curve lies on the hy-
perbola xy = ab having the axes x = 0 and y = 0 as asymptotes. The integral
curve hyperbola is orthogonal to the level set hyperbolas. (See figure 4.16.)
For another example, let f (x, y) = ex y. The level sets for this function
are the familiar exponential curve y = ex and all of its vertical translates. The
gradient of the function is f (x, y) = (ex , 1), so to find the integral curve
starting at (0, 1), we need to solve the equations
Z t
e1 ( ) 1 ( ) d = t.
=0
Integration gives
e1 (t) + e1 (0) = t,
and so, recalling that 1 (0) = 0,
is the portion of the curve y = ex where x 0. (See figure 4.17.) The entire
integral curve is traversed in one unit of time.
Figure 4.17. Negative exponential integral curve for exponential level sets
For another example, let f (x, y) = x2 + xy + y 2 . The level sets for this
function are tilted ellipses. The gradient of f is f (x, y) = (2x + y, x + 2y),
so to find the integral curve starting at (a, b), we need to solve the equations
198 4 The Derivative
Here the two differential equations are coupled, meaning that the derivative
of 1 depends on both 1 and 2 , and similarly for the derivative of 2 . How-
ever, the system regroups conveniently,
Thus
(1 + 2 )(t) = (a + b)e3t
(1 2 )(t) = (a b)et ,
from which
The motion takes place along the cubic curve having equation
x+y (x y)3
= .
a+b (a b)3
(See figure 4.18.) The integral curves in the first two examples were quadratic
only by happenstance, in consequence of the functions 9x2 2y 2 and x2 y 2
having such simple coefficients. Changing the mountain function to 9x2 3y 2
would produce cubic integral curves, and changing x2 y 2 to x2 5y 2 in the
second example would produce integral curves x5 y = a5 b.
For another example, suppose the temperature in space is given by
T (x, y, z) = 1/(x2 + y 2 + z 2 ). (This function blows up at the origin, so we
dont work there.) The level sets of this function are spheres and the integral
curves are rays going toward the origin. The level set passing through the
point (a, b, c) in space is again orthogonal to the integral curve through the
same point. In general, solving the vector differential equation (4.3) to find
the integral curves of a function f can be difficult.
Exercises
4.8.2. Let g(x, y, z) = xyz, let d be the unit vector in the direction from
(1, 2, 3) to (3, 1, 5). Find Dd g(1, 2, 3).
4.8.3. Let f be differentiable at a point a, and let d = e1 , a unit vector. Are
the directional derivative Dd f (a) and the partial derivative D1 f (a) equal?
Explain.
4.8.4. Formulate and prove a version of Rolles theorem for functions of n
variables.
4.8.5. Show that if f : Rn R and g : Rn R are differentiable then so
is their product f g : Rn R and (f g) = f g + gf .
4.8.6. Find the tangent plane to the surface {(x, y, z) : x2 +2y 2 +3zx10 = 0}
in R3 at the point (1, 2, 13 ).
4.8.7. (a) Consider the surface S = {(x, y, z) R3 : xy = z}. Let p = (a, b, c)
be a generic point of S. Find the tangent plane Tp to S at p.
(b) Show that the intersection S Tp consists of two lines.
4.8.8. (a) Let A and be nonzero constants. Solve the one-variable differential
equation
z (t) = Aez(t) , z(0) = 0.
(b) The pheromone concentration in the plane is given by f (x, y) = e2x +
y
4e . What path does a bug take, starting from the origin?
4.8.9. (a) Sketch some level sets and integral curves for the function f (x, y) =
x2 + y. Find the integral curves analytically if you can.
(b) Sketch some level sets and integral curves for the function f (x, y) = xy.
Find the integral curves analytically if you can.
4.8.10. Recall the function f : R2 R whose graph is the crimped sheet,
( 2
x y
2 2 if (x, y) 6= (0, 0),
f (x, y) = x +y
0 if (x, y) = (0, 0).
200 4 The Derivative
(a) Show that f is discontinuous at (0, 0). It follows that f is not differen-
tiable at (0, 0).
(b) Let d be any unit vector in R2 . Show that Dd f (0, 0) = 0. Show that
consequently the formula Dd f (0, 0) = hf (0, 0), di holds for every unit vec-
tor d. Thus, the existence of every directional derivative at a point, and the
fact that each directional derivative satisfies the formula are still not sufficient
for differentiability at the point.
4.8.12. Fix two real numbers a and b satisfying 0 < a < b. Define a mapping
T = (T1 , T2 , T3 ) : R2 R3 by
T (s, t) = ((b + a cos s) cos t, (b + a cos s) sin t, a sin s).
(a) Describe the shape of the set in R3 mapped to by T . (The answer will
explain the name T .)
(b) Find the points (s, t) R2 such that T1 (s, t) = 02 . The points map
to only four image points p under T . Show that one such p is a maximum
of T1 , another is a minimum, and the remaining two are saddle points.
(c) Find the points(s, t) R2 such that T3 (s, t) = 02 . To what points q
do these (s, t) map under T ? Which such q are maxima of T3 ? Minima? Saddle
points?
4.9 Summary
The multivariable derivative is defined as a linear mapping by an intrinsic
characterization. The characterization shows that the derivative is unique and
that it satisfies the Chain Rule. Looking at cross sections shows that if the
derivative exists then the entries of its matrix are the partial derivatives of the
component functions. Conversely, if the partial derivatives exist and behave
well then the derivative exists. The derivative in coordinates gives the Chain
Rule in coordinates. The multivariable derivative figures in solving various
kinds of problems:
4.9 Summary 201
and the right side is the product of two positive numbers, hence positive. But
the Mean Value Theorem is an abstract existence theorem (for some c)
whose proof relies on foundational properties of the real number system. Thus,
moving from the linearized problem to the actual problem is far more sophis-
ticated technically than linearizing the problem or solving the linearized prob-
lem. In sum, this one-variable example is meant to amplify the point of the
preceding paragraph, that (now returning to n dimensions) if f : A Rn
has an invertible derivative at a then the Inverse Function Theoremthat f
itself is invertible in the small near ais surely inevitable, but its proof will
be technical and require strengthening our hypotheses.
Already in the one-variable case, the Inverse Function Theorem relies on
foundational theorems about the real number system, on a property of con-
tinuous functions, and on a foundational theorem of differential calculus. We
quickly review the ideas. Let f : A R (where A R) be a function, let
a be an interior point of A, and let f be continuously differentiable on some
interval about a, meaning that f exists and is continuous on the interval.
Suppose that f (a) > 0. Since f is continuous about a, the Persistence of In-
equality principle (Proposition 2.3.10) says that f is positive on some closed
interval [a , a + ] about a. By an application of the Mean Value Theorem
as in the previous paragraph, f is therefore strictly increasing on the interval,
and so its restriction to the interval does not take any value twice. By the
Intermediate Value Theorem, f takes every value from f (a ) to f (a + )
on the interval. Therefore f takes every such value exactly once, making it
locally invertible. A slightly subtle point is that the inverse function f 1 is
continuous at f (a), but then a purely formal calculation with difference quo-
tients will verify that the derivative of f 1 exists at f (a) and is 1/f (a). Note
how heavily this proof relies on the fact that R is an ordered field. A proof of
the multivariable Inverse Function Theorem must use other methods.
Although the proof to be given in this chapter is technical, its core idea
is simple common sense. Let a mapping f be given that takes x-values to y-
values and in particular takes a to b. Then the local inverse function must take
y-values near b to x-values near a, taking each such y back to the unique x
that f took to y in the first place. We need to determine conditions on f
that make us believe that a local inverse exists. As explained above, the basic
condition is that the derivative of f at agiving a good approximation of f
near a, but easier to understand than f itselfshould be invertible, and the
derivative should be continuous as well. With these conditions in hand, an
argument similar to the one-variable case (though more painstaking) shows
that f is locally injective:
Given y near b, there is at most one x near a that f takes to y.
So the remaining problem is to show that f is locally surjective:
Given y near b, show that there is some x near a that f takes to y.
5.1 Preliminaries 205
5.1 Preliminaries
B(a, ) = {x Rn : |x a| < }.
Recall also that a subset of Rn is called closed if it contains all of its limit
points. Not unnaturally, a subset S of Rn is called open if its complement
S c = Rn S is closed. A set, however, is not a door: it can be neither open
or closed, and it can be both open and closed. (Examples?)
Proposition 5.1.1 (-balls Are Open). For any a Rn and any > 0,
the ball B(a, ) is open.
Proof. Let x be any point in B(a, ), and set = |xa|, a positive number.
The Triangle Inequality shows that B(x, ) B(a, ) (exercise 5.1.1), and
therefore x is not a limit point of the complement B(a, )c . Consequently all
limit points of B(a, )c are in fact elements of B(a, )c , which is thus closed,
making B(a, ) itself open.
206 5 Inverse and Implicit Functions
This proof shows that any point x B(a, ) is an interior point. In fact,
an equivalent definition of open is that a subset of Rn is open if each of its
points is interior (exercise 5.1.2).
The closed -ball at a, denoted B(a, ), consists of the corresponding
open ball with its edge added in,
B(a, ) = {x Rn : |x a| }.
The boundary of the closed ball B(a, ), denoted B(a, ), is the points on
the edge,
B(a, ) = {x Rn : |x a| = }.
(See figure 5.1.) Any closed ball B and its boundary B are compact sets
(exercise 5.1.3).
V = {x A : f (x) W }.
f 1 (W ) f 1 (W )
The converse to Theorem 5.1.2 is also true and is exercise 5.1.8. We need
one last technical result for the proof of the Inverse Function Theorem.
x) g(x)| n2 c|
|g( x x| B.
for all x, x
|gi (
x) gi (x)| nc|
x x| for i = 1, , n.
Thus we have reduced the problem from vector output to scalar output. To
create an environment of scalar input as well, make the line segment from x
to x
the image of a function of one variable,
: [0, 1] Rn , x x).
(t) = x + t(
Note that (0) = x, (1) = x , and (t) = x x for all t (0, 1). Fix any
i {1, , n} and consider the restriction of gi to the segment, a scalar-valued
function of scalar input,
For each j, the jth entry of the vector gi ((t)) is the partial derivative
Dj gi ((t)). And we are given that |Dj gi ((t))| c, so the Size Bounds show
that |gi ((t))| nc and therefore
|gi (
x) gi (x)| nc|
x x|.
Exercises
5.1.1. Let x B(a; ) and let = |x a|. Explain why > 0 and why
B(x; ) B(a; ).
5.1 Preliminaries 209
5.1.2. Show that a subset of Rn is open if and only if each of its points is
interior.
5.1.3. Prove that any closed ball B is indeed a closed set, as is its boundary
B. Show that any closed ball and its boundary are also bounded, hence
compact.
5.1.4. Find a continuous function f : Rn Rm and an open set A Rn
such that the image f (A) Rm of A under f is not open. Feel free to choose
n and m.
5.1.5. Define f : R R by f (x) = x3 3x. Compute f (1/2). Find
f 1 ((0, 11/8)), f 1 ((0, 2)), f 1 ((, 11/8) (11/8, )). Does f 1 exist?
5.1.6. Show that for f : Rn Rm and B Rm , the inverse image of the
complement is the complement of the inverse image,
f 1 (B c ) = f 1 (B)c .
Before the proof, it is worth remarking that the formula for the derivative
of the local inverse, and the fact that the derivative of the local inverse is
continuous, are easy to establish once everything else is in place. If the local
inverse f 1 of f is known to exist and to be differentiable, then for any x V
the fact that the identity mapping is its own derivative combines with the
chain rule to say that
and similarly idn = Dfx (Df 1 )y , where this time idn is the identity mapping
on y-space. The last formula in the theorem follows. In terms of matrices, the
formula is
(f 1 ) (y) = f (x)1 where y = f (x).
This formula combines with Corollary 3.7.3 (the entries of the inverse matrix
are continuous functions of the entries of the matrix) to show that since the
mapping is continuously differentiable and the local inverse is differentiable,
the local inverse is continuously differentiable. Thus we need to show only
that the local inverse exists and is differentiable.
Proof. The proof begins with a simplification. Let T = Dfa , a linear map-
ping from Rn to Rn that is invertible because its matrix f (a) has nonzero
determinant. Let
f = T 1 f.
By the chain rule, the derivative of f at a is
g f = idn near a
and
f g = idn near f(a).
5.2 The Inverse Function Theorem 211
f T 1
V^ /W o f
/W
T
The diagram shows that the way to invert f locally, going from W back to V ,
f : g = g T 1 . Indeed, since f = T f,
is to proceed through W
g T 1 ) (T f) = idn near a,
g f = (
f g = (T f) (
g T 1 ) = idn near f (a).
x) g(x)| 21 |
|g( x x|,
and therefore, since f = idn + g,
|f (
x) f (x)| = |(
x x) + (g(
x) g(x))|
|
x x| |g(
x) g(x)|
x x| 12 |
| x x| (by the previous display)
1
= 2 |
x x|.
The previous display shows that f is injective on B, i.e., any two distinct
points of B are taken by f to distinct points of Rn . For future reference, we
note that the result of the previous calculation rearranges as
|
x x| 2|f (
x) f (x)| B.
for all x, x (5.4)
The boundary B of B is compact, and so is the image set f (B) since f
is continuous. Also, f (a)
/ f (B) since f is injective on B. And f (a) is not
a limit point of f (B) since f (B), being compact, is closed. Consequently,
some open ball B(f (a), 2) contains no point from f (B). (See figure 5.3.)
2
f
a f (a)
B f (B)
Let W = B(f (a), ), the open ball with radius less than half the distance
from f (a) to f (B). Thus
|y f (a)| < |y f (x)| for all y W and x B. (5.5)
That is, every point y of W is closer to f (a) than it is to any point of f (B).
(See figure 5.4.)
The goal now is to exhibit a mapping on W that inverts f near a. In
other words, the goal is to show that for each y W , there exists a unique x
interior to B such that f (x) = y. So fix an arbitrary y W . Define a function
: B R that measures for each x the square of the distance from f (x)
to y,
Xn
(x) = |y f (x)|2 = (yi fi (x))2 .
i=1
5.2 The Inverse Function Theorem 213
f y
W
x f (x)
The idea is to show that for one and only one x near a, (x) = 0. Since
modulus is always nonnegative, the x we seek must minimize . As mentioned
at the beginning of the chapter, this simple idea inside all the technicalities
is the heart of the proof: the x to be taken to y by f must be the x that is
taken closest to y by f .
The function is continuous and B is compact, so the Extreme Value The-
orem guarantees that does indeed take a minimum on B. Condition (5.5)
guarantees that takes no minimum on the boundary B. Therefore the
minimum of must occur at an interior point x of B; this interior point x
must be a critical point of , so all partial derivatives of vanish at x. Thus
by the Chain Rule,
n
X
0 = Dj (x) = 2 (yi fi (x))Dj fi (x) for j = 1, , n.
i=1
f
V f 1 W
f (h) h = o(h),
f 1 (k) k = o(k).
For any point k W , let h = f 1 (k). Note that |h| 2|k| by condition (5.4)
with x
= h and x = 0n so that f ( x) = k and f (x) = 0n , and thus h = O(k).
So now we have
Note the range of mathematical skills that this proof of the Inverse Func-
tion Theorem required. The ideas were motivated and guided by pictures,
but the actual argument was symbolic. At the level of fine detail, we nor-
malized the derivative to the identity in order to reduce clutter, we made an
adroit choice of quantifier in choosing a small enough B to apply the Differ-
ence Magnification Lemma with c = 1/(2n2 ), and we used the full Triangle
5.2 The Inverse Function Theorem 215
The actual inverse function f 1 about (1, 0) may not be clear, but the In-
verse Function Theorem guarantees its existence, and its affine approximation
is easy to find.
Exercises
as desired.
Also we review the argument in section 4.8 that every graph is a level
set. Let A0 be a subset of Rr , and let f : A0 Rc be any mapping. Let
A = A0 Rc (a subset of Rn ) and define a second mapping g : A Rc ,
218 5 Inverse and Implicit Functions
and this is the set of inputs to g that g takes to 0c , a level set of g as desired.
Now we return to rephrasing the question at the beginning of this sec-
tion. Let A be an open subset of Rn , and let a mapping g : A Rc have
continuous partial derivatives at every point of A. Points of A can be written
(x, y), x Rr , y Rc .
L = {(x, y) A : g(x, y) = 0c }.
The question was whether the c scalar conditions g(x, y) = 0c on the n = c+r
scalar entries of (x, y) define the c scalars of y in terms of the r scalars of x
near (a, b). That is, the question is whether the vector relation g(x, y) = 0c
for (x, y) near (a, b) is equivalent to a vector relation y = (x) for some
mapping that takes r-vectors near a to c-vectors near b. This is precisely
the question of whether the level set L is locally the graph of such a mapping .
If the answer is yes, then we would like to understand as well as possible
by using the techniques of differential calculus. In this context we view the
mapping as implicit in the condition g = 0c , explaining the name of the
pending Implicit Function Theorem.
The first phrasing of the question, whether c conditions on n variables
specify c of the variables in terms of the remaining r variables, is easy to
answer when the conditions are affine. Affine conditions take the matrix form
P v = w where P Mc,n (R), v Rn , and w Rc , and P and w are fixed
while v is the vector of variables. Partition the matrix P into a left c-by-r
block M and a right square c-by-c block N , and partition the vector v into
its first r entries x and its last c entries y. Then the relation P v = w is
x
M N = w,
y
that is,
M x + N y = w.
Assume that N is invertible. Then subtracting M x from both sides and then
left multiplying by N 1 shows that the relation is
y = N 1 (w M x).
5.3 The Implicit Function Theorem 219
When the conditions are nonaffine the situation is not so easy to analyze.
However:
The problem is easy to linearize. That is, given a point (a, b) (where a Rr
and b Rc ) on the level set {(x, y) : g(x, y) = w}, differential calculus
tells us how to describe the tangent object to the level set at the point.
Depending on the value of r, the tangent object will be a line, or a plane,
or higher-dimensional. But regardless of its dimension, it is described by
the linear conditions g (a, b)v = 0c , and these conditions take the form
that we have just considered,
h
M N = 0c , M Mc,r (R), N Mc (R), h Rr , k Rc .
k
x2 + y 2 = 1.
Globally (in the large), this relation neither specifies x as a function of y nor
y as a function of x. It cant: the circle is visibly not the graph of a function
of either sortrecall the Vertical Line Test to check whether a curve is the
graph of a function y = (x), and analogously for the Horizontal Line Test.
The situation does give a function, however, if one works locally (in the small)
by looking only at part of the circle at a time. Any arc in the bottom half of
the circle is described by the function
220 5 Inverse and Implicit Functions
p
y = (x) = 1 x2 .
Any arc in the bottom right quarter is described by both functions. (See
figure 5.6.) On the other hand, no arc of the circle about the point (a, b) =
(1, 0) is described by a function y = (x), and no arc about (a, b) = (0, 1) is
described by a function x = (y). (See figure 5.7.) Thus, about some points
(a, b), the circle relation x2 + y 2 = 1 contains the information to specify each
variable as a function of the other. These functions are implicit in the relation.
About other points, the relation implicitly defines one variable as a function
of the other, but not the second as a function of the first.
y = (x)
x = (y)
x 6= (y)
y 6= (x)
The tangent line to the circle at (a, b) consists of the points (a + h, b + k) such
that (h, k) is orthogonal to g (a, b),
h
2a 2b = 0.
k
That is,
2ah + 2bk = 0.
Thus whenever b 6= 0 we have
k = (a/b)h,
showing that on the tangent line, the second coordinate is a linear function
of the first, and the function has derivative a/b. And so on the circle it-
self near (a, b), plausibly the second coordinate is a function of the first as
well, provided that b 6= 0. Note that indeed this argument excludes the two
points (1, 0) and (1, 0) about which y is not an implicit function of x. But
about points (a, b) C where D2 g(a, b) 6= 0, the circle relation should im-
plicitly define y as a function of x. And at such points (say, on the lower
half-circle), the function is explicitly
p
(x) = 1 x2 ,
so that (x) = x/ 1 x2 = x/y (the last minus sign is present because
the square root is positive but y is negative) and in particular
(a) = a/b.
Thus (a) is exactly the slope that we found a moment earlier by solving
the linear problem g (a, b)v = 0 where v = (h, k) is a column vector. That
is, using the constraint g(x, y) = 0 to set up and solve the linear problem,
making no reference in the process to the function implicitly defined by the
constraint, found the derivative (a) nonetheless. The procedure illustrates
the general idea of the pending Implicit Function Theorem:
Constraining conditions do locally define some variables implicitly in
terms of others, and the implicitly defined function can be differenti-
ated without being found explicitly.
(And returning to the circle example, yet another way to find the derivative
is to differentiate the relation x2 + y 2 = 1 at a point (a, b) about which we
assume that y = (x),
222 5 Inverse and Implicit Functions
2a + 2b (a) = 0,
so that again (a) = a/b. The reader may recall from elementary calculus
that this technique is called implicit differentiation.)
It may help the reader visualize the situation if we revisit the idea of
the previous paragraph more geometrically. Since C is a level set of g, the
gradient g (a, b) is orthogonal to C at the point (a, b). When g (a, b) has a
nonzero y-component, C should locally have a big shadow on the x-axis, from
which there is a function back to C. (See figure 5.8, in which the arrow
drawn is quite a bit shorter than the true gradient, for graphical reasons.)
g(x, y, z) = x2 + y 2 + z 2 .
y
x
Figure 5.9. Function from the (x, y)-plane to the z-axis via the sphere
The argument based on calculus and linear algebra to suggest that near
points (a, b, c) S such that D3 g(a, b, c) 6= 0, z is implicitly a function (x, y)
on S is similar to the case of the circle. The derivative of g at the point is
g (a, b, c) = 2a 2b 2c .
That is,
2ah + 2bk + 2c = 0.
Thus whenever c 6= 0 we have
= (a/c)h (b/c)k,
showing that on the tangent plane, the third coordinate is a linear function
of the first two, and the function has partial derivatives a/c and b/c.
And so on the sphere itself near (a, b, c), plausibly the third coordinate is a
function of the first two as well, provided that c 6= 0. This argument excludes
points on the equator, about which z is not an implicit function of (x, y). But
about points (a, b, c) S where D3 g(a, b, c) 6= 0, the sphere relation should
implicitly define z as a function of (x, y). And at such points (say, on the
upper hemisphere), the function is explicitly
p
(x, y) = 1 x2 y 2 ,
224 5 Inverse and Implicit Functions
p p
so that (x, y) = [x/ 1 x2 y 2 y/ 1 x2 y 2 ] = [x/z y/z] and in
particular
(a, b) = a/c b/c .
The partial derivatives are exactly as predicted by solving the linear problem
g (a, b, c)v = 0, where v = (h, k, ) is a column vector, with no reference to .
(As with the circle, a third way to find the derivative is to differentiate the
sphere relation x2 + y 2 + z 2 = 1 at a point (a, b, c) about which we assume
that z = (x, y), differentiating with respect to x and then with respect to y,
The two conditions on the three variables should generally leave one variable
(say, the first one) free and define the other two variables in terms of it. That
is, n = 3 and c = 2, so that r = 1. Indeed, GC is a circle that is orthogonal
to the plane of the page, and away from its two points (1, 0, 0) that are
farthest in and out of the page, it does define (y, z) locally as functions of x.
(See figure 5.10.) This time we first proceed by linearizing the problem to
obtain the derivatives of the implicit function without finding the implicit
function = (1 , 2 ) itself. The derivative matrix of g at p is
2a 2b 2c
g (a, b, c) = .
0 1 1
The level set GC is defined by the condition that g(x, y, z) hold constant
at (1, 0) as (x, y, z) varies. Thus the tangent line to GC at a point (a, b, c)
consists of points (a + h, b + k, c + ) such that neither component function
of g is instantaneously changing in the (h, k, )-direction,
h
2a 2b 2c 0
k = .
0 1 1 0
of g (a, b, c) and let N denote the right 2-by-2 submatrix. Then by (5.6), the
linearized problem has solution
a
k 1 1 1 2c 2a 2b
= N M h = h= a h
2(c b) 1 2b 0 2c
To make the implicit function in the great circle relations explicit, note
that near the point p = (a, b, c) in the figure,
r r !
1 x2 1 x2
(y, z) = (1 (x), 2 (x)) = , .
2 2
define y and z implicitly in terms of x near the point (1, 1, 0)? (This point
meets both conditions.) Answering this directly by solving for y and z is
manifestly unappealing. But linearizing the problem is easy. At our point
(1, 1, 0), the mapping
g(x, y, z) = (y 2 ez cos(y + x2 ), y 2 + z 2 x2 )
Since the right 2-by-2 determinant is nonzero, we expect that indeed y and z
are implicit functions 1 (x) and 2 (x) near (1, 1, 0). Furthermore, solving
the linearized problem as in the previous example with M and N similarly
defined suggests that if (y, z) = (x) = (1 (x), 2 (x)) then
1
1 2 1 0 1 0 1 0 1
(1) = N M = = = .
2 0 2 2 2 2 2 2
(a) = N 1 M.
(a + h) b N 1 M h.
Proof. Examining the derivative has already shown the theorems plausibility
in specific instances. Shoring up these considerations into a proof is easy with
a well-chosen change of variables and the Inverse Function Theorem. For the
change of variables, define
G : A Rn
as follows: for all x Rr and y Rc such that (x, y) A,
highly reversible, being the identity mapping on the x-coordinates. That is, it
is easy to recover g from G. The mapping G affects only y-coordinates, and it
is designed to take the level set L = {(x, y) A : g(x, y) = 0c } to the x-axis.
(See figure 5.11, in which the inputs and the outputs of G are shown in the
same copy of Rn .)
Rc
A
b p
G(A) x
R n a Rr
Rc
b p
x
Rn a Rr
Now we can exhibit the desired mapping implicit in the original g. Define
a mapping
(x) = (x, 0c ) for x near a. (5.10)
The idea is that locally this lifts the x-axis to the level set L where g(x, y) = 0c
and then projects horizontally to the y-axis. (See figure 5.13.) For any (x, y)
near (a, b), a specialization of condition (5.9) combines with the definition
(5.10) of to give
g(x, y) = 0c y = (x).
Thus the Implicit Function Theorem follows easily from the Inverse Func-
tion Theorem. The converse implication is even easier. Imagine a scenario
where somehow we know the Implicit Function Theorem but not the Inverse
Function Theorem. Let f : A Rn (where A Rn ) be a mapping that
satisfies the hypotheses for the Inverse Function Theorem at a point a A.
That is, f is continuously differentiable in an open set containing a, and
det f (a) 6= 0. Define a mapping
g : A Rn Rn , g(x, y) = f (x) y.
(This mapping should look familiar from the beginning of the section.) Let
b = f (a). Then g(a, b) = 0, and the derivative matrix of g at (a, b) is
g (a, b) = f (a) In .
230 5 Inverse and Implicit Functions
y
Rc
(x, 0c ) p
b
x
Rn a Rr
Figure 5.13. The implicit mapping from x-space to y-space via the level set
Since f (a) is invertible, we may apply the Implicit Function Theorem, with
the roles of c, r, and n in theorem taken by the values n, n, and 2n here, and
with the theorem modified as in the third remark before its proof so that we
are checking whether the first n variables depend on the last n values. The
theorem supplies us with a differentiable mapping defined for values of y
near b such that for all (x, y) near (a, b),
g(x, y) = 0 x = (y).
y = f (x) x = (y).
(as it must be), and we have recovered the Inverse Function Theorem. In a
nutshell, the argument converts the graph y = f (x) into a level set g(x, y) = 0,
and then the Implicit Function Theorem says that locally the level set is also
the graph of x = (y). (See figure 5.14.)
Rederiving the Inverse Function Theorem so easily from the Implicit Func-
tion Theorem is not particularly impressive, since proving the Implicit Func-
tion Theorem without citing the Inverse Function Theorem would be just as
hard as the route we took of proving the Inverse Function Theorem first. The
point is that the two theorems have essentially the same content.
We end this section with one more example. Consider the function
g : R2 R, g(x, y) = (x2 + y 2 )2 x2 + y 2
5.3 The Implicit Function Theorem 231
y
Rn
((y), y)
b
(y)
f (x) (x, f (x))
x
R2n a Rn
Figure 5.14. The Inverse Function Theorem from the Implicit Function Theorem
Exercises
5.3.1. Does the relation x2 + y + sin(xy) = 0 implicitly define y as a function
of x near the origin? If so, what is its best affine approximation? How about
x as a function of y and its affine approximation?
5.3.2. Does the relation xy z ln y + exz = 1 implicitly define z as a function
of (x, y) near (0, 1, 1)? How about y as a function of (x, z)? When possible,
give the affine approximation to the function.
5.3.3. Do the simultaneous conditions x2 (y 2 + z 2 ) = 5 and (x z)2 + y 2 = 2
implicitly define (y, z) as a function of x near (1, 1, 2)? If so, then what is
the functions affine approximation?
5.3.4. Same question for the conditions x2 + y 2 = 4 and 2x2 + y 2 + 8z 2 = 8
near (2, 0, 0).
5.3.5. Do the simultaneous conditions xy + 2yz = 3xz and xyz + x y = 1
implicitly define (x, y) as a function of z near (1, 1, 1)? How about (x, z) as a
function of y? How about (y, z) as a function of x? Give affine approximations
when possible.
5.3.6. Do the conditions xy 2 + xzu + yv 2 = 3 and u3 yz + 2xv u2 v 2 = 2
implicitly define (u, v) in terms of (x, y, z) near the point (1, 1, 1, 1, 1)? If so,
what is the derivative matrix of the implicitly defined mapping at (1, 1, 1)?
5.3.7. Do the conditions x2 +yu+xv +w = 0 and x+y +uvw = 1 implicitly
define (x, y) in terms of (u, v, w) near (x, y, u, v, w) = (1, 1, 1, 1, 1)? If so,
what is the best affine approximation to the implicitly defined mapping?
5.3.8. Do the conditions
2x + y + 2z + u v = 1
xy + z u + 2v = 1
yz + xz + u2 + v = 0
define the first three variables (x, y, z) as a function (u, v) near the point
(x, y, z, u, v) = (1, 1, 1, 1, 1)? If so, find the derivative matrix (1, 1).
5.4 Lagrange Multipliers: Geometric Motivation and Specific Examples 233
Lets step back from specifics (but we will return to the currently unre-
solved example soon) and consider in general the necessary nature of a critical
point in a constrained problem. The discussion will take place in two stages:
first we consider the domain of the problem, and then we consider the critical
point.
The domain of the problem is the points in n-space that satisfy a set of c
constraints. To satisfy the constraints is to meet a condition
g(x) = 0c
Equivalently:
5.4 Lagrange Multipliers: Geometric Motivation and Specific Examples 235
(Thus f has the same domain A Rn as g.) Then for any unit vector d
describing a direction in L at p, the directional derivative Dd f (p) must be 0.
But Dd f (p) = hf (p), di, so this means that:
f (p) must be orthogonal to L at p.
This observation combines with our description of the most general vector
orthogonal to L at p, in the third bullet above, to give Lagranges condition:
Suppose that p is a critical point of the function f restricted to the
level set L = {x : g(x) = 0c } of g. If the gradients gi (p) are linearly
independent, then
c
X
f (p) = i gi (p) for some scalars 1 , , c ,
i=1
g(p) = 0c .
f (v, w, x, y, z) = v 2 + w2 + x2 + y 2 + z 2
g1 (v, w, x, y, z) = v + w + x + y + z 1
g2 (v, w, x, y, z) = v w + 2x y + z + 1
and the corresponding Lagrange condition and constraints are (after absorbing
a 2 into the s, whose particular values are irrelevant anyway)
Substitute the expressions from the Lagrange condition into the constraints
to get 51 + 22 = 1 and 21 + 82 = 1. That is,
5 2 1 1
= .
2 8 2 1
Note how much more convenient the two s are to work with than the five
original variables. Their values are auxiliary to the original problem, but sub-
stituting back now gives the nearest point to the origin,
1
(v, w, x, y, z) = (3, 17, 4, 17, 3),
36
and its distance from the origin is 612/36. This example is just one instance
of a general problem of finding the nearest point to the origin in Rn subject
to c affine constraints. We will solve the general problem in the next section.
An example from geometry is Euclids Least Area Problem. Given an angle
ABC and a point P interior to the angle as shown in figure 5.20, what line
through P cuts off from the angle the triangle of least area?
Draw the line L through P parallel to AB and let D be its intersection
with AC. Let a denote the distance AD and let h denote the altitude from
AC to P . Both a and h are constants. Given any other line L through P ,
let x denote its intersection with AC and H denote the altitude from AC to
the intersection of L with AB. (See figure 5.21.) The shaded triangle and its
subtriangle in the figure are similar, giving the relation x/H = (x a)/h.
The problem is now to minimize the function f (x, H) = 12 xH subject to
the constraint g(x, H) = 0 where g(x, H) = (x a)H xh = 0. Lagranges
condition f (x, H) = g(x, H) and the constraint g(x, H) = 0 become,
after absorbing a 2 into ,
238 5 Inverse and Implicit Functions
A C
P
D h
x
a xa
(H, x) = (H h, x a),
(x a)H = xh.
The first relation quickly yields (x a)H = x(H h). Combining this with
the second shows that H h = h, that is, H = 2h. The solution of Euclids
problem is, therefore, to take the segment that is bisected by P between the
two sides of the angle. (See figure 5.22.)
Euclids problem has the interpretation of finding the point of tangency
between the level set g(x, H) = 0, a hyperbola having asymptotes x = a and
H = h, and the level sets of f (x, H) = (1/2)xH, a family of hyperbolas having
asymptotes x = 0 and H = 0. (See figure 5.23, where the dashed asymptotes
meet at (a, h) and the point of tangency is visibly (x, H) = (2a, 2h).)
An example from optics is Snells Law. A particle travels through medium 1
at speed v, and through medium 2 at speed w. If the particle travels from
5.4 Lagrange Multipliers: Geometric Motivation and Specific Examples 239
point A to point B as shown in the least possible amount of time, what is the
relation between angles and ? (See figure 5.24.)
Since time is distance over speed, a little trigonometry shows that this
problem is equivalent to minimizing f (, ) = a sec /v + b sec /w subject
to the constraint g(, ) = a tan + b tan = d. (g measures lateral distance
traveled.) The Lagrange condition f (, ) = g(, ) is
a b
sin sec , sin sec = (a sec2 , b sec2 ).
2 2
v w
sin v
= .
sin w
240 5 Inverse and Implicit Functions
A a tan()
medium 1
a sec() a
d
medium 2 b sec()
b
b tan() B
Figure 5.25 depicts the situation using the variables x = tan and y = tan .
The level set of possible configurations becomes the portion of the line
ax
+ by = d in p the first quadrant, and the function to be optimized becomes
a 1 + x2 /v + b 1 + y 2 /w. A level set for a large value of the function passes
through the point (0, d/b), the configuration with = 0 where the particle
travels vertically in medium 1 and then travels a long path in medium 2,
and a level set for a smaller value of the function passes through the point
(d/a, 0), the configuration with = 0 where the particle travels a long path
in medium 1 and then travels vertically in medium 2, while a level set for an
even smaller value of the function is tangent to the line segment at its point
that describes the optimal configuration specified by Snells Law.
For an example from analytic geometry, let the function f measure the
square of the distance between the points x = (x1 , x2 ) and y = (y1 , y2 ) in the
5.4 Lagrange Multipliers: Geometric Motivation and Specific Examples 241
plane,
f (x1 , x2 , y1 , y2 ) = (x1 y1 )2 + (x2 y2 )2 .
Fix points a = (a1 , a2 ) and b = (b1 , b2 ) in the plane, and fix positive numbers
r and s. Define
g(x1 , x2 , y1 , y2 ) = (0, 0)
can be viewed as the set of pairs of points x and y that lie respectively on the
circles centered at a and b with radii r and s. Thus, to optimize the function f
subject to the constraint g = 0 is to optimize the distance between pairs of
points on the circles. The rows of the 2-by-4 matrix
x a1 x 2 a2 0 0
g (x, y) = 2 1
0 0 y 1 b1 y 2 b2
(x1 y1 , x2 y2 , y1 x1 , y2 x2 ) = 1 (x1 a1 , x2 a2 , 0, 0)
2 (0, 0, y1 b1 , y2 b2 ),
or
(x y, y x) = 1 (x a, 02 ) 2 (02 , y b).
The second half of the vector on the left is the additive inverse of the first, so
the condition rewrites as
x y = 1 (x a) = 2 (y b).
x y k x a k y b,
and so the points x, y, a, and b are collinear. Granted, these results are obvious
geometrically, but it is pleasing to see them follow so easily from the Lagrange
multiplier condition. On the other hand, not all points x and y such that x,
y, a, and b are collinear are solutions to the problem. For example, if both
circles are bisected by the x-axis and neither circle sits inside the other, then
x and y could be the leftmost points of the circles, neither the closest nor the
farthest pair.
242 5 Inverse and Implicit Functions
The last example of this section begins by maximizing the geometric mean
of n nonnegative numbers,
f (1, , 1) = (1 1)1/n = 1.
Exercises
5.4.1. Find the nearest point to the origin on the intersection of the hyper-
planes x + y + z 2w = 1 and x y + z + w = 2 in R4 .
5.4.6. Find the rectangular box of greatest volume, having sides parallel to the
2 2 2
coordinate axes, that can be inscribed in the ellipsoid xa + yb + zc = 1.
5.4.7. The lengths of the twelve edges of a rectangular block sum to 4, and
the areas of the six faces sum to 4. Find the lengths of the edges when the
excess of the blocks volume over that of a cube with edge equal to the least
edge of the block is greatest.
5.4.8. A cylindrical can (with top and bottom) has volume V . Subject to this
constraint, what dimensions give it the least surface area?
5.4.9. Find the distance in the plane from the point (0, 1) to the parabola
y = ax2 where a > 0. Note: The answer depends on whether a > 1/2 or 0 <
a 1/2.
n n
!1/p n
!1/q
X X X
a i bi api bqi .
i=1 i=1 i=1
Here is the rigorous analytic justification that the Lagrange multiplier method
usually works. The Implicit Function Theorem will do the heavy lifting, and
it will reaffirm that the method is guaranteed only where the gradients of the
component functions of g are linearly independent. The theorem makes the
rigorous proof of the Lagrange criterion easier and more persuasiveat least
in the authors opinionthan the heuristic argument given earlier.
The proof will culminate the ideas in this chapter as follows. The Inverse
Function Theorem says:
If the linearized inversion problem is solvable then the actual inversion
problem is locally solvable.
The Inverse Function Theorem is equivalent to the Implicit Function Theorem:
If the linearized level set is a graph then the actual level set is locally
a graph.
And finally, the idea for proving the Lagrange Condition is:
Although the graph is a curved space, where the techniques of chapter 4
do not apply, its domain is a straight space, where they do.
That is, the Implicit Function Theorem lets us reduce optimization on the
graph to optimization on the domain, which we know how to do.
Proof. The second condition holds since p is a point in L. The first condition
needs to be proved. Let r = n c, the number of variables that should remain
free under the constraint g(x) = 0c , and notate the point p as p = (a, b),
where a Rr and c
b R . Using this notation, we have g(a, b) = 0c and
g (a, b) = M N where M is c-by-r and N is c-by-c and invertible. (We may
assume that N is the invertible block in the hypotheses to the theorem because
we may freely permute the variables.) The Implicit Function Theorem gives
a mapping : A0 Rc (where A0 Rr and a is an interior point of A0 )
with (a) = b, (a) = N 1 M , and for all points (x, y) A near (a, b),
g(x, y) = 0c if and only if y = (x).
Make f depend only on the free variables by defining
(See figure 5.26.) Since the domain of f0 doesnt curve around in some larger
space, f0 is optimized by the techniques from chapter 4. That is, the Implicit
Function Theorem has reduced optimization on the curved set to optimization
in Euclidean space. Specifically, the multivariable Critical Point Theorem says
that f0 has a critical point at a,
f0 (a) = 0r .
Our task is to express the previous display in terms of the given data f and g.
Doing so will produce the Lagrange condition.
Since f0 = f (idr , ) is a composition, the Chain Rule says that the
condition f0 (a) = 0r is f (a, (a)) (idr , ) (a) = 0r , or
246 5 Inverse and Implicit Functions
Ir
f (a, b) = 0r .
(a)
Let f (a, b) = (u, v) where u Rr and v Rc are row vectors, and recall
that (a) = N 1 M . The previous display becomes
Ir
[u v] = 0r ,
N 1 M
f (p) = g (p).
y
Rc
p
f
(idr , ) f0 R
x
Rn A0 a Rr
Figure 5.26. The Lagrange Multiplier Criterion from the Implicit Function Theo-
rem
We have seen that the Lagrange Multiplier Condition is necessary but not
sufficient for an extreme value. That is, it can report a false positive, as in the
two-circle problem in the previous section. False positives are not a serious
problem since inspecting all the points that meet the Lagrange condition will
determine which of them give the true extrema of f . A false negative would
be a worse situation, giving us no indication that an extreme value might
exist, much less how to find it. The following example shows that the false
negative scenario can arise without the invertible c-by-c block required in
Theorem 5.5.1.
5.5 Lagrange Multipliers: Analytic Proof and General Examples 247
f (x, y) = x,
L = {(x, y) R2 : y 2 = x3 }.
(See figure 5.27.) Since temperature increases as we move to the right, the
coldest point of L is its leftmost point, the cusp at (0, 0). However, the La-
grange condition does not find this point. Indeed, the constraining function
is g(x, y) = x3 y 2 (which does have continuous derivatives, notwithstanding
that its level set has a cusp: the graph of a smooth function is smooth, but
the level set of a smooth function need not be smooththis is exactly the
issue addressed by the Implicit Function Theorem). Therefore the Lagrange
condition and the constraint are
These equations have no solution. The problem is that the gradient at the cusp
is g(0, 0) = (0, 0), and neither of its 1-by-1 subblocks is invertible. In general,
the Lagrange Multiplier Condition will not report a false negative so long as
we remember that it only claims to check for extrema at the nonsingular
points of L, the points p such that g (p) has an invertible c-by-c subblock.
f : Rn Rn R, f (x, y) = |x y|2 .
248 5 Inverse and Implicit Functions
Note that f (x, y) = [x y y x], viewing x and y as row vectors. Given two
mappings g1 : Rn Rc1 and g2 : Rn Rc2 , define
where 1 Rc1 and 2 Rc2 are row vectors. The symmetry of f reduces
this equality of 2n-vectors to an equality of n-vectors,
x y = 1 g1 (x) = 2 g2 (y).
That is, either x = y or the line through x and y is normal to the first level
set at x and normal to the second level set at y, generalizing the result from
the two-circle problem. With this result in mind, you may want to revisit
exercise 0.0.1 from the preface to these notes.
The remaining general Lagrange multiplier methods optimize a linear func-
tion or a quadratic function subject to affine constraints or a quadratic con-
straint. We gather the results in one theorem.
x = A1 M T (M A1 M T )1 b and f (x) = bT (M A1 M T )1 b.
x = M T (M M T )1 b and |x|2 = bT (M M T )1 b.
5.5 Lagrange Multipliers: Analytic Proof and General Examples 249
f : Rn R, f (x) = aT x where a Rn ,
g : Rn Rc , g(x) = M x b where M Mc,n (R) and b Rc .
Here we assume that c < n, i.e., there are fewer constraints than variables.
Also, we assume that the c rows of M are linearly independent in Rn , or equiv-
alently (invoking a result from linear algebra), that some c columns of M are
a basis of Rc , or equivalently, that some c-by-c subblock of M (not necessarily
contiguous columns) has nonzero determinant. The Lagrange condition and
the constraints are
aT = T M where Rc ,
M x = b.
Before solving the problem, we need to consider the two relations in the pre-
vious display.
The Lagrange condition aT = T M is solvable for exactly when aT is a
linear combination of the rows of M . Since M has c rows, each of which is
a vector in Rn , and since c < n, generally aT is not a linear combination
of the rows of M , so the Lagrange conditions can not be satisfied. That is:
Generally the constrained function has no optimum.
However, we will study the exceptional case, when aT is a linear combi-
nation of the rows of M . In this case, the linear combination of the rows
that gives aT is unique because the rows are linearly independent. That
is, when exists it is uniquely determined.
To find the only candidate , note that the Lagrange condition aT =
T M gives aT M T = T M M T , and thus T = aT M T (M M T )1 . This
250 5 Inverse and Implicit Functions
calculations first step is not reversible, and so the calculation does not
show that exists to be found in all cases. But it does show that to check
whether aT is a linear combination of the rows of M , one checks whether
aT M T (M M T )1 M = aT , in which case T = aT M T (M M T )1 .
Note that furthermore, the Lagrange condition aT = T M makes no ref-
erence to x
The constraining condition M x = b has solutions x only if b is a linear
combination of the columns of M . Our assumptions about M guarantee
that this is the case.
With aT being a linear combination of the rows of M and with b being a linear
combination of the columns of M , the Lagrange condition and the constraints
immediately show that for any x in the constrained set,
f (x) = aT x = T M x = T b = aT M T (M M T )1 b.
As in (1), we assume that c < n, and we assume that the c rows of M are
linearly independent in Rn , i.e., some c columns of M are a basis of Rc , i.e.,
some c-by-c subblock of M has nonzero determinant. Thus the constraints
M x = b have solutions x for any b Rc .
To set up the Lagrange condition, we need to differentiate the quadratic
function f . Compute that
and so the best linear approximation of this difference is T (h) = 2xT Ah. It
follows that
5.5 Lagrange Multipliers: Analytic Proof and General Examples 251
f (x) = 2xT A.
Returning to the optimization problem, the Lagrange condition and the
constraints are
x T A = T M where Rc ,
M x = b.
Having solved a particular problem of this sort in section 5.4, we use its
particular solution to guide our solution of the general problem. The first step
was to express x in terms of , so here we transpose the Lagrange condition to
get Ax = M T , then assume that A is invertible and thus get x = A1 M T .
The second step was to write the constraint in terms of and then solve
for , so here we have b = M x = M A1 M T , so that = (M A1 M T )1 b,
assuming that the c-by-c matrix M A1 M T is invertible. Now the optimizing
input x = A1 M T is
x = A1 M T (M A1 M T )1 b,
f (x) = bT (M A1 M T )1 b.
x = M T (M M T )1 b, |x|2 = bT (M M T )1 b.
f : Rn R, f (x) = aT x where a Rn ,
(
M Mn (R) is symmetric
g : Rn R, T
g(x) = x M x b where
b R is nonzero.
aT = xT M where R,
T
x M x = b.
f (x) = aT x = xT M x = b,
and so to find these values it suffices to find the possible values of . Assuming
that M is invertible, the Lagrange condition is aT M 1 = xT , and hence
252 5 Inverse and Implicit Functions
aT M 1 ab = xT ab = 2 b2 = f (x)2 .
xT A = xT M where R,
T
x M x = b.
By the Lagrange condition and the constraint, the possible optimal values
of f take the form
f (x) = xT Ax = xT M x = b,
which we will know as soon as we find the possible values of , without needing
to find x. Assuming that M is invertible, the Lagrange condition gives
M 1 Ax = x.
5.5 Lagrange Multipliers: Analytic Proof and General Examples 253
Exercises
5.5.1. Let f (x, y) = y and let g(x, y) = y 3 x4 . Graph the level set L =
{(x, y) : g(x, y) = 0}. Show that the Lagrange multiplier criterion does not find
any candidate points where f is optimized on L. Optimize f on L nonetheless.
(a) Use Theorem 5.5.2, part (1) to optimize the linear function f (x, y, z) =
6x + 9y + 12z subject to the affine constraints g(x, y, z) = (7, 8).
(b) Verify without using the Lagrange multiplier method that the function
f subject to the constraints g = (7, 8) (with f and g from part (a)) is constant,
always taking the value that you found in part (a).
(c) Show that the function f (x, y, z) = 5x + 7y + z can not be optimized
subject to any constraint g(x, y, z) = b.
5.5.3. (a) Use Theorem 5.5.2, part (2) to minimize the quadratic function
f (x, y) = x2 + y 2 subject to the affine constraint 3x + 5y = 8.
(b) Use the same result to find the extrema of f (x, y, z) = 2xy + z 2 subject
to the constraints x + y + z = 1, x + y z = 0.
(c) Use the same result to find the nearest point to the origin on the
intersection of the hyperplanes x + y + z 2w = 1 and x y + z + w = 2
in R4 , reproducing your answer to exercise 5.4.1.
5.5.5. (a) Use Theorem 5.5.2, part (4) to optimize the function f (x, y) = 2xy
subject to the constraint g(x, y) = 1 where g(x, y) = x2 + 2y 2 .
(b) Use the same result to optimize the function f (x, y, z) = 2(xy+yz+zx)
subject to the constraint g(x, y, z) = 1 where g(x, y, z) = x2 + y 2 z 2 .
5.6 Summary
The main arguments in this chapter manipulate larger idea-units than those
in the previous chapters, and they are standard mathematical set-pieces. The
proof of the Inverse Function Theorem uses the main results from chapters 2,
3, and 4. The Inverse Function Theorem further implies the Implicit Function
Theorem, and conversely. The Implicit Function Theorem gives the Lagrange
multiplier condition, a systematic approach to problems of optimization with
constraints. The Lagrange multiplier method can also be viewed as optimiza-
tion on a curved set inside a larger-dimensional space.
Part II
The integral represents physical ideas such as volume or mass or work, but
defining it properly in purely mathematical terms requires some care. Here is
some terminology that is standard from the calculus of one variable, perhaps
other than compact (meaning closed and bounded ) from section 2.4 of these
notes. The language describes a domain of integration and the machinery to
subdivide it.
I = [a, b] = {x R : a x b} ,
where a and b are real numbers with a b. The length of the interval is
length(I) = b a.
P = {t0 , t1 , . . . , tk }
satisfying
a = t0 < t1 < < tk = b.
Such a partition divides I into k subintervals J1 , . . . , Jk where
Jj = [tj1 , tj ], j = 1, . . . , k.
J1 J Jk
a = t0 t1 t2 t3 tk1 tk = b
mJ (f ) = inf {f (x) : x J} ,
MJ (f ) = sup {f (x) : x J} .
If the interval I in Definition 6.1.3 has length zero, then the lower and
upper sums are empty and so they are assigned the value 0 by convention.
The function f in Definition 6.1.3 is not required to be differentiable or
even continuous, only bounded. Even so, the values mJ (f ) and MJ (f ) in the
previous definition exist by the set-bound phrasing of the principle that the
real number system is complete. To review this idea, see Theorem 1.1.4. When
f is in fact continuous, the Extreme Value Theorem (Theorem 2.4.15) justi-
fies substituting min and max for inf and sup in the definitions of mJ (f )
and MJ (f ), since each subinterval J is nonempty and compact. It may be
easiest at first to understand mJ (f ) and MJ (f ) by imagining f to be contin-
uous and mentally substituting appropriately. But we will need to integrate
discontinuous functions f . Such functions may take no minimum or maximum
on J, and so we may run into a situation like the one pictured in figure 6.2,
in which the values mJ (f ) and MJ (f ) are not actual outputs of f . Thus the
definition must be as given to make sense.
The technical properties of inf and sup will figure in Lemmas 6.1.6, 6.1.8,
and 6.2.2. To see them in isolation first, we rehearse them now. So, let S
260 6 Integration
MJ (f )
mJ (f )
mJ (f ) mJ (f ) MJ (f ) MJ (f ).
of f as the density function of a wire stretched over the interval I shows that
the lower and upper sum are too small and too big to be the mass of the
wire. The hope is that the lower and upper sums are trapping a yet-unknown
quantity (possibly to be imagined as area or mass) from each side, and that as
the partition P becomes finer, the lower and upper sums will actually converge
to this value.
All the terminology so far generalizes easily from one dimension to many,
i.e., from R to Rn . Recall that if S1 , S2 , . . . , Sn are subsets of R then their
cartesian product is a subset of Rn ,
S1 S2 Sn = {(s1 , s2 , . . . , sn ) : s1 S1 , s2 S2 , . . . , sn Sn } .
(See figure 6.4, in which n = 2, and S1 has two components, and S2 has one
component, so that the cartesian product S1 S2 has two components.)
B = I1 I2 In
P = P1 P2 Pn .
Such a partition divides B into subboxes J, each such subbox being a carte-
sian product of subintervals. By a slight abuse of language, these are called
the subboxes of P .
(See figure 6.5, and imagine its three-dimensional Rubiks cube counterpart.)
Every nonempty compact box in Rn has partitions, even such boxes with
some length-zero sides. This point will arise at the very beginning of the next
section.
Lemma 6.1.6. For any box B, any partition P of B, and any bounded func-
tion f : B R,
L(f, P ) U (f, P ).
264 6 Integration
Figure 6.7 illustrates the fact that if P refines P then every subbox of P
is contained in a subbox of P . The literal manifestation in the figure of the
containment P P is that the set of points where a horizontal line segment
and a vertical line segment meet in the right side of the figure subsumes the
set of such points in the left side.
Refining a partition brings the lower and upper sums nearer each other:
See figure 6.8 for a picture-proof for lower sums when n = 1, thinking of
the sums in terms of area. The formal proof is just a symbolic rendition of
the figures features.
The proof uncritically assumes that the volumes of a boxs subboxes sum
to the volume of the box. This assumption is true, and left as an exercise.
The emphasis here isnt on boxes (which are straightforward), but on defining
the integral of a function f whose domain is a box. The next result helps
investigate whether the lower and upper sums indeed trap some value from
both sides. First we need a definition.
P = P1 P2 Pn and P = P1 P2 Pn ,
Exercises
6.1.1. (a) Let I = [0, 1], let P = {0, 1/2, 1}, let P = {0, 3/8, 5/8, 1}, and let
P be the common refinement of P and P . What are the subintervals of P ,
and what are their lengths? Same question for P . Same question for P .
(b) Let B = I I, let Q = P {0, 1/2, 1}, let Q = P {0, 1/2, 1}, and
let Q be the common refinement of Q and Q . What are the subboxes of Q
and what are their areas? Same question for Q . Same question for Q .
6.1.2. Show that the lengths of the subintervals of any partition of [a, b] sum
to the length of [a, b]. Same for the areas of the subboxes of [a, b] [c, d].
Generalize to Rn .
6.1.3. Let J = [0, 1]. Compute mJ (f ) and MJ (f ) for each of the following
functions f : J R.
( x),
(a) f (x) = x(1
1 if x is irrational
(b) f (x) =
1/m if x = n/m in lowest terms, n, m Z and m > 0,
(
(1 x) sin(1/x) if x 6= 0
(c) f (x) =
0 if x = 0.
6.2 Definition of the Integral 267
Similarly, the upper integral of f over B is the greatest lower bound of the
upper sums of f over all partitions P ,
Z
U f = inf {U (f, P ) : P is a partition of B} .
B
sup(L) inf(U ).
Since U is nonempty and has lower bounds, it has a greatest lower bound
inf(U ). Since each L is a lower bound and inf(U ) is the greatest lower
bound,
inf(U ) for each L,
meaning precisely that
Since L is nonempty and has an upper bound, it has a least upper bound
sup(L). Since sup(L) is the least upper bound and inf(U ) is an upper bound,
sup(L) inf(U ).
Similar techniques show that the converse of the proposition holds as well,
so that given B, f , and P , f is integrable over B if and only if f is integrable
over each subbox J, but we do not need this full result. Each of the proposition
and its converse requires both implications of the Integrability Criterion.
The symbol B denotes a box in the next set of exercises.
Exercises
6.2.1. Let f R: B R
R be a bounded function. Explain how Lemma 6.2.2
shows that L B f U B f .
6.2.4. Granting that any interval of positive length contains both rational
and irrational numbers, fill in the details in the argument that the function
f : [0, 1] R with f (x) = 1 for rational x and f (x) = 0 for irrational x is
not integrable over [0, 1].
mJ (f ) + mJ (g) mJ (f + g) MJ (f + g) MJ (f ) + MJ (g).
(b) Part (a) of this exercise obtained comparisons between lower and upper
sums, analogously to the first paragraph of the proof R of Proposition 6.2.4.
Argue
R analogously
R to the rest of the proof to show B
(f + g) exists and equals
B
f + B
g. (One way to begin is by using the Integrability Criterion twice
and then a common refinement to show that there exists a partition P of B
such that U (f, P ) L(f, P ) < /2 and U (g, P ) L(g, P ) < /2.)
(c) Let c 0 be any constant. Let P be any partition of B. Show that for
any subbox J of P ,
272 6 Integration
mJ (f ) = MJ (f ) and MJ (f ) = mJ (f ).
6.2.8.
R Suppose
R that f : B R is integrable, and that so is |f |. Show that
f |f |.
B B
To prove this, as we will at the end of the section, we first need to sharpen
our understanding of continuity on boxes. The version of continuity that were
familiar with isnt strong enough to prove certain theorems, this one in par-
ticular. Formulating the stronger version of continuity requires first revising
the grammar of the familiar brand.
S and |
if x x x| < then |f (
x) f (x)| < .
f
x f (x)
point f (x) in Rm . The idea is that in response, you can draw a ball of some
radiusthis is the in the definitionabout the point x in S, so that every
point in the -ball about x gets taken by f into the -ball about f (x). (See
figure 6.11.)
f
x f (x)
|f (
x) f (x)| = |2|
x| 2|x|| = 2||
x| |x|| 2|
x x| < 2 = ,
|f ( x2 x2 |
x) f (x)| = |
= |
x + x| |
x x|
< (1 + 2|x|) by the two virtues of
1 + 2|x|
= .
|f ( x2 x2 | = |(
x) f (x)| = | x x)| = |
x + x)( x + x| |
x x|,
|
x + x| = |
x x + 2x| |
x x| + 2|x| < 1 + 2|x|.
S and |
if x x x| < then |f (
x) f (x)| < .
The last two displays combine to imply the first display, showing that f is
sequentially continuous at x.
( = ) Now suppose that f is not - continuous at x. Then for some > 0,
no > 0 satisfies the relevant conditions. In particular, = 1/ fails the
conditions for = 1, 2, 3, . So there is a sequence {x } in S such that
The fact that the second half of this proof has to proceed by contrapo-
sition, whereas the first half is straightforward, shows that - continuity is
a little more powerful than sequential continuity on the face of it, until we
do the work of showing that they are equivalent. Also, the very definition
of - continuity seems harder for students than the definition of sequential
continuity, which is why these notes have used sequential continuity up to
now. However, the exceptionally alert reader may have recognized that the
second half of this proof is essentially identical to the proof of the Persistence
of Inequality Principle (Proposition 2.3.10). Thus, the occasional arguments
in these notes that cited Persistence of Inequality were tacitly using - con-
tinuity already, because sequential continuity was not transparently strong
enough for their purposes. The reader who dislikes redundancy is encouraged
to rewrite the second half of this proof to quote Persistence of Inequality
rather than re-prove it.
The reason that we bother with this new - type of continuity, despite
its equivalence to sequential continuity meaning that it is nothing new, is
that its grammar generalizes to describe the more powerful continuity that
we need. The two examples above of - continuity differed: in the example
6.3 Continuity and Integrability 277
f (x) = x2 , the choice of = min{1, /(2|x| + 1)} for any given x and to
satisfy the definition of - continuity at x depended not only on but on x
as well. In the example f (x) = 2|x|, the choice of = /2 for any given x
and depended only on , i.e., it was independent of x. Here, one value of
works simultaneously at all values of x once is specified. This technicality
has enormous consequences.
S and |
if x, x x x| < then |f (
x) f (x)| < .
Proof. Suppose that f is not uniformly continuous. Then for some > 0
there exists no suitable uniform , and so in particular no reciprocal positive
integer 1/ will serve as in the definition of uniform continuity. Thus for
each Z+ there exist points x and y in K such that
f (lim x ) = f (lim y ).
But the second condition in (6.2) shows that
lim f (x ) 6= lim f (y ),
i.e., even if both limits exist then still they can not be equal. (If they both
exist and they agree then lim(f (x ) f (y )) = 0, but this is incompatible
with the second condition in (6.2), |f (x ) f (y )| for all .) The previous
two displays combine to show that
i.e., at least one of the left sides in the previous display doesnt match the
corresponding right side or doesnt exist at all. Thus f is not continuous at p.
Integration synthesizes local data at each point of a domain into one whole.
The idea of this section is that integrating a continuous function over a box
is more than a purely local process: it requires the uniform continuity of the
function all through the box, a large-scale simultaneous estimate that holds
in consequence of the box being compact.
Exercises
6.3.1. Reread the proof that sequential and - continuity are equivalent, then
redo the proof with the book closed.
6.3.3. Here is a proof that the squaring function f (x) = x2 is not uniformly
continuous on R. Suppose that some > 0 satisfies the definition of uniform
continuity for = 1. Set x = 1/ and x = 1/+/2. Then certainly |
x x| < ,
but
1 2 1 1 2 1 2
|f (
x) f (x)| = + 2 = 2 + 1 + 2 = 1 + > .
2 4 4
6.3.6. Let J be a box in Rn with sides of length less than /n. Show that any
points x and x in J satisfy |
x x| < .
R
6.3.7. For B f to exist, it is sufficient that f : B R be continuous, but it
is not necessary. What preceding exercise provides an example of this? Here is
another example. Let B = [0, 1] and let f : B R be monotonic increasing,
meaning that if x1 < x2 in B then f (x1 ) f (x2 ). Show that such a function
is bounded, though
R it need not be continuous. Use the Integrability Criterion
to show that B f exists.
6.4 Integration of Functions of One Variable 281
We know that the integrals in the previous display exist because the reciprocal
function is continuous.
(a) Show that limx ln x/x = 0 as follows. Let some small > 0 be given.
For x > 2/, let u(x, ) denote the sum of the areas of the boxes [1, 2/][0, 1]
and [2/, x] [0, /2]. Show that u(x, ) ln x. (Draw a figure showing the
boxes and the graph of r, and use the words upper sum in your answer.)
Compute limx u(, x)/x (here remains fixed), and use your result to show
that u(, x)/x < for all large enough x. This shows that limx ln x/x = 0.
(b) Let a > 0 and b > 1 be fixed real numbers. Part (a) shows that
Although both of these examples use substitution, they differ from one
another in a way that a first calculus course may not explain. The first substi-
tution involved picking an x-dependent u (i.e., u = ln x) where u (x) (i.e., 1/x)
was present in the integral and got absorbed by the substitution. The second
substitution took an opposite form to the first: this time the x-dependent u
was inverted to produce a u-dependent x, and the factor u (x) was introduced
into the integral rather than eliminated from it. Somehow, two different things
are going on under the guise of u-substitution.
In this section we specialize our theory of multivariable integration to n = 1
and review two tools for evaluating one-dimensional integrals, the Fundamen-
tal Theorem of Integral Calculus (FTIC) and the Change of Variable Theorem.
Writing these down precisely will clarify the examples we just worked. More
importantly, generalizing these results appropriately to n dimensions is the
subject of the remainder of these notes.
The multivariable
R integral notation of this chapter, specialized to one di-
mension, is [a,b] f . For familiarity, replace this by the usual notation,
Z b Z
f= f for a b.
a [a,b]
Rb
As matters stand, the redefined notation a f makes sense only when a b,
so extend its definition to
Z b Z a
f = f for a > b.
a b
Once this is done, the same relation between signed integrals holds regardless
of which (if either) of a and b is larger,
Z b Z a
f = f for all a and b.
a b
Also, if f : [min{a, b}, max{a, b}] R takes the constant value k then
Z b
f = k(b a),
a
Proof. Let x and x + h lie in [a, b] with h 6= 0. Study the difference quotient
R x+h Rx R x+h
F (x + h) F (x) a
f a
f x
f
= = .
h h h
R x+h
If h > 0 then m[x,x+h] (f ) h x f M[x,x+h] (f ) h, and dividing
through by h shows that the difference quotient lies between m[x,x+h] (f ) and
M[x,x+h] (f ). Thus the difference quotient is forced to f (x) as h goes to 0,
since f is continuous. Similar analysis applies when h < 0.
(Alternatively, an argument using the characterizing property of the
derivative and the LandauBachmann notation does not require separate cases
depending on the sign of h. Compute that
Z x+h Z x+h
F (x + h) F (x) f (x)h = (f f (x)) = o(1) = o(h),
x x
But here the reader needs to believe, or check, the last equality.)
284 6 Integration
The alert reader will recall the convention in these notes that a mapping
can be differentiable only at an interior point of its domain. In particular,
the derivative of a function F : [a, b] R is undefined at a and b. Hence
the statement of Theorem 6.4.1 is inconsistent with our usage, and strictly
speaking the theorem should conclude that F is continuous on [a, b] and dif-
ferentiable on (a, b) with derivative F = f . The given proof does show this,
since the existence of the one-sided derivative of F at each endpoint makes F
continuous there.
However, we prohibited derivatives at endpoints only to tidy up our state-
ments. An alternative would have been to make the definition that for any
compact, connected set K Rn (both of these terms were discussed in sec-
tion 2.4), a mapping f : K Rm is differentiable on K if there exists an
open set A Rn containing K, and an extension of f to a differentiable map-
ping f : A Rm . Here the word extension means that the new function f
on A has the same behavior on K as the old f . One reason that we avoided
this slightly more general definition is that it is tortuous to track through the
material in chapter 4, especially for the student who is seeing the ideas for
the first time. Also, this definition requires that the Critical Point Theorem
(stating that the extrema a function occur at points where its derivative is 0)
be fussily rephrased to say that this criterion applies only to the extrema that
occur at the interior points of the domain. From the same preference for tidy
statements over fussy ones, now we do allow the more general definition of
the derivative.
Proving the FTIC from Theorem 6.4.1 requires the observation that if two
functions F1 , F2 : [a, b] R are differentiable, and F1 = F2 , then F1 = F2 +c
for some constant c. The observation follows from the Mean Value Theorem
and is an exercise.
(One can also prove the Fundamental Theorem with no reference to Theo-
rem 6.4.1, letting the Mean Value Theorem do all the work instead. Compute
that for any partition P of [a, b], whose points are a = t0 < t1 < < tk = b,
6.4 Integration of Functions of One Variable 285
k
X
F (b) F (a) = F (ti ) F (ti1 ) (telescoping sum)
i=1
k
X
= F (ci )(ti ti1 ) with each ci (ti1 , ti ), by the MVT
i=1
U (F , P ).
Since P is arbitrary, F (b)F (a) is a lower bound of the upper sums and hence
Rb
is at most the upper integral U a F . Since F is continuous, its integral exists
and the upper integral is the integral. That is,
Z b
F (b) F (a) F .
a
Rb
One way to apply the Change of Variable Theorem to an integral a g is
to recognize that the integrand takes the form g = (f ) , giving the
286 6 Integration
R (b)
left side of (6.4) for suitable f and such that the right side (a) f is easier
to evaluate. This method is calledR integration by forward substitution.
e
For instance, for the first integral x=1 ((ln x)2 )/x) dx at the beginning of the
section, take
g : R+ R, g(x) = (ln x)2 /x.
Re
To evaluate 1 g, define
: R+ R, (x) = ln x
and
f : R R, f (u) = u2 .
Then g = (f ) , and (1) = 0, (e) = 1, so by the Change of Variable
Theorem,
Z e Z e Z (e) Z 1
g= (f ) = f= f.
1 1 (1) 0
Since f has antiderivative F where F (u) = u3 /3, the last integral equals
F (1) F (0) = 1/3 by the FTIC.
The second integral at the beginning of the section was evaluated not by
the Change of Variable Theorem as given, but by a consequence of it:
Corollary 6.4.4 (Inverse Substitution Formula). Let : [a, b] R be
continuous and let f : [a, b] R be continuous. Suppose further that is
invertible and that 1 is differentiable with continuous derivative. Then
Z b Z (b)
(f ) = f (1 ) .
a (a)
and
f : R1 R, f (u) = 1/u.
Then the integral is Z Z
9 9
dx
p = (f ).
0 1+ x 0
Let q
u = (x) = 1 + x.
Then a little algebra gives
so that
(1 ) (u) = 4u(u2 1).
Since (0) = 1 and (9) = 2, the integral becomes
Z 9 Z 9 Z 2 Z 2
dx u(u2 1) du
p = (f ) = f (1 ) = 4 ,
0 1+ x 0 1 1 u
Exercises
6.4.1. (a) Show that for three points a, b, c R in any order, and any inte-
Rc Rb Rc
grable function f : [min{a, b, c}, max{a, b, c}] R, a f = a f + b f .
(b) Show that if f : [min{a, b}, max{a, b}] R takes the constant value k
Rb
then a f = k(b a), regardless of which of a and b is larger.
6.4.2. Complete the proof of Theorem 6.4.1 by analyzing the case h < 0.
6.4.3. Show that if F1 , F2 : [a, b] R are differentiable and F1 = F2 , then
F1 = F2 + C for some constant C. This result was used in the section to prove
the Fundamental Theorem of Calculus (Theorem 6.4.2), so do not use that
theorem to address this exercise. However, this exercise does require a theo-
rem. Reducing to the case where F2 = 0, as in the comment in exercise 6.2.7,
will make this exercise a bit tidier.
6.4.4. (a) Suppose that 0 a b and f : [a2 , b2 ] R is continuous. Define
R x2
F : [a, b] R by F (x) = a2 f . Does F exist, and if so then what is it?
(b) More generally, suppose f : R R is continuous, and , : R R
R (x)
are differentiable. Define F : R R by F (x) = (x) f . Does F exist, and
if so then what is it?
6.4.5. Let f : [0, 1] R be continuous and suppose that for all x [0, 1],
Rx R1
0
f = x f . What is f ?
6.4.6. Find all differentiable
Rx functions f : R0 R such that for all x
R0 , (f (x))2 = 0 f .
1
R6.4.7. Define f : R+ R by f (u) = e(u+ u ) /u and F : R+ R by F (x) =
x
1
f . Show that F behaves somewhat like a logarithm in that F (1/x) = F (x)
for all x R+ . Interpret this property of F as a statement about area under
the graph of f . (Hint: define : R+ R+ by (u) = 1/u, and show that
(f ) = f .)
6.5 Integration Over Nonboxes 289
This definition
R requires several comments. At first glance it seems ill-posed.
Conceivably, B S could exist for some boxes B containing S but not others,
and it could take different
R values for the various B where it exists. In fact, some
technique shows that if B S exists for some box B containing S then it exists
for any such box and always takes the same value, so the definition makes sense
after all. See the exercises. Also, an exercise shows that the volume of a box B
is the same under Definition 6.5.1 as under Definition 6.1.4, as it must be
for grammatical consistency. Finally, note that not all sets have volume, only
those whose characteristic functions are integrable.
Sets of volume zero are small enough that they dont interfere with inte-
gration. To prove such a result explicitly, we first translate the definition of
volume zero into statements about the machinery of the integral. Let S Rn
sit in a box B, and let P be a partition of B. The subboxes J of P consist of
two types:
type I : J such that J S 6=
and
type II : J such that J S = .
Thus S sits in the unionRof subboxes J of type I and the sum of their volumes
gives an upper sum for B S .
For example, figure 6.14 shows a circle S inside a box B, and a partition P
of B, where the type I subboxes of the partition are shaded. The shaded boxes
290 6 Integration
visibly have a small total area. Similarly, figure 6.15 shows a smooth piece of
surface in R3 , then shows it inside a partitioned box, and figure 6.16 shows
some of the type I subboxes of the partition. Figure 6.16 also shows a smooth
arc in R3 and some of the type I rectangles that cover it, with the ambient
box and the rest of the partition now tacit. Figure 6.16 is meant to show that
all the type I boxes, which combine to cover the surface or the arc, have a
small total volume.
Figure 6.15. A two dimensional set in R3 ; the set inside a partitioned box
Figure 6.16. Some type I subboxes of the partition, and for an arc in R3
The proof is an exercise. This criterion makes it plausible that any bounded
smooth arc in R2 has volume zero, and similarly for a bounded smooth arc or
smooth piece of surface in R3 . The next result uses the criterion to provide
a general class of volume zero sets. Recall that for any set S Rk and any
mapping : S R , the graph of is a subset of Rk+ ,
The idea is that the graph of the function in the proposition will describe
some of the points of discontinuity of a different function f that we want to
integrate. Thus the dimension m in the proposition is typically n 1, where
the function f that we want to integrate has n-dimensional input.
|
x x| < = x) (x)| < .
|( (6.5)
292 6 Integration
Figure 6.17. The graph meets at most two boxes over each base
terms bounded and boundary need have nothing to do with each other. A set
with a boundary need not be bounded, and a bounded set need not have any
boundary points nor contain any of its boundary points if it does have them.)
For example, the set in figure 6.18 has a boundary consisting of four graphs
of functions on one-dimensional boxes, i.e., on intervals. Two of the boundary
pieces are graphs of functions y = (x), and the other two are graphs of
functions x = (y). Two of the four functions are constant functions.
y = 2 x2
x = sin(y)
x=2
y=0
X X
(MJ (f ) mJ (f )) vol(J )
J : type I J J
X X X (6.6)
2R vol(J ) = 2R vol(J) < 2R = .
4R 2
J : type I J J J : type I
Finally, combining (6.6) and (6.7) shows Rthat U (f, P ) L(f, P ) < , and so
by ( = ) of the Integrability Criterion, B f exists.
To recapitulate the argument: The fact that f is bounded means that its
small set of discontinuities cant cause much difference between lower and up-
per sums, and the continuity of f on the rest of its domain poses no obstacle
to integrability either. The only difficulty was making the ideas fit into our
box-counting definition of the integral. The reader could well object that prov-
ing Theorem 6.5.4 shouldnt have to be this complicated. Indeed, the theory
of integration being presented here, Riemann integration, involves laborious
proofs precisely because it uses such crude technology: finite sums over boxes.
More powerful theories of integration exist, with stronger theorems and more
graceful arguments. However, these theories also entail the startup cost of as-
similating a larger, more abstract set of working ideas, making them difficult
to present as quickly as Riemann integration.
Now we can discuss integration over nonboxes.
Definition 6.5.5 (Known-Integrable Function). A function
f : K R
is known-integrable if K is a compact subset of Rn having boundary of
volume zero, and if f is bounded on K and is continuous on all of K except
possibly a subset of volume zero.
For example, let K = {(x, y) : |(x, y)| 1} be the closed unit disk in R2 ,
and define (
1 if x 0,
f : K R, f (x, y) =
1 if x < 0.
To see that this function is known-integrable, note that the boundary of K
is the union of the upper and lower unit semicircles, which are graphs of
continuous functions on the same 1-dimensional box,
296 6 Integration
p
: [1, 1] R, (x) = 1 x2 .
f : K R
For the example just before the definition, the extended function is
1 if |(x, y)| 1 and x 0,
2
f : R R, f (x, y) = 1 if |(x, y)| 1 and x < 0,
0 if |(x, y)| > 1,
and to integrate the original function over the disk we integrate the extended
function over the box B = [0, 1] [0, 1].
Returning to generality, the integral on the right side of the equality in the
definition exists because f is bounded and discontinuous on a set of volume
zero, as required for Theorem 6.5.4. In particular, the definition of volume is
now, sensibly enough, Z
vol(K) = 1.
K
Naturally, the result of Proposition 6.2.4, that the integral over the whole
is the sum of the integrals over the pieces, is not particular to boxes and
subboxes.
Proof. Define
(
f (x) if x K1 ,
f1 : K R, f1 (x) =
0 otherwise.
R R
Then f1 is known-integrable on K, and so K f1 exists and equals K1 f1 .
Define a corresponding function f2 : K R, for which the corresponding
conclusions hold. It follows that
Z Z Z Z Z
f1 + f2 = f1 + f2 = (f1 + f2 ).
K1 K2 K K K
Exercises
S T U = (S1 T1 U1 ) (Sn Tn Un ).
6.5.3. Let B Rn be a box. Show that its volume under Definition 6.5.1
equals its volume under Definition 6.1.4. (Hint: Exercise 6.2.3.)
6.5.4. Let S be the set of rational numbers in [0, 1]. Show that under Defini-
tion 6.5.1, the volume (i.e., length) of S does not exist.
6.5.7. Prove that if S1 and S2 have volume zero, then so does S1 S2 . (Hint:
S1 S2 S1 + S2 .)
6.5.8. Find an unbounded set with a nonempty boundary, and a bounded set
with empty boundary.
6.5.9. Review figure 6.18 and its discussion in the section. Also review the ex-
ample that begins after Definition 6.5.5 and continues after Definition 6.5.6.
Similarly, use results from the section such as Theorem 6.5.4 and Proposi-
tion 6.5.3R to explain why for each set K and function f : K R below, the
integral K f exists. Draw a picture each time, taking n = 3 for the picture
in part (f).
(a) K = {(x, y) : 2 y 3, 0 x 1 + ln y/y}, f (x, y) = exy .
2
(b) K = {(x, y) : 1 x 4, 1 y x}, f (x, y) = ex/y /y 5 .
(c) K = the region between the curves y = 2x2 and x = 4y 2 , f (x, y) = 1.
(d) K = {(x, y) : 1 x2 + y 2 2}, f (x, y) = x2 .
(e) K = the pyramid with vertices (0, 0, 0), (3, 0, 0), (0, 3, 0), (0, 0, 3/2),
f (x, y, z) = x.
(f) K = {x Rn : |x| 1} (the solid unit ball in Rn ), f (x1 , . . . , xn ) =
x1 xn .
With existence theorems for the integral now in hand, this section and the
next one present tools to compute integrals.
An n-fold iterated integral is n one-dimensional integrals nested inside
each other, such as
Z b1 Z b2 Z bn
f (x1 , x2 , . . . , xn ),
x1 =a1 x2 =a2 xn =an
each inner integral over y is being taken over a segment of x-dependent length
as the outer variable x varies from 0 to . (See figure 6.21.)
y=x
y
x
We now Rdiscuss the ideas before giving the actual proof. A lower sum for the
integral B f is shown geometrically in the left side of figure 6.23. A partition
P Q divides the box B = [a, b] [c, d] into subboxes I J, and the volume
of each solid region in the figure is the area of a subbox times the minimum
Rd
height of the graph over the subbox. By contrast, letting g(x) = y=c f (x, y)
be the area of the cross-section at x, the right side of figure 6.23 shows a lower
Rb
sum for the integral x=a g(x) The partition P divides the interval [a, b] into
subintervals I, and the volume of each bread-slice in the figure is the length
of a subinterval times the minimum area of the cross-sections orthogonal to I.
The proof will show that because integrating in the y-direction is a finer di-
agnostic than summing minimal box-areas in the y-direction, the bread-slices
in the right side of the figure are a superset of the boxes in the left side. Con-
sequently, the volume beneath the bread-slices is at least the volume of the
boxes,
L(f, P Q) L(g, P ).
By similar reasoning for upper sums, in fact we expect that
and although the boxes lie entirely beneath the graph (so is this),
and although the volume of the bread-slices is at most the volume beneath
the graph (but this is a relation between two numbers),
the bread-slices need not lie entirely beneath the graph.
Since the bread-slices need not lie entirely beneath
R the graph, the fact that
their volume L(g, P ) estimates the integral B f from below does not follow
from pointwise considerations. The proof finesses this point by establishing
the inequalities (6.8) without reference to the integral, only then bringing the
integral into play as the limit of the extremal sums in (6.8).
y y
x x
mJK (f ) mK (x ).
The previous two displays combine to give a lower bound for the cross-
sectional integral g(x), the lower bound making reference to the interval J
where x lies but independent of the particular point x of J,
X
mJK (f ) length(K) g(x) for all x J.
K
That is, the left side of this last display is a lower bound of all values g(x)
as x varies through J. So it is at most the greatest lower bound,
X
mJK (f ) length(K) mJ (g).
K
(This inequality says that each y-directional row of boxes in the left half of
figure 6.23 has at most the volume of the corresponding bread-slice in the
right half of the figure.) As noted at the end of the preceding paragraph, the
iterated integral is the integral of g. The estimate just obtained puts us in
a position to compare lower sums for the double integral and the iterated
integral,
X X
L(f, P Q) = mJK (f ) area(J K) mJ (g) length(J) = L(g, P ).
J,K J
Concatenating a virtually identical argument with upper sums gives the an-
ticipated chain of inequalities,
Since we will use Fubinis Theorem to evaluate actual examples, all the
notational issues discussed in section 6.4 arise here again. A typical notation
for examples is
Z Z b Z d
f (x, y) = f (x, y),
B x=a y=c
where the left side is a 2-dimensional integral, the right side is an iterated
integral, and f (x, y) is an expression defining f . For example, by Fubinis
Theorem and the calculation at the beginning of this section,
Z Z 1 Z 2
2 4
xy = xy 2 = .
[0,1][0,2] x=0 y=0 3
R Rd Rb
Of course, an analogous theorem asserts that B f (x, y) = y=c x=a f (x, y)
provided that the set S of discontinuity meets horizontal segments at only
finitely many points too. In other words, the double integral also equals the
other iterated
R 2 integral,
R1 and consequently the two iterated integrals agree. For
example, y=0 x=0 xy 2 also works out easily to 4/3.
In many applications, the integral over B is really an integral over a non-
rectangular compact set K, as defined at the end of the previous section. If
K is the area between the graphs of continuous functions 1 , 2 : [a, b] R,
i.e., if
K = {(x, y) : a x b, 1 (x) y 2 (x)},
R b R 2 (x)
then one iterated integral takes the form x=a y= 1 (x)
f (x, y). Similarly, if
y = 2 (x)
x = 2 (y)
x = 1 (y)
y = 1 (x)
2
looks daunting because the integrand ex has no convenient antiderivative,
but after exchanging the order of the integrations and then carrying out a
change of variable, it becomes
Z 1 Z 2x Z 1 Z 1
2 2
ex = 2xex = eu = 1 e1 .
x=0 y=0 x=0 u=0
Interchanging the order of integration can be tricky in such cases; often one
has to break K up into several pieces first, e.g.,
Z 2 Z 2 Z 1 Z 2 Z 2 Z 2
= + .
x=1 y=1/x y=1/2 x=1/y y=1 x=1
A carefully labeled diagram facilitates this process. For example, figure 6.25
shows the sketch that arises from the integral on the left side, and then the
resulting sketch that leads to the sum of two integrals on the right side.
y y
y=2
2
x=1
x=2
1
y = 1/x 1/2 x = 1/y
x x
1 2
.
y=0 x= y z=y
On the other hand, to exchange the inner integrals of (6.9), think of x as fixed
but generic between 0 and 1 and consider the second diagram in figure 6.26.
This diagram shows that (6.9) is also the iterated integral
Z 1 Z x2 Z z
. (6.10)
x=0 z=x3 y=x3
y z
y = x2
z = x2
x= y x2
y = x3
y = x3
x3 z=y
x= 3y y=z
x y
1 x3 x2
Switching the outermost and innermost integrals of (6.9) while leaving the
middle one in place requires three successive switches of adjacent integrals.
For instance, switching the inner integrals as we just did and then doing an
outer exchange on (6.10) virtually identical to the outer exchange of a moment
earlier (substitute z for y in the first diagram of figure 6.26) shows that (6.9)
is also Z Z 3 Z
1 z z
.
z=0 x= z y=x3
306 6 Integration
Finally, the first diagram of figure 6.27 shows how to exchange the inner
integrals once more. The result is
Z 1 Z z Z
3 y
.
z=0 y=z 3/2 x= z
The second diagram of figure 6.27 shows the three-dimensional figure that our
iterated integral has traversed in various fashions. It is satisfying to see how
this picture is compatible with the cross-sectional sketches, and to determine
which axis is which. However, the three-dimensional figure is unnecessary
for exchanging the order of integration. The author of these notes finds using
two-dimensional cross-sections easier and more reliable than trying to envision
an entire volume at once. Also, the two-dimensional cross-section technique
will work in an n-fold iterated integral for any n 3, even when the whole
situation is hopelessly beyond visualizing.
z y = x3
3/2
z x= 3y
x
z 3z
S = {(x, y, z) : x 0, y 0, z 0, x + y + z 1}
Rd
Then g is differentiable, and g (x) = y=c
D1 f (x, y). That is,
6.6 Fubinis Theorem 309
Z d Z d
d
f (x, y) = f (x, y).
dx y=c y=c x
Proof. Compute for any x [a, b], using the Fundamental Theorem of Integral
Calculus (Theorem 6.4.2) for the second equality and then Fubinis Theorem
for the fourth,
Z d
g(x) = f (x, y)
y=c
Z d Z x
= D1 f (t, y) + f (a, y)
y=c t=a
Z d Z x Z d
= D1 f (t, y) + C (where C = f (a, y))
y=c t=a y=c
Z x Z d
= D1 f (t, y) + C.
t=a y=c
It follows from Theorem 6.4.1 that the derivative equals the integrand evalu-
ated at x,
Z d
g (x) = D1 f (x, y),
y=c
as desired.
Exercises
6.6.1. Let S be the set of points (x, y) R2 between the x-axis and the
sine curve as x varies between 0 and 2. Since the sine curve has two arches
between 0 and 2, and since the area of an arch of sine is 2,
Z
1 = 4.
S
have equal (n 1)-dimensional volumes. Show that K and L have the same
volume. (Hint: Use Fubinis Theorem to decompose the n-dimensional volume-
integral as the iteration of a 1-dimensional integral of (n 1)-dimensional
integrals.) Illustrate for n = 2.
6.6.12. Let x0 be a positive real, and let f : [0, x0 ] R be continuous. Show
that
Z x0 Z x1 Z xn1 Z x0
1
f (xn ) = (x0 t)n1 f (t).
x1 =0 x2 =0 xn =0 (n 1)! t=0
(Use induction. The base case n = 1 is easy, then the induction hypothesis
applies to the inner (n 1)-fold integral.)
6.6.13. Let n Z+ and r R0 . The n-dimensional simplex of side r is
(b) Prove that vol(S1 (r)) = r. Use part (a) and Fubinis Theorem (cf. the
hint to exercise 6.6.11) to prove that
Z r
vol(Sn (r)) = vol(Sn1 (r xn )) for n > 1,
xn =0
y p
r
x
Also, tan = y/x provided that x 6= 0, but this doesnt mean that =
arctan(y/x). Indeed, arctan isnt even a well-defined function until its range
is specified, e.g., as (/2, /2). With this particular restriction, the actual
formula for , even given that not both x and y are 0, is not arctan(y/x), but
if x > 0 and y 0 (this lies in [0, /2)),
arctan(y/x)
/2 if x = 0 and y > 0,
= arctan(y/x) + if x < 0 (this lies in (/2, 3/2)),
3/2 if x = 0 and y < 0,
arctan(y/x) + 2 if x > 0 and y < 0 (this lies in (3/2, 2)).
The formula is unwieldy, to say the least. (The author probably would not
read through the whole thing if he were instead a reader. In any case, see
figure 6.32.) A better approach is that given (x, y), the polar radius r is the
unique nonnegative number such that
r 2 = x2 + y 2 ,
and then, if r 6= 0, the polar angle is the unique number in [0, 2) such
that (6.11) holds. But still, going from polar coordinates (r, ) to cartesian
coordinates (x, y) as in (6.11) is considerably more convenient than conversely.
This is good since, as we will see, doing so is also more natural.
3/2
/2
The mapping is injective except that the half-lines R0 {0} and R0 {2}
both map to the nonnegative x-axis, and the vertical segment {0} [0, 2] is
squashed to the point (0, 0). Each horizontal half-line R0 {} maps to the
ray of angle with the positive x-axis, and each vertical segment {r} [0, 2]
maps to the circle of radius r. (See figure 6.33.)
y
2
x
r
It follows that regions in the (x, y)-plane defined by radial or angular con-
straints are images under of (r, )-regions defined by rectangular constraints.
For example, the cartesian disk
Db = {(x, y) : x2 + y 2 b2 }
is the -image of the polar rectangle
Rb = {(r, ) : 0 r b, 0 2}.
(See figure 6.34.) Similarly the cartesian annulus and quarter disk,
Aa,b = {(x, y) : a2 x2 + y 2 b2 },
Qb = {(x, y) : x 0, y 0, x2 + y 2 b2 },
are the images of rectangles. (See figures 6.35 and 6.36.)
Iterated integrals over rectangles are especially convenient to evaluate, be-
cause the limits of integration for the two one-variable integrals are constants
rather than variables that interact. For example,
Z b Z 2 Z 2 Z b
= .
r=a =0 =0 r=a
These tidy (r, ) limits describe the (x, y) annulus Aa,b indirectly via , while
the more direct approach of an (x, y)-iterated integral over Aa,b requires four
messy pieces,
Z a Z b2 x2 Z a "Z a2 x2 Z b2 x2 # Z b Z b2 x2
+ + + .
x=b y= b2 x2 x=a y= b2 x2 y= a2 x2 x=a y= b2 x2
314 6 Integration
y
2
x
b
r
b
y
2
x
a b
r
a b
x
/2 b
r
b
Figure 6.36. Rectangle to quarter disk under the polar coordinate mapping
= [Dj i ]i,j=1...n .
: A Rn
Let
f : (K) R
be a continuous function. Then
Z Z
f= (f ) | det |.
(K) K
This section will end with a heuristic argument to support Theorem 6.7.1,
and then section 6.9 will prove the theorem after some preliminaries in sec-
tion 6.8. In particular, section 6.8 will explain why the left side integral in
the theorem exists. (The right side integral exists because the integrand is
continuous on K, which is compact and has boundary of volume zero, but the
fact that (K) is nice enough for the left side integral to exist requires some
discussion.) From now to the end of this section, the focus is on how the the-
orem is used. Generally, the idea is to carry out substitutions of the sort that
were called inverse substitutions in the one-variable
R discussion of section 6.4.
That is, to apply the theorem to an integral D fR, find a suitable set K and
mapping such that D = (K) and the integral K (f ) | det | is easier
to evaluate instead. The new integral most likely will be easier because K has
a nicer shape than D (this wasnt an issue in the one-variable case), but also
possibly because the new integrand is more convenient.
For example, to integrate the function f (x, y) = x2 + y 2 over the annulus
Aa,b , recall the polar coordinate mapping (r, ) = (r cos , r sin ), and recall
that under this mapping, the annulus is the image of a box,
316 6 Integration
(f )(r, ) = r2 ,
z z
y
x
r
: R0 [0, 2] R R3
given by
(r, , z) = (r cos , r sin , z).
That is, is just the polar coordinate mapping on z cross-sections, so like the
polar map, it is mostly injective. Its derivative matrix is
cos r sin 0
= sin r cos 0 ,
0 0 1
and again
| det | = r.
So, for example, to integrate f (x, y, z) = y 2 z over the cylinder C : x2 +y 2 1,
0 z 2, note that C = ([0, 1][0, 2][0, 2]), and therefore by the Change
of Variable Theorem and then Fubinis Theorem,
Z Z 2 Z 1 Z 2 Z 2 1 2
2 2 2 r4 z 2
f= r sin z r = sin = .
C =0 r=0 z=0 =0 4 r=0 2 z=0 2
: R0 [0, 2] [0, ] R3
given by
(, , ) = ( cos sin , sin sin , cos ).
The spherical coordinate mapping has derivative matrix
cos sin sin sin cos cos
= sin sin cos sin sin cos ,
cos 0 sin
so that, since 0 ,
| det | = 2 sin .
That is, the spherical coordinate mapping reverses orientation. It can be re-
defined to preserve orientation by changing to the latitude angle, varying
from /2 to /2, rather than the colatitude.
Figure 6.38 shows the image under the spherical coordinate mapping of
some (, )-rectangles, each having a fixed value of , and similarly for fig-
ure 6.39 for some fixed values of , and figure 6.40 for some fixed values of .
Thus the spherical coordinate mapping takes boxes to regions with these sorts
of walls, such as the half ice cream cone with a bite taken out of its bottom
in figure 6.41.
For an example of the Change of Variable Theorem using spherical coor-
dinates, the solid ball of radius r in R3 is
6.7 Change of Variable 319
z
y
z
y
It follows that the cylindrical shell B3 (b) B3 (a) has volume 4(b3 a3 )/3.
See exercises 6.7.12 through 6.7.14 for the lovely formula giving the volume
of the n-ball for arbitrary n.
The Change of Variable Theorem and spherical coordinates work together
to integrate over the solid ellipsoid of (positive) axes a, b, c,
320 6 Integration
z
y
z
y
first define a change of variable mapping that stretches the unit sphere into
the ellipsoid,
Thus
a00
= 0 b 0 , | det | = abc.
00c
Let f (x, y, z) = Cz 2 . Then since Ea,b,c = (B3 (1)) and (f )(u, v, w) =
Cc2 w2 , part of the integral is
Z Z Z
f= (f ) | det | = abc3 C w2 .
(B3 (1)) B3 (1) B3 (1)
Apply the Change of Variable Theorem again, this time using the spherical
coordinate mapping into (u, v, w)-space,
Z Z 1 Z 2 Z
3 2 3 4
abc C w = abc C 2 cos2 2 sin = abc3 C.
B3 (1) =0 =0 =0 15
By the symmetry of the symbols in the original integral, its overall value is
therefore
Z
4
(Ax2 + By 2 + Cz 2 ) = abc(a2 A + b2 B + c2 C).
Ea,b,c 15
3(b4 a4 )
z= .
8(b3 a3 )
In particular, the centroid of the solid hemisphere is 3/8 of the way up. It
is perhaps surprising that does not figure in this formula, as it did in the
two-dimensional case.
Here is a heuristic argument to support the Change of Variable Theorem.
Suppose that K is a box. Recall the assertion: under certain conditions,
Z Z
f= (f ) | det |.
(K) K
patch A of volume vol(A) | det (xJ )|vol(J) (cf. section 3.8), and each xJ
maps to a point yA A. (See figure 6.42.) Since the integral is a limit of
weighted sums,
Z X
f f (yA )vol(A)
(K) A
X
f ((xJ ))| det (xJ )|vol(J)
ZJ
(f ) | det |,
K
and these should become equalities in the limit as P becomes finer. What
makes this reasoning incomplete is that the patches A are not boxes, as are
required for our theory of integration.
J A
Recall from sections 3.8 and 3.9 that the absolute value of det (x) de-
scribes how the mapping scales volume at x, while the sign of det (x)
says whether the mapping locally preserves or reverses orientation. The fac-
tor | det | in the n-dimensional Change of Variable Theorem (rather than
the signed det ) reflects the fact that n-dimensional integration does not
take orientation into account. This unsigned result is less satisfying than the
one-variable theory, which does consider orientation and therefore comes with
R (b) Rb
a signed change of variable theorem, (a) f = a (f ) . An orientation-
sensitive n-dimensional integration theory will be developed in chapter 9.
Exercises
R
6.7.1. Evaluate S x2 + y 2 where S is the region bounded by x2 + y 2 = 2z
and z = 2. Sketch S.
6.7.2. Find the volume of the region S above x2 + y 2 = 4z and below x2 +
y 2 + z 2 = 5. Sketch S.
6.7 Change of Variable 323
6.7.3. Find the volume of the region between the graphs of z = x2 + y 2 and
z = (x2 + y 2 + 1)/2.
(Hint: Along with visualizing the geometry, set = 0 and consider the condi-
tion 2 = cos in cartesian coordinates.) Same question for
K = {(, , ) : 0 2, 0 , 0 sin }.
R
6.7.6. Evaluate S xyz where S is the first octant of B3 (1).
6.7.7. Find the mass of a solid figure filling the spherical shell
S = B3 (b) B3 (a)
6.7.10. (a) Prove Pappuss Theorem: Let K be a compact set in the (x, z)-
plane lying to the right of the z-axis and with boundary of area zero. Let S
be the solid obtained by rotating K about the z-axis in R3 . Then
vol(S) = 2x area(K),
R
where as always, x = K x/area(K). (Use cylindrical coordinates.)
(b) What is the volume of the torus Ta,b of cross-sectional radius a and
major radius b from the center of rotation to the center of the cross-sectional
disk? (See figure 6.43.)
6.7.11. Prove the change of scale principle: If the set K Rn has volume
v then for any r 0, the set rK = {rx : x K} has volume rn v. (Change
variables by (x) = rx.)
Let
324 6 Integration
vn = vol(Bn (1)).
(a) Explain how exercise 6.7.11 reduces computing the volume of Bn (r) to
computing vn .
(b) Explain why v1 = 2 and v2 = .
(c) Let D denote the unit disk B2 (1). Explain why for n > 2,
G q
Bn (1) = {(x1 , x2 )} Bn2 ( 1 x21 x22 ).
(x1 ,x2 )D
(Use the definition of volume at the end of section 6.5, Fubinis Theorem, the
definition of volume again, the change of scale principle from the previous
exercise, and the Change of Variable Theorem.)
(e) Show by induction only the for n even case of the formula
n/2
for n even,
vn = (n/2)!
(n1)/2 n
2 ((n 1)/2)!
for n odd.
n!
(The for n odd case can be shown by induction as well, but the next two
exercises provide a better, more conceptual approach to the volumes of odd-
dimensional balls.)
6.7 Change of Variable 325
R 2
6.7.13. This exercise computes the improper integral I = x=0 ex , defined
RR 2 RR 2
as the limit limR x=0 ex . Let I(R) = x=0 ex for any R 0.
R 2 2
(a) Use Fubinis Theorem to show that I(R)2 = S(R) ex y , where S(R)
is the square
S(R) = {(x, y) : 0 x R, 0 y R}.
(b) Let Q(R) be the quarter disk
Q(R) = {(x, y) : 0 x, 0 y, x2 + y 2 R2 },
and similarly for Q( 2 R). Explain why
Z Z Z
2 2 2 2 2 2
ex y ex y ex y .
Q(R) S(R) Q( 2 R)
R 2 2 R 2 2
(c) Change variables, and evaluate Q(R) ex y and Q(2 R) ex y .
What are the limits of these two quantities as R ?
(d) What is I?
6.7.14. (Volume of the n-ball, improved version) Define the gamma function
as an integral, Z
(s) = xs1 ex dx, s > 0.
x=0
(This improper integral is well-behaved, even though it is not being carried
out over a bounded region and even though the integrand is unbounded near
x = 0 when 0 < s < 1. We use dx here because this exercise is computational.)
(a) Show: (1) = 1, (1/2) = , (s + 1) = s (s). (Substitute and see
the previous exercise for the second identity, integrate by parts for the third.)
(b) Use part (a) to show that n! = (n+1) for n = 0, 1, 2, . Accordingly,
define x! = (x+1) for all real numbers x > 1, not only nonnegative integers.
(c) Use exercise 6.7.12(b), exercise 6.7.12(d), and the extended definition
of the factorial in part (b) of this exercise to obtain a uniform formula for the
volume of the unit n-ball,
n/2
vn = , n = 1, 2, 3, .
(n/2)!
(We already have this formula for n even. For n odd, the argument is essen-
tially identical to exercise 6.7.12(e) but starting at the base case n = 1.) Thus
the n-ball of radius r has volume
n/2 n
vol(Bn (r)) = r , n = 1, 2, 3, .
(n/2)!
For odd n, what value of s shows that the values of vn from part (c) of this
exercise and from part (e) of exercise 6.7.12 are equal?
(e) (Read-only. While the calculation of vn in these exercises shows the
effectiveness of our integration toolkit, the following heuristic argument illus-
trates that we would profit from an even more effective theory of integration.)
Decompose Euclidean space Rn into concentric n-spheres (the n-sphere is
the boundary of the n-ball), each having a radius r and a differential radial
thickness dr. Since each such n-sphere is obtained by removing the n-ball of
radius r from the n-ball of radius r + dr, its differential volume is
Here we ignore the higher powers of dr on the grounds that they are so much
smaller than the dr-term. Thus, re-using some ideas from a moment ago, and
using informal notation,
Z n
2
n/2 = ex dx since the integral equals
Z R
2
= e|x| dV by Fubinis Theorem
Rn
Z
2
= vn n rn1 er dr integrating over spherical shells
r=0
Z
= vn n/2 tn/21 et dt substituting t = r2
t=0
= vn n/2 (n/2)
= vn (n/2)!.
The formula vn = n/2 /(n/2)! follows immediately. The reason that this
induction-free argument lies outside our theoretical framework is that it in-
tegrates directly (rather than by the Change of Variable Theorem) even as it
decomposes Rn into small pieces that arent boxes. Although we would prefer
a more flexible theory of integration that allows such procedures, developing
it takes correspondingly more time.
(c) Explain how after exchanging the order of integration, a few other steps
lead to Z Z
1 s1/2 s 2 dt
Is = t e ex dx .
(s) t=0 x= t
(d) Use earlier exercises to conclude that
(s 1/2)
Is = .
(s)
Can you check this formula for s = 1?
6.7.16. Let A and B be positive real numbers. This exercise evaluates the
improper integral
Z
dx
Is = (for any real number s > 0).
x= (Ae
2x + Be2x )s
6.7.17. (Read-only. This exercise makes use not only of the gamma function
but of some results beyond our scope, in the hope of interesting the reader in
those ideas.)
(a) Consider any x R>0 , R, and s R>1 . We show that
Z (
2 x s1
eiy (s) e if > 0,
s
dy =
y= (x + iy) 0 if 0.
A result from complex analysis says that this formula extends from the open
half-line of positive x-values to the open half-plane of complex numbers x + iy
with x positive. That is, for any y R,
Z
d
(s) = (x + iy)s e(x+iy) s .
=0
This is
Z (
(s) iy ex s1 if > 0,
= e x () d where x () =
(x + iy)s =0 0 if 0.
The integral here is a Fourier transform. That is, letting F denote the Fourier
transform operator, the previous display says
(s)
= (Fx )(y), y R.
(x + iy)s
R
The integral (s) y= eiy (x + iy)s dy is consequently the inverse Fourier
transform at of the Fourier transform of x . Fourier inversion says that
the inverse Fourier transform of the Fourier transform is the original function
multiplied by 2. Putting all of this together gives the value of the integral at
the beginning of the exercise.
6.7 Change of Variable 329
Replacing c by a1/2 c (and thus dc by a(n1)/2 dc) lets the integral be separated,
Z Z
2 da
n (s) = e|c| dc ea as
cR n1 aR>0 a
Z
d2
etr 2 (det 2 )s1/2
2 Cn1 (det 2 )n/2
= (n1)/2 (s)n1 (s 21 ).
And iterating the argument gives the value of the nth gamma function in
terms of the basic gamma function,
Similarly to part (a), one now can evaluate an integral over the vector space Vn
of n-by-n symmetric matrices for a given Vn ,
Z (
(2)n (n1)n/2 tr(x)
ei tr(y) n (s) e (det )s(n+1)/2 if Cn ,
s
dy =
yVn det(x + iy) 0 else.
using the fact that the constant for Fourier inversion over the space of n-by-n
symmetric matrices is (2)n (n1)n/2 .
330 6 Integration
6.7.18. Figure 6.44 shows a geodesic dome with 5-fold vertices and 6-fold
vertices. (A geodesic of the sphere is a great circle.) Figure 6.45 shows a
birds-eye view of the dome. The thinner edges emanate from the 5-vertices,
while four of the six edges emanating from each 6-vertex are thicker. The five
triangles that meet at a 5-vertex are isoceles, while two of the six triangles
that meet at a 6-vertex are equilateral. This exercise uses vector algebra and
the spherical coordinate system to work out the lengths and angles of the
dome. Integration and the Change of Variable Theorem play no role in this
exercise.
(a) Take all vertices to lie on a sphere of radius 1. The ten thick edges
around the equator form a regular 10-gon. Show that consequently the thick
edges have length
a = 2 sin(/10) = 2 cos(2/5).
This famous number from geometry goes back to Euclid. Note that a = 5 +
51 where 5 = e2i/5 = cos(2/5) + i sin(2/5) is the fifth root of unity one
fifth of the way clockwise around the complex unit circle. Thus a2 + a 1 =
52 + 2 + 53 + 5 + 54 1, and the right side is 0 by the finite geometric sum
formula. That is,
a2 + a 1 = 0, a > 0,
and so the length of the thick edges is
1 + 5
a= = 0.618033999 .
2
This number is a variant of the so-called Golden Ratio.
(b) The dome has a point at the north pole (0, 0, 1), then a layer of five
points p0 through p4 around the north pole at some colatitude , then a
layer of ten points q0 through q9 , five at colatitude 2 and the other five at
some second colatitude , and finally the layer of ten equatorial points r0
through r9 . The colatitude must be such that the triangle with vertices n,
q0 , and q2 is equilateral. These vertices may be taken to be
n = (0, 0, 1),
q0 , q2 = (cos(/5) sin(2), sin(/5) sin(2), cos(2)).
= arctan(a) = 31.7175 .
Use the cross-sectional triangle having vertices 0, n, p0 and the law of cosines
to show that the shorter segments have length
q
b = 2(1 1/ 2 a) = 0.546533058 .
6.8 Topological Preliminaries for the Change of Variable Theorem 331
(Alternatively, one can find and b by using the triangle with vertices n, p0 ,
p1 .) For reference in part (e), show that
2 = arctan(2) = 63.4350 .
(c) Show that the angle of an isoceles triangle where its equal sides meet
at a 5-vertex is
= 2 arcsin(a/(2b)) = 68.862 ,
and the angles where its unequal sides meet at 6-vertices are
= arccos(a/(2b)) = 55.569 .
(d) Show that the angle where two a-segments meet along a geodesic
is 180 36 . Show that the angle where two b-segments meet along a geodesic
(this happens at the 6-vertices but not at the 5-vertices) is 180 .
(e) To find the colatitude of q1 , q3 , , q9 , take q9 and q1 to be
q9 , q1 = (cos(/5) sin(2), sin(/5) sin(2), cos(2)),
and consider the geodesic containing them. Their cross product is normal to
the plane of the geodesic. Show that this cross product is
q9 q1 = 2 sin(/5) sin(2)( cos(2), 0, cos(/5) sin(2)).
Show by illustration that the latitude
of this cross product is the colatitude
of q9 and q1 . Show that = arctan( 2 + a). Show further that (a+1)2 = 2+a,
so that in fact
= arctan(a + 1) = 58.2825 .
: A Rn
Let
f : (K) R
be a continuous function. Then
Z Z
f= (f ) | det |.
(K) K
Thus the obvious data for the theorem are K, , and f . (The description of
subsumes A, and in any case the role of A is auxiliary.) But also, although the
dimension n is conceptually generic-but-fixed, in fact the proof of the theorem
will entail induction on n, so that we should view n as a variable part of the
setup as well. Here are some comments about the data.
6.8 Topological Preliminaries for the Change of Variable Theorem 333
x-axis is on the boundary of the parametrized disk even though they both
come from the boundary of the parametrizing rectangle. On the other
hand, every nonboundary point of the parametrizing rectangle is taken
to a nonboundary point of the parametrized disk, so that every bound-
ary point of the parametrized disk comes from a boundary point of the
parametrizing rectangle.)
While the hypotheses about are weaker than necessary in order to make
the theorem easier to use, the hypothesis that f is continuous is stronger
than necessary in order to make the theorem easier to prove. The theorem
continues to hold if f is assumed only to be integrable, but then the proof
requires more work. In calculus examples, f is virtually always continuous.
This subject will be revisited at the end of chapter 7.
Figure 6.46. The change of variable mapping need not behave well on the boundary
This section places a few more topological ideas into play to set up the
proof of the Change of Variable Theorem in the next section. The symbols K,
A, , and f denoting the set, the open superset, the change of variable, and the
function in the theorem will retain their meanings throughout the discussion.
Symbols such as S will denote other sets, symbols such as will denote other
transformations, and symbols such as g will denote other functions.
Recall some topological ideas that we have already discussed.
For any point a Rn and any positive real number r > 0, the open ball
centered at a of radius r is the set
B(a, r) = {x Rn : |x a| < r} .
A point a Rn is called a limit point of a set S Rn if every open ball
centered at a contains some point x S such that x 6= a. The subset A
of Rn is called closed if it contains all of its limit points.
Definition 6.8.1. Let S be a subset of Rn . Its closure S is the smallest closed
superset of S.
6.8 Topological Preliminaries for the Change of Variable Theorem 335
A boundary point of a set need not be a limit point of the set, and a limit
point of a set need not be a boundary point of the set (exercise 6.8.1(b)).
Nonetheless, similarly to the definition of closed set in the second bullet be-
fore Definition 6.8.1, a set is closed if and only if it contains all of its boundary
points (exercise 6.8.1(c)). The boundary of any set is closed (exercise 6.8.1(d)).
Since the definition of boundary point is symmetric in the set and its comple-
ment, the boundary of the set is also the boundary of the complement,
S = (S c ).
In general, the closure of a set is the union of the set and its boundary (exer-
cise 6.8.2(a)),
S = S S.
If S is bounded then so is its closure S (exercise 6.8.2(b)), and therefore the
closure of a bounded set is compact. The special-case definition
B(a, r) = {x Rn : |x a| = r}
Proof (Sketch). Suppose that no finite collection of the open boxes Ji cov-
ers K. Let B1 be a box that contains K. Partition B1 into 2n subboxes B e by
bisecting it in each direction. If for each subbox B,e some finite collection of
the open boxes Ji covers K B, e then the 2n -fold collection of these finite col-
lections in fact covers all of K. Thus no finite collection of the open boxes Ji
covers K B e for at least one subbox B e of B1 . Name some such subbox B2 ,
repeat the argument with B2 in place of B1 , and continue in this fashion,
obtaining nested boxes
B1 B2 B3
whose sides are half as long at each succeeding generation, and such that no
K Bj is covered by a finite collection of the open boxes Ji . The intersection
K B1 B2 contains at most one point because the boxes Bj eventually
shrink smaller than the distance between any two given distinct points. On
the other hand, since each K Bj is nonempty (else the empty subcollection
of the open boxes Ji covers it), there is a sequence {cj } with each cj K Bj ;
and since K is compact and each Bj is compact and the Bj are nested, the
sequence {cj } has a subsequence that converges in K and in each Bj , hence
converging in the intersection K B1 B2 . Thus the intersection is a
single point c. Some open box Ji covers c because c K, and so because the
boxes Bj shrink to c, also Ji covers Bj for all high enough indices j. This
contradicts the fact that no K Bj is covered by finitely many Ji . Thus the
initial supposition that no finite collection of the open boxes Ji covers K is
untenable.
Although the finiteness property of compact sets plays only a small role in
these notes, the idea is important and far-reaching. For example, it lies at the
heart of sequence-free proofs that the continuous image of a compact set is
compact, the continuous image of a connected set is connected, and continuity
on compact sets is uniform.
The following lemma is similar to the Difference Magnification Lemma
(Lemma 5.1.3). Its content is that although passing a box through a mapping
neednt give another box, if the box is somewhat uniform in its dimensions
and if the mapping has bounded derivatives then the mapping takes the box
into a second box that isnt too much bigger than the original.
: [0, 1] Rn , x x).
(t) = x + t(
6.8 Topological Preliminaries for the Change of Variable Theorem 337
Fix any i {1, , n}. Identically to the proof of the Difference Magnification
Lemma, we have for some t (0, 1),
For each j, the jth entry of the vector gi ((t)) is Dj gi ((t)), and we are
given that |Dj gi ((t))| c. Also, the jth entry of the vector x
x satisfies
|
xj xj | /2 where is the longest side of B. Thus
|gi (
x) gi (x)| nc/2,
and so
gi (B) [gi (x) nc/2, gi (x) + nc/2].
Apply this argument for each i {1, , n} to show that g(B) lies in the
box B centered at g(x) having sides nc and therefore having volume
vol(B ) = (nc)n .
vol(B) (/2)n .
Using the previous two results, we can show that the property of having
volume zero is preserved under mappings that are well enough behaved. How-
ever, we need to assume more than just continuity. The property of having
volume zero is not a topological property.
Proof. For each s S there exists an rs > 0 such that the copy of the
box [rs , rs ]n centered at s lies in A (exercise 6.8.5(a)). Let Js denote the cor-
responding open box, i.e., a copy of (rs , rs )n centered at s. By the Finiteness
Property of compact sets, a collection of finitely many of the open boxes Js
covers S, so certainly the corresponding collection U of the closed boxes does
so as well. As a finite union of compact sets, U is compact (exercise 6.8.1(f)).
Therefore the partial derivatives Dj i for i, j = 1, , n are uniformly con-
tinuous on U , and so some constant c bounds all Dj i on U .
Let > 0 be given. Cover S by finitely many boxes Bi having total volume
less than /(2nc)n . After replacing each box by its intersections with the boxes
of U , we may assume that the boxes all lie in U . (Here it is relevant that the
intersection of two boxes is a box.) And after further subdividing the boxes if
338 6 Integration
necessary, we may assume that the longest side of each box is at most twice the
shortest side (exercise 6.8.6(b)). By the Box-Volume Magnification Lemma,
the -images of the boxes lie in a union of boxes Bi having volume
X X
vol(Bi ) (2nc)n vol(Bi ) < .
i i
The interior of any set S is open (exercise 6.8.6(a)). Any set decomposes
as the disjoint union of its interior points and its boundary points (exer-
cise 6.8.6(b)),
S = S (S S), S S = .
As anticipated at the beginning of the section, we now can complete the
argument that the properties of the set K in the Change of Variable Theorem
are preserved by the mapping in the theorem.
Proof. We have discussed the fact that (K) is again compact and connected.
Restrict to K. The Inverse Function Theorem says that maps interior
points of K to interior points of (K), and thus ((K)) (K). By the
Volume-Zero Preservation proposition vol((K)) = 0. So vol(((K))) = 0
as well.
Exercises
6.8.1. (a) Show that every intersectionnot just twofold intersections and
not even just finite-fold intersectionsof closed sets is closed. (Recall from
Proposition 2.4.5 that a set S is closed if and only if every sequence in S that
converges in Rn in fact converges in S.)
(b) Show by example that a boundary point of a set need not be a limit
point of the set. Show by example that a limit point of a set need not be a
boundary point of the set.
6.9 Proof of the Change of Variable Theorem 339
(c) Show that a set is closed if and only if it contains each of its boundary
points. (Again recall the characterization of closed sets mentioned in part (a).)
(d) Show that the boundary of any set is closed.
(e) Show that every union of two closed sets is closed. It follows that any
union of finitely many closed sets is closed. Recall that by definition a set is
open if its complement is closed. Explain why consequently every intersection
of finitely many open sets is open.
(f) Explain why any union of finitely many compact sets is compact.
6.8.3. (a) Which points of the proof of Proposition 6.8.4 are sketchy? Fill in
the details.
(b) Let S be an unbounded subset of Rn , meaning that S is not contained
in any ball. Find a collection of open boxes Ji that covers S but such that no
finite subcollection of the open boxes Ji covers S.
(c) Let S be an bounded but non-closed subset of Rn , meaning that S is
bounded but missing a limit point. Find a collection of open boxes Ji that
covers S but such that no finite subcollection of the open boxes Ji covers S.
6.8.4. Let > 0. Consider the box B = [0, 1] [0, ] R2 , and consider
the mapping g : R2 R2 given by g(x, y) = (x, x). What is the small-
est box B containing g(B)? What is the ratio vol(B )/vol(B)? Discuss the
relation between this example and Lemma 6.8.5.
6.8.5. The following questions are about the proof of Proposition 6.8.6.
(a) Explain why for each s S there exists an rs > 0 such that the copy
of the box [rs , rs ]n centered at s lies in A.
(b) Explain why any box (with all sides assumed to be positive) can be
subdivided into boxes whose longest side is at most twice the shortest side.
(In the left side of figure 6.47, the type I subboxes are shaded and the type II
subboxes are white. There are no type III subboxes in the figure, but type III
subboxes play no role in the pending argument anyway.) The three types of
box are exclusive and exhaustive (exercise 6.9.2(a)).
Figure 6.47. Type I and type II subboxes, image of the type I subboxes
(exercise 6.9.2(c)).
Let [
(K)I = (J), (K)II = (K)\(K)I .
J:type I
(Thus (K)I is shaded in the right side of figure 6.47 while (K)II is white.)
Then the integral on the left side of the equality in the Change of Variable
Theorem decomposes into two parts,
Z Z Z
f= f+ f,
(K) (K)I (K)II
Also, [
(K)II (J),
J : type II
so that Z Z Z
X
f |f | |f |.
(K)II (K)II (J)
J : type II
That is, the second term on the right side of (6.12) contributes as negligibly
as desired to the integral on the left side, which is the integral on the left side
of the Change of Variable Theorem. In terms of figure 6.47, the idea is that if
the boxes in the left half of the figure are refined until the sum of the white
box-areas is small enough then the integral of f over the corresponding small
white region in the right half of the figure becomes negligible
Meanwhile, the integral on the right side of the equality in the Change of
Variable Theorem also decomposes into two parts,
Z X Z X Z
(f ) | det | = g+ g. (6.13)
K J : type I J J : type II J
That is, the second term on the right side of (6.13) contributes as negligibly
as desired to the integral on the left side, which is the integral on the right
side of the Change of Variable Theorem. In terms of figure 6.47, the idea is
that if the boxes in the left half of the figure are refined until the sum of the
white box-areas is small enough then the integral of (f ) | det | over the
white boxes becomes negligible. That is, it suffices to prove the Change of
Variable Theorem for boxes like the shaded boxes in the left half of the figure.
The type I subboxes J of the partition of the box B containing the orig-
inal K (which is not assumed to be a box) satisfy all of the additional hy-
potheses in the statement of the proposition: each J is a box, and we may
shrink the domain of to the open superset K of each J, where is injective
and where det 6= 0. Thus, knowing the Change of Variable Theorem sub-
ject to any of the additional hypotheses says that the first terms on the right
sides of (6.12) and (6.13) are equal, making the integrals on the left sides lie
within of each other. Since is arbitrary, the integrals are in fact equal. In
sum, it suffices to prove the Change of Variable Theorem assuming any of the
additional hypotheses as desired.
Similarly to the remark after Proposition 6.9.1, we will not always want
the additional hypotheses.
Proof. With the previous proposition in play, the idea now is to run through its
proof in reverse, starting from the strengthened hypotheses that it grants us.
Thus we freely assume that K is a box, that the change of variable mapping
is injective on all of A, and that det 6= 0 on all of A. By the Inverse Function
Theorem, the superset (A) of (K) is open and : A (A) has a C 1
inverse
1 : (A) A.
Let > 0 be given.
Let B be a box containing (K), and let P be a partition of B into
subboxes J. Define three types of subbox,
These three types of box are exclusive and exhaustive. Also, define as before
(
(f )(x) | det (x)| if x K,
g : B R, g(x) =
0 if x
/ K.
Figure 6.48. Type I, II, and III subboxes, inverse image of the type I subboxes
Let [
KI = 1 (J), KII = K\KI .
J:type I
Then the integral on the left side of the equality in the Change of Variable
Theorem decomposes into two parts,
Z X Z X Z
f= f+ f. (6.14)
(K) J : type I J J : type II J
That is, the second term on the right side of (6.14) contributes as negligibly
as desired to the integral on the left side, which is the integral on the left side
of the Change of Variable Theorem.
Meanwhile, the integral on the right side of the equality in the Change of
Variable Theorem also decomposes into two parts,
Z Z Z
(f ) | det | = g+ g,
K KI KII
Also, [
KII 1 (J),
J : type II
so that Z Z Z
X
g |g| |g|.
KII KII J : type II 1 (J)
6.9 Proof of the Change of Variable Theorem 345
For each box J of type II, vol(1 (J)) (2nc)n vol(J). Thus, by the bounds
on g and on the sum of the type II box-volumes, it follows that
Z
g < .
KII
That is, the second term on the right side of (6.15) contributes as negligibly
as desired to the integral on the left side, which is the integral on the right
side of the Change of Variable Theorem.
The type I subboxes J of the partition of the box B containing the orig-
inal (K) (which is not assumed to be a box) satisfy the new additional
hypothesis in the statement of the proposition. The other two additional hy-
pothesis in the statement of the proposition are already assumed. Thus, know-
ing the Change of Variable Theorem subject to the additional hypotheses says
that the first terms on the right sides of (6.14) and (6.15) are equal, making
the integrals on the left sides lie within of each other. Since is arbitrary, the
integrals are in fact equal. In sum, it suffices to prove the Change of Variable
Theorem assuming the additional hypotheses as desired.
Proposition 6.9.3 (Further Optional Hypothesis-Strengthening). To
prove the Change of Variable Theorem, it suffices to prove the theorem subject
to the additional hypothesis that f is identically 1.
As with the other hypothesis-strengthenings, we will not always want f to
be identically 1, but we may take it to be so when convenient.
Proof. We assume the strengthened hypotheses given us by Proposition 6.9.2.
Let P be a partition of the box (K) into subboxes J. For each subbox J,
view the quantity MJ (f ) = sup {f (x) : x J} both as a number and as a
constant function. Assume that the Change of Variable Theorem holds for
the constant function 1 and therefore for any constant function, and compute
Z XZ
(f ) | det | = (f ) | det |
K J 1 (J)
XZ
(MJ (f ) ) | det |
J 1 (J)
XZ
= MJ (f ) by the assumption
J J
X
= MJ (f ) vol(J)
J
= U (f, P ).
R
As a lower bound of the upper sums, K (f )| det | is at most the integral,
Z Z
(f ) | det | f.
K (K)
346 6 Integration
A similar argument gives the opposite inequality, making the integrals equal
as desired.
The next result will allow the proof of the Change of Variable Theorem to
decompose the change of variable mapping.
and Z Z
1= | det |
( (K)) (K)
then also Z Z
1= | det |.
(K) K
Proof. Let
T : Rn Rn
be an invertible linear mapping having matrix M . Thus T (x) = M for all x.
Also, T is a composition of recombines, scales, and transpositions, and so
by the persistence of the Change of Variable Theorem under composition it
suffices to prove the theorem assuming that T is a recombine or a scale or a
transposition. In each case, Propositions 6.9.1 and 6.9.3 allow us to assume
that K is a box B and f = 1. Thus the desired result is simply
Proposition 6.9.6 (Base Case for the Induction). The Change of Vari-
able Theorem holds if n = 1.
: [a, b] R
can take the value 0 only at a and b. Thus by the Intermediate Value Theorem,
never changes sign on [a, b]. If 0 on [a, b] then is increasing, and so
(using Theorem 6.4.3 for the second equality),
Z Z (b) Z b Z
f= f= (f ) = (f ) | |.
([a,b]) (a) a [a,b]
(exercise 6.9.3) shows that det t 6= 0 on Bn1 . Thus for each t, the set Bn1
and the transformation t satisfy the Change of Variable Theorem hypotheses
in dimension n 1. Compute, using Fubinis Theorem, quoting the Change
of Variable Theorem in dimension n 1, and citing formula (6.16) and again
using Fubinis Theorem, that
Z Z Z Z Z Z
1= 1= | det t | = | det |.
(B) tI t (Bn1 ) tI Bn1 B
At long last we can prove the Change of Variable Theorem for n > 1.
Proof. We may assume the result for dimension n 1, and we may assume
that K is a box B, that A is an open superset of B, and that : A Rn is
a C 1 -mapping such that is injective on A and det 6= 0 on A. We need to
show that Z Z
1= | det |. (6.17)
(B) B
= T ,
where and are C 1 -mappings that fix at least one coordinate and T is a
linear transformation. Note that , , and T inherit injectivity and nonzero
determinant-derivatives from , so that in particular T is invertible. Since the
theorem holds for each of , , and T , it holds for their composition. In more
detail,
Z Z
1= | det T | by Proposition 6.9.5
T ( ( (J))) ( (J))
Z
= | det(T )| | det | by Proposition 6.9.7
(J)
Z
= | det(T ) | by the Chain Rule
(J)
Z
= | det (T ) | | det | by Proposition 6.9.7
ZJ
= | det(T ) | by the Chain Rule.
J
T = Dx
and define
e = T 1 ,
so that D ex = idn is the n-dimensional identity map. Introduce the nth
projection function, n (x1 , , xn ) = xn , and further define
: A Rn , e1 , ,
= ( en1 , n ),
: (Ax ) Rn , en 1 ).
= (1 , , n1 ,
Exercises
6.9.1. Let K be a nonempty compact subset of R. Explain why the quantities
a = min{x : x K} and b = max{x : x K} exist. Now further assume that
K is path-connected, so that in particular there is a continuous function
: [0, 1] R
such that (0) = a and (1) = b. Explain why consequently K = [a, b].
6.9.2. (a) Explain to yourself as necessary why the three types of rectangle
in the proof of Proposition 6.9.1 are exclusive. Now suppose that the three
types are not exhaustive, i.e., some rectangle J lies partly in K and partly
in (B\K) without meeting the set K = (B\K). Supply details as necessary
for the following argument. Let x J lie in K and let x J lie in (B\K) .
Define a function from the unit interval to R by mapping the interval to the
line segment from x to x , and then mapping each point of the segment to 1 if
it lies in K and to 1 if it lies in B\K. The resulting function is continuous
on the interval, and it changes sign on the interval, but it does not take the
value 0. This is impossible, so the rectangle J can not exist.
(b) In the proof of Proposition 6.9.1, show that we may assume that the
partition P is fine enough that all subboxes J of type I and type II lie in U .
(c) In the proof of Proposition 6.9.1, show that given > 0, we may assume
that the partition P is fine enough that
X
vol(J) < min , .
R(2nc)n RR e
J:type II
352 6 Integration
6.10 Summary
f : Rn R
briefly touches on the fact that for functions that vanish off a compact set,
C 0 -functions and C 1 -functions and C 2 -functions are well approximated by C -
functions.
The approximation technology is an integral called the convolution. The
idea is as follows. Suppose that we had a function
: Rn R
with the following properties:
(1) (x)
R = 0 for all x 6= 0,
(2) xRn (x) = 1.
So conceptually the graph of is an infinitely high, infinitely narrow spike
above 0 having total volume 1. No such function exists, at least not in the
usual sense of function. (The function , known as the Dirac delta function,
is an example of a distribution, distributions being objects that generalize
functions.) Nonetheless, if were sensible then for any function f : Rn R
and for any x Rn we would have in consequence that the graph of the
product of f and the x-translate of is an infinitely high, infinitely narrow
spike above x having total volume f (x),
(1) Rf (y)(x y) = 0 for all y 6= x,
(2) yRn f (y)(x y) = f (x).
That is, granting the Dirac delta function, any function f can be expressed
as an integral. The idea motivating convolution is that if we replace the ideal-
ized delta function by a smooth pulse , big-but-finitely high and small-but-
positively wide and having total volume 1, and if f is well enough behaved
(e.g., f is continuous and vanishes off a compact set) then we should still
recover a close approximation of f from the resulting integral,
Z
f (y)(x y) f (x).
yRn
The approximating integral on the left side of the previous display is the
convolution of f and evaluated at x. Although f is assumed only to be con-
tinuous, the convolution is smooth. Indeed, any xi -derivative passes through
the y-integral and is smooth, so that
Z Z
f (y)(x y) = f (y) (x y),
xi y y x i
f : Rn R
The support of f is the closure of the set of its inputs that produce nonzero
outputs,
supp(f ) = {x Rn : f (x) 6= 0}.
The function f is compactly supported if its support is compact. The class
of compactly supported C k -functions is denoted Cck (Rn ). Especially, Cc0 (Rn )
denotes the class of compactly supported continuous functions.
Each class Cck (Rn ) of functions forms a vector space over R (exercise 7.1.1).
Figure 7.1 shows a compactly supported C 0 -function on R and its support.
The graph has some corners, so the function is not C 1 .
The class of test functions sits at the end of the chain of containments of
function-spaces from a moment ago,
356 7 Approximation by Smooth Functions
\
Cc (Rn ) = Cck (Rn ),
k0
all of the containments are proper. Indeed, for the first containment, Weier-
strass showed how to construct a function f of one variable, having sup-
port [0, 1], that is continuous everywhere but differentiable nowhere on its
support. The function of n variables
f0 (x1 , x2 , , xn ) = f (|x1 , x2 , , xn |)
thus lies in Cc0 (Rn ) but not in Cc1 (Rn ). Next, the function
Z x1
f1 (x1 , x2 , , xn ) = f0 (t1 , x2 , , xn )
t1 =0
lies in Cc1 (Rn ) but not Cc2 (Rn ) because its first partial derivative is f0 , which
does not have a first partial derivative. Defining f2 as a similar integral of f1
gives a function that lies in Cc2 (Rn ) but not Cc3 (Rn ), and so on. Finally, none
of the functions fk just described lies in Cc (Rn ).
For any k > 0 and any f Cck (Rn ), the supports of the partial derivatives
are contained in the support of the original function,
supp(Dj f ) supp(f ), j = 1, , n.
Thus the partial derivative operators Dj take Cck (Rn ) to Cck1 (Rn ) as sets.
The operators are linear because
Dj (f + f) = Dj f + Dj f, f, f Cck (Rn )
and
Dj (cf ) = c Dj f, f Cck (Rn ), c R.
In addition, more can be said about the Dj operators. Each space Cck (Rn ) of
functions carries an absolute value function having properties similar to the
absolute value on Euclidean space Rn . With these absolute values in place,
the partial differentiation operators are continuous.
Definition 7.1.3 (Cck (Rn ) Absolute Value). The absolute value function
on Cc0 (Rn ) is
| |k : Cck (Rn ) R
given by
|f |,
|D j f | for j = 1, , n,
|f |k = max |D jj f | for j, j = 1, , n,
.
.
.
.
|Dj1 jk f | for j1 , , jk = 1, , n
That is, |f |k is the largest absolute value of f or of any derivative of f up to
order k. In particular, | |0 = | |.
The largest absolute values mentioned in the definition exist by the Ex-
treme Value Theorem since the relevant partial derivatives are compactly sup-
ported and continuous. By contrast, we have not defined an absolute value
on the space of test functions Cc (Rn ) because the obvious attempt to extend
Definition 7.1.3 to test function would involve the maximum of an infinite set,
a maximum that certainly need not exist.
Proposition 7.1.4 (Cck (Rn ) Absolute Value Properties).
(A1) Absolute value is positive: |f |k 0 for all f Cck (Rn ), and |f |k = 0 if
and only if f is the zero function.
(A2) Scaling Property: |cf |k = |c| |f |k for all c R and f Cck (Rn ).
(A3) Triangle Inequality: |f + g|k |f |k + |g|k for all f, g Cck (Rn ).
Proof. The first two properties are straightforward to check. For the third
property, note that for any f, g Cc0 (Rn ) and any x Rn ,
|(f + g)(x)| |f (x)| + |g(x)| |f | + |g|.
Thus |f | + |g| is an upper bound of all values |(f + g)(x)|, so that
|f + g| |f | + |g|.
That is, |f + g|0 |f |0 + |g|0 . If f, g Cc1 (Rn ) then the same argument shows
that also |Dj (f + g)| |Dj f | + |Dj g| for j = 1, , n, so that
( )
|f + g|,
|f + g|1 = max
|Dj f + Dj g| for j = 1, , n
( )
|f | + |g|,
max
|Dj f | + |Dj g| for j = 1, , n
( ) ( )
|f |, |g|,
max + max
|Dj f | for j = 1, , n |Dj g| for j = 1, , n
= |f |1 + |g|1 .
358 7 Approximation by Smooth Functions
Fix any j {1, , n}. As a subset of the information in the previous display,
lim |Dj fm Dj f | = 0,
m
lim |Djj fm Djj f | = 0 for j = 1, , n,
m
..
.
lim |Djj2 jk fm Djj2 jk f | = 0 for j2 , jk = 1, , n.
m
That is,
lim |Dj fm Dj f |k1 = 0.
m
The implication that we have just shown,
lim |fm f |k = 0 = lim |Dj fm Dj f |k1 = 0,
m m
is exactly the assertion that Dj : Cck (Rn ) Cck1 (Rn ) is continuous, and the
proof is complete.
7.1 Spaces of Functions 359
Again let k 1. The fact that |f |k1 |f |k for any f Cck (Rn ) (exer-
cise 7.1.2) shows that for any f Cck (Rn ) and any sequence {fm } in Cck (Rn ), if
limm |fm f |k = 0 then limm |fm f |k1 = 0. That is, the inclusion mapping
is continuous.
The space Cc (Rn ) of test functions is closed under partial differentiation,
meaning that the partial derivatives of a test function are again test functions
(exercise 7.1.3).
In this chapter we will show that just as any real number x R is ap-
proximated as closely as desired by rational numbers q Q, any compactly
supported continuous function f Cck (Rn ) is approximated as closely as de-
sired by test functions g Cc (Rn ). More precisely, we will show that:
For any f Cck (Rn ), there exists a sequence {fm } in Cc (Rn ) such
that limm |fm f |k = 0.
The fact that limm |fm f |k = 0 means that given any > 0, there exists
a starting index m0 such that fm for all m m0 uniformly approximates f
to within up to kth order. That is, for all m m0 , simultaneously for
all x Rn ,
Exercises
7.1.1. Show that each class Cck (Rn ) of functions forms a vector space over R.
7.1.3. Explain why each partial derivative of a test function is again a test
function.
7.1.4. Let {fn } be a sequence of functions in Cc0 (Rn ), and suppose that the
sequence converges, meaning that there exists a function f : Rn R such
that limn fn (x) = f (x) for all x Rn . Must f have compact support? Must
f be continuous?
360 7 Approximation by Smooth Functions
(See figure 7.2.) Each x < 0 lies in an open interval on which s is the constant
function 0, and each x > 0 lies in an open interval on which s is a composition
of smooth functions, so in either case all derivatives s(k) (x) exist. More specif-
ically, for any nonnegative integer k, there exists a polynomial pk (x) such that
the kth derivative of s takes the form
0 if x < 0,
s(k) (x) = pk (x)x2k e1/x if x > 0,
? if x = 0.
Only s(k) (0) is in question. However, s(0) (0) = 0, and if we assume that
s(k) (0) = 0 for some k 0 then it follows (because exponential behavior
dominates polynomial behavior) that
That is, s(k+1) (0) exists and equals 0 as well. By induction, s(k) (0) = 0 for
all k 0. Thus s is smooth: each derivative exists, and each derivative is
continuous because the next derivative exists as well. But s is not a test
function because its support is not compact: supp(s) = [0, ).
s(x + 1)s(x + 1)
p : R R, p(x) = R 1 .
x=1
s(x + 1)s(x + 1)
The graph of p (figure 7.3) explains the name pulse function. As a product of
compositions of smooth functions, p is smooth. The support of p is [1, 1], so
p is a test function. Also, p is normalized so that
Z
p = 1.
[1,1]
The maximum pulse value p(0) is therefore close to 1 because the pulse graph
is roughly a triangle of base 2, but p(0) is not exactly 1. The pulse function
p2 (x, y) = p(x)p(y) from R2 to R, having support [1, 1]2 , is shown in fig-
ure 7.4. A similar pulse function p3 on R3 can be imagined as a concentration
of density in a box about the origin.
-1 1
Exercises
7.2.1. Since the function s in the section is smooth, it has nth degree Taylor
polynomials Tn (x) at a = 0 for all nonnegative integers n. (Here n does not
denote the dimension of Euclidean space.) For what x does s(x) = Tn (x)?
7.2.2. Let p be the pulse function defined in the section. Explain why
supp(p) = [1, 1].
0
-1
-1
1
7.3 Convolution
This section shows how to construct test functions from Cc0 (Rn )-functions. In
preparation, we introduce a handy piece of notation.
S T = {s t : s S, t T }.
S\T = {s S : s
/ T }.
Returning to Cc0 (Rn )-functions, any such function can be integrated over
all of Rn .
Definition 7.3.2 (Integral of a Cc0 (Rn )-Function). Let f Cc0 (Rn ). The
integral of f is the integral of f over any box that contains its support,
Z Z
f= f where supp(f ) B.
B
In Definition 7.3.2 the integral on the right side exists by Theorem 6.3.1.
Also, the integral on the right side is independent of the suitable box B, always
being the integral over the intersection of all such boxes, the smallest suitable
box. Thus the integral
R on the leftR side exists and is unambiguous. We do not
bother writing Rn f rather than f , because it is understood that by default
we are integrating f over Rn .
For any fixed x Rn , the corresponding cross section of the mollifying kernel
is denoted x ,
x : Rn R, x (y) = (x, y).
Definition 7.3.4 (Convolution). Let f Cc0 (Rn ) and let Cc (Rn ). The
convolution of f and is the function defined by integrating the mollifying
kernel,
Z Z
f : Rn R, (f )(x) = x (y) = f (y)(x y).
y y
364 7 Approximation by Smooth Functions
f (y) (x y)
x (y)
Dj (f ) = f Dj , j = 1, , n,
x = y + z, y supp(f ), z supp().
Since the integral is being taken over some box B, the equality follows from
Proposition 6.6.2. But we prove it using other methods, for reasons that will
366 7 Approximation by Smooth Functions
(x y)
f (y)
Figure 7.7. The mollifying kernel is zero for x outside supp(f ) + supp()
Assuming that |h| < 1, the support of the integrand as a function of y lies in
the bounded set
{x + tej : 1 < t < 1} supp(),
and therefore the integral can be taken over some box B. By the Unifor-
mity Lemma, given any > 0, for all small enough h the integrand is less
than /(R vol(B)) uniformly in y. Consequently the integral is less than /R.
In sum, given any > 0, for all small enough h we have
(f )(x + hej ) (f )(x)
(f Dj )(x) < .
h
Since x is arbitrary, this gives the desired result for first-order partial deriva-
tives,
Dj (f ) = f Dj , j = 1, , n.
As for higher-order partial derivatives, note that Dj Cc (Rn ) for each j.
So the same result for second-order partial derivatives follows,
Djj (f ) = Dj (f Dj ) = f Djj , j, j = 1, , n,
and so on.
7.3 Convolution 367
Corollary 7.3.7. Let k 1, let f Cck (Rn ), and let Cc (Rn ). Then
Dj1 jk (f ) = Dj1 jk f , j1 , , jk = 1, , n.
Proof. Since Z
(f )(x) = f (y)(x y),
y
Now the proof of the proposition works with the roles of f and exchanged
to show that Dj (f ) = Dj f for j = 1, , n. (Here is where it is
relevant that the Uniformity Lemma requires only a Cc1 (Rn )-function rather
than a test function.) Similarly, if f Cc2 (Rn ) then because Dj f Cc1 (Rn ) for
j = 1, , n it follows that.
Djj (f ) = Djj f , j, j = 1, , n.
Consider a function f Cc0 (Rn ). Now that we know that any convolution
f (where Cc (Rn )) lies in Cc (Rn ), the next question is to what extent
the test function f resembles the original compactly supported continuous
function f . As already noted, for any x the integral
Z
(f )(x) = f (y)(x y)
y
Exercises
7.3.1. (a) Show that the sum of two compact sets is compact.
(b) Let B(a, r) and B(b, s) be open balls. Show that their sum is B(a +
b, r + s).
(c) Recall that there are four standard axioms for addition, either in the
context of a field or a vector space. Which of the four axioms are satisfied by
set addition, and which are not?
(d) Let 0 < a < b. Let A be the circle of radius b in the (x, y)-plane,
centered at the origin. Let B be the closed disk of radius a in the (x, z)-plane,
centered at (b, 0, 0). Describe the sum A + B.
{m } = {1 , 2 , 3 , }
such that:
(1) Each m is nonnegative, i.e.,Reach m maps Rn to R0 .
(2) Each m has integral 1, i.e., m = 1 for each m.
(3) The supports of the m shrink to {0}, i.e.,
\
supp(1 ) supp(2 ) , supp(m ) = {0}.
m=1
8 8
-0.125 0.125
Figure 7.8. The functions 2 , 4 , 8 , and 15 from an approximate identity
16 16
-1
1
-
2
1
1 2
16 16
1 1
- -
3 1 4 1
3 4
No such function exists in the orthodox sense of the word function. But re-
gardless of sense, for any function f : Rn R and any x Rn , the mollifying
kernel associated to f and ,
is conceptually a point of mass f (x) at each x. That is, its properties should
be Z
supp(x ) = {x}, (f )(x) = x (y) = f (x).
y
Under a generalized notion of function, the Dirac delta makes perfect sense as
an object called a distribution, defined by the integral in the previous display
but only for a limited class of functions:
Yes, now it is f that is restricted to be a test function. The reason for this is
that is not a test function, not being a function at all, and to get a good
theory of distributions such as , we need to restrict the functions that they
convolve with. In sum, the Dirac delta function is an identity in the sense that
Distribution theory is beyond the scope of these notes, but we may conceive of
the identity property of the Dirac delta function as the expected limiting be-
havior of any test approximate identity. That is, returning to the environment
of f Cc0 (Rn ) and taking any test approximate identity {m }, we expect that
As explained in section 7.1, this limit will be uniform, meaning that the values
(f m )(x) will converge to f (x) at one rate simultaneously for all x in Rn .
See exercise 7.4.3 for an example of nonuniform convergence.
For an example of convolution with elements of a test approximate identity,
consider the sawtooth function
|x| if |x| 1/4,
f : R R, f (x) = 1/2 |x| if 1/4 < |x| 1/2,
0 if 1/2 < |x|.
Recall the test approximate identity {m } from after Definition 7.4.1. Fig-
ure 7.10 shows f and its convolutions with 2 , 4 , 8 , and 15 . The convo-
lutions approach the original function while smoothing its corners, and the
7.4 Test Approximate Identity and Convolution 371
{Sm } = {S1 , S2 , S3 , }
Then for any > 0 there exists some positive integer m0 such that
Proof. Let > 0 be given. If no Sm lies in B(0, ) then there exist points
x1 S1 \B(0, ),
x2 S2 \B(0, ),
x3 S3 \B(0, ),
372 7 Approximation by Smooth Functions
m m0 = |f m f | < .
Since the supports of the approximate identity functions shrink to {0}, the
Shrinking Sets Lemma says that there exists some positive integer m0 such
that for all integers m m0 , supp(m ) B(0, ). Note that m0 depends only
on , which in turn depends only on , all of this with no reference to any
particular x Rn . Now, for all x, y Rn , and all m m0 ,
Use the fact that the approximate identity functions m are nonnegative to
estimate that for all x Rn and all positive integers m,
Z
|(f m )(x) f (x)| = (f (y) f (x))m (x y)
y
Z
|f (y) f (x)|m (x y).
y
7.4 Test Approximate Identity and Convolution 373
This is the desired result. Note how the argument has used all three defining
properties of the approximate identity.
Corollary 7.4.4 (Cck (Rn )-Approximation by Convolutions). Let k be a
positive integer. Consider a function f Cck (Rn ) and let {m } : Rn R
be a test approximate identity. Given > 0, there exists a positive integer m0
such that for all integers m,
m m0 = |f m f |k < .
That is, the convolutions and their derivatives converge uniformly to the orig-
inal function and its derivatives up to order k.
Proof. Recall from Corollary 7.3.7 that if f Cc1 (Rn ) then for any test func-
tion the derivative of the convolution is the convolution of the derivative,
Dj (f ) = Dj f , j = 1, , n.
Since the derivatives Dj f lie in Cc0 (Rn ), the theorem says that their convo-
lutions Dj f m converge uniformly to the derivatives Dj f as desired. The
argument for higher derivatives is the same.
Exercises
R
7.4.1. Recall that p = 1 where p : Rn R is the pulse function from
section 7.2. Let m be any positive integer and recall the definition in the
section,
m (x) = mn p(mx1 ) p(mx2 ) p(mxn )..
R
Explain why consequently m = 1.
7.4.2. Find a sequence {Sm } of subsets of R satisfying all of the hypotheses
of the Shrinking Sets Lemma except for compactness, and such that no Sm is
a subset of the interval B(0, 1) = (1, 1).
7.4.3. This exercise illustrates a nonuniform limit. For each positive integer m,
define
fm : [0, 1] R, fm (x) = xm .
Also define (
0 if 0 x < 1,
f : [0, 1] R, f (x) =
1 if x = 1.
374 7 Approximation by Smooth Functions
Thus the function f is the limit of the sequence of functions {fm }. That is:
(c) Now let = 1/2. Show that for any positive integer m, no matter how
large, there exists some corresponding x [0, 1] such that |fm (x) f (x)| .
That is:
Thus the convergence of {fm } to f is not uniform, i.e., the functions do not
converge to the limit-function at one rate simultaneously for all x [0, 1].
f : Rn R.
Similarly to the remarks after Definition 7.3.2, the integral on the right side
exists, but this time by Theorem 6.5.4. The integral on the right side is inde-
pendent of the box B, and so the integral on the left side exists, is unambigu-
ous, and is understood to be the integral of f over all of Rn .
7.5 Known-Integrable Functions 375
x : Rn R, x (y) = f (y)(x y)
The formulas for convolution derivatives remain valid as well. That is, if f
Ic (Rn ) and Cc (Rn ) then also f Cc (Rn ), and
Dj (f ) = f j , j = 1, , n,
Djj (f ) = f Djj j , j, j = 1, , n,
and so on. Here is where it is relevant that our proof of Proposition 7.3.5
required only that each x be integrable, that f be bounded, and that lie
in Cc1 (Rn ).
Given a known-integrable function f Ic (Rn ) and a test approximate
identity {m }, we would like the convolutions {f m } to approximate f uni-
formly as m grows. But the following proposition shows that this is impossible
when f has discontinuities.
|f (
x) f (x)| = |f (
x) fm ( x) fm (x) + fm (x) f (x)|
x) + fm (
|f (
x) fm (
x)| + |fm (
x) fm (x)| + |fm (x) f (x)|.
Let > 0 be given. For all m large enough, the first and third terms are less
than /3 regardless of the values of x and x
. Fix such a value of m, and fix x.
Then since fm is continuous, the middle term is less than /3 if x is close
enough to x. It follows that
|f (
x) f (x)| < for all x
close enough to x.
Note that f lies in Ic (Rn ) rather than in Cc0 (Rn ) because of its discontinuities
at x = 1/2. Figure 7.11 shows f and its convolutions with 2 , 4 , 8 ,
and 15 . The convolutions converge uniformly to the truncated parabola on
compact sets away from the two points of discontinuity. But the convergence
is not well behaved at or near those two points. Indeed, the function value
f (1/2) = 1/4 rather than f (1/2) = 0 is arbitrary and has no effect on
the convolution in any case. And again the convolutions are bounded by the
bound on the original function and their supports shrink toward the original
support as m grows.
In consequence of Ic (Rn )-approximation by convolutions, any integral of
a known-integrable function is approximated as closely as desired by the in-
tegral of a test function. Thus the hypothesis of a continuous integrand f in
the Change of Variable Theorem for multiple integrals (Theorem 6.7.1), men-
tioned in the last bullet of the chapter introduction, can now be weakened to
a known-integrable integrand.
378 7 Approximation by Smooth Functions
7.6 Summary
The straightedge constructs the line that passes through any two given points
in the Euclidean plane. The compass constructs the circle that is centered at
any given point and has any given distance as its radius. Any finite succession
of straightedge and compass constructions is called a Euclidean construction.
Physical straightedge and compass constructions are imprecise. Further-
more, there is really no such thing as a straightedge: aside from having to be
380 8 Parametrized Curves
infinite, the line-constructor somehow requires a prior line for its own con-
struction. But we dont concern ourselves with the details of actual tools for
drawing lines and circles. Instead we imagine the constructions to be ideal,
and we focus on the theoretical question of what Euclidean constructions can
or can not accomplish.
With computer graphics being a matter of course to us today, the techno-
logical power of Euclidean constructions, however idealized, is underwhelming,
and so one might reasonably wonder why they deserve study. One point of this
section is to use the study of Euclidean constructions to demonstrate the idea
of investigating the limitations of a technology. That is, mathematical reason-
ing of one sort (in this case, algebra) can determine the capacities of some some
other sort of mathematical technique (in this case, Euclidean constructions).
In a similar spirit, a subject called Galois theory uses the mathematics of fi-
nite group theory to determine the capacities of solving polynomial equations
by radicals.
In a high school geometry course one should learn that Euclidean con-
structions have the capacity to
bisect an angle,
bisect a segment,
draw the line through a given point and perpendicular to a given line,
and draw the line through a given point and parallel to a given line.
These constructions (exercise 8.1.1) will be taken for granted here.
Two classical problems of antiquity are trisecting the angle and doubling
the cube. This section will argue algebraically that neither of these problems
can be solved by Euclidean constructions, and then the second point of this
section is to introduce particular curvesand methods to generate them
that solve the classical problems where Euclidean constructions fail to do so.
Take any two points in the plane and denote them 0 and 1. Use the
straightedge to draw the line through them. We may as well take the line
to be horizontal with 1 appearing to the right of 0. Now define any real num-
ber r as Euclidean if we can locate it on our number line with a Euclidean
construction. For instance, it is clear how the compass constructs the integers
from 0 to any specified n, positive or negative, in finitely many steps. Thus
the integers are Euclidean. Further, we can add an orthogonal line through
any integer. Repeating the process on such orthogonal lines gives us as much
of the integer-coordinate grid as we want.
Proposition 8.1.1. The Euclidean numbers form a subfield of R. That is, 0
and 1 are Euclidean, and if r and s are Euclidean, then so are r s, rs, and
(if s 6= 0) r/s.
Proof. We have already constructed 0 and 1, and given any r and s it is
easy to construct r s. If s 6= 0 then the construction shown in figure 8.1
produces r/s. Finally, to construct rs when s 6= 0, first construct 1/s and
then rs = r/(1/s) is Euclidean as well.
8.1 Euclidean Constructions and Two Curves 381
y
x
r/s r
Figure 8.1. Constructing r/s
Let E denote the field of Euclidean numbers. Since Q is the smallest sub-
field of R, it follows that Q E R. The questions are whether E is no more
than Q, whether E is all of R, andassuming that in fact E lies properly be-
tween Q and Rhow we can describe the elements of E. The next proposition
shows that E is a proper superfield of Q.
Proposition 8.1.2. If c 0 is constructible, i.e., if c E, then so is c.
x
c+1
2 1
Figure 8.2. Constructing c
382 8 Parametrized Curves
Thus, any real numberq expressible in terms of finitely many square roots
p
starting from Q, such as 1 + 2 + 3, lies in E. Next we show that the
converse holds as well. That is, any number in E is expressible in finitely
square roots starting from Q.
Definition 8.1.3. Let F be any subfield of R. A point in F is a point (x, y)
in the plane whose coordinates x and y belong to F. A line in F is a line
through two points in F. A circle in F is a circle whose center is a point in F
and whose radius is a number in F.
Exercise 8.1.3 shows that any line in F has equation ax + by + c = 0 where
a, b, c F, and any circle in F has equation x2 + y 2 + ax + by + c = 0 with
a, b, c F.
Proposition 8.1.4. Let F be any subfield of R. Let L1 , L2 be any nonparallel
lines in F, and let C1 , C2 be distinct circles in F. Then
(1) L1 L2 is a point in F.
(2) C1 C2 is either empty or it is one or two points whose coordinates are
expressible in terms of F and a square root of a value in F.
(3) C1 L1 is either empty or it is one or two points whose coordinates are
expressible in terms of F and a square root of a value in F.
Proof. (1) is exercise 8.1.4(a).
(2) reduces to (3), for if the circles
C1 : x2 + y 2 + a1 x + b1 y + c1 = 0,
C 2 : x 2 + y 2 + a 2 x + b2 y + c 2 = 0
intersect, then C1 C2 = C1 L where L is the line
L : (a1 a2 )x + (b1 b2 )y + (c1 c2 ) = 0
(exercise 8.1.4(b)). Since C1 is a circle in F, the equations for C2 and L show
that C2 is a circle in F if and only if L is a line in F.
To prove (3), keep the equation for the circle C1 and suppose the line L1
has equation dx + ey + f = 0. The case d = 0 is exercise 8.1.4(c). Otherwise
we may take d = 1 after dividing through by d, an operation that keeps the
other coefficients in F. Thus x = ey f . Now, for (x, y) to lie in C1 L1 ,
we need
(ey f )2 + y 2 + a1 (ey f ) + b1 y + c1 = 0,
a condition of the form Ay 2 + By + C = 0 with A, B, C F. Solving for y
involves at most a square root over F, and then x = ey f involves only
further operations in F.
This result characterizes the field E of constructible numbers. Points in E
are obtained by intersecting lines and circles, starting with lines and circles
in Q. By the proposition, this means taking a succession of square roots. Thus:
8.1 Euclidean Constructions and Two Curves 383
The field E is the set of numbers expressible in finitely many field and
square root operations starting from Q.
Now we can dispense with the two classical problems mentioned earlier.
Proof. Indeed, the side satisfies the relation x3 2 = 0, which again has no
quadratic factors.
x
O
Figure 8.3. A Conchoid
B E
D
C
x
O
A
P
C
O x
a 2a
C
B
the circle, and the two horizontal distances labeled x are equal by the nature
of the cissoid. Continuing to work in the right half of the figure, the right
triangle with base x and height y is similar to the two other right triangles,
and the analysis of the left half of the figure has shown that the unlabeled
vertical segment in the right half has height (2 x)/2. Thus the similar right
triangles give the relations
y 2x y x
= and = .
x y x (2 x)/2
It follows that
y2 y 2
= 2 x and 2
= .
x x 2x
Multiply the two equalities to get
y 3
= 2.
x
That is, multiplying the sides of a cube by y/x doubles the volume of the
cube, as desired.
8.1 Euclidean Constructions and Two Curves 387
P
M y
1 x 2 2x x
Exercises
8.1.1. Show how straightedge and compass constructions bisect an angle, bi-
sect a segment, draw the line through point P perpendicular to line L, and
draw the line through point P parallel to line L.
8.1.2. What tacit assumption does the proof of Proposition 8.1.2 make
about c? Complete the proof for constructible c 0 not satisfying the as-
sumption.
388 8 Parametrized Curves
8.1.3. For any subfield F of R, show that any line in F has equation ax + by +
c = 0 with a, b, c F; show that any circle in F has equation x2 + y 2 + ax +
by + c = 0 with a, b, c F. Are the converses to these statements true? If the
line passes through the pointp in direction d, what are the relations between
p, d and a, b, c? If the circle has center p and radius r, what are the relations
between p, r and a, b, c?
8.1.4. (a) If L1 and L2 are nonparallel lines in F, show that L1 L2 is a point
with coordinates in F.
(b) If C1 and C2 are distinct intersecting circles in F with equations x2 +
2
y +a1 x+b1 y+c1 = 0 for C1 and similarly for C2 , show that C1 C2 is equal to
C1 L where L is the line with equation (a1 a2 )x + (b1 b2 )y + (c1 c2 ) = 0.
(c) Prove Proposition 8.1.4 part (3) when C1 is as in part (b) here and L1
has equation ey + f = 0 with e 6= 0.
8.1.5. (a) Suppose that the angle is constructible. Show that the number
cos is constructible as well. 3
(b) Equate the real parts of the equality ei3 = ei to establish the
trigonometry identity cos 3 = 4 cos3 3 cos .
8.1.6. Show that Newtons organic construction really does generate the cis-
soid.
In physical terms, this definition is a curvy version of the familiar idea that
distance equals speed times time. For a more purely mathematical definition
of a curves arc length, we should take the limit of the lengths of inscribed
polygonal paths. Take a partition t0 < t1 < < tn of the parameter interval
[t, t ], where t0 = t and tn = t . The partition determines the corresponding
points on the curve, (t0 ), (t1 ), . . . , (tn ). The arc length should be the
limit of the sums of the lengths of the line segments joining the points,
n
X
L(t, t ) = lim |(tk ) (tk1 )|.
n
k=1
finite is called rectifiable. Perhaps surprisingly, not all continuous curves are
rectifiable. For that matter, the image of a continuous curve need not match
our intuition of a curve. For instance, there is a continuous mapping from the
closed interval [0, 1] to all of the square [0, 1] [0, 1], a so-called area-filling
curve. In any case, we will continue to assume that our curves are smooth,
and we will use the integral definition of arc length.
For example, the helix is the curve : R R3 where
For another example, the cycloid is the curve made by a point on a rolling
wheel of radius 1. (See figure 8.10.) Its parametrization, in terms of the angle
through which the wheel has rolled, is
C () = (1 cos , sin ), 0 2,
The length of the cycloid as the parameter varies from 0 to some angle
is
Z Z Z /2
L(0, ) = 2 sin(t/2) dt = 4 sin(t/2) d(t/2) = 4 sin( ) d
t=0 t=0 =0
= 4 4 cos(/2), 0 2.
For another property of the cycloid, suppose that a weight swings from a string
4 units long suspended at the origin, between two upside-down cycloids. The
rightmore upside-down cycloid is
C ()
() = C() + (4 L(0, ))
|C ()|
(1 cos , sin )
= ( sin , cos 1) + 4 cos(/2)
2 sin(/2)
= ( sin , cos 1) + 2 cot(/2)(1 cos , sin ).
But since 0 we may carry out the following calculation, in which all
quantities under square root signs are nonnegative and so is the evaluation of
the square root at the last step,
q
1
cos(/2) 2 (1 + cos )
cot(/2) = =q
sin(/2) 1
(1 cos )
2
s r
(1 + cos )2 (1 + cos )2
= =
(1 cos )(1 + cos ) 1 cos2
1 + cos
= .
sin
And so now
1 + cos
() = ( sin , cos 1) + 2 (1 cos , sin )
sin
= ( sin , cos 1) + 2(sin , 1 cos )
= ( + sin , 3 cos ).
() + (, 2) = ( + + sin , 1 cos ), 0 .
On the other hand, the right half of the original upside-down cycloid is
C( + ) = ( + sin( + ), cos( + ) 1)
= ( + + sin , 1 cos ), 0 2.
where y(x) is the function that takes the x-coordinate of a point of the cycloid
and returns its y-coordinate. As the cycloid parameter varies from 0 to 2,
so does the x-coordinate of the cycloid-point,
x = x() = sin ,
and the parametrization of the cycloid tells us that even without knowing y(x),
we know that
y(x()) = 1 cos .
Thus the area under one arch of the cycloid is
Z 2 Z 2 Z 2
y(x) dx = y(x())x () d = (1 cos )2 d,
x=0 =0 =0
where now the line L is {x = b}, rotating the conchoid a quarter turn clockwise
from before, and where the parameter is the usual angle from the polar
coordinate system. Any point (x, y) on the conchoid satisfies the equation
where the parameter t is tan with being the usual angle from the polar
coordinate system.
Exercises
8.2.1. (a) Let : I Rn be a regular curve that doesnt pass through the
origin, but has a point (t0 ) of nearest approach to the origin. Show that the
position vector (t0 ) and the velocity vector (t0 ) are orthogonal. (Hint: If
u, v : I Rn are differentiable then hu, vi = hu , vi + hu, v ithis follows
394 8 Parametrized Curves
quickly from the one-variable product rule.) Does the result agree with your
geometric intuition?
(b) Find a regular curve : I Rn that does not pass through the
origin and does not have a point of nearest approach to the origin. Does an
example exist with I compact?
8.2.4. (a) Verify the parametrization of the conchoid given in the section.
(b) Verify the relation (x2 + y 2 )(x b)2 = d2 x2 satisfied by points on the
conchoid.
8.2.5. (a) Verify the parametrization of the cissoid given in the section. Is this
parametrization regular? What happens to (t) and (t) as t ?
(b) Verify Newtons organic generation of the cissoid.
Recall that the trace of a curve is the set of points on the curve. Thinking
of a curve as time-dependent traversal makes it clear that different curves
may well have the same trace. That is, different curves can describe different
motions along the same path. For example, the curves
all have the unit circle as their trace, but their traversals of the circle are
different: traverses it once counterclockwise at unit speed, traverses it five
times counterclockwise at speed 5, traverses it once clockwise at unit speed,
and traverses it once counterclockwise at increasing speed.
Among the four traversals, and are somehow basically the same, mov-
ing from the same starting point to the same ending point in the same direc-
tion, never stopping or backing up. The similarity suggests that we should be
able to modify one into the other. On the other hand, and seem essentially
different from and from each another. The following definition describes the
idea of adjusting a curve without changing its traversal in any essential way.
8.3 Parametrization by Arc Length 395
Also, (s) = 1/(s + 1) is positive for all s I. Again recalling the examples
and , the calculation
L(s, s ) = s s.
Then F is differentiable on [a, b] and F = f .
And the Inverse Function Theorem for One Variable says,
Let f : I R have a continuous derivative on I with f (x) 6= 0
for all x I. Then the image of f is an interval I , and f has a
differentiable inverse g : I I. For each y I , the derivative
of the inverse at y is given by the formula g (y) = 1/f (x) where
x = g(y).
These theorems let us reparametrize any regular curve by arc length.
For all t I, letting s = (t), the chain rule gives an equality of vectors,
(t) = ( ) (t) = (s) (t) = (s) | (t)|,
and then taking absolute values gives an equality of scalars,
| (t)| = | (s)| | (t)|.
Since | (t)| > 0 for all t because is regular, it follows that
| (s)| = 1 for all s I .
Thus is parametrized by arc length.
So every regular curve is equivalent to a curve parametrized by arc length.
The next question about a regular curve is whether its equivalent curve that
is parametrized by arc length is unique. The answer is: Essentially yes. The
only choice is the starting point, determined by the choice of t0 in the proof.
Explicitly reparametrizing by arc length can be a nuisance since it requires
computing the inverse function 1 that we invoked in the abstract during
the course of reparametrizing. (This function can be doubly hard to write
down in elementary terms, because not only is it an inverse function but
furthermore it is the inverse function of a forward function defined as an
integral.) Since the theory guarantees that each regular curve is equivalent to
a curve parametrized by arc length, when we prove theorems in the sequel
we may assume that we are given such curves. But on the other hand, since
reparametrizing is nontrivial computationally, we want the formulas that we
will derive later in the chapter not to assume parametrization by arc length,
so that we can apply them to regular curves in general.
Exercises
8.3.1. Show that the equivalence on curves is reflexive, symmetric, and
transitive.
8.3.2. The parametrized curve
: [0, +) R2 , (t) = (aebt cos t, aebt sin t)
(where a > 0 and b < 0 are real constants) is called a logarithmic spiral.
(a) Show that as t +, (t) spirals in toward the origin.
(b) Show that as t +, L(0, t) remains bounded. Thus the spiral has
finite length.
8.3.3. Explicitly reparametrize each curve : I Rn with a curve :
I Rn parametrized by arc length.
(a) The ray : R>0 Rn given by (t) = t2 v where v is some fixed
nonzero vector.
(b) The circle : R R2 given by (t) = (cos et , sin et ).
(c) The helix : [0, 2] R3 given by (t) = (a cos t, a sin t, bt).
(d) The cycloid : [/2, 3/2] R2 given by (t) = (t sin t, 1 cos t).
398 8 Parametrized Curves
T = hT , T iT + hT , N iN
N = hN , T iT + hN , N iN.
The condition T = N shows that the top row inner products are hT , T i = 0
and hT , N i = . Since N is a unit vector hN , N i = 0 by part (a) of the lemma,
and since T and N are orthogonal hN , T i = hT , N i = by part (b). Thus
the Frenet equations for a curve parametrized by arc length are
T 0 T
= .
N 0 N
The geometric idea is that as we move along the curve at unit speed, the
Frenet frame continually adjusts itself so that its first vector is tangent to
the curve in the direction of motion and the second vector is ninety degrees
counterclockwise to the first. The curvature is the rate (positive, negative, or
zero) at which the first vector is bending toward the second, while the second
vector preserves the ninety-degree angle between them by bending away from
the first vector as much as the first vector is bending toward it.
Since = T and thus = T , the first and second derivatives of any
curve parametrized by arc length are expressed in terms of the Frenet frame,
10 T
= .
0 N
This matrix relation shows that the local canonical form of a such a curve is,
up to quadratic order,
1
(s0 + s) (s0 ) + s (s0 ) + s2 (s0 )
2
= (s0 ) + sT + s2 N.
2
That is, in (T, N )-coordinates the curve is locally (s, (/2)s2 ), a parabola at
the origin that opens upward or downward or not at all, depending on .
If we view the curve in local coordinates as we traverse its length at unit
speed, we see the parabola change its shape as varies, possibly narrowing
and widening, or opening to a horizontal line and then bending the other way.
400 8 Parametrized Curves
This periscope-view of , along with knowing (s) and (s) for one value s
in the parameter domain, determine entirely.
We want a curvature formula for any regular smooth plane curve, not
necessarily parametrized by arc length,
: I R2 .
By the Chain Rule, and then by the Product Rule and again the Chain Rule,
= ( ) ,
= ( ) + ( ) ( )2 .
These relations and the earlier expressions of and in terms of the Frenet
frame combine to give
0 0 10 T
= 2 = 2 .
0 N
det( , ) = | |3 .
The fact that a plane curve lies on a circle if and only if its curvature
is constant cries out to be true. (If it isnt, then our definitions must be
misguided.) And it is easy to prove using global coordinates. However, we
prove it by working with the Frenet frame, in anticipation of the less obvious
result for space curves to follow in the next section.
Proposition 8.4.2. Let : I R2 be regular. Then
When these conditions hold, || = 1/ where > 0 is the radius of the circle.
8.4 Plane Curves: Curvature 401
p = h p, T iT + h p, N iN. (8.1)
p = (1/)N.
( + (1/)N ) = T + (1/)(T ) = 0.
Since N = (1/) the previous proof has shown that the differential
equation
p = (1/)2
arises from uniform circular motion of radius 1/||.
Exercises
8.4.1. (a) Let a and b be positive. Find the curvature of the ellipse (t) =
(a cos(t), b sin(t)) for t R.
(b) Let a be positive and b be negative. Find the curvature of the loga-
rithmic spiral (t) = (aebt cos t, aebt sin t) for t 0.
: I R
402 8 Parametrized Curves
by the conditions
Thus is the angle that the curve makes with the fixed direction v. Show
that = . Thus our notion of curvature does indeed measure the rate at
which is turning.
Now we discuss space curves similarly to the discussion of plane curves at the
end of the previous section. Let : I R3 be parametrized by arc length s.
Its tangent vector T (s) is
T = .
So to first order the curve is moving in the T -direction. Whenever T is
nonzero, the curves curvature (s) and normal vector N (s) are defined
by the conditions
T = N, > 0.
(Be aware that although the same equation T = N appeared in the context
of plane curves, something different is happening now. For plane curves, N
was defined as the 90-degree counterclockwise rotation of T , and the condi-
tion hT, T i = 1 forced T to be normal to T and hence some scalar multiple
of N . The scalar was then given the name , and could be positive, neg-
ative, or zero depending on whether to second order the curve was bending
toward N , away from N , or not at all. But now, for space curves, the con-
ditions T = N and > 0 define both N and , assuming that T 6= 0.
Again by Lemma 8.4.1(a) T is normal to T , and so N is normal to T , but
now it makes no sense to speak of N being counterclockwise to T , and now
is positive.) Assume that T is always nonzero. Then the curves binormal
vector is
B = T N.
Thus, the Frenet frame {T, N, B} is a positive basis of R3 consisting of or-
thogonal unit vectors.
We want to differentiate T , N , and B. The derivatives resolve into com-
ponents,
T = hT , T iT + hT , N iN + hT , BiB
N = hN , T iT + hN , N iN + hN , BiB
B = hB , T iT + hB , N iN + hB , BiB.
The definition
T = N
8.5 Space Curves: Curvature and Torsion 403
hT , T i = 0, hT , N i = , hT , Bi = 0.
And since N and B are unit vectors, the other two diagonal inner products
also vanish by Lemma 8.4.1(a),
hN , N i = hB , Bi = 0.
Lemma 8.4.1(b) shows that the first inner product of the second row is the
negative of the second inner product of the first row,
hN , T i = hT , N i = ,
and so only the third inner product of the second row is a new quantity,
hB , T i = hT , Bi = 0, hB , N i = hN , Bi = .
All of the derivatives computed so far gather into the Frenet equations,
T 0 0 T
N = 0 N .
B 0 0 B
The geometric idea is that as we move along the curve, the bending of the
first natural coordinate determines the second natural coordinate; the second
natural coordinate bends away from the first as much as the first is bending
toward it, in order to preserve the ninety-degree angle between them; the
remaining bending of the second coordinate is toward or away from the third
remaining orthogonal coordinate, which bends away from or toward from the
second coordinate at the same rate, in order to preserve the ninety-degree
angle between them.
The relations = T and = T = N and = (N ) = N + N ,
and the second Frenet equation N = T + B combine to show that
1 0 0 T
= 0 0 N .
2 B
This relation shows that the local canonical form of a such a curve is, up to
third order,
404 8 Parametrized Curves
1 1
(s0 + s) (s0 ) + s (s0 ) + s2 (s0 ) + s3 (s0 )
2 6
1 1
= (s0 ) + sT + s2 N + s3 (2 T + N + B)
2 6
2 2 3 3
= (s0 ) + s s3 T + s + s N+ s B.
6 2 6 6
In planar cross sections,
In the (T, N )-plane the curve is locally (s, (/2)s2 ), a parabola opening
upward at the origin (see figure 8.11, viewing the curve down the positive
B-axis).
In the (T, B)-plane the curve is locally (s, ( /6)s3 ), a cubic curve inflect-
ing at the origin, rising from left to right if > 0 and falling if < 0 (see
figure 8.12, viewing the figure up the negative N -axis).
In the (N, B)-plane the curve is locally ((/2)s2 , ( /6)s3 ), a curve in the
right half plane with a cusp at the origin (see figure 8.13, viewing the curve
down the positive T -axis).
The relation of the curve to all three local coordinate axes is shown in fig-
ure 8.14.
These relations and the earlier expressions of and in terms of the Frenet
frame combine to give
0 0 0 0 1 0 0 T
= 2 0 = 2 0 0 0 N .
3 3 3 3 2 B
2
Thus = T (T + N ) = 3 B, and since = | | this gives the
curvature,
406 8 Parametrized Curves
| |
= .
| |3
Similarly, det( , , ) = 6 2 , giving the torsion,
det( , , )
= .
| |2
r = 1/, t = 1/.
When these conditions hold, r2 + (r t)2 = 2 where > 0 is the radius of the
sphere.
Proof. We may assume that is parametrized by arc length.
( = ) As in the proof of Proposition 8.4.2, we zoom in on the global
condition that lies on a sphere, differentiating repeatedly and using the
8.5 Space Curves: Curvature and Torsion 407
Frenet frame. We are given that for some fixed point p R3 and some fixed
radius > 0,
| p| = .
And by the nature of the Frenet frame, p decomposes as
p = h p, T iT + h p, N iN + h p, BiB. (8.2)
Since | p| is constant, Lemma 8.4.1(a) gives h p, i = 0; next,
Lemma 8.4.1(b) and the fact that is parametrized by arc length com-
bine to give h p, i = h , i = 1; and now Lemma 8.4.1(b) and
then Lemma 8.4.1(a) (again using the parametrization by arc length) give
h p, i = h , i = 0. Since = T and = N and =
2 T + N + B, the first two calculations have shown that h p, T i = 0
and h p, N i = 1/ with 6= 0, and the third one therefore has shown
that
0 = h p, 2 T + N + Bi = / + h p, Bi,
from which h p, Bi = /(2 ). Thus the description (8.2) of p in the
Frenet frame is
p = (1/)N + /(2 )B.
Because we have defined r = 1/, so that r = /2 , and t = 1/ ,
p = rN r tB.
And thus r2 + (r t)2 = 2 .
( = ) We expect that = p rN r tB. So let = + rN + r tB and
compute using the Frenet equations and various other results,
= T + r N + r(T + B) + (r t + r t )B r t N
= (1 r)T + (r r t )N + (r + r t + r t )B
r
= + r t + r t B.
t
2 2
But r + (r t) is constant, so its derivative is zero,
r
0 = 2rr + 2r t(r t + r t ) = 2r t + r t + r t .
t
Thus = 0 (here is where we use the hypothesis that never vanishes:
it prevents r from vanishing) and so indeed is some fixed vector p. Thus
= p rN + r tB as expected, and | p|2 is the constant r2 + (r t)2 .
Exercise
8.5.1. (a) Let a and b be positive. Compute the curvature and the torsion
of the helix (t) = (a cos t, a sin t, bt).
(b) How do and behave if a is held constant and b ?
(c) How do and behave if a is held constant and b 0?
(d) How do and behave if b is held constant and a ?
(e) How do and behave if b is held constant and a 0?
408 8 Parametrized Curves
: I Rn
F1 = /| |.
Thus F1 is a unit vector pointing in the same direction as the tangent vector
of at t.
Assuming that F1 never vanishes and that n 3, next define the first
curvature 1 (t) of at t and the second Frenet vector F2 (t) of at t by the
conditions
F1 = 1 F2 , 1 > 0, |F2 | = 1.
Since |F1 | = 1 for all t, it follows from Lemma 8.4.1(a) that hF2 , F1 i = 0.
Because hF2 , F1 i = 0, Lemma 8.4.1(b) gives hF2 , F1 i = hF1 , F2 i = 1 .
Assuming that F2 + 1 F1 never vanishes and that n 4, define the second
curvature 2 (t) and the third Frenet vector F3 (t) by the conditions
F2 = 1 F1 + 2 F3 , 2 > 0, |F3 | = 1.
hFk , Fj i = hFj , Fk i
= hj1 Fj1 + j Fj+1 , Fk i
(
0 if j = 1, , k 2,
=
k1 if j = k 1.
8.6 General Frenet Frames and Curvatures 409
The (n 1)st curvature need not be positive. By Lemma 8.4.1(b) yet again
we have Fn = n1 Fn1 , and so the Frenet equations are
F1 0 1 F1
F2 1 0 2 F2
F3 2 0 3 F3
.. .. .. .. ..
. = . . . . .
. .. .. .. .
.. . . . .
.
F n2 0 n1 Fn1
n1
Fn n1 0 Fn
The first n 1 Frenet vectors and the first n 2 curvatures can also be
obtained by applying the Gram-Schmidt process (see exercise 2.2.16) to the
vectors , , (n1) .
The Frenet vectors and the curvatures are independent of parametrization.
: Ie Rn be a second curve equivalent to . That is,
To see this, let
(t) =
(t) (t) where t = (t).
Since the curvatures and the rest of the Frenet vectors are described in terms
of derivatives of the first Frenet vector with respect to its variable, it follows
410 8 Parametrized Curves
that the Frenet vectors and the curvatures are independent of parametrization
as claimed,
Fei (t) = Fi (t) for i = 1, , n
and
i (t) = i (t)
for i = 1, , n 1.
Since the curvatures describe the curve in local terms, they should be
unaffected by passing the curve through a rigid motion. The remainder of this
section establishes this invariance property of curvature, partly because doing
so provides us an excuse to describe the rigid motions of Euclidean space.
That is, rigid maps preserve the geometry of vector differences. The next
proposition characterizes rigid mappings.
This shows that S(x) = Ax where A has columns S(e1 ), . . . , S(en ). Since
hS(ei ), S(ej )i = hei , ej i for i, j {1, . . . , n}, in fact A On (R) as desired.
: I Rn ,
: I Rn ,
= R .
Thus the first Frenet vectors of the two curves satisfy the relation
Fe1 = AF1 ,
1 = 1 and Fe2 = AF2 .
Similarly,
i = i , i = 1, , n 1
and
Fei = AFi , i = 1, , n.
We need A to be special orthogonal rather than just orthogonal in order that
this argument apply to the last Frenet vector and the last curvature. If A is
orthogonal but not special orthogonal then Fen = AFn and en1 = n1 .
Exercises
(b) Confirm that the identity matrix I is orthogonal, that if A and B are
orthogonal then so is the product AB, and that if A is orthogonal then so is
its inverse A1 .
8.6.2. (a) Prove that any matrix A Mn (R) is orthogonal if and only if
hAx, Ayi = hx, yi for all x, y Rn . (The fact that hv, wi = v t w essentially
gives ( = ). For ( = ), show that At A has (i, j)th entry hAei , Aej i for
i, j = 1, , n, and recall that In is the matrix whose (i, j)th entry is ij .)
(b) Prove that any matrix A On (R) has determinant det A = 1.
8.7 Summary
(To be written.)
9
Integration of Differential Forms
cases of the General FTIC, and section 9.17 takes a closer look at some of the
quantities that arise in this context.
: D A,
See figure 9.1. Here are some points to note about Definition 9.1.1:
Recall that a subset A of Rn is called open if its complement is closed.
The definitions in this chapter need the environment of an open subset
rather than all of Rn in order to allow for functions that are not defined
everywhere. For instance, the reciprocal modulus function
1/| | : Rn {0} R
is defined only on surfaces that avoid the origin. In most of the examples, A
will be all of Rn , but exercise 9.11.1 will touch on how the subject becomes
more nuanced when it is not.
Recall also that compact means closed and bounded. Connected means
that D consists of only one piece, as discussed informally in section 2.4.
And as discussed informally in section 6.5 and formally in section 6.8, the
boundary of a set consists of all points simultaneously near the set and
near its complementroughly speaking, its edge. Typically D will be some
region that is easy to integrate over, such as a box, whose compactness,
connectedness, and small boundary are self-evident.
9.1 Integration of Functions Over Surfaces 415
The word smooth in the definition means that the mapping extends
to some open superset of D in Rk , on which it has continuous partial
derivatives of all orders. Each such partial derivative is therefore again
smooth. All mappings in this chapter are assumed to be smooth.
When we compute, coordinates in parameter space will usually be written
as (u1 , , uk ), and coordinates in Rn as (x1 , , xn ).
It may be disconcerting that a surface is by definition a mapping rather
than a set, but this is for good reason. Just as the integration of chapter 6
was facilitated by distinguishing between functions and their outputs, the
integration of this chapter is facilitated by viewing the surfaces over which
we integrate as mappings rather than their images.
A parametrized curve, as in Definition 8.2.1, is precisely a 1-surface.
z
v y
u
p : R0 Rn , p (0) = p,
The parallelepiped spanned by these vectors (see figure 9.2) has a naturally
defined k-dimensional volume.
Definition 9.1.2 (Volume of a Parallelepiped). Let v1 , , vk be vectors
in Rn . Let V be the n-by-k matrix with these vectors as its columns. Then the
k-volume of the parallelepiped spanned by the {vj } is
q
volk (P(v1 , , vk )) = det(V T V ) . (9.1)
v
z
x
u
giving the familiar formula for the area of a parallelogram. When k = 2 and
also n = 3, we can study the formula further by working in coordinates.
Consider two vectors u = (xu , yu , zu ) and v = (xv , yv , zv ). An elementary
calculation shows that the quantity under the square root in the previous
display works out to
area(P(v1 , v2 )) = |v1 v2 |.
so that det(W T W ) = det(V T V ) and the natural definition becomes the de-
sired formula,
9.1 Integration of Functions Over Surfaces 419
q
volk (P(v1 , , vk )) = det(V T V ).
The argument here generalizes the ideas used in section 3.10 to suggest a
formula for the area of a 2-dimensional parallelogram in R3 as a 3-by-3 deter-
minant. Thus the coordinate calculation sketched in the previous paragraph
to recover the relation between parallelogram area and cross product length
in R3 was unnecessary.
With k-dimensional volume in hand, we can naturally define the integral
of a function over a k-surface.
Definition 9.1.3 (Integral of a Function over a Surface). Let A be an
open subset of Rn . Let : D A be a k-surface in A. Let f : (D) R
be a function such that f is smooth. Then the integral of f over is
Z Z
f= (f ) volk (P(D1 , , Dk )).
D
This surface is the 2-sphere of radius r. Since the sphere is a surface of revo-
lution, its area is readily computed by methods from a first calculus course,
but we do so with the ideas of this section to demonstrate their use. The
derivative vectors are
r sin sin r cos cos
v1 = r cos sin , v2 = r sin cos ,
0 r sin
v z
u
x
p q
|v1 |2 |v 2 |2 (v1 v2 )2 = r4 sin2 = r2 sin
The fact that the sphere-area magnification factor r2 sin is the familiar vol-
ume magnification factor for spherical coordinates is clear geometrically: to
traverse the sphere, the spherical coordinates and vary while r stays con-
stant, and when r does vary it moves orthogonally to the sphere-surface so
that the incremental volume is the incremental surface-area times the incre-
mental radius-change. Indeed, the vectors v1 and v2 from a few displays back
are simply the second and third columns of the spherical change of variable
derivative matrix. The reader can enjoy checking that the first column of the
spherical change of variable derivative matrix is indeed a unit vector orthog-
onal to the second and third columns.
The integral in Definition 9.1.3 seems to depend on the surface as a
parametrization rather than merely as a set, but in fact the integral is un-
affected by reasonable changes of parametrization, because of the Change
of Variable Theorem. To see this, let A be an open subset of Rn , and let
: D A and : D e A be k-surfaces in A. Suppose that there exists
a smoothly invertible mapping T : D D e such that T = . In other
words, T is smooth, T is invertible, its inverse is also smooth, and the follow-
ing diagram commutes (meaning that either path around the triangle yields
the same result):
9.1 Integration of Functions Over Surfaces 421
D
&
T 8A
qqqqq
qqq
qqqq
Deq
When such a mapping T exists, is called a reparametrization of .
Let f : A R be any smooth function. Then the integral of f over the
reparametrization of is
Z q
(f ) det( T ).
e
D
p q
But | det(T )| = det(T )2 = det(T T ) det(T ), so this becomes
Z q
(f T ) det T T ( T )T ( T ) T ,
D
Exercises
9.1.4. Find the surface area of the upper half of the cone at fixed angle from
the z-axis, extended outward to radius a. That is, the surface is the image of
the spherical coordinate mapping with fixed at some value between 0 and
as varies from 0 to a and varies from 0 to 2.
field then its flow integrals, also called line integrals, measure the work of
moving along curves in A. If F is viewed as a velocity field describing the
motion of some fluid then its flux integrals measure the rate at which fluid
passes through permeable membranes in A. Each of the classical theorems
of vector integral calculus to be proved at the end of this chapter involves a
flow integral or a flux integral.
Flow and flux integrals have a more convenient form than the general
integral of a function over a surface, in that the k-volume factor from Defini-
tion 9.1.3 (an unpleasant square root) cancels, and what remains is naturally
expressed in terms of determinants of the derivatives of the component func-
tions of . These formulas rapidly become complicated, so the point of this
section is only to see what form they take.
Working first in two dimensions, consider a vector field,
F = (F1 , F2 ) : R2 R2 ,
and a curve,
= (1 , 2 ) : [a, b] R2 .
Assuming that the derivative is always nonzero but not assuming that
is parametrized by arc length, the unit tangent vector to at the point (u),
pointing in the direction of the traversal, is
(u)
Tb((u)) = .
| (u)|
Note that the denominator is the length factor in Definition 9.1.3. The parallel
component of F ((u)) along Tb((u)) has magnitude (F Tb)((u)). (See exer-
cise 2.2.15.) Therefore the net flow of F along in the direction of traversal
R
is F Tb. By Definition 9.1.3 this flow integral is
Z Z b Z b
(u)
F Tb = F ((u)) | (u)| = F ((u)) (u), (9.3)
u=a | (u)| u=a
and the length factor has canceled. In coordinates, the flow integral is
Z Z b
F Tb = (F1 )1 + (F2 )2 (u). (9.4)
u=a
On the other hand, for any vector (x, y) R2 , define (x, y) = (y, x).
(This seemingly ad hoc procedure of negating one of the vector entries and
then exchanging them will be revisited soon as a particular manifestation of
a general idea.) The unit normal vector to the curve at the point (u), at
angle /2 counterclockwise from Tb((u)), is
b ((u)) = (u) .
N
| (u)|
424 9 Integration of Differential Forms
or, in coordinates,
Z Z b
b=
F N (F2 )1 (F1 )2 (u). (9.6)
u=a
F = (F1 , F2 , F3 ) : R3 R3 .
The intrinsic expression (9.3) for the flow integral of F along a curve remains
unchanged in R3 , making the 3-dimensional counterpart of (9.4) in coordinates
obvious,
Z Z b
F Tb = (F1 )1 + (F2 )2 + (F3 )3 (u).
u=a
= (1 , 2 , 3 ) : D R3 .
Assuming that the two columns D1 and D2 of the derivative matrix are
always linearly independent, a unit normal to the surface at the point (u)
(where now u = (u1 , u2 )) is obtained from their cross product,
or, in coordinates,
Z Z (F1 )(D1 2 D2 3 D1 3 D2 2 )
b=
F N +(F2 )(D1 3 D2 1 D1 1 D2 3 ) (u). (9.8)
uD
+(F3 )(D1 1 D2 2 D1 2 D2 1 )
Whereas the 2-dimensional flow and flux integrands and the 3-dimensional
flow integrand involved derivatives j of the 1-surface , the integrand here
9.2 Flow and Flux Integrals 425
The subdeterminants give a hint about the general picture. Nonetheless, (9.8)
is foreboding enough that we should pause and think before trying to compute
more formulas.
For general n, formula (9.3) for the flow integral of a vector field along a
curve generalizes transparently,
Z Z b Z b Xn
b
F T =
(F ) (u) = (Fi )i (u). (9.9)
u=a u=a i=1
But the generalization of formulas (9.5) through (9.8) to a formula for the flux
integral of a vector field in Rn through an (n 1)-surface is not so obvious.
Based on (9.7) the intrinsic formula should be
Z Z
F N b= (F ) (D1 Dn1 ) (u), (9.10)
uD
This is the formula that appeared with no explanation as part of the flux
integral in R2 . That is, the generalization (9.10) of the 3-dimensional flux
integral to higher dimensions also subsumes the 2-dimensional case. Returning
to Rn , the cross product of the vectors D1 (u),. . . ,Dn1 (u) is
e1
.
(D1 Dn1 )(u) = det D (u) D 1 (u) .. .
n1
en
= (1 , 2 , 3 , 4 ) : D R4 .
so that any two of its rows form a square matrix. Consider also any six smooth
functions
F1,2 , F1,3 , F1,4 , F2,3 , F2,4 , F3,4 : R4 R.
Then we can define an integral,
1 1
Z (F1,2 ) det + (F1,3 ) det + (F1,4 ) det 1
2 3 4
(u).
2 2 3
uD
+(F2,3 ) det + (F2,4 ) det + (F3,4 ) det
3 4 4
(9.13)
Since the surface is not 1-dimensional, this is not a flow integral. And since
is not (n 1)-dimensional, it is not a flux integral either. Nonetheless, since
the integrand contains the determinants of all 2-by-2 subblocks of the 4-by-2
derivative matrix of the 2-surface , it is clearly cut from the same cloth as
the flow and flux integrands of this section. The ideas of this chapter will
encompass this integral and many others in the same vein.
As promised at the beginning of the section, the k-volume factor has can-
celed in flow and flux integrals, and the remaining integrand features determi-
nants of the derivatives of the component functions of the surface of integra-
tion. Rather than analyze such cluttered integrals, the method of this chapter
is to abstract their key properties into symbol-patterns, and then work with
the patterns algebraically instead. An analysis tracking all the details of the
original setup would be excruciating to follow, not to mention being unimag-
inable to recreate ourselves. Instead, we will work insightfully, economy of
ideas leading to ease of execution. Since the definitions to follow do indeed
distill the essence of vector integration, they will enable us to think fluently
about the phenomena that we encounter. This is real progress in methodol-
ogy, much less laborious than the classical approach. Indeed, having seen the
modern argument, it is unimaginable to want to recreate the older one.
428 9 Integration of Differential Forms
Exercises
(1, 1, 1), (1, 1, 2), (1, 2, 1), (1, 2, 2), (2, 1, 1), (2, 1, 2), (2, 2, 1), (2, 2, 2).
A sum over the ordered k-tuples from {1, , n} means simply a sum of terms
with each term corresponding to a distinct k-tuple. Thus we may think of an
ordered k-tuple (i1 , , ik ) as a sort of multiple index or multiple subscript,
and for this reason we often will abbreviate it to I. These multiple subscripts
will figure prominently throughout the chapter, so you should get comfortable
with them. Exercise 9.3.1 provides some practice.
or X
fI dxI ,
I
: {0-surfaces in A} R,
(p ) = f (p).
: {k-surfaces in A} R,
Formula (9.14), defining (), is the key for everything to follow in this
chapter. It defines an integral over the image (D), which may have volume
zero in Rn , by pulling backthis term will later be defined preciselyto an
integral over the parameter domain D, which is a full-dimensional set in Rk
and hence has positive k-dimensional volume.
Under Definition 9.3.2, the integral of a differential form over a surface
depends on the surface as a mapping, i.e., as a parametrization. However, it
is a straightforward exercise to show that that the Multivariable Change of
Variable Theorem implies that the integral is unaffected by reasonable changes
of parametrization.
Returning to formula (9.14): despite looking like the flux integral (9.12),
it may initially be impenetrable to the reader who (like the author) does not
assimilate notation quickly. The next two sections will illustrate the formula
in specific instances, after which its general workings should be clear. Before
long, you will have an operational understanding of the definition.
Operational understanding should be complemented by structural under-
standing. The fact that the formal consequences of Definitions 9.3.1 and 9.3.2
subsume the main results of classical integral vector calculus still doesnt
explain these ad hoc definitions conceptually. For everything to play out so
nicely, the definitions must somehow be natural rather than merely clever,
and a structural sense of why they work so well might let us extend the ideas
9.4 Examples: 1-forms 431
to other contexts rather than simply tracking them. Indeed, differential forms
fit into a mathematical structure called a cotangent bundle, with each differ-
ential form being a section of the bundle. The construction of the cotangent
bundle involves the dual space of the alternation of a tensor product, all of
these formidable-sounding technologies being utterly Platonic mathematical
objects. However, understanding this language requires an investment in ideas
and abstraction, and in the authors judgment the startup cost is much higher
without some experience first. Hence the focus of the chapter is purely op-
erational. Since formula (9.14) may be opaque to the reader for now, the
first order of business is to render it transparent by working easy concrete
examples.
Exercises
9.3.1. Write out all ordered k-tuples from {1, , n} in the cases n = 4, k = 1;
n = 3, k = 2. In general, how many ordered k-tuples I = (i1 , , ik ) from
{1, , n} are there? How many of these are increasing, meaning that i1 <
< ik ? Write out all increasing k-tuples from {1, 2, 3, 4} for k = 1, 2, 3, 4.
P
9.3.2. An expression = I fI dxI where the sum is over only increasing
k-tuples from {1, , n} is called a standard presentation of . Write out
explicitly what a standard presentation for a k-form on R4 looks like for
k = 0, 1, 2, 3, 4.
= (1 , 2 , 3 ) : [a, b] R3 ,
For any such curve, is the instructions, integrate 1 2 over the parameter
domain [a, b], and similarly instructs to integrate 2 3 . You should work
through applying formula (9.14) to and to see how it produces these di-
rections. Note that x and y are being treated as functions on R3 for example,
432 9 Integration of Differential Forms
so that x = 1 .
To see and work on a specific curve, consider the helix
Thus by (9.14),
Z Z 2 Z Z 2
= a cos t a cos t = a2 and = a sin t b = 0.
H t=0 H t=0
z z
y y
x x
Then Z Z Z
b b
= (1 ) 1 = 1 = 1 (b) 1 (a).
a a
A change of notation makes this example more telling. Rewrite the component
functions of the curve as x, y, and z,
That is, the form dx does indeed measure change in x along curves. As a set
of instructions it simply says to evaluate the x-coordinate difference from the
initial point on the curve to the final point. Think of dx as a Pac-Man. You
give it a curve, it runs along the curve and gives you back your score: the net
change in x along the curve. Returning to the helix H, it is now clear with no
further work that
Z Z Z
dx = 0, dy = 0, dz = 2b.
H H H
= D1 f dx1 + + Dn f dxn .
That is, the form measures change in f along curves. Indeed, is classically
called the total differential of f . It is tempting to give the name df , i.e., to
define
df = D1 f dx1 + + Dn f dxn .
Soon we will do so as part of a more general definition.
434 9 Integration of Differential Forms
(Recall the chain rule: If A Rn is open, then for any smooth : [a, b]
A and f : A R,
= F1 dx1 + + Fn dxn .
and this is the general flow integral (9.9) of the vector field (F1 , , Fn )
along . That is, the flow integrals from section 9.2 are precisely the integrals
of 1-forms.
Exercises
R
9.4.1. Let = x dy y dx, a 1-form on R2 . Evaluate
for the following
curves.
(a) : [1, 1] R2 , (t) = (t2 1, t3 t);
(b) : [0, 2] R2 , (t) = (t, t2 ).
R
9.4.2. Let = z dx + x2 dy + y dz, a 1-form on R3 . Evaluate
for the
following two curves.
(a) : [1, 1] R3 , (t) = (t, at2 , bt3 );
(b) : [0, 2] R3 , (t) = (a cos t, a sin t, bt).
= (1 , 2 , 3 ) : D R3 .
The parameter domain D has been partitioned into subrectangles, and the
image (D) has been divided up into subpatches by mapping the grid lines
in D over to it via . The subrectangle J of D maps to the subpatch B of (D),
which in turn has been projected down to its shadow B(1,2) in the (x, y)-
plane. The point (uJ , vJ ) resides in J, and its image under is (uJ , vJ ) =
(xB , yB , zB ).
B12 x
That is, B(1,2) is the image of J under the (1, 2) component functions of . If
J is small then results on determinants give
y
x
B21
x
B12 y
v
z
y
J1 J2
u
B2
we have
Z Z Z 1 Z 1
10
dx dy = det (1,2) = det = 2,
D v=0 u=1 01
and similarly
Z Z Z 1 Z 1
Z Z
2u 0
dz dx = det (3,1) = det = 0 = 0,
D v=0 u=1 1 0 v u
438 9 Integration of Differential Forms
y x
B1 B2 B2
x z
B1
z z
B1 B2
y y
Z Z Z 1 Z 1 Z Z
0 1
dy dz = det (2,3) = det = 2u = 0.
D v=0 u=1 2u 0 v u
Note how the first integral reduces to integrating 1 over the parameter do-
main, the second integral vanishes because its integrand is zero, and the third
integral vanishes because of cancellation in the u-direction. All three of these
behaviors confirm our geometric insight into how forms should behave.
Since the differential form dx dy measures projected area in the (x, y)-
plane, the integral Z
z dx dy
should give the volume under the arch. And indeed formula (9.14) gives
Z Z
z dx dy = (1 u2 ) 1,
(u,v)D
9.5 Examples: 2-forms on R3 439
and this is the flux integral (9.8) of the vector field (F1 , F2 , F3 ) through .
A straightforward generalization of this example shows that the general in-
tegral of an (n 1)-form over an (n 1)-surface in Rn is the general flux
integral (9.12). That is, the flux integrals from section 9.2 are precisely the
integrals of (n 1)-forms.
Along with the last example of the previous section, this raises the ques-
tion: Why bother with k-forms for values of k other than 1 and n 1, and
maybe also 0 and n? The answer is that the amalgamation of k-forms for
all values of k has a coherent algebraic structure, making the whole easier to
study than its parts. The remainder of the chapter is largely an elaboration
of this point.
440 9 Integration of Differential Forms
Exercises
Your solution should use the basic properties of but not the highly sub-
stantive Change of Variable
R Theorem. Note that in particular if f = 1, then
= dx1 dxn and = vol(D), explaining why in this case is called
the volume form.
Thus in Rn , we may from now on blur the distinction between integrating
the function f over a set and integrating the n-form = f dxI over a surface,
provided that I = (1, , n) (i.e., the dxi factors appear in canonical order),
and provided that the surface is parametrized trivially.
9.5 Examples: 2-forms on R3 441
9.5.5. This exercise proves that because of the Change of Variable Theorem,
the integration of differential forms is invariant under orientation-preserving
reparametrizations of a surface.
Let A be an open subset of Rn . Let : D A and : D e A
be k-surfaces in A. Suppose that there exists a smoothly invertible mapping
T : D D e such that T = . In other words, T is smooth, T is invertible,
its inverse is also smooth, and the following diagram commutes:
D
&
T A
qqqq8
q
qqq
qqqq
Deq
(M N )I = MI N.
(Suggestion: Do it first for the case I = i, that is, I denotes a single row.)
(c) Use the chain rule and part (b) to show that for any I,
1 = 2
where the first + lies between two forms, the second between two real
numbers. Similarly, the definition of scalar multiplication is
The addition of forms here is compatible with the twofold use of summation
in the definition of forms and how they integrate. Addition and scalar multi-
plication of forms inherit all the vector space properties from corresponding
properties of addition and multiplication in the real numbers, showing that
the set of all k-forms on A forms a vector space. Proving familiar looking facts
about addition and scalar multiplication of forms reduces quickly to citing the
analogous facts in R. For example, (1) = for any k-form (where the
second minus sign denotes additive inverse), because for any k-surface ,
the last equality holding since (1)x = x for all real numbers x.
Forms have other algebraic properties that are less familiar. For example,
on R2 , dy dx = dx dy. This rule follows from the skew symmetry of the
determinant: For any 2-surface : D R2 ,
9.7 Algebra of Forms: Multiplication 443
Z Z
(dy dx)() = det (2,1) = det (1,2) = (dx dy)().
D D
More generally, given two k-tuples I and J from {1, , n}, dxJ = dxI if J
is obtained from I by an odd number of transpositions. Thus for example,
dz dy dx = dx dy dz
since (3, 2, 1) is obtained from (1, 2, 3) by swapping the first and third entries.
Showing this reduces again to the skew symmetry of the determinant. As a
special case, dxI = 0 whenever the k-tuple I has two matching entries. This
rule holds because exchanging those matching entries has no effect on I but
negates dxI , and so dxI = dxI , forcing dxI = 0. One can also verify directly
that dxI = 0 if I has matching entries by referring back to the fact that the
determinant of a matrix with matching rows vanishes.
Using these rules (dy dx = dx dy, dx dx = 0 and their generaliza-
tions), one quickly convinces oneself that every k-form can be written
X
= fI dxI (sum only over increasing I),
I
Exercise
define their concatenation (I, J), a (k+)-tuple from {1, , n}, in the obvious
way,
(I, J) = (i1 , , ik , j1 , , j ).
444 9 Integration of Differential Forms
f g : A R, (f g)(x) = f (x)g(x).
n
Definition
P 9.7.1 (Wedge
P Product). Let A be an open subset of R . If
= I fI dxI and = J gJ dxJ are respectively a k-form and an -form
on A, then their wedge product is a (k + )-form on A,
X
= fI gJ dx(I,J) .
I,J
That is, the wedge product is formed by following the usual distributive law
and wedge-concatenating the dx-terms.
For convenient notation, let k (A) denote the vector space of k-forms
on A. Thus the wedge product is a mapping,
This example shows that the wedge product automatically encodes the inner
product in R3 , and the idea generalizes easily to Rn . For another example, a
wedge product of two 1-forms on R3 is
Comparing this to the formula for the cross product in section 3.10 shows
that the wedge product automatically encodes the cross product. Similarly, a
wedge product of two 1-forms on R2 is
showing that the wedge product encodes the 2-by-2 determinant as well.
Lemma 9.9.2 to follow will show that it encodes the general n-by-n deter-
minant.
9.7 Algebra of Forms: Multiplication 445
Naturally the wedge in Definition 9.7.1 is the same as the one in Defi-
nition 9.3.1. There is no conflict in now saying that the two wedges are the
same, since each wedge in the earlier definition sits between two 1-forms and
the definition attached no meaning to the wedge symbol. Definition 9.3.1
also juxtaposes functions (0-forms) and dxI terms (k-forms) without putting
a wedge between them, and it is still unclear what sort of multiplication
that juxtaposition connotes. In fact, it is also a wedge product, but when we
wedge-multiply a 0-form and a k-form we usually suppress the wedge. A basic
property of the wedge, its skew symmetry, will explain why in a moment.
= (1)k .
Exercises
9.7.1. Find a wedge product of two differential forms that encodes the inner
product of R4 .
9.7.2. Find a wedge product of three differential forms that encodes the 3-by-3
determinant.
by the rules
n
X
df = Di f dxi for a 0-form f ,
i=1
X X
d = dfI dxI for a k-form = fI dxI .
I I
For example, we saw in section 9.4 that for a function f , the 1-form
df = D1 f dx1 + + Dn f dxn
is the form that measures change in f along curves. To practice this new kind
of function-differentiation in a specific case, define the function
1 : R3 R
d1 = D1 1 dx + D2 1 dy + D3 1 dz = dx. (9.15)
This calculation is purely routine. In practice, however, one often blurs the
distinction between the name of a function and its output, for instance speak-
ing of the function x2 rather than the function f : R R where f (x) = x2
9.8 Algebra of Forms: Differentiation 447
d(x) = dx.
= x dy y dx
And if
= x dy dz + y dz dx + z dx dy
then
d = 3 dx dy dz.
The differentiation operator d commutes with sums and scalar multiples.
That is, if 1 , 2 are k-forms and c is a constant then
d(c1 + 2 ) = c d1 + d2 .
More interesting are the following two theorems about form differentiation.
448 9 Integration of Differential Forms
Next consider a k-form and an -form with one term each, fI dxI and gJ dxJ .
Then
9.8 Algebra of Forms: Differentiation 449
Because the last step in this proof consisted only of pushing sums tediously
through the other operations, typically it will be omitted from now on, and
proofs will be carried out for the case of one-term forms.
Consider a function f (x, y) on R2 . Its derivative is
df = D1 f (x, y) dx + D2 f (x, y) dy,
and its second derivative is in turn
d2 f = d(df ) = d(D1 f (x, y) dx) + d(D2 f (x, y) dy)
= D11 f (x, y) dx dx + D12 f (x, y) dy dx
+ D21 f (x, y) dx dy + D22 f (x, y) dy dy.
The dx dx term and the dy dy term are both 0. And the other two terms
sum to 0 because the mixed partial derivatives D12 f (x, y) and D21 f (x, y) are
equal while dy dx and dx dy are opposite. Overall, then,
d2 f = 0.
This phenomenon of the second derivative vanishing is completely general.
Theorem 9.8.3 (Nilpotence of d). Let A be an open subset of Rn . Then
d2 = 0 for any form k (A), where d2 means d d. In other words,
d2 = 0.
Proof. For a 0-form f ,
n
X
df = Di f dxi ,
i=1
and so
n
X X
d2 f = d(df ) = d(Di f ) dxi = Dij f dxj dxi .
i=1 i,j
All terms with i = j cancel since dxi dxi = 0, and the rest of the terms cancel
pairwise since for i 6= j, Dji f = Dij f (equality of mixed partial derivatives)
and dxi dxj = dxj dxi (skew symmetry of the wedge product). Thus
d2 f = 0.
Also, for a k-form dxI with constant coefficient function 1,
d(dxI ) = d(1dxI ) = (d1) dxI = 0.
Next, for a one-term k-form = f dxI ,
d = df dxI
and so by the first two calculations,
d2 = d(df dxI ) = d2 f dxI + (1)1 df d(dxI ) = 0 + 0 = 0.
For a general k-form, pass sums and d2 s through each other.
450 9 Integration of Differential Forms
A form is called
and
closed if d = 0.
Theorem 9.8.3 shows that:
The converse question, whether every closed form is exact, is more subtle. We
will discuss it in section 9.11.
Exercises
0 = ,
1 = f1 dx + f2 dy + f3 dz,
2 = g1 dy dz + g2 dz dx + g3 dx dy,
3 = h dx dy dz.
= (D1 , D2 , D3 ),
where the Di are familiar partial derivative operators. Thus, for a function
: R3 R,
= (D1 , D2 , D3 ).
Similarly, for a mapping F = (f1 , f2 , f3 ) : R3 R3 , F is defined in the
symbolically appropriate way, and for a mapping G = (g1 , g2 , g3 ) : R3 R3 ,
so is h, Gi. Write down explicitly the vector-valued mapping F and the
function h, Gi for F and G as just described. The vector-valued mapping
is the gradient of from section 4.8,
9.8 Algebra of Forms: Differentiation 451
grad = .
curl F = F.
div G = h, Gi.
9.8.5. Continuing with the notation of the previous two problems, introduce
correspondences between the classical scalar-vector environment and the en-
vironment of differential forms, as follows. Let
~ = (dx, dy, dz),
ds
~ = (dy dz, dz dx, dx dy),
dn
dV = dx dy dz.
And let dV be the mapping that takes each function h to the 3-form
h dV = h dx dy dz.
Combine the previous problems to verify that the following diagram com-
mutes, meaning that either path around each square yields the same result.
(Do each square separately, e.g., for the middle square start from an arbitrary
(f1 , f2 , f3 ) with no assumption that it is the gradient of some function .)
Explain, using the diagram from the preceding exercise and the nilpotence
of d. For a function : R3 R, write out the harmonic equation (or
Laplaces equation), which does not automatically hold for all but turns
out to be an interesting condition,
div(grad ) = 0.
Using this formula, and thinking of T as mapping from (r, )-space forward to
(x, y)-space, any form on (x, y)-space can naturally be converted back into a
form on (r, )-space, simply by substituting r cos for x and r sin for y. If the
form on (x, y)-space is named then the form on (r, )-space is denoted T .
For example, the 2-form that gives area on (x, y)-space,
= dx dy,
Working out the derivatives and then the wedge shows that
9.9 Algebra of Forms: the Pullback 453
Thus (now dropping the wedges from the notation), this process has converted
dx dy into r dr d as required by the Change of Variable Theorem.
For another example, continue to let T denote the polar coordinate map-
ping, and consider a 1-form on (x, y)-space (for (x, y) 6= (0, 0)),
x dy y dx
= .
x2 + y 2
The corresponding 1-form on (r, ) space (for r > 0) is
r cos d(r sin ) r sin d(r cos )
T = .
(r cos )2 + (r sin )2
Here the differentiations give
(See figure 9.10.) To infinitesimalize this, multiply it by dt, and then, to make
the resulting form measure infinitesimal change in the polar angle along the
curve, we also need to divide by the distance from the origin to get altogether
(x dy y dx)/(x2 + y 2 ).)
For a third example, again start with the 1-form
x dy y dx
= ,
x2 + y 2
but this time consider a different change of variable mapping,
call
T (u, v) = (u2 v 2 , 2uv) = (x, y).
454 9 Integration of Differential Forms
y
(x , y )
(x, y)
(x, y)
The 1-form on (u, v)-space (for (u, v) 6= (0, 0)) corresponding to is now
and so
(u2 v 2 )(v du + u dv) 2uv(u du v dv)
T = 2
(u2 + v 2 )2
((u2 v 2 )v 2u2 v) du + ((u2 v 2 )u + 2uv 2 ) dv
=2
(u2 + v 2 )2
u dv v du
=2 .
u2 + v 2
Thus T is essentially the original form, except that it is doubled and now
it is a form on (u, v)-space. The result of the calculation stems from the fact
that T is the complex square mapping, which doubles angles. The original
form , which measures change of angle in (x, y)-space, has transformed back
to the form that measures twice the change of angle in (u, v)-space. Integrating
T along a curve in (u, v)-space that misses the origin returns twice the
change in angle along this curve, and this is the change in angle along the
image-curve T in (x, y)-space.
9.9 Algebra of Forms: the Pullback 455
is X
T = (fI T ) dTI .
I
T f = f T.
As the examples before the definition have shown, computing pullbacks is easy
and purely mechanical: given a form in terms of ys and dys, its pullback
T comes from replacing each yi in by the expression Ti (x1 , , xn ) and
then working out the resulting ds and wedges.
The fact that pulling the form dx dy back through the polar coordinate
mapping produced the factor r from the Change of Variable Theorem is no
coincidence.
(a1 , a2 , , an ) = 1 2 n .
Then
(a1 , a2 , , an ) = det(a1 , a2 , , an ) dx1 dxn .
That is, = det dx(1, ,n) .
We have already seen this result for n = 2 in section 9.7 and for n = 3 in
exercise 9.7.2.
Proof. The only increasing n-tuple from {1, , n} is (1, , n). As a product
of n 1-forms on Rn , (a1 , a2 , , an ) is an n-form on Rn , and therefore it is
a scalar-valued function (a1 , a2 , , an ) times dx(1, ,n) . The relation
where i is the inner product ai (dx1 , , dxn ) for each i combines with
various properties of the wedge product to show that the following three con-
ditions hold:
The function is linear in each of its vector variables, e.g.,
2 , , an ) = (a1 , a2 , , an ) + (a1 , a
(a1 , a2 + a 2 , , an )
and
(a1 , ca2 , , an ) = c (a1 , a2 , , an ).
The function is skew symmetric, i.e., transposing two of its vector vari-
ables changes its sign.
The function is normalized, i.e., (e1 , e2 , , en ) = 1.
The determinant is the unique function satisfying these three conditions,
so = det.
Proof. By definition,
The right side is precisely (Ti1 , Ti2 , , Tin ), so the lemma completes the
proof.
In particular, when m = n and I = (1, , n), the theorem says that
You may want to verify this directly to get a better feel for the pullback
and the lemma. In general, the PullbackDeterminant Theorem can be a big
time-saver for computing pullbacks when the degree of the form equals the
dimension of the domain space. Instead of multiplying out lots of wedge prod-
ucts, simply compute the relevant subdeterminant of a derivative matrix.
What makes the integration of differential forms invariant under change of
variable is that the pullback operator commutes with everything else in sight.
Theorem 9.9.4 (Properties of the Pullback). Let A be an open subset
of Rn , and let B be an open subset of Rm . Let T = (T1 , , Tm ) : A B
be a smooth mapping. Then:
(1) For all 1 , 2 , k (B) and c R,
T (1 + 2 ) = T 1 + T 2 ,
T (c) = c T .
T ( ) = (T ) (T ).
That is, the pullback is linear, the pullback is multiplicative (meaning that
it preserves products), and the pullback of the derivative is the derivative of
the pullback. The results in the theorem can be expressed in commutative
diagrams, as in exercise 9.8.5. Part (2) says that the following diagram com-
mutes:
(T ,T )
k (B) (B) / k (A) (A)
T
k+ (B) / k+ (A),
T
k (B) / k (A)
d d
T
k+1 (B) / k+1 (A).
All of this is especially gratifying because the pullback itself is entirely natural.
Furthermore, the proofs are straightforward: all we need to do is compute, ap-
ply definitions, and recognize definitions. The only obstacle is that the process
requires patience.
For a one-term k-form f dyI , d(f dyI ) = df dyI , so by (2) and the result for
0-forms,
S T
k (C) / k (B) / k
4 (A).
(ST )
460 9 Integration of Differential Forms
(S T ) f = f (S T ) = (f S) T = T (S f ) = (T S )f.
Since any k-form is a sum of wedge products of 0-forms and 1-forms, and since
the pullback passes through sums and products, the general case follows.
Recapitulating the section: To pull a differential form back though a map
is to change variables in the form naturally. Because the wedge product has
the determinant wired into it, so does the pullback. Because the pullback is
natural, it commutes with addition, scalar multiplication, wedge multiplica-
tion, and differentiation of forms, and it anticommutes with composition of
forms. That is, everything that we are doing is preserved under change of
variables.
The results of this section are the technical heart of the chapter. The
reader is encouraged to contrast their systematic algebraic proofs with the
tricky analytic estimates in the main proofs of chapter 6. The work of this
section will allow the pending proof of the General Fundamental Theorem of
Integral Calculus to be carried out by algebra, an improvement over hand-
waving geometry or tortuous analysis. The classical integration theorems of
the nineteenth century will follow without recourse to the classical procedure
of cutting a big curvy object into many pieces and then approximating each
small piece by a straight piece instead. The classical procedure is either im-
precise or Byzantine, but for those willing to think algebraically, the modern
procedure is accurate and clear.
We end this section by revisiting the third example from its beginning.
Recall that we considered the 1-form
x dy y dx
=
x2 + y 2
and the complex square mapping
call
T (u, v) = (u2 v 2 , 2uv) = (x, y),
9.9 Algebra of Forms: the Pullback 461
and we computed that the pullback T was twice , but written in (u, v)-
coordinates. Now we obtain the same result more conceptually in light of the
results of this section. The idea is that since measures change in angle, which
doubles under the complex square mapping, the result will be obvious in polar
coordinates, and furthermore the pullback behaves so well under changes of
variable that the corresponding result for cartesian coordinates will follow
easily as well. Thus, consider the polar coordinate mapping
call
: R>0 R R2 \{(0, 0)}, (r, ) = (r cos , r sin ) = (u, v).
And the polar coordinate mapping also applies to the polar coordinates that
are output by the complex square mapping,
= ( r sin ) call
= (x, y).
: R>0 R R2 \{(0, 0)}, (
r, ) r cos ,
/ R2 \{(0, 0)}
R>0 R
S T
/ R2 \{(0, 0)}.
R>0 R
1 (R>0 R) o 1 (R2 \{(0, 0)})
O O
S T
1 (R>0 R) o 1 (R2 \{(0, 0)}).
d(2) o T
O O
d o
Since d(2) = 2 d, the sought-for pullback T must be the (u, v)-form that
pulls back through the polar coordinate mapping to 2 d. And so T should
be the double of , but with u and v in place of x and y,
462 9 Integration of Differential Forms
u dv v du
T = 2 .
u2 + v 2
This is the value of T that we computed mechanically at the beginning of
the section. Indeed, note that this second derivation of T makes no reference
whatsoever to the formula T (u, v) = (u2 v 2 , 2uv), only to the fact that in
polar coordinates the complex square mapping squares the radius and doubles
the angle.
Similarly, we can use these ideas to pull the area-form = dx dy back
through T . Indeed, dx dy pulls back through the polar coordinate mapping
which pulls back through S to r2 d(r2 ) d(2) = 4r3 dr d.
r d,
to r d
Thus we have a commutative diagram
4r3 drO d o T
O
r d o
r d
Exercises
call
9.9.1. Define S : R2 R2 by S(u, v) = (u + v, uv) = (x, y). Let =
x2 dy + y 2 dx and = xy dx, forms on (x, y)-space.
(a) Compute , S (u, v), and (use the PullbackDeterminant Theorem)
S ( ).
(b) Compute S , S , and S S . How do you check the last of
these? Which of the three commutative diagrams from the section is relevant
here?
(c) Compute d and S (d).
(d) Compute d(S ). How do you check this? Which commutative diagram
is relevant?
call
(e) Define T : R2 R2 by T (s, t) = (s t, set ) = (u, v). Compute
T (S ).
(f) What is the composite mapping S T ? Compute (S T ) . How do
you check this, and which commutative diagram is relevant?
9.9 Algebra of Forms: the Pullback 463
9.9.2. Recall the two forms from the beginning (and the end) of the section,
x dy y dx
= , = dx dy.
x2 + y 2
Consider a mapping from the nonzero points of (u, v)-space to nonzero points
of (x, y)-space.
u v call
T (u, v) = , = (x, y).
u2 + v 2 u2 + v 2
As at the end of the section, in light of the fact that T is the complex reciprocal
mapping, determine what T and T must be. If you wish, confirm your
answers by computing them mechanically as at the beginning of the section.
9.9.3. Consider a differential form on the punctured (x, y)-plane,
x dx + y dy
= p .
x2 + y 2
(a) Pull back through the polar coordinate mapping from the end of the
section,
( = (
r, ) r cos , call
r sin ) = (x, y).
R
In light of the value of the pullback, what must be the integral where
is a parametrized curve in the punctured (x, y)-plane?
(b) In light of part (a), pull back through the complex square mapping
from the section,
call
T (u, v) = (u2 v 2 , 2uv) = (x, y),
by using diagrams rather than by relying heavily on computation. Check your
answer by computation if you wish.
(c) Similarly to part (a), pull back through the complex reciprocal map-
ping from the previous exercise,
u v call
T (u, v) = , = (x, y).
u2 + v 2 u2 + v 2
by using diagrams. Check your answer by computation if you wish.
(d) Let k be an integer. The relation x + iy = (u + iv)k determines (x, y)
as a function T (u, v). Pull the forms and from the previous exercise and
the form from this exercise back through T , with no reference to any ex-
plicit formula for T . The results should in particular reproduce your previous
answers for k = 2 and k = 1.
9.9.4. Let A = R3 {0}. Let r be a fixed positive real number. Consider a
2-surface in A,
Then Z Z
= .
D
The general Change of Variable Theorem for differential forms follows im-
mediately from the Pullback Theorem and the contravariance of the pullback.
9.10 Change of Variable for Differential Forms 465
Exercise
call
9.10.1. Let T : R2 R2 be given by T (x1 , x2 ) = (x21 x22 , 2x1 x2 ) = (y1 , y2 ).
Let be the curve : [0, 1] R2 given by (t) = (1, t) mapping the unit
interval into (x1 , x2 )-space, and let T be the corresponding curve mapping
into (y1 , y2 )-space. Let = y1 dy2 , a 1-form
R on (y1 , y2 )-space.
(a) Compute T , and then compute T by using formula (9.14).
(b) Compute RT , the pullback of by T .
(c) Compute T by using formula (9.14). What theorem says that the
answer here is the same as (a)?
(d) Let = dy1 dy2 , the area form on (y1 , y2 )-space. Compute T .
(e) A rectangle in the first quadrant of (x1 , x2 )-space,
R = {(x1 , x2 ) : a1 x1 b1 , a2 x2 b2 },
and
is closed if d = 0.
The nilpotence of d (the rule d2 = 0 from Theorem 9.8.3) shows that any exact
form is closed. We now show that under certain conditions, the converse is
true as well, i.e., under certain conditions any closed differential form can be
antidifferentiated.
A homotopy of a set is a process of deforming the set to a single point,
the deformation taking place entirely within the original set. For example,
consider the open ball
A = {x Rn : |x| < 1}.
A mapping that shrinks the ball to its center as one unit of time elapses is
Plausibly there is no homotopy of the annulus, meaning that the annulus can
not be shrunk to a point by a continuous process that takes place entirely
within the annulus. But proving that there is no homotopy of the annulus is
not trivial. We will return to this point in exercise 9.11.1.
The formal definition of a homotopy is as follows.
B = (, 1 + ) A,
h : B A
Again, the idea is that B is a sort of cylinder over A, and that at one end
of the cylinder the homotopy gives an undisturbed copy of A while by the
other end of the cylinder the homotopy has compressed A down to a point.
This section proves the following result.
B = (, 1 + ) A,
but for now we make no reference to the pending homotopy that will have B
as its domain. Recall that the differentiation operator d increments the degree
of any differential form. Now, by contrast, we define a linear operator that
takes differential forms on B and returns differential forms of one degree lower
on A. Let the coordinates on B be (t, x) = (t, x1 , , xn ) with t viewed as
the zeroth coordinate.
c : k (B) k1 (A), k = 1, 2, 3, ,
differential forms that dont contain dt. That is, letting I denote (k 1)-tuples
and J denote k-tuples, all tuples being from {1, , n},
!
X X X Z 1
c gI (t, x) dt dxI + gJ (t, x) dxJ = gI (t, x) dxI .
I J I t=0
However, note that cd proceeds from k (B) to k (A) via k+1 (B), while dc
proceeds via k1 (A). To analyze the two compositions, compute first that
for a one-term differential form that contains dt,
n
!
X
(cd)(g(t, x) dt dxI ) = c Di g(t, x) dxi dt dxI
i=1
n
!
X
=c Di g(t, x) dt dx(i,I)
i=1
n Z
X 1
= Di g(t, x) dx(i,I) ,
i=1 t=0
while, using the fact that xi -derivatives pass through t-integrals for the third
equality to follow,
Z 1
(dc)(g(t, x) dt dxI ) = d g(t, x) dxI
t=0
n
X Z 1
= Di g(t, x) dx(i,I)
i=1 t=0
Xn Z 1
= Di g(t, x) dx(i,I) .
i=1 t=0
Thus cd + dc annihilates forms that contain dt. On the other hand, for a
one-term differential form without dt,
n
X
(cd)(g(t, x) dxJ ) = c D0 g(t, x) dt dxJ + Dj g(t, x) dx(j,J)
j=1
Z 1
= D0 g(t, x) dxJ
t=0
= (g(1, x) g(0, x)) dxJ ,
9.11 Closed Forms, Exact Forms, and Homotopy 469
while
(dc)(g(t, x) dxJ ) = d(0) = 0.
That is, cd + dc replaces each coefficient function g(t, x) in forms without dt
by g(1, x) g(0, x), a function of x only.
To notate the effect of cd+dc more tidily, define the two natural mappings
from A to the cross-sections of B where the pending homotopy of A will end
and where it will begin,
( )
0 (x) = (0, x)
0 , 1 : A B, .
1 (x) = (1, x)
Because 0 and 1 have ranges where t is constant, and because they dont
affect x, their pullbacks,
0 , 1 : k (B) k (A), k = 0, 1, 2, ,
and
h : B A.
h : k (A) k (B), k = 0, 1, 2, .
d(ch ) = .
This function must have derivative . To verify that it does, compute that its
first partial derivative is
Z 1
D1 ch (x, y) = f (tx, ty) + xD1 (f (tx, ty)) + yD1 (g(tx, ty)) .
t=0
By the Chain Rule and then by the fact that D1 g = D2 f , the first partial
derivative is therefore
Z 1
D1 ch (x, y) = f (tx, ty) + xD1 f (tx, ty)t + yD1 g(tx, ty)t
t=0
Z 1 Z 1
= f (tx, ty) + t(xD1 f (tx, ty) + yD2 f (tx, ty)).
t=0 t=0
R1
The last integral takes the form t=0 u v where u(t) = t and v(t) = f (tx, ty).
And so finally, integrating by parts gives
9.11 Closed Forms, Exact Forms, and Homotopy 471
Z 1 1 Z 1
D1 ch (x, y) = f (tx, ty) + tf (tx, ty) f (tx, ty)
t=0 t=0 t=0
= f (x, y).
Exercises
9.11.1. (a) Here is a special case of showing that a closed form is exact without
recourse to Poincares Theorem. A function f : R3 R is called homoge-
neous of degree k if
x dy y dx
= ,
x2 + y 2
gives a nonzero answer. Explain why this shows that there is no 0-form (i.e.,
function) on the punctured plane such that = d.
(c) Use part (b) to show that there cannot exist a homotopy of the punc-
tured plane. How does this nonexistence relate to the example of the annulus
at the beginning of the section?
One can define predictable rules for addition and scalar multiplication (integer
scalars) of chains, all of which will pass through the integral sign tautologically.
Especially, the Change of Variable Theorem for differential forms extends from
integrals over surfaces to integrals over chains,
Z Z
= T .
T C C
Exercises
h , i : {k-chains in A} {k-forms on A} R
Show that this inner product is bilinear, meaning that for all suitable chains
C and Ci , all suitable forms and i , and all constants ci ,
X X
h ci Ci , i = ci hCi , i
i i
and X X
hC, c i i i = ci hC, i i.
i i
It makes no sense to speak of symmetry of this pairing since the arguments
may not be exchanged.
Do you think the pairing is nondegenerate, meaning that for any fixed
chain C, if hC, i = 0 for all forms then C must be 0, and for any fixed
form , if hC, i = 0 for all chains C then must be 0?
9.12.2. Let A be an open subset of Rn , let B be an open subset of Rm , and
let k 0. Any smooth mapping T : A B gives rise via composition to a
corresponding pushforward mapping from k-surfaces in A to k-surfaces in B,
T : {k-surfaces in A} {k-surfaces in B}, T = T .
In more detail, since a k-surface in A takes the form : D A where
D Rk is a parameter domain, the pushforward mapping is
T
( : D A) 7
(T : D B).
Using the pairing-notation of the previous exercise, a result from earlier in
this chapter renotates as
hT , i = h, T i for all suitable and .
Which result? Note that the renotation shows that the pushforward and pull-
back are like a pair of adjoint operators in the sense of linear algebra.
by the properties:
P
(1) For any k-chain s (s) ,
X X
s (s) = s (s) .
= k .
(The composition here is of the sort defined at the end of the previous
section.)
(3) Define mappings from the standard (k1)-cube to the faces of the standard
k-cube as follows: for any i {1, , n} and {0, 1}, the mapping to
the face where the ith coordinate equals is
given by
Then
k X
X 1
k = (1)i+ ki, . (9.16)
i=1 =0
or just set the ith variable to . The idea of formula (9.16) is that for each of
the directions in k-space (i = 1, , k), the standard k-cube has two faces with
normal vectors in the ith direction ( = 0, 1), and we should take these two
faces with opposite orientations in order to make both normal vectors point
outward. Unlike differentiation, which increments the degree of the form it
acts on, the boundary operator decrements chain dimension.
For example, the boundary of the standard 1-cube is given by (9.16)
476 9 Integration of Differential Forms
1 = 11,0 + 11,1 .
That is, the boundary is the right endpoint of [0, 1] with a plus and the left
endpoint with a minus. (See figure 9.11. The figures for this section show the
images of the various mappings involved, with symbols added as a reminder
that the images are being traversed by the mappings.) One consequence of
this is that the familiar formula from the one-variable Fundamental Theorem
of Integral Calculus, Z 1
f = f (1) f (0),
0
is now expressed suggestively in the notation of differential forms as
Z Z
df = f.
1 1
This chain traverses the boundary square of [0, 1]2 once counterclockwise. (See
figure 9.12.) Next consider a singular 2-cube that parametrizes the unit disk,
This chain traverses the faces of [0, 1]3 , oriented positively if we look at them
from outside the solid cube. (See figure 9.14.)
The second boundary of the standard 2-cube works out by cancellation to
2 2 = 0.
(See the left side of figure 9.15.) And the second boundary of the standard
3-cube similarly is
2 3 = 0.
(See the right side of figure 9.15.) These two examples suggest that the nota-
tional counterpart to the nilpotence of d is also true,
2 = 0.
states that in a precise sense the differentiation operator d and the boundary
operator are complementary. Their complementary nature is why they are
notated so similarly.
z
+
+
y
+
+
Although the parametrizing box is not literally [0, 1]3 , we grant ourselves
license to treat the upper limits of the parameters as 1 in determining the
signs in the formula
Here we also grant ourselves license to use chain-addition inside the paren-
thesis rather than compose six times. The boundary components, unsigned,
are
Exercises
(In fact, the image is all of the simplex, but showing this would take us too
far afield.)
9.14 The General Fundamental Theorem of Integral Calculus 481
H = {(x, y, z) R3 : x2 + y 2 + z 2 1, z 0}.
(u, v) = (u, v, u2 + v 2 ).
(Again, first make sure that you understand the geometry of the problem, es-
pecially the interpretation of the parametrizing variables in the image-space.)
How does this exercise combine with the result 2 = 0 to bear on exer-
cise 9.13.5?
9.13.7. Fix constants 0 < a < b. Describe the boundary of : [0, 2][0, 2]
[0, 1] R3 where (u, v, t) = (cos u(b + at cos v), sin u(b + at cos v), at sin v).
(First understand the geometry, especially the interpretation of u, v, and t in
the image-space.)
Before proving the theorem, we study two examples. First, suppose that
k = n = 1, and that the 1-chain C is a singular 1-cube : [0, 1] R taking
0 and 1 to some points a and b. Then the theorem says that for any suitable
smooth function f ,
Z b
f (x) dx = f (b) f (a).
a
This is the one-variable Fundamental Theorem of Integral Calculus. Thus,
whatever else we are doing, we are indeed generalizing it.
Second, to study a simple case involving more than one variable, suppose
that C = 2 (the standard 2-cube) and = f (x, y) dy for some smooth
function f : [0, 1]2 R. The derivative in the left side of (9.17) works out
to
d = D1 f (x, y) dx dy,
Exercise 9.5.4 says that we may drop the wedges from the integral of this
2-form over the full-dimensional surface 2 in 2-space to obtain a chapter 6
function-integral, and so the left side of (9.17) works out to
Z Z Z
d = D1 f (x, y) dx dy = D1 f.
2 2 [0,1]2
Meanwhile, on the right side of (9.17), the boundary 2 has four pieces,
but on the two horizontal pieces dy is zero since y is constant. Thus only the
integrals over the two vertical pieces contribute, giving
Z Z 1 Z 1 Z 1
= f (1, u) f (0, u) = f (1, u) f (0, u).
2 u=0 u=0 u=0
and so by exercise 9.5.4, the left side reduces to the function-integral of the
jth partial derivative over the unit box,
Z Z Z
d = (1)j1 Dj f dx(1, ,k) = (1)j1 Dj f. (9.18)
k k [0,1]k
R
To evaluate the right side C
of (9.17), we need to examine the boundary
k X
X 1
k = (1)i+ ki, ,
i=1 =0
This derivative matrix is k-by-(k 1), consisting of the identity matrix except
that zeros have been inserted at the ith row, displacing everything from there
downwards. Meanwhile, recall that J = (1, , bj, , k), where the omitted
index j is fixed throughout this calculation. It follows that as the index i of
summation varies, the determinant of the Jth rows of the matrix is
(
k 1 if i = j,
det(i, )J =
0 if i 6= j.
484 9 Integration of Differential Forms
That is, the integral of = f (x) dxJ can be nonzero only for the two terms
in the boundary chain k with i = j, parametrizing the two boundary faces
whose normal vectors point in the direction missing from dxJ :
Z Z
f (x) dxJ = f (x) dxJ
k (1)j+1 (k k
j,1 j,0 )
Z
= (1)j+1 (f kj,1 ) 1 (f kj,0 ) 1.
[0,1]k1
Here the last equality follows from the definition of integration over chains
and the defining formula (9.14). For any point u = (u1 , , uk1 ) [0, 1]k1 ,
the integrand can be rewritten as an integral of the jth partial derivative by
the one-variable Fundamental Theorem of Integral Calculus,
By Fubinis Theorem this is equal to the right side of (9.18), and so the
General FTIC is proved in the special case.
The rest of the proof is handled effortlessly by the machinery of forms and
chains. A general (k 1)-form on [0, 1]k is
k
X
= j , c j dxk .
each j = fj (x) dx1 dx
j=1
P
Each j is a form of the type covered by the special case, and d = j dj .
So, continuing to integrate over the standard k-cube, and citing the special
case just shown for the crucial equality in the middle,
Z Z X XZ
d = dj = dj
k k j j k
XZ Z X Z
= j = j = .
j k k j k
with the third equality due to the result for singular cubes, and the calculation
continues
X Z Z Z Z
s = P = P
= .
s (s) s s (s) ( s s (s) ) C
Exercises
9.14.1. Similarly to the second example before the proof of the General FTIC,
show that the theorem holds when C = 3 and = f (x, y, z) dz dx.
2
9.14.2.
R Prove as a corollary to the General FTIC that = 0, in the sense
that 2 C = 0 for all forms .
486 9 Integration of Differential Forms
4
9.14.4. Let be a 4-chain in R with boundary . Suitably specialize the
General FTIC to prove the identity
Z
f1 dy dz dw + f2 dz dw dx + f3 dw dx dy + f4 dx dy dz
Z
= (D1 f1 D2 f2 + D3 f3 D4 f4 ) dx dy dz dw.
FTIC CoV
+3 Fubini
(n = 1) (n = 1)
s{
CoV
(n > 1)
Z
f ind. of param.
Z
ind. of orient.-pres. param.
'/ FTIC ow
(general)
: J Rn .
To prove the classical Change of Variable Theorem, we need to show that the
following formula holds for any smooth function f : (J) R:
Z Z
f = (f ) det .
(J) J
View the mapping as a singular n-cube in Rn . (Since J need not be the unit
box, the definition of a singular n-cube is being extended here slightly to allow
any box as the domain. The boundary operator extends correspondingly, as
488 9 Integration of Differential Forms
FTIC CoV
3+ Fubini
(n = 1) (n = 1)
+#
s{
FTIC
(general)
CoV
(n > 1)
Z
f ind. of param.
Z
ind. of orient.-pres. param.
Figure 9.17. Provisional layout of the main results after this section
Here x = (x1 , , xn ) and dx = dx1 dxn , and the pullback in the right
side of the equality is = (f )(x) det (x) dx. (Note that applying the
Pullback Theorem (Theorem 9.10.1) reduces the desired formula to
Z Z
= ,
(J)
To see how this might be done, begin by reviewing the derivation of the
one-variable Change of Variable Theorem from the one-variable FTIC, dis-
playing the calculation in two parts,
Z (b) Z (b)
f= F = F ((b)) F ((a)) (9.20)
(a) (a)
and Z Z
b b
(f ) = (F ) = (F )(b) (F )(a). (9.21)
a a
Since the right sides are equal, so are the left sides, giving the theorem. Here
the first version Rof the one-variable FTIC (Theorem 6.4.1) provides the an-
x
tiderivative F = (a) f of f .
Now, starting from the integral on the left side of the desired equal-
ity (9.19), attempt to pattern-match the calculation (9.20) without yet wor-
rying about whether the steps are justified or even meaningful,
Z Z Z
= d = . (9.22)
(J) (J) (J)
Similarly, the integral on the right side of (9.19) looks like the integral at the
beginning of the calculation (9.21), so pattern-match again,
Z Z Z
= d( ) = . (9.23)
J J J
This formula looks like the desired (9.19) but with (n1)-dimensional integrals
of (n 1)-forms. Perhaps we are discovering a proof of the multivariable
490 9 Integration of Differential Forms
the integrals on both sides now being taken over the same box B. Again
pattern-matching the one-variable proof shows that the integral on the left
side is Z Z Z
= d =
B B B
and the integral on the right side is
Z Z Z
= d( ) = ,
B B B
where everything here makes sense. Thus the problem is reduced to proving
that Z Z
= ,
B B
And now the desired equality is immediate: since is the identity mapping on
the boundary of B, the pullback in the right-side integral of the previous
display does nothing, and the two integrals are equal. (See exercise 9.15.1 for a
slight variant of this argument.) The multivariable argument has ended exactly
492 9 Integration of Differential Forms
as the one-variable argument did. We did not need to argue by induction after
all.
In sum, the General FTIC lets us side-step the traditional proof of the
classical Change of Variable Theorem, by expanding the environment of the
problem to a larger box and then reducing the scope of the question to the
larger boxs boundary. On the boundary there is no longer any difference
between the two quantities that we want to be equal, and so we are done.
The reader may well object that the argument here is only heuristic, and
that there is no reason to believe that its missing technical details will be any
less onerous than those of the usual proof the classical Change of Variable
Theorem. The difficulty of the usual proof is that it involves nonboxes, while
the analytic details of how this argument proceeds from the nonbox (J) to
a box B were not given. Along with the extensions of and to B being
invoked, the partitioning of J into small enough subboxes was handwaved.
Furthermore, the change of variable mapping is assumed here to be smooth,
whereas in Theorem 6.7.1 it need only be C 1 . But none of these matters is
serious. A second article by Lax, written in response to such objections, shows
how to take care of them. Although some analysis is admittedly being elided
here, the new argument nonetheless feels more graceful to the author of these
notes than the older one.
Exercise
9.15.1. Show that in the argument at the end of the section, we could instead
reason about the integral on the right side that
Z Z Z
= d = .
B
R R
Thus the problem is reduced to proving that B
=
. Explain why
the desired equality is immediate.
The double integral sign is used on the left side of Greens Theorem to em-
phasize that the integral is two-dimensional. Naturally the classical statement
doesnt refer to a singular cube or include a wedge. Instead, the idea classi-
cally is to view as a set in the plane and require a traversal of (also
viewed as a set) such that is always to the left as one moves along .
Other than this, the boundary integral is independent of how the boundary is
traversed because the whole theory is invariant under orientation-preserving
reparametrization. (See figure 9.20.)
in the vertical component of its input. The left side of figure 9.21 shows a
scenario where the two terms D1 F2 and D2 F1 of (curl F~ )(p) are positive.
The figure illustrates why curl F~ is interpreted as measuring the vorticity of F~
at p, its tendency to rotate a paddle-wheel at p counterclockwise. Similarly,
D1 F1 is the rate of change of the horizontal component of F with respect
to change in the horizontal component of its input, and D2 F2 is the rate of
change of the vertical component of F with respect to change in the vertical
component of its input. The right side of figure 9.21 shows a scenario where
the terms of (div F~ )(p) are positive. The figure illustrates why div F~ is viewed
as measuring the extent that fluid is spreading out from p, i.e., how much fluid
is being pumped into or drained out of the system at the point. Specifically,
the left side of the figure shows the vector field
F~ (x, y) = (y, x)
and the right side shows (with some artistic license taken to make the figure
legible rather than accurate) the vector field
F~ (x, y) = (x, y)
curl F~ = (D2 F3 D3 F2 , D3 F1 D1 F3 , D1 F2 D2 F1 ).
div F~ = D1 F1 + D2 F2 + D3 F3 .
Exercises
9.16.1. (a) Let : [0, 1] R2 , t 7 (t) be a curve, and recall the form-
vectors on R2 ds~ = (dx, dy), dn~ = (dy, dx). Compute the pullbacks (ds)~
~ and explain why these are interpreted as differential tangent and
and (dn)
normal vectors to .
(b) Let : [0, 1] R3 , t 7 (t) be a curve and : [0, 1]2 R3 ,
~ = (dx, dy, dz),
(u, v) 7 (u, v) a surface, and recall the form-vectors on R3 ds
~ ~
dn = (dydz, dzdx, dxdy). Compute the pullbacks (ds) and (dn) ~ and
explain why these are interpreted respectively as differential tangent vector
to and differential normal vector to .
9.16.2. Use Greens Theorem to show that for a planar region ,
Z Z
area() = x dy = y dx.
Thus one can measure the area of a planar set by traversing its bound-
ary. (This principle was used to construct ingenious area-measuring machines
called planimeters before Greens Theorem was ever written down.)
9.16.3. Let H be the upper unit hemispherical shell,
H = {(x, y, z) R3 : x2 + y 2 + z 2 = 1, z 0}.
Define a vector-valued function on R3 ,
F (x, y, z) = (x + y + z, xy + yz + zx, xyz).
RR
Use Stokess Theorem to calculate H curl F dn.~
F = Fr + F ,
where
(Recall that the unary cross product (x, y) = (y, x) in R2 rotates vectors
90 degrees counterclockwise.) Here fr is positive if Fr points outward and
negative if Fr points inward, and f is positive if F points counterclockwise
and negative if F points clockwise. Since F (0) = 0, the resolution of F into
radial and angular components extends continuously to the origin, fr (0) =
f (0) = 0, so that Fr (0) = F (0) = 0 even though r and are undefined at
the origin.
The goal of this section is to express the divergence and the curl of F
at the origin in terms of the polar coordinate system derivatives that seem
naturally suited to describe them, the radial derivative of the scalar radial
component of F ,
fr (r cos , r sin )
Dr fr (0) = lim+ ,
r0 r
and the radial derivative of the scalar angular component of F ,
f (r cos , r sin )
Dr f (0) = lim+ .
r0 r
However, matters arent as simple here as one might hope. For one thing,
the limits are stringent in the sense that they must always exist and take
the same values regardless of how behaves as r 0+ . Also, although F
is differentiable at the origin if its vector radial and angular components Fr
and F are differentiable at the origin, the converse is not true. So first we
need sufficient conditions for the converse, i.e., sufficient conditions for the
components to be differentiable at the origin. Necessary conditions are always
easier to find, so Proposition 9.17.1 will do so, and then Proposition 9.17.2 will
show that the necessary conditions are sufficient. The conditions in question
are the CauchyRiemann equations,
D1 f1 (0) = D2 f2 (0),
D1 f2 (0) = D2 f1 (0).
500 9 Integration of Differential Forms
F = (f1 , f2 ) : A R2 , F (0) = 0.
9.17 Divergence and Curl in Polar Coordinates 501
Assume that the vector radial and angular components Fr and F of F are
differentiable at the origin. Then F is differentiable at the origin, and the
CauchyRiemann equations hold at the origin.
For example, the vector field F (x, y) = (x, 0) is differentiable at the ori-
gin, but since D1 f1 (0) = 1 and D2 f2 (0) = 0, it does not satisfy the Cauchy
Riemann equations, and so the derivatives of the radial and angular compo-
nents of F at the origin do not exist.
To further study the condition in the previous display, use the formula
( f (x,y)
r
(x, y) if (x, y) 6= 0,
Fr (x, y) = |(x,y)|
0 if (x, y) = 0
to substitute h fr (h, k)/|(h, k)| for Fr,1 (h, k). Also, because F is angular, F,1
vanishes on the x-axis, and so D1 F,1 (0) = 0; thus, since f1 = Fr,1 + F,1 ,
we may substitute D1 f1 (0) for D1 Fr,1 (0) as well. Altogether the condition
becomes
502 9 Integration of Differential Forms
And so we have shown the first CauchyRiemann equation and a little more,
fr (h, k)
lim = D1 f1 (0) = D2 f2 (0).
(h,k)0 |(h, k)|
f (h, k)
lim = D1 f2 (0) = D2 f1 (0).
(h,k)0 |(h, k)|
F = (f1 , f2 ) : A R2 , F (0) = 0.
Assume that F is differentiable at the origin, and assume that the Cauchy
Riemann equations hold at the origin. Then the vector radial and angular
components Fr and F are differentiable at the origin.
Decompose the quantity in the previous display into radial and angular com-
ponents,
F (h, k) (ah bk, bh + ak) = Fr (h, k) a(h, k) + F (h, k) b(k, h) .
That is, Fr and F are differentiable at the origin with respective Jacobian
matrices
a0 0 b
Fr (0) = and F (0) = .
0a b 0
This completes the proof.
F = (f1 , f2 ) : A R2 , F (0) = 0.
fr (r cos , r sin )
Dr fr (0) = lim+
r0 r
and
f (r cos , r sin )
Dr f (0) = lim ,
r0+ r
both exist independently of how behaves as r shrinks to 0. Furthermore,
the divergence of F at the origin is twice the radial derivative of the radial
component,
(div F )(0) = 2Dr fr (0),
and the curl of F at the origin is twice the radial derivative of the angular
component,
(curl F )(0) = 2Dr f (0).
504 9 Integration of Differential Forms
so that
(curl F )(0) = D1 f2 (0) D2 f1 (0) = 2Dr f (0).
If F is a velocity field then the limit in the formula
f (r cos , r sin )
(curl F )(0) = 2 lim+
r0 r
has the interpretation of the angular velocity of F at the origin. That is:
When the CauchyRiemann equations hold, the curl is twice the an-
gular velocity.
Indeed, the angular velocity away from the origin is by definition the rate
of increase of the polar angle with the motion of F . This is not the counter-
clockwise component f , but rather = f /r, i.e., is the function called g
in the proof of Proposition 9.17.1. To understand this, think of a uniformly
spinning disk such as a record on a turntable. At each point except the center,
the angular velocity is the same. But the speed of motion is not constant over
the disk, it is the angular velocity times the distance from the center. That is,
the angular velocity is the speed divided by the radius, as claimed. In these
terms, the proof showed that the angular velocity extends continuously to 0,
and that (curl F )(0) is twice the extended value (0).
Also, if F is a velocity field then the right side of the formula
fr (r cos , r sin )
(div F )(0) = 2 lim+
r0 r
has the interpretation of the flux density of F at the origin. That is:
When the CauchyRiemann equations hold, the divergence is the flux
density.
9.17 Divergence and Curl in Polar Coordinates 505
r2 c rc
fr (r cos , r sin ) = = .
2r 2
Consequently,
fr (r cos , r sin )
2 = c.
r
Now let r shrink to 0. The left side of the display goes to the divergence of F
at 0, and the right side becomes the continuous extension to radius 0 of the
flux density over the circle of radius r. That is, the divergence is the flux
density when fluid is being added at a single point.
Exercises
9.17.1. Put R2 into correspondence with the complex number field C as fol-
lows:
x
x + i y.
y
Show that the correspondence extends to
a b x
(a + i b)(x + i y).
b a y
9.17.2. Let A R2 be an open set that contains the origin, and let F :
A R2 be a vector field on A that is stationary at the origin. Define a
complex-valued function of a complex variable corresponding to F ,
f (z + z) f (z)
lim .
z0 z
The limit is denoted f (z).
(a) Suppose that f is complex-differentiable at 0. Compute f (z) first by
letting z go to 0 along the x-axis, and again by letting z go to 0 along
the y-axis. Explain how your calculation shows that the CauchyRiemann
equations hold at 0.
(b) Show also that if f is complex differentiable at 0 then F is vector
differentiable at 0, meaning differentiable in the usual sense. Suppose that f
is complex-differentiable at 0, and that f (0) = rei . Show that
9.18 Summary
The bulk of the ideas introduced in this chapter are algebraic. Even so, the
General FTIC subsumes the three classical integration theorems of vector
calculus, and it eases the proof of the classical Change of Variable Theorem.
Index