I know that a continuous function maps compact sets into compact sets. My question now is, are there continuous functions $f:{\mathbb R}\rightarrow I$, with $I=[a,b]$ ($a\neq b$)?
2026-04-02 10:04:40.1775124280
Continuous function from R to a compact set
158 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Take $f(x) = \sin x$. Then $f: \mathbb R \to [-1,1]$.
There are many other similar functions - for example $\frac 2 \pi \tan^{-1} x$ maps $\mathbb R \to (-1,1)$. The point is that whilst it is true that continuous functions take compact sets to compact sets, it is not generally true that the pre-image of a compact set is compact