Let $f: \mathbb R \to \mathbb R$ be a continuous function. Which one of the following sets cannot be the image of $(0,1]$ under $f$?
- $\{0\}$
- $(0,1)$
- $[0,1)$
- $[0,1]$.
We know that $(0,1]$ is neither open nor closed, since $f$ is continuous, "every inverse mapping of closed set is closed" by the result above, $\{0\}, (0,1), [0,1]$ are sets that cannot be image of $(0,1]$. Am I right?
My argument: Inverse exists only when function is one one and onto, so will there be continuous function such that inverse never exists but the image of $(0,1]$ be one of the above three sets?