Assume that X is compact, and let f:XβY be continuous. By Compact Subset Criterion via Open Covers in the Ambient Space, it is enough to show that every open cover of f(X) in Y has a finite subcover.
Let I be a set, and let (Viβ)iβIβ be an open cover of f(X) in Y. By Open Cover and Subcover of a Subset of a Topological Space, each Viβ is open in Y and
f(X)βiβIββViβ.
For each iβI, define
Uiβ=fβ1(Viβ)={xβX:f(x)βViβ}.
Since f is continuous, each Uiβ is open in X by Continuous Map Between Topological Spaces. We claim that (Uiβ)iβIβ is an open cover of X in X. Let xβX. Then f(x)βf(X), and because (Viβ)iβIβ covers f(X), there exists some index iβI such that f(x)βViβ. Hence xβUiβ. Therefore
XβiβIββUiβ.
So (Uiβ)iβIβ is an open cover of X in X.
Apply Compact Subset Criterion via Open Covers in the Ambient Space with the subset XβX. Since X is compact, there exist a natural number nβN and indices i1β,β¦,inββI such that
XβUi1βββͺβ―βͺUinββ.
We show that (Vi1ββ,β¦,Vinββ) covers f(X). Let yβf(X). Then y=f(x) for some xβX. Since XβUi1βββͺβ―βͺUinββ, there exists kβ{1,β¦,n} such that xβUikββ. By the definition of Uikββ, this means that f(x)=yβVikββ. Hence
f(X)βVi1βββͺβ―βͺVinββ.
Therefore (Vi1ββ,β¦,Vinββ) is a finite subcover of f(X) in Y.
So every open cover of f(X) in Y has a finite subcover. By Compact Subset Criterion via Open Covers in the Ambient Space, the subset f(X) is compact in Y.