Every hole has a best flow round it, the one with the least energy. Let heat flow smooth any flow on a surface and watch it settle on that harmonic form, as Hodge proved it always does
A hole can be measured by many different flows: add any gradient and the periods do not change. Among all of them there is exactly one that is smoothest, with the least energy and no sources, sinks or swirls anywhere. These harmonic forms are the heart of Hodge’s theory, and heat flow finds them.
Press Play and watch the tangle of arrows calm down while the energy falls to its floor and the periods stay put. Click the surface to add a bump, or start with swirl as well.
The Laplacian on flows. A flow on a surface is a 1-form ω. Its derivative dω measures swirl, and its co-derivative δω (the adjoint of d for the metric) measures sources and sinks. The Hodge Laplacian is Δ = dδ + δd. It is symmetric and never negative: ⟨Δω, ω⟩ = ‖dω‖² + ‖δω‖². So Δω = 0 exactly when dω = 0 and δω = 0, when the flow has neither swirl nor sources. Such a flow is called harmonic.
Heat flow. The heat equation ∂ω/∂t = −Δω damps each eigen-component of ω with eigenvalue λ by e−λt. Components with large λ (fine wrinkles) vanish almost at once, components with small λ linger, and the λ = 0 part, the harmonic forms, is left untouched. Because d commutes with Δ, a closed flow stays closed, and what heat flow subtracts, ∫ dδω dt, is a gradient: so the flow never leaves its class, its periods never change, and its limit is the harmonic form in that class. The demo uses implicit steps, (1 + dt Δ) ω′ = ω, which damp each component by 1/(1 + λ dt) instead and are stable for any step size.
Hodge’s theorem. On a compact Riemannian manifold, every de Rham cohomology class contains exactly one harmonic form. W. V. D. Hodge set out the theory in his 1941 book on harmonic integrals; the analytic heart of the proof had gaps, and complete proofs were given by Hermann Weyl in 1943 and Kunihiko Kodaira in 1949. Uniqueness is the easy half: two harmonic forms in one class differ by a harmonic gradient dα, and ‖dα‖² = ⟨α, δdα⟩ = 0. Existence is the hard half, and is what heat flow delivers.
On the mesh. Here everything is exact linear algebra on the mesh: the flow is a number per edge, Δ a sparse symmetric matrix, and the discrete theorem (one harmonic flow per class, closedness preserved, periods fixed) holds to the rounding of the solver. The mesh’s harmonic flow is an approximation of the smooth surface’s, improving as the triangles shrink.
Drag along the parabola, or change f, and watch the integral round the circle stay at 2πc while the energy only ever rises above 2πc². Then on the torus, compare the energy of h + s dα computed two ways.
Arrows show ω along the circle, anticlockwise for positive values, at one fixed scale. Integrals use the trapezoid rule with 512 points, which for smooth periodic functions is accurate to rounding. The cross term 2cA ∫ f′ dθ = 2cA (f(2π) − f(0)) is zero because f returns to its start.
Pythagoras for flows. If h is harmonic then δh = 0, so for any function α, ⟨h, dα⟩ = ⟨δh, α⟩ = 0: gradients are perpendicular to harmonic forms. Hence ‖h + dα‖² = ‖h‖² + ‖dα‖², and every other flow in the class of h has strictly more energy. On the circle this is ∫ (c + f′)² dθ = 2πc² + ∫ f′² dθ, the cross term 2c ∫ f′ dθ = 2c (f(2π) − f(0)) being zero.
Dirichlet’s principle. Turn it round: to find the harmonic form in a class, minimise the energy over all closed flows in the class. The idea goes back to Gauss, Dirichlet and Riemann, who used the principle to find harmonic functions and to build functions on Riemann surfaces. Riemann took it for granted that a minimiser exists, which is not true in general; David Hilbert put the principle on firm ground in 1900.
Why the minimiser has no sources or swirl. At a minimiser ω, nudging by any gradient dα cannot lower the energy, so ⟨ω, dα⟩ = ⟨δω, α⟩ = 0 for every α, which forces δω = 0: no sources or sinks. And ω is closed, dω = 0, because it was chosen from a class of closed flows: no swirl. Closed and co-closed together are exactly harmonic. The heat flow of the first demo lowers this same energy at every instant: for a closed flow, d‖ω‖²/dt = −2⟨Δω, ω⟩ = −2‖δω‖², which is never positive and is zero only once the flow is harmonic.
Choose a surface and step through its harmonic flows, each going once round its own loop. Below, watch the lowest eigenvalues settle: exactly 2g of them at zero, then a gap.
The count. Hodge’s theorem gives one harmonic form per cohomology class, so the harmonic 1-forms form a vector space of dimension b1, the first Betti number. For a closed surface with g holes, b1 = 2g, the number of independent loops from Counting Holes. Choosing the harmonic forms dual to the standard loops a1, b1, …, ag, bg makes the period matrix the identity; on the sphere there are no loops to go round and no harmonic forms.
The sound of the surface. The eigenvalues of the Laplacian are like the notes a surface can ring at: an eigen-flow with eigenvalue λ decays under heat flow like e−λt, and the larger λ, the finer its wrinkles. The harmonic forms are the 2g silent notes, with λ = 0. Mark Kac’s 1966 question “Can one hear the shape of a drum?” asks how much of a shape the whole spectrum remembers; the number of silent notes is the part that is pure topology.
Shape changes the forms, not their number. The harmonic forms depend on the metric: stretch the surface and the arrows and the positive eigenvalues all move. Their number cannot move, because it equals b1, which depends only on the holes. That pairing (analysis computing topology) is what Hodge exploited. On a complex manifold the harmonic forms split further by type (p, q), and the Hodge conjecture is a question about the classes of type (p, p). See also Splitting a Flow in Three for the decomposition behind all this, Cohomology in Algebraic Topology, and Differential Geometry for the metrics that shape the forms.
Spot a mistake or have an idea?