© 2026 Neckpinch · www.neckpinch.com · All rights reserved.
Course 2Book 2A: Numbers, Limits and the IntegralChapter 9
Continuous Functions
Continuity, the intermediate value theorem, uniform continuity, and the first maximum principle.
Read with Tao, Analysis I, chapter "Continuous functions on R" (subsets of the real line, limiting values of functions, continuous functions, left and right limits, the maximum principle, the intermediate value theorem, monotonic functions, uniform continuity, limits at infinity).
In this chapter · 8 sections
- 9.1Subsets of the real line
- 9.2Limits of functions and continuity
- 9.2.1What the definition says, and what the picture says
- 9.2.2One-sided limits
- 9.3The maximum principle
- 9.3.1What a function looks like at its maximum
- 9.4The intermediate value theorem
- 9.4.1A second proof: bisection
- 9.5Monotone functions and inverses
- 9.6Uniform continuity
- 9.6.1Measuring continuity: the modulus
- 9.7Limits at infinity
- 9.8Exercises
- ↗Free resources
A function is continuous if it has no jumps: small changes in the input cause small changes in the output. The precise definition is the ε–δ sentence of 2A.5 Quantifiers and the Shape of a Proof, and this chapter puts it to work. Its three main theorems sound almost too obvious to need proof:
- a continuous function on a closed interval attains a largest and a smallest value;
- a continuous function that is negative at one point and positive at another is zero somewhere in between;
- a continuous function on a closed interval is uniformly continuous.
Each one is false if the real numbers are replaced by the rationals, or the closed interval by an open one. So each proof must use, somewhere, completeness or compactness, and seeing exactly where is the point of the chapter.
The first theorem is called the maximum principle in Tao's book (his Section 9.6), and the name is apt. Every maximum principle for the heat equation and for Ricci flow, the main tools of Courses 6 and 11, begins with exactly this statement and the observation of what a function looks like at its maximum.
By the end of this chapter you will be able to:
- prove continuity and discontinuity from the definition, and with sequences;
- compute limits of functions with the sequence criterion and the limit laws, including one-sided limits;
- prove the maximum principle and the intermediate value theorem, say which property of each uses, and apply them to show that equations have solutions;
- distinguish continuity from uniform continuity, and prove the Heine–Cantor theorem;
- explain why, at an interior maximum, the derivative vanishes and the second derivative is non-positive, and why that observation drives maximum principles for PDE.
Subsets of the real line
The behaviour of a function depends heavily on the set it is defined on, so we start there.
Let . A real number is adherent to if for every some point of lies within of . The closure is the set of all adherent points. is closed if , that is, if contains every point that can be approximated from inside it.
So : the endpoints are adherent to the open interval but not in it. Closed intervals are closed, and so are , and . The rationals are not: , by density (2A.4 The Real Numbers).
In terms of sequences: is adherent to exactly when some sequence of points of converges to . So a set is closed exactly when limits of convergent sequences in it stay in it.
A real is adherent to if and only if there is a sequence of points of with . Consequently is closed if and only if every convergent sequence of points of has its limit in . Moreover, the closure is itself closed.
Proof. If is adherent, then for each there is a point with ; the sequence converges to by the squeeze theorem. Conversely, if with , then for every some (indeed all late ones) lies within of , so is adherent.
For the second statement: is closed when every adherent point is in , and by the first part the adherent points are exactly the limits of convergent sequences in .
Finally, let be adherent to , and . Some has , and since is adherent to , some has . Then . So is adherent to , that is, .
- is closed: if and , then for every gives , because limits preserve non-strict inequalities (2A.6 Sequences).
- is not closed: . Its closure is .
- is not closed: its points converge to , which is not in the set. Adding makes it closed.
- is closed: a convergent sequence of integers is Cauchy, so eventually its terms are within of each other, hence eventually constant, and its limit is that integer.
The proof for shows why non-strict inequalities define closed sets: "" survives limits, "" doesn't. The same reasoning shows that sets like are closed whenever is continuous (Exercise 9.31), which is how closed sets usually arise in practice.
For , the following are equivalent:
- is closed and bounded;
- every sequence in has a subsequence converging to a point of .
Proof. (1 ⇒ 2) A sequence in a bounded is bounded, so by Bolzano–Weierstrass (2A.6 Sequences) a subsequence converges to some ; and because is closed. (2 ⇒ 1) If were unbounded, there would be with , and no subsequence could converge. If weren't closed, there would be an adherent and a sequence in converging to ; every subsequence also converges to , which isn't in .
Property 2 is called (sequential) compactness, and closed bounded intervals are the model compact sets. In 2B.3 Compactness compactness is defined for general spaces, where "closed and bounded" no longer suffices. Property 2 is the one that survives.
Limits of functions and continuity
Let and let be adherent to . We say as in if for every there is such that for every with .
The point need not lie in , only be adherent to it: this is what allows , where the function is not defined at . And if is in , the value plays no role in the definition except through the condition , which includes . (Tao follows this convention; some books exclude and speak of "punctured" neighbourhoods. The difference matters only at points where is discontinuous.)
Limits of functions reduce to limits of sequences, which brings all of 2A.6 Sequences to bear.
Let be adherent to . Then as in if and only if for every sequence in with . In particular the limit, when it exists, is unique.
Proof. (⇒) Let in and . Take from the definition, then with for . For those , .
(⇐) Suppose . Negating the definition (2A.5 Quantifiers and the Shape of a Proof): there is such that for every some has and . With this gives with but for every , so .
Uniqueness: since is adherent, there is at least one sequence in (Proposition 9.2), and along it has at most one limit.
If and as in , then , , , and, if and is nonzero on , .
Proof. Take any sequence in . Then and , so by the limit laws for sequences (2A.6 Sequences), , and similarly for the others. By Proposition 9.6 this gives the limits of the functions.
(a) Cancelling a common factor. Find in . The quotient law does not apply directly, because the denominator tends to . But on the function equals , since there and the factor cancels. The limit of as is . The cancellation is legitimate because the limit never looks at itself: is adherent to but not in it, and the definition only uses points of . This is the whole idea of a derivative (2A.10 Derivatives): a difference quotient is undefined at the point, and its limit is taken from nearby points only.
(b) Squeezing. as in , because . The function has no limit at (Example 9.16), but multiplying it by something that tends to squeezes the oscillation flat. Bounded times small is small, as in the limit laws of 2A.6 Sequences.
(c) A trap with composition. If as , and is continuous at , then . Continuity of at is needed, not just a limit of at . Let for all , and let for and . Then and as , but for every , so , not . The inner function sat exactly on the point where misbehaves. Limits can be passed through a function only where the function is continuous.
A function is continuous at if as in . That is,
It is continuous if it is continuous at every point of .
The definition reads as a tolerance contract (2A.5 Quantifiers and the Shape of a Proof): any output accuracy can be guaranteed by a sufficiently accurate input, .
What the definition says, and what the picture says
The schoolbook picture of continuity is "a graph you can draw without lifting the pen". It is a good first guide, and it is worth seeing exactly where it parts company with the definition, because the definition is what the theorems use.
Continuity is local. The definition is about one point at a time: " is continuous at " looks only at points within of , and may be as small as you like. " is continuous" means continuous at each point separately. The pen picture, by contrast, is about the whole graph at once. A function can be continuous at one point and nowhere else.
Let for rational and for irrational . At : for every , , so works, and is continuous at . At any : there are rationals and irrationals (both are dense, 2A.4 The Real Numbers), and while . The two limits differ, so by Proposition 9.11 is not continuous at . Near the graph is squeezed between the lines and , and the squeeze forces continuity at the single point where they meet.
Stranger still is Thomae's function: if in lowest terms with , and if is irrational. It is discontinuous at every rational and continuous at every irrational. At a rational , irrationals arbitrarily close have value . At an irrational , given , only finitely many rationals in have denominator , and none of them is ; so a small enough interval around avoids them all, and on that interval . No pen could draw this graph, and yet the definition says precisely where it is continuous. (The reverse, a function continuous exactly at the rationals, is impossible; that is a consequence of the Baire category theorem of 4A.2 Baire Category and Its Consequences.)
The domain matters. Continuity on a set only compares points of . The function is continuous on , though its graph has two pieces; it is not "discontinuous at ", because is not in its domain. And the function that is on and on is continuous on : every rational has a neighbourhood on which it is constant, because the jump happens at a point that is not in the domain. That is why the theorems of this chapter need intervals of real numbers: on , a continuous function can jump.
The most useful equivalent form of continuity uses sequences.
is continuous at if and only if for every sequence in converging to .
Proof. (⇒) Given , take from continuity, and with for . Then for .
(⇐) By contrapositive. If isn't continuous at , negating the definition (2A.5 Quantifiers and the Shape of a Proof) gives an such that for every some within of has . Taking gives points with staying away from .
The sequential form makes the algebra of continuous functions immediate from the limit laws of 2A.6 Sequences: sums, products and compositions of continuous functions are continuous, and so are quotients where the denominator is nonzero. Polynomials, rational functions, and are all continuous on their domains.
Let be continuous at . Then , and are continuous at , and so is if is nonzero on . If is continuous at and is continuous at , then is continuous at .
Proof. The first part is Corollary 9.7 with , . For the composition, let in . Then by continuity of , and is a sequence in , so by continuity of . By Proposition 9.11, is continuous at .
So to see that a formula defines a continuous function, you rarely need and . Constant functions and are continuous (take ); hence, by sums and products, every polynomial; hence, by quotients, every rational function where its denominator is nonzero; and is continuous because (2A.3 Integers and Rationals). A function like is then continuous by composition, products and quotients, with no computation.
To see what the algebra above is saving, here is at a general point , from the definition. Scratch work: . If , then . So works: for , . Notice that depends on , and shrinks as grows. That is no accident: is continuous on but not uniformly continuous (2A.5 Quantifiers and the Shape of a Proof).
One-sided limits
At a jump, the function has a limit from each side but they differ. To talk about this, restrict the domain to one side.
Let be adherent to . The right limit is the limit of as in . The left limit is defined with .
Let be adherent to both and . Then is continuous at if and only if both one-sided limits exist and equal .
Proof. If is continuous at , then restricting the condition "" to points on one side gives each one-sided limit. Conversely, given , choose for the right limit and for the left limit, and let . A point with is either to the right of , to the left, or equal to it, and in each case .
For the sign function of Example 9.16, and , so it is discontinuous at whatever value is assigned there.
- A jump. The sign function ( for , at , for ) has different one-sided limits at : from the left , from the right .
- A removable discontinuity. for , with , has . Redefining repairs it.
- Oscillation. has no limit at : along it is , along it is .
- Everywhere. Dirichlet's function, on rationals and on irrationals, is discontinuous at every point, because every interval contains both kinds of number. It returns in 2A.11 The Riemann Integral as a function the Riemann integral can't handle.
The maximum principle
Let be continuous. Then is bounded, and it attains its maximum and its minimum: there are points with for every .
Proof (By contradiction and compactness). Bounded. This is the first instance of the contradiction–compactness template of 2A.5 Quantifiers and the Shape of a Proof. Suppose is not bounded above. Then for each there is with , a sequence of worse and worse counterexamples. By Heine–Borel some subsequence converges to a point . By continuity , a finite number; but . Contradiction.
Attained. Let , finite by the first part. For each , is not an upper bound, so there is with . Again a subsequence converges to some , and by continuity . Since also , we get . The minimum is the same argument applied to .
It is worth seeing what each step of the proof needed. Continuity was used only at the single point where the subsequence lands: it is a local property, and the proof turns local information into a global conclusion. What made that possible is that the bad points could not escape. Heine–Borel trapped a subsequence and delivered a limit inside , where continuity holds. So the proof has two ingredients, a local one (continuity) and a global one (compactness), and the theorem is exactly what you get by combining them. This division of labour is the pattern of every maximum principle in the guidebook: the equation gives local information at a maximum point, and compactness of the manifold guarantees there is a maximum point to look at.
Both conclusions fail without compactness. On the open interval , the continuous function is unbounded; on , the function is bounded but has no maximum, since it gets arbitrarily close to without reaching it. On , is unbounded. And over the rationals, on has supremum , never attained, because is missing.
Engineering optimisation starts by asking whether an optimum exists at all, and the maximum principle is the basic tool for answering. Consider a cylindrical can that must hold a fixed volume . With radius and height , the metal used is proportional to its surface area
On the maximum principle doesn't apply directly: the interval isn't closed and bounded. But both as (tall thin cans) and as (flat wide ones). So any candidate for the minimum lies in some closed interval outside which is larger than, say, . On that compact interval a minimum exists. Calculus (2A.10 Derivatives) then locates it: at , where . The can of least surface area is as tall as it is wide. For that is cm and cm.
Real drinks cans are taller and narrower than this, because the model leaves things out: for instance, the ends of a can are typically made of thicker metal than its wall, which changes the cost to be minimised. The mathematical lesson stands. To prove a minimum exists, first trap it in a compact set, then use continuity. This is the direct method of the calculus of variations (4A.7 Weak Convergence and the Direct Method, 6A.11 Calculus of Variations and Gradient Flows), and the same move proves that Perelman's entropy has a minimiser (12A.3 The 𝓦-Entropy).
What a function looks like at its maximum
The maximum principle says that a maximum exists. The next chapter (2A.10 Derivatives) shows what happens at an interior maximum, but the fact is so central to this guidebook that it belongs here as a preview.
If a differentiable function attains its maximum at a point inside the interval, then , and if is twice differentiable, : the graph is flat and bends down there. Every maximum principle for differential equations uses this. For the heat equation on a closed interval, suppose the maximum of over space and time occurred for the first time at an interior point and a positive time. There , but , since has just risen to its maximum. With a little extra care this is impossible, and so a hot spot can never form spontaneously in the middle of a cooling rod (6A.5 Maximum Principles). Hamilton's maximum principle for Ricci flow (11A.7 Maximum Principles under Ricci Flow) runs the same argument for the curvature of a closed manifold, where a maximum is attained because the manifold is compact: the maximum principle of this chapter, one level up.
The intermediate value theorem
Let be continuous, and let be any number between and . Then for some .
Proof. We may assume (the case is the same with ). Let . It contains and is bounded by , so it has a supremum (2A.4 The Real Numbers). We show .
If : then , and by continuity for all in some interval , so points beyond belong to , contradicting that is an upper bound. If : then , and by continuity on some interval , so no point of that interval lies in , and would be a smaller upper bound. So .
The proof uses the least upper bound property and nothing else. Over the theorem fails: is negative at and positive at but has no rational zero (2A.3 Integers and Rationals). In a real sense, the intermediate value theorem is the completeness of the line, restated for functions.
Here is the "by continuity" step of the proof written out, since it is used again and again. Suppose , and let . Continuity at gives with for , . For such , . So stays below near . In words: a continuous function that is strictly below a level at a point stays strictly below it nearby. Strict inequalities are "open" conditions, preserved under small changes of the input, just as non-strict ones are preserved under limits.
A second proof: bisection
The supremum proof is short but gives no way to find . Here is a proof that does, the bisection of 2A.6 Sequences turned into an argument. Suppose again . Set and , and keep the invariant , which holds at the start. Let be the midpoint of . If , set ; otherwise , and set . Either way the invariant survives and the length halves. The left endpoints increase and the right endpoints decrease, both bounded, so both converge (2A.6 Sequences), and since they converge to the same point . By continuity, and . Limits preserve non-strict inequalities, so (from the ) and (from the ). Hence .
The two proofs use completeness in two of its interchangeable forms (2A.6 Sequences): the first through a supremum, the second through monotone convergence. The second is an algorithm, and after steps it knows to within , which is the error guarantee of the bisection method in every numerical library.
Intermediate values do not imply continuity. The converse of the theorem is false. The function for , with , takes every value between any two of its values on any interval (near it sweeps through all of infinitely often), but it is not continuous at (Example 9.16). Having the intermediate value property is a weaker condition than continuity. It does hold for every derivative, continuous or not (Darboux's theorem, an exercise in 2A.10 Derivatives), which is one sign that derivatives are better behaved than arbitrary functions.
If is continuous, then , where and are the minimum and maximum of .
Proof. By the maximum principle, and are values of , and every value lies between them. Applying the intermediate value theorem on the interval between and , every is a value of .
(a) Odd-degree polynomials have a real root. Let with odd. For ,
If , this is less than , so has the sign of , which is the sign of since is odd. Taking , , and the intermediate value theorem gives a root in . (For even degree this fails: has no real root.)
(b) -th roots, again. For , is continuous on , with and . So some has . This is a two-line proof of what took a page in 2A.4 The Real Numbers, because the hard work, extracting a solution from a supremum, now lives inside the intermediate value theorem.
(c) An equation with no algebraic solution. Does have a solution? With (taking the cosine as known for now; it is built in 2B.6 Power Series, Exponentials and Bump Functions), and , so yes, in . Bisection (2A.6 Sequences) locates it: . No formula gives this number; the theorem guarantees it anyway.
At any instant, there are two diametrically opposite points on the equator with exactly the same temperature, provided temperature varies continuously along the equator. Measure position by the angle and let be the temperature. Consider
the difference between a point and its antipode. Then . So either and we are done, or and have opposite signs, and by the intermediate value theorem vanishes somewhere between: there . Nothing about weather was used except continuity. The same argument applies to air pressure, or altitude, along any great circle. In 7A.8 Smooth Topology a deeper theorem (Borsuk–Ulam) gives two antipodal points on the whole sphere at which temperature and pressure both agree.
A walker sets off up a mountain path at 7 a.m. and reaches the summit at 5 p.m. The next morning she starts down the same path at 7 a.m. and is home by 5 p.m. Is there a point on the path that she passes at the same time of day on both days? Yes. Let and be her distances along the path at time on the up and down days. Then is continuous, negative at 7 a.m. and positive at 5 p.m., so it is zero at some moment. (Picture both days happening at once: two walkers on the same path, one going up and one coming down, must meet.)
Monotone functions and inverses
A function is increasing if implies , and strictly increasing if it implies . Monotone functions are nearly continuous automatically: they can only have jump discontinuities, and only countably many of them (Exercise 9.27). A strictly monotone continuous function behaves especially well.
If is continuous and strictly increasing, then is a bijection from onto , and its inverse is continuous and strictly increasing.
Surjectivity onto is the intermediate value theorem, injectivity is strict monotonicity, and continuity of the inverse follows because an increasing function can only fail to be continuous by jumping, and the inverse can't jump over values its domain contains. This is how , and get their continuity: as inverses of continuous, strictly monotone functions.
Proof. Bijective. If then , so is injective. Its values lie in , and every there is a value by the intermediate value theorem. So is a bijection; let be its inverse.
is strictly increasing. If but , then applying the increasing function gives , a contradiction.
is continuous. Let and . Let and . If lies in , then, being increasing, . It remains to see that every close enough to lies in . If then and ; if , then is the smallest value anyway. The same holds on the right. So it works to take to be the smaller of the positive gaps and , ignoring a gap that is zero because is an endpoint.
A thermistor is a resistor whose resistance changes strongly and monotonically with temperature. A digital thermometer measures resistance and must report the temperature with , that is, evaluate . Because is continuous and strictly monotone over the working range, the inverse exists and is continuous, so a small error in measuring causes only a small error in the reported . Manufacturers supply the curve as a fitted formula, such as the Steinhart–Hart equation (1968), or as a table. The firmware inverts it, often by the bisection of 2A.6 Sequences.
Uniform continuity
Continuity allows the input tolerance to depend on the point. Uniform continuity asks for one that works everywhere (2A.5 Quantifiers and the Shape of a Proof).
is uniformly continuous if for every there is such that for all with .
is continuous on but not uniformly continuous: near the required shrinks to zero (2A.5 Quantifiers and the Shape of a Proof). On it is uniformly continuous, since there. A cleaner sufficient condition:
is Lipschitz with constant if for all . Lipschitz functions are uniformly continuous (take ).
The absolute value is Lipschitz with , and so is whenever and are (Exercise 9.28), even though such a maximum may have corners where it isn't differentiable. That fact matters later. In Ricci flow one studies the maximum of the curvature over the manifold, , which is typically not differentiable in but is Lipschitz. Hamilton's trick (11A.7 Maximum Principles under Ricci Flow) is the observation that at almost every time its derivative is evaluated at a point where the maximum is attained.
A continuous function on a closed bounded interval is uniformly continuous.
Proof (By contradiction and compactness). Suppose not. Negating the definition: there is such that for every there are points with but . By Heine–Borel a subsequence converges to some , and then too, since . By continuity at , both and converge to , so their difference tends to , contradicting .
The template again: assume the uniform statement fails, extract a sequence of counterexamples, use compactness to find a limit point, and get a contradiction from continuity there.
Measuring continuity: the modulus
Continuity and uniform continuity are yes-or-no properties. Analysis often needs a number instead: how continuous is the function? The answer is the modulus of continuity,
the largest change in across any two points at distance at most . By definition, is uniformly continuous exactly when as , and the rate at which it tends to zero measures the quality of the continuity.
- Lipschitz functions have : the output changes at most proportionally to the input.
- Hölder continuous functions with exponent have . The square root on is the basic example, with : for , , so . It is not Lipschitz, because near it is infinitely steep: is unbounded. So is uniformly continuous, Hölder with exponent , and not Lipschitz, a strict hierarchy in one example.
- A continuous function on always has some modulus tending to zero (Heine–Cantor), but it can tend to zero arbitrarily slowly.
Why care about the rate? Because estimates with rates survive limits, and estimates without them often do not. Hölder continuity is the currency of the regularity theory of partial differential equations: Schauder's estimates (6B.7 Schauder Theory and the Continuity Method) say that if the coefficients and data of an elliptic or parabolic equation are Hölder continuous, then so are the second derivatives of the solution, with a bound. Parabolic estimates of the same kind underlie short-time existence for the Ricci flow (11A.4 Short-Time Existence and Uniqueness). And a family of functions with a common modulus of continuity is the hypothesis of the Arzelà–Ascoli theorem (2B.5 Uniform Convergence and Arzelà–Ascoli), the compactness theorem for functions.
Digital audio records a continuous signal by sampling it at regular intervals, 44,100 times a second for a CD. Plotting software, lookup tables in engineering codes and graphics hardware all similarly replace a function by its values on a grid, joined by straight lines. When is that safe? If is uniformly continuous, then for any accuracy there is a spacing , the same everywhere, such that varies by at most across each grid cell. Then the piecewise-linear interpolation through the samples is within of at every point (Exercise 9.29). For a function like near , no fixed spacing works: however fine the grid, there are cells near in which the function swings from to . Signal processing makes the same point quantitatively with the Nyquist–Shannon sampling theorem: a signal can be recovered from its samples only if it doesn't oscillate faster than the sampling rate can capture.
Limits at infinity
Finally, as means: for every there is with for all . This is convergence of a sequence, with the index replaced by a real variable. All the limit laws carry over.
For example, as : for , , which is at most once . And the sequence criterion holds here too: as exactly when for every sequence . The can-design argument above used a limit at infinity, as , which means: for every there is with for .
A function is continuous when it respects limits of sequences. On a closed bounded interval, continuous functions are bounded, attain their maximum and minimum (Tao's "maximum principle"), take every intermediate value, and are uniformly continuous. Each of these uses either the least upper bound property or Bolzano–Weierstrass, and fails over or on open intervals. At an interior maximum the derivative vanishes and the second derivative is non-positive. 2A.10 Derivatives proves this, and builds differential calculus on it.
Exercises
Prove directly from the ε–δ definition that is continuous on . (Hint: for , ; treat separately.) Is it uniformly continuous on ? Is it Lipschitz?
Solution
For take . At , when . It is uniformly continuous on : for all , so works everywhere. It is not Lipschitz: as .
Let be continuous. Show that for some . (Apply the intermediate value theorem to .) This is the one-dimensional Brouwer fixed point theorem (7A.4 The Fundamental Group).
Solution
is continuous, and , since takes values in . By the intermediate value theorem (with , which lies between and ), some has .
Let be increasing on . Show that at each point the left and right limits exist, that is discontinuous exactly where they differ, and that this happens at only countably many points. (Hint: each jump contains a rational in the interval between the one-sided limits, and different jumps contain disjoint such intervals; use 2A.8 Infinite Sets.)
Solution
One-sided limits exist. For the left limit at , let , finite because for . Given , some has , and then for , . So . Similarly . Both lie on the correct sides: .
Discontinuity means a jump. By Proposition 9.15, is continuous at exactly when , which, given the inequalities, means .
Countably many jumps. At each discontinuity , choose a rational in the open interval . If are two discontinuities, then (pick any between them: ), so the two intervals are disjoint, and . So is an injection from the set of discontinuities into , which is countable (2A.8 Infinite Sets). (Here the rational can be chosen by a rule, for instance the first rational in a fixed listing of that lies in the interval, so no axiom of choice is needed.)
Show that if and are Lipschitz with constant , so is . Give an example where and are differentiable everywhere but is not.
Solution
For any : (the one of that is larger) minus (the same function at ) , since is at least either function's value at ; by symmetry . Example: , , , which has a corner at .
Suppose whenever . Let be the piecewise-linear function that agrees with at the grid points . Show that for every . (Can you improve this to ?)
Solution
Let . On this cell is a weighted average of and , so lies between them. Both are within of , since and . A number between two numbers that are both within of is itself within of . So in fact : the improvement holds. (The bound comes from the cruder estimate , with .)
For each statement, find a function showing it fails if one hypothesis is removed: (a) the maximum principle without continuity; (b) the maximum principle on ; (c) the intermediate value theorem without continuity; (d) Heine–Cantor on .
Solution
(a) for and , on : the supremum is not attained. Or for , : unbounded. (b) on is unbounded; is bounded with supremum not attained. (c) The sign function on takes the values and but never . (d) on , or .
Let be continuous. Show that and are closed. Is closed?
Solution
If and , then by continuity, and because limits preserve . By Proposition 9.2 the set is closed. The zero set is the intersection of and ; or argue the same way with . The set is usually not closed: for it is , whose closure contains .
Let be continuous with for every rational . Prove that .
Solution
Let . By density of (2A.4 The Real Numbers) choose rationals with , so . By continuity, .
Let be continuous with for all . Prove that for every , where . (Show in turn: ; for natural ; ; ; then use Exercise 9.32.)
Solution
, so . By induction . Then . For , , so ; negatives follow from . So and are continuous and agree on , hence everywhere. (Without continuity there are wild additive functions, built with a basis of over from 2A.8 Infinite Sets; they are discontinuous everywhere.)
Let be continuous and strictly positive on . Prove, by the contradiction–compactness template, that there is with for all . Then show the conclusion fails for on . A uniform positive lower bound obtained from compactness is exactly the kind of statement used, for instance, to bound below the injectivity radius of a compact Riemannian manifold (9A.3 Geodesics and the Exponential Map), and its failure without compactness is what collapsing means (9B.3 Collapsing and Noncollapsing).
Solution
Suppose not: for each there is with . A subsequence converges to some , and by continuity , contradicting . (Alternatively: attains its minimum, which is positive.) On , is positive but .
Free resources for this chapter
Chosen for what this chapter covers, and all free to read or watch. Where a lecture covers more than this chapter, the minutes to watch are given, and the link starts there when it can. Links checked Nov 6, 2026.
Read
- Notes Lecture 16: The Min/Max Theorem and Bolzano’s Intermediate Value TheoremMIT OpenCourseWare 18.100A Real Analysis (Fall 2020)The extreme value theorem and the intermediate value theorem.
- Notes Lecture 17: Uniform Continuity and the Definition of the DerivativeMIT OpenCourseWare 18.100A Real Analysis (Fall 2020)Uniform continuity (the first half of the lecture).
- Book §3.3 Extreme and intermediate value theoremsJiří Lebl, Basic Analysis I & II (free textbook)The maximum principle of this chapter in its textbook form.
- Book §3.4 Uniform continuityJiří Lebl, Basic Analysis I & II (free textbook)Uniform continuity and why continuous functions on closed intervals have it.
Watch 3 lectures and talks
- Video Lecture 14: Limits of Functions in Terms of Sequences and ContinuityMIT OpenCourseWare 18.100A Real Analysis (Fall 2020), Casey RodriguezContinuity in terms of sequences, and the ε–δ definition.
- Video Lecture 16: The Min/Max Theorem and Bolzano’s Intermediate Value TheoremMIT OpenCourseWare 18.100A Real Analysis (Fall 2020), Casey RodriguezThe extreme value theorem and Bolzano’s intermediate value theorem.
- Video Lecture 17: Uniform Continuity and the Definition of the DerivativeMIT OpenCourseWare 18.100A Real Analysis (Fall 2020), Casey Rodriguez · 0:00–1:00:07 (uniform continuity)Uniform continuity, and why continuity on [a, b] is uniform.
© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.