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 there exist xmin,xmaxXx_{\min},x_{\max}\in X such that f(xmin)=HAHAHUGOSHORTCODE585s3HBHBxXf(x),f(xmax)=HAHAHUGOSHORTCODE585s4HBHBxXf(x). f(x_{\min})= _{x\in X} f(x),\qquad f(x_{\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.