Let $f(x)$ be a continuous function defined for $1≤x≤3$. If $f(x)$ takes rational values for all $x$ and $f(2)=5$, what is the value of $f(1.5)$?
How do I approach questions like these?
Let $f(x)$ be a continuous function defined for $1≤x≤3$. If $f(x)$ takes rational values for all $x$ and $f(2)=5$, what is the value of $f(1.5)$?
How do I approach questions like these?
The image of a continuous real function under a closed interval (like $1\leq x\leq3$) is also a closed interval. (This is a combination of the intermediate value theorem and the extreme value theorem.) The only closed intervals that don't contain any irrational numbers are singleton sets where the only value is rational. Therefore, since $5$ is in the range, the function must be $f(x)=5$ for all $1\le x \le 3$ and thus $f(1.5)=5$.