Partial Differential Equations

Harnack's Inequality: Positive Solutions Can't Vary Too Wildly

A positive harmonic function on a ball can never be 1000× brighter at one interior point than another — the ratio between its maximum and minimum on any compact interior region is bounded by a constant that doesn't depend on the function at all, only on the geometry. This is Harnack's inequality: for a nonnegative harmonic function u on a domain Ω ⊂ ℝⁿ and any compact K ⋐ Ω, there is a constant C = C(n, K, Ω) with sup_K u ≤ C · inf_K u.

The single constant C tames an entire infinite-dimensional family of solutions simultaneously. This uniformity is what makes Harnack the workhorse behind Liouville theorems, the regularity theory of De Giorgi–Nash–Moser, and comparison estimates on manifolds — positivity plus a PDE forces a rigid quantitative control on oscillation.

  • FieldPartial differential equations / potential theory
  • First provedC. G. A. Harnack, 1887 (harmonic functions in ℝ²)
  • Key hypothesisSolution is nonnegative (u ≥ 0) on the domain
  • Statementsup_K u ≤ C·inf_K u, C = C(n, K, Ω) independent of u
  • Proof techniqueMean-value property (classical); Moser iteration (divergence-form elliptic)
  • GeneralizesUniformly elliptic Lu = 0 (Moser 1961), parabolic (Moser 1964), manifolds (Li–Yau 1986)

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

What the inequality claims

Let Ω ⊂ ℝⁿ be open and let u ≥ 0 be harmonic on Ω, meaning Δu = 0 (equivalently ∑ᵢ ∂²u/∂xᵢ² = 0). The classical Harnack inequality says: for every compact set K ⋐ Ω (contained with positive distance to ∂Ω), there is a constant C = C(n, K, Ω), independent of u, such that

sup_{x∈K} u(x) ≤ C · inf_{x∈K} u(x).

The cleanest special case is a ball. If u ≥ 0 is harmonic on the ball B(x₀, R) ⊂ ℝⁿ, then for any x with |x − x₀| = r < R,

Rⁿ⁻² · (R−r)/(R+r)ⁿ⁻¹ · u(x₀) ≤ u(x) ≤ Rⁿ⁻² · (R+r)/(R−r)ⁿ⁻¹ · u(x₀).

Two features are essential and easy to miss. First, u must be nonnegative throughout Ω — the bound is false for sign-changing harmonic functions. Second, C is uniform: the same constant controls every nonnegative harmonic function on Ω at once. That single quantifier ordering — one C for all u — is the entire power of the theorem.

The picture: positivity is a straitjacket

Harmonic functions satisfy the mean-value property: u(x) equals its average over any sphere or ball centered at x. So the value at a point is a democratic vote of surrounding values. Now impose u ≥ 0. If u were tiny at one interior point p but huge at a nearby point q, the average over a ball around q would have to be huge — yet that ball overlaps the region near p where u is small, and no negative values are available to compensate. Positivity forbids the cancellation that would let a function dip low and spike high in a small neighborhood.

The vivid image: think of u as brightness of a glowing medium in equilibrium (Δu = 0 is steady-state heat/electrostatics). Harnack says a positive glow can't have a pinprick-dark spot right next to a blazing one. The medium's equilibrium smooths ratios, not just differences. As you approach the boundary ∂Ω the constant C blows up — near the edge, extra freedom (Poisson kernel concentration) returns, which is exactly why K must stay compactly inside.

Key idea of the proof

Classical (mean-value) proof. Fix x, y in a ball B(x₀,R) and use the mean-value property over balls. If B(x, r₁) ⊂ B(y, r₂) ⊂ Ω, then since u ≥ 0, u(x) = ⨍_{B(x,r₁)} u ≤ (|B(y,r₂)|/|B(x,r₁)|) ⨍_{B(y,r₂)} u = (r₂/r₁)ⁿ u(y). The nonnegativity lets us enlarge the averaging ball from x's ball to y's ball and only gain — dropping no mass. Chaining such comparisons across a compact K (a covering/connectedness argument) yields sup_K u ≤ C inf_K u with C depending on how many overlapping balls tile K.

Divergence-form proof (Moser, 1961). For Lu = div(A(x)∇u) = 0 with only measurable, uniformly elliptic coefficients (λI ≤ A ≤ ΛI), there is no mean-value property. Moser's insight: test the weak equation with powers uᵖ, derive reverse-Hölder / energy estimates, and run Moser iteration to bound sup u ≤ C(‖u‖_{Lᵖ}) and (via powers p → 0 and the John–Nirenberg lemma controlling log u ∈ BMO) inf u ≥ c(‖u‖_{Lᵖ}). Comparing gives the Harnack estimate. Positivity enters by allowing the substitution v = log u and negative test powers.

Worked example and the Liouville payoff

Example. Let u ≥ 0 be harmonic on all of ℝⁿ. Apply the ball form on B(0,R) at the center: for |x| = r, u(x) ≤ Rⁿ⁻²·(R+r)/(R−r)ⁿ⁻¹·u(0). Now fix x and let R → ∞. Every factor tends to 1, so u(x) ≤ u(0). The same argument with x and 0 swapped gives u(0) ≤ u(x). Hence u ≡ u(0): every nonnegative harmonic function on ℝⁿ is constant — the Liouville theorem, obtained for free from the scaling of the Harnack constant. (The usual Liouville theorem assumes boundedness; Harnack strengthens it to one-sided boundedness.)

Simplest concrete check. On ℝ, harmonic means u″ = 0, so u(x) = ax + b. Nonnegativity on all of ℝ forces a = 0 (a line eventually goes negative), giving u = b constant — consistent. On a bounded interval [−1,1] a positive line like u(x) = x + 2 satisfies Harnack with sup/inf = 3/1 = 3, a finite ratio, exactly as promised.

Why the hypotheses matter — and what breaks

Positivity is not optional. Drop u ≥ 0 and the inequality collapses. On ℝ², u(x,y) = x is harmonic and vanishes on the y-axis while being positive to the right; sup_K u / inf_K u = +∞ for any K straddling the axis where inf ≤ 0. Even keeping u > 0 but only on part of the domain fails — you need nonnegativity on all of Ω, not just on K, because the averaging balls reach outside K.

Compact containment K ⋐ Ω is essential. The half-space harmonic function u(x,y) = y > 0 on the upper half-plane has inf → 0 as you approach the boundary while sup stays positive, so no finite C works up to ∂Ω. That is why C = C(n,K,Ω) degenerates as dist(K, ∂Ω) → 0.

Ellipticity / connectedness. For general Lu = 0, the ellipticity ratio Λ/λ must be finite (Moser's C depends on it); degenerate coefficients can break it. And Ω must be connected — on two disjoint balls u can be 1 on one and 10⁶ on the other. Connections: Harnack is the engine of the De Giorgi–Nash–Moser theorem (Hölder continuity of solutions with merely measurable coefficients) and, via Ricci lower bounds, of geometric comparison theory.

Applications and significance

Harnack's inequality is a foundational tool, not just a curiosity. (1) Regularity. Oscillation control osc_K u ≤ (1 − 1/C)·osc_{K'} u iterates across dyadic scales to give Hölder continuity — this is the heart of the De Giorgi (1957) and Nash (1958) solutions of Hilbert's 19th problem, later unified by Moser. Merely measurable coefficients still yield C^{0,α} solutions, purely because positive solutions can't oscillate too fast.

(2) Liouville and rigidity. As shown, Harnack instantly yields Liouville theorems on ℝⁿ and, via Yau (1975) and Li–Yau (1986) gradient estimates, on manifolds with Ricci ≥ −K, controlling positive solutions of Δu = 0 and the heat equation. (3) Probability. Harmonic functions are expectations of Brownian motion; the parabolic Harnack inequality is equivalent to two-sided Gaussian heat-kernel bounds and to the conjunction of a Poincaré inequality with volume doubling (Grigor'yan, Saloff-Coste). (4) Free boundaries and geometric flows use Harnack to compare solutions and extract convergence. Wherever positivity meets a second-order equation, Harnack quantifies how gently the solution must vary.

Harnack's inequality across settings: hypotheses, the operator, and who proved it
SettingEquation / operatorKey hypothesesConstant C depends onFirst proof
Harmonic, ℝⁿΔu = 0u ≥ 0, domain Ωn and geometry (K, Ω)Harnack 1887 (n=2); classical for n≥2
Divergence-form ellipticdiv(A(x)∇u) = 0u ≥ 0, A measurable, uniformly elliptic λI ≤ A ≤ ΛIn, ellipticity ratio Λ/λ, geometryMoser 1961
Parabolic∂ₜu = div(A(x,t)∇u)u ≥ 0, uniform parabolicityn, ellipticity ratio, time-lag between sup/infMoser 1964
Riemannian manifoldΔ_g u = 0u ≥ 0, Ric ≥ −K (lower Ricci bound)n, K, radius RYau 1975 / Li–Yau 1986
Non-exampleΔu = 0 with sign changeu NOT ≥ 0— (inequality fails)Counterexample (see hypotheses)

Frequently asked questions

Why is nonnegativity (u ≥ 0) essential — can't we bound oscillation of any harmonic function?

No. The whole mechanism is that positivity forbids cancellation in the mean-value average. The function u(x,y) = x on ℝ² is perfectly harmonic yet has sup_K u / inf_K u = ∞ across the line x = 0 where it changes sign. Without a sign constraint, harmonic functions can be arbitrarily large positive and negative on a compact set, so no ratio bound exists. Harnack controls ratios, and ratios only make sense for one-signed functions.

Why must K be compactly contained (K ⋐ Ω) rather than just K ⊂ Ω?

Because the constant C blows up as K approaches the boundary ∂Ω. On the upper half-plane, u(x,y) = y is positive and harmonic, but its infimum tends to 0 near the boundary y = 0 while the supremum stays positive, so sup/inf → ∞. Near ∂Ω the Poisson kernel can concentrate mass, giving harmonic functions extra freedom to spike. Compact containment guarantees a positive distance dist(K, ∂Ω) > 0, which fixes a finite C.

How does Moser's proof work without a mean-value property?

Moser (1961) treats weak solutions of div(A∇u) = 0 with only measurable, uniformly elliptic A. He tests the equation with powers uᵖ to get energy/reverse-Hölder estimates, then iterates over shrinking balls (Moser iteration) to bound sup u by an Lᵖ norm. For the lower bound he uses that log u lies in BMO (via a Caccioppoli estimate) and applies the John–Nirenberg inequality. Comparing the sup and inf estimates yields the Harnack inequality; the constant depends on n and the ellipticity ratio Λ/λ.

What is the difference between the elliptic and parabolic Harnack inequalities?

The elliptic version compares sup and inf at the same 'time' over a spatial region. The parabolic version (Moser 1964), for ∂ₜu = div(A∇u), must include a time lag: the supremum over an earlier space-time cylinder is bounded by the infimum over a later one, sup_{Q⁻} u ≤ C inf_{Q⁺} u with Q⁺ strictly later than Q⁻. Heat needs time to propagate, so information about a spike takes time to force a lower bound elsewhere — you cannot compare simultaneous values.

Does Harnack immediately give the Liouville theorem?

Yes, and a stronger one. Apply the ball form to u ≥ 0 harmonic on ℝⁿ and let the radius R → ∞; all the geometric factors tend to 1, forcing u(x) = u(0) for every x, so u is constant. This proves that every one-sided-bounded (in particular nonnegative) harmonic function on ℝⁿ is constant, which is stronger than the classical Liouville theorem requiring full boundedness.

How does Harnack relate to the De Giorgi–Nash–Moser regularity theory?

It is the key quantitative step. From the Harnack inequality one derives an oscillation-decay estimate: on a ball of half the radius, the oscillation of u shrinks by a fixed factor (1 − 1/C). Iterating this across dyadic scales gives a modulus of continuity of Hölder type, so u ∈ C^{0,α}. This is exactly what proves solutions of divergence-form equations with merely measurable coefficients are Hölder continuous — the resolution of Hilbert's 19th problem by De Giorgi (1957) and Nash (1958), streamlined by Moser.