Compactness Is Preserved By Continuity

Theorem

The continuous image of a compact set is also compact.

Proof

Let f:KR be such that f is continuous for all cK, and K is compact.

To show that f(K) is compact, we'll take an arbitrary sequence in the set and show that it converges to a point in the set (see Closed iff Convergent Cauchy Sequences). Let (yn)f(K) be such an arbitrary sequence. Since ynf(K) then xnK where f(xn)=yn. Since K is compact, then (xnk)K (a subsequence) such that xnkx where xK. Note that f(x)f(K) automatically

But then since f is continuous at xK, then any sequence converging to x like xnk (like it does here) implies that f(xnk)f(x) (so then we get the right immediately). But since yn=f(xnk)=ynk then ynkf(x)f(K) as desired.

It is bounded trivially. Thus f(K) must be compact.

See Extreme Value Theorem for an immediate use of the theorem.