The Gauss-Bonnet Theorem

The Gauss-Bonnet theorem is one of the most profound results in mathematics, connecting local differential geometry (curvature) to global topology (Euler characteristic). It shows that the total curvature of a surface is a topological invariant—unchanged by any smooth deformation of the surface.

Historical Context

The theorem has a long history. Gauss proved the case for geodesic triangles on surfaces in his Disquisitiones (1827), showing that the angular excess of a geodesic triangle equals its integral curvature. Pierre Ossian Bonnet extended this to arbitrary compact surfaces in 1848.

The higher-dimensional generalization was achieved by Allendoerfer and Weil (1943) and independently by Chern (1944). Chern's proof was particularly influential, as it introduced methods that would lead to the theory of characteristic classes and the Chern-Gauss-Bonnet theorem.

The Gauss-Bonnet theorem can be viewed as the simplest case of the Atiyah-Singer index theorem and serves as a bridge between differential geometry, algebraic topology, and theoretical physics.

Derivation 1: Gaussian Curvature

For a 2-dimensional Riemannian manifold, the Gaussian curvature $K$ at a point is the product of the principal curvatures $\kappa_1$ and $\kappa_2$ (for embedded surfaces), or intrinsically:

$K = \frac{R_{1212}}{g_{11}g_{22} - g_{12}^2} = \frac{R_{1212}}{\det(g)}$

Gauss's Theorema Egregium

Gauss's "remarkable theorem" states that $K$ depends only on the metric $g_{ij}$ and its first two derivatives—it is an intrinsic invariant. For a metric $ds^2 = E\,du^2 + 2F\,du\,dv + G\,dv^2$:

$K = \frac{1}{2\sqrt{EG-F^2}}\left[\frac{\partial}{\partial v}\frac{E_v - F_u}{\sqrt{EG-F^2}} + \frac{\partial}{\partial u}\frac{F_v - G_u}{\sqrt{EG-F^2}}\right]$

Examples

$\text{Sphere } S^2(R): \quad K = \frac{1}{R^2} > 0$

$\text{Plane } \mathbb{R}^2: \quad K = 0$

$\text{Hyperbolic plane } \mathbb{H}^2: \quad K = -\frac{1}{R^2} < 0$

$\text{Torus: } K \text{ varies (positive outside, negative inside, total = 0)}$

Physical intuition: Gaussian curvature measures how much a surface differs from being flat. A surface with $K > 0$ (sphere) cannot be flattened without tearing; $K = 0$ (cylinder, cone) can be unrolled to a plane; $K < 0$ (saddle) curves oppositely in different directions.

Derivation 2: The Euler Characteristic

The Euler characteristic $\chi(M)$ is a topological invariant that can be computed from any triangulation of $M$:

$\chi(M) = V - E + F$

where $V$, $E$, $F$ are the numbers of vertices, edges, and faces. This is independent of the triangulation—a deep topological fact.

Classification of Surfaces

For a closed orientable surface of genus $g$ (number of handles):

$\chi(\Sigma_g) = 2 - 2g$

$g = 0 \text{ (sphere):} \quad \chi = 2$

$g = 1 \text{ (torus):} \quad \chi = 0$

$g = 2 \text{ (double torus):} \quad \chi = -2$

Euler's polyhedron formula (1758): For convex polyhedra,$V - E + F = 2$. This was the first topological invariant ever discovered and marks the birth of topology. It holds for any polyhedron homeomorphic to the sphere.

Derivation 3: The Gauss-Bonnet Theorem

For a compact oriented 2-manifold $M$ without boundary:

$\boxed{\int_M K\,dA = 2\pi\,\chi(M)}$

Proof Sketch

Triangulate $M$ into geodesic triangles $\Delta_k$. For each triangle with interior angles $\alpha_i, \beta_i, \gamma_i$, the local Gauss-Bonnet gives:

$\int_{\Delta_k} K\,dA = (\alpha_k + \beta_k + \gamma_k) - \pi$

Summing over all $F$ triangles:

$\int_M K\,dA = \sum_{k=1}^F (\alpha_k + \beta_k + \gamma_k) - \pi F$

At each interior vertex, the angles sum to $2\pi$. Each edge is shared by two triangles. Each triangle contributes 3 edges, so $3F = 2E$. The total angle sum is $2\pi V$. Therefore:

$\int_M K\,dA = 2\pi V - \pi F = 2\pi V - 2\pi E + 2\pi F = 2\pi(V - E + F) = 2\pi\chi(M)$

Remarkable consequence: No matter how you deform a sphere (stretch, compress, wrinkle), the total curvature always equals $4\pi$. Regions of positive curvature must exactly compensate regions of negative curvature to maintain this topological constraint.

Derivation 4: Gauss-Bonnet with Boundary

For a compact oriented surface $M$ with smooth boundary $\partial M$:

$\int_M K\,dA + \oint_{\partial M} \kappa_g\,ds = 2\pi\,\chi(M)$

where $\kappa_g$ is the geodesic curvature of the boundary. If the boundary has corners with exterior angles $\theta_i$:

$\int_M K\,dA + \oint_{\partial M} \kappa_g\,ds + \sum_i \theta_i = 2\pi\,\chi(M)$

Application: Geodesic Polygons on $S^2$

For a geodesic polygon on the unit sphere ($K = 1$, $\kappa_g = 0$ along edges), with interior angles $\alpha_1, \ldots, \alpha_n$ and exterior angles $\theta_i = \pi - \alpha_i$:

$\text{Area} = \sum_{i=1}^n \alpha_i - (n-2)\pi$

This is the spherical excess formula. For a geodesic triangle with angles summing to $\pi + \epsilon$, the area equals $\epsilon$.

Navigation application: Navigators have used the spherical excess formula for centuries. On Earth (radius 6371 km), a triangle with vertices at the North Pole, Quito (Ecuador), and a point on the prime meridian at the equator has area$\frac{1}{8}$ of the total surface, confirming the formula.

Derivation 5: The Generalized Gauss-Bonnet (Chern-Gauss-Bonnet)

For a compact oriented Riemannian manifold $M^{2n}$ of even dimension $2n$ without boundary, the Chern-Gauss-Bonnet theorem states:

$\boxed{\int_{M^{2n}} \text{Pf}(\Omega) = (2\pi)^n\,\chi(M)}$

where $\text{Pf}(\Omega)$ is the Pfaffian of the curvature 2-form$\Omega$. The Pfaffian is defined for antisymmetric matrices by $\text{Pf}(A)^2 = \det(A)$.

The 4-Dimensional Case

In dimension 4, the integrand is the Euler density:

$e_4 = \frac{1}{32\pi^2}\epsilon^{ijkl}R_{ijmn}R_{kl}{}^{mn}$

which can be rewritten using the Riemann tensor decomposition:

$\chi(M^4) = \frac{1}{8\pi^2}\int_{M^4}\left(|W|^2 - 2|E|^2 + \frac{R^2}{24}\right)dV$

where $W$ is the Weyl tensor, $E$ the traceless Ricci tensor, and $R$ the scalar curvature.

In physics: The 4D Euler density appears in the gravitational action as the Gauss-Bonnet term $\mathcal{G} = R^2 - 4R_{\mu\nu}R^{\mu\nu} + R_{\mu\nu\rho\sigma}R^{\mu\nu\rho\sigma}$. In 4D, this is topological (doesn't affect equations of motion), but in higher-dimensional Lovelock gravity, it contributes dynamical equations.

Interactive Simulation

This simulation verifies the Gauss-Bonnet theorem on the sphere and torus, computes the Euler characteristic for various surfaces, demonstrates the spherical excess formula for geodesic polygons, and shows numerical convergence of the curvature integral to $4\pi$ on $S^2$.

Gauss-Bonnet Theorem: Curvature, Euler Characteristic & Topology

Python
script.py185 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server

Summary

Gaussian Curvature

An intrinsic measure of curvature for 2-manifolds. Positive on spheres, zero on planes and cylinders, negative on saddle surfaces.

Euler Characteristic

The topological invariant $\chi = V - E + F = 2 - 2g$ for orientable surfaces. Computed from any triangulation and invariant under homeomorphism.

Gauss-Bonnet Theorem

The total Gaussian curvature $\int K\,dA = 2\pi\chi$ is a topological invariant. This is the paradigmatic result connecting local geometry to global topology.

Chern-Gauss-Bonnet

The generalization to higher even dimensions, using the Pfaffian of the curvature form. The 4D version connects to the Gauss-Bonnet gravity term in Lovelock theories.