Suppose
is one to one, then there is a unique function
such that
for each
and
for each
In fact, if
is continuous then
is continuous and vice versa, if
and
are compact.
Theorem Suppose
is continuous and one to one with
compact. Then
is continuous.
Proof: Let
be any sequence in
converging to
We must show that
converges to
Write
for each
then
Since
is compact, the sequence
is bounded. Let
be any convergent subsequence of
with limit
since
is closed, and so
is continuous at l, thus
converges to
but
is a subsequence of
hence converges to
Since
is one to one and
Every convergent subsequence of
converges to the same limit l so
converges to
and so
is continuous at![]()
We must have that
is compact, for a reason illustrated by the example below.
Let![]()
illustrated below, is one to one and continuous on![]()

The graph of
is shown below.

Consider the sequence
which converges to 1. For n odd,
and for
even
so
does not converge.