Integrals That See Holes

Integrate a flow round a loop and the answer can stay the same however the loop is moved: the integral sees only the hole. Gradients see nothing, and the numbers left over are the periods

Integrals That See Holes

Integrate a flow round a loop and, if the flow has no swirl of its own, the answer does not change as the loop is moved: it depends only on which holes the loop goes round. Flows that are gradients give zero round every loop. The numbers that are left, one for each basic loop, are the periods, and they are how the Hodge conjecture’s classes are measured.

Wind Round a Loop

Drag the corners of the amber loop and watch the integral: for a flow with no swirl it holds still until the loop crosses a hole. Then switch to the flow that swirls everywhere and see every move change it.

1.000000
integral round the loop (quadrature)
1
turns round hole 1 (from angles)
1.000000
Σ strength × turns
—
difference between the two routes
The integral is 1.000000, and the strengths times the winding numbers give 1.000000. Drag any corner: the integral stays put until the loop is pulled across a hole, and then it jumps by that hole’s strength.
the loop, and the integral round ita flow with no swirlthe prediction

Arrows show the direction of the flow, brighter where it is stronger. The integral adds up the flow along the loop, by adaptive Gauss–Legendre quadrature on each side; the turns round each hole are counted separately from the angles the sides subtend, positive anticlockwise. A strength k means k per anticlockwise turn. A source pushes straight outwards and has strength 0 in this sense.

Go deeper:Closed flows, exact flows and Green’s theorem

Closed and exact. A flow in the plane, (u, v), is the same thing as a 1-form ω = u dx + v dy, something to integrate along curves. Its swirl at a point is ∂v/∂x − ∂u/∂y, the 2-form dω. A flow with no swirl, dω = 0, is called closed. A flow that is the gradient of a function, ω = df, is called exact. Every exact flow is closed, because the mixed partial derivatives of f agree: d(df) = 0. The integral of an exact flow along a path is f(end) − f(start), so round a closed loop it is 0. The bump and the source in the third preset are both exact (the source is the gradient of a multiple of log r), which is why they add nothing.

Green’s theorem. For a loop that bounds a region R, ∮ ω = ∬R dω: the integral round the edge is the total swirl inside. For the last preset the swirl is the constant c, so the integral is c times the area, and the shoelace formula ½ Σ (xi yi+1 − xi+1 yi) computes that area independently. A self-crossing loop counts each region as many times as it winds round it, on both sides of the equation. For a closed flow, two loops that together bound a region missing the punctures have the same integral, since the swirl between them is zero. Dragging a corner sweeps out such a region, unless it sweeps across a puncture.

A closed flow that is not exact. The whirl (−y, x)/(x² + y²) is dθ, the change in the polar angle. Round a loop that winds once about the origin its integral is 2π, not 0, so it is not the gradient of any function on the punctured plane: θ itself would have to be one, and θ cannot be defined continuously all the way round. Dividing by 2π gives the whirls in the demo, whose integral is exactly the winding number. A hole is what lets a closed flow fail to be exact.

De Rham cohomology. The closed flows modulo the exact ones form a vector space, H1, the first de Rham cohomology. For the plane with n punctures it has dimension n, and a class is pinned down by its n integrals round small loops about the punctures: Σ ki × windingi is the whole story. See also Cohomology in Algebraic Topology, which builds the same space from cochains, and Contour Integrals in Complex Analysis, where the whirl is the residue of 1/z.

Gradients See Nothing

Push the gradient slider up and click the surface to add bumps: the arrows change wildly and the integrals round the loops do not move. Slide the cyan copy of a1 round its ring and compare it with a1.

Computing the surface and its harmonic flows…
Go deeper:De Rham’s theorem, and why the mesh gets it exactly

The theorem. On a closed surface with g holes, the closed 1-forms modulo the exact ones form a space of dimension 2g, the number of independent loops found in Counting Holes. More precisely, integrating round loops gives a perfect pairing between this space and the loops up to deformation: a closed form is exact exactly when all its periods vanish, and any 2g numbers are the periods of some closed form. This is de Rham’s theorem, proved by Georges de Rham in 1931 for manifolds of every dimension, where the k-forms are integrated over k-dimensional cycles. It says that integrals of smooth forms detect exactly the holes that topology counts with combinatorics.

Why the copies of a1 agree. The original loop and the moved copy together bound a band of the tube. By Stokes’ theorem the integral of a closed form round the boundary of the band is the integral of dω over the band, which is zero, and the two boundary circles are oriented oppositely; so the integrals round the two loops agree. Adding dα changes nothing because the integral of dα round any closed loop is the total change of α, which is zero.

On the mesh. Here a flow is one number per edge (its integral along that edge), d of a function is the difference across each edge, and d of a flow is the sum round each triangle. Then d∘d = 0 is an identity: going round a triangle, the differences cancel in pairs. The integral of dα round an edge loop telescopes to zero, and the integral of a closed flow round the boundary of a band of triangles is the sum of its swirls, which are zero. These statements are exact linear algebra, so the numbers in the table agree to rounding, not merely approximately. The harmonic flows are first computed by an iterative solver and then cleaned with a second pass, which makes them closed to about 10−16.

Periods Pin Down the Class

Set the 2g periods with the sliders and watch the one harmonic flow with those periods appear; then add a random gradient. Below, compare the two ways of computing ∫ h ∧ k.

Computing the surface and its harmonic flows…
Go deeper:The period matrix and Riemann’s bilinear relation

The period matrix. Choose a basis h1, …, h2g of the harmonic flows and the standard loops a1, b1, …, ag, bg. The 2g × 2g matrix of integrals, loop by form, is the period matrix. De Rham’s theorem says it is invertible, so any 2g periods are met by exactly one combination of the basis: that is the linear solve the demo performs. Each class of closed flows has exactly one harmonic member (The Smoothest Representative finds it by heat flow), so the periods name the class and the harmonic form draws it.

Riemann’s bilinear relation. For closed forms h and k on a surface, ∫ h ∧ k = Σi (∫ai h · ∫bi k − ∫bi h · ∫ai k). The proof cuts the surface along the 2g loops into a 4g-sided polygon, writes h = df inside it, and applies Stokes’ theorem to f k round the edges, where the values of f on matching edges differ by periods. Bernhard Riemann used relations of this kind in 1857, in his work on abelian functions; for holomorphic forms they become the inequalities that make the Jacobian of a curve an abelian variety.

An intersection number in disguise. The right-hand side only uses how the loops cross: ai meets bi once (the ai · bi = 1 of Counting Holes) and misses every other loop. Taking h with period 1 round a1 and k with period 1 round b1, all others 0, gives ∫ h ∧ k = 1. The wedge integral of two classes is the intersection number of the loops they are dual to. In higher dimensions a subvariety Z gets a class the same way: wedging with it and integrating over the whole space gives the same answer as integrating over Z. That is how the Hodge conjecture compares cycles with classes.

What is exact and what is not. On the mesh the bilinear relation is an identity for closed flows, so the two routes agree to the rounding of the solver, however the arrows look. The shape of the harmonic form is a different matter: it depends on the metric, and the mesh only approximates the smooth harmonic form. The periods themselves are topological. A class whose periods round integer loops are all rational numbers is a rational class, and the Hodge conjecture is a statement about which rational classes come from algebraic cycles. This computation shows the ingredient, not the conjecture.

Key Takeaways

  • The integral of a flow with no swirl round a loop depends only on which holes the loop goes round.
  • Gradients integrate to zero round every loop, so adding one never changes a period.
  • On a surface with g holes, 2g periods pin down exactly one harmonic flow (de Rham).
  • Riemann’s bilinear relation computes ∫ h ∧ k from the periods alone, through how the loops cross.

Spot a mistake or have an idea?

Search