Stokes’ theorem shares three important attributes with many fully evolved major theorems: 1. It is trivial. 2. It is trivial because the terms appearing in it have been properly defined. 3. It has significant consequences.
In the last two chapters you met a curious kind of calculus that lives on the edges of a graph. You put heights on the vertices, took differences along the edges, and discovered that some edge labellings could not come from any heights at all — the impossible staircase. That discrete calculus has an older, smooth sibling: the calculus of slopes, flows, areas and volumes that engineers and physicists have used for three centuries. This chapter rebuilds it from nothing, in a language called differential forms. In that language the calculus can feel the shape of the space it lives on, holes and all.
Here is a puzzle to carry with you. In 1854 the Swiss mathematician Jakob Amsler introduced the polar planimeter: two hinged arms, a pointer and a small measuring wheel (Foote et al. 2013). Set its pivot down beside a field on a map, trace the field’s outline once round with the pointer, and the wheel reports the field’s area. The instrument never visits the inside. How can it know what is in there?
The answer is a theorem about insides and boundaries, which comes in four famous versions: the fundamental theorem of calculus, Green’s theorem, Stokes’ theorem and the divergence theorem. In the language of forms all four collapse into one line, You do not need to remember any calculus: we relearn slopes and areas with pictures first, and only then jump to forms.
A calculus refresher in pictures
We need three ideas from ordinary calculus: the derivative (a rate), the integral (a total), and the theorem that links them. If you already know them, skim this section for the pictures, because the pictures are what we will generalise.
Slopes and rates
Imagine walking along a hilly road. Let be your height above sea level when you are at horizontal position Between two nearby positions and the road rises by over a horizontal distance so its average steepness there is
As shrinks towards this ratio settles down (for the smooth roads we will consider) to a single number, the derivative read “ prime of and also written It is the slope of the graph at positive going uphill, negative going downhill, zero at a summit. If were your position along a straight road at time instead, would be your velocity: the number on the speedometer, with a minus sign while you are reversing.
Try it on the parabola The rise over a run is and as shrinks this settles to At the parabola climbs 6 units for every unit of run; at it is momentarily flat. The same expansion gives the slope and in general the slope Constant factors ride along ( has slope and a sum has the sum of the slopes. That is nearly all the differentiating this chapter will ask of you.
Here is the reformulation that matters for this chapter. Turn the definition around: for a small step (read “delta a small change in the change in height is approximately
So the derivative is a little machine: feed it a small step, and it predicts how much you will climb. Notice that the prediction is linear in the step — twice the step, twice the climb; a step backwards, a negative climb. Keep this machine in mind. It is the seed from which differential forms grow.
Totals
The second idea runs the other way: from a rate to a total. If you know your speed at every moment, how far did you travel? At a steady 60 kilometres an hour for 2 hours the answer is 120 kilometres: speed times time, the area of a 2-by-60 rectangle under the graph of speed. When the speed varies, chop the time into many short pieces of length on each piece the speed hardly changes, so distance speed add the pieces up. As the pieces get shorter, these sums approach a single number. For a function on an interval cut the interval into equal pieces of width pick a point in the -th piece, and let grow: the limit is the integral
The long S, is an old-fashioned letter S for “sum”; and are where the adding starts and stops; remembers the little widths In a picture, each term is the area of a thin rectangle, so the integral is the area under the graph of — with the convention that area below the axis counts as negative.
The fundamental theorem
Now put the two ideas together. Take the slope of our road, and add up the predicted rises across the interval from to Each predicted rise is close to the actual rise on its piece, and the actual rises add up in a wonderfully lazy way. With three pieces,
Every intermediate height appears once with a plus sign and once with a minus sign, and cancels. Only the two ends survive. Sums that collapse like this are called telescoping, after the way a pocket telescope folds up. Letting the pieces shrink gives the most important theorem of calculus.
Read the theorem as a sentence about insides and boundaries. The left side adds up a derivative over the inside of the interval The right side looks only at the boundary of the interval — its two endpoints — counting the end with a plus sign and the start with a minus sign. You have seen exactly this signed boundary before: in §3.2 Chains and the Boundary Operator the boundary of an edge was Hold on to this sentence. The rest of the chapter is about making it true in every dimension:
Arrows everywhere: vector fields and work
Slopes in two directions
A landscape is a function of two variables: the height at the point with east–west coordinate and north–south coordinate Standing at a point, the slope depends on which way you face. Two directions are especially easy. Walking due east, stays fixed while changes, and the slope you feel is the partial derivative read “partial partial It is computed exactly like an ordinary derivative while pretending is a constant. Walking due north gives For example, if then (the rides along like the 5 in and We will often shorten these to and
For a small step in any direction, the change in height is approximately the eastward part of the step times the eastward slope, plus the northward part times the northward slope:
Again a machine that eats a step and predicts a climb — and again linear in the step. The two slopes are often packaged as an arrow, the gradient (the symbol is read “nabla” or simply “grad”). The gradient points straight uphill, its length is the steepness, and it is perpendicular to the contour lines of the map, along which the height does not change.
Arrows everywhere
A vector field is a choice of arrow at every point: the wind on a weather map, the current in a river, the gravitational pull at each point of space. In the plane we write it as at the point the arrow goes units east and units north. Bold letters like are a reminder that the value is an arrow, not a number.
The gradient of a landscape is one example. Others are the rotation which spins the plane counterclockwise, and the source which streams out of the origin. Figure 4.3.2 shows them as they are best seen: alive. The particles ride along the arrows, and the streaky texture behind them traces the flow lines everywhere at once.
Work along a path
Suppose is a force and you carry an object along a path (the Greek letter gamma). On a short straight step the work done by the force is the part of the force pointing along the step, times the length of the step. In coordinates this is the dot product
Pushing with the motion counts positively, against it negatively, sideways not at all. Chop the path into many small steps, add up the work of each, and let the steps shrink: the result is the line integral
A path has a direction of travel, and walking it backwards reverses every step and flips the sign of the answer. When is a closed loop we write with a little circle on the integral sign.
Now suppose the force is a gradient, Then the work of each small step is approximately the change of on that step, the changes telescope exactly as on the road, and
This is the fundamental theorem again, now along a curved path in the plane. It has two striking consequences. The work does not depend on the route, only on where you start and finish. And around any closed loop, where the start is the end, the work is zero. Fields with these properties are called conservative. Gravity near the ground is one, with the weight times the height with a minus sign because gravity pulls down. Haul a suitcase up three flights of stairs by any route you like, and gravity does the same (negative) work.
Swirl and spread: three famous theorems
The loop integral around a closed curve deserves a name: it is the circulation of around the curve, the total push you feel going round. Since a gradient has zero circulation around every loop, circulation is a test for “being a gradient”. But a loop is a global thing. Is there a local quantity, measured at single points, that adds up to the circulation?
Circulation and curl
Shrink the loop to a tiny square of side with its lower-left corner at and walk it counterclockwise. Along the bottom edge (going east) the work is about along the top edge (going west) about Together they give The right and left edges similarly give So the circulation around the tiny square is approximately
A physical picture: drop a tiny paddle wheel into the flow. It turns counterclockwise where the curl is positive, clockwise where it is negative, and the rate at which it turns is exactly half the curl. For the rotation the curl is everywhere. For the shear it is the flow lines are straight, but the water above the wheel moves faster than the water below it, so the wheel turns clockwise. Switch on the curl colouring in Figure 4.3.2 and watch.
The vortex of Figure 4.3.2, springs the opposite surprise. It is roughly how water swirls round a plughole, and its flow lines are circles, yet its curl is everywhere it is defined (everywhere except the origin). The water near the centre moves faster than the water farther out, by exactly enough to cancel the turning, so a paddle wheel carried round the plughole keeps facing the same way. Curl measures the spin of a tiny wheel, not the bending of the flow lines. We will meet this field again.
For a gradient, and so the difference of the two “mixed” second derivatives, taken in the two possible orders. Try it on differentiating by gives and differentiating by gives as well. For every function with continuous second derivatives the two orders agree — a classical fact usually credited to Schwarz or Clairaut — so a gradient has zero curl everywhere. Zero curl is the local shadow of having zero circulation.
Flux and divergence
Circulation measures flow along a curve. The other natural question is how much flows across it. The flux of out of a closed curve is where is the outward-pointing unit arrow perpendicular to the curve and is the length of a small piece. Back to the tiny square. Fluid leaves through its east edge at a rate of about and enters through the west edge at about a net outflow of about the north and south edges compare in the same way. So the outward flux of a tiny square is about
The divergence is the outflow per unit area: positive at a source, where fluid appears; negative at a sink, where it disappears. The source has divergence everywhere; the rotation has divergence
Green’s theorem
Here is the idea that turns local into global. Take a region in the plane and tile it with tiny squares. Add up the circulations of all the tiles. Each interior edge belongs to two neighbouring tiles, which walk it in opposite directions, so its contributions cancel. Only the edges on the outer boundary survive, and they make up the counterclockwise walk around the boundary of written On the other hand, each tile’s circulation is about its curl times its area, and these add up to the total curl inside.
The tiling argument is the whole idea of the proof; making “about” precise is a matter of careful estimates. Rather than take it on trust, test it. In Figure 4.3.4 the computer evaluates the two sides independently — one by walking along your curve, the other by adding up over the region inside it — and you can drag the curve wherever you like.
Two very different computations — one along the curve, one over the region inside — and they agree.
In three dimensions
In space a vector field has three components, A tiny loop can now face in any direction, so the curl becomes an arrow, whose component in a direction is the circulation per unit area around a tiny loop facing Hold a paddle wheel in a flow in space and how fast it turns depends on where you point its axle; it turns fastest with the axle along the curl arrow. The divergence is the outflow per unit volume of a tiny box. The tiling argument, with tiny squares on a curved surface or tiny cubes in a solid, gives two more theorems:
In the first, is a surface with boundary curve in the second, is a solid with boundary surface and points outward. The second one is the divergence theorem: what flows out through the skin is what was created inside.
Line up what we have so far:
| Theorem | Inside | Boundary |
|---|---|---|
| Fundamental theorem | ||
| Gradient theorem | ||
| Green / Kelvin–Stokes | ||
| Gauss |
Four theorems, one shape: a derivative integrated over the inside equals the original thing integrated over the boundary. Four different kinds of derivative (slope, gradient, curl, divergence), four kinds of integral (along intervals, curves, surfaces, solids). It is hard to believe this is a coincidence, and it is not. To see the single theorem behind all four, we need the right things to integrate.
Curl and divergence are also the language of fluids. A fluid that cannot be compressed, like water, has a velocity field with everywhere, and measures how it swirls. Newton’s law of motion for such a fluid, with friction included, is the system of Navier–Stokes equations, and one of the most famous problems in mathematics asks whether its solutions can break down.
Covectors and 1-forms: stacks of sheets
Look again at the integrand of a line integral, What is it, really? Not quite the arrow it is a recipe that turns a small step into a number. That recipe is the hero of this section.
Measuring devices
Picture a measuring device for arrows. You hand it an arrow, it hands you back a number, and it respects arrow arithmetic: the reading of a sum is the sum of the readings, and doubling the arrow doubles the reading. Such a device is called a covector. You met covectors in §1.5 Linear Algebra under another name: the covectors on a vector space are the elements of its dual space the linear functions from to the numbers.
In the plane there are two especially simple measuring devices. The covector reads off how far east an arrow goes, and reads off how far north:
Every covector on the plane is a combination with For instance, with and
How should you picture a covector? An arrow is the wrong picture. Draw instead the lines where the linear function takes the values a stack of evenly spaced parallel lines, with a marked direction in which the value increases. Then is the number of lines the arrow crosses, counted positively in the marked direction and negatively against it. A large covector is a dense stack; is the stack of vertical lines one unit apart. The picture was made famous by the physics textbook Gravitation by Charles Misner, Kip Thorne and John Wheeler, who draw a 1-form as a family of surfaces and its value on an arrow as the number of surfaces the arrow pierces (Misner et al. 1973).
A covector at every point
The most important example comes from a function. Our “step in, climb out” machine is exactly a 1-form, the differential of
Apply this to the function its partial derivatives are and so The basic covector really is “ of which justifies the notation.
The stack picture now becomes a map. A 1-form is a field of tiny stacks, one at each point. For the stacks fit together into the level curves of for some small spacing (epsilon): the contour lines of a hiking map. And is the stack of vertical lines “ counts how many -sheets you cross”.
Integrating a 1-form
A 1-form eats small steps, so it can be added up along a path: chop the oriented curve into small steps starting at points add up and refine. The limit is For it is the same number as the work of the field — but notice that no arrows were needed. The 1-form is the thing you integrate along curves. In practice, if for then
and the answer does not depend on how fast you travel along only on the route and its direction.
In the stack picture, is the net number of sheets the path crosses (forwards minus backwards), each sheet worth For crossing level curves from to gives the gradient theorem in its most memorable form:
The wedge product: oriented area and volume
A 1-form measures tiny arrows, so it can be integrated along curves. To integrate over a surface we need something that measures tiny parallelograms. Since a parallelogram is spanned by two arrows, we want a measuring device that eats two arrows and returns an area.
Oriented area
The parallelogram spanned by and has area Drop the absolute value and you get the signed area the determinant of the matrix with columns and from §1.5 Linear Algebra. Its sign records an orientation: it is positive when turning from to is a counterclockwise turn, and negative when it is clockwise. Three rules make the signed area tick: swapping and flips its sign; if is parallel to the area is and it is linear in each arrow separately.
Directly from the formula: and so in particular and These two rules are all you need to compute. For example,
Out pops the determinant of the coefficients. So
2-forms, 3-forms, k-forms
A 2-form on the plane is a smoothly varying multiple of say It is integrated over a region by chopping into tiny parallelograms, measuring each, and adding: if carries the standard counterclockwise orientation, is the ordinary area integral and reversing the orientation flips the sign.
In space, with coordinates there is more room:
- 1-forms measure arrows, and are integrated along curves.
- 2-forms measure parallelograms. Each basic piece measures a shadow: gives the signed area of the parallelogram’s shadow on the floor (the -plane), its shadow on the -wall, on the -wall. They are integrated over surfaces.
- 3-forms measure boxes: gives the signed volume of the box spanned by three arrows, the determinant. They are integrated over solids.
Counting the basic pieces gives in degrees a row of Pascal’s triangle. In dimensions a k-form measures tiny oriented -dimensional parallelepipeds, there are basic ones, and there are no nonzero -forms with because some would have to appear twice and The space of -forms on is written
The exterior derivative: where sheets end
We have one derivative already: turns a function into the 1-form and is the fundamental theorem in the new language. Green’s theorem asks for the next rung. Whatever “ of a 1-form” turns out to be, its integral over a region ought to equal the integral of the 1-form round the region’s edge. For that means it had better be the curl, One short rule delivers exactly this, and keeps working in every degree: differentiate the coefficient, and wedge the result onto what was already there.
Let us compute it for a general 1-form in the plane, By the rule,
Two of the four products contain or and vanish, and leaving
There is the curl, produced by a rule that never mentioned it. For example, Now Green’s theorem can be written without a single arrow:
Where sheets end
What does look like? Take whose integral around a loop measured area in the planimeter example. Its covectors are multiples of so its sheets are horizontal lines; but at horizontal position the stack is times as dense as the stack of so the lines crowd together as you move right. Horizontal lines whose density grows towards the right cannot all run forever: new lines must begin. Mark each beginning with a dot. The dots turn out to be spread perfectly evenly, one dot for every of area if each sheet is worth and that even sprinkling is the 2-form By contrast the sheets of or the contour lines of any function, never begin or end, and indeed and
The lines crowd together as you move away from the y-axis, so new lines must begin. Every beginning is a dot of dω — and the dots are spread evenly: dω = dx∧dy.
Gradient, curl and divergence are one operator
In space, apply the same rule in each degree:
Read the coefficients: the first line is the gradient, the second the curl, the third the divergence. The three operators of vector calculus, each with its own formula to memorise, are one and the same applied to forms of degree and
d of d is zero
In the language of vector calculus, on functions says and on 1-forms says In the sheet picture it says something lovely: the ends of sheets have no ends. And it should ring a bell. In §3.2 Chains and the Boundary Operator you proved “the boundary of a boundary is empty”, and in §4.1 Cochains: Measuring Shapes its mirror image The exterior derivative belongs to the same family. Whenever an operator squares to zero, its image sits inside its kernel, and the gap between them — the things killed by that are not produced by — is going to measure something.
One last rule, for computing: satisfies a product rule, and more generally when is a -form. You will not need it often in this book.
Pullbacks, manifolds and integration
Pulling forms back along maps
A disk is awkward to chop into little squares, but it is easy to describe in polar coordinates: every point of the disk of radius is for some distance between and and some angle between and So the map takes a plain rectangle of values and wraps it round onto the disk. Can we find the disk’s area, the integral of by working on the rectangle instead? To do that we must move the form from the disk back to the rectangle. The same need arises whenever we integrate over a curved surface, which is never a flat region but can be described by one.
In general, suppose (phi) is a smooth map between regions. A small arrow at a point of is carried by to a small arrow at — its image under the best linear approximation of the matrix of partial derivatives. A form on can then measure arrows in carry them across, and measure their images.
Notice the direction of travel. The map carries points from to but the pullback carries forms the other way, from back to This is our fourth recurring idea, reversed arrows, again: preimages of sets in §1.1 Sets and Functions, transposes of matrices, cochains in §4.1 Cochains: Measuring Shapes — and now forms. Measuring devices always travel against the map.
Two facts make pullbacks indispensable. First, integrals are defined through them: for a curve the recipe for above is exactly Second, pullback respects everything we have built (Lee 2013, ch. 14):
The second identity says that does not care which coordinates you compute it in. That is what allows us to leave flat space.
Forms on manifolds
Recall from §2.4 Manifolds and Surfaces that a smooth manifold of dimension looks, near each point, like a piece of — via charts that overlap smoothly — and that at each point it has a tangent space of little arrows. A -form on is a choice, at every point, of a measuring device that eats tangent arrows, is linear in each, and flips sign when two arrows are swapped — varying smoothly. In each chart it looks exactly like the forms above; on overlaps, the two descriptions are related by pullback along the transition map. Because pullback commutes with the exterior derivative computed in one chart agrees with the one computed in any other, so makes sense on the whole manifold.
To integrate an -form over a compact -dimensional manifold, chop the manifold into pieces that each lie in a chart, pull the form back to on each piece, integrate there, and add. (Doing the chopping smoothly uses a device called a partition of unity, which we will not need to see.) One requirement is essential: the manifold must be oriented, so that every chart agrees on which way round is positive. On a Möbius band there is no consistent choice, and 2-forms cannot be integrated over it.
More generally, a -form can be integrated over any oriented -dimensional piece of a manifold: a curve, a surface, a smooth triangle, or a formal sum of such pieces, by Formal sums of pieces are exactly the chains of Part III. So integration gives a pairing
between -forms and -chains — the same kind of pairing as between cochains and chains in §4.1 Cochains: Measuring Shapes.
Stokes’ theorem in one line
Everything is now in place to state the theorem that this chapter has been circling. An oriented region has a boundary and the boundary inherits an orientation by the rule “outward first”: at a boundary point, an arrow pointing out of followed by the boundary’s own orientation, should give the orientation of In the plane this means walking the boundary counterclockwise, with the region on your left; for an interval it means counts plus and counts minus.
Here is what it says in each dimension, with the old theorems as special cases:
| Stokes’ theorem becomes | ||
|---|---|---|
| an interval | a function | |
| a curve in space | a function | |
| a region in the plane | Green’s theorem | |
| a surface in space | a 1-form | the Kelvin–Stokes theorem |
| a solid in space | a 2-form | the divergence theorem |
Why is it true? You have already seen both reasons. The first is the tiling argument of Figure 4.3.3: chop into tiny cubes; for a single tiny cube the theorem is the fundamental theorem of calculus applied in each direction; and when the cubes are put back together, every interior face is counted twice with opposite orientations and cancels, leaving only The second is the sheet picture of Figure 4.3.8: counts the sheets of entering and leaving through the boundary, each sheet that enters must leave again or end inside, and the ends inside are what counts.
Spivak’s verdict, in the epigraph of this chapter, is that the theorem is trivial — “because the terms appearing in it have been properly defined”. He goes on: “Since this entire chapter was little more than a series of definitions which made the statement and proof of Stokes’ theorem possible, the reader should be willing to grant the first two of these attributes to Stokes’ theorem” (Spivak 1965, p. 104). The difficulty was never in the theorem. It was in finding the right objects — forms, oriented chains — for which it becomes a single honest line.
d and ∂ are mirror images
Write Stokes’ theorem with the pairing
This is exactly the discrete Stokes theorem of §4.1 Cochains: Measuring Shapes, There the coboundary was defined to make it true, and turned out to be the transpose of here the identity is a theorem about honest derivatives and integrals. So differential forms behave like cochains, with in the role of Two consequences follow in one line each, and they are the doorway to the next chapter.
- If is exact and is a cycle ( then Exact forms integrate to zero over every cycle.
- If and is a boundary, then Closed forms integrate to zero over every boundary.
So when a closed form is integrated over a cycle, the answer depends only on the cycle up to boundaries, and only on the form up to exact forms. Integrating closed forms over cycles is a way of pairing homology with something new. That something is de Rham cohomology.
Exercises
Summary
Further reading
- Integration and the fundamental theorem of calculus (Essence of calculus, chapter 8) — Grant Sanderson (3Blue1Brown) freeAn animated explanation of why adding up a rate gives a total, and why the area under a slope is a change in height: the first section of this chapter at a gentler pace. The rest of his Essence of calculus series fills in any calculus you want more of.
- Divergence and curl: the language of Maxwell’s equations, fluid flow, and more — Grant Sanderson (3Blue1Brown) freeAnimated fluid flows that make divergence and curl visible, and a first look at how the two enter Maxwell’s equations. A good companion to Figure 4.3.2.
- A gentle, picture-driven course in forms for students who know some multivariable calculus; the free draft of his Birkhäuser book.
- A Visual Introduction to Differential Forms and Calculus on Manifolds — Jon Pierre FortneyHundreds of figures; chapter 5 is devoted to visualising one-, two- and three-forms. The best next step after this chapter.
- Visual Differential Geometry and Forms — Tristan NeedhamA lavishly drawn tour of curvature, with a final act on forms in the geometric spirit of this chapter.
- Course notes that teach exterior calculus on triangle meshes, where forms literally become cochains and d becomes a transposed boundary matrix. Richly illustrated, with lecture slides and videos on the course website.
- A short essay (from the Princeton Companion to Mathematics) explaining forms as the things you integrate over oriented domains.
- Informal notes, based on a note by Dan Piponi, that draw forms as sheets whose ends are the exterior derivative, with Stokes’ theorem as counting. The idea behind Figure 4.3.8, worked out at length.
- Gravitation — Charles Misner, Kip Thorne and John Archibald WheelerThe physics classic (1973) that taught generations to draw a 1-form as a stack of surfaces and its value on an arrow as the number of surfaces pierced (chapter 2); chapter 4, “Electromagnetism and differential forms”, puts the pictures to work. Graduate-level physics, but the drawings repay browsing.
- Calculus on Manifolds — Michael SpivakA famously compact rigorous treatment, culminating in Stokes’ theorem for chains; the source of this chapter’s epigraph.
- Differential Forms in Algebraic Topology — Raoul Bott and Loring TuThe graduate classic that uses forms to do topology. Read after the next chapter.