Laplace's Equation and Harmonic Functions

What temperature distribution does a metal plate settle into? This happens once you stop waiting for it to change. This question is the search for equilibrium. It seeks the state left over after all transients have died away. It leads directly to one of the most important equations in mathematics: Laplace's equation. Solutions to this equation are called harmonic functions. They describe steady-state heat flow, electrostatic potentials, and incompressible irrotational fluid flow. They also describe the real and imaginary parts of every complex-analytic function. Understanding them opens the door to potential theory. This subject threads through physics, complex analysis, probability, and geometry. The big idea is deceptively simple. Laplace's equation asks a function to have "no wrinkles." Its value at any point must equal the average of its values on any surrounding sphere. This averaging property is proved rigorously below. It is the source of nearly every deep fact about harmonic functions. They cannot have interior local maxima. They are automatically smooth. They are determined completely by their boundary values. This property converts a differential statement into a beautifully geometric, almost mechanical, one. This article builds the theory from the ground up. We define the Laplacian and harmonic functions precisely. We connect them to the classification of second-order linear PDEs. We then prove the Mean Value Theorem for harmonic functions — the central theorem here. From it we derive the strong maximum principle. We also derive a uniqueness result for the Dirichlet problem. All proofs are complete and self-contained. Worked examples cover the two-dimensional Laplace equation on a disk. One example uses an explicitly non-symmetric boundary datum. Another is a genuinely three-dimensional example arising from electrostatics. By the end you will be able to state precisely what it means for a function to be harmonic. You will prove the mean value property from first principles using the divergence theorem. You will deduce the maximum principle from it. You will also see why these results are the seed. From them grow the general Maximum Principle for Parabolic and Elliptic Equations and the theory of Green's Functions for Boundary Value Problems.

Key takeaways
  • Laplace's equation is Δu=0\Delta u = 0; solutions are called harmonic functions.
  • It is the steady-state (time-independent) limit of the heat equation and the source-free case of Poisson's equation.
  • The Mean Value Property: a harmonic function's value at a point equals its average over any centered sphere or ball.
  • This property forces the Maximum Principle: a nonconstant harmonic function on a bounded domain attains no interior max or min.
  • The maximum principle gives uniqueness for the Dirichlet problem on bounded domains, with continuous boundary data.
  • Harmonic functions model steady heat, electrostatic potential, and incompressible irrotational flow.
  • Key idea: harmonicity is exactly the property of being "locally an average," and this single geometric fact generates the entire theory.

Where this lives today

Harmonic functions and Laplace's equation are foundational across mathematics and its applications. In complex analysis, the real and imaginary parts of any holomorphic function are harmonic (a consequence of the Cauchy–Riemann equations), linking Laplace's equation to conformal mapping and the theory of analytic functions. In electromagnetism, electrostatic potentials in charge-free regions and magnetostatic scalar potentials both solve Laplace's equation, with boundary conditions on conductors set by the physical geometry. In fluid dynamics, the velocity potential of an incompressible, irrotational flow is harmonic, underlying classical aerodynamic theory and the study of ideal fluids. In probability, harmonic functions correspond exactly to the values left invariant, in expectation, by Brownian motion — the mean value property is the continuous analogue of a martingale property, connecting PDE theory to stochastic processes. In numerical analysis and engineering, finite-difference and finite-element methods for Laplace's and Poisson's equations underlie simulations of heat conduction, electrostatic fields, and structural stress. In computer graphics and geometry processing, discrete harmonic functions and the graph Laplacian are used for mesh smoothing, image inpainting, and manifold learning. This chain of ideas continues directly into the Maximum Principle for Parabolic and Elliptic Equations, which generalizes the argument given here to time-dependent and more general elliptic operators, and into Green's Functions for Boundary Value Problems, which builds explicit solution formulas for the Dirichlet and Neumann problems atop the uniqueness result proved above.

Ask the tutor: How does the mean value property generalize to prove existence of solutions via Perron's method, and how does that connect to Green's functions?

DefinitionLaplacian, Laplace's Equation, Harmonic Function

Let Ω⊆Rn\Omega \subseteq \mathbb{R}^n (n≥2n \geq 2) be an open set, and let u:Ω→Ru : \Omega \to \mathbb{R} be a function of class C2(Ω)C^2(\Omega) (twice continuously differentiable). The Laplacian of uu is the second-order differential operator

Δu  =  ∑i=1n∂2u∂xi2.\Delta u \;=\; \sum_{i=1}^{n} \frac{\partial^2 u}{\partial x_i^2}.

In two variables, Δu=uxx+uyy\Delta u = u_{xx} + u_{yy}; in three, Δu=uxx+uyy+uzz\Delta u = u_{xx} + u_{yy} + u_{zz}.

Laplace's equation is the PDE

Δu=0on Ω.\Delta u = 0 \quad \text{on } \Omega.

A function u∈C2(Ω)u \in C^2(\Omega) satisfying Δu=0\Delta u = 0 everywhere on Ω\Omega is called harmonic on Ω\Omega. The related inhomogeneous equation Δu=f\Delta u = f for a given function ff is Poisson's equation; Laplace's equation is the special case f≡0f \equiv 0, corresponding physically to the absence of internal sources or sinks. In the Classification of Second-Order Linear PDEs, Laplace's equation is the archetypal elliptic equation: its principal symbol ∑ξi2\sum \xi_i^2 vanishes only at ξ=0\xi = 0, so it has no real characteristic directions. This is why, unlike the wave or heat equations, Laplace's equation carries no notion of time evolution — it describes equilibrium, not propagation.

Intuition

Imagine a thin, uniform metal plate whose edge is held at fixed but spatially varying temperatures, and wait until the interior temperature stops changing. The resulting steady-state temperature u(x,y)u(x,y) satisfies the two-dimensional heat equation ut=kΔuu_t = k\Delta u with ut=0u_t = 0, i.e. exactly Δu=0\Delta u = 0. The condition Δu=0\Delta u = 0 says, pointwise, that uxx=−uyyu_{xx} = -u_{yy}: any concavity in the xx-direction is exactly compensated by convexity in the yy-direction. There is no room left for the function to have an interior "bump" — a local max would require uxx≤0u_{xx} \le 0 and uyy≤0u_{yy}\le 0 simultaneously (with at least one strict), forcing Δu<0\Delta u < 0, contradicting harmonicity. This is the seed of the maximum principle, made rigorous below. A second, more geometric way to see it: harmonicity means the value at the center of any small ball equals the average of the values on its boundary sphere. A harmonic function has no preferred direction to "lean" — every direction of averaging gives the same answer as being at the center. Electrostatic potentials in charge-free regions, and steady fluid-flow potentials in source-free, irrotational, incompressible flow, both obey this same averaging law, which is why Laplace's equation appears across so many branches of physics.

Figure
Harmonic function has no interior local max: concavity in xx is balanced by convexity in yy
x y u along x (u_xx>0) u along y (u_yy<0) saddle point: Δu = u_xx+u_yy = 0
TheoremMean Value Property and the Maximum Principle for Harmonic Functions

Let Ω⊆Rn\Omega \subseteq \mathbb{R}^n be open, let u∈C2(Ω)u \in C^2(\Omega) be harmonic on Ω\Omega, and let B(x0,r)={x:∣x−x0∣<r}B(x_0,r) = \{x : |x-x_0| < r\} be an open ball with closure B(x0,r)‾⊂Ω\overline{B(x_0,r)} \subset \Omega.

(A) Mean Value Property. Then

u(x0)  =  1∣∂B(x0,r)∣∫∂B(x0,r)u dS  =  1∣B(x0,r)∣∫B(x0,r)u dV,u(x_0) \;=\; \frac{1}{|\partial B(x_0,r)|}\int_{\partial B(x_0,r)} u \, dS \;=\; \frac{1}{|B(x_0,r)|}\int_{B(x_0,r)} u \, dV,

where ∣∂B(x0,r)∣|\partial B(x_0,r)| and ∣B(x0,r)∣|B(x_0,r)| denote surface area and volume, respectively.

(B) Strong Maximum (and Minimum) Principle. Suppose in addition that Ω\Omega is open, bounded, and connected, that u∈C2(Ω)∩C(Ω‾)u \in C^2(\Omega) \cap C(\overline\Omega) is harmonic on Ω\Omega, and that uu attains its maximum over Ω‾\overline\Omega at some interior point x0∈Ωx_0 \in \Omega. Then uu is constant on Ω\Omega. The same conclusion holds for the minimum.

(C) Corollary — Comparison of Boundary Max. Under the hypotheses of (B), if uu is not constant, then

max⁡Ω‾u=max⁡∂Ωu,min⁡Ω‾u=min⁡∂Ωu.\max_{\overline\Omega} u = \max_{\partial \Omega} u, \qquad \min_{\overline\Omega} u = \min_{\partial\Omega} u.

(D) Uniqueness for the Dirichlet Problem. Let Ω\Omega be bounded and connected, and let g∈C(∂Ω)g \in C(\partial\Omega). There is at most one function u∈C2(Ω)∩C(Ω‾)u \in C^2(\Omega)\cap C(\overline\Omega) solving

Δu=0 in Ω,u=g on ∂Ω.\Delta u = 0 \text{ in } \Omega, \qquad u = g \text{ on } \partial\Omega.
Proof

We prove (A), (B), (C), (D) in order; each uses only the preceding parts and standard vector calculus (the divergence theorem), so the chain is non-circular.

Proof of (A), the sphere mean value identity. Fix x0∈Ωx_0\in\Omega and R>0R>0 with B(x0,R)‾⊂Ω\overline{B(x_0,R)}\subset\Omega. For 0<r≤R0<r\le R define

ϕ(r)=1∣∂B(x0,r)∣∫∂B(x0,r)u dS=1∣∂B(0,1)∣∫∣ω∣=1u(x0+rω) dS(ω),\phi(r) = \frac{1}{|\partial B(x_0,r)|}\int_{\partial B(x_0,r)} u\,dS = \frac{1}{|\partial B(0,1)|}\int_{|\omega|=1} u(x_0+r\omega)\,dS(\omega),

using the substitution x=x0+rωx = x_0+r\omega to fix the domain of integration to the unit sphere; this is legitimate since u∈C2u\in C^2 makes the integrand smooth in (r,ω)(r,\omega). Differentiate under the integral sign (justified since the integrand and its rr-derivative are continuous on the compact set [ε,R]×Sn−1[\varepsilon,R]\times S^{n-1} for any ε>0\varepsilon>0):

ϕ′(r)=1∣∂B(0,1)∣∫∣ω∣=1∇u(x0+rω)⋅ω dS(ω)=1∣∂B(x0,r)∣∫∂B(x0,r)∂u∂ν dS,\phi'(r) = \frac{1}{|\partial B(0,1)|}\int_{|\omega|=1} \nabla u(x_0+r\omega)\cdot \omega \, dS(\omega) = \frac{1}{|\partial B(x_0,r)|}\int_{\partial B(x_0,r)} \frac{\partial u}{\partial \nu}\, dS,

where ν\nu is the outward unit normal on ∂B(x0,r)\partial B(x_0,r) (since ω\omega is precisely that outward normal, and ∇u⋅ω=∂u/∂ν\nabla u \cdot \omega = \partial u/\partial\nu). By the divergence theorem applied to the vector field ∇u\nabla u on B(x0,r)B(x_0,r),

∫∂B(x0,r)∂u∂ν dS=∫B(x0,r)div⁡(∇u) dV=∫B(x0,r)Δu dV=0,\int_{\partial B(x_0,r)} \frac{\partial u}{\partial\nu}\,dS = \int_{B(x_0,r)} \operatorname{div}(\nabla u)\, dV = \int_{B(x_0,r)} \Delta u \, dV = 0,

since uu is harmonic. Hence ϕ′(r)=0\phi'(r) = 0 for every r∈(0,R]r\in(0,R], so ϕ\phi is constant on (0,R](0,R]. Since uu is continuous at x0x_0,

lim⁡r→0+ϕ(r)=lim⁡r→0+1∣∂B(0,1)∣∫∣ω∣=1u(x0+rω) dS(ω)=u(x0),\lim_{r\to 0^+} \phi(r) = \lim_{r \to 0^+} \frac{1}{|\partial B(0,1)|}\int_{|\omega|=1} u(x_0+r\omega)\,dS(\omega) = u(x_0),

by uniform continuity of uu on a compact neighborhood of x0x_0 (the integrand converges uniformly to the constant u(x0)u(x_0) as r→0+r \to 0^+). Combining constancy of ϕ\phi with this limit gives ϕ(r)=u(x0)\phi(r) = u(x_0) for all r∈(0,R]r \in (0,R]; taking rr up to RR (and by continuity, at r=Rr=R too) proves the sphere mean value identity for every r≤Rr \le R, in particular at r=Rr=R with B(x0,R)‾⊂Ω\overline{B(x_0,R)}\subset \Omega. For the solid ball average, integrate the sphere identity in polar-type coordinates:

∫B(x0,R)u dV=∫0R(∫∂B(x0,ρ)u dS)dρ=∫0Ru(x0) ∣∂B(x0,ρ)∣ dρ=u(x0)∣B(x0,R)∣,\int_{B(x_0,R)} u\, dV = \int_0^R \left(\int_{\partial B(x_0,\rho)} u \, dS\right) d\rho = \int_0^R u(x_0)\, |\partial B(x_0,\rho)|\, d\rho = u(x_0) |B(x_0,R)|,

using ϕ(ρ)=u(x0)\phi(\rho) = u(x_0) for every ρ∈(0,R]\rho \in (0,R] and the standard formula ∣B(x0,R)∣=∫0R∣∂B(x0,ρ)∣ dρ|B(x_0,R)| = \int_0^R |\partial B(x_0,\rho)|\,d\rho. Dividing by ∣B(x0,R)∣|B(x_0,R)| gives the solid mean value identity. This proves (A).

Proof of (B), the strong maximum principle. Let M=max⁡Ω‾uM = \max_{\overline\Omega} u, attained at x0∈Ωx_0 \in \Omega by hypothesis (recall Ω‾\overline\Omega is compact since Ω\Omega is bounded, and uu is continuous there, so the maximum is attained somewhere in Ω‾\overline\Omega; here we are given it is attained at an interior point). Define

S={x∈Ω:u(x)=M}.S = \{x \in \Omega : u(x) = M\}.

SS is nonempty (it contains x0x_0) and relatively closed in Ω\Omega (as the preimage of the closed set {M}\{M\} under the continuous function uu). We show SS is also open in Ω\Omega. Let z∈Sz\in S. Choose r>0r>0 small enough that B(z,r)‾⊂Ω\overline{B(z,r)}\subset\Omega (possible since Ω\Omega is open). By part (A),

M=u(z)=1∣B(z,r)∣∫B(z,r)u dV.M = u(z) = \frac{1}{|B(z,r)|}\int_{B(z,r)} u\, dV.

Since u≤Mu \le M everywhere on Ω‾⊃B(z,r)\overline\Omega \supset B(z,r), the function M−u≥0M - u \ge 0 on B(z,r)B(z,r), and

∫B(z,r)(M−u) dV=∣B(z,r)∣ M−∫B(z,r)u dV=∣B(z,r)∣M−∣B(z,r)∣M=0.\int_{B(z,r)} (M - u) \, dV = |B(z,r)|\, M - \int_{B(z,r)} u\, dV = |B(z,r)|M - |B(z,r)|M = 0.

A nonnegative continuous function with zero integral over a set of positive measure must vanish identically on that set (if M−u(y)>0M-u(y)>0 at some point yy, continuity gives M−u>c>0M-u>c>0 on a small ball around yy, forcing the integral to be strictly positive — a contradiction). Hence u≡Mu \equiv M on B(z,r)B(z,r), so B(z,r)⊂SB(z,r) \subset S. This shows SS is open in Ω\Omega. Thus SS is a nonempty subset of Ω\Omega that is both open and closed in the relative topology of Ω\Omega. Since Ω\Omega is connected, the only such subsets are ∅\emptyset and Ω\Omega itself; as S≠∅S \ne \emptyset, we conclude S=ΩS = \Omega, i.e. u≡Mu \equiv M on Ω\Omega. This proves the maximum case; the minimum case follows by applying the maximum case to −u-u, which is harmonic since Δ(−u)=−Δu=0\Delta(-u) = -\Delta u = 0.

Proof of (C). If uu is nonconstant, part (B) (contrapositive) shows uu cannot attain its maximum over Ω‾\overline\Omega at an interior point of Ω\Omega; since Ω‾=Ω∪∂Ω\overline\Omega = \Omega \cup \partial\Omega is compact and uu continuous, the maximum is attained somewhere on Ω‾\overline\Omega, hence necessarily on ∂Ω\partial\Omega. Thus max⁡Ω‾u=max⁡∂Ωu\max_{\overline\Omega} u = \max_{\partial\Omega} u. The minimum statement follows identically using the minimum case of (B).

Proof of (D), uniqueness. Suppose u1,u2∈C2(Ω)∩C(Ω‾)u_1, u_2 \in C^2(\Omega)\cap C(\overline\Omega) both solve Δu=0\Delta u = 0 in Ω\Omega with u=gu=g on ∂Ω\partial\Omega. Let w=u1−u2w = u_1 - u_2. Since the Laplacian is linear, Δw=Δu1−Δu2=0\Delta w = \Delta u_1 - \Delta u_2 = 0 in Ω\Omega, so ww is harmonic; also w∈C2(Ω)∩C(Ω‾)w \in C^2(\Omega)\cap C(\overline\Omega) and w=0w = 0 on ∂Ω\partial\Omega. If ww is constant on Ω\Omega, continuity onto ∂Ω\partial\Omega (where w=0w=0) forces that constant to be 00, so w≡0w\equiv 0 and u1=u2u_1 = u_2. If ww is not constant, part (C) gives

max⁡Ω‾w=max⁡∂Ωw=0,min⁡Ω‾w=min⁡∂Ωw=0,\max_{\overline\Omega} w = \max_{\partial\Omega} w = 0, \qquad \min_{\overline\Omega} w = \min_{\partial\Omega} w = 0,

so 0≤w≤00 \le w \le 0 everywhere on Ω‾\overline\Omega, forcing w≡0w\equiv 0 — contradicting the assumption that ww is nonconstant. Hence ww must be constant, and by the previous paragraph w≡0w \equiv 0, i.e. u1=u2u_1 = u_2 on Ω‾\overline\Omega. ■\blacksquare

∎

Worked examples

Example 1: Dirichlet problem on a disk with asymmetric boundary data. Solve Δu=0\Delta u = 0 on the open unit disk Ω={(x,y):x2+y2<1}\Omega = \{(x,y): x^2+y^2<1\}, with boundary condition, in polar coordinates (r,θ)(r,\theta),

u(1,θ)=3+5cos⁡θ−2sin⁡(2θ).u(1,\theta) = 3 + 5\cos\theta - 2\sin(2\theta).

In polar coordinates the Laplacian is

Δu=urr+1rur+1r2uθθ.\Delta u = u_{rr} + \frac1r u_r + \frac{1}{r^2} u_{\theta\theta}.

Separation of variables u=R(r)Θ(θ)u = R(r)\Theta(\theta) with Θ\Theta periodic of period 2π2\pi gives the standard family of bounded-at-the-origin solutions

un(r,θ)=rn(ancos⁡nθ+bnsin⁡nθ),n=0,1,2,…u_n(r,\theta) = r^{n}(a_n \cos n\theta + b_n \sin n\theta), \quad n = 0,1,2,\dots

each individually harmonic (direct substitution: Δ(rncos⁡nθ)=n(n−1)rn−2cos⁡nθ+nrn−2cos⁡nθ−n2rn−2cos⁡nθ=0\Delta(r^n \cos n\theta) = n(n-1)r^{n-2}\cos n\theta + n r^{n-2}\cos n\theta - n^2 r^{n-2}\cos n\theta = 0, and similarly for sin⁡nθ\sin n\theta). By linearity of Δ\Delta, any finite sum of such terms is harmonic. Match the boundary data directly, since it is already a finite trigonometric sum:

u(1,θ)=3⋅1+5cos⁡θ⋅1−2sin⁡2θ⋅1.u(1,\theta) = 3\cdot 1 + 5\cos\theta \cdot 1 - 2\sin 2\theta \cdot 1.

This matches a0=3a_0 = 3 (n=0n=0 term), a1=5a_1 = 5 (n=1n=1 cosine term), b2=−2b_2 = -2 (n=2n=2 sine term), all other coefficients zero. Hence

u(r,θ)=3+5rcos⁡θ−2r2sin⁡2θ.u(r,\theta) = 3 + 5r\cos\theta - 2r^2 \sin 2\theta.

Check. In Cartesian coordinates, rcos⁡θ=xr\cos\theta = x and r2sin⁡2θ=2r2sin⁡θcos⁡θ=2xyr^2 \sin 2\theta = 2r^2\sin\theta\cos\theta = 2xy, so

u(x,y)=3+5x−4xy.u(x,y) = 3 + 5x - 4xy.

Direct differentiation: ux=5−4yu_x = 5-4y, uxx=0u_{xx}=0; uy=−4xu_y = -4x, uyy=0u_{yy}=0. So Δu=0+0=0\Delta u = 0+0=0, confirming harmonicity independently of the polar-coordinate computation. At the center u(0,0)=3u(0,0) = 3. The average of uu over the boundary circle is

12π∫02π(3+5cos⁡θ−2sin⁡2θ) dθ=3,\frac{1}{2\pi}\int_0^{2\pi} \big(3+5\cos\theta - 2\sin2\theta\big)\,d\theta = 3,

since ∫02πcos⁡θ dθ=∫02πsin⁡2θ dθ=0\int_0^{2\pi}\cos\theta\, d\theta = \int_0^{2\pi}\sin2\theta\, d\theta = 0. This matches u(0,0)=3u(0,0)=3 exactly, confirming the mean value property (A) in this concrete case. By the maximum principle (C), the extreme values of uu on the closed disk occur on the boundary; since u(1,θ)=3+5cos⁡θ−2sin⁡2θu(1,\theta) = 3+5\cos\theta - 2\sin2\theta is a smooth function of θ\theta on a compact interval, its extrema can be found by calculus on the circle rather than by searching the whole disk — a genuine computational saving the maximum principle guarantees is valid.

Example 2: A genuinely 3-D harmonic function from electrostatics — the Newtonian/Coulomb potential. Let Ω=R3∖{0}\Omega = \mathbb{R}^3 \setminus \{0\} and consider

u(x,y,z)=1x2+y2+z2=1ρ,ρ=∣x∣=x2+y2+z2>0.u(x,y,z) = \frac{1}{\sqrt{x^2+y^2+z^2}} = \frac{1}{\rho}, \qquad \rho = |x| = \sqrt{x^2+y^2+z^2} > 0.

This is the potential (up to a physical constant) of a point charge at the origin. We verify Δu=0\Delta u = 0 for ρ≠0\rho \ne 0 directly, without symmetry shortcuts, differentiating u=(x2+y2+z2)−1/2u = (x^2+y^2+z^2)^{-1/2} term by term.

ux=−x(x2+y2+z2)−3/2.u_x = -x(x^2+y^2+z^2)^{-3/2}.
uxx=−(x2+y2+z2)−3/2+3x2(x2+y2+z2)−5/2=ρ−3(−1+3x2ρ2).u_{xx} = -(x^2+y^2+z^2)^{-3/2} + 3x^2(x^2+y^2+z^2)^{-5/2} = \rho^{-3}\left(-1 + \frac{3x^2}{\rho^2}\right).

By the symmetry of the formula under permuting x,y,zx,y,z (the algebra is identical for each variable, so we only need write it once and cyclically permute):

uyy=ρ−3(−1+3y2ρ2),uzz=ρ−3(−1+3z2ρ2).u_{yy} = \rho^{-3}\left(-1+\frac{3y^2}{\rho^2}\right), \qquad u_{zz} = \rho^{-3}\left(-1+\frac{3z^2}{\rho^2}\right).

Summing,

Δu=ρ−3(−3+3(x2+y2+z2)ρ2)=ρ−3(−3+3ρ2ρ2)=ρ−3(−3+3)=0.\Delta u = \rho^{-3}\left(-3 + \frac{3(x^2+y^2+z^2)}{\rho^2}\right) = \rho^{-3}\left(-3 + \frac{3\rho^2}{\rho^2}\right) = \rho^{-3}(-3+3) = 0.

So u=1/ρu = 1/\rho is harmonic on R3∖{0}\mathbb{R}^3\setminus\{0\}, matching the physical fact that the Coulomb potential satisfies Δu=0\Delta u=0 away from the charge itself (at the origin uu blows up and is not even defined, let alone C2C^2 — this is precisely why the domain excludes the origin, and why a point charge appears as a singular source, or delta function, on the right side of Poisson's equation Δu=−4πq δ0\Delta u = -4\pi q\,\delta_0 in the distributional sense). Note this example shows the mean value property must be applied only to balls entirely contained in the domain of harmonicity: the spherical average of u=1/ρu=1/\rho over a sphere of radius rr centered at the origin equals 1/r1/r (by symmetry, since u=1/ρ=1/ru=1/\rho=1/r everywhere on that sphere), but u(0)u(0) is undefined — there is no contradiction with Theorem (A) because x0=0∉Ωx_0=0 \notin \Omega.

CounterexampleConnectedness is necessary for the maximum principle

Theorem (B)/(C) require Ω\Omega to be connected. Drop this hypothesis and the conclusion fails. Let Ω=B((−3,0),1)∪B((3,0),1)⊂R2\Omega = B((-3,0),1) \cup B((3,0),1) \subset \mathbb{R}^2, the disjoint union of two open unit disks centered at (−3,0)(-3,0) and (3,0)(3,0) — an open but disconnected set. Define

u(x,y)={1(x,y)∈B((−3,0),1)0(x,y)∈B((3,0),1).u(x,y) = \begin{cases} 1 & (x,y) \in B((-3,0),1) \\ 0 & (x,y) \in B((3,0),1). \end{cases}

Each constant function is trivially harmonic (Δu=0\Delta u = 0) on its own disk, so u∈C∞(Ω)u \in C^\infty(\Omega) and Δu=0\Delta u = 0 on all of Ω\Omega: uu is harmonic on Ω\Omega. But uu attains its maximum value 11 at every point of B((−3,0),1)B((-3,0),1) — all of them interior points of Ω\Omega — while uu is manifestly not constant on Ω\Omega (it equals 00 on the other component). This directly contradicts the conclusion of (B), which asserted that attaining an interior max forces global constancy. The proof of (B) breaks down exactly at the connectedness step: the set S={u=M}S = \{u = M\} is still open and (relatively) closed in Ω\Omega — that part of the argument used only the mean value property and is unaffected — but with Ω\Omega disconnected, SS can be a proper nonempty clopen subset (here, S=B((−3,0),1)S = B((-3,0),1) exactly), so the conclusion S=ΩS=\Omega no longer follows. This shows connectedness is not a technical nicety but the load-bearing hypothesis that makes "clopen ⇒\Rightarrow everything or nothing" valid.

Scope, edge cases & common traps

SituationWhat holdsWhat fails / must be checked
Ω\Omega bounded, connected, u∈C2(Ω)∩C(Ω‾)u \in C^2(\Omega)\cap C(\overline\Omega)Maximum principle, uniqueness of Dirichlet problemExistence of a solution is a separate, harder question (Perron's method, Green's functions)
Ω\Omega unbounded (e.g. Rn\mathbb{R}^n or exterior domains)Mean value property still holds locallyMaximum principle / uniqueness can fail without a growth or decay condition at infinity
Ω\Omega disconnectedMean value property holds on each componentMaximum principle conclusion (constancy) fails globally, only holds per-component
Point singularities (e.g. 1/ρ1/\rho in 3D, log⁡ρ\log\rho in 2D)Harmonic away from the singularityNot harmonic (not even defined) at the singular point; mean value theorem inapplicable there
Only Δu=0\Delta u = 0 known, no boundary regularityuu is automatically C∞C^\infty, even real-analytic, inside Ω\Omega (a genuinely deeper elliptic regularity fact)Boundary behavior can still be irregular if ∂Ω\partial\Omega or gg is irregular

The mathematician behind it

Origins · 1 minPierre-Simon Laplace and how this was discovered
PL
Pierre-Simon Laplace
1749–1827 · Celestial mechanics, probability theory, mathematical physics in Napoleonic-era France

Laplace was among the most influential mathematical physicists of his era, celebrated for his monumental Traité de mécanique céleste and his foundational work in probability. The equation now bearing his name arose from his studies of gravitational potential theory, where he showed that the Newtonian potential of a mass distribution satisfies Δu=0\Delta u = 0 in regions free of mass — precisely the equation verified for the Coulomb potential in Example 2 above. Laplace's methodical, calculational style, oriented toward physical applications in astronomy and mechanics, shaped how the equation was understood for generations: not as an abstract object but as the mathematical signature of equilibrium.

History
- 1749: Pierre-Simon Laplace born in Beaumont-en-Auge, Normandy, France.
- 1782–1785: Laplace develops potential theory for gravitational attraction, introducing what becomes known as Laplace's equation in the context of celestial mechanics.
- 1813: Siméon Denis Poisson generalizes the equation to include source terms, giving Poisson's equation Δu=f\Delta u = f.
- 1820s–1830s: Carl Friedrich Gauss and George Green develop potential theory further, including the mean value property and precursors of Green's functions.
- 1827: Laplace dies in Paris; potential theory continues to develop through the 19th century into the modern theory of harmonic and subharmonic functions.
What is the difference between Laplace's equation and the heat equation?

The heat equation ut=kΔuu_t = k\Delta u describes how temperature evolves over time toward equilibrium; Laplace's equation Δu=0\Delta u = 0 describes that equilibrium itself, once time-dependence has vanished. If you seek a steady-state solution of the heat equation — one with ut≡0u_t \equiv 0 — you are precisely solving Laplace's equation. This is why Laplace's equation is sometimes called the "steady-state heat equation." More generally, Laplace's equation is elliptic (no real characteristics, per the Classification of Second-Order Linear PDEs), while the heat equation is parabolic; this classification difference explains why heat equation solutions smooth out and evolve forward in time, while harmonic functions have no time variable and are governed entirely by boundary data.

Why is the mean value property considered the "central" fact about harmonic functions?

Almost every major structural fact about harmonic functions can be derived from the mean value property once it is established. The strong maximum principle follows directly from it (as proved above), and from the maximum principle come uniqueness of the Dirichlet problem, continuous dependence on boundary data, and comparison theorems. It is also true, though a substantially deeper fact requiring more machinery, that the mean value property alone (assumed merely for continuous, not a priori C2C^2, functions) forces a function to be harmonic and even real-analytic — so the mean value property doesn't just follow from harmonicity, it essentially characterizes it.

Does every harmonic function attain a maximum somewhere?

Only under the right hypotheses. If Ω\Omega is bounded and uu extends continuously to Ω‾\overline\Omega (a compact set), then uu attains a maximum on Ω‾\overline\Omega by the extreme value theorem, and the maximum principle tells us it occurs on the boundary unless uu is constant. But on an unbounded domain, a harmonic function may have no maximum at all: u(x,y)=xu(x,y)=x is harmonic on R2\mathbb{R}^2 (since uxx=uyy=0u_{xx}=u_{yy}=0) but is unbounded above and below, so it attains neither a max nor a min anywhere. Boundedness of the domain (or of the function itself, in more refined Liouville-type theorems) is essential.

Are harmonic functions automatically smooth?

Yes, and this is one of the striking regularity features of elliptic equations. Although the definition only requires u∈C2(Ω)u \in C^2(\Omega) to state that Δu=0\Delta u = 0, one can show — using tools beyond this article, such as convolution with smooth mollifiers combined with the mean value property, or complex-analytic representations in two dimensions — that any harmonic function is automatically C∞(Ω)C^\infty(\Omega), and in fact real-analytic on Ω\Omega. This "elliptic regularity" phenomenon is in sharp contrast to hyperbolic equations, where solutions can retain sharp discontinuities (e.g., traveling wave fronts) indefinitely.

How does this connect to complex analysis?

If f=u+ivf = u+iv is holomorphic on an open set Ω⊂C≅R2\Omega\subset\mathbb{C}\cong\mathbb{R}^2, the Cauchy–Riemann equations ux=vyu_x = v_y, uy=−vxu_y=-v_x imply, upon differentiating and adding, that both uu and vv satisfy Laplace's equation: uxx+uyy=vyx−vxy=0u_{xx}+u_{yy} = v_{yx} - v_{xy} = 0 (using equality of mixed partials, valid since holomorphic functions are automatically smooth). Such u,vu,v are called harmonic conjugates. Conversely, every harmonic function on a simply connected planar domain is the real part of some holomorphic function. This makes two-dimensional potential theory and complex analysis two languages for the same subject.

What role does Laplace's equation play in the classification of PDEs?

Laplace's equation is the model elliptic equation. For a general second-order linear PDE Auxx+2Buxy+Cuyy+(lower order)=0Au_{xx}+2Bu_{xy}+Cu_{yy}+\text{(lower order)}=0, ellipticity means B2−AC<0B^2 - AC < 0; for Laplace's equation A=C=1,B=0A=C=1,B=0, giving B2−AC=−1<0B^2-AC = -1<0. Elliptic equations describe equilibrium phenomena and have no real characteristic curves, unlike hyperbolic equations (wave-like, with real characteristics along which information propagates) or parabolic equations (diffusion-like, one family of real characteristics). This classification, covered in Classification of Second-Order Linear PDEs, predicts in advance that Laplace's equation should exhibit boundary-value-problem behavior (specify uu on the entire boundary of a bounded region) rather than initial-value behavior (specify uu at one time and let it evolve).

What comes next after mastering harmonic functions?

Two natural directions extend this material. The Maximum Principle for Parabolic and Elliptic Equations generalizes the argument given here — which used only the divergence theorem and connectedness — to more general elliptic operators with variable coefficients and to time-dependent parabolic equations like the heat equation, where an analogous but subtler principle holds. Separately, Green's Functions for Boundary Value Problems builds explicit integral representation formulas for solutions of the Dirichlet and Neumann problems, turning the uniqueness result proved here into a genuine existence and construction theory, using the fundamental solution (log⁡∣x∣\log|x| in 2D, 1/∣x∣1/|x| in 3D, as verified in Example 2) as a building block.

Before this

Where this leads