MathLabs

Topology

Euler characteristic

From the polyhedron formula V−E+F=2V - E + F = 2 to a universal topological invariant that classifies surfaces, governs vector fields, and integrates curvature.

IntuitionA hidden rule in corners, edges, and faces

Pick up an ordinary die — a cube. Count its sharp corners (vertices): V=8V = 8. Count its straight ridges (edges): E=12E = 12. Count its flat sides (faces): F=6F = 6. Now combine those three numbers with alternating signs: 8−12+6=28 - 12 + 6 = 2. Next, slice one corner off the cube with a flat cut. You gain a new triangular face (FF goes up by 11), three new edges (EE goes up by 33), and two net new vertices (one old corner disappears, three new ones appear, so VV goes up by 22). Recompute the alternating sum: (8+2)−(12+3)+(6+1)=10−15+7=2(8+2) - (12+3) + (6+1) = 10 - 15 + 7 = 2. No matter how many corners you bevel or how asymmetrically you carve the solid, as long as you do not punch a tunnel all the way through it, the alternating count V−E+FV - E + F refuses to budge from 22.

Interactive 3D view of an intact cube; rotate it, switch among the five Platonic solids, and separate faces to count vertices, edges, and faces.
Interactive Platonic solids: switch between the five regular polyhedra and explode their faces to count vertices, edges, and faces.

SchoolThe five Platonic solids and semi-regular polyhedra

Since antiquity, geometers studied the five Platonic solids — convex polyhedra whose faces are congruent regular polygons with the same number of faces meeting at every corner — and the thirteen semi-regular Archimedean solids studied by Archimedes, such as the truncated icosahedron (the familiar soccer ball made of pentagons and hexagons). For centuries, mathematicians measured their side lengths, angles, and volumes without noticing a simple arithmetic bond shared by all of them. Notice in the table below how swapping VV and FF pairs the cube with the octahedron and the dodecahedron with the icosahedron (dual polyhedra), while the tetrahedron is paired with itself — yet every row ends at V−E+F=2V - E + F = 2.

Vertex, edge, and face counts for the five Platonic solids
SolidFace polygonVertices VVEdges EEFaces FFV−E+FV - E + F
TetrahedronTriangle44664422
Cube (hexahedron)Square8812126622
OctahedronTriangle6612128822
DodecahedronPentagon20203030121222
IcosahedronTriangle12123030202022

UndergraduateEuler's polyhedron formula and planar graphs

Definition: Euler characteristic of a polyhedral surface

Let SS be a surface subdivided into finitely many vertices (00-cells, count VV), edges (11-cells, count EE, each homeomorphic to an open interval connecting two vertices), and faces (22-cells, count FF, each homeomorphic to an open disk bounded by a closed loop of edges). The Euler characteristic of the subdivision is the alternating sum χ(S)=V−E+F\chi(S) = V - E + F. A fundamental theorem of topology states that χ(S)\chi(S) depends only on the topological type of the surface SS, not on how it is subdivided into cells.

For any convex polyhedron — or more generally, any finite connected planar graph with VV vertices, EE edges, and FF faces (counting the unbounded exterior region as one face) — the alternating sum satisfies V−E+F=2V - E + F = 2.

Why is it true?

Removing one face of a convex polyhedron and stretching the remaining surface flat onto a plane produces a connected planar graph whose bounded faces correspond to the remaining F−1F - 1 faces of the polyhedron, while the unbounded outer region represents the removed face.

Proof

Following Cauchy (1813), project the polyhedron onto a plane as a connected planar graph with VV vertices, EE edges, and FF faces (including the outer face). If the graph contains any cycle, deleting one edge on that cycle merges two adjacent faces into one, reducing both EE and FF by 11 while leaving VV and hence V−E+FV - E + F unchanged. Repeat until no cycles remain; the resulting connected acyclic graph is a tree, which has F=1F = 1 (only the outer face) and satisfies E=V−1E = V - 1. Therefore V−E+F=V−(V−1)+1=2V - E + F = V - (V - 1) + 1 = 2.

Example: Proving there are only five Platonic solids from Euler's formula

Suppose a convex polyhedron has FF faces, all regular pp-gons (p≥3p \ge 3), and exactly qq edges meet at each of its VV vertices (q≥3q \ge 3). Use V−E+F=2V - E + F = 2 to show that (p,q)(p, q) can only be (3,3)(3,3), (4,3)(4,3), (3,4)(3,4), (5,3)(5,3), or (3,5)(3,5).

Solution

Counting edge-face incidences in two ways gives pF=2EpF = 2E (each of the FF faces has pp edges, and each edge borders 22 faces), so F=2E/pF = 2E/p. Counting vertex-edge incidences gives qV=2EqV = 2E (each edge has 22 endpoints), so V=2E/qV = 2E/q. Substituting into V−E+F=2V - E + F = 2 yields 2Eq−E+2Ep=2\frac{2E}{q} - E + \frac{2E}{p} = 2. Dividing by 2E>02E > 0 gives 1p+1q−12=1E>0\frac{1}{p} + \frac{1}{q} - \frac{1}{2} = \frac{1}{E} > 0, hence 1p+1q>12\frac{1}{p} + \frac{1}{q} > \frac{1}{2}. Since p,q≥3p, q \ge 3, the only integer solutions to 1p+1q>12\frac{1}{p} + \frac{1}{q} > \frac{1}{2} are (3,3)(3,3) (E=6E=6, tetrahedron), (4,3)(4,3) (E=12E=12, cube), (3,4)(3,4) (E=12E=12, octahedron), (5,3)(5,3) (E=30E=30, dodecahedron), and (3,5)(3,5) (E=30E=30, icosahedron). A purely topological count completely classifies the regular solids of Euclidean geometry!

Example: Why every fullerene and geodesic dome needs exactly 12 pentagons

The carbon molecule Buckminsterfullerene C60\mathrm{C}_{60} has V=60V = 60 carbon atoms (vertices), with exactly 33 bonds (edges) meeting at every atom, and every face of its polyhedral shape is a pentagon or a hexagon. If it has F5F_5 pentagonal faces and F6F_6 hexagonal faces, use Euler's formula to prove F5=12F_5 = 12 no matter how large F6F_6 is — the same constraint that forces soccer balls and Buckminster Fuller's geodesic domes to use exactly 12 pentagonal panels.

Solution

Since exactly 33 bonds meet at each of the V=60V = 60 atoms, counting vertex-edge incidences gives 3V=2E3V = 2E, so E=3×60/2=90E = 3 \times 60 / 2 = 90. The total face count is F=F5+F6F = F_5 + F_6, and counting edge-face incidences (each pentagon contributes 5 edges, each hexagon 6, each edge bordering 2 faces) gives 5F5+6F6=2E=1805F_5 + 6F_6 = 2E = 180.

Euler's formula V−E+F=2V - E + F = 2 becomes 60−90+(F5+F6)=260 - 90 + (F_5+F_6) = 2, i.e. F5+F6=32F_5+F_6 = 32. Subtracting 5F5+6F6=2E=1805F_5 + 6F_6 = 2E = 180 appropriately from F5+F6=32F_5+F_6 = 32: 6(F5+F6)−(5F5+6F6)=6×32−180=126(F_5+F_6) - (5F_5+6F_6) = 6 \times 32 - 180 = 12, so F5=12F_5 = 12. The number of hexagons F6F_6 is left completely free (C60\mathrm{C}_{60} itself has 20 hexagons), but the pentagon count is rigidly pinned by topology alone — which is exactly why chemists, architects, and even soccer-ball designers always land on exactly 12 pentagonal pieces.

UndergraduateHoles, genus, and the classification of closed surfaces

What happens when a surface has holes (handles)? Build a torus T2T^2 by taking a square sheet of paper and gluing opposite edges together: left edge to right edge forms a cylinder, and top edge to bottom edge bends the cylinder into a donut. On the original square there are 44 corners, 44 edges, and 11 face, but after gluing, all 44 corners meet at a single vertex (V=1V = 1), the 44 edges pair up into 22 closed loops (E=2E = 2), and the interior remains 11 face (F=1F = 1). Thus χ(T2)=1−2+1=0\chi(T^2) = 1 - 2 + 1 = 0! More generally, attaching a handle (taking a connected sum with a torus) removes two disks (reducing FF by 22) and glues their circular boundaries together along a loop of kk vertices and kk edges (which cancel in V−EV - E). Each handle therefore lowers χ\chi by 22, giving χ(Σg)=2−2g\chi(\Sigma_g) = 2 - 2g for an orientable closed surface of genus gg.

χ(Σg)=2−2g,χ(Nk)=2−k\chi(\Sigma_g) = 2 - 2g, \qquad \chi(N_k) = 2 - k

Every compact connected surface without boundary is homeomorphic to either an orientable surface Σg\Sigma_g of genus g≥0g \ge 0 (with χ(Σg)=2−2g\chi(\Sigma_g) = 2 - 2g), or a non-orientable surface NkN_k formed by the connected sum of k≥1k \ge 1 projective planes RP2\mathbb{RP}^2 (with χ(Nk)=2−k\chi(N_k) = 2 - k). Two closed surfaces are homeomorphic if and only if they have the same orientability and the same Euler characteristic.

Why is it true?

This theorem makes the Euler characteristic a complete topological fingerprint for closed 2-manifolds (once orientability is known): to decide what surface a complicated polygon-gluing produces, you merely compute V−E+FV - E + F and check whether the gluing reverses orientation!

Proof

Triangulate the compact connected surface SS into finitely many triangles and glue them edge-to-edge; cutting the triangulated surface open along a spanning tree of its dual graph produces a single polygon PP with 2n2n directed boundary edges, grouped into nn identified pairs. Repeatedly zipping together an adjacent pair of the form aa−1a a^{-1} (which removes a fold with no effect on the surface) and cutting-and-pasting along a diagonal whenever two like-labelled edges are separated, one reduces PP to one of two canonical normal forms: the orientable word a1b1a1−1b1−1⋯agbgag−1bg−1a_1 b_1 a_1^{-1} b_1^{-1} \cdots a_g b_g a_g^{-1} b_g^{-1}, producing the surface Σg\Sigma_g of genus gg; or, if an orientation-reversing pair appears, the non-orientable word c1c1⋯ckckc_1 c_1 \cdots c_k c_k, producing NkN_k, the connected sum of kk projective planes.

In the orientable normal form, all 4g4g corners of the polygon are glued to a single point, so V=1V = 1; the 4g4g boundary edges pair up into E=2gE = 2g; and the interior of the polygon remains one face, F=1F = 1. Hence χ(Σg)=V−E+F=1−2g+1=2−2g\chi(\Sigma_g) = V - E + F = 1 - 2g + 1 = 2 - 2g. In the non-orientable normal form, all 2k2k corners again meet at one vertex (V=1V = 1), the 2k2k edges pair into E=kE = k, and again F=1F = 1, so χ(Nk)=1−k+1=2−k\chi(N_k) = 1 - k + 1 = 2 - k. Since g↦2−2gg \mapsto 2 - 2g is strictly decreasing and k↦2−kk \mapsto 2 - k is strictly decreasing on the non-negative integers, each is injective; therefore knowing whether SS is orientable together with its Euler characteristic χ(S)\chi(S) determines gg or kk uniquely, and hence determines the homeomorphism type of SS completely.

AdvancedCurvature, vector fields, and higher dimensions

More than a century before Euler, René Descartes noticed a geometric twin of Euler's formula. At any vertex vv of a polyhedron, the face angles meeting at vv add up to less than a full turn 2π2\pi (if the corner is convex); the shortfall δv=2π−∑iθv,i\delta_v = 2\pi - \sum_{i} \theta_{v,i} is the angular defect at vv. For a cube, three right angles meet at each of the 88 corners, so δv=2π−3(π/2)=π/2\delta_v = 2\pi - 3(\pi/2) = \pi/2, and the total defect across all 88 corners is 8×(π/2)=4π=2πχ(S2)8 \times (\pi/2) = 4\pi = 2\pi \chi(S^2). Using V−E+F=χV - E + F = \chi, one easily proves Descartes' total defect theorem: ∑vδv=2πχ\sum_{v} \delta_v = 2\pi \chi for any polyhedral surface! When we pass from a polyhedron with concentrated corner curvature to a smooth Riemannian surface (M,g)(M, g) with Gaussian curvature KK, the discrete sum of defects becomes an integral, yielding one of the deepest theorems in mathematics.

For any compact orientable smooth Riemannian surface MM without boundary, the integral of the Gaussian curvature KK with respect to the area element dAdA satisfies ∫MK dA=2π χ(M)\int_M K\,dA = 2\pi\,\chi(M).

Why is it true?

The left-hand side ∫MK dA\int_M K\,dA is purely differential-geometric (changing from point to point as you dent or stretch the surface), while the right-hand side 2π χ(M)2\pi\,\chi(M) is a discrete topological integer times 2π2\pi. If you dent a sphere, regions of positive curvature increase only at the exact expense of new saddle regions of negative curvature, keeping the total integral locked at 4π4\pi; on a torus (χ=0\chi = 0), positive outer curvature and negative inner curvature always cancel to 00.

Proof

Choose a smooth geodesic triangulation of the closed orientable surface MM, with VV vertices, EE edges, and FF triangular faces T1,…,TFT_1, \dots, T_F, fine enough that each triangle lies inside a single coordinate chart. Applying Green's theorem to the position vector along the boundary of a small triangle gives the local Gauss–Bonnet identity: for each face TfT_f with interior angles αf,1,αf,2,αf,3\alpha_{f,1}, \alpha_{f,2}, \alpha_{f,3} and geodesic curvature κg\kappa_g along its boundary ∂Tf\partial T_f, ∬TfK dA+∫∂Tfκg ds=(αf,1+αf,2+αf,3)−π\displaystyle\iint_{T_f} K\,dA + \int_{\partial T_f} \kappa_g\,ds = (\alpha_{f,1}+\alpha_{f,2}+\alpha_{f,3}) - \pi.

Summing this identity over all FF triangles, the geodesic-curvature line integral along each interior edge is traversed exactly twice, once from each adjacent triangle and in opposite directions, so these boundary terms cancel completely and ∬MK dA=∑f=1F(αf,1+αf,2+αf,3)−Fπ\displaystyle\iint_M K\,dA = \sum_{f=1}^F (\alpha_{f,1}+\alpha_{f,2}+\alpha_{f,3}) - F\pi. The angles surrounding each of the VV vertices sum to a full turn, so the grand total of all interior angles equals 2πV2\pi V. Because every triangle has 33 sides and every edge borders exactly 22 triangles, 3F=2E3F = 2E, i.e. Fπ=(2E−2F)πF\pi = (2E - 2F)\pi. Substituting both facts into the summed identity gives ∬MK dA=2πV−2πE+2πF=2π(V−E+F)=2π χ(M)\displaystyle\iint_M K\,dA = 2\pi V - 2\pi E + 2\pi F = 2\pi(V-E+F) = 2\pi\,\chi(M).

By the Poincaré–Hopf theorem, for any smooth tangent vector field vv with isolated zeros on a closed smooth manifold MM, the sum of the local winding indices at its zeros equals the Euler characteristic: ∑v(p)=0ind⁡p(v)=χ(M)\sum_{v(p)=0} \operatorname{ind}_p(v) = \chi(M). In particular, since χ(S2)=2≠0\chi(S^2) = 2 \neq 0, every continuous tangent vector field on the sphere S2S^2 must vanish at least once.

Why is it true?

This explains why a steady wind pattern on Earth (S2S^2, χ=2\chi = 2) must always have at least one calm eye (a cyclone or anticyclone of total index 22), whereas a torus (T2T^2, χ=0\chi = 0) can be combed completely flat by a nowhere-vanishing vector field running along its longitudes!

Proof

To prove the Poincaré–Hopf index formula ∑v(p)=0ind⁡p(v)=χ(M)\sum_{v(p)=0} \operatorname{ind}_p(v) = \chi(M), replace vv by a homotopic vector field built from a Morse function on a fine triangulation of MM: a source of index +1+1 at each of the VV vertices, a saddle of index −1-1 at the midpoint of each of the EE edges, and a sink of index +1+1 at the centre of each of the FF faces. Because the index of a vector field restricted to the boundary of a small disk around each zero is a homotopy invariant, and vv can be continuously deformed into this canonical cellular field without ever crossing zero outside the disks already accounted for, the sum of the indices of vv equals the sum of the indices of the canonical field.

Adding up the canonical indices gives V(+1)+E(−1)+F(+1)=V−E+F=χ(M)V(+1) + E(-1) + F(+1) = V - E + F = \chi(M), so ∑v(p)=0ind⁡p(v)=χ(M)\sum_{v(p)=0} \operatorname{ind}_p(v) = \chi(M) holds for every closed surface MM. Specialising to the sphere, χ(S2)=2≠0\chi(S^2) = 2 \neq 0. If a continuous tangent vector field on S2S^2 had no zero anywhere, the left-hand side of the index formula would be the empty sum 00, contradicting χ(S2)=2\chi(S^2) = 2. Therefore every continuous tangent vector field on S2S^2 must vanish at some point p∈S2p \in S^2 — you cannot comb a hairy ball flat without a cowlick.

A 3D perspective projection of a four-dimensional hypercube (tesseract) rotating in a 4D coordinate plane, showing an inner cube connected vertex-to-vertex to an outer cube, forming 16 vertices, 32 edges, 24 square faces, and 8 three-dimensional cubic cells.
A 4D hypercube (tesseract) projected to 3D: count its 16 vertices, 32 edges, 24 square faces, and 8 cubic cells.

How does the Euler characteristic generalize to nn dimensions? In 1852 Ludwig Schläfli showed that for any convex nn-dimensional polytope, the alternating sum of the numbers ckc_k of kk-dimensional faces (0≤k≤n−10 \le k \le n-1) on its boundary (n−1)(n-1)-sphere Sn−1S^{n-1} satisfies χ(Sn−1)=∑k=0n−1(−1)kck=1+(−1)n−1\chi(S^{n-1}) = \sum_{k=0}^{n-1} (-1)^k c_k = 1 + (-1)^{n-1}. Thus even-dimensional spheres (S2,S4,…S^2, S^4, \dots) have χ=2\chi = 2, while odd-dimensional spheres (S1,S3,…S^1, S^3, \dots) have χ=0\chi = 0! You can check this directly on the boundary of the 44-dimensional tesseract ([−1,1]4[-1,1]^4, whose boundary is topologically S3S^3): it has c0=16c_0 = 16 vertices, c1=32c_1 = 32 edges, c2=24c_2 = 24 square faces, and c3=8c_3 = 8 cubic 33-cells, giving 16−32+24−8=0=χ(S3)16 - 32 + 24 - 8 = 0 = \chi(S^3).

In 1895 Henri Poincaré discovered the deepest explanation for why this alternating sum is invariant under homeomorphism. To any topological space XX (such as a finite CW complex), algebraic topology assigns a sequence of abelian homology groups Hk(X)H_k(X) whose ranks bk=rank⁡Hk(X)b_k = \operatorname{rank} H_k(X) (the Betti numbers) count the number of independent kk-dimensional holes. By the rank-nullity theorem of linear algebra applied to the boundary operators ∂k:Ck→Ck−1\partial_k : C_k \to C_{k-1}, the alternating sum of cell counts ckc_k equals the alternating sum of the Betti numbers — the Euler–Poincaré formula:

χ(X)=∑k≥0(−1)kck=∑k≥0(−1)krank⁡Hk(X)=b0−b1+b2−b3+⋯\chi(X) = \sum_{k \ge 0} (-1)^k c_k = \sum_{k \ge 0} (-1)^k \operatorname{rank} H_k(X) = b_0 - b_1 + b_2 - b_3 + \cdots

ResearchTopological data analysis and the Euler characteristic transform

A convex polyhedron has F=20F = 20 triangular faces and E=30E = 30 edges (an icosahedron). How many vertices VV does it have?

What is the Euler characteristic χ(Σ3)\chi(\Sigma_3) of a closed orientable surface of genus g=3g = 3 (a sphere with three handles)?

Which of the following closed orientable surfaces admits a continuous tangent vector field that is nowhere zero?

A smooth sphere S2S^2 of radius 11 is smoothly dented and stretched into a bumpy peanut shape MM without tearing or gluing. What is the total Gaussian curvature ∫MK dA\int_M K\,dA?

References

  1. David S. Richeson (2008). Euler's Gem: The Polyhedron Formula and the Birth of Topology
  2. Allen Hatcher (2002). Algebraic Topology
  3. Katharine Turner, Sayan Mukherjee, Doug M. Boyer (2014). Persistent Homology Transform for Modeling Shapes and Surfaces · DOI:10.1093/imaiai/iau011
  4. Olympio Hacquard, Vadim Lebovici (2024). Euler Characteristic Tools for Topological Data Analysis