Theorem
Extreme value theorem
A continuous real-valued function on a nonempty compact set attains its maximum and minimum.
Statement
The extreme value theorem states: if is a nonempty compact set and is a continuous function, then attains its maximum and minimum values.
That is, there exist such that
Classical version
If , every continuous function attains a maximum and a minimum on .
Why compactness matters
- The function on has neither a maximum nor a minimum.
- The function on has no maximum.
Image formulation
Equivalently, has a minimum and a maximum. The result follows from compactness of continuous images and the order properties of nonempty compact subsets of .