Possible Duplicate:
Can there be two distinct, continuous functions that are equal at all rationals?
Hello guys,
Let $f$ and $g$ be continuous functions, $f,g:\mathbb{R} \to \mathbb{R}$, such that for every $q\in \mathbb{Q}$ we have $f(q)=g(q)$.
I need to prove that $f(x)=g(x)$ for every $x\in \mathbb{R}$.
I think I should prove that with sequences. We can choose a $x\in \mathbb{R}$, and we know that there is a sequence of rational numbers whose limit is $x$. Let's call it $X_{n}$, so $\lim f(X_{n})=\lim g(X_{n})$, when $n \to \infty $, and we get what we want.
Is it correct? What do you think?