Continuous functions preserve some properties of the sets on which they operate. One of the most important of these preserved properties is compactness.
Theorem
If a continuous function
operates on a closed and bounded – compact – set
then the image
is also closed and bounded or compact.
Proof
By the extreme value theorem,
is bounded. If we can prove that
is open, then we have proved that
is closed. Since it is also bounded it is compact.
Suppose therefore, that
We want to find an open disc centred at
lying entirely in
Consider
which is non – zero on
since
for
 and is continuous on![]()

By the extreme value theorem there exists
such that
for all![]()
that is
for all![]()
where
so the open disc with centre
and radius
lies entirely in
so
is compact.