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.

22 min read · Updated Oct 3, 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

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.7). 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.

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}.

It is independent of coordinates, and satisfies

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)

for every smooth map FF, where F∗F^* is the pullback of forms (8A.6 Flows and the Lie Derivative). 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.4).

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.5), 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. 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.

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.2 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. (Sketch; Lee, chapter 16.) By a partition of unity it suffices to prove it for ω\omega supported in one chart, either an open subset of Rn\mathbb{R}^n (interior) or of the half-space {xn≥0}\{x^n \geq 0\} (boundary). Write ω=∑iωi dx1∧⋯∧dxi^∧⋯∧dxn\omega = \sum_i\omega_i\,dx^1\wedge\dots\wedge\widehat{dx^i}\wedge\dots\wedge dx^n; then dω=∑i(−1)i−1∂iωi dx1∧⋯∧dxnd\omega = \sum_i(-1)^{i-1}\partial_i\omega_i\,dx^1\wedge\dots\wedge dx^n. Integrate each term first in xix^i by the fundamental theorem of calculus (2A.11 The Riemann Integral): the compact support kills every term except, in the half-space, the i=ni = n term, which leaves exactly the integral of ω\omega over {xn=0}\{x^n = 0\} with the induced orientation.

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.

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.6). 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.

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),

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.3 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.8) 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.5 Weak Solutions and Elliptic Regularity, 9A.6 The Laplacian and the Bochner Formula). 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.4 Maximum Principles, 9B.7 The Heat Equation on a Manifold).

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). 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). 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.8 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.

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.10 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.3, 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.

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. 8A.9 The Curvature of Surfaces turns to the curvature of surfaces.

Exercises

Exercise 8.4 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.

Exercise 8.5 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.)

Exercise 8.6 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.7 A planimeter in a formula

Use the area formula of Exercise 8.6 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.8 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).

Exercise 8.9 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.

Exercise 8.10 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.10 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.

© 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.