could someone please explain to me the following question:
Let $f,g$ be continuous functions from $\mathbb{R}$ to $\mathbb{R}$ and suppose that $f(r) = g(r)$ for all $r \in \mathbb{Q}$. Is it true that $f(x) = g(x)$ for all $x \in \mathbb{R}$?
My claim is that it should be true since $f$ and $g$ are continuous from $\mathbb{R}$ to $\mathbb{R}$, so if $f(x) \neq g(x)$ for all $x \in \mathbb{R}$ then it cant be continuous on $\mathbb{R}$?
So, is my claim correct and if it is how am I supposed to prove it (please give me some hints) Also, if my claim is wrong, could you please explain to me as to why its wrong`