Suppose that $f,g:\mathbb{R} \rightarrow \mathbb{R}$ and are both continuous. For all $x \in \mathbb{Q}$, $f(x)=g(x)$. Show $f(x)=g(x)$ everywhere by using the epsilon-delta definition of continuity.
I know we can start off be taking c as a point not in the rationals and writing down what it means for f and g to be cts at this point but so far I can't figure out how to get any further.
Any help would be appreciated.
Let $h(x) = f(x) - g(x)$. Take $c\notin \Bbb Q$ and let $\varepsilon > 0$. Since $h$ is continuous, there is a $\delta > 0$ such that $|h(x) - h(c)| < \varepsilon$ for all $x$ in the open interval $(c - \delta, c + \delta)$. This open interval contains a rational point $q$, so $|h(q) - h(c)| < \varepsilon$. Since $q$ is rational, $h(q) = 0$, so $|h(c)| < \varepsilon$. Since $\varepsilon$ was arbitrary, $h(c) = 0$, i.e., $f(c) = g(c)$.