Harmonic Functions and the Mean-Value Theorem

Take the potential of a point charge — the most lopsided, asymmetric function in electrostatics when viewed from anywhere but the charge itself — and average it over the surface of a sphere that doesn't contain the charge. The lumpy 1/r1/r values, large on the near side, small on the far side, conspire to average out to exactly the potential at the sphere's center. Not approximately. Not to leading order. Exactly, for any sphere size, any charge position outside. Superpose such charges and the conclusion sweeps all of electrostatics: wherever there is no charge, the potential at a point equals its average over any surrounding sphere. This is the mean-value theorem for harmonic functions, and the E1 article on Laplace's equation already proved it once (by the divergence theorem) and spent its corollaries: no interior extrema, Earnshaw's ban on electrostatic traps. This article is the theorem's own home, and it earns its keep three new ways. First, a second, independent proof — the direct sphere-average of 1/r1/r, a two-line integral with a famous bonus: Newton's shell theorem falls out of the same calculation. Second, the quantitative version: for a non-harmonic function the sphere average misses the center value by R26∇2φ\tfrac{R^2}{6}\nabla^2\varphi, which turns the mean-value property from a yes/no test into a measuring instrument — and proves the converse, that averaging behavior defines harmonicity. Third, the modern payoff: the theorem is a probability statement in disguise, and "walk on spheres" — bouncing a random walker from sphere to sphere until it hits the boundary — is today solving industrial boundary-value problems on GPUs with no mesh at all. The chapter's machinery leans on this theorem constantly: relaxation converges because of it, uniqueness is its corollary, and every guessed solution inherits its smoothness. Time to know it properly.

Key takeaways
  • A function is harmonic in a region if ∇2φ=0\nabla^2\varphi=0 there; electrostatic potentials are harmonic wherever ρ=0\rho=0.
  • Mean-value theorem: for a harmonic function, the value at any point equals its unweighted average over any sphere centered there (and over the enclosed ball) — exact at all radii that fit in the region.
  • Direct proof by averaging the point-charge potential: a charge outside the sphere averages to the center value; a charge inside averages to q/4πε0Rq/4\pi\varepsilon_0R — the second case is Newton's shell theorem.
  • Quantitative refinement: φˉ(R)=φ(0)+R26∇2φ+O(R4)\bar\varphi(R) = \varphi(0) + \tfrac{R^2}{6}\nabla^2\varphi + O(R^4) — the average-deficit measures the Laplacian, so the mean-value property is equivalent to harmonicity (Koebe's converse).
  • Probabilistic reading: φ(r)\varphi(\mathbf{r}) is the expected boundary value at the point where a random walker released from r\mathbf{r} first exits — the engine of modern mesh-free "walk on spheres" solvers.
  • KEY IDEA: harmonic = mean-value obeying, exactly and at every radius; the deficit from the mean is R26∇2φ\tfrac{R^2}{6}\nabla^2\varphi, so averaging is not just a property of the potential — it is a complete characterization and a solver.
The core insight

A harmonic function equals its average over every sphere (and ball) centered at the point — exactly, at all admissible radii — and conversely, the sphere-average deficit of any smooth function is R26∇2φ+O(R4)\tfrac{R^2}{6}\nabla^2\varphi + O(R^4), making the mean-value property equivalent to Laplace's equation.

Where this lives today

The theorem's most vigorous modern life is probabilistic. Kakutani proved in 1944 that harmonic functions are expectations over Brownian motion — the potential at a point is the average boundary value seen by random walkers released there — and Muller's 1956 "walk on spheres" turned that into an algorithm: from the current point, jump to a uniformly random point on the largest sphere that fits inside the domain (legal by the mean-value property, sphere by sphere), repeat until the walker lands within tolerance of the boundary, record the boundary value there, and average over many walkers. Sixty years later this became one of computer graphics' favorite tools: mesh-free Monte Carlo solvers now compute potentials, diffusion, and steady heat in CAD geometry with billions of faces — scenes no mesher survives — one independent, embarrassingly parallel walker per GPU thread. Every jump in those kernels is equation (1) being trusted at full radius. The instrument reading of equation (3) is equally alive: finite-volume and lattice methods are discrete ball averages, solver test suites verify implementations by checking the R2R^2 deficit against known ρ\rho, and in numerical relativity and lattice QCD the same "average-minus-center" stencils estimate Laplacians of fields far removed from electrostatics. When a simulation physicist says "check the residual," they are asking, at bottom, whether the mean-value property holds to tolerance.

Origins · 1 minCarl Friedrich Gauss and how this was discovered
CF
Carl Friedrich Gauss
1777–1855 · Göttingen Observatory

Gauss came to potential theory the way he came to everything — sideways, from an applied problem he then rebuilt from the foundations. Terrestrial magnetism was the trigger: mapping the Earth's field with Weber in the 1830s, he needed the general theory of inverse-square potentials, and his 1840 Allgemeine Lehrsätze (General Theorems on attractive and repulsive forces acting in inverse proportion to the square of the distance) delivered it — among its results, the first explicit statement and proof of the mean-value theorem, along with the surface-integral relations that anglophone textbooks would later file under his name via "Gauss's law." Characteristically, he also anticipated the variational approach to existence (what Riemann would call the Dirichlet principle) and, just as characteristically, published none of his doubts about its rigor. The prince of mathematicians kept a motto, pauca sed matura — few things, but ripe. The mean-value theorem is a perfect specimen: one sentence, one identity, and half a chapter of consequences hanging from it.

History
1687
— Newton's shell theorem: a uniform shell attracts exterior bodies from its center and interior bodies not at all — the a<Ra<R average in disguise
1828
— Green's Essay builds the identity machinery connecting boundary averages to interior values
1840
— Gauss states and proves the mean-value theorem for inverse-square potentials in the Allgemeine Lehrsätze
1906
— Koebe establishes the converse: the mean-value property alone forces harmonicity
1944
— Kakutani identifies harmonic functions as expectations over Brownian paths
1956
— Muller's walk-on-spheres algorithm turns the theorem into a mesh-free Monte Carlo solver

The physical picture

Steady-state temperature is the honest analogy: with no heat sources inside, every point's temperature must equal the average of its surroundings, or heat would still be flowing. But the electrostatic theorem is stronger than the analogy suggests — the equality holds not just for infinitesimal neighborhoods (that much is the differential equation itself, the E0 chapter's averaging-meter reading of ∇2\nabla^2) but for spheres of any radius, as long as the sphere and its interior stay inside the charge-free region. Local balance globalizes into an exact long-range accounting identity. That promotion from local to global is what gives the chapter its rigidity theorems: a function whose every value is an average of far-away values has no room for private behavior.

Figure
The sphere-average dial — outside charge reads the center, inside charge reads the shell theorem
average the point-charge potential over a sphere of radius R charge outside (a > R) q a average = q/4πε₀a = V(center) exactly near-side surplus cancels far-side deficit charge inside (a < R) q average = q/4πε₀R independent of where q sits inside Newton's shell theorem, inverted

The figure's left panel is the theorem; its right panel is the price of breaking the theorem's condition. Put the charge inside the averaging sphere and the average stops caring about position entirely: it reads q/4πε0Rq/4\pi\varepsilon_0R wherever the charge hides. Run backwards, that is Newton's shell theorem — a uniform shell of charge (or mass) attracts an exterior point as if collapsed to its center — because averaging the potential of one charge over a sphere is the same integral as evaluating the potential of a uniform shell at one point. One law-of-cosines integral, two celebrated theorems; Derivation A does it. The second big idea is to ask how much the average misses by when the function is not harmonic. The answer — Derivation B — is beautifully clean: the deficit is R26∇2φ\tfrac{R^2}{6}\nabla^2\varphi to leading order. Read it as an instrument: a tiny averaging sphere is a Laplacian meter, and Poisson's equation calibrates it in charge units — the average sits below the center value by R2ρ/6ε0R^2\rho/6\varepsilon_0 inside positive charge. Read it as logic: if a function passes the mean-value test at every point for all small radii, its Laplacian has nowhere to hide and must vanish — the mean-value property doesn't just follow from harmonicity, it is harmonicity. The third idea reads the theorem as probability. "Value at center = average over sphere" is precisely the statement that φ(r)\varphi(\mathbf{r}) equals the expected value of φ\varphi at a random point of the sphere. Iterate: jump to the biggest sphere that fits, land somewhere random, jump again from there. The sequence is a random walk that eventually hugs the boundary, and φ\varphi at the starting point equals the expected boundary value where the walk first arrives. No grid, no mesh, no matrix — just dice. This "walk on spheres" is not a curiosity; it is how a growing family of modern solvers handles geometry too messy to mesh.

Figure
Walk on spheres — the mean-value theorem as an algorithm
V at the start point = expected boundary value where a random walk first exits boundary: V prescribed start exit: record V here each hop lands uniformly on the largest sphere that fits — legal because V(center) = average over that sphere; average many walkers

The theorem, in surface and volume form

The statement being celebrated, with its fine print:

φ(r0)=14πR2∮∣r−r0∣=Rφ da(1)\varphi(\mathbf{r}_0) = \frac{1}{4\pi R^2}\oint_{|\mathbf{r}-\mathbf{r}_0|=R}\varphi\,\mathrm{d}a \qquad (1)

where: φ\varphi — any function harmonic throughout the closed ball of radius RR about r0\mathbf{r}_0; da\mathrm{d}a — area element on the sphere. The fine print does real work: the whole ball must be charge-free, not just the shell. The E1 twin proved (1) by showing the average is radius-independent (divergence theorem); Derivation A below proves it a second way, from Coulomb's law upward, which is the version that hands you the shell theorem for free. Averaging the shells over radius immediately gives the solid-ball version:

φ(r0)=34πR3∫ballφ dτ(2)\varphi(\mathbf{r}_0) = \frac{3}{4\pi R^3}\int_{\text{ball}}\varphi\,\mathrm{d}\tau \qquad (2)

where: the integral runs over the full ball. Each spherical shell inside the ball averages to φ(r0)\varphi(\mathbf{r}_0) by (1), and a weighted average of equal numbers is that number. The ball form is the one discrete solvers actually approximate — a grid node's neighbor-average is a crude ball average — and the one the probabilistic reading uses when walkers overshoot. And the quantitative refinement, valid for any smooth function, harmonic or not:

φˉ(R)≡14πR2∮Rφ da=φ(r0)+R26 ∇2φ(r0)+O(R4)(3)\bar\varphi(R) \equiv \frac{1}{4\pi R^2}\oint_R \varphi\,\mathrm{d}a = \varphi(\mathbf{r}_0) + \frac{R^2}{6}\,\nabla^2\varphi(\mathbf{r}_0) + O(R^4) \qquad (3)

where: φˉ(R)\bar\varphi(R) — the sphere average at radius RR. Equation (3) is the article's Swiss-army knife. Set ∇2φ=0\nabla^2\varphi=0: the mean-value theorem to O(R4)O(R^4) (and exactly, by either full proof). Impose exact averaging for all small RR: forced ∇2φ=0\nabla^2\varphi=0 — the converse. Substitute Poisson's equation: the average dips below center by R2ρ/6ε0R^2\rho/6\varepsilon_0 inside positive charge — the membrane picture of the previous article, quantified.

Derivation ASphere-averaging the point charge — mean value and shell theorem from one integral

We average V=q/4πε0r′V = q/4\pi\varepsilon_0 r' (distance r′r' measured from the charge) over a sphere of radius RR, with the charge a distance aa from the sphere's center. The plan is direct integration with the law of cosines, splitting at the end into the two cases a>Ra>R (charge outside — mean-value theorem) and a<Ra<R (charge inside — shell theorem). One integral, evaluated honestly, carries the whole load; superposition then upgrades the single charge to any charge distribution outside the sphere.

Step 1. Set up: center the sphere at the origin, put qq on the zz-axis at distance aa. A surface point at polar angle θ\theta sits at distance r′=a2+R2−2aRcos⁡θr' = \sqrt{a^2 + R^2 - 2aR\cos\theta} from the charge (law of cosines). The average is

Vˉ=14πR2∫0πq4πε0 r′  2πR2sin⁡θ dθ=q8πε0∫0πsin⁡θ dθa2+R2−2aRcos⁡θ.\bar V = \frac{1}{4\pi R^2}\int_0^\pi \frac{q}{4\pi\varepsilon_0\,r'}\;2\pi R^2\sin\theta\,\mathrm{d}\theta = \frac{q}{8\pi\varepsilon_0}\int_0^\pi \frac{\sin\theta\,\mathrm{d}\theta}{\sqrt{a^2+R^2-2aR\cos\theta}}.

Step 2. Substitute u=cos⁡θu = \cos\theta, du=−sin⁡θ dθ\mathrm{d}u = -\sin\theta\,\mathrm{d}\theta:

Vˉ=q8πε0∫−11dua2+R2−2aRu=q8πε0[−a2+R2−2aRuaR]−11=q8πε0 (a+R)−∣a−R∣aR.\bar V = \frac{q}{8\pi\varepsilon_0}\int_{-1}^{1} \frac{\mathrm{d}u}{\sqrt{a^2+R^2-2aRu}} = \frac{q}{8\pi\varepsilon_0}\left[\frac{-\sqrt{a^2+R^2-2aRu}}{aR}\right]_{-1}^{1} = \frac{q}{8\pi\varepsilon_0}\,\frac{(a+R)-|a-R|}{aR}.

Why the absolute value is the whole story: a2+R2−2aR=∣a−R∣\sqrt{a^2+R^2-2aR} = |a-R|, and which way it resolves is exactly the inside/outside dichotomy.

Step 3. Charge outside (a>Ra>R): ∣a−R∣=a−R|a-R| = a-R, numerator =2R= 2R, so

Vˉ=q4πε0 a=V(center).\bar V = \frac{q}{4\pi\varepsilon_0\,a} = V(\text{center}).

The average over the sphere is the value at its center — the mean-value theorem for one exterior charge. Any harmonic potential in the ball is a superposition of potentials of charges outside it, and the average of a sum is the sum of averages, so (1) holds in general.

Step 4. Charge inside (a<Ra<R): ∣a−R∣=R−a|a-R| = R-a, numerator =2a= 2a, so

Vˉ=q4πε0 R,\bar V = \frac{q}{4\pi\varepsilon_0\,R},

independent of aa — the sphere has no idea where the interior charge sits. Reciprocity turns this into Newton's shell theorem: the average of qq's potential over the shell is, up to the constant factor Q/qQ/q, the potential that a uniformly charged shell of radius RR and total charge QQ produces at the charge's location; since that potential is Q/4πε0RQ/4\pi\varepsilon_0R for any interior point and Q/4πε0aQ/4\pi\varepsilon_0a for any exterior point, a uniform shell is constant-potential inside and point-charge-like outside. Why this proof route earns its keep: the divergence-theorem proof (E1) certifies the theorem; this one computes it, shows exactly where the inside/outside condition enters, and delivers the shell theorem — the a<Ra<R case the other proof never visits. Note: as a self-consistency check, the a→Ra\to R limits of the two cases (charge just outside and charge just inside) must agree — and they do, both giving q/4πε0Rq/4\pi\varepsilon_0R, as required by continuity.

Go deeper · Derivation B · 1 minThe averaging meter — the deficit formula and the converse
Derivation BThe averaging meter — the deficit formula and the converse

We prove equation (3): for any smooth φ\varphi, the small-sphere average exceeds the center value by R26∇2φ\tfrac{R^2}{6}\nabla^2\varphi. The tool is a Taylor expansion under the average, and the only technology needed is the angular average of direction cosines. The payoff is double: the mean-value property becomes an if-and-only-if characterization of harmonic functions, and the sphere becomes a calibrated charge detector via Poisson's equation.

Step 1. Taylor-expand about the center (n\mathbf{n} the unit vector to a surface point):

φ(R n)=φ(0)+R ni ∂iφ+R22 ninj ∂i∂jφ+R36 ninjnk ∂i∂j∂kφ+O(R4),\varphi(R\,\mathbf{n}) = \varphi(0) + R\,n_i\,\partial_i\varphi + \frac{R^2}{2}\,n_in_j\,\partial_i\partial_j\varphi + \frac{R^3}{6}\,n_in_jn_k\,\partial_i\partial_j\partial_k\varphi + O(R^4),

summation over repeated indices.

Step 2. Average over the sphere. Odd powers of n\mathbf{n} average to zero (every direction cancels its antipode). The quadratic average is isotropy's classic:

⟨ninj⟩=13δij,\langle n_i n_j\rangle = \tfrac{1}{3}\delta_{ij},

since ⟨nx2⟩=⟨ny2⟩=⟨nz2⟩\langle n_x^2\rangle=\langle n_y^2\rangle=\langle n_z^2\rangle and the three sum to ⟨∣n∣2⟩=1\langle|\mathbf{n}|^2\rangle=1.

Step 3. Assemble:

φˉ(R)=φ(0)+R22⋅13 δij ∂i∂jφ+O(R4)=φ(0)+R26 ∇2φ(0)+O(R4).\bar\varphi(R) = \varphi(0) + \frac{R^2}{2}\cdot\frac{1}{3}\,\delta_{ij}\,\partial_i\partial_j\varphi + O(R^4) = \varphi(0) + \frac{R^2}{6}\,\nabla^2\varphi(0) + O(R^4).

Why O(R4)O(R^4) and not O(R3)O(R^3): the cubic term died with the other odd powers, so the first correction beyond the Laplacian is quartic — the formula is more accurate than it has any right to be, which is why coarse averaging spheres work so well as meters.

Step 4. The converse (Koebe). Suppose φˉ(R)=φ(0)\bar\varphi(R)=\varphi(0) at some point for all small RR. Then R26∇2φ(0)+O(R4)=0\tfrac{R^2}{6}\nabla^2\varphi(0) + O(R^4) = 0 for all small RR; divide by R2R^2 and let R→0R\to0: ∇2φ(0)=0\nabla^2\varphi(0)=0. A function with the mean-value property throughout a region is harmonic there — averaging behavior is Laplace's equation, and either can be taken as the definition.

Step 5. Calibrate with Poisson's equation, ∇2φ=−ρ/ε0\nabla^2\varphi = -\rho/\varepsilon_0:

φˉ(R)−φ(0)=−R2ρ6ε0+O(R4).\bar\varphi(R) - \varphi(0) = -\frac{R^2\rho}{6\varepsilon_0} + O(R^4).

A millimeter-scale averaging sphere reading a 94-millivolt deficit is measuring five microcoulombs per cubic meter (worked example 2). This is also the identity the loaded relaxation stencil discretizes — the grid version, with its h2ρ/4ε0h^2\rho/4\varepsilon_0 (2D) source term, was built in the two preceding articles. Self-check: on φ=r2\varphi=r^2, where ∇2φ=6\nabla^2\varphi=6, the exact sphere average is φ(0)+R2\varphi(0)+R^2; the deficit formula gives R26⋅6=R2\tfrac{R^2}{6}\cdot 6 = R^2, reproducing this exactly with zero higher corrections — the O(R4)O(R^4) terms vanish identically for a quadratic function (worked example 1 runs the numbers).

Limiting cases

CaseResultMeaning
φ\varphi harmonic in the ballφˉ(R)=φ(0)\bar\varphi(R)=\varphi(0) exactly, all admissible RRthe theorem; both proofs
Sphere encloses charge qqVˉ=q/4πε0R\bar V = q/4\pi\varepsilon_0R, position-blindshell theorem regime — MVP's stated condition violated
Small sphere in smooth ρ\rhodeficit −R2ρ/6ε0-R^2\rho/6\varepsilon_0Laplacian meter, Poisson-calibrated
One dimensionvalue = average of the two points ±R\pm Rharmonic = linear; the trivial case
Two dimensionsvalue = average over circlessame theorem, log⁡\log potentials, deficit R24∇2φ\tfrac{R^2}{4}\nabla^2\varphi
Exact MVP at all small radii∇2φ=0\nabla^2\varphi=0Koebe converse: averaging defines harmonicity

Worked examples

1 · Auditing the theorem on explicit functions (confidence builder)

Test the machinery on three functions over a sphere of radius R=2.0 cmR = 2.0\,\mathrm{cm} centered at the origin: (a) φ1=x2+y2−2z2\varphi_1 = x^2 + y^2 - 2z^2 (volts, coordinates in meters, unit coefficients), (b) φ2=r2=x2+y2+z2\varphi_2 = r^2 = x^2+y^2+z^2, (c) the point-charge potential of q=1.0 nCq = 1.0\,\mathrm{nC} at distance a=5.0 cma = 5.0\,\mathrm{cm}.

Step 1. (a) Harmonicity check: ∇2φ1=2+2−4=0\nabla^2\varphi_1 = 2 + 2 - 4 = 0 — harmonic. Sphere average using ⟨x2⟩=⟨y2⟩=⟨z2⟩=R2/3\langle x^2\rangle = \langle y^2\rangle = \langle z^2\rangle = R^2/3:

φˉ1=R23+R23−2R23=0=φ1(0) ✓\bar\varphi_1 = \frac{R^2}{3} + \frac{R^2}{3} - \frac{2R^2}{3} = 0 = \varphi_1(0)\ \checkmark

— the anisotropic saddle averages out perfectly, at any radius.

Step 2. (b) ∇2φ2=6≠0\nabla^2\varphi_2 = 6 \neq 0 — not harmonic. Exact average: φˉ2=⟨r2⟩=R2=4.0×10−4 V\bar\varphi_2 = \langle r^2\rangle = R^2 = 4.0\times10^{-4}\,\mathrm{V}, versus φ2(0)=0\varphi_2(0)=0. Deficit formula: R26∇2φ2=R26⋅6=R2\tfrac{R^2}{6}\nabla^2\varphi_2 = \tfrac{R^2}{6}\cdot 6 = R^2 ✓ — and the O(R4)O(R^4) terms are identically zero for a quadratic, so meter and reality agree to all digits.

Step 3. (c) Charge outside the sphere (a>Ra > R): the average must equal the center value,

Vˉ=q4πε0a=(8.99×109)(1.0×10−9)0.050=1.8×102 V,\bar V = \frac{q}{4\pi\varepsilon_0 a} = \frac{(8.99\times10^{9})(1.0\times10^{-9})}{0.050} = 1.8\times10^{2}\,\mathrm{V},

though VV on the sphere ranges from q/4πε0(a−R)=300 Vq/4\pi\varepsilon_0(a-R) = 300\,\mathrm{V} (near point) down to q/4πε0(a+R)=128 Vq/4\pi\varepsilon_0(a+R) = 128\,\mathrm{V} (far point). A 2.3-to-1 spread of values averaging to exactly the center's 180 V180\,\mathrm{V} — the cancellation the theorem promises.

2 · Getting answers without solving anything (exam level)

(a) Six faces of a hollow cubical box are held at 90,0,0,0,0,090, 0, 0, 0, 0, 0 volts. Find the potential at the center. (b) A probe averages the potential over a sphere of radius R=1.0 mmR = 1.0\,\mathrm{mm} deep inside the charged duct of the previous article (ρ=5.0 μC/m3\rho = 5.0\,\mu\mathrm{C/m^3}) and compares to the center value. What deficit does it read?

Step 1. (a) Superposition of boundary data (the previous articles' preprocessor): the given problem is one of six "one-hot-face" problems. Adding all six gives a box with every face at 90 V, whose interior solution is the constant 90 V (it matches the boundary and is harmonic; uniqueness does the rest).

Step 2. By the cube's symmetry, each one-hot problem contributes the same center potential V1V_1, so 6V1=90 V6V_1 = 90\,\mathrm{V}:

Vcenter=906=15 V.V_{\text{center}} = \frac{90}{6} = 15\,\mathrm{V}.

No series, no grid — symmetry, linearity, and the rigidity theorems carried the whole calculation. (Only the center is this cheap: off-center points genuinely need the separation-of-variables machinery ahead.)

Step 3. (b) The deficit formula with Poisson calibration:

Vˉ−V(0)=−R2ρ6ε0=−(1.0×10−3)2(5.0×10−6)6(8.854×10−12) V=−9.4×10−2 V.\bar V - V(0) = -\frac{R^2\rho}{6\varepsilon_0} = -\frac{(1.0\times10^{-3})^2(5.0\times10^{-6})}{6(8.854\times10^{-12})}\,\mathrm{V} = -9.4\times10^{-2}\,\mathrm{V}.

Step 4. Read it as an instrument: a 94 mV average-deficit on a millimeter sphere certifies ρ=5.0 μC/m3\rho = 5.0\,\mu\mathrm{C/m^3} of positive charge at the probe — average below center, because positive charge makes potential hills. Double the sphere radius and the reading quadruples; that R2R^2 scaling is the signature that distinguishes true volume charge from a stray harmonic background, which produces no deficit at all.

Going further

References. Griffiths, Introduction to Electrodynamics, 4th ed., §3.1.4–3.1.5 · Jackson, Classical Electrodynamics, 3rd ed., §1.7–1.10 · Purcell & Morin, Electricity and Magnetism, 3rd ed., §2.12 · Zangwill, Modern Electrodynamics, §7.3 · Kellogg, Foundations of Potential Theory, Ch. VIII. Four internal consistency checks underpin the results: (1) the surface-average derivative argument M′(r)=14πr2∮∂nφ da=0M'(r)=\tfrac{1}{4\pi r^2}\oint\partial_n\varphi\,\mathrm{d}a=0; (2) the angular averages ⟨n^in^j⟩=13δij\langle\hat n_i\hat n_j\rangle=\tfrac13\delta_{ij}, which produce the R2/6R^2/6 coefficient in equation (3); (3) the volume-form normalization 3/(4πR3)3/(4\pi R^3) in equation (2); and (4) the point-charge surface average q/(4πε0R)q/(4\pi\varepsilon_0 R). No empirical constants are used beyond ε0\varepsilon_0.

Builds on: Laplace's Equation (E2) · Poisson's Equation (E2) · Laplace's Equation (E1) · The Laplacian and Second Derivatives

Leads to: Uniqueness Theorems for the Potential · Method of Images · Separation of Variables in Spherical Coordinates

The E1 Laplace article already proved the mean-value theorem. What does this article add?

Three things the E1 proof cannot give. A second, independent proof route (direct sphere-averaging of the Coulomb potential) whose a<Ra<R branch is Newton's shell theorem — the E1 divergence-theorem route never touches that case. The quantitative deficit formula φˉ−φ(0)=R26∇2φ\bar\varphi-\varphi(0)=\tfrac{R^2}{6}\nabla^2\varphi, which turns the property into a measuring instrument and proves the converse (averaging behavior defines harmonicity). And the probabilistic reading that powers modern walk-on-spheres solvers. E1 also owns the corollaries — no interior extrema and Earnshaw — which we deliberately do not re-derive; uniqueness gets its own article next.

Why is the equality exact for large spheres? Intuitively far-away values shouldn't know about my point.

They "know" through the equation, which holds at every point between them and you. One clean way to see the exactness is Derivation A: for a single outside charge the average is a closed-form integral that comes out to precisely the center value, with no residue at any radius; a general harmonic function in the ball is a superposition of such exterior-charge potentials. Alternatively (E1's route): the average's derivative with respect to radius is the outward flux of ∇φ\nabla\varphi through the sphere, which vanishes shell by shell. Either way, "local balance everywhere" compounds into exact global accounting — rigidity, not coincidence.

What happens to the mean-value property if my averaging sphere encloses some charge?

The hypothesis fails and the conclusion changes in a precise, useful way. Each enclosed charge contributes its shell-theorem value q/4πε0Rq/4\pi\varepsilon_0R to the average — position-independent — while all exterior charge still contributes its center value. So Vˉ=Vext(center)+Qenc/4πε0R\bar V = V_{\text{ext}}(\text{center}) + Q_{\text{enc}}/4\pi\varepsilon_0R. For smoothly distributed charge, shrinking the sphere recovers the deficit formula −R2ρ/6ε0-R^2\rho/6\varepsilon_0. The failure mode is as informative as the theorem: comparing an average to a center value detects and weighs enclosed charge.

Is the mean-value property really equivalent to being harmonic, or just implied by it?

Fully equivalent, and Derivation B's Step 4 is the easy half of the proof: exact averaging at all small radii forces ∇2φ=0\nabla^2\varphi=0 point by point. (Koebe's 1906 theorem sharpens this: continuity plus the mean-value property implies smoothness and harmonicity — you don't even need to assume two derivatives exist.) The equivalence is why analysts often define harmonic functions by averaging, and why the discrete world transfers so cleanly: "equal to the neighbor average" is the grid-native form of the same definition.

Does the theorem hold in two dimensions and one dimension?

Yes, with the sphere demoted to match: in 2D the average runs over circles (and the deficit coefficient becomes R2/4R^2/4, since ⟨ninj⟩=12δij\langle n_i n_j\rangle = \tfrac12\delta_{ij} there); in 1D "the sphere about xx" is the two points x±Rx\pm R, and the property says φ(x)=12[φ(x+R)+φ(x−R)]\varphi(x) = \tfrac12[\varphi(x+R)+\varphi(x-R)] — which forces the straight lines that are 1D's only harmonic functions. The dimension changes the geometry and the constants, never the principle: value at center equals unweighted average over the surrounding "sphere."

How literally should I take the random-walk story? There are no walkers in electrostatics.

As mathematics, completely literally: Kakutani's theorem says the harmonic function with given boundary data equals the expected exit value of Brownian motion, and each walk-on-spheres jump is exactly equation (1) read as a probability statement. As physics, it is a reformulation, not a mechanism — nothing diffuses in a static field. The value of the reformulation is computational and conceptual: it explains the locality of influence (boundary regions a walker rarely reaches barely affect φ\varphi — they subtend little "harmonic measure") and it yields estimators for φ\varphi at a single point without solving anywhere else, something no deterministic method offers.

Why do relaxation methods converge to the right answer rather than drifting forever?

Because the update rule is the (discrete) mean-value property, and the property pins the solution rigidly. The grid solution — every node equal to its neighbor average, boundary nodes fixed — exists and is unique (a discrete maximum principle: the difference of two solutions is average-obeying with zero boundary values, and its extremes live on the boundary, so it vanishes). Each sweep is a contraction toward that fixed point, monotone in the right norm. The full algorithmic story — stencils, error orders, source terms, over-relaxation — lives in the two preceding articles; this article supplies the theorem that guarantees their target exists and is the only one.

Before this

Where this leads