Skip to content

The Extreme Value Theorem

In this lesson you’ll learn the boundedness theorem, the extreme value theorem, both proofs, and exactly which counterexample each hypothesis excludes. This is the theorem that makes optimization possible.

Boundedness theorem. If ff is continuous on [a,b][a,b] then ff is bounded on [a,b][a,b].

Extreme value theorem. If ff is continuous on [a,b][a,b] then there exist c,d[a,b]c, d \in [a,b] with

f(c)f(x)f(d)for all x[a,b]f(c) \le f(x) \le f(d) \quad \text{for all } x \in [a,b]

The second is strictly stronger. Bounded means the supremum exists; attained means it is actually a value of the function.

The shortest route uses the last two lessons.

[a,b][a,b] is closed and bounded, hence compact by Heine-Borel. Continuous images of compact sets are compact, so f([a,b])f([a,b]) is compact, hence closed and bounded.

Bounded gives the boundedness theorem. And a non-empty compact subset of R\mathbb{R} contains its supremum: the supremum is a limit point (or a member), and closed sets contain their limit points. So supf([a,b])\sup f([a,b]) is a value f(d)f(d), and similarly for the infimum. ∎

That’s the whole thing. Compactness was worth the effort.

Worth seeing, because it shows where each hypothesis enters.

Boundedness. Suppose ff is unbounded. Then for each nn there is xn[a,b]x_n \in [a,b] with f(xn)>n|f(x_n)| > n. The sequence (xn)(x_n) lies in a bounded set, so Bolzano-Weierstrass gives a subsequence xnkxx_{n_k} \to x. Closedness of [a,b][a,b] puts x[a,b]x \in [a,b]. Continuity gives f(xnk)f(x)f(x_{n_k}) \to f(x), so that subsequence is bounded - contradicting f(xnk)>nk|f(x_{n_k})| > n_k \to \infty. ∎

Attainment. Let M=supf([a,b])M = \sup f([a,b]), finite by boundedness. For each nn pick xnx_n with f(xn)>M1nf(x_n) > M - \frac1n, possible by the ε\varepsilon-characterization of the supremum. Extract a convergent subsequence xnkd[a,b]x_{n_k} \to d \in [a,b]. Continuity gives f(xnk)f(d)f(x_{n_k}) \to f(d), while the squeeze M1nk<f(xnk)MM - \frac{1}{n_k} < f(x_{n_k}) \le M forces f(xnk)Mf(x_{n_k}) \to M. Limits are unique, so f(d)=Mf(d) = M. ∎

Three hypotheses, three uses: bounded for Bolzano-Weierstrass, closed to keep the limit inside, continuous to transfer the limit through ff. Remove any one and the proof stops.

Each hypothesis has a matching failure.

Drop boundedness of the domain. f(x)=xf(x) = x on [0,)[0,\infty) is continuous, unbounded, no maximum.

Drop closedness of the domain. f(x)=xf(x) = x on (0,1)(0,1) is continuous and bounded, but sup=1\sup = 1 and inf=0\inf = 0 are never attained. Also f(x)=1xf(x) = \frac1x on (0,1](0,1] is continuous and unbounded, showing an open end can break even boundedness.

Drop continuity. On [0,1][0,1] let f(x)=1xf(x) = \frac1x for x>0x>0 and f(0)=0f(0)=0. Bounded domain, closed domain, and ff is unbounded.

Memorizing this trio is more useful than memorizing the theorem, because it tells you what each word is for.

The distinction is the practical content.

  • sup\sup always exists for a bounded non-empty set (completeness).
  • max\max exists only when the supremum is a member.

On (0,1)(0,1) the function f(x)=xf(x)=x has supf=1\sup f = 1 and no maximum. In optimization language: the problem has a finite optimal value and no optimal solution. That situation is real and irritating, and EVT is the theorem that rules it out.

Rolle’s theorem and the MVT both start by invoking EVT to produce an interior extremum, then use the derivative test there. So the next lesson depends on this one.

Riemann integrability of continuous functions needs boundedness on each subinterval, supplied by this theorem.

Uniform continuity on a compact interval, the next lesson, uses the same compactness machinery.

Example 1: Verify EVT for f(x)=x24x+3f(x) = x^2 - 4x + 3 on [0,3][0,3].

Solution. Continuous (polynomial) on a closed bounded interval, so EVT applies.

Vertex at x=2x = 2, giving f(2)=48+3=1f(2) = 4-8+3 = -1. Endpoints: f(0)=3f(0) = 3, f(3)=912+3=0f(3) = 9-12+3 = 0.

Minimum 1-1 at x=2x=2 (interior), maximum 33 at x=0x=0 (endpoint). Both attained. ✓

Note the extremes can occur at endpoints or interior points; EVT promises existence, not location.

Example 2: Where does boundedness fail on an open interval?

Solution. f(x)=1xf(x) = \frac1x on (0,1](0,1] is continuous at every point of its domain.

As x0+x \to 0^+, f(x)f(x) \to \infty: unbounded, so no maximum.

The domain is bounded but not closed. The missing endpoint is where the trouble lives, and note that ff is not discontinuous at 0 - 0 simply is not in the domain.

Example 3: A bounded function on an open interval with no extremes.

Solution. f(x)=xf(x) = x on (0,1)(0,1).

Bounded: 0<f(x)<10 < f(x) < 1. But supf=1\sup f = 1 is not attained, since f(x)<1f(x) < 1 for every xx in the domain, and likewise inff=0\inf f = 0 is not attained.

Neither maximum nor minimum, despite boundedness and continuity. This separates the boundedness theorem from EVT: boundedness is not enough.

Example 4: Discontinuity breaking the theorem.

Let f(x)=1xf(x) = \frac1x for x(0,1]x \in (0,1] and f(0)=0f(0) = 0, on the closed interval [0,1][0,1].

Solution. The domain is closed and bounded. But ff is discontinuous at 0, since limx0+f(x)\lim_{x\to0^+}f(x) does not exist (it diverges).

ff is unbounded, so it has no maximum. EVT does not apply and its conclusion fails.

Continuity is not a technicality here. All three hypotheses are individually necessary.

Example 5: EVT gives an interior extremum for Rolle.

Suppose ff is continuous on [a,b][a,b], differentiable on (a,b)(a,b), and f(a)=f(b)f(a) = f(b). Show ff has an extremum in the open interval, unless ff is constant.

Solution. By EVT, ff attains a maximum MM and minimum mm on [a,b][a,b].

If M=mM = m then ff is constant and every point is an extremum.

Otherwise at least one of M,mM, m differs from the common endpoint value f(a)=f(b)f(a) = f(b), so the point where it is attained is not an endpoint. Hence it lies in (a,b)(a,b). ∎

That interior point is where Rolle’s theorem then applies the derivative test. EVT supplies the point; differentiability does the rest.

Example 6: Optimization with no solution.

Minimize f(x)=xf(x) = x over x>0x > 0. What is the answer?

Solution. The infimum is 0, but there is no smallest positive real: for any candidate x>0x>0, x2\frac x2 is smaller and still feasible.

The infimum exists; the minimum does not. The feasible set (0,)(0,\infty) is neither closed nor bounded, so EVT does not apply.

This is exactly why optimization problems are posed on closed feasible sets whenever possible. An open constraint like x>0x > 0 often needs replacing with xϵx \ge \epsilon for the problem to have a solution at all.

Example 7: Continuous on a compact set, but not an interval.

Does EVT apply to a continuous ff on [0,1][2,3][0,1]\cup[2,3]?

Solution. Yes. The domain is closed and bounded, hence compact, and the compactness proof of EVT never used connectedness.

So ff attains a maximum and minimum on the union. Compactness, not interval-ness, is the real hypothesis - which is why the theorem generalizes far beyond R\mathbb{R}.

Optimization solvers. Every guarantee that a solver will find an optimum rather than chase an unreachable infimum traces to EVT. Practitioners close and bound the feasible region, sometimes artificially, precisely to get that guarantee.

Engineering design limits. Finding the maximum stress in a beam over a bounded region requires that the maximum exists. Continuity of the stress field plus a closed bounded domain gives it, and both are checked implicitly whenever a finite element analysis reports a peak value.

Machine learning. Existence of a minimizer of a loss function over a compact parameter set is EVT. Weight regularization and clipping effectively compactify the parameter space, which is one reason they improve well-posedness and not just generalization.

Numerical error bounds. Statements like “the error is at most Mh28\frac{M h^2}{8} where M=maxfM = \max|f''|” require that maximum to exist. On a compact interval EVT supplies it; on an open or unbounded domain the bound may not exist and the analysis has to change.

Economics. Utility maximization over a budget set has a solution because the budget set is compact (closed by the budget constraint, bounded by finite income) and utility is continuous. Relax either and the consumer’s problem can fail to have an answer.

Scheduling and control. Finding the worst-case response over a finite time window is a maximization over a compact set. Over an infinite horizon the supremum may not be attained, which is why infinite-horizon control theory is technically harder.

What does the extreme value theorem require?
Which example shows that boundedness alone does not give a maximum?
In the sequential proof, what role does closedness of [a, b] play?
Which function shows continuity is essential, even on a closed bounded interval?
What is the difference between a supremum and a maximum?
Why does the compactness proof of EVT also work on [0,1] ∪ [2,3]?