Gauss' Linking Number II

From degree to integral: de Rham cohomology and the winding number

Second in a four-part series deriving Gauss’ linking integral from first principles. The setup is in the first post.

In the previous post, we showed that the linking number of two disjointly embedded manifolds MmM^m and NnN^n in Rm+n+1\mathbb{R}^{m+n+1} can be expressed as the degree of the normalized difference map

K-L^ ⁣:M×NSm+n.\kl \colon M \times N \to S^{m+n}.

This description is conceptually satisfying, but it is not yet computational. The degree is defined by counting preimages with signs, which requires finding all solutions to a nonlinear equation—awkward at best.

The purpose of this post is to explain how to convert this topological invariant into an integral. The key tool is de Rham cohomology, and the key computation is a short ODE. At the end, we will have an explicit integral formula for the linking number in all dimensions—and we will test it on the simplest case: a point and a curve in R2\mathbb{R}^2.

The big idea: degree as an integral

The bridge between topology and analysis is the following remarkable fact.

Theorem. Let f ⁣:XkYkf\colon X^k\to Y^k be a smooth map between closed oriented kk-manifolds, and let α\alpha be a volume form on YY normalized so that Yα=1\int_Y\alpha=1. Then deg(f)=Xfα.\deg(f)=\int_X f^*\alpha.

This theorem deserves a moment of reflection. Why should it be true?

Fix a regular value qYq\in Y, and think of α\alpha as a “bump” form concentrated near qq. The pullback fαf^*\alpha is then concentrated near the preimages f1(q)f^{-1}(q), and the integral picks up a contribution of ±1\pm 1 at each preimage according to whether ff preserves or reverses orientation there. Summing these contributions gives the degree. The content of the theorem is that this sum is the same no matter where on YY we concentrate the bump—which is ultimately a consequence of α\alpha being closed.

Applying this to the normalized difference map gives our first integral formula:

Link(K,L)=M×NK-L^α.\operatorname{Link}(K,L)=\int_{M\times N}\kl^*\alpha.

This is already a formula for the linking number. But it is not yet practical: the map K-L^\kl lands on the sphere Sm+nS^{m+n}, which requires multiple coordinate charts. Everything that follows is about turning this abstract formula into something we can write down in a single integral.

Moving to Euclidean space

Factor the normalized difference map as

K-L^=πF,F(s,t)=K(s)L(t),π(x)=xx.\kl = \pi\circ F, \qquad F(s,t)=K(s)-L(t), \qquad \pi(x)=\frac{x}{\|x\|}.

Then

Link(K,L)=M×NF(πα).\operatorname{Link}(K,L)=\int_{M\times N}F^*(\pi^*\alpha).

The map FF is just a subtraction—completely explicit. The map π\pi is the radial projection onto the sphere. Since Rm+n+1{0}\mathbb{R}^{m+n+1}\setminus\{0\} deformation retracts onto Sm+nS^{m+n} via π\pi, the pullback πα\pi^*\alpha is a closed form on punctured Euclidean space, and we can work entirely in Euclidean coordinates.

But what is this form? To answer that, we need a way to translate between topology and differential forms.

De Rham cohomology

The de Rham cohomology of a smooth manifold XX is defined as

HdRk(X)={closed k-forms on X}{exact k-forms on X}.H^k_{\mathrm{dR}}(X)=\frac{\{\text{closed }k\text{-forms on }X\}}{\{\text{exact }k\text{-forms on }X\}}.

It measures the “topological complexity” of XX through the lens of calculus. Two closed forms represent the same cohomology class precisely when they differ by an exact form—and therefore give the same value when integrated over any closed submanifold. The foundational result (de Rham’s theorem) is that this construction recovers the same invariants as singular cohomology: the topology of XX determines which closed forms are exact and which are not.

For our purposes, the essential computation is:

HdRm+n(Rm+n+1{0})R,H^{m+n}_{\mathrm{dR}}(\mathbb{R}^{m+n+1}\setminus\{0\})\cong\mathbb{R},

generated by [πα][\pi^*\alpha]. Removing the origin from Rm+n+1\mathbb{R}^{m+n+1} creates exactly one “hole,” and this one-dimensional cohomology group detects it.

Why does this help? Because it gives us freedom. The form πα\pi^*\alpha is one representative of the generator, but any closed (m+n)(m+n)-form on Rm+n+1{0}\mathbb{R}^{m+n+1}\setminus\{0\} whose integral over a sphere enclosing the origin is 11 represents the same cohomology class, and therefore gives the same linking number when pulled back and integrated. We can choose whichever representative is easiest to work with:

General formula. Let ω\omega be any closed (m+n)(m+n)-form on Rm+n+1{0}\mathbb{R}^{m+n+1}\setminus\{0\} with Sm+nω=1\int_{S^{m+n}}\omega=1. Then Link(K,L)=M×NFω,F(s,t)=K(s)L(t).\operatorname{Link}(K,L)=\int_{M\times N}F^*\omega, \qquad F(s,t)=K(s)-L(t).

The entire computation has been reduced to a single task: find an explicit ω\omega.

Constructing the generator

We seek a closed (m+n)(m+n)-form ω\omega on Rm+n+1{0}\mathbb{R}^{m+n+1}\setminus\{0\}, normalized so its integral over the unit sphere is 11. Several considerations guide the construction.

Rotational invariance. Since no direction in Rm+n+1\mathbb{R}^{m+n+1} is preferred, we look for a form that is invariant under rotations. This is both aesthetically natural and practically essential: it constrains the ansatz enough to make the problem tractable.

The Hodge star route. How do we systematically build closed forms on punctured Euclidean space? A clean approach: given any smooth function ρ\rho on Rm+n+1{0}\mathbb{R}^{m+n+1}\setminus\{0\}, the 11-form dρd\rho is exact, and its Hodge dual

ω=dρ\omega = *\,d\rho

is an (m+n)(m+n)-form. When is ω\omega closed? A calculation shows

dω=ddρ=(Δρ)vol,d\omega = d*d\rho = (\Delta\rho)\,\mathrm{vol},

so ω\omega is closed if and only if ρ\rho is harmonic: Δρ=0\Delta\rho = 0.

The key point is that for the ansatz ω=dρ\omega = *\,d\rho, closedness reduces to Laplace’s equation on ρ\rho alone.

Why the puncture is doing the work. It is worth heading off an objection here, because the construction looks at first as though it cannot possibly produce anything interesting. We are about to build ω\omega out of a function—so surely ω\omega is exact, and integrates to zero over every closed surface?

It is not, and the reason is the puncture. What we will find is a ρ\rho that is harmonic on Rd{0}\mathbb{R}^d\setminus\{0\} and nowhere extends over the origin: it blows up there. That is not a defect of the construction, it is the entire content of it. Being exact means being dd of something defined on the whole space, and ω=dρ\omega=*\,d\rho is the Hodge dual of a differential, which is a different thing altogether—the star is not a differential operator and carries no potential with it. A generator that extended smoothly across the origin would be exact on the contractible space Rd\mathbb{R}^d, and would integrate to zero over every sphere. Ours integrates to one, and the singularity at the origin is what it costs.

Radial symmetry. Rotational invariance forces ρ\rho to depend only on r=xr=\|x\|. So we need a radially symmetric harmonic function on punctured space: Δρ(r)=0\Delta\rho(r)=0.

The ODE

In Rd\mathbb{R}^d (with d=m+n+1d=m+n+1), the Laplacian of a radial function ρ(r)\rho(r) is

Δρ=ρ+d1rρ=1rd1ddr(rd1ρ).\Delta\rho=\rho''+\frac{d-1}{r}\rho'=\frac{1}{r^{d-1}}\frac{d}{dr}\bigl(r^{d-1}\rho'\bigr).

Setting this to zero gives rd1ρ=Cr^{d-1}\rho'=C, which integrates to:

ρ(r)={a+blnrif d=2,a+brd2if d3.\rho(r)= \begin{cases} a+b\ln r & \text{if } d=2,\\[6pt] a+\dfrac{b}{r^{d-2}} & \text{if } d\geq 3. \end{cases}

The constant aa is killed by dρd\rho, so only bb matters. We fix bb by the normalization Sd1ω=1\int_{S^{d-1}}\omega=1.

There is no sign left to choose. Both branches have one free constant, and demanding Sd1ω=+1\int_{S^{d-1}}\omega=+1 pins it—including its sign—so we may as well fix the convention now: take ρ\rho increasing in rr in every dimension, which means b>0b>0 in ρ=blnr\rho=b\ln r and ρ=b/rd2\rho=-b/r^{d-2} alike. Appendix A then shows that on the unit sphere dρ*\,d\rho restricts to b(d2)volSd1b(d-2)\,\mathrm{vol}_{S^{d-1}} for d3d\geq 3 and to bvolS1b\,\mathrm{vol}_{S^1} for d=2d=2, and setting the integral to 11 determines bb. The results:

Ambient dimension ddρ(r)\rho(r)Normalized generator ω=dρ\omega = *\,d\rho
2212πlnr\dfrac{1}{2\pi}\ln r12πr2(xdyydx)\dfrac{1}{2\pi r^2}(x\,dy - y\,dx)
3314πr\dfrac{-1}{4\pi r}14πr3(xdydz+ydzdx+zdxdy)\dfrac{1}{4\pi r^3}(x\,dy\wedge dz + y\,dz\wedge dx + z\,dx\wedge dy)
general dd1(d2)Vol(Sd1)rd2\dfrac{-1}{(d{-}2)\,\mathrm{Vol}(S^{d-1})r^{d-2}}1Vol(Sd1)rdi=1d(1)i1xidx1dxi^dxd\dfrac{1}{\mathrm{Vol}(S^{d-1})r^d}\displaystyle\sum_{i=1}^d(-1)^{i-1}x^i\,dx^1\wedge\cdots\wedge\widehat{dx^i}\wedge\cdots\wedge dx^d

The reader may recognize the entries in the ρ\rho column. The function 1/(4πr)-1/(4\pi r) is the fundamental solution of the Laplacian in R3\mathbb{R}^3—the Coulomb potential, or the gravitational potential of a point mass. The function (1/2π)lnr(1/2\pi)\ln r is its counterpart in R2\mathbb{R}^2. This is not a coincidence: the cohomological generator on Rd{0}\mathbb{R}^d\setminus\{0\} is always the Hodge dual of the gradient of the Green’s function for the Laplacian. The linking number is, in a precise sense, measuring the “electrostatic flux” of one manifold as seen from the other.

Warm-up: the winding number in R2\mathbb{R}^2

Before tackling Gauss’ integral in R3\mathbb{R}^3, let us test the machine on the simplest possible case.

Take m=0m=0, n=1n=1, and d=m+n+1=2d=m+n+1=2. The manifold M0M^0 is a point and N1=S1N^1=S^1 is a closed curve. The “linking number” of a point KR2K\in\mathbb{R}^2 with a disjoint closed curve L ⁣:S1R2L\colon S^1\to\mathbb{R}^2 is the classical winding number of LL around KK. Two earlier notes take that integer on its own terms rather than as a special case of anything: one through covering spaces, one through de Rham cohomology.

The general formula says

Link(K,L)=S1Fω,F(t)=KL(t),\operatorname{Link}(K,L)=\int_{S^1}F^*\omega,\qquad F(t)=K-L(t),

where ω\omega is the d=2d=2 entry from our table:

ω=12πr2(xdyydx).\omega=\frac{1}{2\pi r^2}(x\,dy-y\,dx).

Write K=(a,b)K=(a,b) and L(t)=(x(t),y(t))L(t)=(x(t),y(t)). Then F(t)=(ax(t),by(t))F(t)=(a-x(t),\,b-y(t)). Pulling back the differentials:

d(ax)=xdt,d(by)=ydt.d(a-x) = -x'\,dt, \qquad d(b-y)=-y'\,dt.

Substituting into ω\omega:

Fω=12π(ax)(y)(by)(x)(ax)2+(by)2dt.F^*\omega = \frac{1}{2\pi}\frac{(a-x)(-y')-(b-y)(-x')}{(a-x)^2+(b-y)^2}\,dt.

Integrating:

Link(K,L)=12π02π(by)x(ax)y(ax)2+(by)2dt.\operatorname{Link}(K,L)=\frac{1}{2\pi}\int_0^{2\pi}\frac{(b-y)\,x'-(a-x)\,y'}{(a-x)^2+(b-y)^2}\,dt.

If we place KK at the origin, this simplifies to

12π02πxyyxx2+y2dt,\frac{1}{2\pi}\int_0^{2\pi}\frac{x\,y'-y\,x'}{x^2+y^2}\,dt,

which those who have taken complex analysis will recognize as 12πd(argz)\frac{1}{2\pi}\oint d(\arg z)—the total angle swept out by the curve around the origin, divided by 2π2\pi.

The figure below is Post I’s picture with a dimension removed. On the left a point KK and a closed curve LL; on the right the circle of directions the map lands in, with the sweep drawn as a spiral so that a second turn sits outside the first rather than retracing it. Scrub tt to walk the pair around, and drag KK anywhere in the plane. The curve is a limaçon, so it has three regions rather than two: outside, the winding number is 00; in the body of the curve it is 11; inside the small inner loop it is 22. It changes by one each time KK crosses a strand.

And the formula was produced mechanically by the same procedure that will yield Gauss’ double integral.

What comes next

We have built the general machine:

  1. The linking number is a degree.
  2. Degree can be computed as the integral of a pullback form.
  3. De Rham cohomology tells us that any normalized closed form will do.
  4. The Hodge star ansatz reduces the construction to a harmonic function.
  5. Radial symmetry reduces the PDE to an ODE, which we solve explicitly.

We have tested it in R2\mathbb{R}^2 and recovered the winding number. In the next post, we specialize to R3\mathbb{R}^3 and carry out the pullback computation that produces Gauss’ linking integral—the scalar triple product kernel, the 1/r31/r^3 denominator, and all.


Appendix A. Normalization of the generator

We verify the normalization integrals. One fact does all the work. In polar form the Euclidean volume form factors as

volRd=drvolSrd1,\mathrm{vol}_{\mathbb{R}^d}=dr\wedge \mathrm{vol}_{S^{d-1}_r},

where Srd1S^{d-1}_r carries the orientation it has as the boundary of the ball, outward normal first. That is exactly the statement

dr=volSrd1,*\,dr=\mathrm{vol}_{S^{d-1}_r},

so for any radial ρ\rho the Hodge dual of dρ=ρ(r)drd\rho=\rho'(r)\,dr restricts on the sphere of radius rr to ρ(r)volSrd1\rho'(r)\,\mathrm{vol}_{S^{d-1}_r}. Normalizing is then just a matter of reading off ρ(1)\rho'(1), and the sign takes care of itself: Sd1ω=+1\int_{S^{d-1}}\omega=+1 forces ρ>0\rho'>0, which is why the convention above is to take ρ\rho increasing.

Case d3d\geq 3. Take ρ(r)=b/rd2\rho(r) = -b/r^{d-2} with b>0b>0. Then

ρ(r)=b(d2)rd1,dρ=b(d2)1rd1dr=b(d2)1rdixidxi,\rho'(r)=\frac{b(d-2)}{r^{d-1}}, \qquad d\rho = b(d-2)\frac{1}{r^{d-1}}\,dr = b(d-2)\frac{1}{r^{d}}\sum_i x^i\,dx^i,

so at r=1r=1,

dρSd1=b(d2)volSd1,*\,d\rho\big|_{S^{d-1}}=b(d-2)\,\mathrm{vol}_{S^{d-1}},

and Sd1dρ=b(d2)Vol(Sd1)\int_{S^{d-1}}*\,d\rho = b(d-2)\,\mathrm{Vol}(S^{d-1}). Setting this to 11 gives

b=1(d2)Vol(Sd1),b=\frac{1}{(d-2)\,\mathrm{Vol}(S^{d-1})},

which is the general-dd entry of the table.

Case d=2d=2. Take ρ(r)=blnr\rho(r) = b\ln r, again with b>0b>0. Then ρ(r)=b/r\rho'(r)=b/r, so

dρS1=bvolS1,*\,d\rho\big|_{S^1}=b\,\mathrm{vol}_{S^1},

and S1dρ=2πb\int_{S^1}*\,d\rho = 2\pi b. Setting this to 11 gives b=1/(2π)b=1/(2\pi).

A check in R3\mathbb{R}^3. With d=3d=3 the recipe gives b=1/4πb=1/4\pi and ρ=1/4πr\rho=-1/4\pi r, so

dρ=14πxdx+ydy+zdzr3,dρ=xdydz+ydzdx+zdxdy4πr3,d\rho=\frac{1}{4\pi}\frac{x\,dx+y\,dy+z\,dz}{r^{3}}, \qquad *\,d\rho=\frac{x\,dy\wedge dz+y\,dz\wedge dx+z\,dx\wedge dy}{4\pi r^{3}},

using (dx)=dydz*(dx)=dy\wedge dz and its cyclic partners. On the unit sphere this is volS2/4π\mathrm{vol}_{S^2}/4\pi, whose integral is 4π/4π=14\pi/4\pi=1. This is the form Post III pulls back.

← All notes