Let $f(x)$ be a continuous function such that $f(r) = 0$ for all rational numbers r. Prove that $f(x) = 0$ for all $x ∈ R$.
Asked
Active
Viewed 777 times
2 Answers
4
By definition of the real numbers, any real number is limit of a sequence of rational numbers. Continuous functions preserve limits.

1k5
- 364
-
This answer is commensurate with the level of the question and very probably the kind of solution the lecturer is looking for. – Simon S Dec 05 '14 at 00:15
0
I feel like the following equivalent definition of continuity is very suitable here:
$$f \textrm{ is continuous}\ \iff f(\overline{M})\subset \overline{f(M)} \textrm{ for all}\ M\subset X $$
Now choose $M=\mathbb Q$ and you are done.
A proof of the above alternative definition of continuity can be found here.