The Extreme Value Theorem
Consider a hiker walking along a mountain trail described by a continuous function of position. It seems obvious the hiker reaches a highest point and a lowest point somewhere on the trail. But this "obvious" fact is false without the right hypotheses. Detecting exactly which hypotheses are needed is one of the sharper lessons in analysis. The Extreme Value Theorem (EVT) says that a continuous real-valued function on a closed, bounded interval is bounded. Moreover, it actually attains a maximum value and a minimum value somewhere in . This theorem matters because it is the rigorous foundation underneath an enormous swath of applied mathematics. Every time a calculus student sets a derivative to zero to find "the" maximum of a function on an interval, they are silently invoking the EVT. They need it to know a maximum exists in the first place. Optimization, physics (least-action principles, energy minimization), economics (utility maximization on constraint sets), and numerical analysis all lean on existence-of-extrema results. These results trace back to this theorem. The big picture is that continuity alone is not enough; the domain must be compact. In the setting of , this means closed and bounded, by the Heine-Borel Theorem. The theorem is a beautiful illustration of how a topological property of the domain (compactness) interacts with an analytic property of the function (continuity). Together they produce a strong conclusion (existence of extrema). Understanding why each hypothesis is load-bearing is as important as the proof itself. This includes counterexamples where continuity fails, or the interval is open, or unbounded. This article gives the complete statement and proof of the EVT using the Bolzano-Weierstrass Theorem and the Sequential Characterization of Continuity. It works through two asymmetric examples, and exhibits sharp counterexamples for each hypothesis. Finally, it points toward its natural sequel: Uniform Continuity of continuous functions on compact sets.
- A continuous function on a closed, bounded interval is always bounded.
- Stronger: it attains both a maximum and a minimum value at some point of .
- The proof combines Compactness of closed bounded intervals (via Bolzano–Weierstrass) with the Sequential Characterization of Continuity.
- Every hypothesis is essential: drop continuity, closedness, or boundedness, and the conclusion can fail.
- The theorem justifies routine calculus practice: solving presumes a max/min exists to search for.
- Key idea: compactness of the domain converts "continuity" into "existence of extrema" by trapping any maximizing sequence into a convergent subsequence whose limit is the maximizer.
Where this lives today
The Extreme Value Theorem is the quiet justification behind every optimization procedure that first asks "does a solution exist?" before searching for one. In calculus pedagogy, it licenses the standard technique of comparing critical-point values and endpoint values to find absolute extrema on a closed interval — without EVT, that comparison could be comparing numbers that don't actually bound anything. In numerical optimization and machine learning, existence theorems in this spirit justify that loss functions restricted to compact parameter sets (e.g., a ball of bounded weights) actually have a global minimizer for gradient-based methods to converge toward, rather than an infimum that recedes forever. In economics, utility or profit functions maximized over compact budget or feasible sets rely on EVT (or its multivariable/topological generalizations) to guarantee optimal choices exist, underwriting existence proofs in general equilibrium theory. In physics, variational principles (least action, minimal energy configurations) implicitly assume compactness-type conditions to guarantee that an extremal path or configuration is actually realized, not just approached in a limit. In numerical analysis and root-finding, EVT combined with the Intermediate Value Theorem underlies error-bound arguments, since a continuous error function on a compact domain has a genuine worst case to bound against. Finally, this theorem is the direct stepping stone to Uniform Continuity: the same compactness machinery (sequences, subsequential limits staying in the domain) that proves extrema are attained also proves that continuity on automatically upgrades to uniform continuity, a strictly stronger and highly useful property for integration theory.
:::quiz[Why does f(x) = 1/x fail to be bounded on (0,1]?]
- Because f is discontinuous somewhere in (0,1]
- Because (0,1] is unbounded
- Because (0,1] is missing its limit point 0, where f would blow up ✓
- Because f is not differentiable at some point
Ask the tutor: Can you show me step by step why a maximizing sequence for a continuous function on (0,1) can fail to have its limit inside the domain?
Let and let .
- is bounded above on if there exists such that for all . Similarly bounded below with a lower bound . is bounded if it is bounded both above and below.
- attains a maximum on if there exists such that for all ; we then write . Attaining a minimum is defined symmetrically, with such that for all .
- The Extreme Value Theorem asserts: if is continuous on the closed bounded interval (with real numbers), then is bounded on , and there exist points with
Intuition
Picture the graph of a continuous function drawn without lifting the pen, over a finite closed segment of the -axis. Because the domain is closed and bounded, the curve cannot "run off to infinity" as approaches an endpoint, and it cannot approach a boundary point that is excluded from the domain (there is none — and themselves belong to ). Continuity prevents the curve from having sudden jumps or removable gaps that let it "sneak past" a value without ever equaling it. The mechanism behind the proof is a compactness argument: take a sequence of points whose function values climb toward the supremum of on (such a sequence always exists by definition of supremum). Because is bounded, Bolzano–Weierstrass guarantees a convergent subsequence , and because is closed, the limit stays inside . Continuity of then forces , pinning down that the supremum is actually the value — a genuine maximum, not just a limiting value approached but never reached. The two figures below show the contrast: a continuous function on a closed interval reaching a rooftop and a floor, versus the classic broken example — a continuous function on a half-open interval whose graph climbs forever without ever reaching a top, because the point where it "would" peak has been removed from the domain.
Let with , and let be continuous on . Then: 1. is bounded on : there exist such that for all . 2. attains a maximum on : there exists with . 3. attains a minimum on : there exists with .
Let be continuous on the closed bounded interval . Then is bounded above on (and, by an identical argument applied to , bounded below).
Technique: proof by contradiction using Bolzano–Weierstrass and sequential continuity. Suppose, for contradiction, that is not bounded above on . Then for every , the number fails to be an upper bound for on ; that is, there exists a point with
This produces a sequence with for every . Since for all , the sequence is bounded. By the Compactness of closed bounded intervals (equivalently, the Bolzano–Weierstrass theorem applied to a bounded sequence of reals), has a convergent subsequence with
for some . Because for every , and limits preserve non-strict inequalities, we get , i.e. — this is precisely where closedness of the interval is used: the limit of points in cannot escape . Since is continuous at , the Sequential Characterization of Continuity gives
In particular, the sequence is convergent, hence bounded: there exists with for all . But by construction, for every , and as (since is a strictly increasing sequence of positive integers, being the index sequence of a subsequence). Hence , contradicting that is bounded by . This contradiction shows the assumption was false: must be bounded above on . For the lower bound: apply the argument just given to the function , which is continuous on because it is a scalar multiple of a continuous function (a fact immediate from the algebra of limits, not assumed circularly here — continuity of follows directly from the – or sequential definition of continuity of ). Boundedness above of gives for all , i.e. for all , which is a lower bound.
∎Proof of the Extreme Value Theorem (attainment of maximum), technique: supremum + sequential compactness argument. (1) Boundedness is the Boundedness Lemma just proved. (2) Attainment of the maximum. By part (1), the set
is a nonempty (since ) subset of that is bounded above. By the Least Upper Bound Property of , has a finite supremum; set
We must produce with . By the defining property of supremum, for every the number is not an upper bound for (since is the least upper bound). Hence there exists with
This defines a sequence in , and by the squeeze theorem applied to the inequality above,
Since is a sequence in the bounded set , by Compactness of closed bounded intervals there is a convergent subsequence , and since is closed, exactly as in the Boundedness Lemma's proof. By continuity of at and the Sequential Characterization of Continuity,
On the other hand, is a subsequence of , and by the full sequence ; every subsequence of a convergent sequence converges to the same limit, so
A sequence of real numbers has a unique limit (uniqueness of limits in ), so comparing the two computed limits of forces
Since is an upper bound for on and , we conclude for all ; that is, attains its maximum at . (3) Attainment of the minimum. Apply part (2) to , which is continuous on (as noted above). Part (2) gives a point with for all , i.e. , i.e. for all . Thus is a minimizer of on , and
by the same supremum/infimum duality used in part (2) (infimum of equals , a standard property of / under negation).
∎Worked examples
Example 1 — a rational function on an asymmetric closed interval. Let on the closed bounded interval . Step 1: check hypotheses. The denominator vanishes only at , which does not lie in . Since is a quotient of polynomials (continuous everywhere by the algebra of limits) with nonvanishing denominator on , is continuous on . The interval is closed and bounded. The EVT applies: is bounded on and attains a max and min there. Step 2: locate candidates. Extrema occur either at endpoints or at interior critical points where (since is differentiable on the open interval , by Fermat's Theorem on Critical Points, attained interior extrema must be critical points — but note this fact is a consequence, used only to search efficiently; existence of the extremum is already guaranteed by EVT regardless of differentiability). Compute using the quotient rule:
Set the numerator to zero: . Testing : . Testing : . A numerical check shows a root near : at , ; at , . So the root lies in ; refine at : ; at : . So the critical point is near . Step 3: evaluate.
Comparing the three values , , : the maximum value found is at with , and the minimum is at the critical point with . The EVT guarantees these comparisons are conclusive — there is no need to check "infinity" or a boundary that isn't there, precisely because is compact and is continuous throughout.
Example 2 — a piecewise function continuous despite the join, on . Define
Step 1: verify continuity, including at the seam . On and , is a polynomial, hence continuous. At : the left-hand piece gives using the formula valid at (since the first case includes ). The right-hand limit is
Since (continuity of at 2 from the left) and matches, is continuous at , hence continuous on all of . Step 2: apply EVT. is closed and bounded, is continuous, so is bounded and attains max/min on . Step 3: find them. On , is increasing (derivative ), so its max on this piece is at : , and its min is at : . On , is strictly decreasing (derivative ), so on this piece values decrease from just under down to . Comparing candidates from both pieces: , , . The global maximum is (attained, since is genuinely in the domain and by direct substitution) and the global minimum is . Notice the maximum occurs exactly at the seam point — a place where a naive analysis might worry about discontinuity, but continuity was verified explicitly, so the EVT's conclusion is airtight: the maximum of is genuinely attained at , not merely approached.
Let for — note the domain is bounded but not closed (it is missing its left endpoint ). is continuous on : it is a quotient of continuous functions with nonvanishing denominator on this domain. But is not bounded above on : given any , choosing gives . So no finite upper bound works, and in particular no maximum can be attained. What breaks in the proof: constructing a maximizing sequence with , the sequence does converge (to ), consistent with boundedness of the domain and Bolzano–Weierstrass — but its limit is not in the domain . The step " because the interval is closed" fails, so continuity of at the (nonexistent, out-of-domain) limit point can never be invoked to control . This is exactly the gap that closedness plugs. A second, milder illustration on the same domain: even boundedness of alone can fail. Even if we replace with a bounded but non-attaining function, e.g. on (open, bounded interval, missing both endpoints), is continuous and bounded (), yet attains neither a max nor a min: and are both unreached, since . This shows that even when boundedness of the function survives, attainment can still fail if the domain is not closed.
Scope, edge cases & common traps
| Situation | What happens | Why |
|---|---|---|
| continuous on closed bounded | max & min both attained | EVT applies directly |
| continuous on open | may be unbounded, or bounded without attaining extrema | domain not closed; limit points can escape |
| continuous on unbounded closed set, e.g. | may be unbounded (e.g. ) | domain not bounded; Bolzano–Weierstrass fails |
| discontinuous at one point of | can fail to attain max/min even though bounded | sequential continuity argument breaks at the jump |
| continuous on closed bounded but non-differentiable | EVT still gives attained extrema | EVT needs only continuity, not differentiability |
| replaced by any compact subset (e.g. finite union of closed bounded intervals) | max & min still attained | proof only used sequential compactness of , not that is an interval |
The mathematician behind it
Origins · 1 minKarl Weierstrass and how this was discovered
Karl Weierstrass was a German mathematician often called "the father of modern analysis." Working largely outside the traditional university track for much of his early career (he taught secondary school for over a decade before his mathematical talent was recognized), Weierstrass later became a professor in Berlin, where he built much of the rigorous – apparatus that underlies continuity, limits, and uniform convergence as they are taught today. The Extreme Value Theorem is frequently attributed jointly to Weierstrass and Bernard Bolzano, and is sometimes called the Bolzano–Weierstrass Theorem in older or European texts (distinct from, but historically entangled with, the Bolzano–Weierstrass Theorem on convergent subsequences used in the proof above). Weierstrass insisted that geometric intuition be backed by airtight sequential and – arguments — the very style of proof given here.
Does the Extreme Value Theorem require f to be differentiable?
No. The EVT requires only that be continuous on ; differentiability plays no role in the proof, which uses sequences, subsequential limits (Bolzano–Weierstrass), and the sequential characterization of continuity. Differentiability becomes useful only after EVT guarantees an extremum exists, because Fermat's Theorem on Critical Points then lets you search for it efficiently among critical points and endpoints. Many continuous functions with attained extrema, such as on , fail to be differentiable at the very point where an extremum occurs (here, the minimum at ), and EVT applies to them without any trouble.
Can the Extreme Value Theorem fail if f is continuous but the interval is unbounded, like [0, infinity)?
Yes. Take on : this set is closed, is continuous, but the domain is unbounded, and indeed has no upper bound and attains no maximum (though it does attain a minimum, , showing partial conclusions can survive dropping one hypothesis). The proof's use of Bolzano–Weierstrass crucially needs the maximizing sequence to be bounded to extract a convergent subsequence; on an unbounded domain, a maximizing sequence like has no convergent subsequence in , so the argument breaks down entirely.
Is the Extreme Value Theorem true for functions of several variables?
Yes, in a suitably generalized form: if is continuous and is compact (closed and bounded, by Heine–Borel in ), then attains a maximum and minimum on . The proof is essentially identical, replacing the one-dimensional Bolzano–Weierstrass theorem with its analogue for bounded sequences of vectors. This generalization is exactly what underlies constrained optimization theory in multivariable calculus and beyond.
What is the difference between the supremum of f and the maximum of f?
The supremum is always well-defined as a real number whenever is bounded above on (by completeness of ), regardless of whether any point of actually achieves that value. The maximum, by contrast, requires a specific point with equal to that supremum. The EVT's real content is proving these coincide when is continuous and is closed and bounded — outside that setting (e.g. on ), the supremum can exist as a number while no maximum exists as an attained value.
Why does the theorem need BOTH boundedness and closedness of the interval, rather than just one?
Each hypothesis blocks a different failure mode. Boundedness (of the domain) is what feeds Bolzano–Weierstrass, guaranteeing some convergent subsequence exists at all; without it (e.g. on ) a maximizing sequence can run off to infinity with no subsequential limit whatsoever. Closedness is what guarantees that once a subsequential limit exists, it actually lies back inside the domain, so continuity can be invoked there; without it (e.g. on ) the limit point exists as a real number but sits outside the domain, so the continuity argument has nothing to grab onto. Both gaps are independently fatal, which is why the hypothesis is stated as "closed and bounded," i.e. compact.
Does the theorem say the maximum and minimum are unique?
No, and it should not be read that way. The EVT guarantees existence of at least one maximizing point and at least one minimizing point , but says nothing about uniqueness. For instance on attains its maximum value at multiple points (), and the EVT is fully satisfied by any one of them witnessing the attained maximum.
How does the Extreme Value Theorem connect to Uniform Continuity?
Both results exploit the same compactness mechanism on : sequences in the domain always have subsequences converging back into the domain. The EVT uses this to pin down a maximizing point; the theorem that continuous functions on closed bounded intervals are automatically uniformly continuous uses an almost identical proof-by-contradiction with paired sequences with but bounded away from , again extracting a convergent subsequence to derive a contradiction with ordinary continuity. Studying the EVT proof carefully is the best preparation for understanding Uniform Continuity rigorously.