I'm trying to think of an example of a continuous function $f:\mathbb{R} \to \mathbb{R}$ such that $f^{-1}(X)$ is not compact but $ X \subset \mathbb{R}$ is compact. Any ideas?
Is the pre-image of a compact space compact?
4
$\begingroup$
general-topology
compactness
-
0@Arturo. Right, I missed that obvious point. – 2012-03-05
3 Answers
27
What about the the constant function $f(x)=0$?
4
Note that if $X$ is compact, it is closed, and so $f^{-1}(X)$ is closed. Now take your favourite set that is closed but not compact, call that $B$, and let $f(x) = \text{dist}(x,B)$. That is a continuous function on $\mathbb R$, and $B = f^{-1}(\{0\})$.
1
Consider the continuous function $\sin x$