Maths WorkshopMaths problems with full solutions
Exercise 1189Topology › Topology of ℝⁿL1Added 3 Nov 2026

Continuous image of a compact set

#compact#continuous image#extrema

Statement

Show that if K⊆RnK\subseteq\mathbb{R}^n is compact and f:K→Rf:K\to\mathbb{R} is continuous, then ff attains its maximum and minimum on KK.

Hint

f(K)f(K) is compact in R\mathbb{R}, hence closed and bounded; contains its supremum and infimum.

Show solutionHide solution

Solution

Image compact. f(K)f(K) is compact in R\mathbb{R} (continuous image of compact is compact).

Extrema. f(K)f(K) is closed and bounded in R\mathbb{R}: it contains its supremum MM and infimum mm. So there exist xmax⁡,xmin⁡∈Kx_{\max}, x_{\min}\in K with f(xmax⁡)=Mf(x_{\max})=M, f(xmin⁡)=mf(x_{\min})=m.

Conclusion. Continuous functions on compact sets attain their extrema.