I am trying to prove that if $f$ and $g$ are continuous on $(a,b)$ and $f(x)=g(x)$, $\forall$ rational $x\in(a,b)$ then $f(x)=g(x)$, $\forall\;x\in(a,b)$.
The truth is, I don't even know how to go about this. Can anyone help me?
I am trying to prove that if $f$ and $g$ are continuous on $(a,b)$ and $f(x)=g(x)$, $\forall$ rational $x\in(a,b)$ then $f(x)=g(x)$, $\forall\;x\in(a,b)$.
The truth is, I don't even know how to go about this. Can anyone help me?
Suppose that $X$ is separated. The set $S=\{x:f(x)=g(x)\}$ is closed, if $f,g:(a,b)\rightarrow X$. To see this, consider $H(x)=(f(x),g(x))$, $H:(a,b)\rightarrow X\times X$, $S=H^{-1}(D)$ where $D=\{(x,x)\}$. The fact that $X$ is separated implies that $D$ is closed, $S$ is closed and contains a dense subset of $(a,b)$, we deduce that $S=(a,b)$.
Hint: Just think that $\bar{\mathbb{Q}}=\mathbb{R}$ and use the continuity of $f$ and $g$.