Skip to content
Tutorials Center
My learning

Topics

Lesson 31 of 36 · Surfaces and the Fundamental Group

Euler Characteristic of Surfaces

Compute the Euler characteristic V − E + F of polyhedra and glued polygons, learn χ = 2 − 2g for orientable surfaces, and calculate it by code.

Counting is one of the oldest ways to study shape. Take any polyhedron whose surface is a topological sphere, count vertices V, edges E and faces F, and you always find V − E + F = 2. For a torus-shaped solid you always get 0. This number, the Euler characteristic χ, does not change when you stretch the surface, so it is a topological invariant. It is the first tool for telling surfaces apart.

Definition

Cut a closed surface into vertices, edges and faces in a way that every face is a disk glued from a polygon (a cell decomposition; triangulations are the standard example). Then

χ = V − E + F.

The remarkable theorem is that the result does not depend on the decomposition. Any two decompositions of the same surface give the same χ, and homeomorphic surfaces have the same χ.

Compare with Euler's polyhedron formula V − E + F = 2 for any convex polyhedron. Convex polyhedra are spheres, and χ(S²) = 2.

The sphere

A tetrahedron has V = 4, E = 6, F = 4, so χ = 2. A cube has 8 − 12 + 6 = 2. An octahedron has 6 − 12 + 8 = 2. The code below computes χ directly from a list of faces. Edges are found as pairs of consecutive vertices of a face, counting each shared edge once.

Python Euler characteristic of polyhedra from their faces

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.

Both torus meshes give 0, however fine you make them, while the three solids give 2.

Surfaces with handles

A sphere with g handles attached (a connected sum of g tori) is the orientable closed surface of genus g. The genus counts the "holes" in a doughnut-like picture. Cutting and pasting shows that attaching a handle lowers χ by 2, so

χ(Σ_g) = 2 − 2g.

Surface Genus g χ
Sphere 0 2
Torus 1 0
Double torus 2 −2
Triple torus 3 −4

Non-orientable closed surfaces are connected sums of k projective planes, with χ = 2 − k. The projective plane has χ = 1 (k = 1), and the Klein bottle has χ = 0 (k = 2).

Euler characteristic from a polygon word

Instead of drawing a mesh, compute χ from a boundary word. One polygon gives F = 1. The number of edges E is the number of distinct letters. The number of vertices V needs care: the corners of the polygon are glued together by the pairing. Walk around the polygon; edge i runs between corner i and corner i + 1. If the letter has exponent +1 it goes from corner i to corner i + 1; with −1 it goes the other way. Two occurrences of one letter must have their tails glued together and their heads glued together. The number of classes of corners is V.

Python χ of a polygon word by gluing corners

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 program prints χ = 2 for both sphere words, 1 for the projective plane, 0 for the torus, the Klein bottle and aabb, and −2 for the double torus. The word aabb is two projective planes joined together (k = 2, so χ = 2 − 2 = 0); it is the Klein bottle written in a different way, which is why its χ matches abAb.

Why the invariant matters

  • Orientable closed surfaces are distinguished by χ. The values 2, 0, −2, ... are all different, so spheres, tori and double tori are pairwise non-homeomorphic.
  • Non-orientable closed surfaces are distinguished by χ among themselves (1, 0, −1, ...).
  • The torus and the Klein bottle share χ = 0, so χ alone cannot separate them. You also need orientability. Together the two invariants decide every closed surface, which is the classification theorem of the next lesson.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is χ of a cube's surface?

    A cube has 8 vertices, 12 edges and 6 faces: 8 − 12 + 6 = 2, since its surface is a sphere.
  2. 2. What is the Euler characteristic of the closed orientable surface of genus g?

    Each handle lowers χ by 2, starting from χ = 2 for the sphere.
  3. 3. Which two surfaces have the same Euler characteristic but are not homeomorphic?

    Both have χ = 0, but the torus is orientable and the Klein bottle is not.
  4. 4. A triangulated closed surface has V = 8, E = 24 and F = 16. What is χ?

    8 − 24 + 16 = 0. This is consistent with a torus (also with a Klein bottle).

Summary

  • χ = V − E + F for any cell decomposition of a closed surface; it does not depend on the decomposition.
  • Sphere: 2; torus: 0; orientable genus g: 2 − 2g; non-orientable with k crosscaps: 2 − k.
  • χ can be computed from a boundary word by counting glued corners.
  • χ and orientability together determine a closed surface.

Next: Classification of Closed Surfaces