Green's, Stokes', and divergence theorems
Relate interior derivatives to oriented boundary integrals while checking domains, regularity, and signs.
On this page
The question for today
What you’ll understand
- Select the boundary theorem that matches circulation or outward flux.
- Coordinate boundary orientation with the chosen normal.
- Detect singularities or missing boundary pieces that invalidate a shortcut.
Local derivative information and global boundary measurements are linked because contributions on neighboring interior boundaries cancel. Green's theorem expresses this in the plane, Stokes' theorem on an oriented surface, and the divergence theorem for a solid region. These are computational tools and structural statements about conservation. Their usefulness depends on choosing compatible orientation and verifying that the field is defined and regular throughout the relevant region, not merely along its visible edge.
Green's theorem turns planar circulation into accumulated curl
For a bounded planar region with a simple piecewise smooth boundary oriented counterclockwise, and a C¹ field (P,Q) on an open neighborhood of the closure, Green's circulation theorem equates the boundary integral P dx+Q dy with the area integral of Qx−Py. A sufficient classroom setting is a region assembled from finitely many ordinary smooth pieces with no pathological boundary. Internal edges appear twice with opposite orientations and cancel, explaining why only the external boundary remains. With holes, include every boundary component and orient inner boundaries clockwise.
The field must be defined on the interior as required by the theorem. The punctured-plane field (−y/r²,x/r²) has zero scalar curl away from the origin but nonzero circulation around the unit circle. Applying Green's theorem to the full disk would be invalid because the field is undefined at its center. Applying it to an annulus is valid, and the clockwise inner-boundary contribution cancels the outer one. Removing a singular point is therefore not harmless merely because a point has zero area; its surrounding topology and field behavior matter.
Stokes' theorem requires a compatible surface orientation
For an oriented piecewise smooth surface S with piecewise smooth boundary and a C¹ vector field on a neighborhood of S, Stokes' theorem equates boundary circulation with surface flux of curl. A standard sufficient setting uses finitely many regular smooth patches with compatible orientations and well-behaved edges. The boundary direction follows the right-hand rule relative to the normal. Reversing the normal also reverses the boundary direction, so both sides change sign together. Choosing a normal and then independently choosing the opposite boundary convention breaks the identity's bookkeeping.
Stokes' theorem can replace a difficult surface by an easier one with the same oriented boundary, provided the field is regular on the replacement and each surface meets the hypotheses. It does not authorize stretching a surface through an excluded singularity. A closed surface has empty boundary, so its curl flux is zero under these assumptions. This is consistent with divergence of curl being zero for sufficiently smooth fields, although the two statements are at different levels: one integrates a first derivative over a surface, and the other differentiates again pointwise.
The divergence theorem closes a control volume
The divergence theorem equates total outward flux across the complete boundary of a bounded solid region with the volume integral of divergence. A standard sufficient region has a piecewise smooth boundary and can be decomposed into finitely many regular pieces; the field is C¹ on a neighborhood of its closure. Internal faces cancel as in the planar argument. If a calculation asks for flux through only a curved cap, adding a flat closing disk may make the volume integral easy, but the closing disk's oriented flux must then be subtracted.
A theorem-selection checklist begins with the quantity being integrated. Tangential circulation around a planar loop suggests Green; circulation around a spatial boundary suggests Stokes; outward flux through a closed surface suggests divergence. Next verify the full boundary, orientation, and field domain. Finally choose the easier side to compute. These results do not imply that every field with zero boundary integral is zero inside, because cancellations can occur. They relate totals of specific derivatives and boundary components, not a complete reconstruction of the field from one number.
Work it through
Two independent boundary checks
Check Stokes' theorem for F=(−y,x,0) on the upward unit disk, and the divergence theorem for G=(x,y,z) on the unit ball.
For F, curl is (0,0,2). Its upward flux over the unit disk is twice the disk area, giving 2π. The compatible boundary is the counterclockwise unit circle viewed from above.
On that circle, r=(cos t,sin t,0) and F(r)=r′, so F·r′=1 and circulation is 2π, matching the curl flux.
For G, divergence is 3 and unit-ball volume is 4π/3, giving volume integral 4π. On the sphere, G is the outward unit normal, so outward flux is sphere area 4π.
Both identities agree with direct calculations. The disk uses an upward normal and counterclockwise edge; the ball uses its complete outward sphere boundary.
The living notebook
Explore the model
Interactive lab · fields
Predict a circle circulation from a rotation component
Reset, set q=0 and Ω=0.5. Predict scalar curl 1 and counterclockwise unit-circle circulation π. Compare a fresh run with Reset, q=0, Ω=−0.5, predicting circulation −π. The two-dimensional arrow field illustrates the sign and local rotation; it does not evaluate the contour integral or implement arbitrary Stokes surfaces.
- Fx at (1, 0)
- 0.833
- Fy at (1, 0)
- 0.5
- Field magnitude there
- 0.972
The softened illustration is q·r/(r² + 0.2) + Ω(−y, x). Moving markers indicate local direction, not integrated particle paths or a Maxwell solution. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forCompatible orientation makes the integrated local rotation agree with the signed boundary circulation.
Pause & reason
Check your understanding
Your turn
Try it yourself
For F=(x,y,z), find outward flux through the curved upper unit hemisphere, without integrating its parametrization. Include the closing disk and explain its contribution.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Use the upper half-ball as the closed volume. Its flat base has outward normal pointing downward.
Compare with the solution
The divergence is 3 and upper-half-ball volume is 2π/3, so total closed-boundary flux is 2π. On the base disk z=0, F=(x,y,0) has zero dot product with downward normal (0,0,−1), giving zero base flux. Subtracting that contribution leaves curved-hemisphere flux 2π. The curved surface alone was not a closed boundary; introducing and evaluating the disk made the divergence theorem applicable.
Keep the idea
Take it with you
- Boundary theorems equate particular interior derivatives with particular oriented boundary totals.
- Field regularity must cover the relevant interior or spanning surface, including potential singularities.
- Closing a surface introduces a boundary contribution that must be retained or explicitly shown to vanish.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.