The excess of the sum of the angles of a triangle formed by shortest lines over two right angles is equal to the total curvature of the triangle.
Try to comb the hair on a coconut so that it lies flat everywhere. You will fail: somewhere a tuft will stand up, or the hair will swirl around a bald spot. Now take a lump of clay shaped like a ball and squash it, dent it, pull out a nose. Its curvature changes everywhere — yet, added up over the whole surface, it is always exactly the same number.
Both facts are instances of one theme: local geometry knows global topology. A vector field is a choice of arrow at every point; curvature is a measurement at every point. Neither seems to know anything about the overall shape. Yet the zeros of every vector field, counted properly, add up to the Euler characteristic, and so does the total curvature, divided by The bookkeeping that makes these facts precise is a family of cohomology classes, the characteristic classes, which measure how a family of vector spaces twists over a space. They also give a famous argument for why electric charge should come in whole units, and they explain why certain electrical measurements are exact integers.
Families of vector spaces
Stand at a point of a sphere. The directions in which you can walk without leaving the surface form a flat plane touching the sphere at the tangent plane of §2.4 Manifolds and Surfaces. Every point has its own tangent plane, and as moves the plane tilts with it. Each one is a copy of a vector space in which arrows can be added and scaled, but there is no single, natural way to identify the plane at the north pole with the plane at the equator. This collection of planes, one attached at every point and varying continuously, is called the tangent bundle
A simpler example lives over a circle. Attach to every point of a circle a short segment, a copy of the real line (we draw only a piece of it). If all the segments stand upright, they sweep out a cylinder. If instead they turn slowly as we go round, so that after one full turn the segment has turned upside down, they sweep out a Möbius band. Look at either one near any point and you see the same thing — a little strip, a piece of circle times a piece of line. The difference is only global.
The cylinder is the trivial line bundle over the circle. The Möbius band is a line bundle over the circle too, and we are about to prove that it is not trivial. The tangent bundle of a surface is a bundle of rank
Local triviality is where the previous chapter comes in. Cover the base by open sets over which the bundle is a product, with coordinates chosen on each. On an overlap a fibre gets two coordinate systems, related by an invertible linear map an invertible matrix depending continuously on These transition functions satisfy on triple overlaps — a Čech cocycle condition, written multiplicatively. For a line bundle each is a nonzero number. For the Möbius band, covered by two arcs whose overlap has two pieces, we can take on one piece and on the other; for the cylinder, on both. Changing coordinates on the pieces changes by a coboundary, exactly as in §4.7 Sheaves and Čech Cohomology.
Sections: choosing a vector at every point
Here is a test that tells the cylinder from the Möbius band. Take a pencil and draw a line once around the band, crossing every fibre exactly once, without ever touching the core circle that runs down the middle. On the cylinder it is easy: draw a line parallel to the core. On the Möbius band, try it in the figure below. The line you are drawing has a name.
Every bundle has the zero section. The interesting question is the opposite one:
For a trivial bundle the answer is yes: take a constant nonzero vector in So whenever the answer is no, the bundle must be twisted — and the pencil test suggests that the Möbius band is the first example.
For line bundles the question is decisive: a line bundle has a nowhere-zero section exactly when it is trivial. (Given such a section every vector in the fibre over is for exactly one number and are coordinates making the bundle a product.) So the Möbius band really is twisted, and in a moment we will see that it is the only twisted line bundle over the circle.
There is a cohomology class that tells them apart. Only the sign of a transition function matters topologically (a positive number can be slid continuously to but never through to a negative one), so a line bundle gives a Čech cocycle of signs and its class lives in
For the Möbius band, is the nonzero element of — the very class you met as the orientation sheaf’s obstruction in §4.7 Sheaves and Čech Cohomology. In fact real line bundles over a reasonable space correspond exactly to elements of (Hatcher 2017, Prop. 3.10): there are over a circle (the cylinder and the Möbius band), over a torus ( and only the trivial one over a sphere.
Combing a hairy ball
Now take the tangent bundle of the sphere. A nowhere-zero section would be a way to comb hair on a ball with no cowlick and no bald spot. In §3.5 Maps, Invariance, and First Triumphs you proved, using homology, that this is impossible: every continuous tangent vector field on vanishes somewhere. On a torus, by contrast, you can comb the hair flat around the hole. Here is the picture. In the next two sections we find out what the zeros of a field must add up to, counted properly, and why.
The index of a zero
A zero of a vector field can look like many things: a source (everything flows out), a sink (everything flows in), a centre (everything circulates), a saddle (flowing in along one line and out along another). To measure a zero by a single number, draw a small loop around it that encloses no other zero, walk once around the loop anticlockwise, and watch the arrow of the field. It comes back to where it started, so it has turned a whole number of times: the winding number of §2.3 Homotopy, now applied to the direction of the field.
Walking around a source, the arrow always points away from the centre, so it turns once with you: index The same happens for a sink (the arrow points inwards and still turns once) and for a centre (the arrow points sideways, and again turns once). At a saddle the arrow turns once the other way: index There are zeros of index (a dipole, like the field lines of a bar magnet seen from far away) and (a monkey saddle), and of every other integer. The index does not depend on the size of the loop: shrinking it changes the winding number continuously, and an integer that changes continuously does not change.
The playground reveals the key additivity property. A big loop around several zeros has winding number equal to the sum of their indices: cut the region inside the loop into small pieces, each around one zero, and the turnings along the interior cuts cancel because each cut is walked twice, in opposite directions. It also reveals something stranger. Think of the plane as a sphere with one point missing — stereographic projection from §2.4 Manifolds and Surfaces — and fill that point back in. The field acquires one more zero, at infinity, and its index is where is the sum of the finite indices. However you arrange the zeros, the total on the sphere is
Poincaré–Hopf: the zeros know the shape
Add up the indices in Figure 4.8.2. On the sphere every field comes to spinning about an axis gives two centres, flowing from pole to pole gives a source and a sink, the dipole has a single zero of index On the torus the total is the field around the hole has no zeros at all, and the wind blowing across the doughnut has a source and a sink on the outside and two saddles on the inside, Two surfaces, two totals, and neither budges however the hair is combed. You have seen both numbers before: and
(The same statement holds for closed manifolds of any dimension, with the index defined using spheres instead of loops.) Henri Poincaré proved the theorem for surfaces (Poincaré 1885), and Heinz Hopf proved it in every dimension (Hopf 1927); the place to read about it is Milnor (1965, §6), a slim classic.
The theorem makes predictions about surfaces we have not combed. A double torus has Stand it on end and let water run down it: there is a source at the top, a sink at the bottom and four saddles, one at the top and bottom of each hole, and indeed
Why it is true: a sketch
A proof has two parts. First, the total index is the same for every vector field on Two fields can be deformed into each other; during the deformation the zeros move, and they can collide, merge or split, but the total index never jumps — a loop surrounding all the zeros involved in a collision has a winding number that changes continuously, hence not at all. (Making this airtight takes care, but this is the heart of it.) Second, compute the total for one cleverly chosen field. Triangulate (§2.5 Simplicial Complexes) and let everything flow away from the vertices, along the edges to the midpoints of the edges, and then into the middles of the triangles.
This field has one zero at each vertex with index one at each edge with index and one at each face with index So its total index is which is by §2.6 The Euler Characteristic. By the first part, every field has the same total. That is Poincaré–Hopf.
The Euler class
Poincaré–Hopf says that the number “sum of indices of a section” does not depend on the section. Nothing in that idea needs the planes to be tangent planes: any family of planes over a surface has sections, their zeros have indices, and the same count can be made. The total is the first example of a characteristic class, and it turns the question “is there a nowhere-zero section?” into arithmetic. Here it is for oriented bundles of rank over a closed oriented surface (the tangent bundle of an orientable surface is one).
Two more descriptions show why deserves to be a cohomology class. First, it is an obstruction cocycle: try to build a nowhere-zero section one cell at a time. Over the vertices and edges of a triangulation it is easy. Over each triangle, the section is already defined on the boundary loop, and it extends without zeros across the triangle exactly when its winding number around that loop is Those winding numbers form a -cochain, in fact a -cocycle, and its class is Second, by Poincaré duality (§4.6 Poincaré Duality), the Euler class is the cohomology class dual to the zero set of a generic section, counted with signs. In every dimension, an oriented bundle of rank has an Euler class in it is the first obstruction to a nowhere-zero section, it is dual to the zeros of a generic section, and for the tangent bundle of a closed oriented manifold it adds up to (Milnor & Stasheff 1974, §9, Cor. 11.12, Thm 12.5).
Curvature from scratch
The second half of our theme starts with a more elementary notion. How curved is a curve?
Curves: turning per unit length
Drive along a road. On a straight stretch your steering wheel is centred; on a bend you turn it. The curvature of a curve at a point is the rate at which its direction turns, per unit of distance travelled: where is the angle of the tangent direction and is arc length. A straight line has A circle of radius turns through radians in a length of so small circles are very curved, huge ones nearly straight. For a plane curve we keep a sign: positive for left turns, negative for right.
Add up the curvature all the way around a closed curve and you get the total angle through which its tangent turns, Since the direction returns to where it started, the total is a whole number of full turns.
This is a one-dimensional preview of Gauss–Bonnet: a local quantity, adds up to a topological one. For a polygon, all the turning happens at the corners, and the theorem becomes a school fact: the exterior angles of a convex polygon add up to
Surfaces: two curvatures and their product
At a point of a surface, slice the surface with planes that contain the normal line at Each slice is a curve through with its own curvature, the normal curvature in that direction (counted positive if the curve bends towards the chosen normal). As the slicing plane turns around the normal, the normal curvature varies between a largest value and a smallest the principal curvatures; Leonhard Euler showed, in a memoir written in 1763, that they occur in perpendicular directions (Euler 1767).
- Sphere of radius : every slice is a great circle, so
- Cylinder of radius : around the cylinder along it (a straight line); so A cylinder is a rolled-up sheet of paper, and curvature in only one direction does not count.
- Saddle (a mountain pass, or a Pringle): it curves up in one direction and down in the perpendicular one, so and
- Torus: the outer half is curved like a ball ( the inner half, around the hole, like a saddle ( and the top and bottom circles have
Flipping the normal changes the sign of both and so their product does not care which side is which: it makes sense even on a non-orientable surface. In 1827 Gauss discovered something much deeper about it.
“If a curved surface is developed upon any other surface whatever, the measure of curvature in each point remains unchanged.” — Gauss (1827, art. 12)
“Developed” means bent without stretching, as you can bend paper but not a ping-pong ball. Gauss’s Theorema Egregium (“remarkable theorem”) says that although we defined it by looking at the surface from outside, can be measured by an ant who lives in the surface and only measures lengths and angles there. It explains why a slice of pizza stiffens when you fold it across (once bent one way, forbids bending the other way too), and why no flat map of the Earth can be perfect: the sphere has the paper and no amount of bending without stretching can change that.
Triangles on curved surfaces
How could the ant measure With triangles. On a surface, the straightest possible paths are called geodesics; on a sphere they are arcs of great circles, like the routes of long-distance flights. A triangle whose sides are geodesics is a geodesic triangle. In the plane its angles add up to (180°). On a sphere they add up to more.
The symbol means: chop into tiny pieces, multiply the curvature at each piece by its area, and add up — the total curvature of Gauss wrote that this theorem, “if we mistake not, ought to be counted among the most elegant in the theory of curved surfaces” (Gauss 1827, art. 20). It is the local seed of everything that follows.
The Gauss–Bonnet theorem
Now cover a whole closed surface with geodesic triangles and add up Gauss’s formula over all of them. The right-hand sides add up to the total curvature of the surface. On the left, the angles that meet at each vertex fill a full turn, so all the angles together come to and the left-hand sides add up to A little counting, done in the proof below, turns that into The shape has dropped out. Needham (2021) gives four different geometric proofs of the result.
- Round sphere of radius and the area is so the total is
- Any deformed sphere — a potato, an egg, a dumbbell with a thin neck — also has total curvature exactly Where you add positive curvature by pulling out a bump, negative curvature appears around its base to compensate.
- Torus: the positive curvature of the outer half and the negative curvature of the inner half cancel exactly,
- Surface of genus : for the double torus,
The polyhedral version, proved
For surfaces made of flat triangles, all the curvature is concentrated at the vertices, and Gauss–Bonnet becomes exact arithmetic. At a vertex of a polyhedron, the triangles meeting there have angles adding up to less than (on a convex corner) or more (on a saddle-like corner).
A cube has three right angles at each corner, defect and eight corners: total René Descartes noticed, around 1630, that the total defect of every convex polyhedron is (in his units, eight right angles) (Richeson 2008). Here is the general statement, with its complete proof.
Nothing in the proof used the shape: only that the triangles are flat and fit together into a closed surface. The angle defect at a vertex, divided by the area around the vertex, is a good estimate of the Gaussian curvature there, and as the triangles get finer the sum of defects becomes the integral (Crane 2025, §5.5). Now play.
Watch the two bars under the figure. Pulling out a bump adds positive curvature at its tip and creates a ring of negative curvature around its base; the two changes cancel exactly, to the last decimal place. Only a change of topology — which no amount of pushing, pulling or twisting can make — could change the total.
Why curvature is a cohomology class
Here is the point of view that generalises. On an oriented surface the expression is a -form (§4.3 Differential Forms). On a surface every -form is closed, so it has a de Rham cohomology class in (§4.4 de Rham Cohomology). Changing the shape (the way lengths are measured) changes only by an exact form and by Stokes’ theorem an exact form integrates to zero over a closed surface. So the class of does not depend on the shape at all: it is the Euler class of the tangent bundle, and Gauss–Bonnet says
This idea — curvature, a local quantity, represents a characteristic class, a global one — is called Chern–Weil theory. In 1944 Shiing-Shen Chern gave an intrinsic proof of the Gauss–Bonnet formula for manifolds of every even dimension (Chern 1944), and in 1946 he introduced the characteristic classes of complex vector bundles that now bear his name (Chern 1946). The standard short account is the appendix on connections and curvature in Milnor & Stasheff (1974, App. C).
In higher dimensions Chern’s Gauss–Bonnet formula integrates a more complicated expression in the curvature, and it is natural to ask whether the sign of the curvature still decides the sign of as it does for surfaces: a sphere curves positively and has a surface of genus can be curved negatively everywhere and has
Characteristic classes
Follow the sphere through the chapter so far. Its number turned up as the Euler characteristic as the total index of every combing (Poincaré–Hopf), as the Euler class and as the total curvature divided by (Gauss–Bonnet). A count of cells, a count of cowlicks, a cohomology class and an integral: the theorems of this chapter say they are one invariant, the Euler class of the tangent bundle, which measures how the tangent planes twist as they are carried around the sphere. The Möbius band gave us a second invariant of the same kind, Both belong to a family.
| class | for | lives in | measures |
|---|---|---|---|
| Stiefel–Whitney | real bundles | orientability (the Möbius band) | |
| Stiefel–Whitney | real bundles | finer twisting; an oriented bundle has a spin structure exactly when | |
| Euler | oriented real bundles of rank | nowhere-zero sections; (hairy ball) | |
| Chern | complex line bundles | twisting of phases (monopoles, quantum Hall effect) | |
| Chern | complex bundles of rank | the top one, is the Euler class of the bundle seen as a real one | |
| Pontryagin | real bundles | for a closed 4-manifold, is three times the signature |
The higher classes and get no more than their row in this book; Milnor & Stasheff (1974, §4, §9, §14, §15) is the classic guide to all of them. We look more closely at the one that physics needs most,
Characteristic classes also forbid structures. A manifold is almost complex if each of its tangent spaces can be made into a complex vector space, smoothly from point to point; then its tangent bundle has Chern classes, and they must satisfy conditions that many manifolds fail. Among the spheres, only and pass. The 2-sphere is even a genuine complex manifold, the Riemann sphere, with complex coordinates that fit together. Whether is one was a question for almost eighty years.
Complex line bundles and the first Chern class
A complex line bundle has fibres that are copies of the complex numbers Its transition functions are nonzero complex numbers and topologically only their direction matters — a point of the unit circle, a phase. Over the sphere, cover by a northern patch and a southern patch each a disk, overlapping in a band around the equator. Over each disk the bundle is trivial (a disk is contractible), so the whole bundle is described by a single transition function on the band, which up to deformation is a map from the equator to the circle of phases, where is the longitude and is an integer: the number of times the phase winds around as you go once around the equator. It must be an integer because has to return to its starting value after a full turn.
The tangent bundle of the sphere, with each tangent plane regarded as a copy of (rotating by is multiplying by is a complex line bundle with Chern number — once more, And Chern–Weil theory says that can be computed from a curvature, just as Gauss–Bonnet computes a way of comparing phases in nearby fibres (a connection) has a curvature -form and is the Chern number. We have not defined connections in this book; think of as a curvature density, like Physicists know it better as a magnetic field.
Monopoles, Berry phases and topological matter
This section is a guided tour rather than a course, with simplifications flagged as we go. All three stories are about complex line bundles over the two surfaces we know best, the sphere and the torus, and in each of them a Chern number becomes something nature measures.
Dirac’s monopole and the quantisation of charge
A magnet always has two poles; cut it in half and you get two smaller magnets. But nothing in the equations of electromagnetism forbids an isolated magnetic pole, a magnetic monopole, whose field points straight out like the electric field of a point charge: Away from the monopole has zero divergence, so as a -form it is closed — exactly the non-exact form on that you met in §4.4 de Rham Cohomology.
Quantum mechanics describes magnetism not by but by a vector potential with the potential is what shifts the phase of a charged particle’s wavefunction. But no such can exist on a whole sphere around the monopole. If it did, Stokes’ theorem would give (a closed surface has no boundary), contradicting the flux In 1931 Paul Dirac found a way around this (Dirac 1931). In 1975 Tai Tsun Wu and Chen Ning Yang gave it its cleanest form (Wu & Yang 1975), with two patches: use one potential on the northern patch and another, on the southern patch. On the overlap, the two describe the same field, so they differ by a gradient, (here is a function, not the Euler characteristic) and the wavefunctions of a particle of charge in the two descriptions differ by the phase (in units where the speed of light is
A wavefunction must have a single value at each point, so the phase must come back to itself after one turn around the equator. That forces This is Dirac’s quantisation condition, and it is exactly the statement that the transition function is a map of winding number the monopole is a complex line bundle over the sphere with Chern number Now follow the consequence. If a single magnetic monopole exists anywhere in the universe, every electric charge must be a whole multiple of electric charge is quantised, as it is observed to be. No monopole has ever been found, so the explanation stays conditional, and physicists still hunt for monopoles in cosmic rays and in particle colliders.
Berry’s phase
Take a quantum system that depends on some external knobs — a spin sitting in a magnetic field whose direction you can turn. Turn the knobs slowly around a loop and back. The system ends where it started, except for a phase, and in 1984 Michael Berry showed that part of this phase is geometric: it depends only on the loop of knob settings, not on how fast you went around (Berry 1984). For a spin- particle it is half the solid angle swept out by the direction of the field. Barry Simon recognised in 1983, having seen Berry’s work before publication, that this phase is the holonomy of a connection on a complex line bundle over the space of knob settings: the phase a fibre picks up when it is carried around a loop (Simon 1983). Its curvature, the Berry curvature, integrates over a closed surface of settings to times a Chern number. For the spin it is the field of a monopole of strength sitting at the setting where the field vanishes: Dirac’s monopole, reappearing in the space of parameters.
The quantum Hall effect and topological matter
In 1980 Klaus von Klitzing measured the Hall resistance of a thin layer of electrons in a strong magnetic field at very low temperature and found plateaus at the values with a whole number (von Klitzing et al. 1980), so precisely reproducible that the effect now serves as the international standard of electrical resistance. In 1982 David Thouless, Mahito Kohmoto, Peter Nightingale and Marcel den Nijs (TKNN) explained the integers for electrons in a crystal (Thouless et al. 1982), and the following year Simon recognised their formula as a Chern number. The possible momenta of an electron in a crystal form a torus (the Brillouin zone), each filled band of electron states is a complex line bundle over that torus, and the Hall conductance is where is the Chern number of the -th band (signs depend on conventions). In units of a number read off a laboratory instrument is a sum of characteristic numbers.
In 1988 Duncan Haldane showed that a suitably designed crystal could have bands with nonzero Chern number even without an overall magnetic field — a Chern insulator (Haldane 1988). Since about 2005, related invariants (not Chern numbers, but -valued cousins suited to materials with time-reversal symmetry) have been found and observed in the materials called topological insulators, which insulate in their interior but conduct along their surfaces (Hasan & Kane 2010). In 2016 the Nobel Prize in Physics went to Thouless, Haldane and J. Michael Kosterlitz “for theoretical discoveries of topological phase transitions and topological phases of matter” (Nobel Prize 2016).
Exercises
Summary
Further reading
- Visual Differential Geometry and Forms — Tristan Needham (Princeton University Press, 2021)A picture-first account of curvature, the Theorema Egregium, geodesic triangles and Gauss–Bonnet, written for readers who want to see why. Undergraduate level.
- General Investigations of Curved Surfaces — Carl Friedrich Gauss (1827), translated by J. C. Morehead and A. M. Hiltebeitel (1902) freeGauss’s own paper: the measure of curvature, the Theorema Egregium (article 12) and the angle-excess theorem (article 20). Surprisingly readable, and free.
- Topology from the Differentiable Viewpoint — John Milnor (1965; Princeton Landmarks, 1997)Sixty-odd pages of perfect exposition: degree, the index of a zero and the Poincaré–Hopf theorem (§6). Advanced undergraduate level.
- Curvature on triangle meshes, angle defects and the discrete Gauss–Bonnet theorem (§5.5) — the mathematics behind the sculptor figure — with many illustrations and coding exercises.
- Vector bundles from the ground up, with Stiefel–Whitney, Chern and Euler classes and the classification of line bundles. Graduate level, free, and in the same friendly voice as Hatcher’s Algebraic Topology.
- Characteristic Classes — John Milnor and James Stasheff (Princeton, 1974)The classic reference for Stiefel–Whitney, Euler, Chern and Pontryagin classes. Graduate level, famously clear.
- Differential Forms in Algebraic Topology — Raoul Bott and Loring Tu (Springer GTM 82, 1982)Euler and Thom classes, Chern classes via the splitting principle, and the Čech–de Rham viewpoint of the previous chapter. First-year graduate level.
- Short notes explaining, among other things, why the Euler class is Poincaré dual to the zero set of a section.
- Geometry, Topology and Physics — Mikio Nakahara (2nd edition, CRC Press)The standard bridge for physicists: bundles, connections, characteristic classes, the Dirac monopole and Berry’s phase.
- The Geometry of Physics — Theodore Frankel (3rd edition, Cambridge University Press, 2011)A rich, physically motivated tour of forms, curvature, bundles and characteristic classes, including monopoles and gauge fields.
- Quantised singularities in the electromagnetic field — Paul Dirac (Proc. R. Soc. A 133, 1931)The paper in which the magnetic monopole and the quantisation of electric charge first appear.
- Holonomy, the Quantum Adiabatic Theorem, and Berry’s Phase — Barry Simon (Phys. Rev. Lett. 51, 1983)Four pages that identify Berry’s phase as holonomy and the TKNN integers as Chern numbers. Research level, but short.
- Colloquium: Topological insulators — M. Zahid Hasan and Charles L. Kane (Rev. Mod. Phys. 82, 2010) freeThe standard review of the Z/2 cousins of the Chern number and the materials that carry them, written for physicists outside the field.