Boundary flux and weak identities
Reconstructed by GPT-6 Astra (OpenAI), Ultra reasoning effort, October 2026. The earlier edition was written by GPT-6.1 Sol (OpenAI), Ultra reasoning effort. Original exposition and exercises: CC0. The separately credited programme prerequisites retain their own licences.
An outward flux can be recovered from what a function does on the inside of a region. We first calculate that flux on a graph, use the calculation to construct a surface measure, and then pass to continuous fields with an integrable weak divergence. A separate finite-partition argument explains why an everywhere differentiable solution of a first-order equation also solves the weak equation even when its gradient is not integrable.
Our integration convention is complex linear: a distribution acts on a test without conjugating it, and . The elementary programme prerequisites are the mean value and fundamental theorems of calculus, finite-dimensional compactness, smooth compact cutoffs, Fubini–Tonelli, dominated convergence, and translation continuity in . Their exact proof locations are listed after the solutions. The graph lemma, the required partition of unity, the surface-measure compatibility, the flux identities and the finite tagged-partition lemma are proved here.
A boundary separates two local sides
Let be open, with . All closures and boundaries below are relative to . By a boundary we mean that every has a neighbourhood and a real satisfying
Graph lemma. Near each such point, after permuting and possibly reversing one coordinate, there are a base box , an interval , and a function for which
Proof. Choose the last coordinate so that . On a smaller closed box it is at least some . Choose so close to that the vertical segment stays in that box. The mean value theorem gives ; continuity preserves these strict inequalities for in a sufficiently small base box. The intermediate value theorem gives a zero on each vertical segment, and makes it unique. The same monotonicity gives the asserted negative side.
On a still smaller box, bound by . Applying the mean value bound first on a horizontal segment and then on the vertical segment between the two zeros gives
For , differentiability of at gives
Thus evaluated on the graph. This expression is continuous, so is . In dimension one the base is a point and the same proof gives a locally isolated boundary point.
The outward unit normal in these coordinates is
This is independent of the defining function. Indeed, its tangent vectors are , whose orthogonal complement is the line spanned by . The sign is the one pointing to the side outside . Any other defining function has that same zero tangent space and positive side, and therefore gives the same unit normal.
We will need a partition with supports actually inside its charts, including when is unbounded.
Partition lemma. Every open cover of an open subset of Euclidean space has a countable smooth partition of unity whose supports are compact subsets of members of the cover and form a locally finite family in .
Proof. Put
using infinite distance when , and set for . Each is compact, , and their interiors exhaust . Distance to a nonempty closed set is continuous because the triangle inequality gives ; this also justifies closedness in this formula.
The compact layer lies in the open set . Around each of its points choose concentric balls with inside that open set and inside one member of the given cover. Finitely many of the smaller balls cover . Take a smooth nonnegative bump equal to one on each smaller ball and supported in its corresponding larger ball; the exact radial bump construction is in the stated cutoff prerequisite.
The resulting countable family of supports is locally finite. In fact a point has a neighbourhood inside some , and every layer with has its selected supports outside ; the finitely many earlier layers contribute only finitely many balls. At least one bump is positive at each point: choose the smallest for which the point belongs to , and use its layer. The locally finite sum of all bumps is therefore positive and smooth. Dividing each bump by gives the required partition, with its original support unchanged.
Proposition 1.1 (a global defining function). There is a real such that
Proof. Apply the partition lemma to the boundary charts together with and . To a boundary chart assign its defining function, and to the last two open sets assign respectively and . Let be the sum of these functions times their partition factors, each product extended by zero. Every product is across the edge of its chart because its factor has compact support inside the chart; local finiteness proves that the sum is .
All active summands have the same strict sign at an interior or exterior point. At a boundary point their defining functions vanish. Differentiating there consequently gives
Only boundary charts can have nonzero factors at ; those factors sum to one. The scalar in parentheses is strictly positive. This proves every assertion.
The derivative of a region is its oriented surface measure
In a graph chart define the local positive measure
The graph map sends the measure with this continuous density to a measure on the graph. It is finite on compact subcharts. The density is the Euclidean one: the Gram matrix of its tangent vectors is , where , and its determinant is . To see the last identity directly, the map is the identity on and multiplication by on the span of , with the case immediate.
Here is a construction of compatibility that does not assume a nonlinear change-of-variables theorem for surfaces.
Theorem 2.1 (surface measure and the boundary derivative). The graph measures (2.1) agree on overlaps and define a locally finite measure on . With the normal (1.3),
Consequently, for every ,
The total variation of the vector measure is , and its support and singular support are both .
Proof. Take a scalar test supported in one graph cylinder. For the vertical derivative, Fubini and the one-dimensional fundamental theorem give
For , differentiation of gives
This differentiation follows by splitting the increment into an integral over the fixed interval and an integral between the two upper endpoints: the first quotient converges uniformly on compact subcharts by continuity of , while the second converges to . The function has compact support in the base. Integrating its derivative gives zero by the fundamental theorem, so
These identities are precisely . Coordinate permutations and reflections preserve volume with absolute Jacobian one and transform the gradient and normal by the same orthogonal matrix; thus the identity also holds in the original coordinates.
For two charts, apply that identity to tests supported in their overlap. Their vector measures give the same values on all smooth compact tests. They then give the same values on continuous compact tests: convolution with a nonnegative smooth unit-mass bump uniformly approximates each such test, with supports in one fixed compact neighbourhood. Uniform continuity proves this approximation, and local finiteness bounds its integral error. Extend the normal continuously off the graph using its formula in the first chart. Test the -th component equality with , where is continuous with compact support in the overlap, and sum over . Since on the graph, this gives .
Here is the needed measure-uniqueness step. For an open set in the overlap, the continuous functions
have compact support inside , increase, and tend to . For empty take zero. Thus monotone convergence makes the two measures agree on every open set. On each relatively compact open neighbourhood in the overlap they are finite. The subsets of on which they agree form a Dynkin class: complements subtract from their common finite measure of , and disjoint countable unions use countable additivity. Relatively open sets form an intersection-closed generating family. The Dynkin-class argument proved in the product-measure prerequisite therefore gives equality on all Borel subsets of . A countable exhaustion of the overlap by such 's proves everywhere on the overlap.
One may glue the measures by a countable chart partition: set . On any chart the agreement just proved reduces this sum to its graph integral, so the construction is independent of the partition. Compact subsets meet only finitely many partition supports, proving local finiteness. For the graph formula assigns mass one to each locally isolated boundary point.
Split a compact test by the partition from Section 1. The graph identities hold on boundary charts; on interior charts the integral of a compact derivative is zero; exterior charts contribute zero. In summing, the derivatives of the partition factors cancel because their sum is one near the support of the test. This proves (2.2), and the same argument applied to the components of a field proves (2.3).
For the variation assertion, on a compact portion of the boundary every Borel partition satisfies
Conversely, partition the unit sphere into finitely many Borel sets of diameter at most , and split according to the values of . In each nonempty piece choose a unit vector within of its normals. Then
Take the supremum over partitions and then let tend to zero. Exhaustion by compact neighbourhoods gives the locally finite statement.
Every boundary neighbourhood has positive graph measure, since its projection contains a nonempty base ball and the density is at least one. Thus the support is exactly the boundary. Each graph has zero -dimensional volume by Fubini, and a countable chart cover makes the whole boundary null. If the vector distribution were smooth near a boundary point, its smooth density would vanish off that null set and hence, by continuity, everywhere in that neighbourhood. This contradicts its positive variation there. Its singular support is therefore also exactly the boundary. The indicator itself has the same singular support: it is constant off the boundary, while a continuous representative near a boundary point would have to take both the inside value one and the outside value zero at that point. Both sides approach the point by the graph description, so that is impossible.
Corollary 2.2 (cutting off a differentiable amplitude). For ,
Proof. Use (2.3) on the field having in its -th component and zero in the others. Expand , then rearrange. Every term is integrable on the compact support of , and the resulting identity is exactly the distributional pairing in (2.4).
Corollary 2.3 (the planar complex sign). For , write and . Orient the boundary by the tangent , so that the region is on the left. For ,
Proof. Formula (2.3), applied to , gives the boundary factor . But . Substitution proves both identities, including their signs.
Corollary 2.4 (finitely many planar corners)
Let be open. Suppose its boundary is the union of finitely many regular arcs, each parametrized injectively on a compact interval, with intersections only at endpoints. Let be the finite set of those endpoints. Assume the boundary is and locally one-sided at every point outside . Then (2.3) and (2.5) remain valid, with the outward normal on the open arcs and with line integrals oriented so that lies to the left. No normal or point mass is assigned to a corner. In particular the formulas apply to a half-disk and to a rectangle. For any , they also give
Proof. On a regular arc , a coordinate direction with has the same strict derivative sign on a small parameter interval. The mean value theorem makes its coordinate strictly monotone there, and the graph lemma identifies that part of the arc with a graph. The one-variable substitution formula and the chain rule give
Compactness gives finitely many such parameter intervals. Additivity of their integrals, or a partition in the parameter, proves that the graph surface integral on the arc is its ordinary arclength integral. In particular its total length is finite.
There is also a uniform length bound near any endpoint . Choose a unit vector with . On a small right interval, and . Hence
The part of that interval inside has length at most . The remaining compact part of the injective arc stays a positive distance from . At the other endpoint the same argument runs with the parameter reversed. Other arcs not incident to stay a positive distance away. A simple closed regular curve can be split into arcs with distinct endpoints. Thus, for small , the length of is at most .
For each , take a smooth radial function which is zero on , one outside , lies between zero and one, and has . It is obtained by scaling the fixed bump from the cutoff prerequisite. Put ; if is empty put . Its gradient is supported in the union of these finitely many radius- balls and has bound .
For , the field vanishes near every corner. The graph proof of Theorem 2.1 can therefore be localized on its support and gives
The second volume term tends to zero: a radius- ball lies in a square of area , so its absolute value is bounded by a fixed constant times . The first volume term tends to by dominated convergence. The boundary term tends to ; the omitted portions have total length by the endpoint estimate. This proves (2.3). Substitution of and the same tangent computation as in Corollary 2.3 proves (2.5), including the distributional indicator identity. A half-disk has one regular semicircular arc and one segment, and a rectangle has four segments; their only exceptional points are their finitely many vertices.
For the last identity choose with . Apply the established complex Green formula to and to , multiplied by a smooth compact cutoff equal to one near this closed punctured region and supported away from . Its derivative is zero on the punctured region, by the ordinary quotient rule. The inner boundary circle is clockwise, so the integral over equals the counterclockwise integral over that circle. Parametrizing it by , , makes , with integral .
Integration by parts with an integrable weak divergence
Theorem 3.1 (continuous boundary values and weak divergence). Suppose , and its distributional divergence on is a function . No divergence assumption is made outside . Then, for every ,
In particular,
Proof. The weak divergence identity extends to tests. Extend such a test by zero, mollify it with a smooth compact unit-mass kernel, and use uniform convergence of the test and all its first derivatives. Their supports lie in a common compact subset of for sufficiently small scales. The integrals against and the continuous therefore converge. Expanding the product derivative then shows
for every compact multiplier .
Use the partition lemma to split into finitely many functions supported in boundary, interior or exterior charts. It suffices to prove (3.1) for each part. An exterior part is zero on both sides. For an interior part, its left side is zero by the definition of divergence extended to tests, and it has zero boundary values.
For a boundary part, put and inside . Their supports are contained in one fixed compact subset of the graph cylinder. Extend by zero to ; it remains continuous and compactly supported. Extend by zero outside , writing the resulting function as . Let be a smooth kernel supported in the unit ball with integral one, and let . Such a kernel is obtained by normalizing a nonzero bump from the cutoff prerequisite.
Bound by on a compact base neighbourhood of the supports. For small , choose and define
These fields are smooth and have supports in one fixed compact subset of the original cylinder. If in that cylinder and , then
because . At every point where the convolution can be nonzero, its kernel thus tests only the interior of . All kernel points also stay in the chart by the fixed support margin and smallness of . The distributional identity (3.3), tested against the translated kernel, now gives
Outside the same compact chart neighbourhood both sides vanish. One can check the sign directly: the negative derivative in the input variable of is its positive derivative in .
Apply (2.3) to the smooth field (3.4). Its boundary values converge uniformly to those of : the integration points are within of , and a continuous compactly supported function is uniformly continuous. Their boundary integrals converge, since the common compact support meets a finite amount of surface measure. On the other hand, translation continuity and the approximate-identity theorem in give
Hence the volume integral in (2.3) tends to , and the surface integral tends to . This proves (3.1) in the chart. Summing the partition pieces proves it globally; the derivatives of their factors sum to zero.
Finally choose on a neighbourhood of , with compact support in . The term vanishes. Also almost everywhere in : its distribution is zero there, and uniqueness of a locally integrable distribution gives this conclusion. That uniqueness follows by convolution with the same kernels and their convergence. Thus almost everywhere, proving (3.2).
Cubes and a pointwise equation with a rough gradient
A cube has corners, so we establish the formula needed here directly. For a closed coordinate cube and a continuous field on its faces, write
For an affine field , integration of each opposing pair gives . The constant terms and all off-diagonal terms cancel; the diagonal term is times the area of that face. The same formula for a field follows by Fubini and the one-dimensional fundamental theorem. These statements include , where a face integral is its endpoint value.
Finite tagged-partition lemma. If is a closed cube and is any function, there is a finite subdivision of into closed dyadic cubes with disjoint interiors, with one tag per cube, such that .
Proof. Call a dyadic cube good if it admits such a finite partition. If all its children are good, their finitely many partitions combine to make it good. If were bad, choose a bad child, then a bad child of that child, indefinitely. The resulting nested closed cubes have side lengths tending to zero. For each coordinate their nested intervals have a unique common point, obtained as the supremum of the left endpoints; it is no larger than every right endpoint, and their lengths tending to zero give uniqueness. Thus the cubes have a common point . A sufficiently small member has diameter less than and contains , so its one-cube partition with tag is good. This contradiction proves the assertion.
This is the finite-partition principle used in Kudryashov's freely accessible proof of the divergence theorem. For the continuous-divergence case needed below, no theory of generalized integration is required.
Cube flux lemma. Let be real Fréchet differentiable at every point of a neighbourhood of , with values in . Suppose is continuous there. Individual entries of need not be continuous or integrable. Then
Proof. Fix . At every choose small enough that, for with ,
Apply the finite tagged-partition lemma. For a cube of side with tag , its affine approximation has flux . On each of its faces the error is at most ; the face area is . Consequently
Sum over the finite partition. Interior face contributions cancel with their opposite normals. When faces have different sizes, subdivide all faces to the finest dyadic level occurring in this finite partition; their coordinate integrals are additive on that common refinement. Face edges have zero face measure, and in dimension one each shared endpoint cancels once with each sign. Volume integrals also add, since cube boundaries are null. We obtain
Let tend to zero. All integrals used in this proof are of continuous functions on cubes or their faces.
Theorem 4.1 (pointwise first-order equations imply weak equations). Let
Suppose is real Fréchet differentiable at every point and its pointwise value is continuous. Then
This is the distributional equation with the given coefficients; it does not assert that the pointwise derivatives of define locally integrable functions.
Proof. First suppose is supported in the interior of a closed cube . Define the everywhere differentiable field . The finite-dimensional product rule gives the pointwise identity
Its right side is continuous: differentiability makes continuous, and all the other displayed factors are continuous by hypothesis. The cube flux lemma therefore applies. Since near the boundary of , its flux is zero. Integrating (4.4) and rearranging proves (4.3).
For a general compact test, use the partition lemma with cube interiors compactly contained in . Only finitely many partition factors meet its support. Apply the proved identity to those finitely many tests and sum; their sum and the sums of their derivatives are exactly the original test and its derivatives. Finally, the left side of (4.3) is a continuous distributional functional: on any fixed compact test support it is bounded by a constant times . Thus (4.3) has the asserted distributional meaning even though the coefficients need be only .
Exercises
- An affine interface and its density — foundation. Let , , and . Define . Compute , , and for any . Specialize to .
- The two sides of a shell — intermediate. For and , use to determine the two outward normals of . Find . Prove that the two fluxes of have equal magnitudes and opposite signs, including the surface-scaling calculation.
- A rough tangential dependence — intermediate. Let , let be any continuous function, and let . For , calculate the weak divergence and the two sides of (3.2). Take to exhibit failure of an ordinary partial derivative that is not needed by the formula.
- An exceptional point cannot simply be discarded — advanced. Choose with no dyadic-rational coordinate. On dyadic subcubes put if , and otherwise. Prove finite dyadic additivity, and prove that tends to zero along shrinking cubes containing any fixed . Explain why almost-everywhere local error control cannot replace the everywhere control used when choosing the gauge in the cube flux lemma.
- A continuous equation with a nonintegrable derivative — advanced. Set and for . Prove that is everywhere differentiable but . Compute the continuous function and write the exact weak equation on a test. Also give the corresponding calculation for and the coefficient .
- Orientation in the complex plane — foundation. Let . Choose equal to near . Evaluate from the volume definition and from the counterclockwise boundary integral. Then perform the same comparison for the annulus , recording the orientation on both circles.
Complete solutions
Solution 1. The normal is and . Equations (2.2) and (2.4) give
Values multiplying are restricted to the graph. In the stated planar case this reads
Thus the parameter measure is not Euclidean arclength; the latter is .
Solution 2. The function has the required signs, and
At radius this points as , and at radius it points as ; neither value is zero. Hence the normals are and , and
For a sphere graph , dilation by produces . Its graph density is , while the base substitution has Jacobian . A finite partition on the compact unit sphere proves , where . The field has normal components and on the two boundaries. Its fluxes are therefore and .
Direct differentiation gives away from zero. Multiplying by a smooth cutoff supported away from zero and equal to one near the closed shell puts the field within (2.3) without changing either flux or its divergence on . The flux cancellation agrees with that formula.
Solution 3. Fubini and integration by parts in give
It is continuous and compactly supported. Integrating from to yields
The boundary normal times its graph measure is , so the surface flux is the same integral. For , wherever the -difference quotient of the second component has unbounded magnitude as . This derivative is not part of divergence, and the continuous boundary values already specify the flux.
Solution 4. A parent containing has exactly one child containing , since lies on no dyadic face. A parent not containing has none. Thus the child values sum to the parent value; repeating proves finite dyadic additivity. For fixed , every cube containing with diameter less than misses , so its density is zero. The nested cubes containing , however, have density , tending to infinity, and the original cube has value one.
The flux proof must choose a positive gauge at every possible tag, including this point. The exceptional set consisting of is null, but it can carry the entire additive defect. Discarding it would leave the gauge estimate unjustified on cubes tagged there. This example concerns the proof's needed hypothesis; it does not assert that comes from an everywhere differentiable field.
Solution 5. The quotient tends to zero, so . For ,
The first term of is absolutely integrable near zero. In the other term, the substitution on positive compact intervals, followed by monotone convergence, gives
Indeed, in each sufficiently large period choose a fixed-length interval where . Its contribution is bounded below by a positive constant times . These terms diverge: the terms with have sum at least . The integrable first term cannot cancel this failure of absolute integrability, by the triangle inequality. Both terms of tend to zero, agreeing with at zero. Theorem 4.1 gives
For the second function, because , while
Now the absolute integral of the second derivative term is , which diverges by the same fixed subinterval argument and dyadic grouping of . The continuous extension has , and the weak identity is . These are integrals of continuous compactly tested functions, never integrals of the nonintegrable pointwise derivatives.
Solution 6. Since , the volume pairing on the disk is . On its counterclockwise boundary, gives . The boundary expression is
For the annulus the outer circle is counterclockwise and the inner circle clockwise. The two contributions to are respectively and . Their sum is , the negative area of the annulus, as required by the volume pairing.
Programme proof locations and freely accessible sources
The exact programme entries needed for this lesson are:
- Scalar calculus and Euclidean topology, selected from programme lesson AN03-P003: Sections 12.1–12.3, the real field; 12.4–12.9, Euclidean topology and finite norms; 13.1–13.5, limits, mean values and calculus; 13.7–13.9, series, exponential and trigonometric functions; and 13.10, smooth cutoffs.
- Complex scalars and finite algebra, selected from programme lesson AN03-P002: Sections 10.1–10.6 supply the complex arithmetic, finite bases and norm comparisons used in the scalar and measure prerequisites.
- Lebesgue integration and smoothing, selected from programme lesson AN03-P004: Sections 15.0–15.2, measure, convergence, Fubini and integral estimates; 15.3–15.4, translation continuity and mollification; 15.6 through the sector-area calculation, disk area; and 16.1–16.2, measurable functions and measure uniqueness. Only scalar and finite-dimensional cases are needed here.
The linked selections include the proof text and retain their CC0 1.0 licence notices. The real-field construction starts from natural-number arithmetic with induction, ordinary set theory and countable choice; the selected algebra, topology, calculus and integration sections build on it. The following freely accessible publications informed the proofs written in this lesson:
- Michael Kunzinger, Theory of Distributions, University of Vienna, 2019, Section 3.3, Theorem 3.3.1 and Corollary 3.3.2. Author's free lecture notes. Those notes give the multidimensional jump formula; the proof above constructs the graph measure and flux identity directly.
- Yury Kudryashov, Formalizing the Divergence Theorem and the Cauchy Integral Formula in Lean, ITP 2022, Sections 4.4 and 4.9. Free paper and source metadata, author's source. The paper is distributed under CC BY 4.0. Its finite tagged partitions and affine face estimates inform the complete continuous-divergence specialization proved here; the broader generalized-integral theorem is not assumed.
- Gui-Qiang G. Chen and Monica Torres, Divergence-Measure Fields: Gauss-Green Formulas and Normal Traces, 2021 author version. Free arXiv text. It explains one-sided normal-trace approximation. Theorem 3.1 above supplies a direct proof in the continuous-field, -boundary case, with integrable divergence required only on the inside.