Theorem: Extreme value theorem on a metric space

Let be a metric space and be a compact subset, and suppose is a continuous function. Then attains its maximum and minimum within ; that is, there exists such that

Proof from Modern Analysis I.

  • is compact since it the image of a compact set under a continuous function
  • Since in , we can apply the Heine-Borel theorem to conclude that is closed and bounded, and hence has a least upper bound and greatest lower bound

Question. Why does this hold even if the domain is expanded?


Examples

See 2024-10-15