Can someone please explain to me how I am supposed to approach this question:
If $f: [0,1] \to \mathbb{ R}$ is continuous, and has only rational values, then $f$ must be a constant.
Can someone please explain to me how I am supposed to approach this question:
If $f: [0,1] \to \mathbb{ R}$ is continuous, and has only rational values, then $f$ must be a constant.
On
Hint: Suppose $f$ takes on two values $a,b\in\mathbb{Q}$ for which $a\neq b$. What does the intermediate value theorem tell us?
On
Let $\mathbf{I}$ be the interval $[0,1]$. Since $f$ is continous on the inverval $\mathbf{I}$, then $f(\mathbf{I})$ must be an interval. Now, suppose that $f(\mathbf{I})$ is the interval $[a,b]$, where a, b $\in$ $\mathbb{Q}$. Since irrationals are dense, we can find a irrational number in the interval $[a,b]$. This is a contradiction because we know that $f(\mathbf{I})$ $\subset$ $\mathbb{Q}$. Then $f(\mathbf{I})$ must be a degenerated inverval and therefore it takes a constant value.
Hint: a continuous image of a connected space should be connected.