Choose in the preceding product rule and apply the divergence theorem. Since , this gives the first of Green's identities:Here is the outward normal derivative. Interchange and , then subtract. The gradient dot products cancel, yielding the second of Green's identities:For example, with the needed extensions suffice for these applications of the divergence theorem.
For a continuously differentiable vector field on a neighborhood of the closure of , the divergence theorem statesHere is the outward unit normal vector; the right side is the outward flux through the boundary.
For any bounded volume with piecewise smooth closed boundary and outward unit normal vector , Gauss's law in integral form isThus the outward electric flux equals the enclosed electric charge divided by the vacuum permittivity. To prove it, apply the divergence theorem to the electric field and use its given divergence:The classical proof assumes the requisite differentiability of the electric field. For piecewise smooth charge densities, one may apply the divergence theorem piece by piece and cancel the internal fluxes.
Apply the divergence theorem to , using ii. Because the vector is constant, it can be taken outside both integrals:This holds for every , in particular each of the three Cartesian basis vectors. Equality of the three components proves the gradient volume-to-boundary identityIt suffices that be a continuously differentiable function on a neighbourhood of the closure of .
For a bounded region with piecewise smooth boundary, suppose is a continuously differentiable vector field on an open neighbourhood of its closure. The divergence theorem, with outward unit normal vector , isThe surface integral measures total outward flux. Edges and isolated vertices have zero surface area and do not affect the integral.
Pair each point of the square's boundary with . The vector field obeys , whereas the outward unit normal vector changes sign: . Corresponding arc length elements are equal. Thus the two contributions to the flux cancel, proving without evaluating any boundary integral thatThe same cancellation appears in the divergence, which is an odd function of over a region symmetric under . To justify using the planar divergence theorem despite the lack of differentiability at the origin, remove a disk of radius . The vector field is continuously differentiable on the remaining region, its divergence has zero double integral by this symmetry, and the magnitude of the inner flux is at most , since there. Letting recovers the result. This is flux around a removable point singularity.
Let be a bounded region with a piecewise smooth closed boundary, and let be a continuously differentiable vector field on an open neighbourhood of its closure. With the outward unit normal vector, the divergence theorem statesThe boundary surface integral is the total outward flux. All boundary components are included; on the boundary of a cavity, the outward unit normal vector points into the cavity.
For any fixed subregion , with no internal heat generation, conservation of energy says that the rate of stored thermal energy equals the incoming heat flux:The minus sign is needed because denotes outgoing heat flux. Substitute Fourier's law and apply the divergence theorem:Here differentiation under the integral uses a fixed region and sufficient regularity of . Since the identity holds for every , continuity of the integrands gives the local heat equationFor spatially varying thermal conductivity, the product rule gives ; the second term cannot generally be discarded.
Integrate the steady state equation over and use the divergence theorem:The zero heat flux condition makes the boundary term vanish. But and throughout a region of positive volume, soa contradiction. Thus no steady-state solution exists. This is the insulated steady heat balance: positive internal heat generation continually increases the stored thermal energy when no heat can escape.
Suppose and are two sufficiently regular steady state solutions with the same prescribed temperature on the boundary. Their difference satisfiesThe identical PDE source terms cancel. Apply the product rule and the divergence theorem to ; this is the weighted form of Green's first identity:Since , the nonnegative integrand must vanish, so . Hence is constant on each connected component of , and its zero Dirichlet boundary condition makes each constant zero. Therefore : the solution, if it exists, is unique. This proves Dirichlet uniqueness for variable-conductivity heat conduction; it does not require a constant thermal conductivity.
For any closed surface enclosing a region , Gauss's law for gravity states that the outward flux of the gravitational field isHere is the gravitational constant and is the enclosed mass; the negative sign expresses attractive gravity.
Use the gravitational potential sign conventions specified by this paper: . Thus is the negative of the usual Newtonian gravitational potential defined by . For example, setting the value at infinity to zero gives for a point mass. The divergence theorem now givesSince is arbitrary, continuity of the integrands implies the local Poisson's equationConversely, integrating this Poisson's equation over any and applying the divergence theorem recovers Gauss's law for gravity. At a discontinuity of the mass density, the local equation is interpreted piecewise, or globally in the sense of distributions.
On the unit sphere, the outward unit normal vector is and . Hence the outward flux integral isUsing spherical polar coordinates and the divergence from ii, the volume integral over the unit ball isThis improper integral converges precisely because . When the vector field is singular or fails to be continuously differentiable at the origin, justify the equality by applying the divergence theorem on . The outward flux through its inner sphere is , soThus the two integrals agree for every , with the limiting interpretation where needed; the classical smoothness hypothesis does not hold for every such .
Let be a bounded region with piecewise smooth closed boundary , and let be a continuously differentiable vector field on an open neighbourhood of its closure. The divergence theorem stateswhere is the outward unit normal vector. Thus the volume integral of the divergence equals the outward boundary flux integral. For a region containing a hole, the outward unit normal vector on its inner boundary points into that hole.
For , the divergence vanishes at every point with , so its ordinary volume integral, ignoring the undefined single point, is zero. Nevertheless, the outward flux integral through the unit sphere is still :The hypotheses of the divergence theorem fail at the origin. Indeed there, so no continuous extension is possible. On the punctured region , the divergence theorem remains valid: the outer flux is and the inner flux is . Unlike iii, this inner contribution does not tend to zero. The discrepancy therefore comes from the persistent flux at the singular point, rather than a failure of the divergence theorem under its hypotheses.
The trigonometric identityshows that only angular Fourier modes and are required. Differentiating the harmonic expansion on a disk at multiplies the coefficient of each nonconstant Fourier mode by . Thus and , givingEach term is a regular harmonic function, and the radial derivative isThe Neumann compatibility condition for Laplace's equation holds becauseas is necessary by the divergence theorem applied to the gradient of a harmonic function.
The additive constant is undetermined. This Neumann boundary condition is unchanged by , so the paper's blanket uniqueness assertion requires a normalization in this case. The uniqueness of the Neumann problem gives uniqueness up to a constant; prescribing , or zero mean temperature, selects the displayed answer with .
Take in Green's second identity. Since , , on the unit sphere, and there,The final term vanishes by the divergence theorem, because it equals . ThereforeWe assume sufficient boundary regularity for the stated boundary values and integrals, or use the corresponding trace/limit formulation. This is the equality of volume and surface averages for a harmonic function, since the unit ball and sphere have volume and area .
Apply the divergence theorem to . The product rule givesbecause the two gradient inner products cancel. Also . ThusThis is Green's second identity, under the usual regularity assumptions permitting these derivatives and boundary integrals.
For a bounded region with piecewise smooth boundary and a continuously differentiable vector field on a neighborhood of its closure, the divergence theorem sayswhere is the outward unit normal vector. The left side integrates divergence over the volume; the right side is the outward flux.
Parametrize the surface of revolution byAn oriented vector surface area element isUse the vector field , whose divergence is one. If this parametrization has the outward orientation on an enclosing surface, the divergence theorem givesThe second equality is integration by parts, using the endpoint values. For example this outward convention applies when the positive- branch lies above the negative- branch, for .
The stated regularity and endpoint conditions alone do not guarantee an embedded enclosing surface: branches can cross or coincide. Without an appropriate orientation assumption the flux formula is an algebraic signed volume. If “inside” is defined as the region between the two graph branches for each radius, its nonnegative geometric volume is insteadThis explicitly handles a reversal or change in the order of the two branches.
For each of the three constant Cartesian unit vectors , apply the divergence theorem to the vector field . Its divergence is , soThese are precisely the three components ofThus the volume integral of the gradient is the boundary surface integral weighted by the vector surface element . The regularity needed here is that be continuously differentiable on a neighbourhood of the closure of .