Prove that the graph of continuous function f: $\mathbb{R}\rightarrow\mathbb{R}$ is a connected set in $\mathbb{R}\times\mathbb{R}$ (in euclidean metric).
I'm new to this kind of proofs, so I don't even know how to start it. Any help will be much appreciated.
If the graph is not connected then it has at least two components C_1 and C_2 and we can find two disjoint open sets$O_1$ and $O_2$ in $\mathbb{R}\times\mathbb{R}$ where $C_1 \subset O_1 $ and $C_2 \subset O_2 $
Note that the projection of $O_1$ and $O_2$ on the x-axis are disjoint and cover part of the domain of the function $f$.
That contradicts the continuity of the function $f$