I read a proof that goes as follows:
Let $U$ be the unit circle, and let $f : U \longrightarrow \mathbb R$ be a continuous mapping. $U$ is compact and connected, so $f(U)$ is a closed, bounded interval in $\mathbb R$. Hence there are $a$ and $b$ in $\mathbb R$ such that $f(U) = [a,b]$. There are two points $x_0$ and $y_0$ in $U$ such that $a = f(x_0)$ and $b = f(y_0)$. Let $A$ and $B$ be two diametrically opposite points in $U$ distinct from $x_0$ and $y_0$. Then,
$f(\widehat {x_0 A y_0}) = [a,b]$ and $f(\widehat {x_0By_0}) = [a,b]$.
This shows that $f$ is not injective.
I don't understand that highlighted step. Can anyone explain? Thanks.
The arcs are also compact and connected, so their images must also be closed, bounded intervals, and they necessarily contain $\{a, b\}$.