MathLabs

Differential equations and dynamical systems

Laplace's equation

The equation for harmonic functions, describing steady-state temperature, potential and equilibrium.

IntuitionSteady states: what is left once nothing changes anymore

Leave a metal plate with its edges held at fixed temperatures long enough, and the interior temperature stops changing: it settles into a steady-state pattern. The same kind of settled-down equation appears for the electric potential in a region with no charge, for the shape of a soap film stretched across a wire frame, and for the velocity potential of a smooth, swirl-free fluid flow. Laplace's equation is the common rule these steady states obey: at every interior point, the value is exactly the average of its surroundings, so there can be no lonely peaks or dips away from the boundary.

Interactive 3D saddle-shaped harmonic surface illustrating the absence of interior local maxima or minima.
A harmonic surface has no interior bumps or dips of its own: rotate and rescale it to see that any local high point on one side is balanced by a local low point on another, exactly the saddle-like behaviour the maximum principle predicts for a non-constant solution of ∇2u=0\nabla^2 u = 0.

UndergraduateHarmonic functions and the Dirichlet problem

Definition: Harmonic function and the Laplace operator

A twice continuously differentiable function u(x,y)u(x,y) on an open set Ω⊆R2\Omega \subseteq \mathbb{R}^2 is called harmonic if it satisfies Laplace's equation ∇2u=uxx+uyy=0\nabla^2 u = u_{xx} + u_{yy} = 0 everywhere in Ω\Omega, where ∇2\nabla^2 (also written Δ\Delta) is the Laplace operator, the sum of unmixed second partial derivatives. The Dirichlet problem asks: given a bounded domain Ω\Omega and a prescribed boundary function gg on ∂Ω\partial\Omega, find the harmonic function uu inside Ω\Omega with u=gu = g on ∂Ω\partial\Omega.

∇2u=uxx+uyy=0,(x,y)∈Ω\nabla^2 u = u_{xx} + u_{yy} = 0, \qquad (x,y) \in \Omega

On the unit disk, the Dirichlet problem has an explicit closed-form solution: the Poisson kernel integral formula reconstructs the harmonic function inside the disk entirely from its boundary values, without ever solving a differential equation directly. Writing points inside the disk in polar form reiθre^{i\theta} with 0≤r<10 \le r < 1, and the boundary value at angle ϕ\phi as g(ϕ)g(\phi), the formula is a weighted average of gg over the whole boundary circle, with weights concentrated near ϕ≈θ\phi \approx \theta when rr is close to 11.

u(reiθ)=12π∫02π1−r21−2rcos⁡(θ−ϕ)+r2 g(ϕ) dϕu(re^{i\theta}) = \frac{1}{2\pi}\int_0^{2\pi} \frac{1-r^2}{1-2r\cos(\theta-\phi)+r^2}\, g(\phi)\, d\phi
Laplace's equation among the family of elliptic PDEs
EquationFormulaPhysical meaning
Laplace's equation∇2u=0\nabla^2 u = 0Steady state, no interior sources or sinks
Poisson's equation∇2u=f\nabla^2 u = fSteady state with a prescribed source density ff
Helmholtz equation∇2u+k2u=0\nabla^2 u + k^2 u = 0Time-harmonic waves (frequency kk); eigenvalue problem

UndergraduateCore theorems: the mean value property and the maximum principle

Suppose uu is harmonic on an open set containing the closed disk Br(x0)‾\overline{B_r(x_0)} of radius rr centred at x0x_0. Then u(x0)u(x_0) equals the average of uu over the boundary circle: u(x0)=12π∫02πu(x0+rcos⁡θ,y0+rsin⁡θ) dθu(x_0) = \frac{1}{2\pi}\int_0^{2\pi} u(x_0 + r\cos\theta, y_0 + r\sin\theta)\, d\theta. The same value also equals the average of uu over the whole solid disk.

Why is it true?

A harmonic function cannot favour any direction: since it has zero net curvature at every point (the sum of its curvatures along the xx and yy axes cancels exactly), it cannot bulge upward on average as you walk around any circle centred at a point, nor dip downward — the only consistent value for the centre is the average of the circle.

Proof

Without loss of generality centre the disk at the origin (x0=0x_0 = 0) and define ϕ(r)=12π∫02πu(rcos⁡θ,rsin⁡θ) dθ\phi(r) = \frac{1}{2\pi}\int_0^{2\pi} u(r\cos\theta, r\sin\theta)\, d\theta for 0≤r≤R0 \le r \le R, the average of uu over the circle of radius rr. We show ϕ\phi is constant by proving ϕ′(r)=0\phi'(r) = 0.

Differentiating under the integral sign, ϕ′(r)=12π∫02π∇u(rcos⁡θ,rsin⁡θ)⋅(cos⁡θ,sin⁡θ) dθ=12π∫02π∂u∂n dθ\phi'(r) = \frac{1}{2\pi}\int_0^{2\pi} \nabla u(r\cos\theta, r\sin\theta) \cdot (\cos\theta, \sin\theta)\, d\theta = \frac{1}{2\pi}\int_0^{2\pi} \frac{\partial u}{\partial n}\, d\theta, since (cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta) is the outward unit normal on the circle of radius rr. Multiplying and dividing by rr turns this into a normalised boundary integral of the normal derivative over the circle ∂Br\partial B_r.

By the divergence theorem, ∫∂Br∂u∂n ds=∫Br∇2u dA=0\int_{\partial B_r} \frac{\partial u}{\partial n}\, ds = \int_{B_r} \nabla^2 u \, dA = 0 because uu is harmonic. Hence ϕ′(r)=0\phi'(r) = 0 for every rr in the domain, so ϕ(r)=ϕ(0+)=u(x0)\phi(r) = \phi(0^+) = u(x_0) for all such rr: the average over any circle centred at x0x_0 equals u(x0)u(x_0) itself, and averaging this constant value over 0≤r≤R0 \le r \le R shows the solid-disk average equals u(x0)u(x_0) as well.

Let uu be harmonic on a bounded, connected open set Ω\Omega and continuous on its closure Ω‾\overline{\Omega}. If uu is non-constant, then both its maximum and its minimum over Ω‾\overline{\Omega} are attained only on the boundary ∂Ω\partial\Omega, never at an interior point.

Why is it true?

The mean value property says every interior value equals the average of a whole circle of neighbouring values. An average can only equal the overall maximum if every value being averaged already equals that maximum — so a genuine, isolated interior peak is impossible: if the centre is as high as it can possibly be, the entire surrounding disk must be exactly that high too, and this spreads outward until it reaches the boundary.

Proof

Suppose uu attains its maximum value MM over Ω‾\overline{\Omega} at an interior point x0∈Ωx_0 \in \Omega. Let S={x∈Ω:u(x)=M}S = \{x \in \Omega : u(x) = M\}; by continuity SS is closed in Ω\Omega, and it is nonempty since x0∈Sx_0 \in S.

SS is also open: for any x1∈Sx_1 \in S, choose a small disk Br(x1)⊂ΩB_r(x_1) \subset \Omega. The mean value property gives M=u(x1)=12π∫02πu(x1+rcos⁡θ,x1+rsin⁡θ) dθM = u(x_1) = \frac{1}{2\pi}\int_0^{2\pi} u(x_1 + r\cos\theta, x_1 + r\sin\theta)\, d\theta, an average of values all ≤M\le M. An average of quantities bounded above by MM can equal MM only if every one of those quantities equals MM, so u≡Mu \equiv M on the whole circle ∂Br(x1)\partial B_r(x_1), and by applying the same argument to every radius up to rr, on the whole disk Br(x1)B_r(x_1). Hence a neighbourhood of x1x_1 lies in SS, so SS is open.

Since Ω\Omega is connected and SS is a nonempty subset that is both open and closed in Ω\Omega, we must have S=ΩS = \Omega, i.e. u≡Mu \equiv M throughout Ω\Omega. But uu was assumed non-constant, a contradiction. Therefore no interior maximum exists; the same argument applied to −u-u (which is also harmonic) rules out an interior minimum, so both extremes occur only on ∂Ω\partial\Omega.

UndergraduateReal-World Applications and Worked Examples

Laplace's equation is everywhere steady-state physics is. In electrostatics, the potential in any charge-free region satisfies it; in fluid dynamics, the velocity potential of an incompressible, irrotational flow around an aircraft wing satisfies it; in gravitation, the potential outside any mass distribution satisfies it; and in computer graphics and computer vision, harmonic extension (solving the Dirichlet problem numerically) is used for image inpainting and mesh smoothing, filling in missing pixels or vertices with the smoothest possible values consistent with the known surrounding data.

Example: A saddle-shaped harmonic function on the unit disk

Verify that u(x,y)=x2−y2u(x,y) = x^2 - y^2 is harmonic, then find its maximum and minimum values on the closed unit disk x2+y2≤1x^2+y^2 \le 1.

Solution

Check harmonicity by computing the two unmixed second partial derivatives: ux=2xu_x = 2x so uxx=2u_{xx} = 2, and uy=−2yu_y = -2y so uyy=−2u_{yy} = -2. Adding them, uxx+uyy=2+(−2)=0u_{xx} + u_{yy} = 2 + (-2) = 0 everywhere, so uu is indeed harmonic on all of R2\mathbb{R}^2, including the closed unit disk.

By the maximum principle, since uu is non-constant and harmonic, its extreme values over the closed disk must occur on the boundary circle, not in the interior. Parametrise the boundary as x=cos⁡θx=\cos\theta, y=sin⁡θy=\sin\theta, giving u=cos⁡2θ−sin⁡2θ=cos⁡(2θ)u = \cos^2\theta - \sin^2\theta = \cos(2\theta).

As θ\theta ranges over [0,2π)[0,2\pi), cos⁡(2θ)\cos(2\theta) attains its maximum value 11 at θ=0\theta = 0 (the point (1,0)(1,0)) and its minimum value −1-1 at θ=π/2\theta = \pi/2 (the point (0,1)(0,1)). Notice the origin, which looks like a natural candidate for an extremum by ordinary calculus (it is a critical point of uu), is actually a saddle point of the surface, exactly as the maximum principle forbids any genuine interior extremum for a non-constant harmonic function.

Example: Electrostatic potential inside a circular capacitor cross-section

The boundary of a unit-radius circular region is held at potential g(ϕ)=V0cos⁡ϕg(\phi) = V_0\cos\phi with V0=10V_0 = 10 volts. Using the harmonic extension of a single Fourier mode, find the potential u(r,θ)u(r,\theta) at the interior point r=0.5r = 0.5, θ=60∘\theta = 60^\circ.

Solution

The boundary data g(ϕ)=V0cos⁡ϕg(\phi) = V_0\cos\phi is already a single Fourier mode. The harmonic extension of cos⁡ϕ\cos\phi into the disk is simply rcos⁡ϕr\cos\phi (one can check directly: rcos⁡ϕ=xr\cos\phi = x, and xx satisfies Laplace's equation trivially since xxx=0x_{xx}=0, xyy=0x_{yy}=0). So instead of evaluating the Poisson kernel integral directly, we can read off the answer: u(r,θ)=V0 rcos⁡θu(r,\theta) = V_0\, r\cos\theta.

Substitute the given values V0=10V_0 = 10, r=0.5r = 0.5, θ=60∘\theta = 60^\circ: first compute cos⁡(60∘)=12\cos(60^\circ) = \tfrac{1}{2}.

Then u(0.5,60∘)=10×0.5×12=2.5u(0.5, 60^\circ) = 10 \times 0.5 \times \tfrac{1}{2} = 2.5: the potential at that interior point is 2.52.5 volts, a value strictly between the boundary extremes −10-10 and 1010 volts, consistent with the maximum principle.

Which of the following functions satisfies Laplace's equation ∇2u=0\nabla^2 u = 0 on R2\mathbb{R}^2?

According to the mean value property, if uu is harmonic and u(x0)=7u(x_0) = 7, what is the average of uu over any circle of radius 22 centred at x0x_0 (as long as the circle and its interior lie in the domain of harmonicity)?

A thin metal plate shaped like a disk has its boundary held at temperatures ranging between 10∘C10^\circ\text{C} and 30∘C30^\circ\text{C}, and has reached steady state (so the interior temperature is harmonic). What can you conclude about the interior temperature?

In image inpainting (filling in a missing or damaged region of a photo), a common technique solves the Dirichlet problem for Laplace's equation, treating the known pixels around the hole as boundary data. Why is this a sensible approach?

References

  1. Lawrence C. Evans (2010). Partial Differential Equations
  2. Walter A. Strauss (2007). Partial Differential Equations: An Introduction