Vector calculus and conservation laws
A flux field describes transport through oriented surfaces. Conservation converts that boundary transport into a local differential equation. Line integrals, surface integrals and the divergence and Stokes theorems express different aspects of this relationship, with orientation and domain assumptions determining the signs and validity.
1 Line integrals and potentials
For a piecewise curve and continuous vector field , its oriented line integral is
Reversing orientation reverses the sign. Orientation-preserving regular reparameterizations leave it unchanged by the one-variable substitution rule. A field is conservative if for a single-valued differentiable potential on the domain.
Gradient theorem. If is near the curve, then .
Proof. The chain rule makes the integrand . Apply the fundamental theorem on each smooth piece and telescope endpoint values.
Thus closed-loop integrals of conservative fields vanish. If , its gradient has zero curl by equality of mixed partials. The converse needs a domain condition: a curl-free field on an open domain star shaped about one point in has a potential; a full proof for this explicit sufficient domain condition is given below. Curl-free alone is not enough on a domain with holes.
For off the axis, curl is zero, yet its integral around the unit circle is . A global single-valued angular potential does not exist on that domain.
2 Surface integrals divergence and curl
A parameterized surface has oriented area vector where the cross product is nonzero. Its flux is
Changing orientation negates the flux. Scalar area integrals instead use .
For ,
and
Divergence measures net outward flux density; curl records local circulation density with the right-hand orientation convention. They are different operations and have different output types.
3 Boundary theorems with hypotheses
Divergence theorem. For a rectangular box, or a bounded solid with an actual finite compatible graph-slab decomposition satisfying the conditions proved in the parameterized-boundary chapter, and a field on an open neighborhood of its closure,
with outward normal. On a rectangular box, the proof is direct: opposite faces contribute by the fundamental theorem and Fubini. Add the analogous and pairs. The stated finite extension follows by adding those proved pieces and canceling internal faces; arbitrary piecewise smooth regions are not included merely by that phrase. Singularities inside the solid cannot be ignored.
Stokes theorem. For a compact oriented surface given by an actual finite compatible decomposition into the injective regular patches over the Green regions specified below, with compatible oriented boundary and on an open neighborhood of ,
where the boundary orientation follows the right-hand rule from the surface normal. A planar version is Green's theorem: for a plane region in the explicit elementary or finite-decomposition class proved below, with its positive boundary orientation and fields on a neighborhood of its closure,
For an -simple region, integrating gives the difference between top and bottom boundary contributions; the analogous -simple argument handles . Decomposition extends the identity when internal boundary pieces cancel.
Worked check. For , divergence is 3. The outward flux through the sphere of radius is . Directly, and area is , giving the same value.
4 From integral conservation to a local equation
Let be concentration, outward flux per unit area, and local production rate. On any fixed control volume,
If the fields are sufficiently smooth to differentiate under the integral and apply divergence, this becomes . If the integrand is continuous and the identity holds for every small control volume, then
Indeed, a nonzero continuous value would preserve one sign on a small neighborhood, giving a nonzero integral there. With , the equation is . When with constant scalar , it simplifies to . Spatially variable coefficients and anisotropic tensors must remain inside the divergence.
A proved domain condition for a potential
In this chapter use the following explicit sufficient domain condition. An open set is star shaped about if every segment , , stays in for . For a curl-free field on such a set define
For a fixed , its compact segment has a small neighborhood inside . Continuity of the first derivatives there justifies differentiating this fixed-interval integral: difference quotients converge uniformly in by the coordinate mean value theorem and uniform continuity. The th partial derivative of the integrand is . Zero curl gives , so this is . Integration gives . Hence . This proves the converse on star-shaped domains. No proof for every simply connected domain is asserted here; that broader topological extension would require an additional path/homotopy argument. The punctured-axis example fails even the existence of any global potential, by its nonzero loop integral.
Green's theorem on an explicit finite class
For the boundary results below, an elementary plane region has a compact Jordan closure, a positively oriented piecewise boundary, and both a vertical-strip description , and a horizontal-strip description , with continuous boundary graphs. Endpoint vertical or horizontal tangents are allowed when the boundary arcs themselves are piecewise under regular parameterizations. Finite regions assembled from such pieces are admitted when interiors are disjoint and every shared boundary arc is paired with the opposite orientation. Rectangles and disks are examples. Assume are on an open neighborhood of the closure.
The fundamental theorem on every vertical interval gives
The bottom boundary runs to the right and the top to the left; any vertical end pieces have . Similarly, horizontal intervals give
These iterated integrals equal the Jordan integrals: extend the continuous integrand by zero to a containing rectangle, bound the iterated value between its cellwise lower and upper sums, and use uniform continuity on interior cells plus the vanishing total area of cells meeting the Jordan boundary. If an endpoint tangent is vertical in a graph parameter, first truncate that arc away from its endpoints; boundedness of times the omitted arc lengths makes the endpoint contribution vanish. Adding the identities proves Green. On the stated finite decompositions, interior line integrals cancel and area integrals add, proving the extension. The flux form follows by replacing in Green by : along a positively oriented unit-speed boundary.
Conservation with explicit differentiability
For a fixed compact Jordan control volume and a compact time interval, assume are continuous on a neighborhood of their product, and and its first spatial derivatives are continuous there. The time difference quotients of converge uniformly in space to , by the fundamental theorem in time and uniform continuity of . The integral error is bounded by the volume times that uniform error, so . Apply the proved divergence theorem on boxes, or on one of the explicitly admissible solids from the parameterized-boundary chapter. If is continuous and its integral is zero on every sufficiently small box, a positive value would remain positive and bounded away from zero on some such box, contradicting its zero integral; the negative case is identical. This supplies the local conservation equation under the stated hypotheses.
5 Graded practice
E1 Foundation. Evaluate the line integral of from to along any piecewise smooth path.
E2 Green. Compute around the counterclockwise circle of radius .
E3 Divergence. Find outward flux of through the unit cube .
E4 Conservation. If for constant and no source, derive the equation and show that zero boundary flux conserves total mass.
6 Full solutions
S1. Potential is , so the integral is . The path is irrelevant because a potential is globally defined on all of space.
S2. . Green gives . Direct parameterization , produces integrand , confirming the sign.
S3. Divergence is . Its volume integral is . Opposite-face contributions are 1 in each coordinate direction, also totaling 3.
S4. Substitution gives . Integrating and applying divergence gives under the stated boundary condition. A zero gradient everywhere is not required; internal redistribution can occur while boundary flux vanishes.
Summary
Line and surface integrals carry orientation. Potentials make line integrals depend only on endpoints; divergence and curl connect boundary data to interior derivatives under explicit regularity assumptions. Conservation plus a constitutive flux law yields a local evolution equation, whose coefficients must retain their spatial and tensor structure.