Extreme Value Theorem

See Compactness Is Preserved By Continuity which this corollary comes from.

Extreme Value Theorem

If f is continuous on a closed interval then f attains an absolute maximum and an absolute minimum in that interval.

Proof

Let a<bR. Take f:[a,b]R to be continuous. By the Heine-Borel Theorem (Compact Equivalences) then our [a,b] is compact. Therefore, by Compactness Is Preserved By Continuity then f([a,b]) is compact. Compact gives that f([a,b]) must be bounded, so then we can define m:=inff([a,b]) and M:=supf([a,b]) both exist.

f([a,b]) are both closed (by being compact), so then our m,Mf([a,b]). So then x1,x2[a,b] where f(x1)=m and f(x2)=M as desired (since these points x1,x2) are our minimum/maximum points.