I'm trying to prove the following statement from James Dugundji's Topology (XI - section 2 - problem 6).
Let $X$ be compact (Hausdorff). Define an equivalence relation $R$ as follows: $xRy$ if for every continuous $f\colon X\to E^1$ such that $f(x)=0$, $f(y)=1$, there is a $u\in X$ with $f(u)=\frac{1}{2}$. Show that the equivalence classes are the components of $X$.
(I'll denote the equivalence class of $x$ as $[x]$ and it's component as $C(x)$).
I want to show that $[x]=C(x)$ for each $x\in X$. Showing $C(x)\subseteq [x]$ is easy: let $y\in C(x)$ and let $f\colon X\to E^1$ be continuous with $f(x)=0$ and $f(y)=1$. Since $C(x)$ is connected, $f\big(C(x)\big)$ is connected and thus $[0,1]=[f(x),f(y)]\subseteq f(C(x))$. It is then clear that $C(x)\subseteq [x]$.
In order to prove $[x]\subseteq C(x)$, I want prove that $[x]$ is connected. I have no idea how to prove this. We haven't used compactness yet so clearly this is the hard part of the problem. I'm looking for some hints on how to proceed
What are some hints in order to prove $[x]$ is connected?
Update: I'm now looking for hints, partial solutions, complete solutions, or anything that might allow me to eventually read a proof (either written by me or someone else) of the property.
Definitions. A space $X$ is Connected if it can't be decomposed into two disjoint open sets (i.e. no continuous $f\colon X\to \{0,1\}$ is surjective). A connected component for a point $x$ (written $C(x)$) is defined as the union of all connected sets containing $x$. $E^1$ denotes the first Euclidean space: $(\mathbb{R},\mathscr{T})$ where $\mathscr{T}$ is the usual topology.
$[x]=\{y\in X\mid \forall f\in C(X), [(f(x)=0\land f(y)=1)\implies (\exists u\in X,\; f(u)=1/2)]\}$.