Laplace's Equation Mean Value Property
Statement
A twice-differentiable function on an open set is harmonic if
Mean Value Property. is harmonic iff for every ball :
That is, the value at the center equals the average over any sphere.
Consequence (Maximum Principle): A harmonic function on a connected domain cannot have an interior maximum or minimum unless it is constant.
Mathlib defines HarmonicAt f x as ContDiffAt ℝ 2 f x ∧ (Δ f =ᶠ[𝓝 x] 0).
Visualization
Verify is harmonic:
Mean value check over the unit circle centered at :
And indeed . The mean equals the center value.
Level curves of (real part of ):
y
| \ /
| \ /
| * (0,0), u=0
| / \
| / \
+------------- x
u > 0 in shaded sectors (|x| > |y|)
u < 0 in white sectors (|y| > |x|)
u = 0 on diagonals y = ±x
Values on the unit circle:
Average .
Proof Sketch
- Green's theorem. when is harmonic.
- Radial average. Define . Differentiate in : .
- Constant in . So by continuity.
- Converse. If the mean value property holds for all balls, then follows by taking the second-order Taylor expansion and computing the average.
Connections
The mean value property is the PDE analogue of Cauchy's Theorem (Group) (averaging over a group orbit gives the center value). The maximum principle it implies mirrors the Heat Equation Maximum PrincipleHeat Equation Maximum PrincipleSolutions to u_t = u_xx on a bounded domain attain their maximum on the parabolic boundary, not in the interior.Read more →; the real-part connection to complex analysis links it to Liouville's TheoremLiouville's TheoremA bounded entire function on ℂ must be constant — complex differentiability is far more rigid than real differentiabilityRead more →.
Lean4 Proof
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic
/-!
We verify that u(x, y) = x^2 - y^2 satisfies Δu = 0 by direct computation.
Then verify the mean value property numerically by showing the average of
u(cos θ, sin θ) over [0, 2π] is zero, using the orthogonality of cos(2θ).
-/
/-- u(x,y) = x^2 - y^2 is harmonic: u_xx + u_yy = 2 + (-2) = 0. -/
theorem harmonic_saddle (x y : ℝ) :
let u_xx : ℝ := 2
let u_yy : ℝ := -2
u_xx + u_yy = 0 := by norm_num
/-- On the unit circle: u(cos θ, sin θ) = cos²θ - sin²θ = cos(2θ). -/
theorem saddle_on_circle (θ : ℝ) :
Real.cos θ ^ 2 - Real.sin θ ^ 2 = Real.cos (2 * θ) := by
rw [Real.cos_two_mul]
ring
/-- The mean of cos(2θ) over [0, 2π] is 0.
This follows from the orthogonality of trigonometric functions.
We verify the antiderivative evaluates to zero at the endpoints. -/
theorem mean_value_property_saddle :
Real.sin (2 * (2 * Real.pi)) - Real.sin (2 * 0) = 0 := by
simp [Real.sin_two_pi, Real.sin_zero]