[example: Gluing an Interval into a Circle]
Let $S^1=\{x\in\mathbb R^2:|x|=1\}$, and define
\begin{align*}
q:[0,1] &\to S^1 \\
t &\mapsto (\cos(2\pi t),\sin(2\pi t)).
\end{align*}
First,
\begin{align*}
q(0)&=(\cos 0,\sin 0)=(1,0),\\
q(1)&=(\cos 2\pi,\sin 2\pi)=(1,0),
\end{align*}
so the quotient map identifies the two endpoints.
Fix $0<\varepsilon<\frac12$, and let
\begin{align*}
V_\varepsilon
&=q\big([0,\varepsilon)\cup(1-\varepsilon,1]\big)\subset S^1.
\end{align*}
We compute its preimage. If $q(t)=q(s)$ for $s,t\in[0,1]$, then
\begin{align*}
e^{2\pi i t}&=e^{2\pi i s},\\
e^{2\pi i(t-s)}&=1,
\end{align*}
so $t-s\in\mathbb Z$. Since $t-s\in[-1,1]$, this gives $t=s$, or $(t,s)=(1,0)$, or $(t,s)=(0,1)$. Therefore no point of $[\varepsilon,1-\varepsilon]$ maps into $V_\varepsilon$, and
\begin{align*}
q^{-1}(V_\varepsilon)
&=[0,\varepsilon)\cup(1-\varepsilon,1].
\end{align*}
This set is open in $[0,1]$ with the [subspace topology](/page/Subspace%20Topology) because
\begin{align*}
[0,\varepsilon)\cup(1-\varepsilon,1]
&=[0,1]\cap\big((-\varepsilon,\varepsilon)\cup(1-\varepsilon,1+\varepsilon)\big),
\end{align*}
and $(-\varepsilon,\varepsilon)\cup(1-\varepsilon,1+\varepsilon)$ is open in $\mathbb R$. Thus an arc around $(1,0)$ is locally one connected piece on the circle, even though its preimage appears as two pieces at opposite ends of the interval.
[/example]