Homology
Part II · Shapes
Chapter 2.6

The Euler Characteristic

V − E + F, and the first topological invariant

about 40 min Builds on 2.5 Simplicial Complexes

Without much exaggeration, it can be said that only one important topological concept came to light before Poincaré. This was the Euler characteristic of surfaces…

— John Stillwell, introduction to Poincaré’s Papers on Topology (2010)

Take any box, die, pyramid or gemstone. Count its corners, its edges and its flat faces. Subtract the second number from the first, and add the third. A cube gives A pyramid gives A football, stitched from 32 panels, gives The answer is always 2. This chapter is about why — and about what happens when it is not 2, which turns out to be even more interesting.

A curious count

A polyhedron is a solid whose surface is made of flat polygons (with no holes in them), the faces, joined along straight edges, with the edges meeting at vertices (corners). The cube is one; so is a pyramid, a prism, a cut diamond. For each polyhedron we count three numbers: the number of vertices; the number of edges; and the number of faces. Then we compute Try it in the gallery below; the figure does the counting with you.

A gallery of polyhedra Choose a solid · tap a count · drag to rotate
Cube

Angle defects: every corner falls 90° short of a flat 360°, and 8 × 90° = 720°.

Tap a count to watch it being counted.

Figure 2.6.1 Pick a solid and tap or to watch the vertices, edges or faces counted one by one. However the numbers change, is always (The note about angle defects will make sense later in the chapter.)

The five Platonic solids — the convex polyhedra whose faces are identical regular polygons, the same number meeting at every corner — make a good first test.

SolidFacesVEFV − E + F
Tetrahedron4 triangles4642
Cube6 squares81262
Octahedron8 triangles61282
Dodecahedron12 pentagons2030122
Icosahedron20 triangles1230202

The individual numbers vary wildly; the combination does not. It is not just the Platonic solids. Take a prism over a polygon with sides — two copies of the polygon, top and bottom, joined by rectangles. Drag the number to change it: with 6 there are vertices, edges ( on top, on the bottom, upright) and faces, and . A pyramid over the same polygon has vertices, edges and faces: . A double pyramid has vertices, edges and faces: . In each case the algebra shows why: the s cancel, and 2 is left over.

Euler’s polyhedron formula

“Convex” means the solid has no dents: the straight segment between any two of its points stays inside it. Every polyhedron in the gallery is convex. The more general phrasing says the same thing topologically: the surface must be a sphere in disguise — homeomorphic to a sphere, in the language of §2.1 Spaces and Continuity. That condition is not decoration. We will see that the whole content of the formula is a fact about the sphere, and that other surfaces give other numbers.

Descartes’s notebook contained a related theorem that you can already check in the gallery. At each corner of a convex polyhedron, the angles of the faces meeting there add up to less than a full turn of  — otherwise the corner would be flat. The shortfall is the angle defect at that corner. A cube has three right angles at each corner, so each defect is and the eight corners together fall short by Descartes found that the total defect of every convex polyhedron is exactly two full turns (Federico 1982) — and two is the same 2 as in Euler’s formula. That should seem odd. Adding up angles is measuring; counting corners, edges and faces is not. Why should one know about the other? Keep the question in mind: the last section of the chapter answers it in three lines.

Euler’s formula is one relation among the numbers of vertices, edges and faces. Finding all such relations, for polytopes of every dimension, is still an active subject, and some of its simplest questions are open.

Why it is true

A good proof should explain the 2. Here are two. The first is Cauchy’s, which changes the polyhedron step by step without ever changing the second counts the edges with two trees.

Cauchy’s proof: shrink the problem without changing the answer

The idea is to keep simplifying the picture by moves that never change until we reach something trivial.

  1. Remove one face and flatten. Take out one face, say the front face of the cube, and imagine the rest is made of stretchy rubber. Pull the hole wide open and lay the surface flat on a table. You get a flat network of points and lines — for the cube, a small square inside a big one, joined at the corners. Vertices and edges are untouched; only one face is gone. So for the flat network, is exactly one less than for the polyhedron: Euler’s formula is the same as saying the flat network has (The removed face has not really disappeared: it has become the region outside the network.)
  2. Cut every face into triangles. Draw diagonals across each polygon until only triangles are left. Each diagonal adds one edge, and splits one face into two, so it adds one face too. and both go up by 1, and is unchanged.
  3. Remove triangles from the outside, one at a time. A triangle on the outside of the network touches the outside along either one edge or two edges.
    • One edge: removing the triangle removes that edge and one face. and both drop by 1; no change.
    • Two edges: removing the triangle removes both edges, the corner between them, and one face. drops by 1, by 2 and by 1; the change in is
  4. Stop when one triangle is left. It has Since nothing ever changed, the flat network had all along, and the polyhedron, with its face put back, has
Cauchy’s proof, on a cube Step through, or press play
remove me

A cube has 8 vertices, 12 edges and 6 faces. We will show that V − E + F = 2 by changing the picture in steps that never change V − E + F.

A cube
Figure 2.6.2 Each step changes and but never The dashed rose outline shows what the last step removed. The final count, one triangle, is adding back the face we took out gives

Look at where the proof used the shape of the polyhedron. Only in step 1: removing a face had to leave something that can be stretched flat. That is true for anything shaped like a sphere — a sphere with a hole punched in it is a disk — and it is exactly what will fail for a polyhedron with a tunnel through it.

A second proof: two trees

Flatten the polyhedron as in step 1 (or simply draw its edges on a sphere). Now choose a : a set of edges that connects all vertices without forming any loop. A tree on vertices always has exactly edges, because building it up one edge at a time, each new edge brings in exactly one new vertex. Colour these edges teal.

Now look at the edges you did not use. Put a dot in the middle of every face (including one for the outside face), and for each unused edge, draw a short path between the two faces on either side of it, crossing that edge. These paths join the face dots into a network of their own, the dual graph. Two facts make the proof work. The paths join up all the faces — if a group of faces were cut off from the rest, the teal edges around it would have to form a loop, and a tree has none. And the paths contain no loop — a loop of paths would fence off some vertices from the others, but the teal tree connects everything. So the unused edges form a tree on the faces, with edges. Every edge is in exactly one of the two trees, so The 2 is one for each tree. This proof goes back to Karl von Staudt’s Geometrie der Lage of 1847 (von Staudt 1847), and it is the favourite of David Eppstein, who has collected twenty-one different proofs of the formula (see the reading list).

Two trees Hover a grey edge · try another tree
the outside face
7 tree edges + 5 dual-tree edges = 12 edges

Teal: a spanning tree — it reaches all 8 corners, with no loops, using 7 edges. Violet: the edges it leaves out, crossed by paths joining the 6 faces (the outside counts) into a tree with 5 edges. Hover a grey edge.

Figure 2.6.3 The flattened cube. Teal: a spanning tree of the 8 corners (7 edges). Violet: paths across the other 5 edges, joining the 6 faces — counting the outside — into a tree. Every one of the 12 edges is used by exactly one of the two trees. Each grey edge, added to the teal tree, would close a gold loop.

Cutting finer never changes it

Cauchy’s proof hides a more general idea, worth pulling into the light. Take any surface cut into polygons — a polyhedron, or a triangulated torus from §2.5 Simplicial Complexes — and refine it by one of three moves.

  • Split an edge by putting a new vertex in its middle: goes up by 1, and the edge becomes two, so goes up by 1. Change in
  • Cut a face with a new edge between two of its corners: goes up by 1 and goes up by 1. Change:
  • Put a vertex inside a face with corners and join it to all of them: goes up by 1, by and the face becomes triangles, so goes up by Change:

Try to break it.

Subdivide it yourself Pick a move · click an edge or face · drag to turn
8vertices
12edges
6faces
V − E + F 2
Choose a tool, then click an edge or a face of the cube. Drag to turn it.
Figure 2.6.4 Every click changes and the readout shows by how much. The glowing number never moves from 2. “Ten random moves” lets the computer try.

Now we can define the number in general. A finite simplicial complex has an f-vector  — the numbers of vertices, edges, triangles, tetrahedra and so on — and a CW complex has its numbers of cells

This is what makes a : a number attached to a space that homeomorphisms cannot change. If two spaces have different Euler characteristics, they are definitely not homeomorphic — no amount of stretching will turn one into the other.

Some quick checks with complexes from the previous chapter. A single point: A solid triangle: A solid tetrahedron: All of these can be squashed down to a point, and all have The circle, as a hollow triangle: The barycentric subdivisions of the last chapter changed the f-vector of a triangle with an edge attached from to to and every time Hatcher’s textbook opens with a stranger example, the “house with two rooms”: a box divided by a floor into two rooms, each reached only by a tunnel through the other. Cut into the obvious pieces it has vertices, edges and faces, and  — a hint that, against all appearances, this house too can be squashed to a point (Hatcher 2002, Example 0.2).

Polyhedra with tunnels

In 1813 Simon Lhuilier pointed out polyhedra for which Euler’s formula fails: polyhedra with tunnels through them (Lhuilier 1813). Take a square picture frame, with a square hole through the middle. Its top and bottom are each made of four trapezoids, the outside of four rectangles, and the inside of the tunnel of four more: faces. There are corners (eight around the top, eight around the bottom) and edges. So Every face is a flat polygon, every edge is shared by two faces, nothing is weird — except that the surface is not a sphere in disguise. It is a .

Polyhedra with tunnels Switch shapes · change the number of tunnels · drag to rotate
Lhuilier’s picture frame
16vertices
32edges
16faces

Not 2! Each face is a flat polygon and every edge joins two faces — but there is a tunnel through the solid.

Figure 2.6.5 Lhuilier’s picture frame has Switch to the slab of cubes and add tunnels: each one lowers by 2, so a slab with tunnels has

Why exactly 2 per tunnel? Cauchy’s proof gives a clue. A surface with a tunnel cannot be laid flat after removing just one face: you must also cut the tube of the tunnel, and cut around the ring of the frame. Here is a direct count instead. Drilling a tunnel removes a small square face from the top and one from the bottom, and puts in a tube of four rectangular walls. The 8 corners of the two little squares stay, as corners where the walls meet the top and bottom; their 8 edges stay too, as the top and bottom rims of the tube. The tube adds 4 new upright edges and 4 new faces, and we lost 2 faces. Total change: (This assumes the two little squares were already faces of the surface; you can always arrange that by subdividing first, which does not change Lhuilier had already found the general rule: a polyhedron pierced by separate tunnels has

Lhuilier had another “monster”, as Lakatos would later call such examples: a cube with a cube-shaped cavity hidden inside it, like a hollow box with thick walls. Its surface is made of two separate pieces — the outside of the box and the inside of the cavity — each a cube’s surface. Counting everything gives and This one is easy to explain: the count adds up over separate pieces, and each piece is a sphere in disguise. The Euler characteristic of several separate pieces is the sum of their Euler characteristics.

χ for every closed surface

We can now compute the Euler characteristic of every surface we met in §2.2 Gluing Spaces Together and §2.4 Manifolds and Surfaces, using any decomposition we like.

SurfaceDecompositionCountχ
Spherehollow tetrahedron
hollow octahedron
point + disk
4 − 6 + 4
6 − 12 + 8
1 − 0 + 1
2
Torus3 × 3 grid
7-vertex torus
point, 2 loops, disk
9 − 27 + 18
7 − 21 + 14
1 − 2 + 1
0
Projective plane6-vertex
point, 1 loop, disk
6 − 15 + 10
1 − 1 + 1
1
Klein bottletwisted 3 × 3 grid
point, 2 loops, disk
9 − 27 + 18
1 − 2 + 1
0
Genus-2 surfacetwo 7-vertex tori, glued
point, 4 loops, disk
11 − 39 + 26
1 − 4 + 1
−2

The cell decompositions (the last line of each row) come straight from the gluing words of §2.2 Gluing Spaces Together: a polygon whose sides are glued in pairs so that all its corners become a single point gives one 0-cell, one 1-cell for each letter, and one 2-cell. The surface of genus  — a sphere with handles, glued from a -gon with the word  — has letters, so For 3 handles that is . Gluing projective planes together (the word gives a non-orientable surface with so for 3 it is .

The same formulas fall out of the of §2.4 Manifolds and Surfaces, which cuts a small disk out of each of two surfaces and glues them along the two boundary circles. Triangulate both surfaces and cut out one triangle from each: each drops by 1 (one face fewer). Then glue the two triangular holes together: the 3 vertices and 3 edges of one hole are matched with those of the other, so we lose vertices and edges, which changes nothing ( Hence Adding a handle — a connected sum with a torus — lowers by adding a projective plane lowers it by

Counting by cutting and pasting

The connected-sum argument is one instance of a rule that deserves a name of its own. Suppose a complex is the union of two subcomplexes and which overlap in the subcomplex Count the cells of by counting those of and those of the cells in the overlap get counted twice, so we subtract them once. Since this works for vertices, edges and faces separately, it works for the alternating sum: This is the same inclusion–exclusion you would use to count the people in two overlapping clubs. Combined with two facts we already know — a disk has and a circle, a cylinder and a Möbius band all have  — it computes Euler characteristics by cutting shapes into simple pieces.

  • Sphere = northern hemisphere ∪ southern hemisphere, two disks meeting along the equator, a circle:
  • Torus = two cylinders (slice the doughnut like a bagel into an upper and a lower half; each half is a cylinder), meeting along two circles, the inner and the outer rim:
  • Projective plane = a Möbius band with a disk sewn onto its single boundary circle:
  • Klein bottle = two Möbius bands sewn together along their boundary circles:

Each answer agrees with the table. In §3.6 Exact Sequences and Mayer–Vietoris this cut-and-paste reasoning grows into the Mayer–Vietoris sequence, which does the same thing for the holes themselves rather than only for their alternating count.

Two numbers decide everything

In §2.4 Manifolds and Surfaces you met the classification of closed surfaces: every closed connected surface is a sphere, a sphere with handles, or a connected sum of projective planes (Armstrong 1983, ch. 7). Combine that with the formulas we just found.

Indeed, among orientable surfaces determines the number of handles and among non-orientable ones determines the number of projective planes Neither test is enough alone: the torus and the Klein bottle both have but one is orientable and the other is not; the sphere and the torus are both orientable, but have and

Every closed surface has its own cell Hover or tap a surface
χ =210-1-2-3-4orientablenon-orientable————
, the torus
Built from one point, 2 loops and one disk glued along :
Orientable, with 1 handle:
Figure 2.6.6 One direction: the Euler characteristic. The other: orientable or not. Every closed connected surface occupies exactly one cell, and no cell holds two. Orientable surfaces only have even since is always even.

Now we can keep a promise from the last chapter: why can no torus be triangulated with fewer than seven vertices? In a triangulated closed surface, (see the exercise “Counting a triangulated surface”). So a triangulated torus has and since at most edges are possible, which forces The seven-vertex torus meets this bound exactly — which is why every pair of its vertices had to be joined. The same argument gives for the projective plane and for the sphere.

χ for graphs: pieces minus loops

A graph — vertices joined by edges, with no faces — is a one-dimensional complex, and its Euler characteristic is simply What does it measure? Build a graph one step at a time. Adding a lone vertex creates a new piece, and raises by 1. Adding an edge lowers by 1, and it does one of two things: either it joins two pieces into one, or both its ends are already in the same piece and it closes a new loop. So every step either changes the number of pieces or the number of loops, and keeping track gives A has one piece and no loops, so a triangle has one piece and one loop, so

Pieces and loops Tap to add vertices and edges · switch modes · hover a gold edge
1pieces
2independent loops
= χ

Each gold edge closes a loop. Hover one to see its loop.

Figure 2.6.7 Each colour is one piece. Gold dashed edges are the “extra” edges: each closes one loop (hover to see it). However you edit the graph, equals the number of pieces minus the number of independent loops.

For a connected graph this says that the number of independent loops is a formula found by Gustav Kirchhoff in 1847 while studying electrical circuits (Kirchhoff 1847) (it counts how many independent loop currents a circuit can carry). The words “independent loop” need care — the graph has seven different loops but only independent ones — and §3.1 Cycles and Boundaries will make them precise. In that chapter the number of pieces is called and the number of independent loops

A shadow of something deeper

Look at what just happened with graphs. On the left of is a count of the pieces of a decomposition: vertices and edges, which depend on how we drew the graph. On the right is a count of features of the shape itself: how many components it has and how many independent loops. The equation says the alternating count of pieces equals the alternating count of holes.

The same is true one dimension up. For a closed surface, let be the number of components, the number of independent loops that do not fence off a piece of the surface, and the number of enclosed hollows. For the sphere these are one piece; no such loop, since every loop on a sphere cuts it in two; one hollow inside. For the torus they are the loop around the hole and the loop around the tube, neither of which cuts the torus apart, and the hollow inside the tube. And indeed This is the Euler–Poincaré formula, where the numbers the Betti numbers, count “-dimensional holes”. Making “hole” precise, defining the properly, and proving the formula is the business of Part III; it happens in §3.3 Homology Groups. The proof is the alternating ledger you saw with graphs, in every dimension: each new cell either creates a new hole or fills an old one, and the alternating signs keep the books balanced.

The Euler characteristic turns up far beyond counting. Here is the promised answer to Descartes’s puzzle. A face with corners has angles adding up to Add this up over all the faces: since every edge borders two faces, the s add up to and the angles of all the faces together come to The total defect is a full turn at every vertex minus all those angles: That holds for any closed polyhedral surface — for a sphere, and for the picture frame, where each of the eight outer corners falls short of flat while each of the eight corners around the tunnel overshoots by For smooth surfaces the defects become curvature, and the Gauss–Bonnet theorem says the total curvature of a closed surface is whatever its shape. A vector field on a closed surface — a breeze blowing along it — must have calm points whose “indices” add up to since every breeze on the Earth has a calm spot somewhere (the hairy ball theorem), while a torus, with can be combed smooth. These stories are told in §4.8 Curvature and Characteristic Classes.

And the alternating sum makes sense in every dimension. The 3-dimensional sphere, triangulated as the boundary of a 4-simplex, has in fact every closed manifold of odd dimension has a consequence of the Poincaré duality of §4.6 Poincaré Duality. Not bad for a count Euler made with polyhedra.

Still, a single number is a blunt instrument, and the minus signs are to blame. A circle has so do two separate circles, because the extra piece and the extra loop cancel. A sphere and a pair of points both have The alternating sum balances the books and throws away the entries. To get the entries back — one at a time — we have to say exactly what a hole is, which, you may have noticed, nobody has yet done, and then count holes straight from a list of simplices. That is the machine Part III builds, starting in §3.1 Cycles and Boundaries with the pieces and loops of a graph.

Exercises

Summary

Further reading

  • A whole book about V − E + F, for a general reader: the history from the Greeks to Poincaré, many proofs, the torus and beyond, and Gauss–Bonnet. The best companion to this chapter.
  • Proofs and Refutations — Imre Lakatos
    A classroom dialogue about Euler’s formula, its proofs and its counterexamples (picture frames, cubes within cubes, crested cubes). A classic of the philosophy of mathematics, and great fun.
  • Euler’s Formula and Graph Duality — 3Blue1Brown (Grant Sanderson) free
    An animated version of the “two trees” proof in this chapter.
  • Exactly what it says: a long list of different proofs, with sketches and references. Browse for the variety of ideas.
  • The Euler characteristic of graphs and surfaces, the classification of surfaces, and how it all becomes homology — at undergraduate level, with many exercises.
  • Computational Topology: An Introduction — Herbert Edelsbrunner and John Harer
    Euler characteristic and the classification of surfaces from a computer scientist’s point of view, leading into homology and persistence.
  • How Mathematicians Use Homology to Make Sense of Topology — Kelsey Houston-Edwards, Quanta Magazine free
    A short popular article that ends exactly where this chapter does: the Euler characteristic as an alternating count of holes.

References

  1. Leonhard Euler (1758). Elementa doctrinae solidorum. Novi Commentarii academiae scientiarum Petropolitanae 4, 109–140 (Euler Archive E230). free online
  2. Leonhard Euler (1758). Demonstratio nonnullarum insignium proprietatum, quibus solida hedris planis inclusa sunt praedita. Novi Commentarii academiae scientiarum Petropolitanae 4, 140–160 (Euler Archive E231). free online
  3. P. J. Federico (1982). Descartes on Polyhedra: A Study of the De Solidorum Elementis. Springer, Sources in the History of Mathematics and Physical Sciences 4. doi
  4. David S. Richeson (2008). Euler’s Gem: The Polyhedron Formula and the Birth of Topology. Princeton University Press. doi
  5. Gil Kalai (1989). The number of faces of centrally-symmetric polytopes. Graphs and Combinatorics 5 (1989), 389–391. doi
  6. Raman Sanyal, Axel Werner and Günter M. Ziegler (2009). On Kalai’s conjectures concerning centrally symmetric polytopes. Discrete & Computational Geometry 41 (2009), 183–198. doi
  7. Augustin-Louis Cauchy (1813). Recherches sur les polyèdres. Premier mémoire. Journal de l’École polytechnique 9 (cahier 16), 68–86; read to the Institut in February 1811.
  8. Imre Lakatos (1976). Proofs and Refutations: The Logic of Mathematical Discovery. Cambridge University Press (edited by John Worrall and Elie Zahar). doi
  9. Karl Georg Christian von Staudt (1847). Geometrie der Lage. Bauer und Raspe, Nürnberg. free online
  10. Tibor Radó (1925). Über den Begriff der Riemannschen Fläche. Acta Scientiarum Mathematicarum (Szeged) 2, 101–121.
  11. John Milnor (1961). Two complexes which are homeomorphic but combinatorially distinct. Annals of Mathematics 74(3), 575–590. doi
  12. Allen Hatcher (2002). Algebraic Topology. Cambridge University Press. free online
  13. Simon Lhuilier (1813). Mémoire sur la polyèdrométrie ; contenant une démonstration directe du théorème d’Euler sur les polyèdres, et un examen des diverses exceptions auxquelles ce théorème est assujetti. Annales de mathématiques pures et appliquées 3 (1812–1813), 169–189. free online
  14. M. A. Armstrong (1983). Basic Topology. Springer, Undergraduate Texts in Mathematics. doi
  15. Gustav Kirchhoff (1847). Ueber die Auflösung der Gleichungen, auf welche man bei der Untersuchung der linearen Vertheilung galvanischer Ströme geführt wird. Annalen der Physik 148(12), 497–508. doi