Mathematical Methods Handbook

Integral theorems

Line and surface integrals, Gauss, Stokes and Green, potentials.

In this chapter 7

Tick a unit to add it to your PDF basket.

  1. Integrals and the integral theorems
  2. Potentials

Integrals and the integral theorems

5

Theorem

Line integrals and conservative fields

Adapted

Defines the line integral of a vector field along a piecewise C1C^1 curve and proves that path independence, the existence of a single-valued potential and exactness of F⋅dr\mathbf{F}\cdot d\mathbf{r} are the same condition, that each forces ∇×F=0\nabla\times\mathbf{F} = \mathbf{0}, and that the converse holds on a star-shaped (more generally simply connected) domain.

Prerequisites: Gradient and directional derivative, Partial derivatives and the chain rule, Connectedness and simple connectivity, Differentiation under the integral sign

Definition(Line integral, conservative field, potential, exact differential)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.1, Eqs. (11.1)–(11.2), pp. 377–379 and §11.1.3, p. 382; Lee (2013), Ch. 11, pp. 288–292

Let Ω⊆R3\Omega \subseteq \mathbb{R}^3 be open and let F=(F1,F2,F3)\mathbf{F} = (F_1, F_2, F_3) be a continuous vector field on Ω\Omega.

  • A curve segment in Ω\Omega is a continuous map γ:[a,b]→Ω\gamma : [a,b] \to \Omega. It is piecewise C1C^1 if [a,b][a,b] can be cut at finitely many points a=t0<t1<⋯<tk=ba = t_0 < t_1 < \dots < t_k = b so that γ\gamma is C1C^1 on each [ti−1,ti][t_{i-1}, t_i]; the one-sided velocities at the cuts need not agree. The segment is closed if γ(a)=γ(b)\gamma(a) = \gamma(b).
  • The line integral of F\mathbf{F} along a piecewise C1C^1 segment γ\gamma is ∫γF⋅dr  =  ∑i=1k∫ti−1tiF(γ(t))⋅γ′(t) dt.\int_{\gamma} \mathbf{F}\cdot d\mathbf{r} \;=\; \sum_{i=1}^{k} \int_{t_{i-1}}^{t_i} \mathbf{F}\bigl(\gamma(t)\bigr)\cdot \gamma'(t)\, dt . In Cartesian components this is ∫γ(F1 dx+F2 dy+F3 dz)\int_\gamma (F_1\,dx + F_2\,dy + F_3\,dz). The integral of a scalar field φ\varphi with respect to arc length is ∫γφ ds=∫abφ(γ(t)) ∣γ′(t)∣ dt\int_\gamma \varphi\, ds = \int_a^b \varphi(\gamma(t))\,\lvert \gamma'(t)\rvert\, dt, and ∫γφ dr\int_\gamma \varphi\, d\mathbf{r} and ∫γa×dr\int_\gamma \mathbf{a}\times d\mathbf{r} are defined componentwise in the same way.
  • F\mathbf{F} is conservative on Ω\Omega if ∮γF⋅dr=0\oint_\gamma \mathbf{F}\cdot d\mathbf{r} = 0 for every piecewise C1C^1 closed segment γ\gamma in Ω\Omega.
  • A potential for F\mathbf{F} is a function ϕ\phi on Ω\Omega, single-valued and of class C1C^1, with F=∇ϕ\mathbf{F} = \nabla\phi. Equivalently, F⋅dr=dϕ\mathbf{F}\cdot d\mathbf{r} = d\phi is an exact differential: the one-form F1 dx+F2 dy+F3 dzF_1\,dx + F_2\,dy + F_3\,dz is the total differential of ϕ\phi. Physicists usually write F=−∇ϕ\mathbf{F} = -\nabla\phi instead, so that ϕ\phi is the work done against F\mathbf{F}; the two conventions differ only in the sign of ϕ\phi.
  • Ω\Omega is simply connected if every closed curve in Ω\Omega can be contracted to a point without leaving Ω\Omega; it is star-shaped about c∈Ω\mathbf{c} \in \Omega if the straight segment from c\mathbf{c} to any point of Ω\Omega lies in Ω\Omega. A convex set is star-shaped, and a star-shaped set is simply connected.
Theorem(Parameter independence)AdaptedAdapted from Lee (2013), Prop. 11.37, p. 290

Let γ:[a,b]→Ω\gamma : [a,b] \to \Omega be piecewise C1C^1 and let ψ:[c,d]→[a,b]\psi : [c,d] \to [a,b] be a C1C^1 bijection with ψ′\psi' of one sign. Then

∫γ∘ψF⋅dr  =  {+∫γF⋅dr,ψ increasing,−∫γF⋅dr,ψ decreasing.\int_{\gamma \circ \psi} \mathbf{F}\cdot d\mathbf{r} \;=\; \begin{cases} +\displaystyle\int_{\gamma} \mathbf{F}\cdot d\mathbf{r}, & \psi \text{ increasing},\\[2mm] -\displaystyle\int_{\gamma} \mathbf{F}\cdot d\mathbf{r}, & \psi \text{ decreasing}. \end{cases}

So the integral depends only on the image curve and the direction of travel along it, not on the parametrization, and reversing the direction reverses the sign. Splitting a curve at an interior point adds the two pieces' integrals.

Theorem(Path independence, potentials and the curl)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.4, p. 387; Lee (2013), Thm 11.39, p. 291; Lee (2013), Thm 11.42, pp. 292–294; Lee (2013), Prop. 11.44, p. 294; Lee (2013), Thm 11.49, pp. 296–297

Let Ω⊆R3\Omega \subseteq \mathbb{R}^3 be open and connected and let F\mathbf{F} be a C1C^1 vector field on Ω\Omega (that is, F\mathbf{F} has continuous first partial derivatives there). Consider the four conditions

  1. Path independence. ∫γF⋅dr\int_\gamma \mathbf{F}\cdot d\mathbf{r} has the same value for any two piecewise C1C^1 segments in Ω\Omega with the same initial and final point; equivalently, F\mathbf{F} is conservative.
  2. Potential. There is a single-valued ϕ∈C2(Ω)\phi \in C^2(\Omega) with F=∇ϕ\mathbf{F} = \nabla\phi.
  3. Exactness. F⋅dr\mathbf{F}\cdot d\mathbf{r} is an exact differential on Ω\Omega.
  4. Vanishing curl. ∇×F=0\nabla\times\mathbf{F} = \mathbf{0} at every point of Ω\Omega.

Then:

  • Conditions 1, 2 and 3 are equivalent, with no hypothesis on the shape of Ω\Omega, and each of them implies condition 4. When they hold, ϕ\phi is determined up to one additive constant and ∫γF⋅dr=ϕ(γ(b))−ϕ(γ(a))\int_{\gamma} \mathbf{F}\cdot d\mathbf{r} = \phi\bigl(\gamma(b)\bigr) - \phi\bigl(\gamma(a)\bigr) for every piecewise C1C^1 segment γ:[a,b]→Ω\gamma : [a,b] \to \Omega.
  • If Ω\Omega is star-shaped, condition 4 implies the other three, so all four are equivalent. The same conclusion holds whenever Ω\Omega is simply connected.

A field satisfying these conditions is called conservative, and ϕ\phi is its scalar potential.

NoteOriginal

Which implications need which hypothesis. Riley, Hobson and Bence state the four conditions as equivalent for a field with continuous partial derivatives on a simply connected region (§11.4, p. 387), so their list carries the topological hypothesis throughout. Lee separates the implications: conservative ⇔\Leftrightarrow exact needs no hypothesis on the domain (Thm 11.42), exact ⇒\Rightarrow closed needs none (Prop. 11.44), and only the converse of the last one needs the domain to be star-shaped (Thm 11.49) or simply connected (Cor. 16.27). The statement above follows Lee's division, which is the sharper one; the two accounts agree on simply connected domains, which is the case Riley, Hobson and Bence discuss.

Idea of the proofOriginal

Each implication is one short idea. If F\mathbf{F} is a gradient, the chain rule turns F⋅γ′\mathbf{F}\cdot\gamma' into the tt-derivative of ϕ∘γ\phi\circ\gamma, and the fundamental theorem of calculus leaves only the endpoint values: that is path independence. Conversely, if the integral depends only on the endpoints, then defining ϕ\phi at a point as the integral from a fixed base point is unambiguous, and probing it along a short coordinate segment recovers the corresponding component of F\mathbf{F}. A gradient has symmetric second derivatives, which is exactly what ∇×∇ϕ=0\nabla\times\nabla\phi = \mathbf{0} says. The last implication is the only one with any geometry in it: on a star-shaped domain we can reach every point by one preferred path, the straight segment from the centre, and integrating along it produces a potential — the vanishing of the curl is what makes the resulting derivative collapse to a total derivative in the segment parameter.

ProofAdaptedAdapted from Lee (2013), Thm 11.39, p. 291; Lee (2013), Thm 11.42, pp. 292–294; Lee (2013), Prop. 11.44, p. 294; Lee (2013), Thm 11.49, pp. 296–297; Riley, Hobson & Bence (2006), §11.4, pp. 387–389

Throughout, Ω\Omega is open and connected, so any two of its points are joined by a piecewise C1C^1 segment in Ω\Omega: the set of points reachable from a fixed p0\mathbf{p}_0 by such a segment is open (append a straight segment inside a ball of Ω\Omega) and has open complement in Ω\Omega for the same reason, so by connectedness it is all of Ω\Omega (connectedness).

Step 1: condition 2 implies condition 1, with the endpoint formula. Let F=∇ϕ\mathbf{F} = \nabla\phi and let γ\gamma be C1C^1 on a subinterval [ti−1,ti][t_{i-1},t_i]. By the chain rule,

ddt ϕ(γ(t))=∇ϕ(γ(t))⋅γ′(t)=F(γ(t))⋅γ′(t),\frac{d}{dt}\,\phi\bigl(\gamma(t)\bigr) = \nabla\phi\bigl(\gamma(t)\bigr)\cdot\gamma'(t) = \mathbf{F}\bigl(\gamma(t)\bigr)\cdot\gamma'(t) ,

so by the fundamental theorem of calculus that piece contributes ϕ(γ(ti))−ϕ(γ(ti−1))\phi(\gamma(t_i)) - \phi(\gamma(t_{i-1})). Summing over the pieces, the intermediate values cancel and

∫γF⋅dr=ϕ(γ(b))−ϕ(γ(a)).\int_{\gamma} \mathbf{F}\cdot d\mathbf{r} = \phi\bigl(\gamma(b)\bigr) - \phi\bigl(\gamma(a)\bigr) .

What stands on the right involves the endpoints and nothing else — this is where the hypothesis that ϕ\phi is single-valued is used — and it vanishes when γ\gamma is closed.

Step 2: condition 1 implies condition 2. Assume path independence and fix p0∈Ω\mathbf{p}_0 \in \Omega. For q∈Ω\mathbf{q} \in \Omega put

ϕ(q)=∫γqF⋅dr,\phi(\mathbf{q}) = \int_{\gamma_{\mathbf{q}}} \mathbf{F}\cdot d\mathbf{r},

where γq\gamma_{\mathbf{q}} is any piecewise C1C^1 segment in Ω\Omega from p0\mathbf{p}_0 to q\mathbf{q}. Such a segment exists by the paragraph above, and the value does not depend on which one is used, by hypothesis; so ϕ\phi is a single-valued function on Ω\Omega.

Fix q∈Ω\mathbf{q} \in \Omega and j∈{1,2,3}j \in \{1,2,3\}. Since Ω\Omega is open there is ε>0\varepsilon > 0 with q+s ej∈Ω\mathbf{q} + s\,\mathbf{e}_j \in \Omega for ∣s∣<ε\lvert s \rvert < \varepsilon. Concatenating a path to q\mathbf{q} with the straight segment σ↦q+σej\sigma \mapsto \mathbf{q} + \sigma\mathbf{e}_j, 0≤σ≤s0 \le \sigma \le s, gives an admissible path to q+sej\mathbf{q} + s\mathbf{e}_j, whence

ϕ(q+s ej)−ϕ(q)=∫0sFj(q+σ ej) dσ,\phi(\mathbf{q} + s\,\mathbf{e}_j) - \phi(\mathbf{q}) = \int_0^s F_j(\mathbf{q} + \sigma\,\mathbf{e}_j)\, d\sigma ,

because along that segment dr=ej dσd\mathbf{r} = \mathbf{e}_j\, d\sigma. The integrand is continuous in σ\sigma, so dividing by ss and letting s→0s \to 0 gives ∂ϕ/∂xj(q)=Fj(q)\partial\phi/\partial x_j(\mathbf{q}) = F_j(\mathbf{q}). Hence ∇ϕ=F\nabla\phi = \mathbf{F}, and ϕ∈C1\phi \in C^1 because its partial derivatives are the continuous functions FjF_j; since F\mathbf{F} is C1C^1 by hypothesis, in fact ϕ∈C2\phi \in C^2.

Step 3: conditions 2 and 3 are the same statement. By definition, F⋅dr\mathbf{F}\cdot d\mathbf{r} is exact precisely when there is a single-valued ϕ\phi with dϕ=F1 dx+F2 dy+F3 dzd\phi = F_1\,dx + F_2\,dy + F_3\,dz, and dϕ=∇ϕ⋅drd\phi = \nabla\phi\cdot d\mathbf{r} identifies the coefficients one by one: ∂ϕ/∂x=F1\partial\phi/\partial x = F_1, and likewise for yy and zz. So condition 3 holds if and only if condition 2 does.

Step 4: condition 2 implies condition 4. With F=∇ϕ\mathbf{F} = \nabla\phi and ϕ∈C2\phi \in C^2 by Step 2, the mixed second partial derivatives of ϕ\phi are symmetric (Clairaut's theorem), so

(∇×F)1=∂F3∂y−∂F2∂z=∂2ϕ∂y ∂z−∂2ϕ∂z ∂y=0,(\nabla\times\mathbf{F})_1 = \frac{\partial F_3}{\partial y} - \frac{\partial F_2}{\partial z} = \frac{\partial^2\phi}{\partial y\,\partial z} - \frac{\partial^2\phi}{\partial z\,\partial y} = 0 ,

and the other two components vanish by the same computation with the indices permuted cyclically.

Step 5: condition 4 implies condition 2 when Ω\Omega is star-shaped. Translate so that Ω\Omega is star-shaped about the origin. For x∈Ω\mathbf{x} \in \Omega the segment t↦txt \mapsto t\mathbf{x}, 0≤t≤10 \le t \le 1, lies in Ω\Omega, so

ϕ(x)  =  ∫01F(tx)⋅x dt  =  ∫01∑iFi(tx) xi dt\phi(\mathbf{x}) \;=\; \int_0^1 \mathbf{F}(t\mathbf{x})\cdot\mathbf{x}\, dt \;=\; \int_0^1 \sum_{i} F_i(t\mathbf{x})\,x_i \, dt

is defined on all of Ω\Omega; it is the line integral of F\mathbf{F} along that one segment. The integrand and its partial derivatives in x\mathbf{x} are continuous on a neighbourhood of {tx:0≤t≤1}\{t\mathbf{x} : 0 \le t \le 1\} because F\mathbf{F} is C1C^1, and the tt-interval is compact, so we may differentiate under the integral sign:

∂ϕ∂xj(x)=∫01[ t∑i∂Fi∂xj(tx) xi  +  Fj(tx) ] dt.\frac{\partial \phi}{\partial x_j}(\mathbf{x}) = \int_0^1 \Bigl[\, t\sum_i \frac{\partial F_i}{\partial x_j}(t\mathbf{x})\, x_i \;+\; F_j(t\mathbf{x}) \,\Bigr]\, dt .

Now the hypothesis ∇×F=0\nabla\times\mathbf{F} = \mathbf{0} enters: it says precisely that ∂Fi/∂xj=∂Fj/∂xi\partial F_i/\partial x_j = \partial F_j/\partial x_i for every pair i≠ji \ne j, and for i=ji = j this is trivially true. Substituting,

∂ϕ∂xj(x)=∫01[ t∑ixi ∂Fj∂xi(tx)  +  Fj(tx) ] dt=∫01ddt[ t Fj(tx) ] dt=Fj(x),\frac{\partial \phi}{\partial x_j}(\mathbf{x}) = \int_0^1 \Bigl[\, t\sum_i x_i\,\frac{\partial F_j}{\partial x_i}(t\mathbf{x}) \;+\; F_j(t\mathbf{x}) \,\Bigr]\, dt = \int_0^1 \frac{d}{dt}\Bigl[\, t\,F_j(t\mathbf{x}) \,\Bigr]\, dt = F_j(\mathbf{x}) ,

the middle equality being the chain rule applied to t↦t Fj(tx)t \mapsto t\,F_j(t\mathbf{x}) and the last one the fundamental theorem of calculus, since the bracket vanishes at t=0t = 0 and equals Fj(x)F_j(\mathbf{x}) at t=1t = 1. So F=∇ϕ\mathbf{F} = \nabla\phi.

Step 6: uniqueness of ϕ\phi. If ∇ϕ=∇ϕ~\nabla\phi = \nabla\tilde\phi on the connected open set Ω\Omega then ∇(ϕ−ϕ~)=0\nabla(\phi - \tilde\phi) = \mathbf{0}; a function with vanishing gradient is constant along every segment inside Ω\Omega by Step 1, hence constant on Ω\Omega by connectedness. □\square

NoteAdaptedAdapted from Lee (2013), Ch. 16, Thm 16.26 and Cor. 16.27, p. 421

The simply connected case. Step 5 proves the implication 4⇒24 \Rightarrow 2 only for star-shaped domains, which is all that an elementary argument gives: the proof needs a family of paths, one to each point, varying smoothly with the endpoint. For a general simply connected Ω\Omega the implication is still true, but the proof runs through homotopy invariance of line integrals of closed fields — Lee's Thm 16.26 — and is beyond the scope of this unit; see the Poincaré lemma for forms. The ingredients are: a closed field has the same integral along path-homotopic curves; in a simply connected domain every closed curve is path-homotopic to a constant curve; hence every closed circulation vanishes, and Step 2 supplies the potential.

RemarkOriginal

Where the hypotheses are used, and what fails without them.

  • Simple connectivity, in Step 5 only. On Ω=R3\Omega = \mathbb{R}^3 minus the zz-axis, the field F=1x2+y2 (−y,  x,  0)\mathbf{F} = \frac{1}{x^2+y^2}\,(-y,\; x,\; 0) is C∞C^\infty and has ∇×F=0\nabla\times\mathbf{F} = \mathbf{0} everywhere (checked in the second example below), yet its circulation around the unit circle in the z=0z = 0 plane is 2π≠02\pi \ne 0. So condition 4 does not imply conditions 1–3 on this Ω\Omega, which is not simply connected: a loop around the axis cannot be contracted inside Ω\Omega. Restricted to the half-space x>0x > 0, which is convex, the same field is ∇(arctan⁡(y/x))\nabla\bigl(\arctan(y/x)\bigr).
  • Openness and connectedness of Ω\Omega. Openness is used in Step 2 to find the probing segment, and in Step 6. Connectedness is used to join points by paths and to pin ϕ\phi down to one constant; on a disconnected Ω\Omega the conclusions hold on each component separately, with an independent constant in each.
  • Continuity of F\mathbf{F} versus F∈C1\mathbf{F} \in C^1. Steps 1–3 and 6 need only that F\mathbf{F} is continuous. Step 4 needs the first derivatives of F\mathbf{F} to exist and be continuous, since it is a statement about them; Step 5 needs them too, to differentiate under the integral sign.
  • Piecewise C1C^1 rather than C1C^1 paths. Admitting corners costs nothing in Step 1 and makes Step 2 easy, because the probing segment can simply be appended to an arbitrary path. Lee notes (after Prop. 11.40) that restricting to smooth closed curves would make the equivalence harder to prove.
  • Single-valuedness of ϕ\phi. This is not decoration. The field above has the multivalued "potential" φ=arctan⁡(y/x)\varphi = \arctan(y/x), i.e. the azimuthal angle, which increases by 2π2\pi on each circuit; that increase is the circulation. Riley, Hobson and Bence note the same phenomenon for the magnetic scalar potential of a current-carrying wire (p. 389): the results apply as long as the loop encloses no net current.
  • A field can fail to be conservative for the plainest reason. For F=(−y,x,0)\mathbf{F} = (-y, x, 0) on R3\mathbb{R}^3 we get ∇×F=(0,0,2)≠0\nabla\times\mathbf{F} = (0,0,2) \ne \mathbf{0}, and Arfken's Example 3.7.1 computes two integrals of this field from (0,0)(0,0) to (1,1)(1,1) with different values. Here no topology is involved; condition 4 already fails.
Example(A conservative field: potential and work)Original

On Ω=R3\Omega = \mathbb{R}^3 take

F=(y2z+2x,    2xyz+1,    xy2+3z2).\mathbf{F} = \bigl(y^2 z + 2x,\;\; 2xyz + 1,\;\; xy^2 + 3z^2\bigr).
  1. Test condition 4. Componentwise, ∂F3∂y=2xy=∂F2∂z,∂F1∂z=y2=∂F3∂x,∂F2∂x=2yz=∂F1∂y,\frac{\partial F_3}{\partial y} = 2xy = \frac{\partial F_2}{\partial z},\qquad \frac{\partial F_1}{\partial z} = y^2 = \frac{\partial F_3}{\partial x},\qquad \frac{\partial F_2}{\partial x} = 2yz = \frac{\partial F_1}{\partial y}, so ∇×F=0\nabla\times\mathbf{F} = \mathbf{0}. Since R3\mathbb{R}^3 is convex, hence star-shaped about the origin, the theorem gives a potential.
  2. Build it by the formula of Step 5. With F(tx)⋅x=4t3xy2z+2tx2+y+3t2z3\mathbf{F}(t\mathbf{x})\cdot\mathbf{x} = 4t^3 x y^2 z + 2t x^2 + y + 3t^2 z^3, ϕ(x)=∫01(4t3xy2z+2tx2+y+3t2z3) dt=xy2z+x2+y+z3.\phi(\mathbf{x}) = \int_0^1 \bigl(4t^3 x y^2 z + 2t x^2 + y + 3t^2 z^3\bigr)\, dt = x y^2 z + x^2 + y + z^3 . Check: ∂ϕ/∂x=y2z+2x\partial\phi/\partial x = y^2z + 2x, ∂ϕ/∂y=2xyz+1\partial\phi/\partial y = 2xyz + 1, ∂ϕ/∂z=xy2+3z2\partial\phi/\partial z = xy^2 + 3z^2, as required. Any other potential differs from this by a constant.
  3. Work between two points. The work done by F\mathbf{F} from (0,0,0)(0,0,0) to (1,2,3)(1,2,3) is ϕ(1,2,3)−ϕ(0,0,0)=(1⋅4⋅3+1+2+27)−0=42,\phi(1,2,3) - \phi(0,0,0) = \bigl(1\cdot 4\cdot 3 + 1 + 2 + 27\bigr) - 0 = 42 , along every path in R3\mathbb{R}^3 joining the two points.
  4. Two explicit paths, as a check. Along the straight segment γ(t)=(t,2t,3t)\gamma(t) = (t, 2t, 3t), 0≤t≤10 \le t \le 1, the three components of F\mathbf{F} become 12t3+2t12t^3 + 2t, 12t3+112t^3 + 1 and 4t3+27t24t^3 + 27t^2, and γ′=(1,2,3)\gamma' = (1,2,3), so ∫γF⋅dr=∫01(48t3+81t2+2t+2) dt=12+27+1+2=42.\int_{\gamma}\mathbf{F}\cdot d\mathbf{r} = \int_0^1 \bigl(48t^3 + 81t^2 + 2t + 2\bigr)\, dt = 12 + 27 + 1 + 2 = 42 . Along the three-leg path (0,0,0)→(1,0,0)→(1,2,0)→(1,2,3)(0,0,0) \to (1,0,0) \to (1,2,0) \to (1,2,3), each leg has only one varying coordinate. On the first, y=z=0y = z = 0 and F1=2xF_1 = 2x, giving ∫012x dx=1\int_0^1 2x\, dx = 1. On the second, x=1x = 1, z=0z = 0 and F2=1F_2 = 1, giving ∫021 dy=2\int_0^2 1\, dy = 2. On the third, x=1x = 1, y=2y = 2 and F3=4+3z2F_3 = 4 + 3z^2, giving ∫03(4+3z2) dz=12+27=39\int_0^3 (4 + 3z^2)\, dz = 12 + 27 = 39. The total is 1+2+39=421 + 2 + 39 = 42, the same value.
Example(A curl-free field that is not conservative)Original

Let Ω=R3∖{x=y=0}\Omega = \mathbb{R}^3 \setminus \{x = y = 0\}, the complement of the zz-axis, and

F=(−yx2+y2,    xx2+y2,    0).\mathbf{F} = \Bigl(\frac{-y}{x^2+y^2},\;\; \frac{x}{x^2+y^2},\;\; 0\Bigr) .
  1. The curl vanishes. The third component of the curl is ∂∂xxx2+y2−∂∂y−yx2+y2=(x2+y2)−2x2(x2+y2)2+(x2+y2)−2y2(x2+y2)2=2(x2+y2)−2(x2+y2)(x2+y2)2=0,\frac{\partial}{\partial x}\frac{x}{x^2+y^2} - \frac{\partial}{\partial y}\frac{-y}{x^2+y^2} = \frac{(x^2+y^2) - 2x^2}{(x^2+y^2)^2} + \frac{(x^2+y^2) - 2y^2}{(x^2+y^2)^2} = \frac{2(x^2+y^2) - 2(x^2+y^2)}{(x^2+y^2)^2} = 0 , and the first two components vanish because F3=0F_3 = 0 and F1,F2F_1, F_2 do not depend on zz.
  2. The circulation does not. On the unit circle γ(θ)=(cos⁡θ,sin⁡θ,0)\gamma(\theta) = (\cos\theta, \sin\theta, 0), 0≤θ≤2π0 \le \theta \le 2\pi, we have x2+y2=1x^2 + y^2 = 1 and F(γ)⋅γ′=(−sin⁡θ)(−sin⁡θ)+(cos⁡θ)(cos⁡θ)=1,\mathbf{F}(\gamma)\cdot\gamma' = (-\sin\theta)(-\sin\theta) + (\cos\theta)(\cos\theta) = 1 , so ∮γF⋅dr=2π\oint_\gamma \mathbf{F}\cdot d\mathbf{r} = 2\pi.
  3. Reading off the obstruction. By the theorem, F\mathbf{F} has no single-valued potential on Ω\Omega, and Ω\Omega is therefore not simply connected — the circulation 2π2\pi is a certificate of that. On any simply connected subdomain the potential exists: on {x>0}\{x > 0\} it is arctan⁡(y/x)\arctan(y/x), on {y>0}\{y > 0\} it is −arctan⁡(x/y)-\arctan(x/y), and the two differ by π/2\pi/2 on the overlap, which is consistent because each is only determined up to a constant on its own domain.
  4. Circulation counts turns. For the circle of radius RR traversed nn times the same computation gives 2πn2\pi n, independent of RR: the integral measures how many times the loop winds about the axis (see the winding number).
ApplicationOriginal

The physical content of the theorem is that work against a conservative force is storable as potential energy. For a force field F=−∇V\mathbf{F} = -\nabla V, the work done by the field along any path from a\mathbf{a} to b\mathbf{b} is V(a)−V(b)V(\mathbf{a}) - V(\mathbf{b}), so the sum of kinetic and potential energy is constant along a trajectory: gravity, electrostatics and linear springs are all of this kind, and the whole machinery of potentials in Hamiltonian mechanics rests on it.

Line integrals that are not path independent are equally important, and the curl is the diagnostic. The electromotive force ∮E⋅dr\oint \mathbf{E}\cdot d\mathbf{r} around a circuit is nonzero exactly when ∇×E≠0\nabla\times\mathbf{E} \ne \mathbf{0}, which by Faraday's law means a changing magnetic flux — this is how a generator works. Ampère's law ∮CB⋅dr=μ0I\oint_C \mathbf{B}\cdot d\mathbf{r} = \mu_0 I (Riley, Hobson and Bence, p. 381) is the circulation of B\mathbf{B}, and the field of a straight wire is, up to the factor μ0I/2π\mu_0 I/2\pi, exactly the curl-free field of the second example: its circulation is nonzero only because the wire has been removed from the domain.

In thermodynamics the same distinction is the difference between a state function and a process quantity. Internal energy has an exact differential dUdU, so ∮dU=0\oint dU = 0 around any cycle; heat and work do not, which is why a heat engine can run. In fluid mechanics the circulation ∮u⋅dr\oint \mathbf{u}\cdot d\mathbf{r} of the velocity field around a closed material curve is the quantity conserved by Kelvin's theorem, and an irrotational flow is one whose velocity has a single-valued potential — the starting point of classical aerofoil theory, where the lift is proportional to a circulation made nonzero by cutting the aerofoil out of the domain.

Definition

Surface integrals and flux

Adapted

Defines a regular parametrized surface patch, its scalar surface element dS=∣ru×rv∣ du dvdS = \lvert \mathbf{r}_u \times \mathbf{r}_v\rvert\,du\,dv and its vector element dS=n^ dSd\mathbf{S} = \hat{\mathbf{n}}\,dS, proves that both are independent of the parametrization, fixes the orientation conventions for closed and open surfaces, and gives the graph and projection formulas used to compute a flux integral.

Prerequisites: Multiple integrals and change of variables, Vector algebra and index notation, Partial derivatives and the chain rule

Definition(Regular patch, surface element, orientation, flux)AdaptedAdapted from do Carmo (2016), §2-5, pp. 98–100 and Def. 2, p. 100; Riley, Hobson & Bence (2006), §11.5, pp. 389–390; Arfken, Weber & Harris (2013), §3.7, p. 161; Strauss (2008), §A.3, pp. 421–422

Let D⊆R2D \subseteq \mathbb{R}^2 be a connected set that is the closure of a bounded open set, with coordinates (u,v)(u,v).

  • A regular parametrized patch is a map r:D→R3\mathbf{r} : D \to \mathbb{R}^3 that is C1C^1, injective on the interior of DD, and satisfies ru×rv≠0\mathbf{r}_u \times \mathbf{r}_v \ne \mathbf{0} there, where ru=∂r/∂u\mathbf{r}_u = \partial\mathbf{r}/\partial u and rv=∂r/∂v\mathbf{r}_v = \partial\mathbf{r}/\partial v. Its image is the surface S=r(D)S = \mathbf{r}(D), and (u,v)(u,v) are its parameters. A piecewise C1C^1 surface is a finite union of such patches meeting along boundary curves, for example the six faces of a cube.
  • The two vectors ru,rv\mathbf{r}_u, \mathbf{r}_v span the tangent plane at r(u,v)\mathbf{r}(u,v). The first fundamental form of the patch records three numbers attached to that plane, whose classical names are EE, FF and GG: E=ru⋅ru,F=ru⋅rv,G=rv⋅rv.E = \mathbf{r}_u\cdot\mathbf{r}_u, \qquad F = \mathbf{r}_u\cdot\mathbf{r}_v, \qquad G = \mathbf{r}_v\cdot\mathbf{r}_v . By the Lagrange identity ∣a×b∣2+(a⋅b)2=∣a∣2∣b∣2\lvert \mathbf{a}\times\mathbf{b}\rvert^2 + (\mathbf{a}\cdot\mathbf{b})^2 = \lvert\mathbf{a}\rvert^2\lvert\mathbf{b}\rvert^2 (vector algebra), ∣ru×rv∣=EG−F2.\lvert \mathbf{r}_u \times \mathbf{r}_v \rvert = \sqrt{EG - F^2} .
  • The scalar surface element is dS=∣ru×rv∣ du dvdS = \lvert \mathbf{r}_u \times \mathbf{r}_v\rvert\, du\, dv; it is the area of the parallelogram spanned by ru du\mathbf{r}_u\,du and rv dv\mathbf{r}_v\,dv. The area of SS and the surface integral of a scalar field φ\varphi over SS are A(S)=∬D∣ru×rv∣ du dv,∫Sφ dS=∬Dφ(r(u,v)) ∣ru×rv∣ du dv.A(S) = \iint_D \lvert \mathbf{r}_u \times \mathbf{r}_v\rvert\, du\, dv , \qquad \int_S \varphi\, dS = \iint_D \varphi\bigl(\mathbf{r}(u,v)\bigr)\, \lvert \mathbf{r}_u \times \mathbf{r}_v\rvert\, du\, dv .
  • A unit normal at r(u,v)\mathbf{r}(u,v) is one of the two unit vectors orthogonal to the tangent plane; the parametrization picks out n^=ru×rv∣ru×rv∣.\hat{\mathbf{n}} = \frac{\mathbf{r}_u \times \mathbf{r}_v}{\lvert \mathbf{r}_u \times \mathbf{r}_v\rvert} . An orientation of a surface is a continuous choice of unit normal on it. A surface admitting one is orientable; equivalently (do Carmo's Def. 1) it can be covered by patches whose changes of parameters all have positive Jacobian determinant. The vector surface element is then dS=n^ dS=(ru×rv) du dvd\mathbf{S} = \hat{\mathbf{n}}\, dS = (\mathbf{r}_u \times \mathbf{r}_v)\, du\, dv.
  • The flux of a continuous vector field F\mathbf{F} through an oriented surface SS is ∫SF⋅dS  =  ∫SF⋅n^ dS  =  ∬DF(r(u,v))⋅(ru×rv) du dv.\int_S \mathbf{F}\cdot d\mathbf{S} \;=\; \int_S \mathbf{F}\cdot\hat{\mathbf{n}}\, dS \;=\; \iint_D \mathbf{F}\bigl(\mathbf{r}(u,v)\bigr)\cdot\bigl(\mathbf{r}_u\times\mathbf{r}_v\bigr)\, du\, dv . The integrals ∫Sφ dS\int_S \varphi\, d\mathbf{S} and ∫SF×dS\int_S \mathbf{F}\times d\mathbf{S} are defined componentwise in the same way; they are vectors, whereas ∫Sφ dS\int_S \varphi\, dS and the flux are scalars. For a closed surface SS the notation ∮S\oint_S is used.
Definition(Orientation conventions)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.5, Fig. 11.5 and pp. 389–390; Arfken, Weber & Harris (2013), §3.7, p. 161 with Fig. 3.13

Two conventions fix the sign of a flux, and every statement about flux depends on which one is in force.

  1. Closed surface. A closed surface encloses a volume VV; the positive normal points out of VV. A closed surface need not be simply connected — the surface of a torus is closed — but it must bound a volume.
  2. Open surface. The boundary of an open surface is one or more closed curves, and a direction of traversal is chosen on each. Then n^\hat{\mathbf{n}} is given by the right-hand rule relative to that direction: standing at a boundary point, let u\mathbf{u} point along the direction of travel and v\mathbf{v} point into the surface, tangent to it; the positive normal is the direction of u×v\mathbf{u}\times\mathbf{v}. Used at one boundary curve of a connected SS, the rule fixes n^\hat{\mathbf{n}} there and so, by continuity of the normal field, everywhere on SS — which then fixes the traversal of each of the remaining boundary curves. Arfken insists on this formulation rather than on any appeal to "outward" or "upward", precisely so that it covers a surface that curls round on itself, his own illustration being a spherical surface with a hole cut in it.

An open surface need not be simply connected, but it does have to have two sides. The Möbius strip has one, admits no continuous normal field, and carries no flux at all.

Definition(The surface element does not depend on the parametrization)AdaptedAdapted from do Carmo (2016), §2-3, Prop. 1, p. 72 and §2-5, p. 100

Let r:D→R3\mathbf{r} : D \to \mathbb{R}^3 and rˉ:Dˉ→R3\bar{\mathbf{r}} : \bar D \to \mathbb{R}^3 be regular patches with the same image SS, and let h=r−1∘rˉh = \mathbf{r}^{-1}\circ\bar{\mathbf{r}}, the change of parameters, carry the interior of Dˉ\bar D onto the interior of DD. That hh is a C1C^1 diffeomorphism is not an extra assumption but a theorem: for two regular patches covering the same surface it is automatic, being do Carmo's change-of-parameters proposition (§2-3, Proposition 1, p. 72), which he proves from the inverse function theorem. He states it for his smooth surfaces; the same argument applied to C1C^1 patches returns a C1C^1 diffeomorphism, which is what is used below. Then for every continuous φ\varphi on SS,

∬Dˉφ(rˉ) ∣rˉuˉ×rˉvˉ∣ duˉ dvˉ=∬Dφ(r) ∣ru×rv∣ du dv,\iint_{\bar D} \varphi\bigl(\bar{\mathbf{r}}\bigr)\,\lvert \bar{\mathbf{r}}_{\bar u} \times \bar{\mathbf{r}}_{\bar v}\rvert\, d\bar u\, d\bar v = \iint_{D} \varphi\bigl(\mathbf{r}\bigr)\,\lvert \mathbf{r}_{u} \times \mathbf{r}_{v}\rvert\, d u\, d v ,

so A(S)A(S) and ∫Sφ dS\int_S \varphi\, dS are properties of SS alone. The two unit normals agree where det⁡Dh>0\det Dh > 0 and are opposite where det⁡Dh<0\det Dh < 0; hence ∫SF⋅dS\int_S \mathbf{F}\cdot d\mathbf{S} is determined by SS together with a choice of orientation, and changing the orientation changes its sign.

Definition(Three practical forms of the surface element)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.5.1, Eq. (11.10), pp. 391–392; do Carmo (2016), §2-5, Exercise 5, p. 102; Strauss (2008), §A.3, Thm 5 and p. 422
  1. Graph. For S:z=h(x,y)S : z = h(x,y) with h∈C1h \in C^1 on D⊆R2D \subseteq \mathbb{R}^2, the parametrization r(x,y)=(x,y,h(x,y))\mathbf{r}(x,y) = (x, y, h(x,y)) gives rx×ry=(−hx,−hy,1)\mathbf{r}_x\times\mathbf{r}_y = (-h_x, -h_y, 1), hence dS=(−hx,−hy,1) dx dy,dS=1+hx2+hy2  dx dy,d\mathbf{S} = (-h_x, -h_y, 1)\, dx\, dy, \qquad dS = \sqrt{1 + h_x^2 + h_y^2}\; dx\, dy , with the upward orientation. Every regular patch is locally of this form, with respect to one of the three coordinate planes.
  2. Level set, projected onto a coordinate plane. Let SS be part of {f=0}\{f = 0\} with f∈C1f \in C^1 and ∇f≠0\nabla f \ne \mathbf{0} on SS, so that n^=±∇f/∣∇f∣\hat{\mathbf{n}} = \pm\nabla f/\lvert \nabla f\rvert. Suppose a piece of SS both projects one-to-one onto a region RR of the xyxy-plane and has fz≠0f_z \ne 0 at each of its points, so that it is nowhere vertical. Then on that piece dS=dA∣n^⋅k^∣=∣∇f∣∣fz∣ dA,dA=dx dy,dS = \frac{dA}{\lvert \hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\rvert} = \frac{\lvert \nabla f\rvert}{\lvert f_z\rvert}\, dA , \qquad dA = dx\, dy , both ∣∇f∣\lvert\nabla f\rvert and fzf_z being evaluated on SS. The two conditions are independent: fz≠0f_z \ne 0 is a hypothesis here and not a consequence of one-to-one projection (see the remark below). If a line parallel to the zz-axis meets SS more than once — as happens for every closed surface — the surface must first be cut into pieces on which the projection is one-to-one, and the results added. Projections onto the other two coordinate planes are used in the same way, and a piece that is vertical over the xyxy-plane is handled by projecting it onto one of those instead.
  3. Sphere of radius aa. With r(θ,ϕ)=a(sin⁡θcos⁡ϕ,sin⁡θsin⁡ϕ,cos⁡θ)\mathbf{r}(\theta,\phi) = a(\sin\theta\cos\phi, \sin\theta\sin\phi, \cos\theta) on the closed rectangle D=[0,π]×[0,2π]D = [0,\pi]\times[0,2\pi], which is a parameter domain of the kind the definition asks for, rθ×rϕ=a sin⁡θ  r,dS=a2sin⁡θ dθ dϕ,n^=r^,\mathbf{r}_\theta\times\mathbf{r}_\phi = a\,\sin\theta\;\mathbf{r}, \qquad dS = a^2\sin\theta\, d\theta\, d\phi, \qquad \hat{\mathbf{n}} = \hat{\mathbf{r}} , the outward normal. On the interior (0,π)×(0,2π)(0,\pi)\times(0,2\pi) the map is regular and injective, as required; what it does on the rest of DD is to collapse the edges θ=0\theta = 0 and θ=π\theta = \pi to the two poles, where rθ×rϕ=0\mathbf{r}_\theta\times\mathbf{r}_\phi = \mathbf{0}, and to cover the meridian ϕ=0\phi = 0 twice, at ϕ=0\phi = 0 and again at ϕ=2π\phi = 2\pi. Those edges are a set of zero area in DD, so deleting them changes no integral.
Idea of the proofOriginal

Both claims come down to the change-of-variables formula for double integrals. A change of parameters multiplies ru\mathbf{r}_u and rv\mathbf{r}_v by the Jacobian matrix of hh, so their cross product is multiplied by det⁡Dh\det Dh; the modulus of that factor is exactly what the change-of-variables formula contributes when the region of integration is pulled back. The two cancel, which is why the area element is geometric. The sign of det⁡Dh\det Dh survives in the direction of the cross product, which is why the normal, and so the flux, is geometric only after an orientation has been chosen.

ProofAdaptedAdapted from do Carmo (2016), §2-5, p. 100

Write (u,v)=h(uˉ,vˉ)(u,v) = h(\bar u, \bar v), so rˉ=r∘h\bar{\mathbf{r}} = \mathbf{r}\circ h on the interior of Dˉ\bar D.

Step 1 (how the tangent vectors transform). By the chain rule (chain rule),

rˉuˉ=ru ∂u∂uˉ+rv ∂v∂uˉ,rˉvˉ=ru ∂u∂vˉ+rv ∂v∂vˉ.\bar{\mathbf{r}}_{\bar u} = \mathbf{r}_u\,\frac{\partial u}{\partial \bar u} + \mathbf{r}_v\,\frac{\partial v}{\partial \bar u}, \qquad \bar{\mathbf{r}}_{\bar v} = \mathbf{r}_u\,\frac{\partial u}{\partial \bar v} + \mathbf{r}_v\,\frac{\partial v}{\partial \bar v} .

Step 2 (how the cross product transforms). Expanding the cross product of these two expressions, the two terms in ru×ru\mathbf{r}_u\times\mathbf{r}_u and rv×rv\mathbf{r}_v\times\mathbf{r}_v vanish and the remaining two combine:

rˉuˉ×rˉvˉ=(∂u∂uˉ∂v∂vˉ−∂u∂vˉ∂v∂uˉ) ru×rv=(det⁡Dh)  ru×rv.\bar{\mathbf{r}}_{\bar u}\times\bar{\mathbf{r}}_{\bar v} = \Bigl(\frac{\partial u}{\partial \bar u}\frac{\partial v}{\partial \bar v} - \frac{\partial u}{\partial \bar v}\frac{\partial v}{\partial \bar u}\Bigr)\,\mathbf{r}_u\times\mathbf{r}_v = \bigl(\det Dh\bigr)\; \mathbf{r}_u\times\mathbf{r}_v .

Taking lengths, ∣rˉuˉ×rˉvˉ∣=∣det⁡Dh∣ ∣ru×rv∣\lvert \bar{\mathbf{r}}_{\bar u}\times\bar{\mathbf{r}}_{\bar v}\rvert = \lvert \det Dh\rvert\,\lvert \mathbf{r}_u\times\mathbf{r}_v\rvert. Both cross products are nonzero by regularity, so this identity exhibits again what the change-of-parameters proposition already guarantees: det⁡Dh\det Dh vanishes nowhere.

Step 3 (change variables). The integrand on the left is therefore

φ(r(h(uˉ,vˉ))) ∣ru×rv∣(h(uˉ,vˉ))  ∣det⁡Dh∣,\varphi\bigl(\mathbf{r}(h(\bar u,\bar v))\bigr)\,\lvert \mathbf{r}_u\times\mathbf{r}_v\rvert\bigl(h(\bar u,\bar v)\bigr)\;\lvert\det Dh\rvert ,

which is precisely the integrand produced by the change-of-variables formula applied to the map hh and to the continuous function ψ=(φ∘r) ∣ru×rv∣\psi = (\varphi\circ\mathbf{r})\,\lvert\mathbf{r}_u\times\mathbf{r}_v\rvert on the interior of DD. Since hh is a C1C^1 diffeomorphism between the interiors and ψ\psi is bounded on a bounded region, the formula applies and the two integrals are equal. The boundaries, being Lebesgue null in the plane, contribute nothing.

Step 4 (normals and flux). By Step 2 the two unit normals satisfy n^ˉ=sgn⁡(det⁡Dh) n^\bar{\hat{\mathbf{n}}} = \operatorname{sgn}(\det Dh)\,\hat{\mathbf{n}}. On a connected parameter domain det⁡Dh\det Dh has constant sign, since it is continuous and never zero; so the two parametrizations induce either the same normal field or the opposite one. Applying Steps 1–3 to φ=F⋅n^\varphi = \mathbf{F}\cdot\hat{\mathbf{n}} gives

∬DˉF⋅(rˉuˉ×rˉvˉ) duˉ dvˉ=sgn⁡(det⁡Dh)∬DF⋅(ru×rv) du dv,\iint_{\bar D} \mathbf{F}\cdot\bigl(\bar{\mathbf{r}}_{\bar u}\times\bar{\mathbf{r}}_{\bar v}\bigr)\, d\bar u\, d\bar v = \operatorname{sgn}(\det Dh)\iint_{D} \mathbf{F}\cdot\bigl(\mathbf{r}_{u}\times\mathbf{r}_{v}\bigr)\, du\, dv ,

so the flux is well defined once the orientation is fixed, and reverses sign with it. □\square

Method(Computing a surface integral)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.5.1, pp. 391–392; Arfken, Weber & Harris (2013), §3.7, p. 161
  1. Describe the surface and decide whether it is closed or open. If it is open, note the direction in which its perimeter is to be traversed; if closed, note which side is the outside.
  2. Choose a parametrization r(u,v)\mathbf{r}(u,v) on a parameter domain DD that covers SS once: spherical angles on a sphere, (ρ,ϕ)(\rho,\phi) or (ϕ,z)(\phi,z) on a cylinder, (x,y)(x,y) on a graph. Cut SS into pieces if no single patch covers it, which is unavoidable for a closed surface.
  3. Compute ru×rv\mathbf{r}_u\times\mathbf{r}_v once and for all. Its length gives dSdS; its direction gives n^\hat{\mathbf{n}}.
  4. Fix the sign. Compare the direction of ru×rv\mathbf{r}_u\times\mathbf{r}_v with the convention of step 1 at one convenient point of the patch, and insert an overall minus sign if they disagree. Doing this at one point suffices, because the direction varies continuously.
  5. Substitute and integrate. Express F\mathbf{F} or φ\varphi in the parameters, form the double integral over DD, and evaluate it as an iterated integral (multiple integrals).
  6. Add the pieces. For a cut surface, sum the contributions, each with its own sign fixed by step 4.

How it fails. The commonest errors are a parametrization that covers part of SS twice, which doubles that part's contribution; forgetting step 4, which flips the sign of a flux; and projecting a closed surface onto a coordinate plane without cutting it, which silently cancels the two halves. If ru×rv\mathbf{r}_u\times\mathbf{r}_v vanishes on a curve or at isolated points, those sets have zero area and may be deleted, but a parametrization whose cross product vanishes on a set of positive area is not a regular patch there at all.

RemarkOriginal

Where the hypotheses are used, and conventions that differ.

  • Regularity, ru×rv≠0\mathbf{r}_u\times\mathbf{r}_v \ne \mathbf{0}. This is what makes the tangent plane two-dimensional and the normal well defined; it is also what makes the change of parameters a diffeomorphism in Step 2. The spherical patch violates it at θ=0,π\theta = 0, \pi, where sin⁡θ=0\sin\theta = 0, and the cone r(u,v)=(ucos⁡v,usin⁡v,u)\mathbf{r}(u,v) = (u\cos v, u\sin v, u) violates it at its apex u=0u = 0. In both cases the bad set has zero area and is simply removed.
  • Injectivity. Needed for SS to be covered once. On (0,π)×(0,4π)(0,\pi)\times(0,4\pi) the spherical patch is regular everywhere but covers the sphere twice, and every integral computed from it is twice the right answer.
  • Orientability. Steps 1–3 of the proof never mention the normal, so areas and scalar surface integrals are defined on non-orientable surfaces too; it is only the flux that needs a globally continuous n^\hat{\mathbf{n}}. The Möbius strip is the standard example where none exists.
  • fz≠0f_z \ne 0 in the projection formula. A one-to-one projection does not supply it. Take f=z3−yf = z^3 - y on the slab ∣x∣<1\lvert x\rvert < 1, ∣z∣<1\lvert z\rvert < 1: here ∇f=(0,−1,3z2)\nabla f = (0, -1, 3z^2) never vanishes, so S={y=z3}S = \{y = z^3\} is a legitimate level surface, and SS projects one-to-one onto the xyxy-plane, since yy determines z=y1/3z = y^{1/3}. Yet fz=3z2f_z = 3z^2 vanishes on the whole line z=0z = 0 of SS, where the normal (0,−1,0)(0,-1,0) is horizontal, the surface is vertical, and the displayed dSdS has a zero denominator. What the derivation needs is ∣n^⋅k^∣≠0\lvert\hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\rvert \ne 0, which is fz≠0f_z \ne 0; one-to-one projection only prevents the surface from doubling back. (This surface is in fact a graph y=z3y = z^3 over the xzxz-plane, so the right move for it is to project the other way, as form 2 says.)
  • The modulus in the projection formula. Riley, Hobson and Bence write Eq. (11.10) as dS=∣∇f∣ dA/(∂f/∂z)dS = \lvert\nabla f\rvert\, dA/(\partial f/\partial z), without a modulus sign in the denominator; as they say, both quantities are evaluated on SS. That form is correct where ∂f/∂z>0\partial f/\partial z > 0, which holds on the upper piece of a surface such as a sphere when ff is chosen with an outward-increasing gradient, and it is the piece they project in their example. For the lower piece ∂f/∂z<0\partial f /\partial z < 0 and the formula returns a negative dSdS; the version with ∣fz∣\lvert f_z\rvert above holds on both and is what the derivation dS=dA/∣n^⋅k^∣dS = dA/\lvert\hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\rvert gives directly, since dSdS and dAdA are both areas.
  • EG−F2\sqrt{EG - F^2} versus ∣ru×rv∣\lvert\mathbf{r}_u\times\mathbf{r}_v\rvert. These are equal, by the Lagrange identity. The first form is the one that survives on an abstract surface with a metric, where there is no ambient space and so no cross product, and is the one used in the first fundamental form; the second is quicker when r\mathbf{r} is given explicitly in R3\mathbb{R}^3.
  • Notation. Arfken writes the vector element dσd\boldsymbol{\sigma} and the scalar one dAdA; Riley, Hobson and Bence write dSd\mathbf{S} and dSdS, which we follow. Nothing but the symbols differs.
Example(Area of a piece of the surface z=xyz = xy)Original

Let SS be the part of the graph z=xyz = xy lying over the closed unit disc D={x2+y2≤1}D = \{x^2 + y^2 \le 1\}.

  1. Surface element. Here h=xyh = xy, so hx=yh_x = y, hy=xh_y = x, and by form 1 above dS=1+x2+y2 dx dydS = \sqrt{1 + x^2 + y^2}\, dx\, dy.
  2. Change to plane polars (change of variables): x2+y2=ρ2x^2 + y^2 = \rho^2 and dx dy=ρ dρ dϕdx\,dy = \rho\, d\rho\, d\phi, so A(S)=∫02π ⁣ ⁣∫011+ρ2  ρ dρ dϕ=2π∫01ρ1+ρ2 dρ.A(S) = \int_0^{2\pi}\!\!\int_0^1 \sqrt{1 + \rho^2}\;\rho\, d\rho\, d\phi = 2\pi \int_0^1 \rho\sqrt{1+\rho^2}\, d\rho .
  3. Evaluate. With s=1+ρ2s = 1 + \rho^2, ds=2ρ dρds = 2\rho\, d\rho, the inner integral is 12∫12s ds=13(23/2−1)\tfrac12\int_1^2 \sqrt{s}\, ds = \tfrac13\bigl(2^{3/2} - 1\bigr), so A(S)=2π3(22−1)=3.82945 (5 d.p.).A(S) = \frac{2\pi}{3}\bigl(2\sqrt{2} - 1\bigr) = 3.82945 \ \text{(5 d.p.)} .
  4. Sanity check. The disc itself has area π=3.14159\pi = 3.14159, and the surface lies above it with slope ∣∇h∣=ρ≤1\lvert\nabla h\rvert = \rho \le 1, so its area must exceed π\pi but not by more than the factor max⁡1+ρ2=2\max\sqrt{1+\rho^2} = \sqrt{2}, i.e. it lies between 3.14163.1416 and 4.44294.4429. It does.
Example(Flux through a paraboloid cap)Original

Let SS be the part of the paraboloid z=4−x2−y2z = 4 - x^2 - y^2 with z≥0z \ge 0, oriented so that the normal has a positive zz-component (upward), and let

F=(y,  −x,  z).\mathbf{F} = (y,\; -x,\; z) .
  1. Parametrize as a graph over the disc D={x2+y2≤4}D = \{x^2 + y^2 \le 4\}: h=4−x2−y2h = 4 - x^2 - y^2, so hx=−2xh_x = -2x, hy=−2yh_y = -2y and dS=(−hx,−hy,1) dx dy=(2x,  2y,  1) dx dy.d\mathbf{S} = (-h_x, -h_y, 1)\, dx\, dy = (2x,\; 2y,\; 1)\, dx\, dy . Its third component is +1>0+1 > 0, so this is already the required orientation and no sign change is needed (step 4 of the method).
  2. Form the integrand. On SS, F⋅(2x,2y,1)=2xy−2xy+(4−x2−y2)=4−x2−y2.\mathbf{F}\cdot(2x, 2y, 1) = 2xy - 2xy + (4 - x^2 - y^2) = 4 - x^2 - y^2 . The two circulating components of F\mathbf{F} cancel against the normal: they are tangent to the circles x2+y2=constx^2+y^2 = \text{const}, which lie in SS.
  3. Integrate in plane polars. ∫SF⋅dS=∫02π ⁣ ⁣∫02(4−ρ2) ρ dρ dϕ=2π[2ρ2−ρ44]02=2π(8−4)=8π.\int_S \mathbf{F}\cdot d\mathbf{S} = \int_0^{2\pi}\!\!\int_0^2 (4 - \rho^2)\,\rho\, d\rho\, d\phi = 2\pi\Bigl[2\rho^2 - \frac{\rho^4}{4}\Bigr]_0^2 = 2\pi(8 - 4) = 8\pi .
  4. Check by a second parametrization. Using (ρ,ϕ)(\rho,\phi) directly, r=(ρcos⁡ϕ,ρsin⁡ϕ,4−ρ2)\mathbf{r} = (\rho\cos\phi, \rho\sin\phi, 4-\rho^2) gives rρ×rϕ=(2ρ2cos⁡ϕ, 2ρ2sin⁡ϕ, ρ)\mathbf{r}_\rho\times\mathbf{r}_\phi = (2\rho^2\cos\phi,\, 2\rho^2\sin\phi,\, \rho), whose third component is positive, and F⋅(rρ×rϕ)=(4−ρ2)ρ\mathbf{F}\cdot(\mathbf{r}_\rho\times\mathbf{r}_\phi) = (4-\rho^2)\rho: the same integral, as the parametrization-independence statement requires.
  5. Check the sign convention. Reversing the orientation to point downward changes the answer to −8π-8\pi. Were SS closed off by the disc z=0z = 0, x2+y2≤4x^2+y^2\le 4 and read as the boundary of the enclosed solid, the upward normal on the cap would be the outward one, so 8π8\pi is the outward flux through the curved part.
ApplicationOriginal

Flux is how a conservation law is written down before it is turned into a differential equation. The mass of fluid crossing a surface per unit time is ∫Sρv⋅dS\int_S \rho\mathbf{v}\cdot d\mathbf{S}; the heat crossing it is −∫Sk∇T⋅dS-\int_S k\nabla T\cdot d\mathbf{S} by Fourier's law; the electric charge enclosed is ε0∮SE⋅dS\varepsilon_0\oint_S \mathbf{E}\cdot d\mathbf{S} by Gauss's law, and the magnetic flux through a circuit is ∫SB⋅dS\int_S \mathbf{B}\cdot d\mathbf{S}, whose rate of change is the induced electromotive force. In each case the orientation convention is what makes "in" and "out", or the sign of an induced current, unambiguous — which is why Arfken insists on stating the right-hand rule carefully.

Scalar surface integrals carry the quantities that do not have a direction: the total surface charge ∫Sσ dS\int_S \sigma\, dS, the area of a membrane in a surface-tension energy, the drag integral ∫Sτ dS\int_S \tau\, dS over a wetted hull, the radiating area of a heat sink. The parametrization-independence proved above is what lets an engineer compute such a quantity in whatever coordinates the geometry suggests and still get the same number; and in numerical practice it is what justifies replacing a curved panel by a flat quadrilateral of the same area, the basis of boundary-element and panel methods.

The two integral theorems that follow — the divergence theorem and Stokes' theorem — are statements about exactly these integrals, and are the reason the conventions above have to be fixed once and used consistently.

Theorem

The divergence theorem

Adapted

States Gauss's theorem — the outward flux of a C1C^1 field through the boundary of a bounded region equals the integral of its divergence over the region — proves it for regions bounded by C1C^1 graphs in each coordinate direction, derives the gradient and curl companion identities, and uses it to turn conservation of mass into the continuity equation.

Prerequisites: Surface integrals and flux, Divergence, curl and the Laplacian, Multiple integrals and change of variables, Differentiation under the integral sign

Definition(Simple region)Original

Call a compact set V⊆R3V \subseteq \mathbb{R}^3 zz-simple if there are a compact region D⊆R2D \subseteq \mathbb{R}^2 whose boundary is a piecewise C1C^1 curve and functions ψ1≤ψ2\psi_1 \le \psi_2 of class C1C^1 on DD, with ψ1<ψ2\psi_1 < \psi_2 at every interior point of DD, such that

V={(x,y,z)  :  (x,y)∈D,    ψ1(x,y)≤z≤ψ2(x,y)}.V = \bigl\{ (x,y,z) \;:\; (x,y) \in D, \;\; \psi_1(x,y) \le z \le \psi_2(x,y) \bigr\} .

Define xx-simple and yy-simple in the same way with the roles of the coordinates permuted, and call VV a simple region if it is simple in all three directions. An axis-aligned box is one, and so is the corner tetrahedron {x,y,z≥0,  x+y+z≤c}\{x, y, z \ge 0,\; x+y+z \le c\}, which in each of the three directions has one affine face as its top and one as its bottom; so is the solid between two C1C^1 graphs when it is also simple the other two ways.

Convex polyhedra in general are not simple regions, because the definition asks for ψ1,ψ2\psi_1, \psi_2 of class C1C^1 and a solid whose top is made of more than one face has a crease where two of them meet. The functions are forced by VV, so there is nothing to choose: for the regular octahedron ∣x∣+∣y∣+∣z∣≤1\lvert x\rvert + \lvert y\rvert + \lvert z\rvert \le 1 they are D={∣x∣+∣y∣≤1}D = \{\lvert x\rvert + \lvert y\rvert \le 1\}, ψ2=1−∣x∣−∣y∣\psi_2 = 1 - \lvert x\rvert - \lvert y\rvert and ψ1=−ψ2\psi_1 = -\psi_2, and ψ2\psi_2 is not differentiable at interior points of DD such as (0,12)(0, \tfrac12). So the octahedron is not zz-simple, and by its symmetry in the three coordinates not simple in any direction. A cube resting on one vertex fails in the same way, with three faces above and three below; so does a tetrahedron with three upper faces, such as the one on the vertices (0,0,0)(0,0,0), (1,0,0)(1,0,0), (0,1,0)(0,1,0), (13,13,1)(\tfrac13,\tfrac13,1), whose apex lies over the interior of its base triangle. Each of these solids is instead a finite union of simple regions, cut along the offending creases, and that is what Step 5 of the proof below exists to handle.

The boundary ∂V\partial V of a zz-simple region consists of the top z=ψ2z = \psi_2 and the bottom z=ψ1z = \psi_1, both graphs over DD, together with the lateral part lying over ∂D\partial D, on which the outward unit normal n^\hat{\mathbf{n}} is horizontal, so that n^⋅k^=0\hat{\mathbf{n}}\cdot\hat{\mathbf{k}} = 0 there. (That part is the vertical cylinder {(x,y)∈∂D,  ψ1≤z≤ψ2}\{(x,y) \in \partial D,\; \psi_1 \le z \le \psi_2\}, and it degenerates to a curve over whatever part of ∂D\partial D carries ψ1=ψ2\psi_1 = \psi_2, as the whole rim of the disc does for the two hemispheres of a ball.)

A simple region is a closed set. When the theorem below is applied to one, VV is to be read as its interior and V‾\overline V as the simple region itself; the boundary has zero volume, so which of the two carries the volume integral makes no difference to it.

Theorem(Divergence theorem (Gauss's theorem))AdaptedAdapted from Strauss (2008), Appendix §A.3, Divergence Theorem 7, p. 423; Evans (2010), Appendix §C.2, Thm 1, p. 667; Riley, Hobson & Bence (2006), §11.8, Eq. (11.18), p. 401

Let V⊆R3V \subseteq \mathbb{R}^3 be a bounded open region — Strauss's "bounded spatial domain" — whose boundary surface S=∂VS = \partial V is piecewise C1C^1, so that the closed region is V‾=V∪S\overline V = V \cup S; let n^\hat{\mathbf{n}} be the unit outward normal on SS, and let F\mathbf{F} be a vector field of class C1C^1 on V‾\overline V. Then

∫V∇⋅F  dV  =  ∮SF⋅n^  dS  =  ∮SF⋅dS.\int_V \nabla\cdot\mathbf{F}\; dV \;=\; \oint_S \mathbf{F}\cdot\hat{\mathbf{n}}\; dS \;=\; \oint_S \mathbf{F}\cdot d\mathbf{S} .

This is Strauss's Theorem 7. Evans states the same result for a bounded open U⊆RnU \subseteq \mathbb{R}^n with ∂U\partial U of class C1C^1 and u∈C1(U‾;Rn)\mathbf{u} \in C^1(\overline U; \mathbb{R}^n), and derives it from the componentwise form

∫U∂u∂xi dx=∫∂Uu νi dS(i=1,…,n),u∈C1(U‾),\int_U \frac{\partial u}{\partial x_i}\, dx = \int_{\partial U} u\,\nu_i\, dS \qquad (i = 1,\dots,n), \quad u \in C^1(\overline U),

with ν\boldsymbol{\nu} the outward normal; taking u=uiu = u_i and summing over ii gives the divergence form. The theorem holds whether or not VV is simply connected: the region between two concentric spheres is admissible, with the normal pointing out of VV on both components of SS, hence into the inner cavity.

Theorem(Companion identities)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.8.2, Eqs. (11.21)–(11.22) and the worked derivation, p. 403; Evans (2010), Appendix §C.2, Thm 2, p. 667; Arfken, Weber & Harris (2013), §3.8, Eqs. (3.89)–(3.90), p. 166

Under the same hypotheses, with φ\varphi a C1C^1 scalar field and b\mathbf{b} a C1C^1 vector field on V‾\overline V:

∫V∇φ  dV=∮Sφ dS,∫V∇×b  dV=∮SdS×b,\int_V \nabla\varphi\; dV = \oint_S \varphi\, d\mathbf{S}, \qquad\qquad \int_V \nabla\times\mathbf{b}\; dV = \oint_S d\mathbf{S}\times\mathbf{b} ,

both equalities between vectors. Three consequences are used constantly:

  • ∮SdS=0\oint_S d\mathbf{S} = \mathbf{0} for every closed surface (take φ≡1\varphi \equiv 1).
  • vol⁡(V)=13∮Sr⋅dS\displaystyle \operatorname{vol}(V) = \frac13\oint_S \mathbf{r}\cdot d\mathbf{S}, since ∇⋅r=3\nabla\cdot\mathbf{r} = 3.
  • Integration by parts. For u,v∈C1(V‾)u, v \in C^1(\overline V), applying the componentwise form to uvuv gives ∫V∂u∂xi v  dV=−∫Vu ∂v∂xi  dV+∮Su v νi  dS,\int_V \frac{\partial u}{\partial x_i}\, v\; dV = -\int_V u\,\frac{\partial v}{\partial x_i}\; dV + \oint_S u\,v\,\nu_i\; dS , which is Evans's Theorem 2 and the source of Green's identities.
Idea of the proofOriginal

In one variable the fundamental theorem of calculus says that integrating a derivative over an interval leaves only the values at the two ends. The divergence theorem is the same statement in three variables, done one coordinate at a time. Integrate ∂F3/∂z\partial F_3/\partial z first in zz: over a region squeezed between two graphs, the inner integral is the value of F3F_3 on the top minus its value on the bottom. The geometric content is then a single observation about the surface element: on the top and bottom of the region, the horizontal area element dx dydx\,dy is exactly ±n^⋅k^ dS\pm \hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\, dS, and on the sides n^⋅k^\hat{\mathbf{n}}\cdot\hat{\mathbf{k}} vanishes. So the two-term difference is precisely the flux of F3k^F_3\hat{\mathbf{k}} out of the whole boundary. Repeating with xx and yy and adding the three gives the theorem. Nothing else is involved; the apparent power of the theorem comes from the fact that cutting a region into pieces makes all the internal faces cancel in pairs, which is why the result extends from blocks to arbitrary regions.

ProofAdaptedAdapted from Riley, Hobson & Bence (2006), §11.3, pp. 384–385 and §11.8, p. 401; Evans (2010), Appendix §C.2, p. 667

We prove the theorem for a region whose closure is a simple region; the hypotheses on F\mathbf{F} are those of the statement. Throughout the proof VV denotes that closed region, as in the definition, which costs nothing: SS has zero volume, so the volume integrals are the same either way.

Step 1 (one component, in the matching direction). Let VV be zz-simple, with DD, ψ1\psi_1, ψ2\psi_2 as in the definition, and write F3F_3 for the third component of F\mathbf{F}. Since ∂F3/∂z\partial F_3/\partial z is continuous on the compact set VV, the triple integral may be computed as an iterated integral (iterated integrals), innermost in zz:

∫V∂F3∂z  dV=∬D(∫ψ1(x,y)ψ2(x,y)∂F3∂z(x,y,z) dz)dx dy=∬D[F3(x,y,ψ2)−F3(x,y,ψ1)] dx dy,\int_V \frac{\partial F_3}{\partial z}\; dV = \iint_D \left( \int_{\psi_1(x,y)}^{\psi_2(x,y)} \frac{\partial F_3}{\partial z}(x,y,z)\, dz \right) dx\, dy = \iint_D \Bigl[ F_3\bigl(x,y,\psi_2\bigr) - F_3\bigl(x,y,\psi_1\bigr) \Bigr]\, dx\, dy ,

the inner integral being evaluated by the fundamental theorem of calculus in the variable zz alone, with xx and yy held fixed.

Step 2 (the same difference, read as a flux). The top of ∂V\partial V is the graph z=ψ2z = \psi_2 over DD, whose outward normal points upward; by the graph formula for the surface element (surface integrals),

n^ dS=(−∂xψ2,  −∂yψ2,  1) dx dyson^⋅k^  dS=dx dy.\hat{\mathbf{n}}\, dS = \bigl(-\partial_x\psi_2,\; -\partial_y\psi_2,\; 1\bigr)\, dx\, dy \qquad\text{so}\qquad \hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\; dS = dx\, dy .

On the bottom z=ψ1z = \psi_1 the outward normal points downward, which is the opposite choice, so there n^⋅k^ dS=−dx dy\hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\, dS = -dx\, dy. On the lateral part the outward normal is horizontal, so n^⋅k^=0\hat{\mathbf{n}}\cdot\hat{\mathbf{k}} = 0 and that part contributes nothing. Hence

∮SF3 (n^⋅k^) dS=∬DF3(x,y,ψ2) dx dy−∬DF3(x,y,ψ1) dx dy,\oint_S F_3\,\bigl(\hat{\mathbf{n}}\cdot\hat{\mathbf{k}}\bigr)\, dS = \iint_D F_3(x,y,\psi_2)\, dx\, dy - \iint_D F_3(x,y,\psi_1)\, dx\, dy ,

which is the right-hand side of Step 1. Combining,

∫V∂F3∂z  dV=∮SF3 n3  dS.(∗)\int_V \frac{\partial F_3}{\partial z}\; dV = \oint_S F_3\,n_3\; dS . \tag{$\ast$}

Step 3 (the other two components). Because VV is also xx-simple and yy-simple, the argument of Steps 1 and 2 applies with the coordinates permuted. Each direction brings its own data: being xx-simple means that VV lies between two C1C^1 graphs x=χ1(y,z)≤χ2(y,z)x = \chi_1(y,z) \le \chi_2(y,z) over a compact region D′⊆R2D' \subseteq \mathbb{R}^2 in the (y,z)(y,z)-plane, and these have nothing to do with the DD, ψ1\psi_1, ψ2\psi_2 of Step 1; likewise for yy. With that reading, Steps 1 and 2 give

∫V∂F1∂x  dV=∮SF1 n1  dS,∫V∂F2∂y  dV=∮SF2 n2  dS.\int_V \frac{\partial F_1}{\partial x}\; dV = \oint_S F_1\,n_1\; dS, \qquad \int_V \frac{\partial F_2}{\partial y}\; dV = \oint_S F_2\,n_2\; dS .

Note that each of the three identities needs VV to be simple in its own direction; this is the only place where the shape of VV is used, and it is used three times.

Step 4 (add). Summing the three identities and using ∇⋅F=∂xF1+∂yF2+∂zF3\nabla\cdot\mathbf{F} = \partial_xF_1 + \partial_yF_2 + \partial_zF_3 and F⋅n^=F1n1+F2n2+F3n3\mathbf{F}\cdot\hat{\mathbf{n}} = F_1n_1 + F_2n_2 + F_3n_3 gives

∫V∇⋅F  dV=∮SF⋅n^  dS.\int_V \nabla\cdot\mathbf{F}\; dV = \oint_S \mathbf{F}\cdot\hat{\mathbf{n}}\; dS .

Step 5 (regions assembled from simple pieces). Suppose V=V1∪⋯∪VmV = V_1 \cup \dots \cup V_m, where the ViV_i are simple regions meeting only along pieces of their boundaries. Adding the theorem over the pieces, every face interior to VV occurs in exactly two of the surface integrals, carrying the outward normal of one piece and therefore the inward normal of the other. The two contributions are equal and opposite and cancel, while the volume integrals add to ∫V\int_V. What survives on the surface side is the integral over the part of ⋃i∂Vi\bigcup_i \partial V_i lying in ∂V\partial V, with the normal pointing out of VV. So the theorem holds for VV. □\square

NoteAdaptedAdapted from Lee (2013), Ch. 16, Thm 16.32, pp. 423–424

The general case. The statement above is for any bounded region with a piecewise C1C^1 boundary, which is more than Steps 1–5 deliver: a ball, for instance, is zz-simple with graphs ψ1,2=∓a2−x2−y2\psi_{1,2} = \mp\sqrt{a^2 - x^2 - y^2} that are continuous on the closed disc but not C1C^1 up to its rim. Two devices close the gap, and neither is proved here. The elementary one is exhaustion: apply the theorem to the region between the two graphs over the disc of radius a−εa - \varepsilon, whose boundary now also has a short cylindrical band of area 4π(a−ε)2aε−ε2→04\pi(a-\varepsilon)\sqrt{2a\varepsilon - \varepsilon^2} \to 0; as ε→0\varepsilon \to 0 the volume integrals converge because ∇⋅F\nabla\cdot\mathbf{F} is bounded, the band's flux tends to 00 for the same reason, and the two cap integrals converge to the integral over the sphere. The structural one is Lee's Theorem 16.32, which obtains the divergence theorem on any oriented Riemannian manifold with boundary as a corollary of Stokes's theorem for differential forms; see Stokes' theorem for forms. Strauss and Evans both state the theorem without proof and refer the reader elsewhere, and we follow them in taking it as given in the stated generality.

RemarkOriginal

Where the hypotheses are used, and what fails without them.

  • F\mathbf{F} of class C1C^1 on the closed region. Step 1 needs ∂F3/∂z\partial F_3/\partial z to exist and be integrable on VV; Step 2 needs F3F_3 to have boundary values on SS. A field that is C1C^1 only in the open region can fail: F=r^/r2\mathbf{F} = \hat{\mathbf{r}}/r^2 on the punctured ball 0<r≤a0 < r \le a has ∇⋅F=0\nabla\cdot\mathbf{F} = 0 everywhere it is defined, so the left side is 00, while the outward flux through r=ar = a is (1/a2)(4πa2)=4π(1/a^2)(4\pi a^2) = 4\pi. The theorem is not contradicted — the hypothesis fails at the origin — and the discrepancy is exactly what the Dirac delta is introduced to bookkeep: writing ∇⋅(r^/r2)=4πδ(3)(r)\nabla\cdot(\hat{\mathbf{r}}/r^2) = 4\pi\delta^{(3)}(\mathbf{r}) restores the identity. Riley, Hobson and Bence make the same point with a point source of strength QQ in an incompressible fluid (p. 405), where ∇⋅v=Qδ(r)\nabla\cdot\mathbf{v} = Q\delta(\mathbf{r}) and the flux is QQ or 00 according to whether SS encloses the source.
  • Boundedness of VV and the closed surface. The flux integral is over a closed surface bounding a region of nonzero volume. For an open surface the statement is meaningless; the standard manoeuvre, as in Riley, Hobson and Bence's example on p. 401, is to cap the open surface so that the union is closed, apply the theorem, and subtract the cap's flux.
  • Simple connectivity is not required. Nothing in the proof uses it, and Riley, Hobson and Bence state the theorem for simply and multiply connected closed surfaces alike, asking only that the surface be closed and enclose a non-zero volume (p. 401). A solid torus is admissible, and so is a spherical shell a≤r≤ba \le r \le b, whose boundary has two components, with the outward normal +r^+\hat{\mathbf{r}} on r=br = b and −r^-\hat{\mathbf{r}} on r=ar = a; forgetting the sign on the inner sphere is the commonest error in applications. Arfken, cited above for the companion identities, does impose the hypothesis: he states Gauss' theorem for a field continuous with its first derivatives over "a simply connected region of R3\mathbb{R}^3", adding that a region containing a hole, like a doughnut, is not one (p. 164). Neither his subdivision argument nor ours uses that restriction, so the two sources differ in strength and not in content; we follow Riley, Hobson and Bence, and the difference is logged in verification/discrepancies.md.
  • Orientability is automatic here. The boundary of a region in R3\mathbb{R}^3 is always two-sided, so the flux is always defined — unlike the situation for a general open surface.
  • Where the proof could not be shortened. Step 3 cannot be replaced by "by symmetry" unless VV really is simple in all three directions. The solid between the paraboloid z=x2+y2z = x^2+y^2 and the plane z=1z = 1 is zz-simple with C1C^1 graphs, but as a region over the (y,z)(y,z)-plane its graphs x=±z−y2x = \pm\sqrt{z - y^2} are not C1C^1 up to the curve z=y2z = y^2. The identity (∗)(\ast) for the third component holds for it directly; the other two need the general statement or the exhaustion argument.
  • Dimension. Evans's version holds in Rn\mathbb{R}^n for every n≥1n \ge 1. For n=2n = 2 it is the divergence form of Green's theorem, ∫D∇⋅f dA=∮Cf⋅n^ ds\int_D \nabla\cdot\mathbf{f}\, dA = \oint_C \mathbf{f}\cdot\hat{\mathbf{n}}\, ds with n^ ds=(dy,−dx)\hat{\mathbf{n}}\, ds = (dy, -dx), which Strauss gives as his Eq. (8); for n=1n = 1 it is the fundamental theorem of calculus, the "surface" being two points with normals ±1\pm 1.
Example(A tetrahedron, both sides computed)Original

Let VV be the tetrahedron with vertices (0,0,0)(0,0,0), (2,0,0)(2,0,0), (0,2,0)(0,2,0), (0,0,2)(0,0,2), that is {x,y,z≥0,  x+y+z≤2}\{x,y,z \ge 0,\; x+y+z \le 2\}, and let F=(x2, y2, z2)\mathbf{F} = (x^2,\, y^2,\, z^2). This VV is a simple region, so the proof above applies to it directly.

  1. Volume side. ∇⋅F=2(x+y+z)\nabla\cdot\mathbf{F} = 2(x+y+z), so by the symmetry of VV in the three coordinates ∫V∇⋅F  dV=6∫Vx  dV=6∫02x (2−x)22 dx=6⋅2424=4,\int_V \nabla\cdot\mathbf{F}\; dV = 6\int_V x\; dV = 6\int_0^2 x\,\frac{(2-x)^2}{2}\, dx = 6\cdot\frac{2^4}{24} = 4 , where the cross-section of VV at height xx is a right triangle of area (2−x)2/2(2-x)^2/2, and ∫0ax(a−x)2 dx/2=a4/24\int_0^a x(a-x)^2\,dx/2 = a^4/24.
  2. Surface side: the three coordinate faces. On {x=0}\{x = 0\} the outward normal is −i^-\hat{\mathbf{i}}, so F⋅n^=−x2=0\mathbf{F}\cdot\hat{\mathbf{n}} = -x^2 = 0 there. The same happens on {y=0}\{y=0\} and {z=0}\{z=0\}. These three faces contribute nothing — each component of F\mathbf{F} vanishes on the face it is normal to.
  3. Surface side: the oblique face. On x+y+z=2x+y+z = 2 the outward unit normal is n^=(1,1,1)/3\hat{\mathbf{n}} = (1,1,1)/\sqrt3, and the face projects one-to-one onto the triangle T={x,y≥0, x+y≤2}T = \{x,y\ge 0,\, x+y \le 2\} with dS=3 dx dydS = \sqrt3\, dx\, dy (the graph z=2−x−yz = 2-x-y has 1+1+1=3\sqrt{1 + 1 + 1} = \sqrt3). Hence ∫obliqueF⋅n^ dS=∬Tx2+y2+z23 3  dx dy=∬T(x2+y2+(2−x−y)2) dx dy.\int_{\text{oblique}} \mathbf{F}\cdot\hat{\mathbf{n}}\, dS = \iint_T \frac{x^2+y^2+z^2}{\sqrt3}\,\sqrt3\; dx\, dy = \iint_T \bigl(x^2 + y^2 + (2-x-y)^2\bigr)\, dx\, dy . The three terms are equal by the symmetry of TT under permuting xx, yy and 2−x−y2-x-y, so this is 3∬Tx2 dx dy=3∫02x2(2−x) dx=3[2x33−x44]02=3(163−4)=4.3\iint_T x^2\, dx\, dy = 3\int_0^2 x^2 (2-x)\, dx = 3\Bigl[\frac{2x^3}{3} - \frac{x^4}{4}\Bigr]_0^2 = 3\Bigl(\frac{16}{3} - 4\Bigr) = 4 .
  4. Comparison. Both sides equal 44. As a dimensional check, the face has area 23=3.46412\sqrt3 = 3.4641 and F⋅n^=(x2+y2+z2)/3\mathbf{F}\cdot\hat{\mathbf{n}} = (x^2+y^2+z^2)/\sqrt3 runs from 4/3=2.3094/\sqrt3 = 2.309 at the vertices to (3⋅49)/3=0.770(3\cdot\frac49)/\sqrt3 = 0.770 at the centroid, so the flux must lie between 2.672.67 and 8.008.00; it does.
Example(A curved boundary: paraboloid and plane)Original

Let VV be the solid bounded below by z=x2+y2z = x^2+y^2 and above by z=1z = 1, and let F=r=(x,y,z)\mathbf{F} = \mathbf{r} = (x,y,z).

  1. Volume side. ∇⋅r=3\nabla\cdot\mathbf{r} = 3, and the horizontal cross-section at height zz is a disc of radius z\sqrt z, of area πz\pi z, so ∫V3  dV=3∫01πz  dz=3π2.\int_V 3\; dV = 3\int_0^1 \pi z\; dz = \frac{3\pi}{2} .
  2. Surface side: the lid. On z=1z = 1, x2+y2≤1x^2+y^2 \le 1, the outward normal is +k^+\hat{\mathbf{k}} and r⋅k^=z=1\mathbf{r}\cdot\hat{\mathbf{k}} = z = 1, so the flux is the area of the disc, π\pi.
  3. Surface side: the paraboloid. Here the outward normal points away from the axis and downward. Writing the surface as the graph z=h(x,y)=x2+y2z = h(x,y) = x^2+y^2 over the unit disc, the upward element is (−hx,−hy,1) dx dy=(−2x,−2y,1) dx dy(-h_x,-h_y,1)\,dx\,dy = (-2x,-2y,1)\,dx\,dy; the outward one is its negative, (2x,2y,−1) dx dy(2x, 2y, -1)\, dx\, dy. Then r⋅(2x,2y,−1)=2x2+2y2−z=2ρ2−ρ2=ρ2\mathbf{r}\cdot(2x,2y,-1) = 2x^2 + 2y^2 - z = 2\rho^2 - \rho^2 = \rho^2 on the surface, and in plane polars ∫parabr⋅dS=∫02π ⁣ ⁣∫01ρ2⋅ρ dρ dϕ=2π4=π2.\int_{\text{parab}} \mathbf{r}\cdot d\mathbf{S} = \int_0^{2\pi}\!\!\int_0^1 \rho^2\cdot\rho\, d\rho\, d\phi = \frac{2\pi}{4} = \frac{\pi}{2} .
  4. Comparison. π+π/2=3π/2\pi + \pi/2 = 3\pi/2, matching step 1. Note how step 3 would have come out −π/2-\pi/2 with the orientation taken carelessly, and the two sides would then have differed by π\pi — the usual symptom of a sign slip in a flux.
  5. The volume, for free. The same field gives vol⁡(V)=13∮r⋅dS=13⋅3π2=π2\operatorname{vol}(V) = \frac13\oint \mathbf{r}\cdot d\mathbf{S} = \frac13\cdot\frac{3\pi}{2} = \frac{\pi}{2}, which agrees with ∫01πz dz\int_0^1 \pi z\, dz.
ApplicationAdaptedAdapted from Riley, Hobson & Bence (2006), §11.8.3, p. 404

The theorem's main use is to convert a conservation law, which is naturally a statement about a region and its boundary, into a partial differential equation, which is a statement at a point. Consider a fluid of density ρ(r,t)\rho(\mathbf{r},t) moving with velocity v(r,t)\mathbf{v}(\mathbf{r},t), with no creation or destruction of matter. For any fixed region VV in the fluid, the mass inside is ∫Vρ dV\int_V \rho\, dV, and the only way it can change is by transport across S=∂VS = \partial V, at the rate ∮Sρv⋅dS\oint_S \rho\mathbf{v}\cdot d\mathbf{S} outwards. So

ddt∫Vρ dV=−∮Sρv⋅dS.\frac{d}{dt}\int_V \rho\, dV = -\oint_S \rho\mathbf{v}\cdot d\mathbf{S} .

Taking the derivative inside the integral on the left (legitimate for ρ\rho and ∂ρ/∂t\partial\rho/\partial t continuous, differentiation under the integral sign) and the divergence theorem on the right,

∫V(∂ρ∂t+∇⋅(ρv))dV=0.\int_V \left( \frac{\partial\rho}{\partial t} + \nabla\cdot(\rho\mathbf{v}) \right) dV = 0 .

The region VV was arbitrary and the integrand is continuous, so the integrand vanishes identically: a continuous function whose integral vanishes over every region is zero, since otherwise it would keep one sign on a small ball around a point where it is nonzero. This is the continuity equation

∂ρ∂t+∇⋅(ρv)=0,\frac{\partial\rho}{\partial t} + \nabla\cdot(\rho\mathbf{v}) = 0 ,

which reduces to ∇⋅v=0\nabla\cdot\mathbf{v} = 0 for an incompressible fluid. The identical argument with ρ\rho read as charge density and ρv\rho\mathbf{v} as current density gives charge conservation; with ρ\rho read as heat content and the flux given by Fourier's law −k∇T-k\nabla T, it gives the heat equation; and with a source term σ\sigma on the right it gives the general transport equation of conservation laws. Gauss's law of electrostatics, ∮SE⋅dS=q/ε0\oint_S \mathbf{E}\cdot d\mathbf{S} = q/\varepsilon_0, becomes ∇⋅E=ρ/ε0\nabla\cdot\mathbf{E} = \rho/\varepsilon_0 by the same route, and the integration-by-parts identity above is the first step in every finite-element formulation of an elliptic boundary-value problem (finite elements).

Theorem

Stokes' theorem and Green's theorem in the plane

Adapted

Proves Green's theorem in the plane for a region bounded by graphs in both coordinate directions, then obtains Stokes' theorem — the circulation of a C1C^1 field round the perimeter of an oriented surface equals the flux of its curl through the surface — by pulling the circulation back to the parameter domain, and fixes the orientation convention that makes the two sides agree in sign.

Prerequisites: Surface integrals and flux, Line integrals and conservative fields, Divergence, curl and the Laplacian, Vector algebra and index notation, Multiple integrals and change of variables, Partial derivatives and the chain rule

Theorem(Green's theorem in the plane)AdaptedAdapted from Strauss (2008), Appendix §A.3, Green's Thm 6, p. 422; Riley, Hobson & Bence (2006), §11.3, Eq. (11.4), p. 384

Let RR be a bounded plane domain whose boundary C=∂RC = \partial R is a piecewise C1C^1 curve. Parametrize CC to go round exactly once, keeping RR to the left-hand side; for a region with no holes that is the anticlockwise direction, seen from the positive zz-axis. Let PP and QQ be C1C^1 functions on R‾=R∪C\overline R = R \cup C. Then

∮C(P dx+Q dy)  =  ∬R(∂Q∂x−∂P∂y)dx dy.\oint_C \bigl(P\, dx + Q\, dy\bigr) \;=\; \iint_R \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) dx\, dy .

Riley, Hobson and Bence impose their hypothesis on PP, QQ and the partial derivatives of both: all are to be single-valued, finite and continuous, on RR as well as on its boundary curve, and their RR is simply connected. For a multiply connected region the line integral is taken over all the boundary curves, each traversed with RR on the left — so the outer boundary anticlockwise and each hole clockwise. Strauss's example is the annulus, whose boundary is a pair of circles traversed in opposite senses.

Two equivalent readings, both used below:

  • Circulation form. With f=(P,Q)\mathbf{f} = (P,Q) and τ^\hat{\boldsymbol{\tau}} the unit tangent in the direction of travel, the left side is ∮Cf⋅τ^ ds\oint_C \mathbf{f}\cdot\hat{\boldsymbol{\tau}}\, ds, the circulation of f\mathbf{f} round CC.
  • Divergence form. Putting P=−gP = -g, Q=fQ = f for f=(f,g)\mathbf{f} = (f,g), and using n^ ds=(dy,−dx)\hat{\mathbf{n}}\, ds = (dy, -dx) for the outward normal, the theorem becomes ∬R∇⋅f  dA=∮Cf⋅n^ ds\iint_R \nabla\cdot\mathbf{f}\; dA = \oint_C \mathbf{f}\cdot\hat{\mathbf{n}}\, ds: the two-dimensional divergence theorem.
Theorem(Stokes' theorem)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.9, Eq. (11.23), p. 406; Arfken, Weber & Harris (2013), §3.8, Eq. (3.92), p. 167 and Eqs. (3.94)–(3.95), p. 168; Lee (2013), Ch. 16, Thm 16.34, p. 427

Let SS be a two-sided (orientable) piecewise C1C^1 surface in R3\mathbb{R}^3 with perimeter curve C=∂SC = \partial S, piecewise C1C^1, and let F\mathbf{F} be a C1C^1 vector field on an open set containing SS. Orient SS by a choice of unit normal n^\hat{\mathbf{n}} and let CC be traversed in the sense the right-hand rule attaches to n^\hat{\mathbf{n}} (the convention of surface integrals: with u\mathbf{u} along the direction of travel and v\mathbf{v} tangent to SS and pointing into it, n^\hat{\mathbf{n}} is the direction of u×v\mathbf{u}\times\mathbf{v}; Arfken asks of v\mathbf{v} only that it be tangent to the surface and lie on it, leaving the sense to his Fig. 3.13, so the words "pointing into it" are the disambiguation made here and in that unit, not his). Then

∫S(∇×F)⋅dS  =  ∮CF⋅dr.\int_S \bigl(\nabla\times\mathbf{F}\bigr)\cdot d\mathbf{S} \;=\; \oint_C \mathbf{F}\cdot d\mathbf{r} .

Riley, Hobson and Bence note that the theorem holds for simply and multiply connected open surfaces alike, provided they are two-sided; for a multiply connected SS the right side becomes a sum over all the boundary curves, each taken in the sense attached to n^\hat{\mathbf{n}}. Two immediate consequences:

  • Closed surfaces. A closed surface has no perimeter, so ∮S(∇×F)⋅dS=0\displaystyle\oint_S (\nabla\times\mathbf{F})\cdot d\mathbf{S} = 0 for every closed SS: a curl has no net flux through any closed surface. (Consistently, ∇⋅(∇×F)=0\nabla\cdot(\nabla\times\mathbf{F}) = 0.)
  • Surface independence. Two surfaces spanning the same curve CC, with normals agreeing with the same traversal of CC, give the same flux of ∇×F\nabla\times\mathbf{F} — provided F\mathbf{F} is C1C^1 on one open set containing both of them. The hypothesis is not a formality: the last remark below exhibits a field, and two surfaces spanning one circle, for which it fails and the two fluxes are not even both defined.

The companion identities obtained by Arfken with an arbitrary constant vector are

∫SdS×∇φ=∮Cφ dr,∫S(dS×∇)×P=∮Cdr×P,\int_S d\mathbf{S}\times\nabla\varphi = \oint_C \varphi\, d\mathbf{r}, \qquad\qquad \int_S (d\mathbf{S}\times\nabla)\times\mathbf{P} = \oint_C d\mathbf{r}\times\mathbf{P} ,

for φ\varphi and P\mathbf{P} of class C1C^1 on an open set containing SS, with ∇\nabla in the second acting on P\mathbf{P} alone. Arfken states these without derivation, saying only that they come from the same arbitrary-vector technique that gave him the companion identities of the divergence theorem (his Eqs. (3.89)–(3.90)); the third proof below carries that technique out.

Idea of the proofOriginal

Green's theorem is the fundamental theorem of calculus applied twice, once in each coordinate direction, exactly as in the divergence theorem: integrating ∂P/∂y\partial P/\partial y across the region in the yy-direction leaves the values of PP on the top and bottom arcs, and those two arcs are the boundary, traversed in opposite senses — which is where the minus sign in front of ∂P/∂y\partial P /\partial y comes from. The term in QQ is the same computation turned on its side.

Stokes' theorem then needs no new analysis, only a change of variables. Push the circulation integral back to the flat parameter domain: a tangent vector to the boundary curve of SS is ru du+rv dv\mathbf{r}_u\,du + \mathbf{r}_v\,dv, so F⋅dr\mathbf{F}\cdot d\mathbf{r} becomes a plane line integral with P=F⋅ruP = \mathbf{F}\cdot\mathbf{r}_u and Q=F⋅rvQ = \mathbf{F}\cdot\mathbf{r}_v. Green's theorem converts it to a double integral, and the combination ∂uQ−∂vP\partial_u Q - \partial_v P turns out to be exactly (∇×F)⋅(ru×rv)(\nabla\times\mathbf{F})\cdot(\mathbf{r}_u\times\mathbf{r}_v): the second derivatives of r\mathbf{r} cancel because mixed partials commute, and what remains is an algebraic identity about cross products. So the curl appears not because it was put in by hand but because it is what survives.

Proof(Green's theorem)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.3, pp. 384–385

Assume first that RR is describable in both of the two ways

R={(x,y):a≤x≤b,  y1(x)≤y≤y2(x)}={(x,y):c≤y≤d,  x1(y)≤x≤x2(y)},R = \bigl\{(x,y) : a \le x \le b,\; y_1(x) \le y \le y_2(x)\bigr\} = \bigl\{(x,y) : c \le y \le d,\; x_1(y) \le x \le x_2(y)\bigr\},

with y1≤y2y_1 \le y_2 and x1≤x2x_1 \le x_2 piecewise C1C^1. (This is the situation of Riley, Hobson and Bence's Fig. 11.3; a disc, a convex region and a rectangle are all of this kind.)

Step 1 (the term in PP). Since ∂P/∂y\partial P/\partial y is continuous on the compact set R‾\overline R, it is bounded and integrable there, so the double integral may be written as an iterated integral (iterated integrals), innermost in yy; the inner integral is then evaluated by the fundamental theorem of calculus at fixed xx:

∬R∂P∂y  dx dy=∫ab[P(x,y2(x))−P(x,y1(x))] dx.\iint_R \frac{\partial P}{\partial y}\; dx\, dy = \int_a^b \Bigl[ P\bigl(x, y_2(x)\bigr) - P\bigl(x, y_1(x)\bigr) \Bigr]\, dx .

Step 2 (the same difference as a line integral). Traversing CC with RR on the left means going along the lower arc y=y1(x)y = y_1(x) in the direction of increasing xx and back along the upper arc y=y2(x)y = y_2(x) in the direction of decreasing xx. Any vertical segments of CC (at x=ax = a or x=bx = b) contribute nothing to ∮P dx\oint P\, dx because dx=0dx = 0 on them. Hence

∮CP dx=∫abP(x,y1(x)) dx+∫baP(x,y2(x)) dx=−∬R∂P∂y  dx dy,\oint_C P\, dx = \int_a^b P\bigl(x,y_1(x)\bigr)\, dx + \int_b^a P\bigl(x,y_2(x)\bigr)\, dx = -\iint_R \frac{\partial P}{\partial y}\; dx\, dy ,

using Step 1 in the last equality. The minus sign is produced by the direction of travel, not by any choice of ours.

Step 3 (the term in QQ). Now use the second description of RR and integrate innermost in xx:

∬R∂Q∂x  dx dy=∫cd[Q(x2(y),y)−Q(x1(y),y)] dy.\iint_R \frac{\partial Q}{\partial x}\; dx\, dy = \int_c^d \Bigl[ Q\bigl(x_2(y), y\bigr) - Q\bigl(x_1(y), y\bigr) \Bigr]\, dy .

With RR on the left, the right arc x=x2(y)x = x_2(y) is traversed with yy increasing and the left arc x=x1(y)x = x_1(y) with yy decreasing, while horizontal segments contribute nothing to ∮Q dy\oint Q\, dy. So

∮CQ dy=∫cdQ(x2(y),y) dy+∫dcQ(x1(y),y) dy=∬R∂Q∂x  dx dy,\oint_C Q\, dy = \int_c^d Q\bigl(x_2(y),y\bigr)\, dy + \int_d^c Q\bigl(x_1(y),y\bigr)\, dy = \iint_R \frac{\partial Q}{\partial x}\; dx\, dy ,

this time with no sign change: the two orientations work out oppositely in the two directions, which is precisely why the integrand of Green's theorem is a difference.

Step 4 (add). Adding Steps 2 and 3 gives the theorem for a region describable in both ways at once.

Step 5 (regions assembled from finitely many such pieces). Suppose next that R=R1∪⋯∪RmR = R_1\cup\dots\cup R_m, where each RiR_i is a region of the kind Steps 1–3 treat, the RiR_i meet only along arcs of their boundaries, and each ∂Ri\partial R_i is traversed with RiR_i on the left. Add the theorem over the pieces. An arc interior to RR belongs to exactly two of the pieces, which lie on opposite sides of it, so it is traversed once in each direction and its two contributions to ∮(P dx+Q dy)\oint(P\,dx + Q\,dy) cancel; the double integrals add to ∬R\iint_R. What survives on the line-integral side is the integral over the part of ⋃i∂Ri\bigcup_i\partial R_i that lies in ∂R\partial R, each arc still carrying RR on its left. So the theorem holds for RR. The same bookkeeping covers a multiply connected RR, whose boundary is then a family of curves, the outer one anticlockwise and each hole clockwise. □\square

NoteAdaptedAdapted from Strauss (2008), Appendix §A.3, Green's Thm 6, p. 422; Riley, Hobson & Bence (2006), §11.3, Eq. (11.4) and p. 385

What the proof above covers, and what is taken on authority. Steps 1–5 prove Green's theorem for a plane region that is a finite union of pieces each of which is a graph region in both coordinate directions. The statement at the head of this unit is the stronger one — every bounded plane domain with piecewise C1C^1 boundary — and that gap is not closed here, exactly as the gap between simple regions and general ones is left open in the divergence theorem.

The gap is real, not just unaddressed: a bounded domain with piecewise C1C^1 boundary need not admit a finite decomposition of that kind. Let

f(x)=2+x3sin⁡(1/x)(0<x≤1),f(0)=2,f(x) = 2 + x^3\sin(1/x) \quad (0 < x \le 1), \qquad f(0) = 2 ,

which is C1C^1 on [0,1][0,1], since f′(x)=3x2sin⁡(1/x)−xcos⁡(1/x)→0=f′(0)f'(x) = 3x^2\sin(1/x) - x\cos(1/x) \to 0 = f'(0) as x→0+x \to 0^+, and let RR be the region {0<x<1,  0<y<f(x)}\{0 < x < 1,\; 0 < y < f(x)\}. Let I1,I2,…I_1, I_2, \dots be the maximal open intervals of (0,1)(0,1) on which sin⁡(1/x)>0\sin(1/x) > 0; there are infinitely many, they are pairwise disjoint, and f>2f > 2 exactly on their union. Put Bj={(x,y):x∈Ij, 2<y<f(x)}B_j = \{(x,y) : x \in I_j,\ 2 < y < f(x)\}, an infinite family of pairwise disjoint nonempty open subsets of RR, any two of which are separated by the line y=2y = 2 in the sense that no connected subset of R∩{y>2}R \cap \{y > 2\} meets two of them.

Now suppose R=⋃k=1NRkR = \bigcup_{k=1}^{N} R_k were a finite decomposition into two-way graph regions, and write the yy-description of the kkth piece as Rk={(x,y):ck≤y≤dk, ak(y)≤x≤bk(y)}R_k = \{(x,y) : c_k \le y \le d_k,\ a_k(y) \le x \le b_k(y)\} with ak≤bka_k \le b_k continuous on [ck,dk][c_k, d_k]. The part of that piece above the line,

Rk∩{y>2}={(x,y):max⁡(ck,2)<y≤dk, ak(y)≤x≤bk(y)},R_k \cap \{y > 2\} = \bigl\{ (x,y) : \max(c_k, 2) < y \le d_k,\ a_k(y) \le x \le b_k(y) \bigr\} ,

is connected: each of its horizontal slices is the single interval [ak(y),bk(y)][a_k(y), b_k(y)], each slice meets the left edge {(ak(y),y):max⁡(ck,2)<y≤dk}\{(a_k(y), y) : \max(c_k, 2) < y \le d_k\}, and that edge is connected, being the image of an interval under a continuous map — and a union of connected sets all meeting one connected set is connected. Since the BjB_j are separated in the sense just noted, a connected subset of R∩{y>2}R \cap \{y > 2\} meets at most one of them, so each RkR_k meets at most one BjB_j. With only NN pieces and infinitely many BjB_j, some BjB_j is met by no piece at all; as BjB_j is a nonempty subset of RR, this contradicts ⋃kRk=R\bigcup_k R_k = R.

We therefore take the general statement unproved, from Strauss's Green's Theorem 6 (p. 422), who states it for any bounded plane domain with piecewise C1C^1 boundary and refers the reader elsewhere for the proof, and from Riley, Hobson and Bence's Eq. (11.4) (p. 384), whose own derivation is exactly Steps 1–4 for the single region of their Fig. 11.3, the extension to multiply connected regions being introduced on p. 385 with the words "it may further be shown". The proof of Stokes' theorem below uses Green's theorem only on parameter domains, and is written so as to say which of the two cases it is invoking.

Proof(Stokes' theorem for a C2C^2 patch)Original

Let S=r(D)S = \mathbf{r}(D) be a regular patch with r\mathbf{r} of class C2C^2 on a compact parameter domain DD to which Green's theorem applies — either a domain of the two-way graph form that Steps 1–4 of the previous proof treat directly, or a finite union of those, which its Step 5 covers; the note above says what is taken on authority beyond that. Require r\mathbf{r} to be injective on the whole of DD, not merely regular, and orient SS by n^=(ru×rv)/∣ru×rv∣\hat{\mathbf{n}} = (\mathbf{r}_u\times\mathbf{r}_v)/\lvert\mathbf{r}_u\times\mathbf{r}_v\rvert. Let F\mathbf{F} be C1C^1 on an open set containing SS.

Injectivity is what makes the two descriptions of the perimeter agree. A regular injective r\mathbf{r} on the compact set DD is a homeomorphism of DD onto SS, so it carries the interior of DD onto the points of SS with a neighbourhood in SS and ∂D\partial D onto the rest; that is, r(∂D)\mathbf{r}(\partial D) is precisely the perimeter C=∂SC = \partial S named in the statement. Without injectivity the image of ∂D\partial D need not be the boundary of the image at all: a map r\mathbf{r} that wraps DD twice over the same patch has r(∂D)\mathbf{r}(\partial D) running round SS's rim twice, and the identity proved below would then compute twice the flux, not the circulation of the statement.

Step 1 (orientation bookkeeping). Traverse ∂D\partial D anticlockwise, with DD on the left, and let C=r(∂D)C = \mathbf{r}(\partial D) — the perimeter ∂S\partial S of the statement, by the injectivity just assumed — carry the induced direction. This is the right-hand traversal relative to n^\hat{\mathbf{n}}. To see it, look at a boundary point in parameters where DD is locally the half-plane v≥0v \ge 0 with boundary the uu-axis: with DD on the left, the direction of travel is +u+u, so the travel vector on SS is u=ru\mathbf{u} = \mathbf{r}_u, and the tangent to SS pointing into the surface is v=rv\mathbf{v} = \mathbf{r}_v. Then u×v=ru×rv\mathbf{u}\times\mathbf{v} = \mathbf{r}_u\times\mathbf{r}_v, which is the chosen normal — exactly the right-hand rule in the form fixed in the statement.

Step 2 (pull the circulation back to the parameters). Let t↦(u(t),v(t))t \mapsto (u(t),v(t)) parametrize ∂D\partial D. The image curve is t↦r(u(t),v(t))t\mapsto\mathbf{r}(u(t),v(t)), with velocity ruu′+rvv′\mathbf{r}_u u' + \mathbf{r}_v v' by the chain rule. Therefore

∮CF⋅dr=∮∂D[(F⋅ru) du+(F⋅rv) dv],\oint_C \mathbf{F}\cdot d\mathbf{r} = \oint_{\partial D}\Bigl[ \bigl(\mathbf{F}\cdot\mathbf{r}_u\bigr)\, du + \bigl(\mathbf{F}\cdot\mathbf{r}_v\bigr)\, dv \Bigr] ,

a plane line integral with P=F(r)⋅ruP = \mathbf{F}(\mathbf{r})\cdot\mathbf{r}_u and Q=F(r)⋅rvQ = \mathbf{F}(\mathbf{r})\cdot\mathbf{r}_v as functions of (u,v)(u,v). Both are C1C^1 on DD: F\mathbf{F} is C1C^1 and r\mathbf{r} is C2C^2, so ru\mathbf{r}_u and rv\mathbf{r}_v are C1C^1.

Step 3 (apply Green's theorem). By the previous proof,

∮CF⋅dr=∬D(∂∂u(F⋅rv)−∂∂v(F⋅ru))du dv.\oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_D \left( \frac{\partial}{\partial u}\bigl(\mathbf{F}\cdot\mathbf{r}_v\bigr) - \frac{\partial}{\partial v}\bigl(\mathbf{F}\cdot\mathbf{r}_u\bigr) \right) du\, dv .

Step 4 (the second derivatives of r\mathbf{r} cancel). By the product rule and the chain rule,

∂∂u(F⋅rv)=[(ru⋅∇)F]⋅rv+F⋅rvu,∂∂v(F⋅ru)=[(rv⋅∇)F]⋅ru+F⋅ruv,\frac{\partial}{\partial u}\bigl(\mathbf{F}\cdot\mathbf{r}_v\bigr) = \bigl[(\mathbf{r}_u\cdot\nabla)\mathbf{F}\bigr]\cdot\mathbf{r}_v + \mathbf{F}\cdot\mathbf{r}_{vu}, \qquad \frac{\partial}{\partial v}\bigl(\mathbf{F}\cdot\mathbf{r}_u\bigr) = \bigl[(\mathbf{r}_v\cdot\nabla)\mathbf{F}\bigr]\cdot\mathbf{r}_u + \mathbf{F}\cdot\mathbf{r}_{uv} ,

where (a⋅∇)F(\mathbf{a}\cdot\nabla)\mathbf{F} denotes the vector with components am ∂Fn/∂xma_m\,\partial F_n/\partial x_m. Here the hypothesis r∈C2\mathbf{r} \in C^2 is used: ruv=rvu\mathbf{r}_{uv} = \mathbf{r}_{vu}, so the two terms containing them cancel on subtraction, leaving

∂Q∂u−∂P∂v=[(ru⋅∇)F]⋅rv−[(rv⋅∇)F]⋅ru.\frac{\partial Q}{\partial u} - \frac{\partial P}{\partial v} = \bigl[(\mathbf{r}_u\cdot\nabla)\mathbf{F}\bigr]\cdot\mathbf{r}_v - \bigl[(\mathbf{r}_v\cdot\nabla)\mathbf{F}\bigr]\cdot\mathbf{r}_u .

Step 5 (this is the curl, dotted with the normal). For any two vectors a,b\mathbf{a}, \mathbf{b} and any differentiable F\mathbf{F}, the epsilon-delta identity εkmnεkpq=δmpδnq−δmqδnp\varepsilon_{kmn}\varepsilon_{kpq} = \delta_{mp}\delta_{nq} - \delta_{mq}\delta_{np} (vector algebra) gives

(∇×F)⋅(a×b)=εkmn ∂mFn  εkpq apbq=am ∂mFn bn−bm ∂mFn an=[(a⋅∇)F]⋅b−[(b⋅∇)F]⋅a.\bigl(\nabla\times\mathbf{F}\bigr)\cdot\bigl(\mathbf{a}\times\mathbf{b}\bigr) = \varepsilon_{kmn}\,\partial_mF_n\;\varepsilon_{kpq}\,a_pb_q = a_m\,\partial_mF_n\,b_n - b_m\,\partial_mF_n\,a_n = \bigl[(\mathbf{a}\cdot\nabla)\mathbf{F}\bigr]\cdot\mathbf{b} - \bigl[(\mathbf{b}\cdot\nabla)\mathbf{F}\bigr]\cdot\mathbf{a} .

With a=ru\mathbf{a} = \mathbf{r}_u, b=rv\mathbf{b} = \mathbf{r}_v this is exactly the integrand of Step 4.

Step 6 (conclude). Substituting into Step 3,

∮CF⋅dr=∬D(∇×F)⋅(ru×rv) du dv=∫S(∇×F)⋅dS,\oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_D \bigl(\nabla\times\mathbf{F}\bigr)\cdot\bigl(\mathbf{r}_u\times\mathbf{r}_v\bigr)\, du\, dv = \int_S \bigl(\nabla\times\mathbf{F}\bigr)\cdot d\mathbf{S} ,

the last equality being the definition of a flux integral over the patch. For a surface made of several patches, add: interior edges are traversed twice in opposite directions when the patches are consistently oriented, and cancel. □\square

Proof(The two companion identities)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.8, Eqs. (3.94)–(3.95), p. 168

Both come from Stokes' theorem applied to a field built out of an arbitrary constant vector a\mathbf{a} — the technique Arfken points to but does not carry out. Being constant, a\mathbf{a} passes through ∇\nabla and through both integral signs; (a⋅∇)P(\mathbf{a}\cdot\nabla)\mathbf{P} keeps the meaning it was given in the previous proof, the vector with components am ∂Pn/∂xma_m\,\partial P_n/\partial x_m. Throughout, SS and CC satisfy the hypotheses of the theorem and φ,P\varphi, \mathbf{P} are C1C^1 on an open set containing SS.

Step 1 (one cyclic rule, used twice). For any three vectors, (u×a)⋅w=det⁡[u,a,w]=det⁡[a,w,u]=a⋅(w×u)(\mathbf{u}\times\mathbf{a})\cdot\mathbf{w} = \det[\mathbf{u}, \mathbf{a}, \mathbf{w}] = \det[\mathbf{a}, \mathbf{w}, \mathbf{u}] = \mathbf{a}\cdot(\mathbf{w}\times\mathbf{u}), the two determinants differing by a cyclic permutation of their rows, which is an even permutation.

Step 2 (the scalar identity). Take F=φ a\mathbf{F} = \varphi\,\mathbf{a}. Then ∇×(φa)=∇φ×a\nabla\times(\varphi\mathbf{a}) = \nabla\varphi\times\mathbf{a}, since the term φ ∇×a\varphi\,\nabla\times\mathbf{a} vanishes for constant a\mathbf{a}. Apply Stokes' theorem to this F\mathbf{F}; rewrite its flux side by Step 1 with u=∇φ\mathbf{u} = \nabla\varphi and w=n^\mathbf{w} = \hat{\mathbf{n}}, and its circulation side by pulling the scalar φ\varphi past the dot product. This gives

a⋅∫S(n^×∇φ) dS=∫S(∇φ×a)⋅dS=∮Cφ a⋅dr=a⋅∮Cφ dr.\mathbf{a}\cdot\int_S \bigl(\hat{\mathbf{n}}\times\nabla\varphi\bigr)\, dS = \int_S \bigl(\nabla\varphi\times\mathbf{a}\bigr)\cdot d\mathbf{S} = \oint_C \varphi\,\mathbf{a}\cdot d\mathbf{r} = \mathbf{a}\cdot\oint_C \varphi\, d\mathbf{r} .

Step 3 (strip the arbitrary vector). The outer two members agree for every constant a\mathbf{a}; taking a=i^,j^,k^\mathbf{a} = \hat{\mathbf{i}}, \hat{\mathbf{j}}, \hat{\mathbf{k}} in turn equates the three components of the two vectors, which is the first identity, Arfken's Eq. (3.94), since n^ dS=dS\hat{\mathbf{n}}\,dS = d\mathbf{S}.

Step 4 (the vector identity: the left side of Stokes). Take F=P×a\mathbf{F} = \mathbf{P}\times\mathbf{a}. With the epsilon-delta identity used in the previous proof,

[∇×(P×a)]i=εijk ∂j(εklmPlam)=(δilδjm−δimδjl)am ∂jPl=[(a⋅∇)P]i−ai ∇⋅P,\bigl[\nabla\times(\mathbf{P}\times\mathbf{a})\bigr]_i = \varepsilon_{ijk}\,\partial_j\bigl(\varepsilon_{klm}P_la_m\bigr) = \bigl(\delta_{il}\delta_{jm} - \delta_{im}\delta_{jl}\bigr)a_m\,\partial_jP_l = \bigl[(\mathbf{a}\cdot\nabla)\mathbf{P}\bigr]_i - a_i\,\nabla\cdot\mathbf{P} ,

using εijkεklm=εkijεklm=δilδjm−δimδjl\varepsilon_{ijk}\varepsilon_{klm} = \varepsilon_{kij}\varepsilon_{klm} = \delta_{il}\delta_{jm} - \delta_{im}\delta_{jl}. On the circulation side, Step 1 with u=P\mathbf{u} = \mathbf{P} and w=dr\mathbf{w} = d\mathbf{r} gives (P×a)⋅dr=a⋅(dr×P)(\mathbf{P}\times\mathbf{a})\cdot d\mathbf{r} = \mathbf{a}\cdot(d\mathbf{r}\times\mathbf{P}). So Stokes' theorem reads

∫S[(a⋅∇)P−a (∇⋅P)]⋅dS=a⋅∮Cdr×P.\int_S \Bigl[(\mathbf{a}\cdot\nabla)\mathbf{P} - \mathbf{a}\,\bigl(\nabla\cdot\mathbf{P}\bigr)\Bigr]\cdot d\mathbf{S} = \mathbf{a}\cdot\oint_C d\mathbf{r}\times\mathbf{P} .

Step 5 (recognise the left side as (dS×∇)×P(d\mathbf{S}\times\nabla)\times\mathbf{P}). Expanding that double cross product with (n^×∇)j=εjlmnl∂m(\hat{\mathbf{n}}\times\nabla)_j = \varepsilon_{jlm}n_l\partial_m, and using εijkεjlm=−εjikεjlm=−(δilδkm−δimδkl)\varepsilon_{ijk}\varepsilon_{jlm} = -\varepsilon_{jik}\varepsilon_{jlm} = -(\delta_{il}\delta_{km} - \delta_{im}\delta_{kl}),

[(n^×∇)×P]i=εijk εjlm nl ∂mPk=−(ni ∂kPk−nk ∂iPk)=nk ∂iPk−ni ∇⋅P.\bigl[(\hat{\mathbf{n}}\times\nabla)\times\mathbf{P}\bigr]_i = \varepsilon_{ijk}\,\varepsilon_{jlm}\,n_l\,\partial_mP_k = -\bigl(n_i\,\partial_kP_k - n_k\,\partial_iP_k\bigr) = n_k\,\partial_iP_k - n_i\,\nabla\cdot\mathbf{P} .

Dotting with a\mathbf{a} and collecting, a⋅[(n^×∇)×P]=nk (a⋅∇)Pk−(a⋅n^) ∇⋅P=[(a⋅∇)P−a(∇⋅P)]⋅n^\mathbf{a}\cdot\bigl[(\hat{\mathbf{n}}\times\nabla)\times\mathbf{P}\bigr] = n_k\,(\mathbf{a}\cdot\nabla)P_k - (\mathbf{a}\cdot\hat{\mathbf{n}})\,\nabla\cdot\mathbf{P} = \bigl[(\mathbf{a}\cdot\nabla)\mathbf{P} - \mathbf{a}(\nabla\cdot\mathbf{P})\bigr]\cdot\hat{\mathbf{n}}, which is exactly the integrand of Step 4.

Step 6 (conclude). Therefore a⋅∫S(dS×∇)×P=a⋅∮Cdr×P\mathbf{a}\cdot\int_S (d\mathbf{S}\times\nabla)\times\mathbf{P} = \mathbf{a}\cdot\oint_C d\mathbf{r}\times\mathbf{P} for every constant a\mathbf{a}, and stripping a\mathbf{a} as in Step 3 gives the second identity, Arfken's Eq. (3.95). □\square

NoteAdaptedAdapted from Lee (2013), Ch. 16, Thm 16.34 and Eq. (16.14), pp. 426–427; Riley, Hobson & Bence (2006), §11.9, p. 406; Arfken, Weber & Harris (2013), §3.8, p. 167

Other routes, and the general version. Riley, Hobson and Bence and Arfken both derive Stokes' theorem by dividing SS into a mesh of small rectangles, applying the circulation definition of the curl to each, and observing that all interior edges cancel in pairs. That argument shows why the theorem is true and is the one to remember, but turning it into a proof requires an estimate of the error on each cell and a limit; the route through Green's theorem above avoids that. The statement in its full generality — SS a compact oriented two-dimensional submanifold with boundary in an oriented Riemannian 3-manifold — is Lee's Theorem 16.34, proved by applying Stokes's theorem for differential forms to the 1-form F♭\mathbf{F}^\flat and identifying d(F♭)d(\mathbf{F}^\flat) with the curl; see Stokes' theorem for forms, which contains Green's theorem, Stokes' theorem and the divergence theorem as the three cases n=2n = 2, and (2,3)(2,3) and (3,3)(3,3) of one statement.

RemarkOriginal

Where the hypotheses are used, and what fails without them.

  • Orientation is not a convention one may drop. Both sides change sign when the traversal of CC is reversed, and both change sign when n^\hat{\mathbf{n}} is reversed; the theorem is the statement that they change together. Arfken makes the point that this is why no sign ambiguity arises in Faraday's law. Fixing one of the two and reading off the other, as in Step 1, is the only safe procedure.
  • Two-sidedness. A Möbius strip has a perimeter and a well-defined circulation round it, but no continuous normal field, so the left-hand side is not even defined. This is the one hypothesis with no analogue in the divergence theorem, where the boundary of a solid region is automatically two-sided.
  • r∈C2\mathbf{r} \in C^2, used twice. In Step 2 it makes the coefficients P,QP, Q of the pulled-back line integral of class C1C^1, which is what lets Green's theorem be applied to them in Step 3; in Step 4 it gives ruv=rvu\mathbf{r}_{uv} = \mathbf{r}_{vu}, so that the two mixed terms cancel. Our proof therefore covers the C2C^2 case and no more. The statement above is nevertheless given for two-sided piecewise C1C^1 surfaces, on the authority of Riley, Hobson and Bence (§11.9, p. 406), who state the theorem for any two-sided open surface, simply or multiply connected, and attach no smoothness hypothesis to it at all; Arfken's mesh derivation (p. 167) is the same argument, with the same silence. The merely C1C^1 case is proved nowhere in this handbook. It needs SS to be approximated by smoother surfaces, and the nearest result in our library, Lee's Theorem 16.34 quoted in the note above, assumes a smooth submanifold and so does not contain it either. What is unproved here is the smoothness of the surface and nothing else: the extension from one patch to a surface made of several is the last line of the proof.
  • F∈C1\mathbf{F} \in C^1 on a neighbourhood of SS, not just on SS. The curl involves derivatives of F\mathbf{F} in the direction off the surface as well as along it. A field defined only on SS has no curl.
  • F\mathbf{F} must be C1C^1 at every point of SS, including points not on CC. Take F=(−y,x,0)/(x2+y2)\mathbf{F} = (-y, x, 0)/(x^2+y^2) on the complement of the zz-axis, for which ∇×F=0\nabla\times\mathbf{F} = \mathbf{0} (see line integrals), and let CC be the unit circle in the plane z=0z = 0. The circulation is 2π2\pi, but every surface spanning CC meets the zz-axis, where F\mathbf{F} is undefined; so the flux side is not available, and no contradiction arises. If instead SS is a disc spanning a circle that does not encircle the axis, both sides are 00.
  • Why the two readings of Green's theorem are the same theorem. In the plane, replacing f=(f,g)\mathbf{f} = (f,g) by (−g,f)(-g, f) rotates the field by a quarter turn, which exchanges its tangential and normal components on CC and exchanges ∇⋅f\nabla\cdot\mathbf{f} with the scalar curl ∂xg−∂yf\partial_xg - \partial_yf. Strauss records the substitution P=−gP = -g, Q=fQ = f explicitly; the two forms carry exactly the same information.
  • Relation to the plane case. Green's theorem is Stokes' theorem for a flat surface in the plane z=0z = 0 with n^=k^\hat{\mathbf{n}} = \hat{\mathbf{k}}: for F=(P,Q,0)\mathbf{F} = (P, Q, 0) the only surviving component of the curl is (∇×F)3=∂xQ−∂yP(\nabla\times\mathbf{F})_3 = \partial_xQ - \partial_yP. Our proof runs in that direction — Green first, then Stokes — so it cannot be reversed without circularity.
Example(Green's theorem: the area inside an astroid)Original

Putting P=−yP = -y, Q=xQ = x in Green's theorem makes the integrand ∂xQ−∂yP=2\partial_xQ - \partial_yP = 2, so for any region RR with piecewise C1C^1 boundary

area⁡(R)=12∮C(x dy−y dx),\operatorname{area}(R) = \frac12\oint_C \bigl(x\, dy - y\, dx\bigr) ,

which turns an area into a one-dimensional integral along the boundary. Take the astroid

x=acos⁡3t,y=asin⁡3t,0≤t≤2π(a>0),x = a\cos^3 t, \qquad y = a\sin^3 t, \qquad 0 \le t \le 2\pi \quad (a > 0),

traversed anticlockwise, which encloses a region RR with four cusps.

  1. Differentials. dx=−3acos⁡2t sin⁡t  dtdx = -3a\cos^2 t\,\sin t\; dt and dy=3asin⁡2t cos⁡t  dtdy = 3a\sin^2 t\,\cos t\; dt.

  2. Integrand.

    x dy−y dx=3a2(cos⁡4t sin⁡2t+sin⁡4t cos⁡2t) dt=3a2cos⁡2t sin⁡2t (cos⁡2t+sin⁡2t) dt=34a2sin⁡22t  dt,x\, dy - y\, dx = 3a^2\bigl(\cos^4t\,\sin^2t + \sin^4t\,\cos^2t\bigr)\, dt = 3a^2\cos^2t\,\sin^2t\,\bigl(\cos^2t+\sin^2t\bigr)\, dt = \tfrac34 a^2\sin^2 2t\; dt ,

    using cos⁡tsin⁡t=12sin⁡2t\cos t\sin t = \tfrac12\sin 2t.

  3. Integrate. Since ∫02πsin⁡22t dt=π\int_0^{2\pi}\sin^2 2t\, dt = \pi,

    area⁡(R)=12⋅3a24⋅π=3πa28.\operatorname{area}(R) = \frac12\cdot\frac{3a^2}{4}\cdot\pi = \frac{3\pi a^2}{8} .

    For a=2a = 2 this is 3π/2=4.712393\pi/2 = 4.71239.

  4. Check, by trapping RR between two shapes whose areas are known. On the curve,

    ∣x∣+∣y∣=a(∣cos⁡t∣3+∣sin⁡t∣3)≤a(cos⁡2t+sin⁡2t)=a,\lvert x\rvert + \lvert y\rvert = a\bigl(\lvert\cos t\rvert^3 + \lvert\sin t\rvert^3\bigr) \le a\bigl(\cos^2 t + \sin^2 t\bigr) = a ,

    since ∣cos⁡t∣≤1\lvert\cos t\rvert \le 1 and ∣sin⁡t∣≤1\lvert\sin t\rvert \le 1. So the boundary lies in the diamond ∣x∣+∣y∣≤a\lvert x\rvert + \lvert y\rvert \le a, which is convex and therefore contains RR as well; the diamond's area is 2a22a^2, so area⁡(R)≤2a2\operatorname{area}(R) \le 2a^2. In the other direction, on the curve

    r2=x2+y2=a2(cos⁡6t+sin⁡6t)=a2(1−34sin⁡22t)≥a24,r^2 = x^2 + y^2 = a^2\bigl(\cos^6 t + \sin^6 t\bigr) = a^2\Bigl(1 - \tfrac34\sin^2 2t\Bigr) \ge \frac{a^2}{4} ,

    so every boundary point is at distance at least a/2a/2 from the origin; and RR is star-shaped about the origin, each ray from it meeting the curve exactly once, so RR contains the disc of radius a/2a/2 and area⁡(R)≥πa2/4\operatorname{area}(R) \ge \pi a^2/4. Hence

    π4=0.78540  ≤  3π8=1.17810  ≤  2,\frac{\pi}{4} = 0.78540 \;\le\; \frac{3\pi}{8} = 1.17810 \;\le\; 2 ,

    in units of a2a^2: the computed area does lie between the two bounds, nearer the lower one, as the four concave sides should make it.

    The cusps at t=0,π/2,π,3π/2t = 0, \pi/2, \pi, 3\pi/2, where (x′,y′)=0(x', y') = \mathbf{0}, do no harm, but not because the parametrization is smooth. What Green's theorem requires is that the boundary be a piecewise C1C^1 curve, and it is: the four open arcs between consecutive cusps are regular C1C^1 arcs, and the cusps are the finitely many corner points at which the pieces join — exactly as for the corners of a square. The line integral is then computed from the given C∞C^\infty parametrization, whose velocity vanishing at four isolated parameter values affects neither the integrand nor the value of the integral.

Example(Stokes' theorem on a triangle, both sides computed)Original

Let SS be the flat triangle with vertices A=(1,0,0)A = (1,0,0), B=(0,1,0)B = (0,1,0), C0=(0,0,1)C_0 = (0,0,1) and perimeter traversed A→B→C0→AA \to B \to C_0 \to A, and let

F=(z,  x,  y).\mathbf{F} = (z,\; x,\; y) .
  1. Orientation. Two edge vectors in the direction of travel are B−A=(−1,1,0)B - A = (-1,1,0) and C0−B=(0,−1,1)C_0 - B = (0,-1,1), and

    (−1,1,0)×(0,−1,1)=(1, 1, 1),(-1,1,0)\times(0,-1,1) = (1,\,1,\,1) ,

    so the right-hand traversal corresponds to n^=(1,1,1)/3\hat{\mathbf{n}} = (1,1,1)/\sqrt3, the normal pointing away from the origin. The triangle is equilateral with side ∣B−A∣=2\lvert B-A\rvert = \sqrt2, so its area is 34(2)2=32\tfrac{\sqrt3}{4}(\sqrt2)^2 = \tfrac{\sqrt3}{2}.

  2. Flux of the curl.

    ∇×F=(∂y∂y−∂x∂z,  ∂z∂z−∂y∂x,  ∂x∂x−∂z∂y)=(1,1,1),\nabla\times\mathbf{F} = \Bigl(\frac{\partial y}{\partial y} - \frac{\partial x}{\partial z},\; \frac{\partial z}{\partial z} - \frac{\partial y}{\partial x},\; \frac{\partial x}{\partial x} - \frac{\partial z}{\partial y}\Bigr) = (1,1,1) ,

    a constant field, so

    ∫S(∇×F)⋅dS=(1,1,1)⋅(1,1,1)3  ⋅32=3⋅32=32.\int_S (\nabla\times\mathbf{F})\cdot d\mathbf{S} = (1,1,1)\cdot\frac{(1,1,1)}{\sqrt3}\;\cdot\frac{\sqrt3}{2} = \sqrt3\cdot\frac{\sqrt3}{2} = \frac{3}{2} .
  3. Circulation, edge by edge. Each edge is a straight segment r(t)=p+t(q−p)\mathbf{r}(t) = \mathbf{p} + t(\mathbf{q}-\mathbf{p}), 0≤t≤10 \le t \le 1.

    • A→BA \to B: r=(1−t, t, 0)\mathbf{r} = (1-t,\, t,\, 0), r′=(−1,1,0)\mathbf{r}' = (-1,1,0), and F(r)=(z,x,y)=(0, 1−t, t)\mathbf{F}(\mathbf{r}) = (z,x,y) = (0,\, 1-t,\, t), so F⋅r′=1−t\mathbf{F}\cdot\mathbf{r}' = 1-t and the contribution is ∫01(1−t) dt=12\int_0^1 (1-t)\,dt = \tfrac12.
    • B→C0B \to C_0: r=(0, 1−t, t)\mathbf{r} = (0,\, 1-t,\, t), r′=(0,−1,1)\mathbf{r}' = (0,-1,1), F(r)=(t, 0, 1−t)\mathbf{F}(\mathbf{r}) = (t,\, 0,\, 1-t), so F⋅r′=1−t\mathbf{F}\cdot\mathbf{r}' = 1-t: again 12\tfrac12.
    • C0→AC_0 \to A: r=(t, 0, 1−t)\mathbf{r} = (t,\, 0,\, 1-t), r′=(1,0,−1)\mathbf{r}' = (1,0,-1), F(r)=(1−t, t, 0)\mathbf{F}(\mathbf{r}) = (1-t,\, t,\, 0), so F⋅r′=1−t\mathbf{F}\cdot\mathbf{r}' = 1-t: again 12\tfrac12.

    Hence ∮CF⋅dr=3⋅12=32\displaystyle\oint_C \mathbf{F}\cdot d\mathbf{r} = 3\cdot\tfrac12 = \tfrac32.

  4. Comparison. Both sides equal 32\tfrac32.

  5. Surface independence, checked. Replace SS by the three right triangles OABOAB, OBC0OBC_0, OC0AOC_0A with OO the origin; together they span the same perimeter, because the three segments OAOA, OBOB, OC0OC_0 each belong to two of them and cancel. Consistency forces the boundary traversals A→B→O→AA\to B\to O\to A, B→C0→O→BB\to C_0\to O\to B and C0→A→O→C0C_0\to A\to O\to C_0, whose right-hand normals are, by the same cross-product computation as in step 1,

    (−1,1,0)×(0,−1,0)=k^,(0,−1,1)×(0,0,−1)=i^,(1,0,−1)×(−1,0,0)=j^.(-1,1,0)\times(0,-1,0) = \hat{\mathbf{k}}, \qquad (0,-1,1)\times(0,0,-1) = \hat{\mathbf{i}}, \qquad (1,0,-1)\times(-1,0,0) = \hat{\mathbf{j}} .

    Each triangle has area 12\tfrac12, so each contributes (1,1,1)⋅e^⋅12=12(1,1,1)\cdot\hat{\mathbf{e}}\cdot\tfrac12 = \tfrac12, and the total is again 32\tfrac32. Note that these three normals point into the tetrahedron OABC0OABC_0; the orientation is fixed by the perimeter, not by any region.

ApplicationAdaptedAdapted from Arfken, Weber & Harris (2013), §3.8, Example 3.8.2, p. 168

Stokes' theorem is what converts the two curl equations of Maxwell's set between their differential and circuit forms. Integrating ∇×B=μ0J\nabla\times\mathbf{B} = \mu_0\mathbf{J} over a disc SS pierced by a current-carrying wire and applying the theorem gives

∮∂SB⋅dr=μ0∫SJ⋅dS=μ0I,\oint_{\partial S}\mathbf{B}\cdot d\mathbf{r} = \mu_0 \int_S \mathbf{J}\cdot d\mathbf{S} = \mu_0 I ,

which is Ampère's law in the form Arfken calls Oersted's law; the surface-independence property is what makes "the current enclosed by the loop" well defined. Integrating ∇×E=−∂B/∂t\nabla\times\mathbf{E} = -\partial\mathbf{B}/\partial t over a circuit of area SS gives

∮∂SE⋅dr=−dΦdt,Φ=∫SB⋅dS,\oint_{\partial S}\mathbf{E}\cdot d\mathbf{r} = -\frac{d\Phi}{dt}, \qquad \Phi = \int_S\mathbf{B}\cdot d\mathbf{S} ,

Faraday's law: the voltage induced in a loop of wire is minus the rate at which magnetic flux through the loop changes. Two separate things are often run together here. Reversing the sense of the loop reverses drd\mathbf{r} and therefore also dSd\mathbf{S} and the flux Φ\Phi, so both sides change sign together and the prediction does not depend on which way round the loop was labelled: that is Arfken's "no sign ambiguity" remark (p. 168), a statement about orientation. Lenz's law is the content of the minus sign itself — the induced current flows so as to oppose the change in flux — and it is what makes a transformer or an alternator work rather than run away.

In fluid mechanics the circulation Γ=∮Cu⋅dr\Gamma = \oint_C\mathbf{u}\cdot d\mathbf{r} round a closed curve equals the flux of the vorticity ω=∇×u\boldsymbol{\omega} = \nabla\times\mathbf{u} through any surface spanning it; this is the identity behind Kelvin's circulation theorem, the Kutta–Joukowski lift formula, and the statement that a vortex tube's strength is constant along its length. Green's theorem in its own right is the planimeter's mathematics: an instrument that traces the boundary of a shape and reads off 12∮(x dy−y dx)\tfrac12\oint(x\,dy - y\,dx) returns its area, and the same formula is how a geographic information system computes the area of a polygon from its vertex list.

Theorem

Green's identities

Adapted

Derives Green's first and second identities from the divergence theorem and uses the first to prove that the Dirichlet problem for Poisson's equation has at most one solution, that the Neumann problem has one up to an additive constant and only when its data satisfy the compatibility condition ∮Sh dS=∫Vf dV\oint_S h\,dS = \int_V f\,dV, and that the Robin problem with positive coefficient has at most one.

Prerequisites: The divergence theorem, Divergence, curl and the Laplacian

Theorem(Green's first and second identities)AdaptedAdapted from Strauss (2008), §7.1, Eq. (G1), p. 180 and §7.2, Eq. (G2), p. 185; Evans (2010), Appendix §C.2, Thm 3, p. 667; Riley, Hobson & Bence (2006), §11.8.1, Eqs. (11.19)–(11.20), p. 403

Let V⊆R3V \subseteq \mathbb{R}^3 be a bounded domain whose boundary S=∂VS = \partial V is piecewise C1C^1, with unit outward normal n^\hat{\mathbf{n}}, and write

∂u∂n=n^⋅∇u\frac{\partial u}{\partial n} = \hat{\mathbf{n}}\cdot\nabla u

for the outward normal derivative on SS. Then:

  1. Green's first identity. For u∈C2(V‾)u \in C^2(\overline V) and v∈C1(V‾)v \in C^1(\overline V), ∮Sv ∂u∂n  dS  =  ∫V∇v⋅∇u  dV  +  ∫Vv ∇2u  dV.(G1)\oint_S v\,\frac{\partial u}{\partial n}\; dS \;=\; \int_V \nabla v\cdot\nabla u\; dV \;+\; \int_V v\,\nabla^2 u\; dV . \tag{G1}
  2. The case v≡1v \equiv 1. For u∈C2(V‾)u \in C^2(\overline V), ∮S∂u∂n  dS=∫V∇2u  dV.\oint_S \frac{\partial u}{\partial n}\; dS = \int_V \nabla^2 u\; dV .
  3. Green's second identity. For u,v∈C2(V‾)u, v \in C^2(\overline V), ∫V(u ∇2v−v ∇2u)  dV  =  ∮S(u ∂v∂n−v ∂u∂n)dS.(G2)\int_V \bigl( u\,\nabla^2 v - v\,\nabla^2 u \bigr)\; dV \;=\; \oint_S \left( u\,\frac{\partial v}{\partial n} - v\,\frac{\partial u}{\partial n} \right) dS . \tag{G2}

Evans states all three in Rn\mathbb{R}^n for a bounded open UU with C1C^1 boundary and u,v∈C2(U‾)u, v \in C^2(\overline U); nothing in the statements or the proof is special to three dimensions. Strauss presents (G1) and (G2) without attaching smoothness conditions to uu and vv — his claim is that they hold whatever the solid region and whatever the two functions — because he obtains them formally from the product rule and the divergence theorem; the hypotheses above are what that derivation actually needs, and are Evans's.

Idea of the proofOriginal

Both identities are the three-dimensional integration-by-parts formula, and they come from one line of algebra plus the divergence theorem. The product rule for the divergence of v∇uv\nabla u splits it into a term with no derivative on vv and a term with one on each; integrating and converting the left side to a boundary integral gives (G1), with the boundary term playing the part of the [ uv ]ab[\,uv\,]_a^b of one-variable integration by parts. The second identity is obtained for free: in (G1) the middle term ∫∇u⋅∇v\int \nabla u\cdot\nabla v is symmetric in uu and vv, so writing (G1) twice with the two functions exchanged and subtracting annihilates it, leaving a relation between the Laplacians inside and the data on the boundary.

That relation is what makes uniqueness proofs work. Setting v=uv = u in (G1) turns the boundary data of a harmonic function into the integral of ∣∇u∣2\lvert\nabla u\rvert^2 — a quantity that is non-negative and vanishes only for a constant. So vanishing boundary data forces the solution to be constant, and the proof is three lines long.

ProofAdaptedAdapted from Strauss (2008), §7.1, pp. 179–180 and §7.2, p. 185; Riley, Hobson & Bence (2006), §11.8.1, p. 403; Evans (2010), Appendix §C.2, p. 667

Step 1 (the product rule). For u∈C2u \in C^2 and v∈C1v \in C^1, differentiating v ∂u/∂xiv\,\partial u/\partial x_i and summing over ii,

∇⋅(v ∇u)=∑i∂∂xi(v ∂u∂xi)=∑i∂v∂xi∂u∂xi+v∑i∂2u∂xi2=∇v⋅∇u+v ∇2u.\nabla\cdot\bigl(v\,\nabla u\bigr) = \sum_i \frac{\partial}{\partial x_i}\left( v\,\frac{\partial u}{\partial x_i} \right) = \sum_i \frac{\partial v}{\partial x_i}\frac{\partial u}{\partial x_i} + v\sum_i\frac{\partial^2 u}{\partial x_i^2} = \nabla v\cdot\nabla u + v\,\nabla^2 u .

Step 2 (apply the divergence theorem). The field F=v∇u\mathbf{F} = v\nabla u is C1C^1 on V‾\overline V, because v∈C1(V‾)v \in C^1(\overline V) and ∇u∈C1(V‾)\nabla u \in C^1(\overline V); so the divergence theorem applies to it:

∫V∇⋅(v∇u)  dV=∮Sv ∇u⋅n^  dS=∮Sv ∂u∂n  dS,\int_V \nabla\cdot\bigl(v\nabla u\bigr)\; dV = \oint_S v\,\nabla u\cdot\hat{\mathbf{n}}\; dS = \oint_S v\,\frac{\partial u}{\partial n}\; dS ,

the last equality being the definition of the normal derivative. Substituting Step 1 on the left gives (G1).

Step 3 (the case v≡1v \equiv 1). A constant is C1C^1 with ∇v=0\nabla v = \mathbf{0}, so the first term on the right of (G1) drops out and part 2 follows.

Step 4 (antisymmetrize). Let now u,v∈C2(V‾)u, v \in C^2(\overline V), so that (G1) may be written both ways round:

∮Sv ∂u∂n dS=∫V∇v⋅∇u  dV+∫Vv ∇2u  dV,∮Su ∂v∂n dS=∫V∇u⋅∇v  dV+∫Vu ∇2v  dV.\oint_S v\,\frac{\partial u}{\partial n}\, dS = \int_V \nabla v\cdot\nabla u\; dV + \int_V v\,\nabla^2 u\; dV , \qquad \oint_S u\,\frac{\partial v}{\partial n}\, dS = \int_V \nabla u\cdot\nabla v\; dV + \int_V u\,\nabla^2 v\; dV .

The first term on each right-hand side is the same number, since the dot product is symmetric. Subtracting the first equation from the second therefore gives

∮S(u ∂v∂n−v ∂u∂n)dS=∫V(u ∇2v−v ∇2u)  dV,\oint_S \left( u\,\frac{\partial v}{\partial n} - v\,\frac{\partial u}{\partial n} \right) dS = \int_V \bigl( u\,\nabla^2 v - v\,\nabla^2 u \bigr)\; dV ,

which is (G2). □\square

Theorem(Uniqueness for Laplace's and Poisson's equations)AdaptedAdapted from Strauss (2008), §7.1, Eq. (4), p. 180 and Eq. (7), p. 182, with Exercises 2 and 3, p. 184

Let VV be a bounded connected domain with piecewise C1C^1 boundary SS, and let ff on V‾\overline V and hh on SS be given continuous functions. All solutions below are required to be of class C2(V‾)C^2(\overline V).

  1. Dirichlet problem. The problem ∇2u=f\nabla^2 u = f in VV, u=hu = h on SS, has at most one solution.
  2. Neumann problem. For ∇2u=f\nabla^2 u = f in VV, ∂u/∂n=h\partial u/\partial n = h on SS:
    • a solution exists only if the data satisfy the compatibility condition ∮Sh  dS=∫Vf  dV;\oint_S h\; dS = \int_V f\; dV ;
    • and any two solutions differ by a constant. So the Neumann problem is not well-posed in the strict sense: existence fails for most data, and uniqueness fails by one constant. Strauss notes that when the compatibility condition does hold, a solution can be shown to exist.
  3. Robin problem. If aa is continuous with a>0a > 0 everywhere on SS, the problem ∇2u=f\nabla^2 u = f in VV, ∂u/∂n+a u=h\partial u/\partial n + a\,u = h on SS, has at most one solution.
ProofAdaptedAdapted from Strauss (2008), §7.1, p. 180, Eq. (4) and p. 182, Eq. (7)

Each part uses the same device: subtract two solutions, so that the difference uu solves the homogeneous problem, then put v=uv = u in (G1).

Step 0 (the energy identity). For u∈C2(V‾)u \in C^2(\overline V) with ∇2u=0\nabla^2 u = 0 in VV, taking v=uv = u in (G1) and dropping the last term gives

∮Su ∂u∂n  dS=∫V∣∇u∣2  dV.(E)\oint_S u\,\frac{\partial u}{\partial n}\; dS = \int_V \lvert\nabla u\rvert^2\; dV . \tag{E}

Step 1 (a vanishing lemma). If ∫V∣∇u∣2 dV=0\int_V \lvert\nabla u\rvert^2\, dV = 0 then ∇u≡0\nabla u \equiv \mathbf{0} on VV: the integrand is continuous and non-negative, so were it positive at a point it would exceed half that value on a ball around the point and the integral would be positive. Since VV is connected, a function with vanishing gradient on VV is constant there (integrate along a path, line integrals), hence on V‾\overline V by continuity.

Step 2 (Dirichlet). Let u1,u2u_1, u_2 both solve part 1 and put u=u1−u2u = u_1 - u_2. Then ∇2u=f−f=0\nabla^2u = f - f = 0 in VV and u=h−h=0u = h - h = 0 on SS. The left side of (E) vanishes because u=0u = 0 at every point of SS, so ∫V∣∇u∣2=0\int_V\lvert\nabla u\rvert^2 = 0; by Step 1, uu is a constant, and that constant is 00 because uu vanishes on SS. Hence u1=u2u_1 = u_2.

Step 3 (Neumann: the compatibility condition). Suppose uu solves part 2. Part 2 of the identities, with v≡1v \equiv 1, gives directly

∮Sh  dS=∮S∂u∂n  dS=∫V∇2u  dV=∫Vf  dV.\oint_S h\; dS = \oint_S \frac{\partial u}{\partial n}\; dS = \int_V \nabla^2 u\; dV = \int_V f\; dV .

So data violating this equality admit no solution at all. (For f≡0f \equiv 0 the condition reads ∮Sh dS=0\oint_S h\, dS = 0: a steady temperature field cannot have a net heat flux through its boundary.)

Step 4 (Neumann: uniqueness up to a constant). With u=u1−u2u = u_1 - u_2 as before, now ∇2u=0\nabla^2u = 0 in VV and ∂u/∂n=0\partial u/\partial n = 0 on SS, so the left side of (E) vanishes because the normal derivative vanishes on SS. By Step 1, uu is constant; nothing fixes its value, and indeed u2+cu_2 + c solves the same problem as u2u_2 for every constant cc.

Step 5 (Robin). With u=u1−u2u = u_1 - u_2 we have ∇2u=0\nabla^2u = 0 in VV and ∂u/∂n=−a u\partial u/\partial n = -a\,u on SS. Substituting into (E),

∫V∣∇u∣2  dV=∮Su ∂u∂n  dS=−∮Sa u2  dS.\int_V \lvert\nabla u\rvert^2\; dV = \oint_S u\,\frac{\partial u}{\partial n}\; dS = -\oint_S a\,u^2\; dS .

The left side is ≥0\ge 0 and the right side is ≤0\le 0, since a>0a > 0 and u2≥0u^2 \ge 0; so both are 00. From the left, ∇u≡0\nabla u \equiv \mathbf{0} and uu is a constant cc by Step 1. From the right, ∮Sa c2 dS=0\oint_S a\,c^2\, dS = 0 with a>0a > 0 on a surface of positive area forces c=0c = 0. Hence u1=u2u_1 = u_2. □\square

RemarkOriginal

Where the hypotheses are used, and what fails without them.

  • Connectedness of VV, in Step 1 only. On a disconnected VV the Dirichlet conclusion still holds, since uu vanishes on the boundary of each component; but the Neumann solution is then unique only up to an independent constant in each component.
  • a>0a > 0 in the Robin problem, not a≥0a \ge 0. With a≡0a \equiv 0 the Robin problem is the Neumann problem, and uniqueness genuinely fails by a constant: Step 5 breaks at its last sentence. With a<0a < 0 somewhere, the two sides of Step 5 can both be nonzero and uniqueness can fail outright. Strauss poses the case a>0a > 0 as Exercise 3.
  • u∈C2u \in C^2 up to the boundary. Both the divergence theorem in Step 2 of the first proof and the evaluation of uu or ∂u/∂n\partial u/\partial n on SS require the solution and its first derivatives to extend continuously to SS. Dropping this admits spurious "solutions": the harmonic function u=Re⁡((1+z)/(1−z))u = \operatorname{Re}\bigl((1+z)/(1-z)\bigr) on the unit disc in the plane vanishes at almost every boundary point yet is not identically zero — it is unbounded near z=1z = 1 and so not in C2(V‾)C^2(\overline V). The energy method does not see such functions, and the uniqueness statements are statements about the class C2(V‾)C^2(\overline V).
  • Only v∈C1v \in C^1 is needed in (G1). Step 2 of the first proof applies the divergence theorem to v∇uv\nabla u, which is C1C^1 as soon as vv is C1C^1 and uu is C2C^2. (G2), by contrast, differentiates both functions twice and needs both in C2C^2.
  • Nothing here needs VV simply connected. The underlying divergence theorem does not, so the identities hold on a spherical shell, with the boundary integral taken over both spheres and n^\hat{\mathbf{n}} pointing out of VV on each.
  • Symmetry of the boundary condition. Strauss observes that each of the three classical boundary conditions makes the right-hand side of (G2) vanish for every pair u,vu, v satisfying it — he calls such a condition symmetric for ∇2\nabla^2. For the Dirichlet condition both terms vanish separately; for the Neumann condition likewise; for the Robin condition ∂u/∂n=−au\partial u/\partial n = -au the two terms become −auv-auv and +avu+avu and cancel. This is exactly the property that makes ∇2\nabla^2 self-adjoint on the corresponding function space, and hence the starting point for eigenfunction expansions.
  • Notation. Strauss writes the Laplacian Δ\Delta and warns against the physicists' ∇2\nabla^2; we use ∇2\nabla^2, as do Riley, Hobson and Bence and Arfken. Evans writes DuD u for the gradient and ν\nu for the outward normal. Only symbols differ.
NoteOriginal

Moments on the unit sphere and ball, used in the examples. Aligning the polar axis with the xx-axis so that x=rcos⁡θx = r\cos\theta, and using ∮S2g(cos⁡θ) dS=2π∫−11g(t) dt\oint_{S^2} g(\cos\theta)\, dS = 2\pi\int_{-1}^{1} g(t)\, dt on the unit sphere,

∮S2x2m dS=2π∫−11t2m dt=4π2m+1,∫Bx2m dV=(∫01r2m+2 dr)4π2m+1=4π(2m+1)(2m+3),\oint_{S^2} x^{2m}\, dS = 2\pi\int_{-1}^{1} t^{2m}\, dt = \frac{4\pi}{2m+1}, \qquad \int_{B} x^{2m}\, dV = \left(\int_0^1 r^{2m+2}\, dr\right)\frac{4\pi}{2m+1} = \frac{4\pi}{(2m+1)(2m+3)} ,

where BB is the unit ball. In particular ∮x2 dS=4π3\oint x^2\,dS = \tfrac{4\pi}{3}, ∮x4 dS=4π5\oint x^4\,dS = \tfrac{4\pi}{5}, ∮x6 dS=4π7\oint x^6\,dS = \tfrac{4\pi}{7}, and ∫Bx2 dV=4π15\int_B x^2\,dV = \tfrac{4\pi}{15}, ∫Bx4 dV=4π35\int_B x^4\,dV = \tfrac{4\pi}{35}. Also, expanding ∮(x2+y2+z2)2dS=∮1 dS=4π\oint (x^2+y^2+z^2)^2 dS = \oint 1\, dS = 4\pi into 3∮x4 dS+6∮x2y2 dS3\oint x^4\, dS + 6\oint x^2y^2\, dS gives ∮x2y2 dS=4π15\oint x^2y^2\, dS = \tfrac{4\pi}{15}, and by symmetry the same for ∮x2z2 dS\oint x^2z^2\, dS.

Example(Green's first identity on the unit ball)Original

Let V=BV = B be the unit ball, SS the unit sphere, and

u=x2+y2,v=x2.u = x^2 + y^2, \qquad v = x^2 .

Both are polynomials, hence C∞C^\infty on V‾\overline V, so (G1) applies.

  1. Ingredients. ∇u=(2x,2y,0)\nabla u = (2x, 2y, 0), ∇2u=4\nabla^2 u = 4; ∇v=(2x,0,0)\nabla v = (2x, 0, 0); and ∇u⋅∇v=4x2\nabla u\cdot\nabla v = 4x^2. On SS the outward normal is n^=(x,y,z)\hat{\mathbf{n}} = (x,y,z), so ∂u∂n=(2x,2y,0)⋅(x,y,z)=2(x2+y2)=2(1−z2)\frac{\partial u}{\partial n} = (2x,2y,0)\cdot(x,y,z) = 2(x^2+y^2) = 2(1 - z^2) using x2+y2+z2=1x^2+y^2+z^2 = 1 on SS.
  2. Left side. Using the moments above, ∮Sv ∂u∂n dS=∮S2x2(1−z2) dS=2∮Sx2 dS−2∮Sx2z2 dS=2⋅4π3−2⋅4π15=32π15.\oint_S v\,\frac{\partial u}{\partial n}\, dS = \oint_S 2x^2\bigl(1 - z^2\bigr)\, dS = 2\oint_S x^2\, dS - 2\oint_S x^2z^2\, dS = 2\cdot\frac{4\pi}{3} - 2\cdot\frac{4\pi}{15} = \frac{32\pi}{15} .
  3. Right side, first term. ∫B∇u⋅∇v  dV=4∫Bx2 dV=4⋅4π15=16π15\displaystyle\int_B \nabla u\cdot\nabla v\; dV = 4\int_B x^2\, dV = 4\cdot\frac{4\pi}{15} = \frac{16\pi}{15}.
  4. Right side, second term. ∫Bv ∇2u  dV=4∫Bx2 dV=16π15\displaystyle\int_B v\,\nabla^2u\; dV = 4\int_B x^2\, dV = \frac{16\pi}{15}.
  5. Comparison. 16π15+16π15=32π15\tfrac{16\pi}{15} + \tfrac{16\pi}{15} = \tfrac{32\pi}{15}, which is step 2. Numerically both sides are 6.702066.70206 to five decimal places. Note that all three terms are nonzero here, so this is a genuine test of the identity and not of a symmetry.
Example(Green's second identity on the unit ball)Original

On the same ball take

u=x2,v=x4,u = x^2, \qquad v = x^4 ,

so that ∇2u=2\nabla^2 u = 2 and ∇2v=12x2\nabla^2 v = 12x^2.

  1. Volume side. ∫B(u ∇2v−v ∇2u) dV=∫B(12x4−2x4) dV=10∫Bx4 dV=10⋅4π35=8π7.\int_B \bigl(u\,\nabla^2v - v\,\nabla^2u\bigr)\, dV = \int_B \bigl(12x^4 - 2x^4\bigr)\, dV = 10\int_B x^4\, dV = 10\cdot\frac{4\pi}{35} = \frac{8\pi}{7} .
  2. Normal derivatives on SS. With n^=(x,y,z)\hat{\mathbf{n}} = (x,y,z) on the unit sphere, ∂v∂n=(4x3,0,0)⋅(x,y,z)=4x4,∂u∂n=(2x,0,0)⋅(x,y,z)=2x2.\frac{\partial v}{\partial n} = (4x^3,0,0)\cdot(x,y,z) = 4x^4, \qquad \frac{\partial u}{\partial n} = (2x,0,0)\cdot(x,y,z) = 2x^2 .
  3. Surface side. ∮S(u ∂v∂n−v ∂u∂n)dS=∮S(4x6−2x6) dS=2∮Sx6 dS=2⋅4π7=8π7.\oint_S \left( u\,\frac{\partial v}{\partial n} - v\,\frac{\partial u}{\partial n} \right) dS = \oint_S \bigl(4x^6 - 2x^6\bigr)\, dS = 2\oint_S x^6\, dS = 2\cdot\frac{4\pi}{7} = \frac{8\pi}{7} .
  4. Comparison. Both sides are 8π/7=3.590398\pi/7 = 3.59039.
  5. A contrast with (G1). Had we chosen u=x2u = x^2, v=y2v = y^2 here, both sides would have come out 00 by the symmetry of the ball under exchanging xx and yy — true, but no test of anything. Breaking the symmetry, as above, is what makes the check informative; this is why (G2) is harder to test numerically than (G1).
ApplicationOriginal

Green's second identity is the engine of potential theory. Choosing vv to be the fundamental solution −1/(4π∣x−x0∣)-1/(4\pi\lvert\mathbf{x}-\mathbf{x}_0\rvert) of the Laplacian and cutting out a small ball around its singularity turns (G2) into a formula expressing the value of a harmonic function at an interior point as an integral of uu and ∂u/∂n\partial u/\partial n over the boundary — Strauss's representation formula (§7.2). Replacing that fundamental solution by the Green's function of the region, which also vanishes on the boundary, removes the unknown ∂u/∂n\partial u/\partial n and gives the solution of the Dirichlet problem purely in terms of its data; this is the subject of Green's functions for Laplace's equation and the Poisson integral formula. Riley, Hobson and Bence single out the second identity for exactly this reason.

Green's first identity is the engine of the variational and numerical theory. Read from right to left it says that, for uu vanishing on the boundary, ∫v∇2u=−∫∇v⋅∇u\int v\nabla^2 u = -\int \nabla v\cdot\nabla u: a second-order operator has been traded for a symmetric first-order bilinear form. That trade defines the weak formulation of an elliptic problem, makes −∇2-\nabla^2 manifestly non-negative, and produces the stiffness matrix of the finite-element method; it is also what Strauss's Dirichlet principle rests on, which identifies the harmonic function with the minimizer of 12∫∣∇w∣2\tfrac12\int\lvert\nabla w\rvert^2 among functions with the given boundary values (compare the Rayleigh–Ritz method).

In physics the same identity is energy accounting. With u=v=ϕu = v = \phi the electrostatic potential and ∇2ϕ=−ρ/ε0\nabla^2\phi = -\rho/\varepsilon_0, (G1) gives ∫∣E∣2dV=∫ρϕ dV/ε0\int \lvert\mathbf{E}\rvert^2 dV = \int \rho\phi\, dV/\varepsilon_0 for a potential decaying at infinity, equating field energy with the work of assembling the charges — Arfken's Exercise 3.8.4. The Neumann compatibility condition ∮Sh dS=∫Vf dV\oint_S h\, dS = \int_V f\, dV is the statement that a body in steady state cannot absorb heat on balance, and in a numerical solver a violated compatibility condition is the standard reason a Neumann solve fails to converge.

Potentials

2

Theorem

Helmholtz decomposition and potentials

Adapted

States and proves the two theorems of potential theory as Arfken gives them — a field is determined by its divergence, its curl and its boundary normal component on a simply connected region, and a field whose source and circulation densities vanish at infinity splits into an irrotational part −∇φ-\nabla\varphi and a solenoidal part ∇×A\nabla\times\mathbf{A} with the two Poisson integrals as potentials — and describes the gauge freedom in φ\varphi and A\mathbf{A}.

Prerequisites: The divergence theorem, Stokes' theorem and Green's theorem in the plane, Line integrals and conservative fields, Green's identities, The Dirac delta in calculations, Differentiation under the integral sign

Theorem(Scalar and vector potentials)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, Eqs. (3.96)–(3.100), pp. 171–172 and Eq. (3.102), p. 172, verified on p. 173; Riley, Hobson & Bence (2006), §10.8.2, Eqs. (10.37)–(10.38), p. 356 and §11.4, p. 389

Two one-line identities govern everything in this unit: for ϕ∈C2\phi \in C^2 and a∈C2\mathbf{a} \in C^2,

∇×∇ϕ=0,∇⋅(∇×a)=0.\nabla\times\nabla\phi = \mathbf{0}, \qquad\qquad \nabla\cdot(\nabla\times\mathbf{a}) = 0 .

So a gradient is irrotational and a curl is solenoidal. The converses are the content of potential theory:

  1. Scalar potential. On a simply connected region, a C1C^1 field F\mathbf{F} with ∇×F=0\nabla\times\mathbf{F} = \mathbf{0} can be written F=−∇φ\mathbf{F} = -\nabla\varphi; Arfken calls φ\varphi a scalar potential, and the three conditions F=−∇φ\mathbf{F} = -\nabla\varphi, ∮F⋅dr=0\oint\mathbf{F}\cdot d\mathbf{r} = 0 and ∇×F=0\nabla\times\mathbf{F} = \mathbf{0} are equivalent there. The step from the vanishing circulation to the vanishing curl is Stokes' theorem applied to small loops, which is how Arfken takes it (p. 172); the rest is the theorem on conservative fields, with the physicists' sign. φ\varphi is determined up to one additive constant.

    Why simple connectivity is needed. Arfken imposes it too: the section opens "over a given simply connected region of space (one with no holes)" (p. 171), and the equivalence of his three conditions, Eqs. (3.96), (3.99) and (3.100), is stated within that setting (p. 172). The hypothesis cannot be dropped. On R3\mathbb{R}^3 minus the zz-axis the field (−y,x,0)/(x2+y2)(-y, x, 0)/(x^2+y^2) has zero curl everywhere yet circulation 2π2\pi around any loop encircling the axis (line integrals), so a curl-free field there need not be a gradient.

  2. Vector potential. A C1C^1 field B\mathbf{B} with ∇⋅B=0\nabla\cdot\mathbf{B} = 0 admits a field A\mathbf{A} with B=∇×A\mathbf{B} = \nabla\times\mathbf{A}. Arfken's Eq. (3.102), p. 172, exhibits one explicitly,

    A=e^y ⁣∫x0x ⁣ ⁣Bz(x,y,z) dx  +  e^z ⁣[∫y0y ⁣ ⁣Bx(x0,y,z) dy−∫x0x ⁣ ⁣By(x,y,z) dx],\mathbf{A} = \hat{\mathbf{e}}_y\!\int_{x_0}^{x}\!\! B_z(x,y,z)\, dx \;+\; \hat{\mathbf{e}}_z\!\left[\int_{y_0}^{y}\!\! B_x(x_0,y,z)\, dy - \int_{x_0}^{x}\!\! B_y(x,y,z)\, dx\right] ,

    and the text on p. 173 verifies ∇×A=B\nabla\times\mathbf{A} = \mathbf{B} for it, the xx-component being the one that uses ∇⋅B=0\nabla\cdot\mathbf{B} = 0. Riley, Hobson and Bence state the existence of such an A\mathbf{A} without proof (p. 389).

  3. Gauge freedom. A\mathbf{A} is far from unique — Arfken's own phrase, in the paragraph on p. 173 that follows the verification: for any scalar ψ\psi and any constant vector k\mathbf{k} (Riley, Hobson and Bence call this constant vector c\mathbf{c}; that letter is reserved here for Arfken's circulation density in Helmholtz's theorem below),

    A′=A+∇ψ+kalso satisfies∇×A′=B,\mathbf{A}' = \mathbf{A} + \nabla\psi + \mathbf{k} \qquad\text{also satisfies}\qquad \nabla\times\mathbf{A}' = \mathbf{B} ,

    by the first identity above. Arfken's formula also depends on the arbitrary base point (x0,y0)(x_0, y_0), and a second formula with xx and yy interchanged (his Eq. (3.103)) gives yet another A\mathbf{A}. Replacing A\mathbf{A} by A+∇ψ\mathbf{A} + \nabla\psi is called a gauge transformation.

Theorem(Uniqueness from divergence, curl and boundary data)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, pp. 177–178

Let VV be a bounded simply connected region with piecewise C1C^1 boundary, and let P\mathbf{P} and P′\mathbf{P}' be C1C^1 fields on the closed region V‾\overline V that agree in all three of

∇⋅P=∇⋅P′,∇×P=∇×P′,P⋅n^=P′⋅n^  on ∂V.\nabla\cdot\mathbf{P} = \nabla\cdot\mathbf{P}', \qquad \nabla\times\mathbf{P} = \nabla\times\mathbf{P}', \qquad \mathbf{P}\cdot\hat{\mathbf{n}} = \mathbf{P}'\cdot\hat{\mathbf{n}} \ \text{ on } \partial V .

Then P=P′\mathbf{P} = \mathbf{P}' everywhere in VV. Read as a recipe: three pieces of data pin a field down on such a region — how much it spreads out, how much it circulates, and how much of it crosses the boundary.

Boundedness is our hypothesis, not Arfken's. He asks only for a simply connected region, and his proof, which is the one given below, runs through Green's first identity; that identity is available on a bounded region with piecewise C1C^1 boundary and not otherwise (Green's identities). The hypothesis is load-bearing rather than decorative: on V=R3V = \mathbb{R}^3, which is simply connected and has no boundary at all, the boundary condition would be vacuous and the conclusion false, since every constant field has zero divergence and zero curl. Arfken applies the theorem to all of space in his proof of Helmholtz's theorem; Step 5 of our second proof below therefore replaces that appeal by a limit over balls, and the difference from the source is recorded in verification/discrepancies.md.

A caveat of Arfken's applies here and to Helmholtz's theorem below. Suppose the divergence or the curl of the field makes sense at some point only as a delta function; that point still belongs to the region, and is not to be excised from it. A point charge sitting inside VV is therefore covered, with ∇⋅P\nabla\cdot\mathbf{P} understood as a multiple of δ(3)\delta^{(3)} (the Dirac delta) — whereas removing the point would replace VV by a region that is not simply connected in the same way, and the conclusion could fail.

Theorem(Helmholtz's theorem)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, Eqs. (3.122)–(3.125) and the closing paragraph straddling pp. 179–180, pp. 178–180

Suppose a field P\mathbf{P} has a source density and a circulation density that both die away at infinity. Then P\mathbf{P} splits into two summands, the first of them irrotational and the second solenoidal. Explicitly, with

s=∇⋅P(the source density),c=∇×P(the circulation density),s = \nabla\cdot\mathbf{P} \quad\text{(the source density)}, \qquad \mathbf{c} = \nabla\times\mathbf{P} \quad\text{(the circulation density)},

the decomposition is

P=−∇φ+∇×A,φ(r1)=14π∫s(r2)r12  dτ2,A(r1)=14π∫c(r2)r12  dτ2,\mathbf{P} = -\nabla\varphi + \nabla\times\mathbf{A}, \qquad \varphi(\mathbf{r}_1) = \frac{1}{4\pi}\int \frac{s(\mathbf{r}_2)}{r_{12}}\; d\tau_2 , \qquad \mathbf{A}(\mathbf{r}_1) = \frac{1}{4\pi}\int \frac{\mathbf{c}(\mathbf{r}_2)}{r_{12}}\; d\tau_2 ,

where r12=∣r1−r2∣r_{12} = \lvert\mathbf{r}_1 - \mathbf{r}_2\rvert and the integrals are over all space. The first part is irrotational because ∇×∇φ=0\nabla\times\nabla\varphi = \mathbf{0} and the second is solenoidal because ∇⋅(∇×A)=0\nabla\cdot(\nabla\times\mathbf{A}) = 0, so the two pieces carry the whole of the divergence and the whole of the curl respectively.

In electromagnetic language, ss is the charge density divided by ε0\varepsilon_0 and c\mathbf{c} is the current density times μ0\mu_0; Arfken says the theorem is what legitimizes splitting the quantities of electromagnetic theory into an irrotational E\mathbf{E} and a solenoidal B\mathbf{B}, each with its own potential.

NoteOriginal

On the hypothesis. The hypothesis is stated above exactly as Arfken states it: the source and circulation densities vanish at infinity. He also uses, in appealing to the uniqueness theorem, that the field itself vanishes at infinity. Mere vanishing is not by itself enough for the two integrals to converge — for φ(r1)\varphi(\mathbf{r}_1) to converge one needs ss to decay faster than 1/r21/r^2, which holds in the case of chief interest, where ss and c\mathbf{c} have bounded support, as in the first example below. Convergence is not the only thing mere vanishing fails to give: the integration by parts in Step 3 of the second proof below needs c=o(1/r)\mathbf{c} = o(1/r), and the identification of P⋆\mathbf{P}^{\star} with P\mathbf{P} in Step 5 needs a decay rate for the field, neither of which follows from vanishing alone. The remark below sets out all three conditions and which step needs which. We follow the source and state the hypothesis as given; a reader applying the theorem to a slowly decaying source should check those conditions first.

Idea of the proofOriginal

The uniqueness theorem is the energy argument of Green's identities in disguise. The difference of two candidate fields has zero divergence, zero curl and zero normal component. Zero curl on a simply connected region means it is a gradient; zero divergence then makes its potential harmonic; and Green's first identity converts the vanishing boundary data of a harmonic function into the vanishing of ∫∣∇φ∣2\int\lvert\nabla\varphi\rvert^2, which forces the field itself to vanish.

Helmholtz's theorem is then proved without any further analysis, by checking rather than constructing. The two candidate potentials are built out of 1/r121/r_{12} for one reason only: ∇2(1/r)=−4πδ(3)\nabla^2(1/r) = -4\pi\delta^{(3)}, so applying the Laplacian to either integral sifts the source back out. That gives the proposed field the right divergence and the right curl — the curl computation needing one extra observation, that a circulation density is itself divergence-free, which kills the unwanted ∇(∇⋅A)\nabla(\nabla\cdot\mathbf{A}) term. Having the right divergence and curl, it is the right field — not by the uniqueness theorem itself, which speaks only of bounded regions, but by running that theorem's energy argument on the ball r<Rr < R and letting RR grow, the boundary term on the sphere being what the decay of the field kills.

Proof(The uniqueness theorem)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, p. 178; Strauss (2008), §7.1, Eq. (G1), p. 180

Step 1 (reduce to the homogeneous case). Let Q=P−P′\mathbf{Q} = \mathbf{P} - \mathbf{P}'. By linearity of ∇⋅\nabla\cdot and ∇×\nabla\times and of the normal component,

∇⋅Q=0  in V,∇×Q=0  in V,Q⋅n^=0  on ∂V.\nabla\cdot\mathbf{Q} = 0 \ \text{ in } V, \qquad \nabla\times\mathbf{Q} = \mathbf{0} \ \text{ in } V, \qquad \mathbf{Q}\cdot\hat{\mathbf{n}} = 0 \ \text{ on } \partial V .

It suffices to show Q≡0\mathbf{Q} \equiv \mathbf{0}.

Step 2 (a potential for Q\mathbf{Q}). Q\mathbf{Q} is C1C^1 and irrotational on the simply connected region VV, so by part 1 of the first statement there is ϕ\phi with Q=−∇ϕ\mathbf{Q} = -\nabla\phi (conservative fields). Since Q\mathbf{Q} is C1C^1 on V‾\overline V, so is ∇ϕ\nabla\phi, and ϕ∈C2(V‾)\phi \in C^2(\overline V) — which is what Step 4 will need. Here, and only here, simple connectivity is used.

Step 3 (ϕ\phi is harmonic, and its normal derivative vanishes). Taking the divergence, 0=∇⋅Q=−∇2ϕ0 = \nabla\cdot\mathbf{Q} = -\nabla^2\phi, so ∇2ϕ=0\nabla^2\phi = 0 in VV. On ∂V\partial V, ∂ϕ/∂n=n^⋅∇ϕ=−Q⋅n^=0\partial\phi/\partial n = \hat{\mathbf{n}}\cdot\nabla\phi = -\mathbf{Q}\cdot\hat{\mathbf{n}} = 0.

Step 4 (Green's first identity). VV is bounded with piecewise C1C^1 boundary and ϕ∈C2(V‾)\phi \in C^2(\overline V), so Green's first identity is available (Green's identities) — this is where boundedness is used. Apply (G1) with u=v=ϕu = v = \phi:

∮∂Vϕ ∂ϕ∂n  dS=∫V∣∇ϕ∣2  dV+∫Vϕ ∇2ϕ  dV.\oint_{\partial V} \phi\,\frac{\partial\phi}{\partial n}\; dS = \int_V \lvert\nabla\phi\rvert^2\; dV + \int_V \phi\,\nabla^2\phi\; dV .

The left side vanishes because ∂ϕ/∂n=0\partial\phi/\partial n = 0 on ∂V\partial V (Step 3) — this is where the boundary hypothesis is used — and the last term vanishes because ϕ\phi is harmonic. Hence

∫V∣∇ϕ∣2  dV=∫VQ⋅Q  dV=0.\int_V \lvert\nabla\phi\rvert^2\; dV = \int_V \mathbf{Q}\cdot\mathbf{Q}\; dV = 0 .

Step 5 (conclude). The integrand ∣Q∣2\lvert\mathbf{Q}\rvert^2 is continuous and non-negative with zero integral, so it vanishes identically: were it positive at a point it would exceed half that value on a ball around the point, making the integral positive. Thus Q≡0\mathbf{Q} \equiv \mathbf{0} and P=P′\mathbf{P} = \mathbf{P}'. □\square

Proof(Helmholtz's theorem)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, pp. 178–179; Riley, Hobson & Bence (2006), §10.8.2, Eq. (10.41), p. 356 and Eq. (10.42), p. 357

The case proved. The statement above is Arfken's, with his hypothesis that the two densities vanish at infinity. What is proved here is the case his integral formulas are really written for, and it is declared in full before the argument starts rather than being assembled as it goes:

  • P\mathbf{P} is C2C^2 on R3\mathbb{R}^3, so that s=∇⋅Ps = \nabla\cdot\mathbf{P} is C1C^1 and c=∇×P\mathbf{c} = \nabla\times\mathbf{P} is C1C^1 with ∇⋅c=0\nabla\cdot\mathbf{c} = 0;
  • ss and c\mathbf{c} vanish outside some ball r≤ar \le a (compact support);
  • P=O(r−2)\mathbf{P} = O(r^{-2}) as r→∞r \to \infty.

Compact support does three things. It makes the two integrals converge, since each is an integral of a bounded density against the locally integrable kernel 1/r121/r_{12} over a bounded set. It makes the single differentiation of Step 3 legitimate under the integral sign, because ∣∇1(1/r12)∣=r12−2\lvert\nabla_1(1/r_{12})\rvert = r_{12}^{-2} is locally integrable too and the domain is a fixed compact set (differentiation under the integral sign); the second derivatives are never taken naively, the two Laplacians being read through the identity ∇2(1/r)=−4πδ(3)\nabla^2(1/r) = -4\pi\delta^{(3)} of the Dirac delta, which is itself a statement about integrals of exactly this shape. And it makes the surface term discarded in Step 3 vanish identically for large spheres rather than merely in a limit. The decay P=O(r−2)\mathbf{P} = O(r^{-2}) is the quantitative form of Arfken's "the vector involved vanishes at infinity", and Step 5 is where it is used. What each hypothesis can be weakened to is set out in the remark below.

Write P⋆=−∇φ+∇×A\mathbf{P}^{\star} = -\nabla\varphi + \nabla\times\mathbf{A} for the proposed field, with φ\varphi and A\mathbf{A} the two integrals of the statement. Subscripts on ∇\nabla record which variable is being differentiated.

Step 1 (the divergence comes out right). Since ∇⋅(∇×A)=0\nabla\cdot(\nabla\times\mathbf{A}) = 0,

∇1⋅P⋆=−∇12φ(r1)=−14π∫[∇121r12]s(r2)  dτ2=−14π∫[−4π δ(3)(r1−r2)] s(r2)  dτ2=s(r1),\nabla_1\cdot\mathbf{P}^{\star} = -\nabla_1^2\varphi(\mathbf{r}_1) = -\frac{1}{4\pi}\int \left[\nabla_1^2\frac{1}{r_{12}}\right] s(\mathbf{r}_2)\; d\tau_2 = -\frac{1}{4\pi}\int \bigl[-4\pi\,\delta^{(3)}(\mathbf{r}_1-\mathbf{r}_2)\bigr]\, s(\mathbf{r}_2)\; d\tau_2 = s(\mathbf{r}_1) ,

using ∇2(1/r)=−4πδ(3)\nabla^2(1/r) = -4\pi\delta^{(3)} and then the sifting property. So P⋆\mathbf{P}^{\star} has the same divergence as P\mathbf{P}.

Step 2 (prepare the curl). Since ∇×∇φ=0\nabla\times\nabla\varphi = \mathbf{0}, we need ∇×(∇×A)=c\nabla\times(\nabla\times\mathbf{A}) = \mathbf{c}. Use the identity

∇×(∇×A)=∇(∇⋅A)−∇2A,\nabla\times(\nabla\times\mathbf{A}) = \nabla(\nabla\cdot\mathbf{A}) - \nabla^2\mathbf{A} ,

which in Cartesian components reads [∇×(∇×A)]j=[∇(∇⋅A)]j−∇2Aj[\nabla\times(\nabla\times\mathbf{A})]_j = [\nabla(\nabla\cdot\mathbf{A})]_j - \nabla^2A_j. Riley, Hobson and Bence's Eq. (10.41) is the vector identity, and they attach to the componentwise step, their Eq. (10.42), the warning that it is available only when the basis vectors are constant in direction, as in Cartesian coordinates, and not in cylindrical or spherical polars (§10.8.2, p. 357). We work in Cartesian coordinates throughout.

Step 3 (the unwanted term vanishes). Differentiating under the integral sign and noting that ss and c\mathbf{c} do not depend on r1\mathbf{r}_1,

∇1⋅A(r1)=14π∫c(r2)⋅∇11r12  dτ2=−14π∫c(r2)⋅∇21r12  dτ2,\nabla_1\cdot\mathbf{A}(\mathbf{r}_1) = \frac{1}{4\pi}\int \mathbf{c}(\mathbf{r}_2)\cdot\nabla_1\frac{1}{r_{12}}\; d\tau_2 = -\frac{1}{4\pi}\int \mathbf{c}(\mathbf{r}_2)\cdot\nabla_2\frac{1}{r_{12}}\; d\tau_2 ,

the sign change because 1/r121/r_{12} depends on r1−r2\mathbf{r}_1-\mathbf{r}_2, so that differentiating with respect to r2\mathbf{r}_2 instead of r1\mathbf{r}_1 reverses the result. Now integrate by parts in r2\mathbf{r}_2. Fix r1\mathbf{r}_1 and take R>max⁡(a,2r1)R > \max(a, 2r_1), so that the ball VR={r2<R}V_R = \{r_2 < R\} contains the whole support of c\mathbf{c} in its interior. Write g=1/r12g = 1/r_{12}; away from r2=r1\mathbf{r}_2 = \mathbf{r}_1 the product rule gives ∇2⋅(g c)=c⋅∇2g+g ∇2⋅c\nabla_2\cdot(g\,\mathbf{c}) = \mathbf{c}\cdot\nabla_2 g + g\,\nabla_2\cdot\mathbf{c}. Apply the divergence theorem on VRV_R with the ball r12<εr_{12} < \varepsilon removed, where g cg\,\mathbf{c} is C1C^1. The inner sphere contributes at most ε−1⋅4πε2⋅max⁡∣c∣→0\varepsilon^{-1}\cdot 4\pi\varepsilon^2\cdot\max\lvert\mathbf{c}\rvert \to 0, while both volume integrands are absolutely integrable near r1\mathbf{r}_1 (g=r12−1g = r_{12}^{-1} and ∣∇2g∣=r12−2\lvert\nabla_2 g\rvert = r_{12}^{-2}, against dτ2∼r122 dr12d\tau_2 \sim r_{12}^2\,dr_{12}). Letting ε→0\varepsilon \to 0 therefore gives

∫VRc⋅∇2g  dτ2=∮r2=Rg c⋅dS2  −  ∫VRg (∇2⋅c) dτ2.\int_{V_R} \mathbf{c}\cdot\nabla_2 g\; d\tau_2 = \oint_{r_2 = R} g\,\mathbf{c}\cdot d\mathbf{S}_2 \;-\; \int_{V_R} g\,\bigl(\nabla_2\cdot\mathbf{c}\bigr)\, d\tau_2 .

The surface term is exactly zero, not merely small: c\mathbf{c} vanishes on the sphere r2=Rr_2 = R, because R>aR > a and c\mathbf{c} is supported in r2≤ar_2 \le a. This is where the compact support declared in the preamble is used, and it is the one place where Arfken's hypothesis that c\mathbf{c} merely vanishes at infinity would not suffice. For a c\mathbf{c} without compact support the term is bounded only by 4πR2⋅max⁡r2=R∣c∣/(R−r1)4\pi R^2\cdot\max_{r_2=R}\lvert\mathbf{c}\rvert/(R-r_1), hence by 8πRmax⁡r2=R∣c∣8\pi R\max_{r_2=R}\lvert\mathbf{c}\rvert once R>2r1R > 2r_1, because the sphere's area grows like R2R^2 while the kernel decays only like R−1R^{-1}; so it dies as R→∞R \to \infty only if c=o(1/r)\mathbf{c} = o(1/r), and for ∣c∣∼1/r\lvert\mathbf{c}\rvert\sim 1/r — a circulation density that does vanish at infinity — the bound does not tend to zero at all. Since c\mathbf{c} is supported in r2≤ar_2 \le a, the remaining volume integral is already the integral over all of space, and no limit in RR is needed:

∇1⋅A(r1)=14π∫[∇2⋅c(r2)] 1r12  dτ2=0,\nabla_1\cdot\mathbf{A}(\mathbf{r}_1) = \frac{1}{4\pi}\int \bigl[\nabla_2\cdot\mathbf{c}(\mathbf{r}_2)\bigr]\,\frac{1}{r_{12}}\; d\tau_2 = 0 ,

because c=∇×P\mathbf{c} = \nabla\times\mathbf{P} is a curl and ∇⋅(∇×P)=0\nabla\cdot(\nabla\times\mathbf{P}) = 0 (here P∈C2\mathbf{P} \in C^2 is used). Hence the term ∇(∇⋅A)\nabla(\nabla\cdot\mathbf{A}) in Step 2 is zero.

Step 4 (the curl comes out right). It remains to show −∇2A=c-\nabla^2\mathbf{A} = \mathbf{c}. The vector Laplacian acts componentwise in Cartesian coordinates, so for each jj, exactly as in Step 1,

−∇12Aj(r1)=−14π∫cj(r2)[∇121r12]dτ2=−14π∫cj(r2)[−4π δ(3)(r1−r2)] dτ2=cj(r1).-\nabla_1^2 A_j(\mathbf{r}_1) = -\frac{1}{4\pi}\int c_j(\mathbf{r}_2)\left[\nabla_1^2\frac{1}{r_{12}}\right] d\tau_2 = -\frac{1}{4\pi}\int c_j(\mathbf{r}_2)\bigl[-4\pi\,\delta^{(3)}(\mathbf{r}_1-\mathbf{r}_2)\bigr]\, d\tau_2 = c_j(\mathbf{r}_1) .

Combining with Steps 2 and 3, ∇×P⋆=c=∇×P\nabla\times\mathbf{P}^{\star} = \mathbf{c} = \nabla\times\mathbf{P}.

Step 5 (identify P⋆\mathbf{P}^{\star} with P\mathbf{P}). Put Q=P−P⋆\mathbf{Q} = \mathbf{P} - \mathbf{P}^{\star}. By Steps 1 and 4, ∇⋅Q=0\nabla\cdot\mathbf{Q} = 0 and ∇×Q=0\nabla\times\mathbf{Q} = \mathbf{0} on the whole of R3\mathbb{R}^3. The uniqueness theorem cannot be applied with V=R3V = \mathbb{R}^3: that region is unbounded and has no boundary, so its boundary hypothesis would be empty, and the conclusion false, as any constant field shows. We run the argument of that theorem on the balls VR={r<R}V_R = \{r < R\} instead and let R→∞R \to \infty.

Since R3\mathbb{R}^3 is simply connected and Q\mathbf{Q} is C1C^1 and irrotational, Q=−∇χ\mathbf{Q} = -\nabla\chi with χ∈C2(R3)\chi \in C^2(\mathbb{R}^3), and ∇2χ=−∇⋅Q=0\nabla^2\chi = -\nabla\cdot\mathbf{Q} = 0. Each VRV_R is bounded with a smooth boundary, so Green's first identity applies there with u=v=χu = v = \chi; the term in ∇2χ\nabla^2\chi drops out, and ∂χ/∂n=r^⋅∇χ=−Q⋅r^\partial\chi/\partial n = \hat{\mathbf{r}}\cdot\nabla\chi = -\mathbf{Q}\cdot\hat{\mathbf{r}} on r=Rr = R, so

∫VR∣Q∣2 dV  =  −∮r=Rχ (Q⋅r^) dS.\int_{V_R} \lvert\mathbf{Q}\rvert^2\, dV \;=\; -\oint_{r=R} \chi\,\bigl(\mathbf{Q}\cdot\hat{\mathbf{r}}\bigr)\, dS .

The constant in χ\chi may be used to sharpen this. Since ∇⋅Q=0\nabla\cdot\mathbf{Q} = 0 in VRV_R, the divergence theorem gives ∮r=RQ⋅r^ dS=0\oint_{r=R}\mathbf{Q}\cdot\hat{\mathbf{r}}\, dS = 0, so χ\chi may be replaced by χ−k\chi - k for any constant kk. Choose kk to be the value of χ\chi at one point of the sphere r=Rr = R. Any two points of that sphere are joined by a great-circle arc of length at most πR\pi R, along which χ\chi changes at a rate at most ∣∇χ∣=∣Q∣\lvert\nabla\chi\rvert = \lvert\mathbf{Q}\rvert, so ∣χ−k∣≤πR M(R)\lvert \chi - k\rvert \le \pi R\, M(R) on the sphere, where M(R)=max⁡r=R∣Q∣M(R) = \max_{r=R}\lvert\mathbf{Q}\rvert. With the sphere's area 4πR24\pi R^2,

∫VR∣Q∣2 dV  ≤  4πR2⋅πR M(R)⋅M(R)  =  4π2R3M(R)2.\int_{V_R} \lvert\mathbf{Q}\rvert^2\, dV \;\le\; 4\pi R^2 \cdot \pi R\,M(R)\cdot M(R) \;=\; 4\pi^2 R^3 M(R)^2 .

The left side increases with RR, so if the right side tends to 00 along some sequence R→∞R \to \infty then ∫VR∣Q∣2 dV=0\int_{V_R}\lvert\mathbf{Q}\rvert^2\, dV = 0 for every RR; the integrand is continuous and non-negative, so Q≡0\mathbf{Q} \equiv \mathbf{0}, exactly as in Step 5 of the first proof. The theorem therefore follows as soon as R3M(R)2→0R^3M(R)^2 \to 0 along a sequence — that is, as soon as ∣Q∣\lvert\mathbf{Q}\rvert decays faster than r−3/2r^{-3/2}.

It does so under the hypotheses declared in the preamble, which is where the compact support of ss and c\mathbf{c} and the decay P=O(r−2)\mathbf{P} = O(r^{-2}) are used. Indeed for r1=∣r1∣≥2ar_1 = \lvert\mathbf{r}_1\rvert \ge 2a every source point has r12≥r1−a≥r1/2r_{12} \ge r_1 - a \ge r_1/2, so

∣φ(r1)∣≤14π⋅2r1∫∣s∣ dτ2,∣∇1φ(r1)∣≤14π∫∣s∣r122 dτ2≤1πr12∫∣s∣ dτ2,\lvert\varphi(\mathbf{r}_1)\rvert \le \frac{1}{4\pi}\cdot\frac{2}{r_1}\int\lvert s\rvert\, d\tau_2 , \qquad \lvert\nabla_1\varphi(\mathbf{r}_1)\rvert \le \frac{1}{4\pi}\int \frac{\lvert s\rvert}{r_{12}^2}\, d\tau_2 \le \frac{1}{\pi r_1^2}\int\lvert s\rvert\, d\tau_2 ,

using ∣∇1(1/r12)∣=1/r122\lvert\nabla_1(1/r_{12})\rvert = 1/r_{12}^2, and the same bounds hold for A\mathbf{A} and its derivatives with ∣c∣\lvert\mathbf{c}\rvert in place of ∣s∣\lvert s\rvert. Hence P⋆=−∇φ+∇×A\mathbf{P}^{\star} = -\nabla\varphi + \nabla\times\mathbf{A} is O(r−2)O(r^{-2}), so M(R)=O(R−2)M(R) = O(R^{-2}) and R3M(R)2=O(R−1)→0R^3M(R)^2 = O(R^{-1}) \to 0. Therefore P⋆=P\mathbf{P}^{\star} = \mathbf{P}, that is,

P=−∇φ+∇×A,\mathbf{P} = -\nabla\varphi + \nabla\times\mathbf{A} ,

with −∇φ-\nabla\varphi irrotational and ∇×A\nabla\times\mathbf{A} solenoidal. □\square

RemarkOriginal

Where the hypotheses are used, and what the freedom is.

  • Simple connectivity, in Step 2 of the first proof only. Drop it, keeping every other hypothesis, and uniqueness fails. Take the capped cylindrical shell V={1≤ρ≤2,  0≤z≤h}V = \{1 \le \rho \le 2,\; 0 \le z \le h\}, which is bounded and has piecewise C1C^1 boundary but is not simply connected, and on it the field Q=(−y,x,0)/(x2+y2)\mathbf{Q} = (-y, x, 0)/(x^2+y^2), which is C1C^1 on V‾\overline V because ρ≥1\rho \ge 1 there. Then ∇⋅Q=0\nabla\cdot\mathbf{Q} = 0, ∇×Q=0\nabla\times\mathbf{Q} = \mathbf{0}, and Q⋅n^=0\mathbf{Q}\cdot\hat{\mathbf{n}} = 0 on the whole of ∂V\partial V: on the two cylindrical walls the normal is ±ρ^\pm\hat{\boldsymbol{\rho}} while Q\mathbf{Q} is azimuthal, and on the two annular caps z=0z = 0 and z=hz = h the normal is ∓k^\mp\hat{\mathbf{k}} while Q\mathbf{Q} has no zz-component. Yet Q≠0\mathbf{Q} \ne \mathbf{0}, so P\mathbf{P} and P+Q\mathbf{P} + \mathbf{Q} share all three data. What fails is exactly Step 2: Q\mathbf{Q} has no single-valued potential on VV, its circulation round a circle ρ=const\rho = \text{const} being 2π2\pi (see the second example of line integrals). The caps matter. The region between two infinite coaxial cylinders falls outside the theorem for a second and independent reason, that it is unbounded, and so isolates nothing; closing it off at z=0z = 0 and z=hz = h costs nothing, since Q⋅n^\mathbf{Q}\cdot\hat{\mathbf{n}} vanishes on the new faces too.

  • The normal component, not the tangential one. Specifying P⋅n^\mathbf{P}\cdot\hat{\mathbf{n}} is what makes the left side of Step 4 vanish. Prescribing instead the tangential components would not close the argument in this form.

  • Decay at infinity, in Steps 3 and 5 of the second proof — and how much of it each step needs. Neither step is served by Arfken's hypothesis that the densities merely vanish at infinity, and the two need different things, so the proof above declares compact support in its preamble and both steps then have what they require outright.

    Step 3 discards the surface term ∮r2=R(1/r12) c⋅dS2\oint_{r_2=R}(1/r_{12})\,\mathbf{c}\cdot d\mathbf{S}_2. That term is bounded by 4πR2max⁡r2=R∣c∣/(R−r1)4\pi R^2\max_{r_2=R}\lvert\mathbf{c}\rvert/(R-r_1), hence by 8πRmax⁡r2=R∣c∣8\pi R\max_{r_2=R}\lvert\mathbf{c}\rvert once R>2r1R > 2r_1: the sphere's area grows like R2R^2 while the kernel decays only like R−1R^{-1}. So it tends to zero if and only if c=o(1/r)\mathbf{c} = o(1/r), and for ∣c∣∼1/r\lvert\mathbf{c}\rvert\sim 1/r — a field that does vanish at infinity — it does not, leaving ∇⋅A=0\nabla\cdot\mathbf{A} = 0, on which Steps 2 and 4 both rest, unestablished. The correct condition for Step 3 in general is therefore c=o(1/r)\mathbf{c} = o(1/r), and it is logged with the convergence condition in verification/discrepancies.md. Under compact support the term is identically zero for every R>aR > a and no limit is needed.

    Step 5 needs more again. Its bound 4π2R3M(R)24\pi^2R^3M(R)^2 tends to zero only if ∣Q∣\lvert\mathbf{Q}\rvert decays faster than r−3/2r^{-3/2}, and that rate is got there from the compact support of ss and c\mathbf{c} together with P=O(r−2)\mathbf{P} = O(r^{-2}). Arfken does not need it, because he applies his uniqueness theorem directly on all of space, which the statement above does not permit. Our Step 5 is the limiting argument that replaces that appeal, and the difference from the source is likewise recorded in verification/discrepancies.md.

    Convergence of the two integrals is a third, separate condition: as the note above says, φ\varphi needs ss to decay faster than 1/r21/r^2. Compact support gives all three conditions at once, which is why the proof is written for that case.

  • What is unique and what is not. The decomposition into irrotational plus solenoidal is pinned down by the theorem, because the two pieces are reconstructed from ss and c\mathbf{c}. The potentials are not: φ\varphi may be shifted by a constant, and A\mathbf{A} by any ∇ψ\nabla\psi plus a constant vector. Arfken's Example 3.9.2 exhibits three different vector potentials for a constant field B=Bze^z\mathbf{B} = B_z\hat{\mathbf{e}}_z, namely Bzx e^yB_zx\,\hat{\mathbf{e}}_y, −Bzy e^x-B_zy\,\hat{\mathbf{e}}_x and 12(B×r)\tfrac12(\mathbf{B}\times\mathbf{r}), and reconciles them by adding ∇(Cxy)\nabla(Cxy). The particular A\mathbf{A} produced by the Helmholtz integral has ∇⋅A=0\nabla\cdot\mathbf{A} = 0, as Step 3 shows; in electromagnetism that choice is the Coulomb gauge.

  • A field can be decomposed without the integral formulas applying. The second example below splits a field that grows linearly at infinity. The theorem's integral formulas say nothing about it, but the decomposition exists, found by inspection. Conversely, a field decaying at infinity whose source decays only like 1/r21/r^2 may defeat the formulas, as the note above says.

  • Arfken's delta caveat. The two theorems are stated to include points where ∇⋅P\nabla\cdot\mathbf{P} or ∇×P\nabla\times\mathbf{P} exists only as a delta. This matters: the field of a point charge is the main application, and it is covered only because the singular point is kept inside the region, with ss read as qδ(3)/ε0q\delta^{(3)}/\varepsilon_0.

  • Three dimensions, and what replaces this in general. The construction uses 1/r1/r, the fundamental solution of the Laplacian in R3\mathbb{R}^3, and the curl, which exists only in three dimensions. The statement that survives in any dimension and on curved spaces is the Hodge decomposition of differential forms, of which this is the case of a 1-form in R3\mathbb{R}^3.

Example(A field with source but no circulation: a ball whose source grows with the radius)Original

Let a>0a > 0 and take the source density

s(r)={12 r/a,r<a,0,r>a,c=0,s(\mathbf{r}) = \begin{cases} 12\,r/a, & r < a,\\ 0, & r > a,\end{cases} \qquad \mathbf{c} = \mathbf{0} ,

a source that vanishes at the centre, grows linearly out to the value 1212 just inside r=ar = a, and is switched off beyond. Both densities have bounded support, so the Helmholtz integrals converge, and A=0\mathbf{A} = \mathbf{0} because c=0\mathbf{c} = \mathbf{0}. We compute φ\varphi and recover P=−∇φ\mathbf{P} = -\nabla\varphi. The decay condition of the proof above will hold too; its smoothness condition holds everywhere except on the single sphere r=ar = a, where ss jumps, and step 4 below comes back to that.

  1. The spherical average of 1/r121/r_{12}. For ∣r1∣=r\lvert\mathbf{r}_1\rvert = r fixed, average 1/∣r1−r2∣1/\lvert\mathbf{r}_1-\mathbf{r}_2\rvert over the sphere ∣r2∣=t\lvert\mathbf{r}_2\rvert = t. With μ\mu the cosine of the angle between the two vectors, r12=r2+t2−2rtμr_{12} = \sqrt{r^2+t^2-2rt\mu} and

    12∫−11dμr2+t2−2rtμ=12rt[r2+t2+2rt−r2+t2−2rt]=(r+t)−∣r−t∣2rt=1max⁡(r,t).\frac12\int_{-1}^{1}\frac{d\mu}{\sqrt{r^2+t^2-2rt\mu}} = \frac{1}{2rt}\Bigl[\sqrt{r^2+t^2+2rt} - \sqrt{r^2+t^2-2rt}\Bigr] = \frac{(r+t) - \lvert r-t\rvert}{2rt} = \frac{1}{\max(r,t)} .
  2. The potential. Since ss is radial, slice the ball into shells of radius tt and area 4πt24\pi t^2 and use step 1 on each shell. The factor 4π4\pi cancels against the 1/4π1/4\pi in front of the Helmholtz integral, leaving

    φ(r)=∫0as(t) t2max⁡(r,t) dt=12a∫0at3max⁡(r,t) dt.\varphi(r) = \int_0^a \frac{s(t)\,t^2}{\max(r,t)}\, dt = \frac{12}{a}\int_0^a \frac{t^3}{\max(r,t)}\, dt .

    For r≤ar \le a split the range at t=rt = r:

    φ(r)=12a[1r∫0rt3 dt+∫rat2 dt]=12a[r34+a3−r33]=4a2−r3a,\varphi(r) = \frac{12}{a}\left[\frac1r\int_0^r t^3\, dt + \int_r^a t^2\, dt\right] = \frac{12}{a}\left[\frac{r^3}{4} + \frac{a^3 - r^3}{3}\right] = 4a^2 - \frac{r^3}{a} ,

    and for r≥ar \ge a the whole ball has max⁡(r,t)=r\max(r,t) = r, so φ(r)=(12/a)⋅a4/(4r)=3a3/r\varphi(r) = (12/a)\cdot a^4/(4r) = 3a^3/r. Hence

    φ(r)={4a2−r3a,r≤a,3a3r,r≥a.\varphi(r) = \begin{cases} 4a^2 - \dfrac{r^3}{a}, & r \le a,\\[2mm] \dfrac{3a^3}{r}, & r \ge a .\end{cases}

    Both expressions give φ=3a2\varphi = 3a^2 at r=ar = a, so φ\varphi is continuous.

  3. The field. P=−∇φ=−φ′(r) r^\mathbf{P} = -\nabla\varphi = -\varphi'(r)\,\hat{\mathbf{r}}, so

    P=3r2a r^(r≤a),P=3a3r2 r^(r≥a),\mathbf{P} = \frac{3r^2}{a}\,\hat{\mathbf{r}} \quad (r \le a), \qquad \mathbf{P} = \frac{3a^3}{r^2}\,\hat{\mathbf{r}} \quad (r \ge a) ,

    continuous at r=ar = a with magnitude 3a3a on both sides: the field grows as r2r^2 out to the surface and then falls as r−2r^{-2}.

  4. Check the data, on each side of r=ar = a separately. By the radial formula ∇⋅(f(r)r^)=r−2(r2f)′\nabla\cdot(f(r)\hat{\mathbf{r}}) = r^{-2}(r^2f)': inside, r−2(3r4/a)′=12r/a=sr^{-2}(3r^4/a)' = 12r/a = s; outside, r−2(3a3)′=0=sr^{-2}(3a^3)' = 0 = s. And ∇×(f(r)r^)=0\nabla\times(f(r)\hat{\mathbf{r}}) = \mathbf{0} for any radial ff, so c=0\mathbf{c} = \mathbf{0} as required. The field decays like r−2r^{-2}, so it vanishes at infinity at the rate the proof's Step 5 asks for.

    The check has to be made piecewise, and it is worth saying why. The density ss jumps from 1212 to 00 across r=ar = a, and since ∇2φ=−s\nabla^2\varphi = -s, the second derivative of φ\varphi must jump by the same amount: φ′′=−6r/a→−6\varphi'' = -6r/a \to -6 from inside and φ′′=6a3/r3→+6\varphi'' = 6a^3/r^3 \to +6 from outside. So φ\varphi is C1C^1 but not C2C^2 at r=ar = a, and P=−∇φ\mathbf{P} = -\nabla\varphi is continuous there but not differentiable — ∣P∣\lvert\mathbf{P}\rvert has a kink, with slope +6+6 approaching the sphere from inside and −6-6 from outside. The divergence ∇⋅P\nabla\cdot\mathbf{P} therefore does not exist on the sphere r=ar = a at all, which is exactly why the verification above is carried out separately on r<ar < a and on r>ar > a.

    That this costs nothing is a statement about measure, not about smoothness: r=ar = a is a single surface, of zero volume, so it contributes nothing to either Helmholtz integral and nothing to any flux balance, and ∇⋅P=s\nabla\cdot\mathbf{P} = s holds at every point off it. The example is thus marginally outside the letter of the proof's hypothesis P∈C2(R3)\mathbf{P}\in C^2(\mathbb{R}^3), on a zero-volume set; a density with a jump across a surface is the normal situation in electrostatics, and the honest reading is that the formulas are being checked wherever the derivatives they contain exist. The second example below, whose field is a polynomial, has no such surface anywhere.

  5. A number. Take a=2a = 2, so s=6rs = 6r inside the ball of radius 22. Then φ(0)=16\varphi(0) = 16 and φ(2)=12\varphi(2) = 12, while ∣P∣=1.5\lvert\mathbf{P}\rvert = 1.5 at r=1r = 1, rises to 66 at r=2r = 2, and is back to 1.51.5 at r=4r = 4. The flux out of the sphere r=4r = 4 is 1.5×4π(16)=96π1.5\times 4\pi(16) = 96\pi, and

    ∫s dτ=∫026t⋅4πt2 dt=24π[t44]02=96π:\int s\, d\tau = \int_0^2 6t\cdot 4\pi t^2\, dt = 24\pi\left[\frac{t^4}{4}\right]_0^2 = 96\pi :

    the divergence theorem is satisfied, as it must be.

  6. What it is. This is the electrostatic field of a ball whose charge density grows in proportion to the distance from the centre, with s=ρ/ε0s = \rho/\varepsilon_0. It is worth contrasting with the uniform ball, whose field rises linearly inside; here the enclosed charge grows like r4r^4 rather than r3r^3, so the field rises as r2r^2 instead. Outside the ball, both look alike — only the total charge is visible, which is the content of the 3a3/r3a^3/r tail.

Example(A field with both parts, split by inspection)Original

Take

F=(x+y,    y−x,    2z)on all of R3.\mathbf{F} = (x + y,\;\; y - x,\;\; 2z) \qquad\text{on all of } \mathbb{R}^3 .
  1. Its data. ∇⋅F=1+1+2=4\nabla\cdot\mathbf{F} = 1 + 1 + 2 = 4 and ∇×F=(∂y(2z)−∂z(y−x),  ∂z(x+y)−∂x(2z),  ∂x(y−x)−∂y(x+y))=(0,0,−2).\nabla\times\mathbf{F} = \bigl(\partial_y(2z) - \partial_z(y-x),\; \partial_z(x+y) - \partial_x(2z),\; \partial_x(y-x) - \partial_y(x+y)\bigr) = (0,0,-2) . Neither vanishes, so both parts of the decomposition are present.
  2. Guess the pieces. Try φ=−(x2+y22+z2),A=(0, 0, x2+y22).\varphi = -\left(\frac{x^2+y^2}{2} + z^2\right), \qquad \mathbf{A} = \Bigl(0,\, 0,\, \frac{x^2+y^2}{2}\Bigr) . Then −∇φ=(x,y,2z)-\nabla\varphi = (x, y, 2z) and ∇×A=(∂yA3,  −∂xA3,  0)=(y,−x,0)\nabla\times\mathbf{A} = (\partial_yA_3,\; -\partial_xA_3,\; 0) = (y, -x, 0).
  3. Check. Their sum is (x+y,  y−x,  2z)=F(x+y,\; y-x,\; 2z) = \mathbf{F}. Moreover ∇⋅(−∇φ)=−∇2φ=4\nabla\cdot(-\nabla\varphi) = -\nabla^2\varphi = 4 and ∇×(∇×A)=∇×(y,−x,0)=(0,0,−2)\nabla\times(\nabla\times\mathbf{A}) = \nabla\times(y,-x,0) = (0,0,-2), so the irrotational piece carries all the divergence and the solenoidal piece all the curl, as Helmholtz's theorem says they must.
  4. Gauge freedom, made explicit. Replace A\mathbf{A} by A′=A+∇(Kxy)=(Ky,  Kx,  12(x2+y2))\mathbf{A}' = \mathbf{A} + \nabla(Kxy) = \bigl(Ky,\; Kx,\; \tfrac12(x^2+y^2)\bigr) for any constant KK. Then ∇×A′=(∂yA3′−∂zA2′,  ∂zA1′−∂xA3′,  ∂xA2′−∂yA1′)=(y,  −x,  K−K)=(y,−x,0),\nabla\times\mathbf{A}' = \bigl(\partial_yA'_3 - \partial_zA'_2,\; \partial_zA'_1 - \partial_xA'_3,\; \partial_xA'_2 - \partial_yA'_1\bigr) = (y,\; -x,\; K - K) = (y,-x,0) , unchanged. Note that ∇⋅A=0\nabla\cdot\mathbf{A} = 0 while ∇⋅A′=0\nabla\cdot\mathbf{A}' = 0 too here, so this family stays in the Coulomb gauge; a ψ\psi with ∇2ψ≠0\nabla^2\psi \ne 0 would leave it.
  5. Why the integral formulas do not apply. F\mathbf{F} grows linearly with ∣r∣\lvert\mathbf{r}\rvert, and s=4s = 4, c=(0,0,−2)\mathbf{c} = (0,0,-2) are constants: they do not vanish at infinity, and the integrals ∫s/r12 dτ2\int s/r_{12}\, d\tau_2 and ∫c/r12 dτ2\int\mathbf{c}/r_{12}\, d\tau_2 both diverge. The decomposition nevertheless exists. The theorem gives a sufficient condition and a formula, not a characterization of the fields that split.
ApplicationAdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, Example 3.9.3 and Eqs. (3.108)–(3.111), pp. 174–175

Electromagnetism is built on this decomposition. Because ∇⋅B=0\nabla\cdot\mathbf{B} = 0 always, B\mathbf{B} has a vector potential, B=∇×A\mathbf{B} = \nabla\times\mathbf{A}; substituting into Faraday's law shows that E+∂A/∂t\mathbf{E} + \partial\mathbf{A}/\partial t is irrotational, hence a gradient, which defines the scalar potential:

B=∇×A,E=−∇φ−∂A∂t.\mathbf{B} = \nabla\times\mathbf{A}, \qquad \mathbf{E} = -\nabla\varphi - \frac{\partial\mathbf{A}}{\partial t} .

Six field components have been replaced by four potential components, and the gauge freedom A↦A+∇ψ\mathbf{A}\mapsto\mathbf{A}+\nabla\psi remains, which amounts to a free choice of ∇⋅A\nabla\cdot\mathbf{A}. Arfken's Example 3.9.3 makes the choice c−2∂tφ+∇⋅A=0c^{-2}\partial_t\varphi + \nabla\cdot\mathbf{A} = 0, the Lorentz gauge, which decouples the equations into ∇2φ−c−2∂t2φ=−ρ/ε0\nabla^2\varphi - c^{-2}\partial_t^2\varphi = -\rho/\varepsilon_0 and c−2∂t2A−∇2A=μ0Jc^{-2}\partial_t^2\mathbf{A} - \nabla^2\mathbf{A} = \mu_0\mathbf{J}: two wave equations, one with the charge density as source and one with the current density. The invariance of all predictions under gauge transformations is, as Arfken remarks, the precursor of gauge theory in modern physics.

In fluid mechanics the same split separates a flow into a potential part and a vortical part. Removing the irrotational part is what every incompressible Navier–Stokes solver does at each time step: given a provisional velocity field, project out its gradient part by solving a Poisson equation for the pressure, leaving a divergence-free field. That projection is the Helmholtz decomposition, and in the discrete setting its uniqueness is what makes the pressure well determined up to a constant. In magnetostatics the vector potential of a current loop is the Helmholtz integral A=(μ0/4π)∫J/r12 dτ2\mathbf{A} = (\mu_0/4\pi)\int \mathbf{J}/r_{12}\, d\tau_2, from which the Biot–Savart law follows by taking the curl; and in image processing and computer graphics the decomposition of a vector field into curl-free and divergence-free parts is a standard tool for smoothing and for detecting sources and vortices in measured flow fields.

Definition

The Dirac delta in calculations

Adapted

Introduces the delta as the limit of a normalized family of peaked functions, proves that the Gaussian family sifts the value of any bounded function continuous at the point, collects the working rules (evenness, rescaling, δ(g(x))\delta(g(x)), the derivative, θ′=δ\theta' = \delta), defines the three-dimensional delta, and proves ∇2(1/r)=−4πδ(3)(r)\nabla^2(1/r) = -4\pi\delta^{(3)}(\mathbf{r}) from Green's second identity.

Prerequisites: The divergence theorem, Green's identities, Gaussian integrals

Definition(Delta sequence, the delta, the sifting property)AdaptedAdapted from Arfken, Weber & Harris (2013), §1.11, Eqs. (1.149)–(1.157), pp. 75–78; Hassani (2013), §7.3, Eq. (7.20) and Examples 7.3.1–7.3.3, pp. 229–232; Stakgold & Holst (2011), §1.2, pp. 62–63

What one wants is an object δ\delta concentrated at a single point with unit total weight:

δ(x)=0  (x≠0),∫abf(x) δ(x) dx=f(0)  whenever 0∈(a,b),∫−∞∞δ(x) dx=1.\delta(x) = 0 \ \ (x \ne 0), \qquad \int_a^b f(x)\,\delta(x)\, dx = f(0) \ \ \text{whenever } 0 \in (a,b), \qquad \int_{-\infty}^{\infty}\delta(x)\, dx = 1 .

These are Arfken's Eqs. (1.149)–(1.151). No function has them: a function vanishing off a single point has integral zero. Stakgold and Holst make the same point for the concentrated unit source. So the symbol is given meaning in two steps.

  • A delta family (or delta sequence) is a family {δε}ε>0\{\delta_\varepsilon\}_{\varepsilon > 0} of integrable functions with ∫−∞∞δε=1\int_{-\infty}^{\infty}\delta_\varepsilon = 1 for every ε\varepsilon, becoming taller and narrower as ε→0\varepsilon \to 0. The standard three are δε(x)=1επ e−x2/ε(Gaussian),δε(x)={1/2ε,∣x∣<ε0otherwise(rectangular),DT(x)=sin⁡Txπx(T=1/ε→∞).\delta_\varepsilon(x) = \frac{1}{\sqrt{\varepsilon\pi}}\,e^{-x^2/\varepsilon} \quad\text{(Gaussian)}, \qquad \delta_\varepsilon(x) = \begin{cases} 1/2\varepsilon, & \lvert x\rvert < \varepsilon \\ 0 & \text{otherwise}\end{cases} \quad\text{(rectangular)}, \qquad D_T(x) = \frac{\sin Tx}{\pi x} \quad (T = 1/\varepsilon \to \infty).
  • δ\delta is defined by what it does inside an integral. For a given class of test functions ff, ∫f(x) δ(x) dx  :=  lim⁡ε→0∫f(x) δε(x) dx,\int f(x)\,\delta(x)\, dx \;:=\; \lim_{\varepsilon\to 0}\int f(x)\,\delta_\varepsilon(x)\, dx , which is Arfken's Eq. (1.157). The limit lim⁡ε→0δε(x)\lim_{\varepsilon\to 0}\delta_\varepsilon(x) itself does not exist, and the integral on the left is not a Riemann integral; δ\delta is a distribution, not a function. Every statement below is an abbreviation for a statement about such limits.

The identity ∫f(x) δ(x−x0) dx=f(x0)\int f(x)\,\delta(x - x_0)\, dx = f(x_0) is called the sifting property; δ(x−x0)\delta(x - x_0) is the delta translated to x0x_0. In three dimensions,

δ(3)(r)=δ(x) δ(y) δ(z),∫Vf(r) δ(3)(r−a) dV={f(a),a∈V,0,a∉V,\delta^{(3)}(\mathbf{r}) = \delta(x)\,\delta(y)\,\delta(z), \qquad \int_V f(\mathbf{r})\,\delta^{(3)}(\mathbf{r} - \mathbf{a})\, dV = \begin{cases} f(\mathbf{a}), & \mathbf{a} \in V, \\ 0, & \mathbf{a} \notin V,\end{cases}

which is the form Riley, Hobson and Bence use for a point source and Hassani's Eq. (7.24) in nn dimensions. The object δ(3)\delta^{(3)} is localized at a point and carries unit integrated weight whatever coordinate system is in use; in spherical polars this reads ∫f(r,θ,ϕ) δ(3)(r−r1) r2sin⁡θ dr dθ dϕ=f(r1)\int f(r,\theta,\phi)\,\delta^{(3)}(\mathbf{r}-\mathbf{r}_1)\, r^2\sin\theta\, dr\, d\theta\, d\phi = f(\mathbf{r}_1), Arfken's Eq. (1.162).

Definition(The Gaussian family sifts)Original

Let δε(x)=(επ)−1/2e−x2/ε\delta_\varepsilon(x) = (\varepsilon\pi)^{-1/2}e^{-x^2/\varepsilon} for ε>0\varepsilon > 0, and let f:R→Rf : \mathbb{R}\to\mathbb{R} be bounded and continuous at x=0x = 0. Then

∫−∞∞δε(x) dx=1for every ε>0,andlim⁡ε→0+∫−∞∞f(x) δε(x) dx=f(0).\int_{-\infty}^{\infty}\delta_\varepsilon(x)\, dx = 1 \quad\text{for every } \varepsilon > 0, \qquad\text{and}\qquad \lim_{\varepsilon\to 0^+}\int_{-\infty}^{\infty} f(x)\,\delta_\varepsilon(x)\, dx = f(0) .

Continuity at the one point x=0x = 0 is all that is needed; ff may be discontinuous elsewhere. Arfken's Eq. (1.150) states the sifting property for "any well-behaved function", and Stakgold and Holst state their Eq. (1.2.6) for ϕ\phi continuous at the point in question, which is the hypothesis used here.

Definition(Working rules)AdaptedAdapted from Arfken, Weber & Harris (2013), §1.11, Eqs. (1.158)–(1.162), pp. 78–79; Hassani (2013), §7.3, Eqs. (7.22)–(7.23), pp. 231–232

Each identity below means that the two sides give the same value when integrated against a test function.

  1. Evenness. δ(−x)=δ(x)\delta(-x) = \delta(x).
  2. Rescaling. δ(ax)=δ(x)/∣a∣\delta(ax) = \delta(x)/\lvert a\rvert for real a≠0a \ne 0. (Arfken states Eq. (1.158) for a>0a>0 and records the modulus for a<0a<0 immediately after.)
  3. Shift. ∫f(x) δ(x−x0) dx=f(x0)\int f(x)\,\delta(x - x_0)\, dx = f(x_0).
  4. Composition with a function. If gg is C1C^1 with simple zeros aia_i on the real axis, so that g′(ai)≠0g'(a_i) \ne 0, then δ(g(x))=∑iδ(x−ai)∣g′(ai)∣,hence∫f(x) δ(g(x)) dx=∑if(ai)∣g′(ai)∣.\delta\bigl(g(x)\bigr) = \sum_i \frac{\delta(x - a_i)}{\lvert g'(a_i)\rvert}, \qquad\text{hence}\qquad \int f(x)\,\delta\bigl(g(x)\bigr)\, dx = \sum_i \frac{f(a_i)}{\lvert g'(a_i)\rvert} .
  5. Derivative. ∫f(x) δ′(x−x0) dx=−f′(x0)\displaystyle\int f(x)\,\delta'(x - x_0)\, dx = -f'(x_0), which may be taken as the definition of δ′\delta'; more generally the nn-th derivative gives (−1)nf(n)(x0)(-1)^nf^{(n)}(x_0).
  6. Step function. With θ(x−x0)=0\theta(x - x_0) = 0 for x<x0x < x_0 and 11 for x>x0x > x_0,  ddxθ(x−x0)=δ(x−x0)\ \dfrac{d}{dx}\theta(x - x_0) = \delta(x - x_0) (Hassani's Eq. (7.23)).
  7. Fourier representation. δ(x−x′)=12π∫−∞∞ei(x−x′)t dt\displaystyle\delta(x - x') = \frac{1}{2\pi}\int_{-\infty}^{\infty}e^{i(x-x')t}\, dt, meaningful only under a further integral sign (Hassani's Eq. (7.22), Arfken's Eq. (1.163)).
Definition(The Laplacian of 1/r1/r)AdaptedAdapted from Arfken, Weber & Harris (2013), §3.9, Eqs. (3.119)–(3.121), p. 177

Let r=∣r∣r = \lvert\mathbf{r}\rvert. Then ∇2(1/r)=0\nabla^2(1/r) = 0 at every point with r>0r > 0, while

∇21r=−4π δ(3)(r),\nabla^2\frac{1}{r} = -4\pi\,\delta^{(3)}(\mathbf{r}) ,

meaning precisely that

∫R31r ∇2f(r)  dV=−4π f(0)for every f∈C2(R3) of compact support.\int_{\mathbb{R}^3} \frac{1}{r}\,\nabla^2 f(\mathbf{r})\; dV = -4\pi\, f(\mathbf{0}) \qquad\text{for every } f \in C^2(\mathbb{R}^3) \text{ of compact support.}

In the two-point form, ∇12(1/r12)=−4π δ(3)(r1−r2)\nabla_1^2\bigl(1/r_{12}\bigr) = -4\pi\,\delta^{(3)}(\mathbf{r}_1-\mathbf{r}_2) with r12=∣r1−r2∣r_{12} = \lvert\mathbf{r}_1-\mathbf{r}_2\rvert, the subscript on ∇1\nabla_1 indicating that the derivatives act on r1\mathbf{r}_1. Arfken stresses that this identity sidesteps the non-existence of the derivatives of 1/r1/r at the origin and is meaningful only inside an integral; it is what makes the point-charge potential q/4πε0rq/4\pi\varepsilon_0 r a solution of Poisson's equation ∇2φ=−q δ(3)(r)/ε0\nabla^2\varphi = -q\,\delta^{(3)}(\mathbf{r})/\varepsilon_0.

Idea of the proofOriginal

The sifting property is a statement that a narrowing bump cannot see anything but the value of ff at its centre. Split the integral at a small radius ρ\rho: inside, ff differs from f(0)f(0) by as little as we like, by continuity, and the bump's total mass there is at most 11; outside, ff is merely bounded, and the bump's mass out there tends to 00 because the mass is normalized and the bump is concentrating. Choosing ρ\rho first and then ε\varepsilon makes both errors small.

For ∇2(1/r)\nabla^2(1/r) the mechanism is geometric. Away from the origin 1/r1/r is harmonic, so all the content sits at the one bad point; and the flux of ∇(1/r)=−r^/r2\nabla(1/r) = -\hat{\mathbf{r}}/r^2 through a sphere of radius aa is −(1/a2)(4πa2)=−4π-(1/a^2)(4\pi a^2) = -4\pi, the same for every aa, because the field weakens exactly as fast as the sphere grows. So the divergence theorem assigns a total "divergence" of −4π-4\pi to any region containing the origin and 00 to any region avoiding it: that is what −4πδ(3)-4\pi\delta^{(3)} records. The proof below converts this into a statement about integrals against test functions, by excising a small ball and using Green's second identity on the shell that remains.

Proof(The Gaussian family sifts)Original

Step 1 (normalization). Substituting x=ε sx = \sqrt\varepsilon\, s and using ∫−∞∞e−s2 ds=π\int_{-\infty}^\infty e^{-s^2}\, ds = \sqrt\pi (Gaussian integrals),

∫−∞∞δε(x) dx=1επ∫−∞∞e−x2/ε dx=1επ⋅ε⋅π=1.\int_{-\infty}^{\infty}\delta_\varepsilon(x)\, dx = \frac{1}{\sqrt{\varepsilon\pi}}\int_{-\infty}^{\infty} e^{-x^2/\varepsilon}\, dx = \frac{1}{\sqrt{\varepsilon\pi}}\cdot\sqrt{\varepsilon}\cdot\sqrt{\pi} = 1 .

Step 2 (what has to be estimated). Since δε\delta_\varepsilon integrates to 11,

∫f δε dx−f(0)=∫−∞∞[f(x)−f(0)] δε(x) dx,\int f\,\delta_\varepsilon\, dx - f(0) = \int_{-\infty}^{\infty}\bigl[f(x) - f(0)\bigr]\,\delta_\varepsilon(x)\, dx ,

and the integral converges absolutely because ff is bounded and δε\delta_\varepsilon is integrable. Let M=sup⁡∣f∣M = \sup\lvert f\rvert and fix η>0\eta > 0.

Step 3 (the near part, using continuity at 00). By continuity of ff at 00 there is ρ>0\rho > 0 with ∣f(x)−f(0)∣<η/2\lvert f(x) - f(0)\rvert < \eta/2 for ∣x∣≤ρ\lvert x\rvert \le \rho. Since δε≥0\delta_\varepsilon \ge 0 and its total integral is 11,

∣∫∣x∣≤ρ[f−f(0)]δε dx∣  ≤  η2∫∣x∣≤ρδε dx  ≤  η2.\left\lvert \int_{\lvert x\rvert \le \rho}\bigl[f - f(0)\bigr]\delta_\varepsilon\, dx \right\rvert \;\le\; \frac{\eta}{2}\int_{\lvert x\rvert\le\rho}\delta_\varepsilon\, dx \;\le\; \frac{\eta}{2} .

Step 4 (the far part, using boundedness and concentration). On ∣x∣>ρ\lvert x\rvert > \rho we only know ∣f−f(0)∣≤2M\lvert f - f(0)\rvert \le 2M. Substituting x=εsx = \sqrt\varepsilon s again,

∫∣x∣>ρδε(x) dx=2π∫ρ/ε∞e−s2 ds  ≤  2π  e−ρ2/ε2ρ/ε,\int_{\lvert x\rvert > \rho}\delta_\varepsilon(x)\, dx = \frac{2}{\sqrt\pi}\int_{\rho/\sqrt\varepsilon}^{\infty} e^{-s^2}\, ds \;\le\; \frac{2}{\sqrt{\pi}}\;\frac{e^{-\rho^2/\varepsilon}}{2\rho/\sqrt{\varepsilon}} ,

using ∫T∞e−s2ds≤∫T∞(s/T)e−s2ds=e−T2/2T\int_T^\infty e^{-s^2}ds \le \int_T^\infty (s/T)e^{-s^2}ds = e^{-T^2}/2T for T>0T > 0. The right-hand side tends to 00 as ε→0+\varepsilon \to 0^+ with ρ\rho held fixed, so there is ε0>0\varepsilon_0 > 0 such that for 0<ε<ε00 < \varepsilon < \varepsilon_0 the far part contributes less than η/2\eta/2 in absolute value — here the hypothesis that ff is bounded is used, and nothing more.

Step 5 (conclude). For 0<ε<ε00 < \varepsilon < \varepsilon_0 the two estimates give ∣∫fδε−f(0)∣<η\bigl\lvert\int f\delta_\varepsilon - f(0)\bigr\rvert < \eta. As η>0\eta > 0 was arbitrary, the limit is f(0)f(0). □\square

Proof(The Laplacian of 1/r1/r)Original

Step 1 (1/r1/r is harmonic off the origin). For a function of rr alone, ∇2F=F′′+(2/r)F′\nabla^2F = F'' + (2/r)F' (the radial Laplacian). With F=1/rF = 1/r we have F′=−1/r2F' = -1/r^2 and F′′=2/r3F'' = 2/r^3, so

∇21r=2r3−2r⋅1r2=0(r>0).\nabla^2\frac{1}{r} = \frac{2}{r^3} - \frac{2}{r}\cdot\frac{1}{r^2} = 0 \qquad (r > 0) .

Step 2 (excise the singularity). Let f∈C2(R3)f \in C^2(\mathbb{R}^3) vanish outside the ball r<Rr < R, and for 0<ε<R0 < \varepsilon < R let Aε={ε<r<R}A_\varepsilon = \{\varepsilon < r < R\}, a spherical shell on which u=1/ru = 1/r is C∞C^\infty. By Green's second identity applied to u=1/ru = 1/r and v=fv = f on AεA_\varepsilon, and using ∇2u=0\nabla^2u = 0 there (Step 1),

∫Aε1r ∇2f  dV=∮∂Aε(1r∂f∂n−f ∂∂n1r)dS.\int_{A_\varepsilon}\frac{1}{r}\,\nabla^2 f\; dV = \oint_{\partial A_\varepsilon}\left( \frac{1}{r}\frac{\partial f}{\partial n} - f\,\frac{\partial}{\partial n}\frac{1}{r} \right) dS .

Step 3 (the outer sphere contributes nothing). ∂Aε\partial A_\varepsilon has two components. On r=Rr = R both ff and ∇f\nabla f vanish, because f≡0f \equiv 0 on a neighbourhood of that sphere, so this component contributes 00.

Step 4 (the inner sphere). On r=εr = \varepsilon the normal pointing out of AεA_\varepsilon points towards the origin, so ∂/∂n=−∂/∂r\partial/\partial n = -\partial/\partial r there, and −∂(1/r)/∂n=+∂(1/r)/∂r=−1/ε2-\partial(1/r)/\partial n = +\partial(1/r)/\partial r = -1/\varepsilon^2. The inner contribution is therefore

∮r=ε(−1ε∂f∂r−fε2)dS.\oint_{r=\varepsilon}\left( -\frac{1}{\varepsilon}\frac{\partial f}{\partial r} - \frac{f}{\varepsilon^2} \right) dS .

The first piece is bounded in modulus by ε−1max⁡∣∇f∣⋅4πε2=4πεmax⁡∣∇f∣\varepsilon^{-1}\max\lvert\nabla f\rvert\cdot 4\pi\varepsilon^2 = 4\pi\varepsilon\max\lvert\nabla f\rvert, which tends to 00; here f∈C1f \in C^1 with bounded gradient is used. The second piece is exactly −4π-4\pi times the average of ff over the sphere of radius ε\varepsilon, since the sphere has area 4πε24\pi\varepsilon^2; as ε→0\varepsilon\to 0 that average tends to f(0)f(\mathbf{0}) by continuity. So the inner contribution tends to −4πf(0)-4\pi f(\mathbf{0}).

Step 5 (the left side converges to the full integral). Near the origin ∣∇2f∣≤C\lvert\nabla^2 f\rvert \le C, so

∫r<ε∣∇2fr∣ dV  ≤  C∫0ε1r 4πr2 dr=2πCε2⟶0,\int_{r<\varepsilon}\left\lvert\frac{\nabla^2f}{r}\right\rvert\, dV \;\le\; C\int_0^{\varepsilon}\frac{1}{r}\,4\pi r^2\, dr = 2\pi C\varepsilon^2 \longrightarrow 0 ,

so (1/r)∇2f(1/r)\nabla^2f is absolutely integrable on r<Rr < R and ∫Aε→∫r<R=∫R3\int_{A_\varepsilon} \to \int_{r<R} = \int_{\mathbb{R}^3}.

Step 6 (conclude). Letting ε→0\varepsilon \to 0 in Step 2 and using Steps 3–5,

∫R31r ∇2f  dV=−4πf(0),\int_{\mathbb{R}^3}\frac{1}{r}\,\nabla^2 f\; dV = -4\pi f(\mathbf{0}) ,

which is the assertion. Since the distributional Laplacian of uu is defined by making ∫(∇2u)f\int (\nabla^2 u)f mean ∫u ∇2f\int u\,\nabla^2 f — the two integrations by parts of Green's second identity, with no boundary terms for compactly supported ff — this is the statement ∇2(1/r)=−4πδ(3)(r)\nabla^2(1/r) = -4\pi\delta^{(3)}(\mathbf{r}). Translating by r2\mathbf{r}_2 gives the two-point form. □\square

RemarkOriginal

What the symbols are allowed to mean.

  • δ\delta is not a function, and δ(0)\delta(0) is not a number. Hassani's remark that "δ(0)=∞\delta(0) = \infty" is a description of the shape of the approximating family, not an equation. Products such as δ(x)2\delta(x)^2 and compositions such as δ(δ(x))\delta(\delta(x)) have no meaning at all; the rules of the working list are exactly the operations that survive the limit.
  • Which family is used does not matter, but the test class does. The Gaussian, rectangular and sin⁡Tx/πx\sin Tx/\pi x families all sift. The last is not non-negative and not integrable in absolute value on R\mathbb{R}, so Steps 3 and 4 above do not apply to it verbatim and it requires more of ff — which is why the Fourier representation of rule 7 is the most delicate of the list and is stated by both Arfken and Hassani as meaningful only under a further integral.
  • The simple-zero hypothesis in rule 4. If g′(a)=0g'(a) = 0 the rule fails: for g(x)=x2g(x) = x^2 the right-hand side is undefined, and indeed ∫f(x) δ(x2) dx\int f(x)\,\delta(x^2)\, dx has no finite value, since the rectangular family gives ∫−εεf/2ε∼f(0)/ε→∞\int_{-\sqrt\varepsilon}^{\sqrt\varepsilon} f/2\varepsilon \sim f(0)/\sqrt{\varepsilon} \to \infty. Arfken's derivation of rule 4 replaces gg near each zero by the first term of its Taylor series, which is legitimate only when that term is nonzero.
  • Where the delta is forced on vector calculus. The field v=Qr^/4πr2\mathbf{v} = Q\hat{\mathbf{r}}/4\pi r^2 of a point source has ∇⋅v=0\nabla\cdot\mathbf{v} = 0 wherever it is defined, yet flux QQ out of every surface enclosing the origin: the divergence theorem appears to fail. Riley, Hobson and Bence resolve this by writing ∇⋅v=Q δ(3)(r)\nabla\cdot\mathbf{v} = Q\,\delta^{(3)}(\mathbf{r}), after which the theorem holds for every closed surface, enclosing the source or not. This is the same identity as ∇2(1/r)=−4πδ(3)\nabla^2(1/r) = -4\pi\delta^{(3)}, since v=−(Q/4π)∇(1/r)\mathbf{v} = -(Q/4\pi)\nabla(1/r).
  • Dimensions. δ(x)\delta(x) has the dimensions of 1/x1/x, and δ(3)(r)\delta^{(3)}(\mathbf{r}) those of 1/volume1/\text{volume} — which is why a point charge qq has charge density q δ(3)(r)q\,\delta^{(3)}(\mathbf{r}) and not q δ(r)q\,\delta(r). Confusing δ(3)(r)\delta^{(3)}(\mathbf{r}) with the radial δ(r)\delta(r) is the commonest error in spherical coordinates: for a radially symmetric test function, δ(3)(r)\delta^{(3)}(\mathbf{r}) pairs with f(0)f(0) while δ(r−a)\delta(r - a) pairs with 4πa2f(a)4\pi a^2 f(a) when the volume element is included.
  • What is deferred. The systematic theory — which test functions, what topology, why the limits exist, how far the calculus extends — belongs to distributions and tempered distributions. Arfken's §1.11 and Stakgold and Holst's §1.2 both say explicitly that their treatment is provisional in exactly this sense, and this unit follows them: it is the practitioner's rulebook, with the two proofs that make the rules trustworthy.
Example(The Gaussian family sifting a cosine, exactly)Original

Take f(x)=cos⁡xf(x) = \cos x, which is bounded and continuous, so the theorem applies. Here the approximating integrals can be computed in closed form:

∫−∞∞cos⁡xεπ  e−x2/ε dx=e−ε/4.\int_{-\infty}^{\infty}\frac{\cos x}{\sqrt{\varepsilon\pi}}\;e^{-x^2/\varepsilon}\, dx = e^{-\varepsilon/4} .
  1. Derivation. Write cos⁡x=12(eix+e−ix)\cos x = \tfrac12(e^{ix} + e^{-ix}) and complete the square: −x2/ε±ix=−(x/ε∓iε/2)2−ε/4-x^2/\varepsilon \pm ix = -\bigl(x/\sqrt\varepsilon \mp i\sqrt\varepsilon/2\bigr)^2 - \varepsilon/4. Each of the two Gaussian integrals (Gaussian integrals) contributes 12επ e−ε/4\tfrac12\sqrt{\varepsilon\pi}\,e^{-\varepsilon/4}, and dividing by επ\sqrt{\varepsilon\pi} leaves e−ε/4e^{-\varepsilon/4}.
  2. The limit. e−ε/4→1=cos⁡0e^{-\varepsilon/4}\to 1 = \cos 0 as ε→0\varepsilon\to 0, as the theorem promises.
  3. Numbers. ε=0.05\varepsilon = 0.05 gives 0.9875780.987578; ε=0.01\varepsilon = 0.01 gives 0.9975030.997503. The error is ε/4\varepsilon/4 to leading order, so the approximation converges, but only linearly in the width parameter — one reason numerical work with narrow bumps is delicate.
  4. A function that is bounded but not continuous at 00. For f=θf = \theta, the unit step, the same family gives ∫θ δε=12\int\theta\,\delta_\varepsilon = \tfrac12 for every ε\varepsilon, by the evenness of δε\delta_\varepsilon. The limit exists but is the average of the two one-sided limits, not a value of ff: with continuity at the point dropped, the conclusion changes.
Example(A delta composed with a quadratic)Original

Evaluate I=∫−∞∞(x4+1) δ(x2−4) dx\displaystyle I = \int_{-\infty}^{\infty}\bigl(x^4 + 1\bigr)\,\delta\bigl(x^2 - 4\bigr)\, dx.

  1. Zeros and slopes. g(x)=x2−4g(x) = x^2 - 4 vanishes at a1,2=±2a_{1,2} = \pm 2, and g′(x)=2xg'(x) = 2x, so ∣g′(±2)∣=4≠0\lvert g'(\pm 2)\rvert = 4 \ne 0: both zeros are simple and rule 4 applies.
  2. Apply the rule. I=f(2)∣g′(2)∣+f(−2)∣g′(−2)∣=174+174=172=8.5.I = \frac{f(2)}{\lvert g'(2)\rvert} + \frac{f(-2)}{\lvert g'(-2)\rvert} = \frac{17}{4} + \frac{17}{4} = \frac{17}{2} = 8.5 .
  3. Check it directly from a family. Using the rectangular family, δε(x2−4)\delta_\varepsilon(x^2-4) is 1/2ε1/2\varepsilon on the two intervals where ∣x2−4∣<ε\lvert x^2 - 4\rvert < \varepsilon, that is, ∣x∓2∣<ε/4+O(ε2)\lvert x \mp 2\rvert < \varepsilon/4 + O(\varepsilon^2). Each interval has length ε/2\varepsilon/2 to leading order, so each contributes f(±2)⋅(ε/2)/(2ε)=f(±2)/4f(\pm 2)\cdot(\varepsilon/2)/(2\varepsilon) = f(\pm2)/4, confirming the rule and the factor ∣g′∣−1\lvert g'\rvert^{-1}.
  4. Where it would break. For δ(x2)\delta(x^2) the same computation gives intervals of length 2ε2\sqrt\varepsilon and a contribution f(0)ε/ε→∞f(0)\sqrt{\varepsilon}/\varepsilon\to\infty: the double zero makes the expression meaningless, as the remark above says.
Example(∇2(1/r)=−4πδ(3)\nabla^2(1/r) = -4\pi\delta^{(3)}, tested on a Gaussian)Original

Take f(r)=e−r2f(\mathbf{r}) = e^{-r^2}. This is not of compact support, but it and all its derivatives decay faster than any power, so the proof's estimates apply with the outer sphere pushed to infinity, where the boundary terms vanish.

  1. Its Laplacian. For a radial function ∇2f=f′′+(2/r)f′\nabla^2f = f'' + (2/r)f' with f′=−2re−r2f' = -2re^{-r^2} and f′′=(4r2−2)e−r2f'' = (4r^2-2)e^{-r^2}, so ∇2f=(4r2−2−4)e−r2=(4r2−6)e−r2.\nabla^2 f = \bigl(4r^2 - 2 - 4\bigr)e^{-r^2} = \bigl(4r^2 - 6\bigr)e^{-r^2} .
  2. The integral. With dV=4πr2 drdV = 4\pi r^2\, dr for a radial integrand, ∫R3∇2fr  dV=4π∫0∞(4r3−6r)e−r2 dr.\int_{\mathbb{R}^3}\frac{\nabla^2 f}{r}\; dV = 4\pi\int_0^{\infty}\bigl(4r^3 - 6r\bigr)e^{-r^2}\, dr .
  3. Evaluate. ∫0∞re−r2dr=12\int_0^\infty re^{-r^2}dr = \tfrac12 and ∫0∞r3e−r2dr=12\int_0^\infty r^3e^{-r^2}dr = \tfrac12 (substitute s=r2s = r^2 in each), so the bracket integrates to 4⋅12−6⋅12=−14\cdot\tfrac12 - 6\cdot\tfrac12 = -1 and ∫R31r ∇2f  dV=−4π.\int_{\mathbb{R}^3}\frac{1}{r}\,\nabla^2 f\; dV = -4\pi .
  4. Comparison. The identity predicts −4πf(0)=−4π⋅1=−4π-4\pi f(\mathbf{0}) = -4\pi\cdot 1 = -4\pi. They agree.
  5. A scaled version. For f=e−λr2f = e^{-\lambda r^2} the same computation gives 4π∫0∞(4λ2r3−6λr)e−λr2dr=4π(2−3)=−4π4\pi\int_0^\infty(4\lambda^2r^3 - 6\lambda r)e^{-\lambda r^2}dr = 4\pi(2 - 3) = -4\pi, independent of λ\lambda — as it must be, since f(0)=1f(\mathbf{0}) = 1 for every λ\lambda. The integral is insensitive to the width of the test function, which is the signature of a delta.
ApplicationOriginal

The delta is how a point-like source is written as a density, so that one formula covers both continuous and concentrated sources. A point charge qq at r0\mathbf{r}_0 has ρ=q δ(3)(r−r0)\rho = q\,\delta^{(3)}(\mathbf{r}-\mathbf{r}_0), and Poisson's equation ∇2φ=−ρ/ε0\nabla^2\varphi = -\rho/\varepsilon_0 then has the solution φ=q/4πε0∣r−r0∣\varphi = q/4\pi\varepsilon_0\lvert\mathbf{r}-\mathbf{r}_0\rvert because of the identity proved above; superposing gives the Coulomb integral for any charge distribution, and the same algebra with ρ\rho read as mass density gives Newtonian gravity. A point mass in mechanics, a concentrated load on a beam, and an instantaneous injection of tracer into a flow are the same device.

That observation is the whole idea of a Green's function: solve the equation once with a delta on the right, and the solution for arbitrary data follows by superposition, since f(r)=∫f(r′)δ(3)(r−r′) dV′f(\mathbf{r}) = \int f(\mathbf{r}')\delta^{(3)}(\mathbf{r}-\mathbf{r}')\, dV' expresses any source as a superposition of point sources. In signal processing the same function is the impulse response, and rule 7 — the Fourier representation — is what connects it to the transfer function (convolution). Rule 6, θ′=δ\theta' = \delta, is how a jump in a physical quantity becomes a singular term in its derivative: the surface charge on a conductor, the shock in a compressible flow, the bending moment at a point load.

In probability the delta is the density of a degenerate distribution, so that a mixture of discrete and continuous outcomes has a single density; in quantum mechanics it is the position eigenstate normalization ⟨r′∣r⟩=δ(3)(r−r′)\langle \mathbf{r}'|\mathbf{r}\rangle = \delta^{(3)}(\mathbf{r}-\mathbf{r}'), which is what makes the continuous-index formalism of Hassani's §7.3 work; and rule 4 is used constantly to impose energy or momentum conservation inside a phase-space integral, as in δ(Ef−Ei)\delta(E_f - E_i) in Fermi's golden rule.