If $A$ is compact then $f^{-1}(A)$ compact?

156 Views Asked by At

Let $f$ be a continuous function. I know that if $A$ is compact then $f(A)$ is compact but is $f^{-1}(A)$ also compact? I believe it is not but how can I prove it by a counter example?

1

There are 1 best solutions below

0
On

Consider $f:\mathbb R\to\mathbb R $ defined by $f (x)=1$. The set $\{1\} $ is compact, but $f^{-1}(\{1\})=\mathbb R $ is not.