I refuse to answer that question on the grounds that I don’t know the answer.
—Douglas Adams
For this book, we assume as a prerequisite a basic knowledge of analysis on the real line. Let us, however, survey some basic results that the reader might not have seen in such a course, and that are useful in the text. Furthermore, we require some of these results in metric spaces and although their proofs are essentially the same as on the real line, it is worth it to put them down. The text is partly adapted from [L1] and [L2]. See those two texts for more details.
In the following, is any set.
The sequence of functions converges pointwise to , if for every ,
If we say converges to on we mean that the restrictions of to converge pointwise to . As limits of sequences of numbers are unique, the limit function is unique.
Pointwise convergence does not preserve much structure about . For example, a pointwise limit of continuous functions is not continuous, see the exercises.
Let and be functions. The sequence converges uniformly to , if for every there exists an such that for all ,
In uniform convergence, cannot depend on . Given , we must find an that works for all . See Figure B.1 for an illustration. It can easily be seen that uniform convergence implies pointwise convergence. The converse does not hold.
Let be functions on .
Show that converges pointwise to a discontinuous function.
Prove that converges pointwise but not uniformly.
Suppose are functions that converge uniformly to . Suppose . Show that the sequence of restrictions converges uniformly to .
Suppose and defined on some set converge pointwise to and , respectively. For , show that converges pointwise to .
Show the same for uniform convergence.
Find an example of a sequence of functions and that converge uniformly to some and on some set , but such that (the multiple) does not converge uniformly to on .
Suppose there exists a sequence of functions uniformly converging to on . Now suppose we have a sequence of functions and a function on such that
for all . Show that converges uniformly to on .
Let , and be sequences of functions on some set . Suppose and converge uniformly to some function and suppose for all . Show that converges uniformly to .
Prove that if a sequence of functions converge uniformly to a bounded function , then there exists an such that for all , the are bounded.
For , define the uniform norm,
Note that if is not bounded, then . Therefore, unless dealing with bounded functions, we treat the norm as an extended real, so it is not what people would call a “norm” unless we restrict to bounded functions.
A sequence converges uniformly to if and only if
Prove the proposition.
We may say converges to in uniform norm instead of converges uniformly. The proposition says that the two notions are the same thing. It is generally easiest to think about uniform convergence of functions using metric spaces. A Cauchy sequence of functions in the uniform norm is said to be Cauchy in the uniform norm or uniformly Cauchy.
The set of bounded real-valued functions on is a complete metric space with the metric . In particular, if a sequence is uniformly Cauchy, then it is uniformly convergent.
Prove the proposition. There are two things to prove. First, prove that the set is a metric space, that is, is a metric. Second, prove that it is complete.
It is perhaps surprising that on the set of functions for an uncountable , there is no metric that gives pointwise convergence. You could even require to be bounded and/or continuous, and there is still no metric. A metric space is so-called first countable, that is, at each there exists a sequence of neighborhoods such that any neighborhood of contains one of the s, a so-called countable neighborhood basis. In a metric space, does the job. But functions on an uncountable set with pointwise convergence do not have a first countable topology. We do not want to wade too deep into general topology to prove this fact.
If we have a sequence of continuous functions, is the limit continuous? We have seen that for pointwise convergence, it need not be the case, see Exercise B.1.1. If we, however, require the convergence to be uniform, the limits can be interchanged.
Let be a metric space. Let be a sequence of continuous functions converging uniformly to . Then is continuous.
Let be fixed. Let be a sequence in converging to . Let be given. As converges uniformly to , we find a such that
for all . As is continuous at , we find an such that for we have
Thus for ,
Therefore, converges to and hence is continuous at . As was arbitrary, is continuous everywhere. ∎
In the language of metric spaces, as uniform limits of continuous functions are continuous, the set of bounded continuous functions is a complete metric space. The proof is left as an exercise. More precisely, let denote the set of bounded real-valued continuous functions on . We use the uniform norm as metric and is a metric space for any . If is compact, then all continuous functions are bounded and itself is a metric space.
Let be a metric space. Then is a complete metric space. If is compact, then is a complete metric space.
Prove Corollary B.1.8.
A sequence of functions converges uniformly on compact subsets if for every compact the sequence converges uniformly on .
Let be open. If is a sequence of continuous functions converging uniformly on compact subsets, then the limit is continuous.
Prove the corollary.
As with continuity, if we simply require pointwise convergence, then the integral of a limit of a sequence of functions need not be equal to the limit of the integrals.
Let be the characteristic function of a set , that is, if and otherwise. The functions all integrate (on the interval ) to . Their pointwise limit is (whose integral is ).
If we require the convergence to be uniform, the limits can be interchanged.
Let be a sequence of Riemann integrable functions converging uniformly to . Then is Riemann integrable and
In the following, let and denote the upper and lower Darboux integral. Briefly,
The definition of the Riemann integral using Darboux sums and integrals is beyond the scope of this book, but let us just mention that if the upper and lower Darboux integrals are equal, then a function is Riemann integrable, and the common value is the integral. Given this fact, let us prove the theorem.
Let be given. As goes to uniformly, we find an such that for all , we have for all . In particular, by reverse triangle inequality for all , hence is bounded as is bounded. Note that is integrable and compute
The first inequality is due to the upper integral being only subadditive () and the lower integral being superadditive. The final inequality follows from the fact that for all , we have . As was arbitrary, is Riemann integrable.
We compute . For ( is the same as above),
Therefore, converges to . ∎
While we do not require the Lebesgue integral in this book, note that for the Lebesgue integral, a much stronger convergence theorem holds. In particular, the dominated convergence theorem implies that if is a sequence of measurable functions on , converging pointwise to , and such that is uniformly bounded (there is a single such that for all ), then
Here, of course, the integrals must be the Lebesgue integrals, not the Riemann integrals. The pointwise limit of Riemann integrable functions need not even be Riemann integrable.
Compute .
Find a sequence of Riemann integrable functions such that converges to zero pointwise, and such that
increases without bound,
is the sequence .
Uniform convergence is enough to swap limits with integrals. It is not, however, enough to swap limits with derivatives, unless the derivatives themselves converge uniformly.
The functions converge uniformly to . See Figure B.2. The derivative of the limit is . But , and that sequence does not converge even pointwise: For example, . Furthermore, for all , which does converge, but not to .
The following theorem is true even if we do not assume continuity of the derivatives, but the proof is more difficult.
Let be a bounded interval and let be continuously differentiable functions. Suppose converges uniformly to , and suppose is a convergent sequence for some . Then converges uniformly to a continuously differentiable function , and .
Define . As are continuous and hence Riemann integrable, via the fundamental theorem of calculus, we find that for ,
As converges uniformly on , it converges uniformly on (or if ). Thus, the limit on the right-hand side exists. Define at the remaining points by
The function is continuous, being the uniform limit of continuous functions. Hence, is differentiable and for all by the fundamental theorem of calculus.
It remains to prove uniform convergence. Suppose has a lower bound and upper bound . Let be given. Take such that for , we have and for all . Then,
The proof goes through without boundedness of , except for the uniform convergence of to . For an example let and . Then , which converges uniformly to . However, converges to only pointwise.
In Exercise A.1.8, you proved that the set of once continuously differentiable functions on , that is, , is a metric space with the so-called metric (or norm)
The theorem says that is a complete metric space.
Find an explicit example of a sequence of differentiable functions on that converge uniformly to a function such that is not differentiable. Hint: Perhaps ?
Let . Show that converges uniformly to a differentiable function on (find ). However, show that .
Let be a function of two variables and define
The question is: Is continuous? We are really asking when two limits commute, which is not always possible, so some extra hypothesis is necessary. A sufficient (but not necessary) condition is that is continuous on a closed rectangle.
If is continuous, then defined by
Fix , and let be a sequence in converging to . Let be given. As is continuous on the compact set , is uniformly continuous. Thus, there exists a such that whenever and , we have for all . Suppose . Then
In applications, if we are interested in continuity at , we just need to apply the proposition in for some small . For example, if is continuous in , then is continuous on .
Prove a stronger version of Proposition B.2.1: If is a bounded continuous function, then defined by
Hint: First integrate over .
Fubini’s theorem says that under some mild conditions one can generally swap the order of integrals in an iterated integral. We prove the following simple case of Fubini that is generally enough for the purposes of this book.
Suppose is continuous. Then
One of the tricky bits about Fubini for the Riemann integral is that the integrand of the outer integral, for example as a function of , is not necessarily Riemann integrable even if is Riemann integrable as a function of two variables. However, by the previous subsection, if is continuous, then is a continuous function of and hence integrable. So for continuous functions we sidestep the integrability issues.11 1 For more complicated scenarios, the reader is encouraged to just learn the Lebesgue integral.
As is compact, is uniformly continuous. So for any , there is a such that if and , then . Let
This is the “right-hand rule” step function with subinterval length : Integrating with respect to is the right-hand rule for integrating . Let be large enough so that . Then, via the uniform continuity estimate, we find that for all and . So
So converges uniformly as a function of to . Finally, the integral of is just the right-hand rule. Putting it all together,
The final equation is simply the realization that is a continuous function of , hence integrable, and what we have is just the right-hand rule for the integral of this function over . ∎
Suppose if and and otherwise. Using the Riemann integral, prove that one of and exists and the other does not (the integrand is not a well-defined function).
Compute
You will need to interpret the integrals as improper, that is, the limit of as .
Let be a function of two variables and
If is continuous on , then Proposition B.2.1 says that is continuous on . Suppose is differentiable in . Can we “differentiate under the integral?” Differentiation is a limit and we are again asking when two limits, namely integration and differentiation, commute. The first question we face is the integrability of , but the formula can fail even if is integrable as a function of for every fixed . We prove a simple, but perhaps the most useful, version of the theorem.
Suppose is a continuous function, such that exists for all and is continuous. Define
Then is continuously differentiable and
The hypotheses on and can be weakened to a degree. See, e.g., Exercise B.2.10. The proof below requires that exists and is continuous as a function of two variables, and the interval must be the entire closed interval . The interval can be replaced by a small (open or closed) interval if needed, and in applications, we often make be a small interval around the point where we need to differentiate.
Fix and let be given. As is continuous on , it is uniformly continuous. In particular, there exists such that whenever with and all , we have
Suppose is such that and . Fix for a moment and apply the mean value theorem to find a between and such that
As ,
This argument worked for every . Therefore, as a function of
We defined uniform convergence for sequences although the idea is the same. You may replace with a sequence of nonzero numbers converging to such that and let .
Consider the difference quotient of ,
Uniform convergence implies the limit can be taken underneath the integral. So
Then is continuous on by Proposition B.2.1. ∎
Consider
The integral exists as the function under the integral extends continuously to , see Exercise B.2.4. Trouble is finding it. Introduce a parameter and define a function:
The function also extends to a continuous function of and for (also in the exercise). See Figure B.3.
Therefore, is a continuous function on , and . For , the derivative of the integrand, , is continuous on . Therefore, for we may differentiate under the integral sign
We know is continuous on , , and for , is differentiable and . So . In other words,
Prove the two statements that were asserted in Example B.2.4:
Prove extends to a continuous function on . That is, there exists a continuous function on that equals on .
Prove extends to a continuous function on .
Suppose is continuous and is continuously differentiable and compactly supported ( is zero outside a compact interval). Define
Show that is differentiable.
Suppose is an infinitely differentiable function (all derivatives exist) such that .
Show that there exists an infinitely differentiable function such that .
Show that if , then .
Hint: First write and then rewrite the integral to go from to .
Let be open and suppose is a continuous function defined on . Suppose exist and are continuous on . Prove that defined by
is continuously differentiable (the partial derivatives exist and are continuous).
Work out the following counterexample: Let
Prove that for each fixed the function is Riemann integrable on and
Therefore exists and we get the continuous function
Prove exists at all and and compute it.
Show that for all
Work out the following counterexample: Let
Prove is continuous on all of . Therefore the following function is well-defined for every :
Prove exists for all , but is not continuous at .
Show that does not exist even if we take improper integrals, that is, that the limit does not exist.
Note: Feel free to use what you know about sine and cosine from calculus.
Strengthen the Leibniz integral rule in the following way. Suppose is a bounded continuous function, such that exists for all and is continuous and bounded. Define
Then is continuously differentiable and
Hint: See also Exercise B.2.1 and Theorem B.1.15.
In the following, the norm of a vector in is the euclidean norm . When applied to a linear mapping (a matrix) it is the operator norm:
The following exercise collects some key facts about the operator norm for the reader who has not seen this norm yet.
Prove that if is a linear mapping between finite-dimensional vector spaces, then .
Prove that if is a linear mapping of vector spaces, then .
Find an explicit matrix and a vector such that .
If is a or matrix, then the operator norm is the same as the euclidean norm of the entries of .
The derivative of at exists if there is a number (the derivative of at ) such that
Multiplying by is a linear map in one dimension: . So the derivative is a linear map. Let us extend this idea to more variables.
Let be open. We say is (real) differentiable at if there exists a linear such that
We write and we say is the (real) derivative of at . When is (real) differentiable at every , we say that is (real) differentiable. See Figure B.4.
Intuitively, is differentiable at if is “infinitesimally close” to a linear map near . We cheated a bit and said that is the derivative, let us prove we were justified.
Let be open, a function, and . Suppose are linear such that
Then .
Suppose , . Compute
So as . Any point on the unit sphere can be written as for an arbitrarily small , and a linear mapping vanishing on the unit sphere is zero everywhere. ∎
If for a linear mapping , then :
Let be defined by
Let us show that is differentiable at the origin and compute the derivative, directly using the definition. If the derivative exists, it can be represented by a -by- matrix . Suppose . We need the following expression to go to zero.
If we choose , , , , the expression becomes
And this expression does indeed go to zero as . The function is differentiable at the origin and the derivative is represented by the matrix .
Let be open and be differentiable at . Then is continuous at .
Another way to write the differentiability of at is to consider
The function is differentiable at if as , so . The derivative is a linear map from to and hence as . Thus, as . ∎
The derivative is itself a linear operator on the space of differentiable functions.
Suppose is open, and are differentiable at , and . Then the functions and are differentiable at , and
Let , . The proposition follows from the following estimates:
and
If and are linear, then they are their own derivative. The composition , a linear map from to , is also its own derivative, and so the derivative of the composition is the composition of the derivatives. As differentiable maps are “infinitesimally close” to linear maps, they have the same property:
Let be open and let be differentiable at . Let be open, and let be differentiable at . Then
is differentiable at and
Let and . Take a nonzero , write , , and let
Then or , and . Then
First, is constant and is differentiable at , so as . Next, if , then and so assume . We have
As is continuous at , we have that as . Therefore, because is differentiable at . Finally,
As is differentiable at , the right-hand side stays bounded as . So as . Hence, , and . ∎
Let us prove a “mean value theorem” for vector-valued functions. For a function , we think of the derivative as a vector in , and as a vector we will write it as . It is not hard to check that the entries of the matrix (a linear map from to ) are just the derivatives of the components of , and . Then is the euclidean norm in . In fact, in this setting it is the same as the operator norm of .
If is differentiable on and continuous on , then there exists a such that
By the mean value theorem on the scalar-valued function , where the dot is the dot product, we obtain that there is a such that
By the Cauchy–Schwarz inequality
Recall that a set is convex if whenever , the line segment from to lies in .
Let be a convex open set, a differentiable function, and be such that
Then is Lipschitz with constant , that is,
Fix . By convexity, for all . Next
By the mean value theorem above, for some ,
Let us solve the differential equation .
If is open and connected, is differentiable, and for all , then is constant.
For any , there is an open ball . The ball is convex. Since for all , we have . Thus is open for any . Suppose is nonempty. The two sets
are open and disjoint, and further . As is nonempty and is connected, . So for all . ∎
Using only the definition of the derivative, show that the following are differentiable at the origin and find their derivative.
,
,
.
Define by for some differentiable function of one variable. Show is differentiable and find .
Suppose and are differentiable and for all . Prove that if , then for all .
Partial derivatives are easier to compute with all the machinery of calculus, and they provide a way to compute the derivative of a function.
Let be open and let be differentiable at . Then all the partial derivatives at exist and, in terms of the standard bases of and , is represented by the matrix
In other words,
where denote the vectors of the standard basis in the appropriate space. Recall that the standard basis element is the vector with all zeros except a at the th entry.
Fix a and note that for nonzero ,
As goes to , the right-hand side goes to by differentiability of , and hence
Let us represent by components , since it is vector-valued. Taking a limit in is the same as taking the limit in each component separately. For any ,
exists and is equal to the th component of , and we are done. ∎
The converse of the proposition is not true. Just because the partial derivatives exist, does not mean that the function is differentiable. However, when the partial derivatives are continuous, the converse holds.
Let be open. We say is continuously differentiable, if all partial derivatives exist and are continuous.22 2 Alternatively, people define being continuously differentiable if is a continuous function taking to the space of linear operators. The propositions in this section say the two definitions are equivalent.
Let be open. If is continuously differentiable, then is differentiable.
Fix . We do induction on dimension. The case is left as an exercise. Suppose the conclusion is true for , that is, if we restrict to the first variables, the function is differentiable. The first partial derivatives of restricted to the set where the last coordinate is fixed are the same as those for . In the following, by a slight abuse of notation, we think of as a subset of , that is, the set in where . In other words, we identify the vectors and . Let
Let be given. By the induction hypothesis, there is a such that for any with ,
By continuity of the partial derivatives, suppose is small enough so that
for all and all with .
Suppose is a vector in , where , , such that . Then . Note that .
As all the partial derivatives exist, by the mean value theorem, for each there is a , where , such that
Note that . To finish,
Prove the base case in Proposition B.3.13: If and “the partials exist and are continuous,” then the function is differentiable. Note that is vector-valued.
Define a function by (see Figure B.5)
Show that the partial derivatives and exist at all points (including the origin).
Show that is not continuous at the origin (and hence not differentiable).
Show that the partial derivatives are not continuous.
Define as
Show that is differentiable at the origin, but that it is not continuously differentiable.
Before we prove the inverse function theorem we must take a detour to prove a fixed point theorem for metric spaces.
Let and be metric spaces. A mapping is said to be a contraction (or a contractive map) if it is a -Lipschitz map for some , i.e., if there exists a such that
If is a map, is called a fixed point if .
Let be a nonempty complete metric space and a contraction. Then has a unique fixed point.
Pick any . Define a sequence by .
Suppose . Then
So the sequence is Cauchy. Since is complete, let . We claim that is our unique fixed point.
Fixed point? The function is a contraction, so it is Lipschitz continuous:
Unique? Let and both be fixed points.
As , we have and hence . The theorem is proved. ∎
The proof is constructive. Not only do we know a unique fixed point exists, we also know how to find it. Start with any and iterate , , , etc.
Find an example of a contraction of a non-complete metric space with no fixed point.
Find a -Lipschitz map of a complete metric space with no fixed point.
Let (you may recognize Newton’s method for ).
Prove .
Prove that is a contraction.
Apply the fixed point theorem to find an such that , and show that .
Intuitively, we again consider that if a function is continuously differentiable, then it locally “behaves like” the derivative (a linear function). The idea of the inverse function theorem is that if a function is continuously differentiable and the derivative is invertible, the function is (locally) invertible.
Suppose is open, is continuously differentiable, , and is invertible (that is, ). Then there exist open sets such that , , the restriction is injective (one-to-one), and hence a exists such that for all . See Figure B.6. Furthermore, is continuously differentiable and
Write . As is continuous, there exists an open ball around such that
The inequality implies that is invertible for all (see exercise below).
Given , define by
As is one-to-one, ( is a fixed point) if and only if , or in other words . Using the chain rule we obtain
So for ,
As is a ball, it is convex. Hence,
In other words, is a contraction defined on , though we so far do not know what is the range of . We cannot yet apply the fixed point theorem, but we can say that has at most one fixed point in : If and , then , so . That is, there exists at most one such that , and so is one-to-one.
Let and let be the inverse of . We need to show that is open. Take a . There is a unique such that . Let be small enough such that the closed ball (such exists as is open). Suppose is such that
If we show that , then we have shown that is open. If , then
So takes into . It is a contraction on and is complete (closed subset of is complete). Apply the contraction mapping principle (Theorem B.3.15) to obtain a fixed point , i.e., . That is, , and . Therefore, is open.
Next we need to show that is continuously differentiable and compute its derivative. First, let us show that it is differentiable. Consider and , , such that . Because is a one-to-one and onto mapping of onto , there are unique and , where and , such that and . In other words, and . See Figure B.7.
We can still squeeze some information from the fact that is a contraction.
So
By the inverse triangle inequality, . Hence,
In particular, as goes to , so does .
As , we find that is invertible. Let , which is what we think the derivative of at is. Then
As goes to , so does , and, as is differentiable, the right-hand side goes to . So is differentiable, and is precisely what we claimed to be.
Let us show is continuously differentiable. The function is continuous (it is differentiable), is a continuous function from to the space of matrices (each entry is continuous), and the inverse of a matrix is , so is continuous outside the set where . As is the composition of these three continuous functions, it is continuous. ∎
Just because is invertible everywhere does not mean that is one-to-one globally. Consider defined by , that is, the mapping in the complex plane. It is not hard to check that the derivative is invertible on . On the other hand, the mapping is -to- globally (except at the origin). For every , there are exactly two solutions to and .
The invertibility of the derivative is not a necessary condition, just sufficient, for having a continuous inverse and being an open mapping. For example, the function is an open mapping from to and is globally one-to-one with a continuous inverse, although the inverse is not differentiable at .
As a side note, there is a famous related, and as yet not fully solved, problem called the Jacobian conjecture. If (or more famously ) is polynomial (each component is a polynomial) and is a nonzero constant, does have a polynomial inverse? The inverse function theorem gives a local inverse, but can one always find a global polynomial inverse is the question. The answer is trivially true if , and there is a counterexample when .
Suppose is a linear operator on such that ( is the identity). Prove that is invertible.
For two linear operators and on where is invertible, prove that implies that is invertible.
Define by for some continuously differentiable function of one variable.
Show that is one-to-one and onto.
Compute .
Show that is invertible at all points, and compute its inverse.
Define
Show that is differentiable everywhere.
Show that is invertible.
Show that is not one-to-one in every neighborhood of the origin (it is not locally invertible, that is, the inverse function theorem does not work).
Show that is not continuously differentiable.
Define a mapping .
Show that is continuously differentiable (for all ).
Compute for all .
Show that if , then is invertible, and so an inverse of exists locally as long as .
Show that is onto, and for each point , the set is infinite.
Show that is one-to-one and onto .