Book 8A

© 2026 Neckpinch · www.neckpinch.com · All rights reserved.

Course 8Book 8A: Smooth ManifoldsChapter 8

Differential Forms and Stokes’ Theorem

Integration on manifolds and integration by parts, the computation behind every monotonicity formula.

67 min read · Updated Nov 7, 2026

Read with Lee, Introduction to Smooth Manifolds (2nd edition), chapter 14 (differential forms and the exterior derivative), chapter 15 (orientations), chapter 16 (integration on manifolds and Stokes' theorem, including the divergence theorem on Riemannian manifolds), and skim chapter 17 (de Rham cohomology).

In this chapter · 8 sections
  1. 8.1Measuring area by tracing the boundary
  2. 8.2Forms and the exterior derivative
  3. 8.3Orientation and integration
  4. 8.4Stokes' theorem
  5. 8.5Divergence and integration by parts
  6. 8.6Closed and exact forms
  7. 8.7History
  8. 8.8Exercises
  9. ↗Free resources

Integration on a manifold needs something to integrate that doesn't depend on the coordinates. Functions won't do: their integrals change with the coordinates by the Jacobian factor (3A.5 Product Measures and Change of Variables). The right objects are differential forms, alternating tensors that transform by exactly the determinant, so their integrals are coordinate-free. Forms have a natural derivative, the exterior derivative dd, and the relation between the two is Stokes' theorem:

∫Mdω=∫∂Mω.\int_Md\omega = \int_{\partial M}\omega.

It contains the fundamental theorem of calculus, Green's theorem, the divergence theorem and the classical Stokes theorem as special cases (1A.10 Divergence, Curl and the Integral Theorems).

For the Ricci flow its most important consequence is integration by parts on a closed manifold: with no boundary, ∫MΔu dV=0\int_M\Delta u\,dV = 0 and ∫Mf Δu=−∫M⟨∇f,∇u⟩\int_Mf\,\Delta u = -\int_M\langle\nabla f, \nabla u\rangle. Every monotonicity formula in the subject, from the energy decay of 6A.3 The Heat Equation on ℝⁿ to Perelman's F\mathcal F and W\mathcal W, is proved by differentiating an integral and integrating by parts until the derivative is visibly a sum of squares. This chapter supplies that tool.

By the end of this chapter you will be able to:

  • define differential forms, the wedge product, the exterior derivative and pullback, and compute with them in coordinates;
  • explain orientation and define the integral of a form on an oriented manifold;
  • state Stokes' theorem and derive Green's theorem and the divergence theorem from it;
  • integrate by parts on a closed Riemannian manifold, and show ∫Δu=0\int\Delta u = 0;
  • distinguish closed and exact forms, with the example dθd\theta on the punctured plane.

Measuring area by tracing the boundary

In the world In use The planimeter

A planimeter measures the area of a region on a map or a drawing by tracing its boundary with a pointer. In Jakob Amsler's polar planimeter of 1854, one arm pivots about a fixed point, a second arm carries the tracing pointer, and a small wheel on the second arm rolls and slides on the paper as the outline is traced. When the pointer returns to its starting point, the total rotation of the wheel is proportional to the enclosed area (Figure 8.1). Planimeters were standard instruments for engineers, surveyors and physicians for over a century (measuring areas on maps, indicator diagrams of steam engines, and outlines on medical images), until digital tools replaced them.

The reason it works is Green's theorem, Stokes' theorem in the plane: for a region DD with boundary curve ∂D\partial D, ∬D(∂Q∂x−∂P∂y)dA=∮∂D(P dx+Q dy)\iint_D\big(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\big)dA = \oint_{\partial D}(P\,dx + Q\,dy). The wheel's rolling integrates, along the traced curve, a 1-form ω\omega determined by the instrument's geometry, and the geometry is arranged so that dω=c dx∧dyd\omega = c\,dx\wedge dy for a constant cc. Stokes' theorem then turns a measurement made only on the boundary into the area inside (Exercise 8.10). The pieces of the instrument whose motion would contribute boundary terms either cancel around a closed circuit or contribute an exact form, which integrates to zero.

Figure 8.1. A polar planimeter (schematic): the pole arm turns about a fixed pivot, the tracer arm's pointer follows the boundary of the region once counterclockwise, and the wheel on the tracer arm records a rotation proportional to the enclosed area.

Forms and the exterior derivative

A kk-form at a point is an alternating (0,k)(0, k)-tensor (8A.7 Tensors and Index Notation): a multilinear function of kk tangent vectors that changes sign when two are swapped. A differential kk-form on MM is a smooth field of them. In coordinates, the basic kk-forms are the wedge products dxi1∧⋯∧dxikdx^{i_1}\wedge\dots\wedge dx^{i_k} with i1<⋯<iki_1 < \dots < i_k, and every kk-form is

ω=∑i1<⋯<ikωi1…ik dxi1∧⋯∧dxik.\omega = \sum_{i_1<\dots<i_k}\omega_{i_1\dots i_k}\,dx^{i_1}\wedge\dots\wedge dx^{i_k}.

The wedge product is bilinear, associative and graded-commutative: α∧β=(−1)klβ∧α\alpha\wedge\beta = (-1)^{kl}\beta\wedge\alpha for a kk-form and an ll-form; in particular dx∧dx=0dx\wedge dx = 0 and dx∧dy=−dy∧dxdx\wedge dy = -dy\wedge dx. On an nn-manifold, nn-forms are multiples of dx1∧⋯∧dxndx^1\wedge\dots\wedge dx^n, and forms of degree >n> n vanish.

The value of dx∧dydx\wedge dy on two vectors vv, ww in the plane is v1w2−v2w1v^1w^2 - v^2w^1, the signed area of the parallelogram they span (1A.3 Determinants and Volume). A kk-form measures oriented kk-dimensional volume.

Wedge products in R3\mathbb{R}^3. Computing with wedge products is mechanical once the rules are fixed. For two 1-forms α=a1dx+a2dy+a3dz\alpha = a_1dx + a_2dy + a_3dz and β=b1dx+b2dy+b3dz\beta = b_1dx + b_2dy + b_3dz, expanding and using dx∧dx=0dx\wedge dx = 0 and dy∧dx=−dx∧dydy\wedge dx = -dx\wedge dy gives

α∧β=(a2b3−a3b2) dy∧dz+(a3b1−a1b3) dz∧dx+(a1b2−a2b1) dx∧dy,\alpha\wedge\beta = (a_2b_3 - a_3b_2)\,dy\wedge dz + (a_3b_1 - a_1b_3)\,dz\wedge dx + (a_1b_2 - a_2b_1)\,dx\wedge dy,

whose three coefficients are the components of the cross product a×ba\times b. A third 1-form γ\gamma gives α∧β∧γ=det⁡(a,b,c) dx∧dy∧dz\alpha\wedge\beta\wedge\gamma = \det(a, b, c)\,dx\wedge dy\wedge dz, the triple product. The wedge product is the general-dimensional replacement for the cross product: it does not need three dimensions or a metric, and it produces a 2-form, not a vector, which is why the cross product behaves oddly under reflections (8A.7 Tensors and Index Notation). In R4\mathbb{R}^4, by contrast, α∧β\alpha\wedge\beta has six components and cannot be identified with a vector at all.

Pullbacks change coordinates. The pullback rule F∗(dxi)=dFiF^*(dx^i) = dF^i makes changes of variables automatic. In polar coordinates, x=rcos⁡θx = r\cos\theta and y=rsin⁡θy = r\sin\theta, so dx=cos⁡θ dr−rsin⁡θ dθdx = \cos\theta\,dr - r\sin\theta\,d\theta and dy=sin⁡θ dr+rcos⁡θ dθdy = \sin\theta\,dr + r\cos\theta\,d\theta, and

dx∧dy=(cos⁡θ dr−rsin⁡θ dθ)∧(sin⁡θ dr+rcos⁡θ dθ)=rcos⁡2θ dr∧dθ−rsin⁡2θ dθ∧dr=r dr∧dθ.dx\wedge dy = (\cos\theta\,dr - r\sin\theta\,d\theta)\wedge(\sin\theta\,dr + r\cos\theta\,d\theta) = r\cos^2\theta\,dr\wedge d\theta - r\sin^2\theta\,d\theta\wedge dr = r\,dr\wedge d\theta.

The Jacobian determinant rr of the change of variables appears by itself, from the antisymmetry of the wedge product. In spherical coordinates the same computation gives dx∧dy∧dz=ρ2sin⁡ϕ dρ∧dϕ∧dθdx\wedge dy\wedge dz = \rho^2\sin\phi\,d\rho\wedge d\phi\wedge d\theta. To integrate a 2-form over a surface given by a parametrisation F:D→R3F : D \to \mathbb{R}^3, pull it back to DD and integrate there: ∫F(D)ω=∫DF∗ω\int_{F(D)}\omega = \int_DF^*\omega. The flux integrals of vector calculus, with their unit normals and area elements, are this single rule written out in components.

Inserting a vector, and Cartan's formula. The interior product ιXω\iota_X\omega of a kk-form with a vector field is the (k−1)(k - 1)-form obtained by putting XX in the first slot: (ιXω)(v2,…,vk)=ω(X,v2,…,vk)(\iota_X\omega)(v_2, \dots, v_k) = \omega(X, v_2, \dots, v_k). It satisfies a Leibniz rule with signs, ιX(α∧β)=ιXα∧β+(−1)kα∧ιXβ\iota_X(\alpha\wedge\beta) = \iota_X\alpha\wedge\beta + (-1)^k\alpha\wedge\iota_X\beta, and ιXιX=0\iota_X\iota_X = 0. For the area form of the plane, ι∂x(dx∧dy)=dy\iota_{\partial_x}(dx\wedge dy) = dy: inserting the horizontal direction leaves the form that measures vertical extent, the flux across a curve. The Lie derivative of 8A.6 Flows and the Lie Derivative is related to dd and ι\iota by

LXω=d(ιXω)+ιX(dω),\mathcal L_X\omega = d(\iota_X\omega) + \iota_X(d\omega),

Cartan's formula. The proof is short: both sides are derivations of the algebra of forms that commute with dd (for the left side because pullbacks do), both satisfy the same Leibniz rule, and both agree on functions, where each is XfXf, and on differentials of functions, where each is d(Xf)d(Xf). Since every form is locally a sum of products of functions and differentials, they agree everywhere. Two consequences are used constantly. If ω\omega is closed, LXω=d(ιXω)\mathcal L_X\omega = d(\iota_X\omega) is exact, so flowing a closed form along a vector field changes it only by an exact form, and its cohomology class is unchanged; this is the infinitesimal form of homotopy invariance of de Rham cohomology, that homotopic maps pull back closed forms to cohomologous ones. And for a volume form, which is closed because there are no (n+1)(n + 1)-forms, LXdV=d(ιXdV)=(div⁡X) dV\mathcal L_XdV = d(\iota_XdV) = (\operatorname{div}X)\,dV, the definition of divergence used below.

Definition 8.1 Exterior derivative

The exterior derivative dd takes kk-forms to (k+1)(k + 1)-forms, and is defined in coordinates by

d(f dxi1∧⋯∧dxik)=df∧dxi1∧⋯∧dxik=∂f∂xjdxj∧dxi1∧⋯∧dxik.d\Big(f\,dx^{i_1}\wedge\dots\wedge dx^{i_k}\Big) = df\wedge dx^{i_1}\wedge\dots\wedge dx^{i_k} = \frac{\partial f}{\partial x^j}dx^j\wedge dx^{i_1}\wedge\dots\wedge dx^{i_k}.
Proposition 8.2 Properties of the exterior derivative

For forms α\alpha (of degree kk) and β\beta, and every smooth map FF, with F∗F^* the pullback of forms (8A.6 Flows and the Lie Derivative):

d(dω)=0,d(α∧β)=dα∧β+(−1)kα∧dβ,F∗(dω)=d(F∗ω).d(d\omega) = 0, \qquad d(\alpha\wedge\beta) = d\alpha\wedge\beta + (-1)^k\alpha\wedge d\beta, \qquad F^*(d\omega) = d(F^*\omega).

In particular dd is independent of the coordinates used to define it.

Proof. Leibniz rule. By linearity take α=f dxI\alpha = f\,dx^I and β=g dxJ\beta = g\,dx^J (multi-indices). Then α∧β=fg dxI∧dxJ\alpha\wedge\beta = fg\,dx^I\wedge dx^J, and d(fg)=g df+f dgd(fg) = g\,df + f\,dg gives d(α∧β)=g df∧dxI∧dxJ+f dg∧dxI∧dxJd(\alpha\wedge\beta) = g\,df\wedge dx^I\wedge dx^J + f\,dg\wedge dx^I\wedge dx^J. The first term is dα∧βd\alpha\wedge\beta. In the second, moving the 1-form dgdg past the kk factors of dxIdx^I costs (−1)k(-1)^k, giving (−1)kα∧dβ(-1)^k\alpha\wedge d\beta.

d2=0d^2 = 0. For a function, d(df)=d(∂jf dxj)=∂i∂jf dxi∧dxj=0d(df) = d(\partial_jf\,dx^j) = \partial_i\partial_jf\,dx^i\wedge dx^j = 0, since ∂i∂jf\partial_i\partial_jf is symmetric in i,ji, j and dxi∧dxjdx^i\wedge dx^j antisymmetric. In particular d(dxi)=0d(dx^i) = 0. For ω=f dxI\omega = f\,dx^I, dω=df∧dxId\omega = df\wedge dx^I and, by Leibniz, d(dω)=d(df)∧dxI−df∧d(dxI)=0d(d\omega) = d(df)\wedge dx^I - df\wedge d(dx^I) = 0, where d(dxI)=0d(dx^I) = 0 by Leibniz and d(dxi)=0d(dx^i) = 0.

Pullback. For a function, F∗(df)=d(f∘F)F^*(df) = d(f\circ F) is the chain rule. For ω=f dxi1∧⋯∧dxik\omega = f\,dx^{i_1}\wedge\cdots\wedge dx^{i_k}, F∗ω=(f∘F) d(Fi1)∧⋯∧d(Fik)F^*\omega = (f\circ F)\,d(F^{i_1})\wedge\cdots\wedge d(F^{i_k}) with Fi=xi∘FF^i = x^i\circ F, and by Leibniz and d2=0d^2 = 0, d(F∗ω)=d(f∘F)∧dFi1∧⋯∧dFik=F∗(df∧dxi1∧⋯∧dxik)=F∗(dω)d(F^*\omega) = d(f\circ F)\wedge dF^{i_1}\wedge\cdots\wedge dF^{i_k} = F^*(df\wedge dx^{i_1}\wedge\cdots\wedge dx^{i_k}) = F^*(d\omega).

Independence of coordinates. If dd and d~\tilde d are defined by two charts, the transition map FF between them satisfies d~ω=F∗(d((F−1)∗ω))\tilde d\omega = F^*\big(d((F^{-1})^*\omega)\big), and by the pullback property this equals dωd\omega.

The identity d2=0d^2 = 0 is the symmetry of second derivatives, ∂i∂jf=∂j∂if\partial_i\partial_jf = \partial_j\partial_if, combined with dxi∧dxj=−dxj∧dxidx^i\wedge dx^j = -dx^j\wedge dx^i. In R3\mathbb{R}^3, under the identifications of 1-forms and 2-forms with vector fields, dd on 00-, 11- and 22-forms is the gradient, the curl and the divergence, and d2=0d^2 = 0 is the pair of identities curl⁡grad⁡=0\operatorname{curl}\operatorname{grad} = 0 and div⁡curl⁡=0\operatorname{div}\operatorname{curl} = 0 (Exercise 8.7).

Orientation and integration

An orientation of MM is a choice of charts whose transition maps all have positive Jacobian determinant; MM is orientable if one exists (7A.3 Manifolds and Surfaces). The Möbius band and RP2\mathbb{R}P^2 are not orientable; spheres, tori and all Lie groups are. Equivalently, MM is orientable if and only if it has a nowhere-vanishing nn-form.

For an nn-form ω=f dx1∧⋯∧dxn\omega = f\,dx^1\wedge\dots\wedge dx^n supported in the domain of an oriented chart, define

∫Mω=∫Rnf dx1⋯dxn.\int_M\omega = \int_{\mathbb{R}^n}f\,dx^1\cdots dx^n.

This is the reason for using forms: under a change of oriented charts, ff is multiplied by the Jacobian determinant (Exercise 8.8), exactly the factor in the change of variables formula (3A.5 Product Measures and Change of Variables), so the integral is independent of the chart. In general, write ω=∑ψαω\omega = \sum\psi_\alpha\omega with a partition of unity and add the pieces; the result doesn't depend on the choices (8A.2 Partitions of Unity, last exercise).

A Riemannian metric gives an oriented manifold a canonical nn-form, the volume form

dVg=det⁡(gij) dx1∧⋯∧dxndV_g = \sqrt{\det(g_{ij})}\,dx^1\wedge\dots\wedge dx^n

in oriented coordinates, the form that gives an orthonormal basis volume 11. Functions can then be integrated: ∫Mf dVg\int_Mf\,dV_g. The volume form also gives the first glimpse of what Ricci curvature means. In coordinates centred at a point pp in which geodesics through pp are straight lines (normal coordinates, 9A.3 Geodesics and the Exponential Map), the coefficient of the volume form has the expansion

det⁡g(x)=1−16Rij(p)xixj+O(∣x∣3),\sqrt{\det g}(x) = 1 - \frac16R_{ij}(p)x^ix^j + O(|x|^3),

so the Ricci tensor is exactly the second-order correction to the Euclidean volume element: positive Ricci curvature in a direction means that a thin cone of geodesics in that direction encloses less volume than in flat space. On the unit sphere, where Rij=(n−1)gijR_{ij} = (n - 1)g_{ij}, a small ball of radius rr has volume less than the Euclidean ball's by a factor 1−n(n−1)6(n+2)r2+⋯1 - \frac{n(n - 1)}{6(n + 2)}r^2 + \cdots, computed from this expansion by averaging RijxixjR_{ij}x^ix^j over the ball, so that the scalar curvature R=n(n−1)R = n(n - 1) appears; on S2S^2 this is 1−r2/121 - r^2/12, matching the exact area 2π(1−cos⁡r)2\pi(1 - \cos r) of a geodesic disc. The Ricci flow, which moves the metric by −2Rij-2R_{ij}, can be read as shrinking a metric fastest in the directions where it already focuses volume most.

Why orientation is needed, concretely. On the Möbius band, cover the band by two charts whose overlap has two components; on one component the transition preserves orientation and on the other it reverses it, as for RP2\mathbb{R}P^2 in 8A.1 Smooth Structures. A nowhere-vanishing 2-form, written as f dx∧dyf\,dx\wedge dy in one chart with f>0f > 0, would appear in the other with coefficient ff times the Jacobian determinant of the transition, positive on one component of the overlap and negative on the other, so it would have to change sign along the core circle and therefore vanish somewhere. The integral of a form needs a consistent sign convention at every point, which is exactly what an orientation provides. Densities sidestep the issue by transforming with the absolute value of the Jacobian, and every manifold, orientable or not, has a two-sheeted orientation double cover that is orientable, on which forms can be integrated and the result halved. On a non-orientable manifold one integrates densities instead, with the same formula and ∣det⁡∣|{\det}|; all the integrals of this guide make sense on any manifold.

Example 8.3 The area of the unit sphere in every dimension

Forms and polar coordinates compute the area ωn−1\omega_{n-1} of the unit sphere Sn−1⊂RnS^{n-1} \subset \mathbb{R}^n with one trick. In polar coordinates x=rξx = r\xi, with ξ∈Sn−1\xi \in S^{n-1}, the volume form of Rn\mathbb{R}^n pulls back to rn−1 dr∧dASn−1r^{n-1}\,dr\wedge dA_{S^{n-1}}, as dx∧dy=r dr∧dθdx\wedge dy = r\,dr\wedge d\theta did in the plane. Integrate e−∣x∣2e^{-|x|^2} both ways. In Cartesian coordinates it factors: ∫Rne−∣x∣2dx=(∫Re−t2dt)n=πn/2\int_{\mathbb{R}^n}e^{-|x|^2}dx = \big(\int_{\mathbb{R}}e^{-t^2}dt\big)^n = \pi^{n/2}. In polar coordinates it is ωn−1∫0∞e−r2rn−1dr=ωn−1⋅12Γ(n2)\omega_{n-1}\int_0^\infty e^{-r^2}r^{n-1}dr = \omega_{n-1}\cdot\frac12\Gamma\big(\frac n2\big). So

ωn−1=2πn/2Γ(n/2):\omega_{n-1} = \frac{2\pi^{n/2}}{\Gamma(n/2)}:

2π2\pi for the circle, 4π4\pi for S2S^2, 2π22\pi^2 for S3S^3. The volume of the unit ball follows by integrating in rr, ωn−1n=πn/2Γ(n/2+1)\frac{\omega_{n-1}}n = \frac{\pi^{n/2}}{\Gamma(n/2 + 1)}, which is largest in dimension 55 and tends to zero as nn grows: in high dimensions almost all of the volume of a cube lies outside its inscribed ball. For comparison, the volume of the unit ball in dimensions 11 to 66 is 22, π\pi, 43π\frac43\pi, 12π2\frac12\pi^2, 815π2\frac8{15}\pi^2 and 16π3\frac16\pi^3, approximately 22, 3.143.14, 4.194.19, 4.934.93, 5.265.26 and 5.175.17, so the maximum at dimension 55 can be read off directly. By dimension 2020 the volume has fallen to about 0.0260.026, and the fraction of a cube's volume inside its inscribed ball, the ball's volume divided by 2n2^n, is smaller still. These constants appear in every heat kernel and every volume comparison in the guide, through the Gaussian (4πt)−n/2e−∣x∣2/4t(4\pi t)^{-n/2}e^{-|x|^2/4t} whose total integral is 11 by the same computation.

Stokes' theorem

A manifold with boundary (7A.3 Manifolds and Surfaces) has an induced orientation on its boundary: the outward normal first convention. In the plane it means the boundary of a region is traversed counterclockwise, keeping the region on the left (Figure 8.2).

Theorem 8.4 Stokes' theorem

Let MM be an oriented nn-manifold with boundary and ω\omega a compactly supported (n−1)(n - 1)-form on MM. Then

∫Mdω=∫∂Mω,\int_Md\omega = \int_{\partial M}\omega,

with ∂M\partial M carrying the induced orientation. If MM has no boundary, ∫Mdω=0\int_Md\omega = 0.

Proof. (Lee, chapter 16.) Reduction to one chart. Take a partition of unity {ψα}\{\psi_\alpha\} subordinate to a cover by oriented charts, each either interior (an open subset of Rn\mathbb{R}^n) or a boundary chart (an open subset of the half-space H={xn≥0}H = \{x^n \geq 0\}, with the boundary going to {xn=0}\{x^n = 0\}). Since ω\omega has compact support, only finitely many ψαω\psi_\alpha\omega are non-zero, and ∑αd(ψαω)=d(∑αψαω)=dω\sum_\alpha d(\psi_\alpha\omega) = d\big(\sum_\alpha\psi_\alpha\omega\big) = d\omega. Both sides of Stokes' formula are additive, so it suffices to prove it for ω\omega supported in a compact subset of one chart, and, since integrals of forms are unchanged by orientation-preserving diffeomorphisms (Exercise 8.8), for a compactly supported form on Rn\mathbb{R}^n or on HH.

The computation. Write ω=∑iωi dx1∧⋯∧dxi^∧⋯∧dxn\omega = \sum_i\omega_i\,dx^1\wedge\cdots\wedge\widehat{dx^i}\wedge\cdots\wedge dx^n (hat: omitted). Then dω=∑i∂iωi dxi∧dx1∧⋯dxi^⋯∧dxn=∑i(−1)i−1∂iωi dx1∧⋯∧dxnd\omega = \sum_i\partial_i\omega_i\,dx^i\wedge dx^1\wedge\cdots\widehat{dx^i}\cdots\wedge dx^n = \sum_i(-1)^{i-1}\partial_i\omega_i\,dx^1\wedge\cdots\wedge dx^n, moving dxidx^i past i−1i - 1 factors. By Fubini, integrate the ii-th term first in xix^i. On Rn\mathbb{R}^n, ∫−∞∞∂iωi dxi=0\int_{-\infty}^\infty\partial_i\omega_i\,dx^i = 0 for every ii, by the fundamental theorem of calculus (2A.11 The Riemann Integral) and compact support, so ∫dω=0\int d\omega = 0, matching the empty boundary. On HH, the same holds for i<ni < n, while for i=ni = n, ∫0∞∂nωn dxn=−ωn(x′,0)\int_0^\infty\partial_n\omega_n\,dx^n = -\omega_n(x', 0). Hence

∫Hdω=(−1)n−1⋅(−∫Rn−1ωn(x′,0) dx′)=(−1)n∫Rn−1ωn(x′,0) dx′.\int_Hd\omega = (-1)^{n-1}\cdot\Big(-\int_{\mathbb{R}^{n-1}}\omega_n(x', 0)\,dx'\Big) = (-1)^n\int_{\mathbb{R}^{n-1}}\omega_n(x', 0)\,dx'.

The boundary side. On ∂H={xn=0}\partial H = \{x^n = 0\}, dxndx^n restricts to zero, so ω∣∂H=ωn(x′,0) dx1∧⋯∧dxn−1\omega|_{\partial H} = \omega_n(x', 0)\,dx^1\wedge\cdots\wedge dx^{n-1}. The outward normal is −∂n-\partial_n, and the induced orientation makes (v1,…,vn−1)(v_1, \ldots, v_{n-1}) positive when (−∂n,v1,…,vn−1)(-\partial_n, v_1, \ldots, v_{n-1}) is positive in Rn\mathbb{R}^n. Since det⁡(−en,e1,…,en−1)=−(−1)n−1=(−1)n\det(-e_n, e_1, \ldots, e_{n-1}) = -(-1)^{n-1} = (-1)^n, the coordinates (x1,…,xn−1)(x^1, \ldots, x^{n-1}) are positively oriented on ∂H\partial H exactly when nn is even, so ∫∂Hω=(−1)n∫Rn−1ωn(x′,0) dx′\int_{\partial H}\omega = (-1)^n\int_{\mathbb{R}^{n-1}}\omega_n(x', 0)\,dx'. The two sides agree.

Figure 8.2. The induced boundary orientation for a region with a hole (schematic): the outer boundary is traversed counterclockwise and the inner one clockwise, so that the region is always on the left; equivalently, the outward normal followed by the tangent is a positively oriented basis.
Example 8.5 Brouwer's theorem from Stokes

Stokes' theorem gives a two-line proof that there is no smooth retraction of the closed ball BB in Rn\mathbb{R}^n onto its boundary sphere S=∂BS = \partial B, that is, no smooth r:B→Sr : B \to S with r=idr = \mathrm{id} on SS. Let ω\omega be an (n−1)(n - 1)-form on SS with ∫Sω≠0\int_S\omega \neq 0, for instance the area form. If rr existed, then

0≠∫Sω=∫Sr∗ω=∫Bd(r∗ω)=∫Br∗(dω)=0,0 \neq \int_S\omega = \int_Sr^*\omega = \int_Bd(r^*\omega) = \int_Br^*(d\omega) = 0,

since r∗ω=ωr^*\omega = \omega on SS, and dωd\omega is an nn-form on the (n−1)(n - 1)-manifold SS, hence zero. The contradiction proves there is no smooth retraction, and from that the Brouwer fixed point theorem follows exactly as in 7A.4 The Fundamental Group: a map of the ball without fixed points would produce a retraction by following the ray from f(x)f(x) through xx to the boundary. (Continuous maps are reduced to smooth ones by the approximation theorem of 8A.2 Partitions of Unity.) The topological content, that the sphere's top-dimensional class does not extend over the ball, is carried entirely by the form ω\omega and the identity d∘r∗=r∗∘dd\circ r^* = r^*\circ d.

The degree as an integral. The same reasoning computes degrees. For a smooth map F:M→NF : M \to N between closed oriented nn-manifolds, and any nn-form ω\omega on NN with ∫Nω≠0\int_N\omega \neq 0, the ratio

deg⁡F=∫MF∗ω∫Nω\deg F = \frac{\int_MF^*\omega}{\int_N\omega}

is an integer, the degree of 7A.8 Smooth Topology and 7A.10 Singular Homology and Mayer–Vietoris: near a regular value, F∗ωF^*\omega is a sum of copies of ω\omega, one for each preimage, with the sign of the local orientation. The winding number of a closed curve γ\gamma in the punctured plane about the origin is 12π∮γdθ\frac1{2\pi}\oint_\gamma d\theta, the degree of γ/∣γ∣\gamma/|\gamma| as a map to the circle, and the argument principle of complex analysis (5A.2 Cauchy’s Theorem and Its Consequences) is this formula for γ=f∘c\gamma = f\circ c with ff holomorphic. Gauss's linking integral (7A.11 Cohomology and Poincaré Duality) is the degree of the map (s,t)↦(γ1(s)−γ2(t))/∣γ1(s)−γ2(t)∣(s, t) \mapsto (\gamma_1(s) - \gamma_2(t))/|\gamma_1(s) - \gamma_2(t)| from a torus to S2S^2, computed with the area form of the sphere.

Cauchy's theorem is Stokes' theorem. On the complex plane, with z=x+iyz = x + iy, write dz=dx+i dydz = dx + i\,dy and dzˉ=dx−i dyd\bar z = dx - i\,dy. For a complex-valued function ff, d(f dz)=∂f∂zˉ dzˉ∧dzd(f\,dz) = \frac{\partial f}{\partial\bar z}\,d\bar z\wedge dz, where ∂∂zˉ=12(∂x+i∂y)\frac{\partial}{\partial\bar z} = \frac12(\partial_x + i\partial_y), and the Cauchy–Riemann equations say precisely that ∂f/∂zˉ=0\partial f/\partial\bar z = 0. So for a holomorphic ff, the form f dzf\,dz is closed, and Stokes' theorem on a region DD gives ∮∂Df dz=∫Dd(f dz)=0\oint_{\partial D}f\,dz = \int_Dd(f\,dz) = 0: Cauchy's theorem (5A.2 Cauchy’s Theorem and Its Consequences) in one line. For a general smooth ff the same computation, applied with the closed form dz/(z−z0)dz/(z - z_0) on the region minus a small disc, gives the Cauchy–Pompeiu formula, which expresses f(z0)f(z_0) as a boundary integral plus an area integral of ∂f/∂zˉ\partial f/\partial\bar z; for holomorphic ff the area term vanishes, leaving the Cauchy integral formula. Complex analysis is, in this light, the study of the closed forms f dzf\,dz, and its topological theorems, the residue theorem and the argument principle, are statements about their cohomology classes on punctured regions.

Archimedes' hat-box theorem. Pullbacks of forms explain a classical fact about the sphere that cartographers use. Project the unit sphere horizontally outwards onto the cylinder x2+y2=1x^2 + y^2 = 1, −1≤z≤1-1 \leq z \leq 1 that touches it along the equator, sending the point with height zz and longitude θ\theta to the point of the cylinder with the same zz and θ\theta. In the coordinates (θ,z)(\theta, z), the area form of the cylinder is dθ∧dzd\theta\wedge dz, and the area form of the sphere, sin⁡ϕ dϕ∧dθ\sin\phi\,d\phi\wedge d\theta in colatitude and longitude, becomes dθ∧dzd\theta\wedge dz as well, since z=cos⁡ϕz = \cos\phi gives dz=−sin⁡ϕ dϕdz = -\sin\phi\,d\phi. The projection pulls back one area form to the other: it preserves area exactly, although it distorts shapes badly near the poles. So the zone of the sphere between two heights has area 2πΔz2\pi\Delta z, proportional to its height, and the whole sphere has the area 4π4\pi of the cylinder's side, as Archimedes found. The Lambert cylindrical equal-area projection of maps is this map, and it is the extreme opposite of Mercator's chart of 8A.1 Smooth Structures, which preserves angles and distorts areas; no chart of the sphere can preserve both, since that would make it an isometry onto a flat region, contradicting Gauss's theorem of 8A.9 The Curvature of Surfaces.

Gauss's law and the inverse square. The divergence theorem explains why gravity and electrostatics obey inverse square laws in three dimensions. The field E=x/∣x∣3E = x/|x|^3 has divergence zero away from the origin, so its flux through any closed surface not enclosing the origin is zero, and through any surface enclosing it is the same as through a small sphere around the origin, which is 4π4\pi, the area of the unit sphere: ∮E⋅ν dA=4π\oint E\cdot\nu\,dA = 4\pi for every surface around the charge. The flux form ιEdV\iota_EdV, restricted to a surface, is the solid angle form, and its integral counts how many times the surface wraps around the origin, as a degree. In Rn\mathbb{R}^n the field with zero divergence away from the origin is x/∣x∣nx/|x|^n, with flux ωn−1\omega_{n-1}, so a Newtonian force law in nn-dimensional space would fall off like the (n−1)(n - 1)-th power of the distance. The fundamental solution of the Laplacian, −1(n−2)ωn−1∣x∣2−n\frac{-1}{(n - 2)\omega_{n-1}}|x|^{2-n} for n≥3n \geq 3, is the potential of this field, normalised by the same area (6A.2 Harmonic Functions).

Special cases. For a 00-form on an interval, Stokes is the fundamental theorem of calculus, ∫abf′=f(b)−f(a)\int_a^bf' = f(b) - f(a). For a 1-form P dx+Q dyP\,dx + Q\,dy on a plane region it is Green's theorem (Exercise 8.9). For a 2-form on a surface in R3\mathbb{R}^3 it is the classical Stokes theorem relating the flux of a curl to a circulation, and for a 2-form on a region of R3\mathbb{R}^3 it is the divergence theorem (1A.10 Divergence, Curl and the Integral Theorems). In physics, Maxwell's equations take the form dF=0dF = 0 and d⋆F=Jd{\star}F = J for the electromagnetic field 2-form FF on spacetime, and Gauss's law and Faraday's law in integral form are Stokes' theorem applied to them. The circulation of an ideal flow (5A.2 Cauchy’s Theorem and Its Consequences) and the lift on a wing (5A.1 Holomorphic Functions Are Conformal) are line integrals that Stokes relates to the vorticity inside.

The Hodge star and Maxwell's equations. On an oriented Riemannian nn-manifold a kk-form and an (n−k)(n - k)-form can be matched by the Hodge star, the linear map ⋆\star defined by α∧⋆β=⟨α,β⟩ dV\alpha\wedge\star\beta = \langle\alpha, \beta\rangle\,dV. In R3\mathbb{R}^3 with its standard metric, ⋆dx=dy∧dz\star dx = dy\wedge dz, ⋆dy=dz∧dx\star dy = dz\wedge dx, ⋆dz=dx∧dy\star dz = dx\wedge dy and ⋆1=dV\star1 = dV: it is the identification of 1-forms with 2-forms that makes dd look like curl and divergence. In spacetime, R4\mathbb{R}^4 with the Lorentzian metric, the electric and magnetic fields combine into one 2-form F=Ex dx∧dt+Ey dy∧dt+Ez dz∧dt+Bx dy∧dz+By dz∧dx+Bz dx∧dyF = E_x\,dx\wedge dt + E_y\,dy\wedge dt + E_z\,dz\wedge dt + B_x\,dy\wedge dz + B_y\,dz\wedge dx + B_z\,dx\wedge dy. The equation dF=0dF = 0 contains two of Maxwell's four equations, div⁡B=0\operatorname{div}B = 0 (no magnetic charges) and Faraday's law curl⁡E+∂tB=0\operatorname{curl}E + \partial_tB = 0, and d⋆F=Jd{\star}F = J, with JJ the current 3-form, contains the other two, Gauss's law and the Ampère–Maxwell law. Because dF=0dF = 0 on R4\mathbb{R}^4, which is star-shaped, the Poincaré lemma gives a potential, F=dAF = dA, the electromagnetic 4-potential, determined up to adding an exact form dχd\chi: the gauge freedom of electromagnetism is the difference between closed and exact. And d⋆F=Jd{\star}F = J implies dJ=d2⋆F=0dJ = d^2{\star}F = 0, the conservation of charge, as a consequence of d2=0d^2 = 0.

The star also defines the codifferential δ=±⋆d⋆\delta = \pm\star d\star, which lowers degree, and the Hodge Laplacian ΔH=dδ+δd\Delta_H = d\delta + \delta d on forms; on functions it is minus the Laplacian of this guide. Hodge's theorem says that on a closed oriented Riemannian manifold every de Rham cohomology class contains exactly one harmonic form, ΔHω=0\Delta_H\omega = 0, so the cohomology, a topological invariant, is represented by solutions of an elliptic equation that depends on the metric (9A.6 The Laplacian and the Bochner Formula). Bochner's method, combining this with curvature, gives vanishing theorems: a closed manifold with positive Ricci curvature has no harmonic 1-forms, hence HdR1=0H^1_{\mathrm{dR}} = 0, a first instance of curvature constraining topology.

Divergence and integration by parts

On a Riemannian manifold the divergence of a vector field XX is the function with d(ιXdV)=(div⁡X) dVd(\iota_XdV) = (\operatorname{div}X)\,dV, where ιX\iota_X inserts XX as the first argument; in coordinates

div⁡X=1det⁡g∂i(det⁡g Xi),\operatorname{div}X = \frac{1}{\sqrt{\det g}}\partial_i\big(\sqrt{\det g}\,X^i\big),

because ιX(det⁡g dx1∧⋯∧dxn)=∑i(−1)i−1det⁡g Xi dx1∧⋯dxi^⋯∧dxn\iota_X\big(\sqrt{\det g}\,dx^1\wedge\cdots\wedge dx^n\big) = \sum_i(-1)^{i-1}\sqrt{\det g}\,X^i\,dx^1\wedge\cdots\widehat{dx^i}\cdots\wedge dx^n, whose exterior derivative is ∑i∂i(det⁡g Xi) dx1∧⋯∧dxn\sum_i\partial_i(\sqrt{\det g}\,X^i)\,dx^1\wedge\cdots\wedge dx^n by the computation in the proof of Stokes' theorem, and in terms of the covariant derivative of 9A.2 Connections, div⁡X=∇iXi\operatorname{div}X = \nabla_iX^i. It measures the rate at which the flow of XX changes volume: LXdV=(div⁡X) dV\mathcal L_XdV = (\operatorname{div}X)\,dV, by Cartan's formula (8A.6 Flows and the Lie Derivative). The Laplacian of a function is Δu=div⁡∇u\Delta u = \operatorname{div}\nabla u.

Theorem 8.6 The divergence theorem and integration by parts

Let (M,g)(M, g) be a compact oriented Riemannian manifold with boundary, ν\nu the outward unit normal and dAdA the area form of ∂M\partial M. Then

∫Mdiv⁡X dV=∫∂M⟨X,ν⟩ dA.\int_M\operatorname{div}X\,dV = \int_{\partial M}\langle X, \nu\rangle\,dA.

If MM is closed (no boundary), then for all smooth uu, ff and XX:

∫Mdiv⁡X dV=0,∫M⟨∇u,X⟩ dV=−∫Mudiv⁡X dV,\int_M\operatorname{div}X\,dV = 0, \qquad \int_M\langle\nabla u, X\rangle\,dV = -\int_Mu\operatorname{div}X\,dV,
∫MΔu dV=0,∫MfΔu dV=−∫M⟨∇f,∇u⟩ dV=∫MuΔf dV.\int_M\Delta u\,dV = 0, \qquad \int_Mf\Delta u\,dV = -\int_M\langle\nabla f, \nabla u\rangle\,dV = \int_Mu\Delta f\,dV.

Proof. Stokes' theorem applied to ιXdV\iota_XdV, together with ιXdV∣∂M=⟨X,ν⟩dA\iota_XdV|_{\partial M} = \langle X, \nu\rangle dA, gives the first identity. For the rest use div⁡(uX)=⟨∇u,X⟩+udiv⁡X\operatorname{div}(uX) = \langle\nabla u, X\rangle + u\operatorname{div}X (Exercise 8.11) and X=∇uX = \nabla u, X=f∇uX = f\nabla u.

These identities are what make energy methods work on closed manifolds: the Laplacian is a negative semidefinite symmetric operator, ∫uΔu=−∫∣∇u∣2≤0\int u\Delta u = -\int|\nabla u|^2 \leq 0, with the constants as its kernel (6A.6 Weak Solutions and Elliptic Regularity, 9A.6 The Laplacian and the Bochner Formula). Applying the divergence theorem to X=f∇u−u∇fX = f\nabla u - u\nabla f on a manifold with boundary gives Green's second identity, ∫M(fΔu−uΔf) dV=∫∂M(f∂νu−u∂νf) dA\int_M(f\Delta u - u\Delta f)\,dV = \int_{\partial M}(f\partial_\nu u - u\partial_\nu f)\,dA, the basis of the Green's function method for the Laplacian and of the mean value property of harmonic functions (5A.4 Harmonic Functions and Conformal Mapping). On a closed manifold, the first eigenvalue of −Δ-\Delta on functions orthogonal to the constants has the variational characterisation

λ1=min⁡{∫M∣∇u∣2 dV∫Mu2 dV:∫Mu dV=0, u≠0},\lambda_1 = \min\Big\{\frac{\int_M|\nabla u|^2\,dV}{\int_Mu^2\,dV} : \int_Mu\,dV = 0,\ u \neq 0\Big\},

the Rayleigh quotient, which makes sense only because integration by parts has identified −∫uΔu-\int u\Delta u with ∫∣∇u∣2\int|\nabla u|^2. On the unit round S2S^2 it is 22, attained by the coordinate functions, the spherical harmonics of 8A.5 Lie Groups and Group Actions; on a thin torus it is small, and in general lower bounds for λ1\lambda_1 in terms of curvature and diameter are a large part of comparison geometry (9B.1 Laplacian Comparison).

Weighted integration by parts. Perelman's functionals integrate against a weighted measure e−fdVe^{-f}dV, and the formulas adapt in one line. Define the weighted divergence and weighted Laplacian,

div⁡fX=div⁡X−⟨∇f,X⟩,Δfu=Δu−⟨∇f,∇u⟩,\operatorname{div}_fX = \operatorname{div}X - \langle\nabla f, X\rangle, \qquad \Delta_fu = \Delta u - \langle\nabla f, \nabla u\rangle,

chosen so that div⁡(e−fX)=e−fdiv⁡fX\operatorname{div}(e^{-f}X) = e^{-f}\operatorname{div}_fX. On a closed manifold the divergence theorem then gives ∫Mdiv⁡fX e−fdV=0\int_M\operatorname{div}_fX\,e^{-f}dV = 0 and

∫Mv Δfu e−fdV=−∫M⟨∇v,∇u⟩e−fdV,\int_Mv\,\Delta_fu\,e^{-f}dV = -\int_M\langle\nabla v, \nabla u\rangle e^{-f}dV,

so Δf\Delta_f is symmetric and negative semidefinite for the weighted measure, exactly as Δ\Delta is for dVdV. This weighted Laplacian, also called the drift Laplacian or Witten Laplacian, is the generator of Brownian motion with drift −∇f-\nabla f (6D.3 Stochastic Differential Equations and Feynman–Kac), and its symmetry is the integration by parts behind the monotonicity of F\mathcal F and W\mathcal W (12A.2 Ricci Flow as a Gradient Flow, 12A.3 The 𝓦-Entropy). For the Gaussian weight f=∣x∣2/4f = |x|^2/4 on Rn\mathbb{R}^n it is the Ornstein–Uhlenbeck operator, whose eigenfunctions are the Hermite polynomials.

The coarea formula. Integrals over a manifold can be sliced by the level sets of a function. If uu is smooth, then for an integrable function hh,

∫Mh ∣∇u∣ dV=∫−∞∞(∫{u=t}h dA)dt,\int_Mh\,|\nabla u|\,dV = \int_{-\infty}^{\infty}\Big(\int_{\{u = t\}}h\,dA\Big)dt,

where by Sard's theorem the inner integral is over a smooth hypersurface for almost every tt (8A.4 Submanifolds). With h=1h = 1 and uu the distance from a point, ∣∇u∣=1|\nabla u| = 1 almost everywhere and the formula says that the volume of a ball is the integral of the areas of the spheres, Vol⁡Br=∫0rArea⁡(St) dt\operatorname{Vol}B_r = \int_0^r\operatorname{Area}(S_t)\,dt, which is the starting point of volume comparison (9B.2 Volume Comparison). With uu a general function it relates the size of a gradient to the areas of level sets, and the isoperimetric inequality, which bounds area from below by volume, turns this into the Sobolev inequality of 4A.11 Sobolev Embeddings and Critical Exponents (Federer–Fleming, Maz'ya, 1960). The coarea formula is the integral counterpart of Ehresmann's theorem: it slices the manifold along level sets, weighted by how fast the function changes. On a closed manifold, the heat equation conserves ∫u\int u, decreases ∫u2\int u^2, and the maximum principle needs no boundary conditions (6A.5 Maximum Principles, 9B.7 The Heat Equation on a Manifold). The computation is two lines: ddt∫u dV=∫Δu dV=0\frac{d}{dt}\int u\,dV = \int\Delta u\,dV = 0, and ddt∫u2 dV=2∫uΔu dV=−2∫∣∇u∣2 dV≤0\frac{d}{dt}\int u^2\,dV = 2\int u\Delta u\,dV = -2\int|\nabla u|^2\,dV \leq 0, with equality only when uu is constant. The same pattern, differentiate under the integral and integrate by parts, gives the evolution of the area of a surface under the two-dimensional Ricci flow: since ∂t dA=−R dA\partial_t\,dA = -R\,dA and R=2KR = 2K in dimension two, ddtArea⁡=−2∫K dA=−4πχ(M)\frac{d}{dt}\operatorname{Area} = -2\int K\,dA = -4\pi\chi(M) by the Gauss–Bonnet theorem (8A.9 The Curvature of Surfaces). A round sphere therefore loses area at the constant rate 8π8\pi and disappears at time Area⁡/8π\operatorname{Area}/8\pi, a torus keeps its area, and a surface of higher genus grows, which is why the two-dimensional flow is normalised to fix the area (11A.12 Ricci Flow on Surfaces). One dimension up, the same steps give the evolution of the total scalar curvature. Using ∂tR=ΔR+2∣Ric⁡∣2\partial_tR = \Delta R + 2|\operatorname{Ric}|^2 (11A.2 How Curvature Evolves) and ∂tdV=−R dV\partial_tdV = -R\,dV,

ddt∫MR dV=∫M(ΔR+2∣Ric⁡∣2−R2) dV=∫M(2∣Ric⁡∣2−R2) dV,\frac{d}{dt}\int_MR\,dV = \int_M\big(\Delta R + 2|\operatorname{Ric}|^2 - R^2\big)\,dV = \int_M\big(2|\operatorname{Ric}|^2 - R^2\big)\,dV,

the Laplacian term integrating to zero. In dimension two, Ric⁡=R2g\operatorname{Ric} = \frac R2g and 2∣Ric⁡∣2=R22|\operatorname{Ric}|^2 = R^2, so the integral is constant, as Gauss–Bonnet requires. In dimension three the integrand has no sign in general, since ∣Ric⁡∣2|\operatorname{Ric}|^2 lies between R2/3R^2/3 and larger values depending on how unequal the Ricci eigenvalues are, and that absence of a sign is one reason total scalar curvature is not a Lyapunov function for the flow. Perelman's entropy succeeds where it fails by adding the weight e−fe^{-f}, for which the corresponding computation produces a perfect square.

Stokes on a mesh. The theorem has an exact discrete version, which computational science uses directly. On a triangulated surface, or a tetrahedral mesh, a discrete kk-form is a number attached to each oriented kk-dimensional cell, a cochain of 7A.11 Cohomology and Poincaré Duality, and the discrete exterior derivative is defined by Stokes' theorem itself: the value of dωd\omega on a cell is the sum of the values of ω\omega on its boundary faces, with signs. Then d2=0d^2 = 0 holds exactly, because the boundary of a boundary is zero, and Stokes' theorem holds exactly, cell by cell, by construction. Discrete exterior calculus and the finite element exterior calculus of Douglas Arnold, Richard Falk and Ragnar Winther (2006) build numerical methods on this structure, for electromagnetism, elasticity and fluid flow, and the payoff is that the discrete equations inherit the conservation laws and the topology of the continuous ones: a discretised magnetic field with zero divergence has exactly zero divergence, not approximately, and the harmonic forms of a mesh with holes have the dimensions predicted by its cohomology. Stokes' theorem also holds for manifolds with corners, such as cubes and simplices, with the boundary integral taken over the faces and the corners ignored, which is the form these methods use.

Forms on Lie groups. A Lie group carries a canonical form with values in its Lie algebra, the Maurer–Cartan form θ=g−1dg\theta = g^{-1}dg: at each point it translates a tangent vector back to the identity, so for a curve g(t)g(t) in a matrix group, θ(g˙)=g−1g˙\theta(\dot g) = g^{-1}\dot g, the body velocity of 8A.5 Lie Groups and Group Actions. It is left-invariant, and it satisfies the Maurer–Cartan equation

dθ+θ∧θ=0,d\theta + \theta\wedge\theta = 0,

in which θ∧θ\theta\wedge\theta combines the wedge product of forms with matrix multiplication, and which differentiates g−1g=Ig^{-1}g = I once more. In terms of a basis of left-invariant 1-forms θk\theta^k it reads dθk=−12ckijθi∧θjd\theta^k = -\frac12c^k{}_{ij}\theta^i\wedge\theta^j, with ckijc^k{}_{ij} the structure constants of the Lie algebra: the exterior derivative of the left-invariant forms encodes the bracket. For SU(2)=S3SU(2) = S^3, the three left-invariant forms satisfy dσ1=2σ2∧σ3d\sigma_1 = 2\sigma_2\wedge\sigma_3 and cyclically, in one common normalisation, and the Berger metrics a2σ12+b2(σ22+σ32)a^2\sigma_1^2 + b^2(\sigma_2^2 + \sigma_3^2) of 8A.5 Lie Groups and Group Actions are written in exactly these forms. Cartan's method of moving frames generalises this: a frame on a Riemannian manifold has connection and curvature forms whose structure equations, dθ=−ω∧θd\theta = -\omega\wedge\theta and Ω=dω+ω∧ω\Omega = d\omega + \omega\wedge\omega, are the most efficient way to compute curvature by hand (9A.5 Computing Curvature).

Closed and exact forms

A form is closed if dω=0d\omega = 0, and exact if ω=dη\omega = d\eta for some η\eta. Since d2=0d^2 = 0, exact forms are closed. On Rn\mathbb{R}^n, or any star-shaped region, every closed form is exact (the Poincaré lemma). For 1-forms the proof is a line integral: if UU is star-shaped about 00 and ω=ωi dxi\omega = \omega_i\,dx^i is closed (∂jωi=∂iωj\partial_j\omega_i = \partial_i\omega_j), let f(x)=∫01ωi(tx) xi dtf(x) = \int_0^1\omega_i(tx)\,x^i\,dt, the integral of ω\omega along the segment from 00 to xx. Then

∂jf(x)=∫01(t xi ∂jωi(tx)+ωj(tx))dt=∫01(t xi ∂iωj(tx)+ωj(tx))dt=∫01ddt(t ωj(tx))dt=ωj(x),\partial_jf(x) = \int_0^1\big(t\,x^i\,\partial_j\omega_i(tx) + \omega_j(tx)\big)dt = \int_0^1\big(t\,x^i\,\partial_i\omega_j(tx) + \omega_j(tx)\big)dt = \int_0^1\frac{d}{dt}\big(t\,\omega_j(tx)\big)dt = \omega_j(x),

so df=ωdf = \omega. (Higher degrees use a similar homotopy formula; Lee, chapter 17.) On the punctured plane the form

dθ=−y dx+x dyx2+y2d\theta = \frac{-y\,dx + x\,dy}{x^2 + y^2}

is closed but not exact: its integral around the unit circle is 2π2\pi, while the integral of an exact form dfdf around any closed curve is 00 by Stokes. The notation dθd\theta is a warning, not a contradiction: the angle θ\theta exists only locally (7A.4 The Fundamental Group, 5A.2 Cauchy’s Theorem and Its Consequences). In degree two the Poincaré lemma has a physical meaning. A magnetic field BB on R3\mathbb{R}^3 with div⁡B=0\operatorname{div}B = 0 is a closed 2-form, so it has a vector potential AA, a 1-form with dA=BdA = B, curl⁡A=B\operatorname{curl}A = B in vector language. On a star-shaped region the homotopy formula gives one explicitly, A(x)=∫01t B(tx)×x dtA(x) = \int_0^1t\,B(tx)\times x\,dt, and any other differs from it by a gradient. On a region with a hole, such as the outside of a sphere containing a magnetic monopole, a divergence-free field need not have a global vector potential: the flux through the enclosing sphere is a non-zero integral of a closed 2-form over a closed surface, which Stokes' theorem forbids for exact forms. Dirac's analysis of monopoles in 1931 turned on this obstruction, which is the second de Rham cohomology of R3\mathbb{R}^3 minus a point, and it showed that a monopole's existence would force electric charge to be quantised.

The de Rham cohomology groups HdRk(M)={closed k-forms}/{exact k-forms}H^k_{\mathrm{dR}}(M) = \{\text{closed }k\text{-forms}\}/\{\text{exact }k\text{-forms}\} measure the failure of closed forms to be exact; de Rham's theorem identifies them with the homology of 7A.9 Homology in Brief, over R\mathbb{R}. A closed 1-form whose integral around every loop vanishes is exact, so HdR1(M)=0H^1_{\mathrm{dR}}(M) = 0 on a simply connected manifold: the form dθd\theta exists on the punctured plane because a loop goes around the hole.

Closed and exact in physics. A force field is conservative when its work 1-form ω=Fi dxi\omega = F_i\,dx^i is exact, ω=−dU\omega = -dU, and then the work done along a path depends only on its endpoints. Being closed, dω=0d\omega = 0, is the local condition, curl-free in R3\mathbb{R}^3, and on a simply connected region it suffices. The magnetic field of a long straight current along the zz-axis is curl-free away from the wire, but its circulation round the wire is proportional to the current, by Ampère's law, so on the region outside the wire, which is not simply connected, it is closed and not exact: it is a multiple of dθd\theta, the example above (7A.11 Cohomology and Poincaré Duality). Thermodynamics offers the opposite case. The first law writes the change of internal energy as dU=δQ−p dVdU = \delta Q - p\,dV, where the heat added δQ\delta Q is a 1-form on the space of states that is not closed, so heat is not a function of state, and the net heat absorbed in a cycle is not zero. The net work done by an engine running round a cycle is ∮p dV\oint p\,dV, which by Stokes' theorem equals the area enclosed by the cycle in the (V,p)(V, p)-plane; this is why engineers measured the work of steam engines by tracing their indicator diagrams with planimeters, the instrument of the opening world box. The second law adds that δQ/T\delta Q/T is closed, indeed exact, δQ/T=dS\delta Q/T = dS with SS the entropy: the temperature is an integrating factor for heat, which Carathéodory's approach derives from the integrability of a distribution (8A.6 Flows and the Lie Derivative).

Symplectic forms. A closed 2-form that is non-degenerate at every point is a symplectic form, and the model is ω=dpi∧dqi\omega = dp_i\wedge dq^i on phase space (8A.3 Tangent Vectors and Bundles). For a Hamiltonian vector field XHX_H, defined by ιXHω=dH\iota_{X_H}\omega = dH (up to a sign convention), Cartan's formula gives LXHω=d(ιXHω)+ιXHdω=d(dH)+0=0\mathcal L_{X_H}\omega = d(\iota_{X_H}\omega) + \iota_{X_H}d\omega = d(dH) + 0 = 0: Hamiltonian flows preserve the symplectic form, and with it its top power ωn\omega^n, a volume form, which is Liouville's theorem of 8A.6 Flows and the Lie Derivative in two lines. In two dimensions a symplectic form is just an area form, and a symplectic map is an area-preserving one. In higher dimensions symplectic maps are far more rigid than volume-preserving ones: Gromov's non-squeezing theorem (1985) says that a ball of radius rr in R2n\mathbb{R}^{2n} cannot be mapped symplectically into a cylinder {q12+p12<R2}\{q_1^2 + p_1^2 < R^2\} with R<rR < r, although a volume-preserving map can do so easily. Classical mechanics thus preserves more than volume, and the extra rigidity is a theorem about a closed 2-form.

Computing de Rham cohomology. A few examples show what the groups measure. On a connected manifold, HdR0H^0_{\mathrm{dR}} is the closed functions, df=0df = 0, which are the constants: R\mathbb{R}. On the circle every 1-form is closed, and ω=f(θ) dθ\omega = f(\theta)\,d\theta is exact exactly when ∫02πf dθ=0\int_0^{2\pi}f\,d\theta = 0, since then ∫0θf\int_0^\theta f is a periodic primitive; so H1(S1)≅RH^1(S^1) \cong \mathbb{R}, detected by the integral round the circle. On the torus R2/Z2\mathbb{R}^2/\mathbb{Z}^2 the forms dxdx and dydy are closed and not exact (their integrals over the two circles are 11 and 00, and 00 and 11), and every closed 1-form is a combination of them plus an exact form, so H1(T2)≅R2H^1(T^2) \cong \mathbb{R}^2, matching H1(T2)=Z2H_1(T^2) = \mathbb{Z}^2 of 7A.9 Homology in Brief. In the top degree, on a closed connected oriented nn-manifold, an nn-form is exact exactly when its integral is zero, so integration gives an isomorphism HdRn(M)≅RH^n_{\mathrm{dR}}(M) \cong \mathbb{R}. One direction is Stokes' theorem; the other, that a form with zero integral is dd of something, is a theorem whose proof uses a partition of unity and the Poincaré lemma with compact supports. In general, de Rham's theorem says that integrating closed forms over cycles gives a perfect pairing between HdRk(M)H^k_{\mathrm{dR}}(M) and Hk(M;R)H_k(M; \mathbb{R}): a closed form is exact exactly when its integrals over all kk-cycles vanish. The cup product of 7A.11 Cohomology and Poincaré Duality becomes the wedge product of forms, and Poincaré duality becomes the statement that (α,β)↦∫Mα∧β(\alpha, \beta) \mapsto \int_M\alpha\wedge\beta is non-degenerate on cohomology. Computations of these groups by Mayer–Vietoris use the partitions of unity of 8A.2 Partitions of Unity.

Where this goes Every monotonicity formula

Differentiate an integral along a flow, and integrate by parts until the answer is a negative of a square: that is the proof of the energy decay of the heat equation (6A.3 The Heat Equation on ℝⁿ), of entropy production (6A.12 Entropy, Information and Diffusion), and of Perelman's monotonicity of F\mathcal F, whose time derivative along the coupled Ricci flow and conjugate heat equation is 2∫∣Ric⁡+∇2f∣2e−fdV≥02\int|\operatorname{Ric} + \nabla^2f|^2e^{-f}dV \geq 0 (12A.2 Ricci Flow as a Gradient Flow). In each case the integration by parts is the one in Theorem 8.6, sometimes with the weighted measure e−fdVe^{-f}dV (3A.4 Measures, Probability and Weights), for which the rehearsal of this chapter is the first identity.

History

Differential forms were introduced by Élie Cartan in 1899, building on Hermann Grassmann's exterior algebra (1844). The general Stokes theorem took its modern form in Cartan's work and was stated for manifolds in the 1930s; its classical cases are due to Green (1828), Gauss and Ostrogradsky (divergence theorem, 1813–1831) and Kelvin and Stokes (1850–54). Georges de Rham proved his theorem in 1931. Jakob Amsler invented the polar planimeter in 1854. Maxwell published his equations in 1865 and their compact form with differential forms came in the twentieth century; Dirac's monopole argument appeared in 1931, William Hodge's theory of harmonic forms in 1941, Gromov's non-squeezing theorem in 1985, and the finite element exterior calculus of Arnold, Falk and Winther in 2006.

Recall Where we stand

Differential forms are alternating tensors, written with wedge products; the exterior derivative dd satisfies d2=0d^2 = 0 and commutes with pullback, and in R3\mathbb{R}^3 it is grad, curl and div. On an oriented manifold, nn-forms can be integrated independently of charts, and a metric gives the volume form det⁡g dx\sqrt{\det g}\,dx. Stokes' theorem ∫Mdω=∫∂Mω\int_Md\omega = \int_{\partial M}\omega contains the fundamental theorem of calculus, Green, Gauss and Stokes; it is why a planimeter measures area. On a closed Riemannian manifold, ∫div⁡X=0\int\operatorname{div}X = 0, ∫Δu=0\int\Delta u = 0 and ∫fΔu=−∫⟨∇f,∇u⟩\int f\Delta u = -\int\langle\nabla f, \nabla u\rangle: integration by parts without boundary terms. Closed forms need not be exact; dθd\theta on the punctured plane is the example. Wedge products generalise the cross product, pullbacks produce Jacobians (dx∧dy=r dr∧dθdx\wedge dy = r\,dr\wedge d\theta), and Cartan's formula LX=dιX+ιXd\mathcal L_X = d\iota_X + \iota_Xd gives homotopy invariance and divergence. Stokes proves Brouwer's theorem and Cauchy's theorem, computes degrees, winding numbers and the flux of inverse-square fields, and holds exactly on meshes. The Hodge star writes Maxwell's equations as dF=0dF = 0, d⋆F=Jd{\star}F = J; harmonic forms represent cohomology. De Rham cohomology of the circle and torus is computed by integrals; the volume element's second-order term is the Ricci tensor; ωn−1=2πn/2/Γ(n/2)\omega_{n-1} = 2\pi^{n/2}/\Gamma(n/2). Weighted integration by parts, the coarea formula, symplectic forms, the Maurer–Cartan form and the thermodynamics of δQ\delta Q complete the toolkit. 8A.9 The Curvature of Surfaces turns to the curvature of surfaces.

Exercises

Exercise 8.7 dd in R3\mathbb{R}^3

For ff a function, α=a1dx+a2dy+a3dz\alpha = a_1dx + a_2dy + a_3dz and β=b1 dy∧dz+b2 dz∧dx+b3 dx∧dy\beta = b_1\,dy\wedge dz + b_2\,dz\wedge dx + b_3\,dx\wedge dy on R3\mathbb{R}^3, show that dfdf, dαd\alpha, dβd\beta have components ∇f\nabla f, curl⁡a\operatorname{curl}a, div⁡b\operatorname{div}b, and that d2=0d^2 = 0 gives curl⁡∇f=0\operatorname{curl}\nabla f = 0 and div⁡curl⁡a=0\operatorname{div}\operatorname{curl}a = 0.

Solution

df=fx dx+fy dy+fz dzdf = f_x\,dx + f_y\,dy + f_z\,dz: components ∇f\nabla f. dα=∑jdaj∧dxjd\alpha = \sum_jda_j\wedge dx^j; collecting, the coefficient of dy∧dzdy\wedge dz is ∂ya3−∂za2\partial_ya_3 - \partial_za_2, of dz∧dxdz\wedge dx is ∂za1−∂xa3\partial_za_1 - \partial_xa_3, of dx∧dydx\wedge dy is ∂xa2−∂ya1\partial_xa_2 - \partial_ya_1: the components of curl⁡a\operatorname{curl}a in the identification of 2-forms with vectors used for β\beta. dβ=∂xb1 dx∧dy∧dz+∂yb2 dy∧dz∧dx+∂zb3 dz∧dx∧dy=(div⁡b) dx∧dy∧dzd\beta = \partial_xb_1\,dx\wedge dy\wedge dz + \partial_yb_2\,dy\wedge dz\wedge dx + \partial_zb_3\,dz\wedge dx\wedge dy = (\operatorname{div}b)\,dx\wedge dy\wedge dz, since cyclic permutations of three factors are even. Then d(df)=0d(df) = 0 says curl⁡∇f=0\operatorname{curl}\nabla f = 0, and d(dα)=0d(d\alpha) = 0 says div⁡curl⁡a=0\operatorname{div}\operatorname{curl}a = 0.

Exercise 8.8 Forms transform by the determinant

Let y=F(x)y = F(x) be a diffeomorphism between open subsets of Rn\mathbb{R}^n. Show that F∗(dy1∧⋯∧dyn)=det⁡(∂yi∂xj)dx1∧⋯∧dxnF^*(dy^1\wedge\dots\wedge dy^n) = \det\big(\frac{\partial y^i}{\partial x^j}\big)dx^1\wedge\dots\wedge dx^n. (Expand dyi=∂yi∂xjdxjdy^i = \frac{\partial y^i}{\partial x^j}dx^j and use the alternating property.)

Solution

F∗(dy1∧⋯∧dyn)=dF1∧⋯∧dFn=∑j1,…,jn∂y1∂xj1⋯∂yn∂xjn dxj1∧⋯∧dxjnF^*(dy^1\wedge\cdots\wedge dy^n) = dF^1\wedge\cdots\wedge dF^n = \sum_{j_1,\ldots,j_n}\frac{\partial y^1}{\partial x^{j_1}}\cdots\frac{\partial y^n}{\partial x^{j_n}}\,dx^{j_1}\wedge\cdots\wedge dx^{j_n}. Terms with a repeated jj vanish; for distinct jj's, (j1,…,jn)(j_1, \ldots, j_n) is a permutation σ\sigma and dxσ(1)∧⋯∧dxσ(n)=sign⁡(σ) dx1∧⋯∧dxndx^{\sigma(1)}\wedge\cdots\wedge dx^{\sigma(n)} = \operatorname{sign}(\sigma)\,dx^1\wedge\cdots\wedge dx^n. The sum ∑σsign⁡(σ)∏i∂yi∂xσ(i)\sum_\sigma\operatorname{sign}(\sigma)\prod_i\frac{\partial y^i}{\partial x^{\sigma(i)}} is the Leibniz formula for det⁡(∂yi∂xj)\det\big(\frac{\partial y^i}{\partial x^j}\big). Combined with the change of variables formula (3A.5 Product Measures and Change of Variables), this shows ∫F∗η=∫η\int F^*\eta = \int\eta for orientation-preserving FF (positive determinant).

Exercise 8.9 Green's theorem

Derive Green's theorem, ∮∂D(P dx+Q dy)=∬D(Qx−Py) dx dy\oint_{\partial D}(P\,dx + Q\,dy) = \iint_D(Q_x - P_y)\,dx\,dy, from Stokes' theorem. Deduce that the area of DD is 12∮∂D(x dy−y dx)\frac12\oint_{\partial D}(x\,dy - y\,dx).

Solution

d(P dx+Q dy)=Py dy∧dx+Qx dx∧dy=(Qx−Py) dx∧dyd(P\,dx + Q\,dy) = P_y\,dy\wedge dx + Q_x\,dx\wedge dy = (Q_x - P_y)\,dx\wedge dy. For the area, take P=−y2P = -\frac y2, Q=x2Q = \frac x2, so Qx−Py=1Q_x - P_y = 1.

Exercise 8.10 A planimeter in a formula

Use the area formula of Exercise 8.9 to compute the area of the ellipse x=acos⁡tx = a\cos t, y=bsin⁡ty = b\sin t. Then show that for any 1-form ω\omega with dω=dx∧dyd\omega = dx\wedge dy, ∮∂Dω\oint_{\partial D}\omega is the area of DD: two such forms differ by a closed form, whose integral around ∂D\partial D is zero.

Solution

x dy−y dx=ab(cos⁡2t+sin⁡2t) dtx\,dy - y\,dx = ab(\cos^2t + \sin^2t)\,dt, so the area is 12∫02πab dt=πab\frac12\int_0^{2\pi}ab\,dt = \pi ab. If dω1=dω2=dx∧dyd\omega_1 = d\omega_2 = dx\wedge dy, then d(ω1−ω2)=0d(\omega_1 - \omega_2) = 0, and by Stokes ∮∂D(ω1−ω2)=∬Dd(ω1−ω2)=0\oint_{\partial D}(\omega_1 - \omega_2) = \iint_Dd(\omega_1 - \omega_2) = 0.

Exercise 8.11 A product rule for divergence

Show that div⁡(uX)=⟨∇u,X⟩+udiv⁡X\operatorname{div}(uX) = \langle\nabla u, X\rangle + u\operatorname{div}X, using the coordinate formula for the divergence. Deduce Green's identities ∫M(fΔu−uΔf)=∫∂M(f∂νu−u∂νf)\int_M(f\Delta u - u\Delta f) = \int_{\partial M}(f\partial_\nu u - u\partial_\nu f).

Solution

div⁡(uX)=1det⁡g∂i(det⁡g uXi)=Xi∂iu+u1det⁡g∂i(det⁡g Xi)=du(X)+udiv⁡X\operatorname{div}(uX) = \frac{1}{\sqrt{\det g}}\partial_i(\sqrt{\det g}\,uX^i) = X^i\partial_iu + u\frac{1}{\sqrt{\det g}}\partial_i(\sqrt{\det g}\,X^i) = du(X) + u\operatorname{div}X, and du(X)=⟨∇u,X⟩du(X) = \langle\nabla u, X\rangle. Apply the divergence theorem to X=f∇u−u∇fX = f\nabla u - u\nabla f: div⁡X=⟨∇f,∇u⟩+fΔu−⟨∇u,∇f⟩−uΔf=fΔu−uΔf\operatorname{div}X = \langle\nabla f, \nabla u\rangle + f\Delta u - \langle\nabla u, \nabla f\rangle - u\Delta f = f\Delta u - u\Delta f, and ⟨X,ν⟩=f∂νu−u∂νf\langle X, \nu\rangle = f\partial_\nu u - u\partial_\nu f.

Exercise 8.12 A closed form that is not exact

Show that dθ=−y dx+x dyx2+y2d\theta = \frac{-y\,dx + x\,dy}{x^2 + y^2} is closed on R2∖{0}\mathbb{R}^2\setminus\{0\} and that ∮∣z∣=1dθ=2π\oint_{|z|=1}d\theta = 2\pi. Conclude it is not exact. On the plane with the negative xx-axis removed, find a function θ\theta with dθd\theta equal to this form.

Solution

With ω=P dx+Q dy\omega = P\,dx + Q\,dy, P=−yr2P = \frac{-y}{r^2}, Q=xr2Q = \frac{x}{r^2}: Qx=r2−2x2r4=y2−x2r4Q_x = \frac{r^2 - 2x^2}{r^4} = \frac{y^2 - x^2}{r^4} and Py=−r2+2y2r4=y2−x2r4P_y = \frac{-r^2 + 2y^2}{r^4} = \frac{y^2 - x^2}{r^4}, so dω=(Qx−Py) dx∧dy=0d\omega = (Q_x - P_y)\,dx\wedge dy = 0. On the unit circle x=cos⁡tx = \cos t, y=sin⁡ty = \sin t: ω=(sin⁡2t+cos⁡2t) dt\omega = (\sin^2t + \cos^2t)\,dt, so the integral is 2π2\pi. If ω=df\omega = df, then ∮df=0\oint df = 0 around any closed curve (Stokes, or the fundamental theorem of calculus along the curve), so ω\omega is not exact. On the plane minus the negative xx-axis, the angle θ∈(−π,π)\theta \in (-\pi, \pi), given by θ=2arctan⁡yx+r\theta = 2\arctan\frac{y}{x + r}, is smooth, and differentiating (tan⁡θ=yx\tan\theta = \frac yx where x≠0x \neq 0) gives dθ=ωd\theta = \omega.

Exercise 8.13 Rehearsal: integrating by parts against e−fe^{-f}

Let (M,g)(M, g) be closed and ff a smooth function. (a) Show that ∫M∣∇f∣2e−f dV=∫MΔf e−f dV\int_M|\nabla f|^2e^{-f}\,dV = \int_M\Delta f\,e^{-f}\,dV. (Apply ∫div⁡X=0\int\operatorname{div}X = 0 to X=∇f e−fX = \nabla f\,e^{-f}, or apply ∫Δ(e−f)=0\int\Delta(e^{-f}) = 0.) (b) More generally show ∫⟨∇u,∇v⟩e−f=−∫u Δfv e−f\int\langle\nabla u, \nabla v\rangle e^{-f} = -\int u\,\Delta_fv\,e^{-f}, where Δfv=Δv−⟨∇f,∇v⟩\Delta_fv = \Delta v - \langle\nabla f, \nabla v\rangle is the weighted Laplacian. This identity is used inside the monotonicity of Perelman's F\mathcal F-functional (12A.2 Ricci Flow as a Gradient Flow); with the Gaussian weight on Rn\mathbb{R}^n, Δf\Delta_f is the Ornstein–Uhlenbeck operator of 6A.12 Entropy, Information and Diffusion.

Solution

(a) Δ(e−f)=div⁡(−e−f∇f)=e−f∣∇f∣2−e−fΔf\Delta(e^{-f}) = \operatorname{div}(-e^{-f}\nabla f) = e^{-f}|\nabla f|^2 - e^{-f}\Delta f, and its integral is 00. (b) div⁡(u e−f∇v)=e−f⟨∇u,∇v⟩+u e−fΔv−u e−f⟨∇f,∇v⟩\operatorname{div}(u\,e^{-f}\nabla v) = e^{-f}\langle\nabla u, \nabla v\rangle + u\,e^{-f}\Delta v - u\,e^{-f}\langle\nabla f, \nabla v\rangle, and its integral vanishes.

Free resources for this chapter

Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.

Read

Watch 4 lectures and talks

© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.