Let $K \subset\mathbb R^{n}$ a compact set and $f : K \rightarrow\mathbb R^{m}$ a continuous and one-to-one function. Show that the function $f^{-1} : f(K) \rightarrow K$ it is continuous.
Hint: By hip $K$ is compact and f is injective, so $f(K)$ is compact, then by the Heine-Borel theorem is closed and bounded.