The Gauss–Bonnet theorem
Statement
Let \(M\) be a compact, orientable, boundaryless smooth surface equipped with a Riemannian metric \(g\), let \(K:M\to\mathbb{R}\) be its Gaussian curvature, let \(dA\) be the area form of \(g\), and let \(\chi(M)\) be the Euler characteristic of \(M\) (a purely topological invariant, independent of \(g\)). Then \[ \iint_M K\,dA \;=\; 2\pi\,\chi(M). \] More generally, if \(R\subseteq M\) is a compact region whose boundary \(\partial R\) is a finite union of piecewise-smooth simple closed curves parametrised by arc length, with geodesic curvature \(\kappa_g\) along the smooth arcs and exterior angles \(\varepsilon_1,\dots,\varepsilon_k\) at the corners, then \[ \iint_R K\,dA \;+\; \int_{\partial R}\kappa_g\,ds \;+\; \sum_{i=1}^k \varepsilon_i \;=\; 2\pi\,\chi(R). \] The closed case above is the special case \(\partial R=\varnothing\).
Why it matters
Gauss–Bonnet is the bridge between local differential-geometric data (curvature, a second-order, metric-dependent quantity computable from a single point's neighbourhood) and global topological data (Euler characteristic, a combinatorial invariant insensitive to any smooth deformation of the metric). It says that however wildly you bend a surface — stretching curvature positive here, negative there — the total signed curvature is locked to the topology and cannot change under any deformation that preserves the manifold's homeomorphism type.
It is the prototype for the entire family of index theorems (Chern–Gauss–Bonnet in higher dimensions, Riemann–Roch, Atiyah–Singer) that equate an analytic integral to a topological count, and it is the first place a student sees that curvature is not just local shape information but a conserved topological quantity in disguise.
Hypotheses
Proof
Result
Reading. The total Gaussian curvature of a closed orientable surface, however the metric bends it, is fixed by the surface's topology alone: \(2\pi\) times its Euler characteristic. Curvature can be redistributed — made more positive somewhere, more negative elsewhere — by deforming the metric, but the total is a rigid conserved quantity attached to the homeomorphism type of \(M\), not to \(g\).
Scope. Applies to any compact orientable Riemannian 2-manifold without boundary; a boundary version with the extra terms \(\int_{\partial R}\kappa_g\,ds+\sum\varepsilon_i\) applies to compact regions/surfaces with piecewise-smooth boundary. It does not by itself extend to non-compact surfaces, and the non-orientable case requires reading \(K\,dA\) as a density integral. Higher-dimensional even-dimensional analogues exist (Chern–Gauss–Bonnet, via the Pfaffian of the curvature form) but are a strictly stronger, separate theorem, not a corollary of this one.
Corollaries & converses
- Sign constraint: if \(M\) is a closed orientable surface admitting a metric with \(K\gt 0\) everywhere, then \(\chi(M)\gt 0\), forcing \(M\cong S^2\) (the only closed orientable surface with positive Euler characteristic). No metric of everywhere-positive curvature exists on the torus or any higher-genus surface.
- Genus formula: for a closed orientable surface of genus \(g\), \(\chi=2-2g\), so \(\iint_M K\,dA = 4\pi(1-g)\); in particular the torus (\(g=1\)) always has total curvature exactly \(0\), whatever metric it carries.
- Existence of geodesic triangles with prescribed angle excess/defect: on a surface of everywhere-positive (resp. negative) curvature, every geodesic triangle has angle sum \(\gt \pi\) (resp. \(\lt \pi\)) — an immediate reading of the local formula in Step 5, independent of the global theorem.
- Converse fails in the strong sense: the identity \(\iint_M K\,dA = 2\pi\chi(M)\) holding for a specific metric does not determine \(\chi(M)\) uniquely from the integral value alone without independently knowing the integral is being taken over that particular \(M\); more importantly, knowing only the number \(\iint K\,dA\) for an unspecified compact surface does not tell you which surface it is, since the theorem is an equality of two already-determined quantities, not an implication that can be run backwards to deduce topology from an unrelated curvature computation on an unknown space.
- Rigidity converse (false as stated): the theorem does not assert, nor is it true, that every value of \(\chi\) forces a unique curvature distribution — only the total integral is fixed; the pointwise function \(K\) remains almost entirely free (subject only to this one integral constraint), e.g. a genus-2 surface can be given metrics with wildly different curvature functions, all integrating to \(4\pi(1-2)=-4\pi\).
Fails without
- Compactness dropped: the hyperbolic plane \(\mathbb{H}^2\) (upper half-plane, curvature \(K\equiv -1\)) is non-compact with infinite area, so \(\iint_{\mathbb{H}^2} K\,dA = -\infty\), while topologically \(\mathbb{H}^2\cong\mathbb{R}^2\) would suggest \(\chi=1\); there is no finite identity to violate or satisfy — the left side simply diverges.
- Boundary term omitted: the flat unit disc \(D\subseteq\mathbb{R}^2\) has \(K\equiv 0\) so \(\iint_D K\,dA=0\), yet \(\chi(D)=1\) gives \(2\pi\chi(D)=2\pi\neq 0\); the closed-surface formula fails outright on a surface with boundary unless the boundary integral \(\int_{\partial D}\kappa_g\,ds=2\pi\) (curvature of the unit circle integrated over its length \(2\pi\)) is included.
- Orientability dropped, form read naively: attempting to integrate \(K\) against a chosen local orientation on the Möbius band or \(\mathbb{RP}^2\) without passing to the density interpretation gives sign-dependent, chart-dependent "answers" that do not match \(2\pi\chi\) for either sign choice, because \(dA\) as a genuine 2-form does not exist globally on a non-orientable surface.
- Non-Riemannian ("curvature" undefined): on a merely topological or piecewise-linear surface with no smooth metric structure specified, \(K\) has no meaning and there is nothing on the left-hand side to compute; the discrete analogue (Descartes' theorem on angular defect) is a genuinely different, though closely related, statement and does not follow from this theorem without its own separate proof.
Common errors
- Applying the closed-surface formula \(\iint K\,dA=2\pi\chi\) directly to a region with boundary (e.g. a hemisphere, a geodesic triangle) and forgetting the \(\int\kappa_g\,ds\) and exterior-angle terms, which are not automatically zero.
- Confusing \(\chi(M)\) with genus \(g\) directly, forgetting the factor \(\chi=2-2g\) for closed orientable surfaces (and using the wrong formula, e.g. \(\chi=1-g\), entirely for non-orientable surfaces where \(\chi=2-k\) with \(k\) crosscaps).
- Treating "total curvature is topological" as meaning \(K\) itself is constant or forced to have one sign; only the integral is constrained, not the pointwise function.
- Using the Euclidean angle-sum-equals-\(\pi\) fact as if it were a hypothesis rather than the \(K\equiv 0\) special case of Step 5's local formula.
- Forgetting that the triangles in the triangulation used in the proof must be geodesic (sides are geodesics) for the boundary geodesic-curvature term to vanish in Step 3–5; using an arbitrary (non-geodesic) triangulation breaks the local identity used at each face.
- Sign errors in the exterior angle \(\varepsilon_i=\pi-\alpha_i\) versus interior angle \(\alpha_i\), especially at reflex/concave corners of a boundary curve.
Discussion
The theorem is named for Gauss's 1827 Disquisitiones generales circa superficies curvas, where the local formula for a geodesic triangle (Step 5 above) first appears as a striking corollary of the Theorema Egregium — Gauss's own discovery that \(K\) is an intrinsic quantity, computable from the metric alone without reference to any ambient embedding. The full global statement, unifying this with Euler's polyhedral formula \(V-E+F=2\) via triangulation, is due to Pierre Ossian Bonnet (1848), whose contribution was precisely the boundary term and the reduction of the closed case to a triangulated sum — the synthesis credited jointly ever since.
The proof given above via Cartan's moving frames and structure equations is the modern (post-1920s) formulation; it makes transparent exactly which two ingredients are doing the work: a purely local/analytic one (Stokes' theorem applied to the connection form, which is where \(K\) enters) and a purely global/topological one (the Umlaufsatz, and separately the combinatorial identity \(V-E+F=\chi\)). Seeing curvature and topology meet at the single equality \(\oint\omega_{12}=-\iint K\,dA\) is the heart of the theorem; everything else is bookkeeping to globalise it.
Gauss–Bonnet is the genus-2 (real, 2-dimensional) case of a much larger phenomenon: the Chern–Gauss–Bonnet theorem expresses the Euler characteristic of any even-dimensional closed Riemannian manifold as the integral of a curvature polynomial (the Pfaffian of the curvature form), and index theorems more generally (Atiyah–Singer) express analytic indices of elliptic operators as topological integrals in exactly this spirit. The theorem is also the geometric engine behind the classification of constant-curvature closed surfaces: since \(\iint K\,dA=2\pi\chi\) and constant \(K=c\) gives \(cA=2\pi\chi\) with \(A\gt 0\), the sign of \(c\) is forced to match the sign of \(\chi\), which is why the sphere (\(\chi=2\)) alone carries constant positive curvature, the torus (\(\chi=0\)) alone carries flat metrics, and every genus \(g\geq 2\) surface (\(\chi\lt 0\)) alone carries constant negative (hyperbolic) curvature — the uniformisation theorem's topological shadow.
Common misconception. Students often read the theorem as saying curvature is topologically determined, when only its total integral is. A genus-2 surface can be given a metric that is positively curved on a small cap and negatively curved elsewhere, provided the total still integrates to \(-4\pi\); Gauss–Bonnet is a single scalar constraint on an infinite-dimensional space of possible curvature functions, not a rigidity theorem pinning down \(K\) pointwise. A second common misconception is treating the local formula (Step 5, for a single geodesic triangle) as if it were already the full theorem; it is the seed, but the passage to a closed surface genuinely requires triangulating and invoking Euler's formula, which is Bonnet's contribution.
Worked examples
Reading. Total curvature of any round sphere is \(4\pi\), independent of its radius — a first, minimal check that the theorem's right-hand side does not care how "curved" \(M\) is metrically, only what shape it is topologically.
Reading. The positive curvature on the torus's outer rim is guaranteed, by topology alone, to be exactly cancelled by the negative curvature on its inner rim — a fact that would otherwise require the explicit calculus of Step 2 to see, for this shape, and would need to be redone entirely for any other embedding or metric were it not for the theorem.
Problems
- A geodesic triangle on a sphere of radius \(1\) has three right angles (an "octant" triangle, one-eighth of the sphere). Verify the local Gauss–Bonnet formula (Step 5) for this triangle directly.
Solution
Angle sum \(=\alpha+\beta+\gamma=\pi/2+\pi/2+\pi/2=3\pi/2\), so angle excess \(=3\pi/2-\pi=\pi/2\). The triangle is exactly one octant of the unit sphere, whose total area is \(4\pi\), so its area is \(4\pi/8=\pi/2\). Since \(K\equiv 1\) on the unit sphere, \(\iint_\Delta K\,dA=\pi/2\), matching the angle excess \(\pi/2\) exactly, confirming Step 5. - Compute \(\iint_M K\,dA\) for a closed orientable genus-\(3\) surface, for any Riemannian metric on it.
Solution
\(\chi=2-2g=2-6=-4\), so by the theorem \(\iint_M K\,dA=2\pi\chi=-8\pi\), regardless of the metric chosen. - A flat cone is formed by cutting a wedge of angle \(\theta_0\) (where \(0\lt\theta_0\lt2\pi\)) out of the Euclidean plane and gluing the two straight edges together; the resulting surface is flat (\(K=0\)) away from the apex, but carries a curvature singularity there. Using the boundary version of Gauss–Bonnet on the disc \(R\) of geodesic radius \(\rho\) about the apex (excluding the apex itself, so \(K\equiv0\) on \(R\)), find the "concentrated curvature" that must be assigned to the apex for consistency with a closed cone of total angle \(2\pi-\theta_0\) capped off smoothly, i.e. find \(\lim_{\rho\to 0}\left(2\pi-\int_{\partial R}\kappa_g\,ds\right)\).
Solution
The boundary circle of radius \(\rho\) has ordinary Euclidean length \((2\pi-\theta_0)\rho\) (since the total angle around the apex is \(2\pi-\theta_0\) after removing the wedge), and being a flat circle it has geodesic curvature \(\kappa_g=1/\rho\) at every point, so \(\int_{\partial R}\kappa_g\,ds=\frac{1}{\rho}\cdot(2\pi-\theta_0)\rho=2\pi-\theta_0\), independent of \(\rho\). With \(K\equiv 0\) on \(R\) (topologically a disc, \(\chi(R)=1\), no corners so no exterior-angle terms), the boundary Gauss–Bonnet formula requires \(0+(2\pi-\theta_0)+0=2\pi\chi(R)=2\pi\), which only balances if a curvature "mass" of exactly \(\theta_0\) is concentrated at the excised apex. This recovers the discrete/singular Gauss–Bonnet principle: the apex carries concentrated curvature equal to its angle deficit \(\theta_0\). - (Descartes' theorem, discrete analogue) A cube has \(8\) vertices, at each of which three right-angle faces meet, so the total face-angle at each vertex is \(3\times\pi/2=3\pi/2\), giving an angular defect (deficit from \(2\pi\)) of \(2\pi-3\pi/2=\pi/2\) per vertex. Sum the angular defects over all vertices and compare with \(2\pi\chi(\text{cube})\).
Solution
Total defect \(=8\times\pi/2=4\pi\). The cube's boundary is topologically a sphere, \(\chi=2\), and \(2\pi\chi=4\pi\). The two match: this is the discrete (polyhedral) form of Gauss–Bonnet, with vertex angular defect playing the role of concentrated curvature, exactly analogous to Problem 3's cone apex, summing correctly to \(2\pi\chi\) of the polyhedron's underlying topological sphere — Descartes' theorem on angular defect, historically prior to and a discrete shadow of the smooth theorem. - Show, using Gauss–Bonnet, that the torus \(T^2\) admits no Riemannian metric of strictly positive Gaussian curvature everywhere (\(K\gt 0\) at every point).
Solution
Suppose for contradiction some metric on \(T^2\) had \(K(p)\gt 0\) for every \(p\in T^2\). Since \(T^2\) is compact, \(dA\) is a genuine positive area form with \(\iint_{T^2}dA=\text{Area}(T^2)\gt 0\) finite, and \(K\gt 0\) everywhere pointwise forces the integral \(\iint_{T^2}K\,dA\) to be strictly positive (a continuous strictly-positive function integrated against a finite positive measure on a compact space is strictly positive). But Gauss–Bonnet forces \(\iint_{T^2}K\,dA=2\pi\chi(T^2)=2\pi\cdot 0=0\), a contradiction (\(0\) cannot equal a strictly positive number). Hence no such metric exists on the torus; more generally the identical argument rules out everywhere-positive curvature on any closed orientable surface with \(\chi\leq 0\), i.e. every genus \(g\geq 1\) surface.