Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Counting at the door
How many people are inside a stadium? You could count every seat. Or you could stand at the gates and count everyone who goes in minus everyone who comes out. Both give the same answer, because people don’t appear or vanish inside.
That’s the idea behind the three big theorems of vector calculus. What happens inside a region can be read off its boundary.
- Divergence theorem: the total “spreading out” inside equals the total flow out through the boundary.
- Green’s and Stokes’ theorems: the total “spin” inside equals the total circulation around the edge.
Rocket engines, weather models and re-entry simulations all divide space into small cells and track what crosses each cell’s walls. Because whatever leaves one cell enters its neighbour, mass and energy are conserved exactly. That’s the divergence theorem, built into the code.
- 1. 1000 enter a stadium and 300 leave. The change inside is…
- 2. A loop's circulation equals the total ___ inside.
- 3. No sources inside a closed box means the net outflow is…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.The three theorems
| Theorem | Statement | Dimension |
|---|---|---|
| Green (circulation) | plane region | |
| Green (flux) | plane region | |
| Stokes | surface in 3-D | |
| Divergence (Gauss) | solid in 3-D |
The boundary is oriented counter-clockwise for Green (region on your left), with the right-hand rule for Stokes and outward normals for Gauss.
Example (area from the boundary). Take , so . Then . For a polygon this becomes the shoelace formula .
Example (flux). has , so the flux out of any region is twice its area. For the unit disk that’s .
- 1. Shoelace area of (0,0), (4,0), (4,3), (0,3)?
- 2. ∮(−y, x)·dr around a region of area 5?
- 3. Gauss's theorem relates a volume integral of div F to…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Why they’re true: interior edges cancel
Chop the region into tiny squares. For one tiny square, the circulation around it is approximately its area. That’s the definition of curl as circulation per area (A3.4-1). Now add the circulations of all the squares. Each interior edge is traversed once in each direction by its two neighbours, so those contributions cancel. Only the outer boundary is left. The divergence theorem works the same way, with fluxes through shared faces cancelling.
The pattern behind all of them (and the 1-D fundamental theorem) is the generalized Stokes theorem : integrate a derivative over a region, or the function over its boundary.
Using them
- Compute the easier side. A messy boundary integral of a simple-curl field becomes an area, and vice versa.
- Surface independence (Stokes). Every surface with the same boundary curve has the same curl flux, so swap a hemisphere for a flat disk.
- Regions with holes. The boundary includes the inner curves, oriented clockwise. This is how the vortex gets circulation with zero curl in the annulus: the hole carries it.
- Conservation laws. For a density with flux , the rate of change of mass in is . Applying the divergence theorem for every gives the continuity equation .
- 1. Why do interior edges cancel?
- 2. Flux of curl F through a hemisphere vs the flat disk with the same rim:
- 3. The continuity equation ρₜ + ∇·J = 0 comes from…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof of Green’s theorem (for simple regions)
Suppose . Then
The bottom curve runs left to right (), the top curve right to left (), and the vertical sides contribute nothing to . Symmetrically, with written as -simple, . Adding the two gives Green. General regions are finite unions of simple ones, glued along cancelling edges. ∎
The flux form is Green’s theorem applied to , because . Stokes’ theorem follows by mapping a parameter-domain Green’s theorem onto the surface with the chain rule. Gauss’s theorem is proved like Green’s, one coordinate at a time.
Gauss’s law and the point source
has for . Apply the divergence theorem to the region between any closed surface enclosing 0 and a tiny sphere: the flux through equals the flux through the tiny sphere, which is . In distribution language, . That’s Gauss’s law , and Newtonian gravity’s analogue.
The winding number
For a closed curve avoiding , is an integer: how many times the curve wraps around . By Green on the region minus a small disk, it’s 1 for a counter-clockwise simple loop enclosing and 0 if is outside. This gives a robust point-in-polygon test (Practice Code 5), and it’s the start of complex analysis (residues) and topology (degree theory).
Exercise 3.1: Use the divergence theorem to find the flux of (x, y, z) out of a sphere of radius R
, so the flux is . Directly: on the sphere, times area . ✓
- 1. Green's flux form is Green's circulation form applied to…
- 2. Flux of x/|x|³ through any closed surface around 0:
- 3. Winding number of a counter-clockwise square around an inside point:
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.The finite-volume method
Integrate a conservation law over each grid cell , and use the divergence theorem:
The unknowns are cell averages, and the update is “flux in minus flux out”. The flux leaving cell through a face is exactly the flux entering its neighbour, so the total is conserved to round-off, whatever the accuracy of the flux approximation. This is why finite volumes dominate computational fluid dynamics: aircraft and rocket aerodynamics, combustion chambers, atmospheric and ocean models (LeVeque, 2002). With shocks, non-conservative schemes even converge to the wrong shock speed (Lax and Wendroff, 1960).
More applications
- Robotics geometry:
- The area, centroid and second moments of a polygon (a robot footprint, a support polygon, a link cross-section) come from boundary sums via Green (Practice Code 5).
- Static stability of a walking robot requires the centre-of-mass projection inside the support polygon (McGhee and Frank, 1968), a winding-number test.
- Electromagnetism and sensing:
- Maxwell’s equations in integral form are the theorems applied to and .
- Faraday’s law (Stokes) is how magnetometers, inductive sensors and electric motors work.
- Aerodynamics: Kutta–Joukowski’s lift theorem ties lift per unit span to the circulation around an airfoil.
- Physics-informed and geometric learning:
- Conservation constraints in neural PDE solvers, flux-conservative neural operators, and divergence-free architectures use these theorems (A3.4-4).
- Discrete exterior calculus makes Stokes’ theorem hold exactly on meshes, by definition (Desbrun et al., 2005).
- Boundary methods: the divergence theorem turns volume integrals into surface integrals. That is the basis of boundary element methods (antenna and acoustics design) and of exact asteroid gravity fields from polyhedral shape models (Werner and Scheeres, 1997).
References
- J. E. Marsden, A. Tromba (2011). Vector Calculus, 6th ed. Freeman.
- M. Spivak (1965). Calculus on Manifolds. Benjamin. (Generalized Stokes theorem.)
- R. J. LeVeque (2002). Finite Volume Methods for Hyperbolic Problems. Cambridge.
- P. Lax, B. Wendroff (1960). “Systems of conservation laws.” Communications on Pure and Applied Mathematics, 13.
- R. A. Werner, D. J. Scheeres (1997). “Exterior gravitation of a polyhedron derived and compared with harmonic and mascon gravitation representations of asteroid 4769 Castalia.” Celestial Mechanics and Dynamical Astronomy, 65.
- R. McGhee, A. Frank (1968). “On the stability properties of quadruped creeping gaits.” Mathematical Biosciences, 3.
- M. Desbrun, A. Hirani, M. Leok, J. Marsden (2005). “Discrete exterior calculus.” arXiv:math/0508341.
- J. D. Anderson (2017). Fundamentals of Aerodynamics, 6th ed. McGraw-Hill. (Kutta–Joukowski.)