Skip to content
Tutorials Center
My learning

Topics

Lesson 29 of 36 · Product and Quotient Spaces

Gluing Squares: Cylinder, Möbius Band, Torus

Build the cylinder, Möbius band, torus, Klein bottle and projective plane by gluing the edges of a square, and verify properties such as boundary components by code.

The quotient topology becomes visual when you start from a square and glue its edges. Different ways of pairing the edges produce a cylinder, a Möbius band, a torus, a Klein bottle or a projective plane. These are the first examples of surfaces, and the notation you learn here is exactly what classifies all closed surfaces in the next chapter.

A square is I × I where I = [0, 1]. We glue by an equivalence relation on its boundary and give the result the quotient topology.

Reading a gluing diagram

Label the edges of the square with letters and arrows. Edges with the same letter are glued, and the arrows tell you how: if the arrows point in the same rotational direction as you walk around the boundary the gluing keeps orientation; if opposite, it flips. Reading the boundary clockwise from the corner, write each letter with exponent +1 (arrow with the walk) or −1 (against it). The result is a boundary word.

Surface Word Gluing
Cylinder (no closed word; two edges glued) (0, y) ~ (1, y); top and bottom stay free
Möbius band (no closed word; two edges glued) (0, y) ~ (1, 1 − y); top and bottom form one free edge
Torus a b a⁻¹ b⁻¹ (0, y) ~ (1, y), (x, 0) ~ (x, 1)
Klein bottle a b a⁻¹ b (0, y) ~ (1, y), (x, 0) ~ (1 − x, 1)
Real projective plane a b a b (x, 0) ~ (1 − x, 1), (0, y) ~ (1, 1 − y)
Sphere a a⁻¹ b b⁻¹ a and b each glued back to back

The unglued square is a disk. The surfaces with no free boundary (torus, Klein bottle, projective plane, sphere) are closed surfaces.

flowchart LR
  S["Square I × I"] -->|"glue left and right, same direction"| C["Cylinder"]
  S -->|"glue left and right, flipped"| M["Möbius band"]
  C -->|"glue top and bottom, same direction"| T["Torus"]
  C -->|"glue top and bottom, flipped"| K["Klein bottle"]

Starting from a square: gluing one pair of opposite edges gives a cylinder or a Möbius band; gluing the second pair gives a torus or a Klein bottle.

Cylinder versus Möbius band

Both are made by gluing the vertical edges. The cylinder uses (0, y) ~ (1, y), the Möbius band uses the flip (0, y) ~ (1, 1 − y). The difference shows up when you count boundary pieces. The free boundary is the top and bottom edges. For the cylinder these form two separate circles. For the Möbius band the flip joins the top edge's right end to the bottom edge's left end, so the free boundary is a single circle that goes around twice. The Möbius band has one boundary component and one side.

The program below builds a grid, glues the vertical edges in both ways, and counts the boundary components of the free edges with union-find.

Python Counting boundary circles: cylinder vs Möbius band

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The output (2 for the cylinder, 1 for the Möbius band, at every grid size) matches the geometric picture. This is a discrete stand-in for the real surfaces, but the count is a topological invariant.

A concrete Möbius band in 3D

You can also embed the Möbius band in space with the parametrization X(u, v) = ((1 + (v/2)cos(u/2))cos u, (1 + (v/2)cos(u/2))sin u, (v/2)sin(u/2)) for u ∈ [0, 2π] and v ∈ [−1, 1]. At u = 0 and u = 2π the formula gives the points (1 + v/2, 0, 0) and (1 − v/2, 0, 0), so X(2π, v) = X(0, −v), which is exactly the flipped gluing. The surface normal ∂X/∂u × ∂X/∂v also arrives reversed, so you cannot consistently choose "up": the band is non-orientable.

Python The Möbius band embedded in 3D: the gluing and the flipped normal

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

If you carry the normal once around the strip and arrive at the same point from the other side, its direction has turned into its opposite. A torus does not do this: its outward normal returns unchanged, so the torus is orientable.

Torus, Klein bottle, projective plane

Gluing the second pair of edges produces closed surfaces.

  • Torus a b a⁻¹ b⁻¹: both pairs glued without flips. It is the product S¹ × S¹ and can be embedded in ℝ³ as the surface of a doughnut.
  • Klein bottle a b a⁻¹ b: one pair flipped. It contains a Möbius band, has no boundary and cannot be embedded in ℝ³ without self-intersection (it needs four dimensions).
  • Real projective plane a b a b: both pairs flipped. It is the set of lines through the origin in ℝ³, or a sphere with opposite points identified, or a disk with opposite boundary points glued. It also contains a Möbius band.

The torus is orientable; the Klein bottle and projective plane are not. Orientability and the Euler characteristic, introduced next chapter, will tell them apart.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which gluing of the vertical edges of a square, (0, y) ~ (1, y) or (0, y) ~ (1, 1 − y), gives the Möbius band?

    The flip, y ↦ 1 − y, introduces the half-twist. Gluing without the flip gives a cylinder.
  2. 2. How many boundary circles does a Möbius band have?

    The flip joins the top and bottom free edges into one circle, so the Möbius band has one boundary component, while a cylinder has two.
  3. 3. Which surface is made by gluing both pairs of opposite edges of a square without any flip?

    The word a b a⁻¹ b⁻¹ describes the torus, the product of two circles.
  4. 4. What does the reversed normal vector in the Möbius band embedding show?

    Carrying a normal around the core circle returns it pointing the opposite way, so no consistent choice of side exists.

Summary

  • Gluing the edges of a square, as encoded by words like a b a⁻¹ b⁻¹, gives cylinders, Möbius bands, tori, Klein bottles and projective planes.
  • A flip in the gluing introduces non-orientability.
  • The cylinder has two boundary circles, the Möbius band one, the closed surfaces none.
  • The Möbius band has a concrete 3D embedding in which the normal returns reversed.
  • These examples lead directly to the classification of surfaces.

Next: Surfaces and Manifolds