Use the notation: .

Theorem: Anyclosedsubset of a compact set is compact.

You should have proved that theorem, if not it is easily proven.

Thus, you want to prove that the set is closed.

If were not closed then some limit point, , of and .

Then there is a sequence of distinct points from which converges to .

Remembering that is continuous, there is a contradiction there.