Heat Equation Maximum Principle
Statement
Let satisfy the heat equation on the rectangle . The parabolic boundary consists of the bottom, left, and right edges:
Maximum Principle: If is continuous on and satisfies in the interior, then
The maximum is achieved on the parabolic boundary — not at a later time in the interior.
Consequence (uniqueness): Two solutions with the same boundary data must be identical.
Mathlib's PDE coverage is limited; we instead verify a discrete maximum principle for the explicit finite-difference scheme, which captures the same structure.
Visualization
1-D heat on , initial data , boundary .
Exact solution: .
The maximum over all at each time :
| Achieved at | ||
|---|---|---|
| (max) | ||
The global maximum of occurs at — on the parabolic boundary.
Finite-difference scheme (explicit, step ratio ):
When , all three coefficients are non-negative and sum to : each new value is a convex combination of neighbors, so the maximum cannot increase.
Proof Sketch
- Strict version first. Suppose and suppose achieved an interior maximum at with .
- Calculus conditions. At an interior maximum: (or if on top boundary), , .
- Contradiction. From the equation, . But if , one can show is constant on a strip, propagating backward to the parabolic boundary — contradicting the assumption that the max is interior and strictly larger.
- Convex combination (discrete). The explicit scheme with writes as a convex combination (all weights , sum to 1) of time- values, so .
Connections
The parabolic maximum principle is the PDE analogue of the classical Mean Value TheoremMean Value TheoremThere exists a point where the instantaneous rate of change equals the average rate of changeRead more → (an interior extremum forces a zero derivative); the discrete version is a special case of Monotone Convergence TheoremMonotone Convergence TheoremA bounded monotone sequence of reals always converges — the supremum is the limitRead more → applied to the spatial maximum. The uniqueness corollary parallels the Picard–Lindelöf TheoremPicard–Lindelöf TheoremA Lipschitz right-hand side guarantees a unique local solution to any ODE initial value problem.Read more → uniqueness for ODEs.
Lean4 Proof
/-!
We prove the discrete maximum principle for the 1-D heat finite-difference
scheme. Given step ratio r ∈ [0, 1/2], the update
u_new j = r * u_old (j-1) + (1 - 2r) * u_old j + r * u_old (j+1)
satisfies max(u_new) ≤ max(u_old).
We verify the key lemma: if weights w₁ + w₂ + w₃ = 1 and each wᵢ ≥ 0,
then w₁*a + w₂*b + w₃*c ≤ max {a, b, c}.
-/
/-- A convex combination of three reals does not exceed their maximum. -/
theorem convex_combo_le_max (a b c w₁ w₂ w₃ : ℝ)
(hw1 : 0 ≤ w₁) (hw2 : 0 ≤ w₂) (hw3 : 0 ≤ w₃)
(hsum : w₁ + w₂ + w₃ = 1) :
w₁ * a + w₂ * b + w₃ * c ≤ max a (max b c) := by
have hM : a ≤ max a (max b c) := le_max_left _ _
have hM2 : b ≤ max a (max b c) := le_trans (le_max_left _ _) (le_max_right _ _)
have hM3 : c ≤ max a (max b c) := le_trans (le_max_right _ _) (le_max_right _ _)
calc w₁ * a + w₂ * b + w₃ * c
≤ w₁ * max a (max b c) + w₂ * max a (max b c) + w₃ * max a (max b c) := by
gcongr
_ = (w₁ + w₂ + w₃) * max a (max b c) := by ring
_ = max a (max b c) := by rw [hsum, one_mul]
/-- For r ∈ [0, 1/2], the heat scheme weights r, 1-2r, r are non-negative. -/
theorem heat_scheme_weights_nonneg (r : ℝ) (hr0 : 0 ≤ r) (hr1 : r ≤ 1/2) :
0 ≤ r ∧ 0 ≤ 1 - 2 * r ∧ 0 ≤ r := by
exact ⟨hr0, by linarith, hr0⟩Referenced by
- Laplace's Equation Mean Value PropertyDifferential Equations