Let $X,Y$ be topological spaces with $X$ compact and let $f:X \to Y$ be continuous and bijective. Prove that $f$ is a homeomorphism.
First of all, the image of a compact space under a continuous map is compact. Thus by the bijectivity of $f$, $Y$ is also compact. Now I am not sure, how to proceed. Can anyone give me a hint?