Topologist's Sine Curve

The closure of {(x,sin⁡(1/x)):x>0}\{(x, \sin(1/x)) : x > 0\} adds the segment {0}×[−1,1]\{0\}\times[-1,1] on the yy-axis. Connected as the closure of a connected set, yet no path runs from the segment into the curve — the living example of why connected is weaker than path-connected.

S={(x,sin⁡(1/x)):x>0},S‾=S∪({0}×[−1,1])S = \{(x, \sin(1/x)) : x > 0\}, \quad \overline{S} = S \cup \bigl(\{0\} \times [-1,1]\bigr)
S‾ connected,S‾ not path-connected\overline{S} \text{ connected},\quad \overline{S} \text{ not path-connected}

Examples & Exercises

Prove completely that S={(x,sin⁡(1/x)):x>0}⊆R2S = \{(x, \sin(1/x)) : x > 0\} \subseteq \mathbb{R}^2 is connected.

S=f((0,∞)),f(x)=(x, sin⁡(1/x))S = f((0,\infty)), \qquad f(x) = (x,\, \sin(1/x))
xmin⁡=0.05x_{\min} = 0.05: the curve SS alone oscillates infinitely near 0, yet it is one unbroken continuous curve.
Show proof
  1. (0,∞)(0,\infty) is connected (it is an interval — the same sup⁡\sup argument as for R\mathbb{R} applies verbatim). The map f(x)=(x,sin⁡(1/x))f(x) = (x, \sin(1/x)) is continuous since both coordinate functions are, and its image is exactly SS.
  2. The continuous image of a connected set is connected: if f(X)=A∪Bf(X) = A \cup B were a separation into disjoint nonempty relatively open sets, then X=f−1(A)∪f−1(B)X = f^{-1}(A) \cup f^{-1}(B) would be a separation of XX into disjoint nonempty relatively open sets (A,BA, B nonempty implies their preimages are nonempty), contradicting the connectedness of XX.
  3. Hence S=f((0,∞))S = f((0,\infty)) is connected. The closure of a connected set is connected, so T=S‾T = \overline{S} is connected as well — problem 2 below computes this closure.

Prove completely that S‾=S∪({0}×[−1,1])\overline{S} = S \cup \big(\{0\} \times [-1,1]\big): the closure of SS is SS together with the vertical segment {0}×[−1,1]\{0\} \times [-1,1].

S‾=S∪({0}×[−1,1])\overline{S} = S \cup \big(\{0\} \times [-1,1]\big)
xmin⁡=0.01x_{\min} = 0.01: zooming closer to 0 shows the sequences (xn,1)(x_n, 1), (xn,−1)(x_n, -1) converging onto the endpoints of the red segment.
Show proof
  1. ⊇\supseteq: S⊆S‾S \subseteq \overline{S} is trivial. For (0,y)(0,y) with ∣y∣≤1|y| \le 1, put xn=1arcsin⁡y+2πnx_n = \frac{1}{\arcsin y + 2\pi n} (n≥1n \ge 1); then xn→0+x_n \to 0^+ and sin⁡(1/xn)=sin⁡(arcsin⁡y+2πn)=y\sin(1/x_n) = \sin(\arcsin y + 2\pi n) = y. Hence (xn,y)∈S(x_n, y) \in S converges to (0,y)(0,y), so every point of {0}×[−1,1]\{0\} \times [-1,1] is a limit point of SS.
  2. ⊆\subseteq: let p∈S‾p \in \overline{S}. If p=(x,y)p = (x,y) with x<0x < 0, the ball B(p,∣x∣/2)B(p, |x|/2) contains no point of SS (whose first coordinates are all positive) — impossible. If x>0x > 0 and p∉Sp \notin S, then K=f([x/2, 3x/2])K = f([x/2,\, 3x/2]) (ff from the problem above) is compact as a continuous image of a compact set, hence closed. Points of SS meeting B(p,x/2)B(p, x/2) have first coordinate in (x/2, 3x/2)(x/2,\, 3x/2), so they lie in KK — giving p∈K‾=K⊆Sp \in \overline{K} = K \subseteq S, a contradiction. Thus x>0x > 0 implies p∈Sp \in S.
  3. Finally, if p=(0,y)p = (0,y): for (u,v)∈S(u,v) \in S, ∣p−(u,v)∣≥∣y−v∣≥∣y∣−1|p - (u,v)| \ge |y - v| \ge |y| - 1 (since ∣v∣=∣sin⁡∣≤1|v| = |\sin| \le 1). If ∣y∣>1|y| > 1, the ball B(p,(∣y∣−1)/2)B(p, (|y|-1)/2) misses SS, contradicting p∈S‾p \in \overline{S}. Hence ∣y∣≤1|y| \le 1, i.e. p∈{0}×[−1,1]p \in \{0\} \times [-1,1]. The three cases together give S‾=S∪({0}×[−1,1])\overline{S} = S \cup (\{0\} \times [-1,1]).

Prove completely that T=S‾T = \overline{S} is not path-connected: no path in TT leads from a point of the segment {0}×[−1,1]\{0\} \times [-1,1] to a point of SS.

γ(0)∈{0}×[−1,1], γ(1)∈S  ⟹  no continuous γ:[0,1]→T\gamma(0) \in \{0\} \times [-1,1],\ \gamma(1) \in S \implies \text{no continuous } \gamma: [0,1] \to T
Try "walking" from the red segment into the curve — the infinite oscillation near 0 blocks every path. The proof captures this obstruction with sequences.
Show proof
  1. Assume a continuous γ:[0,1]→T\gamma: [0,1] \to T with γ(0)∈{0}×[−1,1]\gamma(0) \in \{0\} \times [-1,1] and γ(1)∈S\gamma(1) \in S, aiming for a contradiction. Write γ(t)=(x(t),y(t))\gamma(t) = (x(t), y(t)) and put c=sup⁡{t∈[0,1]:x(t)=0}c = \sup\{t \in [0,1] : x(t) = 0\} (nonempty, containing 00). By continuity x(c)=0x(c) = 0, and c<1c < 1 since x(1)>0x(1) > 0. Moreover x(t)>0x(t) > 0 for t∈(c,1]t \in (c,1] (otherwise the supremum would be larger).
  2. For t∈(c,1]t \in (c,1], γ(t)∈T\gamma(t) \in T has positive first coordinate, so γ(t)∈S\gamma(t) \in S and y(t)=sin⁡(1/x(t))y(t) = \sin(1/x(t)). Since vn=12πn+π/2→0v_n = \frac{1}{2\pi n + \pi/2} \to 0, we have vn<x(1)v_n < x(1) for large nn. On [c,1][c,1], x(c)=0<vn<x(1)x(c) = 0 < v_n < x(1), so the intermediate value theorem gives tn∈(c,1]t_n \in (c,1] with x(tn)=vnx(t_n) = v_n. Then y(tn)=sin⁡(2πn+π/2)=1y(t_n) = \sin(2\pi n + \pi/2) = 1. Every subsequential limit t∗∈[c,1]t^* \in [c,1] of (tn)(t_n) satisfies x(t∗)=lim⁡vn=0x(t^*) = \lim v_n = 0, forcing t∗=ct^* = c (as x>0x > 0 on (c,1](c,1]). Hence tn→ct_n \to c, and by continuity y(c)=lim⁡y(tn)=1y(c) = \lim y(t_n) = 1.
  3. Likewise, with wn=12πn+3π/2w_n = \frac{1}{2\pi n + 3\pi/2}, pick sn∈(c,1]s_n \in (c,1] with x(sn)=wnx(s_n) = w_n; then y(sn)=sin⁡(2πn+3π/2)=−1y(s_n) = \sin(2\pi n + 3\pi/2) = -1, and the same argument gives sn→cs_n \to c, so y(c)=−1y(c) = -1. This contradicts y(c)=1y(c) = 1, so the assumed path cannot exist. TT is connected but not path-connected.

4. Topology