๐Ÿงฎ Brain Teaser

The Topologist's Sine Curve


Problem

Define the topologist's sine curve:

S={(x,โ€‰sinโก1x):x>0}โŠ‚R2S = \left\{ \left(x,\, \sin\tfrac{1}{x}\right) : x > 0 \right\} \subset \mathbb{R}^2

and let Sห‰\bar{S} be its closure in R2\mathbb{R}^2:

Sห‰=Sโˆช{(0,y):yโˆˆ[โˆ’1,1]}\bar{S} = S \cup \{(0, y) : y \in [-1, 1]\}

Show that Sห‰\bar{S} is connected but not path-connected.


Why It's Interesting

This is the canonical counterexample separating two fundamental notions that beginners often conflate: connectedness (you cannot split the space into two disjoint open sets) and path-connectedness (any two points can be joined by a continuous path). Sห‰\bar{S} is connected โ€” intuitively "one piece" โ€” yet no path can cross from the vertical segment to the sine part. The obstruction is purely topological, not geometric, and reveals that the closure of a path-connected set need not be path-connected.


Answer: view

ConnectednessPath-connectednessClosureCounterexample

Answer: The Topologist's Sine Curve


Intuition First

Why is Sห‰\bar{S} connected?

Picture the sine curve SS wiggling forever as xโ†’0+x \to 0^+, its oscillations getting compressed tighter and tighter. The vertical segment {0}ร—[โˆ’1,1]\{0\} \times [-1,1] is the "ghost" of all those oscillations โ€” every point on the segment is a limit of points on SS. You can get arbitrarily close to any point on the vertical segment by walking along the sine curve far enough to the left.

So Sห‰\bar{S} cannot be split into two separated pieces: the vertical segment is glued to SS by proximity, even though it never actually "touches" SS. The space is one piece โ€” connected.

Why is Sห‰\bar{S} not path-connected?

Now imagine trying to draw a continuous path from a point on the vertical segment (0,0)(0, 0) to a point on the sine curve. At some moment your path has to "make the jump" โ€” it's on the segment (x=0x = 0) and then, an instant later, it's on the sine curve (x>0x > 0).

The moment your xx-coordinate leaves zero and creeps toward 0+0^+, your yy-coordinate is forced to be sinโก(1/x)\sin(1/x), which oscillates infinitely between โˆ’1-1 and +1+1 as xโ†’0+x \to 0^+. No matter how slowly you move, you can't control those oscillations โ€” y(t)y(t) will be thrashing wildly between ยฑ1\pm 1 even as tt is barely moving.

But a continuous path must have y(t)y(t) settling down to a single value y(t0)y(t_0) as tโ†’t0t \to t_0. That's a contradiction. The sine curve simply oscillates too fast near x=0x=0 for any continuous path to "land" from the segment onto it.

One-line summary: the vertical segment is a limit point of SS but not reachable from SS by a continuous path โ€” closeness in the limiting sense is weaker than closeness via a path.


Formal Proof

Part 1: Sห‰\bar{S} is Connected

SS is path-connected (hence connected): the map tโ†ฆ(t,sinโก(1/t))t \mapsto (t, \sin(1/t)) for t>0t > 0 is a continuous parameterization of all of SS.

Lemma: The closure of a connected set is connected.

Proof. Suppose Sห‰=UโˆชV\bar{S} = U \cup V with U,VU, V open, disjoint, and nonempty. Since SS is connected, SS lies entirely in UU or VV โ€” say SโŠ‚US \subset U. Every point of Sห‰โˆ–S={(0,y):yโˆˆ[โˆ’1,1]}\bar{S} \setminus S = \{(0,y) : y \in [-1,1]\} is a limit point of SโŠ‚US \subset U. Since UU is closed in Sห‰\bar{S} (complement of the open VV), it contains all its limit points, so the vertical segment โŠ‚U\subset U. Then V=โˆ…V = \emptyset, a contradiction. โ– \blacksquare


Part 2: Sห‰\bar{S} is Not Path-Connected

Suppose for contradiction there is a continuous path: ฮณ:[0,1]โ†’Sห‰,ฮณ(0)=(0,0),ฮณ(1)โˆˆS.\gamma: [0,1] \to \bar{S}, \qquad \gamma(0) = (0,0),\quad \gamma(1) \in S.

Write ฮณ(t)=(x(t),y(t))\gamma(t) = (x(t), y(t)) and define: t0=supโก{tโˆˆ[0,1]:x(t)=0}.t_0 = \sup\{t \in [0,1] : x(t) = 0\}.

By continuity of xx, we have x(t0)=0x(t_0) = 0, so ฮณ(t0)\gamma(t_0) is on the vertical segment. For all t>t0t > t_0, we have x(t)>0x(t) > 0 (by definition of t0t_0), so: y(t)=sinโกโ€‰โฃ(1x(t)).y(t) = \sin\!\left(\tfrac{1}{x(t)}\right).

As tโ†˜t0t \searrow t_0, continuity of xx gives x(t)โ†’0+x(t) \to 0^+. Choose any ฮด>0\delta > 0. In xโˆˆ(0,x(t0+ฮด))x \in (0, x(t_0 + \delta)), the function sinโก(1/x)\sin(1/x) attains both +1+1 and โˆ’1-1, so by the intermediate value theorem applied to the continuous function y(t)y(t), yy takes all values in [โˆ’1,1][-1, 1] on the interval (t0,t0+ฮด)(t_0, t_0 + \delta).

This holds for every ฮด>0\delta > 0, so y(t)y(t) does not converge as tโ†’t0+t \to t_0^+. But continuity of ฮณ\gamma requires y(t)โ†’y(t0)y(t) \to y(t_0). Contradiction. โ– \blacksquare


Summary

| Property | SS | Sห‰\bar{S} | |----------|-----|-----------| | Connected | Yes | Yes | | Path-connected | Yes | No |

Moral: Connectedness is preserved by taking closures. Path-connectedness is not โ€” a limit point can be "infinitely close" to a set without being reachable by any continuous path.