Laplace's Equation: Harmonic Functions, Boundary-Value Problems and Standard Domains

The equation and where it comes from

In two dimensions, Laplace's equation is


∇2u = uxx + uyy = 0.


A solution with continuous second derivatives is called harmonic.


Laplace's equation is the steady-state limit of the heat equation: when temperature no longer changes in time and there are no heat sources inside the region, the temperature satisfies ∇2u = 0. The same equation governs electrostatic potential where there is no charge and the velocity potential of an ideal, incompressible, irrotational flow.

Recognizing harmonic functions

To test a function, compute uxx and uyy separately and check that they add to zero at every point of the region.


  • u = x2 − y2: uxx = 2 and uyy = −2, so it is harmonic.
  • u = xy: both second derivatives are 0, so it is harmonic.
  • u = x2 + y2 − 4y: uxx + uyy = 2 + 2 = 4, so it is not harmonic, even though it is a smooth, simple polynomial.
  • u = ln(x2 + y2) is harmonic on any region that excludes the origin, where it is undefined.


A harmonic function must curve up in one direction exactly as much as it curves down in the other. That is why a harmonic function cannot have a strict interior peak or pit.

Formulating a boundary-value problem

Laplace's equation alone has infinitely many solutions. A boundary-value problem fixes one by stating the region and one condition on every part of its boundary:


  • Dirichlet condition: the value of u is prescribed (a plate edge held at a given temperature).
  • Neumann condition: the outward normal derivative ∂u/∂n is prescribed (a prescribed heat flux; zero means insulated). For a pure Neumann problem a steady state exists only if the net flux through the whole boundary is zero, and then u is determined only up to an added constant.
  • On an unbounded region, a condition at infinity, such as “u stays bounded”, replaces the missing edge.

Building blocks on standard domains

Each of the following families is harmonic, and each already vanishes on some edges of its domain. Matching the remaining boundary data by choosing coefficients solves the basic cases directly.


Domain

Harmonic building blocks

Built-in behaviour

Rectangle 0 < x < L, 0 < y < H

sin(nπx/L) sinh(nπy/L)

zero on x = 0, x = L and y = 0

Disk r < a

1, rn cos nθ, rn sin nθ

finite at the centre

Half-strip 0 < x < π, y > 0

sin(nx) e−ny

zero on the sides, bounded as y → ∞


Check one: for u = sin(nx) e−ny, uxx = −n2u and uyy = +n2u, which cancel. The x-frequency and the y-growth or decay rate must be equal for the cancellation to happen.


Worked example (rectangle). Find u harmonic in 0 < x < 2, 0 < y < 3 with u = 0 on the left, right and bottom edges and u(x, 3) = 7 sin(πx/2) on the top.


The block with n = 1 and L = 2 is sin(πx/2) sinh(πy/2), which vanishes on the three zero edges. At y = 3 it equals sin(πx/2) sinh(3π/2), so


u(x, y) = 7 sin(πx/2) sinh(πy/2) / sinh(3π/2).


Always divide by the block's value on the data edge; forgetting the denominator gives a function that is harmonic and zero on three sides but has the wrong top values.


Worked example (disk). Find u harmonic in the disk r < 3 with u(3, θ) = 2 + 5 cos 2θ.


The block r2 cos 2θ equals 9 cos 2θ on r = 3, so u = 2 + 5(r/3)2 cos 2θ. Each Fourier mode of the boundary data is scaled by (r/a)n as you move inward.

Qualitative properties worth interpreting

  • Mean value property. The value of a harmonic function at the centre of any disk inside its domain equals its average over the circle. In the disk example, u(0) = 2, the average of 2 + 5 cos 2θ, because cos 2θ averages to zero.
  • Extremes on the boundary. A non-constant harmonic function on a bounded region attains its maximum and minimum only on the boundary. Interior values always lie between the smallest and largest boundary values.
  • Uniqueness. A Dirichlet problem has at most one solution, so a function that satisfies the equation and every boundary condition is the solution, however it was found.
  • Smoothing. Mode n is damped by (r/a)n in a disk or e−ny in a strip, so rapid boundary wiggles fade within a short distance while slow variations reach deep into the region.


The general separation-of-variables derivation of these building blocks, and problems with internal sources (Poisson's equation), are treated in their own concepts.

Which function is harmonic, that is, satisfies uxx + uyy = 0 at every point of the xy-plane?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

For which constant k is u(x, y) = x3 + kxy2 harmonic in the whole plane? Give the value of k and show the check.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

A thin rectangular plate occupies 0 < x < π, 0 < y < 1. Its faces are insulated, and its steady-state temperature u(x, y) satisfies Laplace's equation. The edges x = 0, x = π and y = 0 are held at 0, and the edge y = 1 is held at u(x, 1) = 4 sin(2x).

Find u(x, y) and evaluate u(π/4, 1/2). Give the value to three decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors