Partial Differential Equations

Laplace Equation

∇²φ = 0 — the equation of equilibrium and the harmonic functions that solve it

The Laplace equation ∇²φ = 0 governs every steady-state diffusion: equilibrium temperature, electrostatic potential in vacuum, gravity in empty space. Solutions are harmonic — their value at any point equals their average over any sphere centered there, and they cannot have interior maxima.

  • Equation∇²φ = 0
  • SolutionsHarmonic functions
  • Mean valueφ(x) = avg of φ on any centered sphere
  • Maximum principleExtrema on boundary, not interior
  • ClassificationLinear elliptic, second-order
  • GovernsSteady heat, electrostatics in vacuum, fluid potential

Watch the 60-second explainer

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

The equation

Pierre-Simon Laplace's equation is the simplest non-trivial second-order partial differential equation:

∇²φ = 0

equivalently:  ∂²φ/∂x² + ∂²φ/∂y² + ∂²φ/∂z² = 0   (in 3D)

The operator ∇² is the Laplacian — the divergence of the gradient. Functions satisfying ∇²φ = 0 are called harmonic. The equation says nothing about boundaries; on its own, it has infinitely many solutions, from the constant function to polynomials, logarithms, and reciprocals of distance. Picking a unique one requires specifying boundary data — that is the Dirichlet problem.

The Laplace equation is the second-order linear, elliptic, source-free workhorse of mathematical physics. Wherever you have a steady-state diffusion process with no internal sources, the equilibrium distribution satisfies ∇²φ = 0.

What harmonic means physically

The Laplacian ∇²φ at a point measures by how much φ at that point differs from the average of φ on a small sphere around it. Up to a positive constant:

∇²φ(x) ≈ (constant) · (φ̄_sphere(x, r) − φ(x))   for small r

If ∇²φ > 0, φ at the centre is less than the local average — neighbouring points are higher. If ∇²φ < 0, the centre is higher than its surroundings — a local hump. If ∇²φ = 0 everywhere, every point is the exact average of its neighbours. The function is locally balanced.

This local balance is what makes harmonic functions equilibrium states. Heat at a point with above-average neighbours will flow in until the point matches its surroundings (positive ∇²). Heat at a hot peak flows out (negative ∇²). The only steady states are exactly the harmonic functions.

The mean value property

The most beautiful theorem about harmonic functions is exact, not approximate: the value of a harmonic function at any point equals its average over any ball or sphere centred at that point (provided the ball is contained in the region of harmonicity):

φ(x) = (1 / surface area)  ∫_{∂B_r(x)} φ dA
     = (1 / volume)         ∫_{B_r(x)} φ dV

for any r such that B_r(x) ⊂ Ω

The "any r" is striking. The equality does not just hold in the limit r → 0 — it holds for arbitrarily large balls, all the way out to the boundary of where φ is defined.

Concrete check. In 3D, the mean value over a sphere of radius r centered at x: ∫_{∂B_r(x)} φ dA = φ(x) · 4πr². The integral of a harmonic function over any centered sphere scales precisely with the area of that sphere. The proof reduces to the divergence theorem applied to ∇φ.

The mean value property is a complete characterisation: a continuous function with the mean value property on every ball in its domain is automatically harmonic. There is no way to be "approximately" harmonic without being harmonic.

The maximum principle

The mean value property has a one-line consequence: a non-constant harmonic function cannot have an interior maximum. If it did — say φ(x₀) is the largest value, with x₀ in the interior — then the average over any small ball around x₀ is strictly less than φ(x₀), contradicting the mean value property.

Formally, on a bounded domain Ω:

max_{x ∈ closure(Ω)} φ(x) = max_{x ∈ ∂Ω} φ(x)
min_{x ∈ closure(Ω)} φ(x) = min_{x ∈ ∂Ω} φ(x)

This is the maximum principle: the extrema of φ live on the boundary, not in the interior, unless φ is constant.

One immediate consequence: uniqueness for the Dirichlet problem. If φ₁ and φ₂ are two harmonic functions on Ω with the same boundary values, then their difference φ₁ − φ₂ is harmonic with zero boundary values. By the maximum principle, its max and min over the closure equal zero, so φ₁ = φ₂ everywhere.

The Dirichlet problem

The Dirichlet problem is: given continuous boundary data g on ∂Ω, find φ such that

∇²φ = 0 in Ω,    φ = g on ∂Ω.

The problem is the basic well-posed setup of potential theory. For sufficiently regular domains (Lipschitz boundary, in particular smooth boundary), the Dirichlet problem has a unique solution for every continuous boundary data. The existence proof uses the Perron method (the supremum of all subharmonic functions ≤ g on the boundary), or constructive integral formulas where they exist.

The disk — Poisson integral formula

On the unit disk in 2D, the Dirichlet problem has an explicit closed-form solution. If φ = g(e^{iθ}) on the unit circle, then for any interior point r e^{iθ_0} (with r < 1):

φ(r e^{iθ_0}) = (1/2π) ∫_0^{2π} g(e^{iθ}) · (1 − r²) / (1 − 2r cos(θ − θ_0) + r²) dθ

This is the Poisson integral formula (1820). The kernel (1−r²)/(1−2r cos(θ−θ_0)+r²) is the Poisson kernel; it concentrates at θ = θ_0 as r → 1, recovering the boundary value, and spreads out into a smooth interior solution.

Worked example — temperature on a disk

Pick a disk of radius 1 with boundary temperature g(θ) = cos(θ). Find the steady-state interior temperature.

Try φ(r, θ) = r cos(θ) — equivalently φ(x, y) = x. Compute ∇²φ:

∇²x = ∂²x/∂x² + ∂²x/∂y² = 0 + 0 = 0  ✓

And on the boundary, r = 1, so φ = cos(θ) = g. Both conditions satisfied. The temperature inside is just φ(x, y) = x: a perfectly linear temperature gradient across the disk, hottest on the right (x = 1, where cos θ = 1) and coldest on the left.

The mean value property checks: at the centre (0, 0), the average of cos(θ) over the unit circle is (1/2π) ∫_0^{2π} cos θ dθ = 0 — exactly φ(0, 0). Pick any interior point, average φ = x around a small circle of radius ρ: ∫(x_0 + ρ cos α) dα/(2π) = x_0 = φ(x_0, y_0). Mean value holds everywhere, as it must.

Harmonic function gallery

DimensionHarmonic functionsWhere they appear
1DLinear: φ(x) = ax + b1D heat equilibrium, trivial
2Dx, y, x²−y², 2xy, log|x|, Re(z^n), Im(z^n)Re/Im parts of holomorphic functions
2Darg(z) = arctan(y/x)Branch cut; angular potential
3D1, x, y, z, x²−y², xy, …Polynomial potentials
3D1 / |x − x₀|Coulomb / gravitational potential of a point
3DY_ℓ^m(θ, φ) · r^ℓ and r^{−ℓ−1}Spherical harmonics (multipole expansion)
n ≥ 3|x|^{2−n}Fundamental solution of ∇² in n-D

Connection to complex analysis (2D)

In 2D, the Laplace equation has a remarkable bridge to complex analysis. A function f : ℂ → ℂ is holomorphic exactly when its real and imaginary parts u(x, y) and v(x, y) satisfy the Cauchy–Riemann equations:

∂u/∂x = ∂v/∂y,    ∂u/∂y = −∂v/∂x.

Differentiating the first equation with respect to x and the second with respect to y, then adding, the cross terms cancel and you get u_xx + u_yy = 0. Similarly v is harmonic. So the real (and imaginary) parts of every holomorphic function are harmonic. Conversely, every harmonic function on a simply connected 2D domain is the real part of some holomorphic function (its harmonic conjugate).

This bridge is the reason 2D potential theory is rich and tractable: conformal maps (holomorphic bijections) preserve harmonicity, so the Dirichlet problem on any simply connected domain can be transplanted to the unit disk via the Riemann mapping theorem, then solved with the Poisson integral formula.

Where Laplace's equation governs

  • Electrostatic potential in vacuum. Maxwell's equation ∇·E = ρ/ε₀ becomes ∇²φ = −ρ/ε₀ for E = −∇φ. In vacuum (ρ = 0), Laplace's equation holds. The potential outside a charged conductor, in any cavity or region containing no charge, is harmonic.
  • Steady-state heat distribution. The heat equation ∂u/∂t = α∇²u reaches steady state when ∂u/∂t = 0, i.e. ∇²u = 0. A metal plate at thermal equilibrium with prescribed edge temperatures has harmonic interior temperature.
  • Gravity in empty space. ∇²φ_grav = 4πGρ becomes ∇²φ_grav = 0 outside masses. The gravitational potential outside a planet is harmonic.
  • Incompressible, irrotational fluid flow. Velocity v = ∇φ (irrotational) with ∇·v = 0 (incompressible) means ∇²φ = 0. The velocity potential of inviscid potential flow is harmonic — the basic model for airfoil aerodynamics in classical theory.
  • Membrane displacement. A taut elastic membrane (drumhead) under no transverse load satisfies ∇²u = 0 with u prescribed on the rim. The Dirichlet problem on the membrane shape.
  • Markov processes — harmonic measures. The probability that a Brownian motion starting at x first exits a region through a given subset of the boundary is itself a harmonic function. Brownian-motion exit distributions are the probabilistic incarnation of harmonicity.
  • Conformal field theory. 2D conformal field theory builds on the connection between harmonic functions and holomorphic functions; the central charge, primary operators, and partition functions all draw on potential-theoretic identities.
EquationFormTypeReduces to Laplace when
Laplace∇²φ = 0Elliptic— (it is)
Poisson∇²φ = fEllipticf = 0 (the homogeneous case)
Heat∂u/∂t = α∇²uParabolicSteady state ∂u/∂t = 0
Wave∂²u/∂t² = c²∇²uHyperbolicStatic u (no time dep.)
Helmholtz∇²ψ + k²ψ = 0Elliptick = 0 (low-frequency limit)
Biharmonic∇⁴φ = 0Elliptic (higher order)Solutions to ∇²φ = 0 are also biharmonic

Common mistakes

  • Believing harmonic ⇒ smooth boundary behaviour. Harmonic functions are real-analytic in their interior, but boundary values can be just continuous. The interior is smooth no matter how rough the boundary data, but you cannot generally extend across the boundary smoothly.
  • Confusing the Laplace equation with the Laplace transform. The Laplace equation is a PDE (∇²φ = 0); the Laplace transform is an integral transform F(s) = ∫ e^{−st} f(t) dt. Both named after Pierre-Simon Laplace, but they are different objects.
  • Forgetting the Laplacian in spherical or cylindrical coordinates has metric factors. In spherical (r, θ, φ): ∇²φ = (1/r²) ∂(r² ∂φ/∂r)/∂r + (1/(r² sin θ)) ∂(sin θ ∂φ/∂θ)/∂θ + (1/(r² sin² θ)) ∂²φ/∂φ². Treating it as a sum of unweighted second partials gives wrong answers.
  • Assuming the Dirichlet problem always has a solution. On domains with cusps or with non-Lipschitz boundary, the problem can be ill-posed: solutions can fail to attain the boundary data continuously even when the data is continuous. Wiener's criterion characterises exactly when each boundary point is "regular."
  • Mistaking Liouville's theorem for the maximum principle. Liouville's theorem says bounded harmonic functions on all of ℝⁿ are constant. The maximum principle says interior maxima force constancy on bounded domains. They are related but distinct.
  • Misapplying the mean value property near the boundary. The property requires the ball B_r(x) to lie entirely within the region of harmonicity. Approaching the boundary, you must shrink r — there is no mean value identity using a ball that crosses the boundary.
  • Confusing ∇²φ = 0 with ∇φ = 0. ∇φ = 0 means φ is constant. ∇²φ = 0 admits a much richer class (every harmonic function, including non-constants like x²−y²). The Laplacian is a sum of second derivatives, not the first derivative.

Frequently asked questions

What is the mean value property of harmonic functions?

If φ satisfies ∇²φ = 0 in an open region, then for any ball B_r(x) contained in the region, the value at the center equals the average over the sphere: φ(x) = (1/(4πr²)) ∫_{∂B_r(x)} φ dA. The same holds with averages over the full ball. The property is iff — a function with the mean value property on every ball is automatically harmonic. The mean value property is the geometric content of ∇²φ = 0: at each point, the value equals the symmetric average over arbitrarily large balanced neighbourhoods.

What is the maximum principle?

On a bounded domain, a harmonic function attains its maximum and minimum on the boundary, not in the interior — unless it is constant. This follows directly from the mean value property: if φ achieved a strict interior maximum at x, the spherical average around x would be strictly less than φ(x), contradicting equality. The maximum principle is the algorithmic source of uniqueness for the Dirichlet problem: if two solutions agree on the boundary, their difference is harmonic with zero boundary values, so the difference reaches its extrema (both zero) on the boundary and equals zero throughout.

What is the Dirichlet problem?

Given a bounded region Ω with boundary ∂Ω and continuous boundary data g on ∂Ω, find φ that satisfies ∇²φ = 0 in Ω and φ = g on ∂Ω. The problem is well-posed for sufficiently regular boundaries (Lipschitz suffices in most settings): a unique solution exists and depends continuously on the boundary data. For a disk in 2D, the solution is given explicitly by the Poisson integral formula. For more general domains, the Perron method constructs the solution as the supremum of all 'subharmonic' functions bounded by g on the boundary.

Why is the Laplace equation called elliptic?

Second-order linear PDEs classify into three types based on the discriminant of their principal symbol. For an equation a u_xx + 2b u_xy + c u_yy + ... = 0, the discriminant is b² − ac. Elliptic: b² − ac < 0 (Laplace ∂²/∂x² + ∂²/∂y² has discriminant 0 − 1·1 = −1). Parabolic: b² − ac = 0 (heat). Hyperbolic: b² − ac > 0 (wave). Elliptic equations have no real characteristics — disturbances are felt instantly everywhere in the domain, which mathematically forces solutions to be smooth and analytically extends them as far as boundary regularity allows.

What are some explicit harmonic functions?

In 2D: any polynomial of x and y whose Laplacian vanishes — x, y, x²−y², 2xy, x³−3xy², 3x²y−y³. The real and imaginary parts of any holomorphic function f(x+iy) are harmonic (e.g., Re(z²) = x²−y², Im(z²) = 2xy, Re(log z) = log|z|, Im(log z) = arg z). In 3D: the constant, x, y, z, x²−y², the inverse distance 1/|x−x₀| (away from x₀), the Newtonian potential of a sphere, Legendre polynomials in (r, cos θ) form the basis of spherical harmonics. In any dimension n ≥ 3, |x|^{2−n} is the fundamental harmonic — the Newtonian potential of a point source.

How do harmonic functions relate to complex analysis?

In 2D, harmonic functions are exactly the real (or imaginary) parts of holomorphic functions of one complex variable. If f(z) = u(x,y) + i v(x,y) is holomorphic, the Cauchy–Riemann equations u_x = v_y, u_y = −v_x imply both u and v are harmonic. Conversely, every harmonic function on a simply connected domain is the real part of some holomorphic function. This is why complex analysis carries through to potential theory in 2D — conformal maps preserve harmonic functions, and the disk/upper-half-plane Dirichlet problem has explicit solutions via Möbius transformations.

What does Liouville's theorem say for harmonic functions?

A harmonic function on all of ℝⁿ that is bounded above (or bounded below) must be constant. This is the harmonic analogue of Liouville's theorem from complex analysis, and it follows from the mean value property combined with the gradient estimate |∇φ(x)| ≤ (n/r) sup_{B_r(x)} |φ|. Letting r → ∞ with φ bounded forces ∇φ = 0 everywhere. The theorem makes precise the slogan that 'harmonic functions are determined by their boundary values' — if there is no boundary (i.e., the whole space), there is essentially no harmonic function except the constants.