Continuous function attains max and min on a compact set

On compact domains, continuous functions achieve their extrema
Continuous function attains max and min on a compact set

Corollary (Extreme Value Theorem): Let (X,d)(X,d) be a and let f:XRf:X\to\mathbb{R} be . Then ff attains its and : there exist xmin,xmaxXx_{\min},x_{\max}\in X such that f(xmin)=minxXf(x),f(xmax)=maxxXf(x). f(x_{\min})=\min_{x\in X} f(x),\qquad f(x_{\max})=\max_{x\in X} f(x).

Connection to parent theorem: This is the ; it follows because f(X)f(X) is compact in R\mathbb{R}, hence has a minimum and maximum.