On this page
Some functions have no bumps. Average one around any circle and you get back exactly the value at the centre. These harmonic functions describe a metal plate whose temperature has settled, a shallow soap film (approximately), and the real part of every analytic function.
What is a harmonic function?
A function u(x, y) is harmonic if it is twice continuously differentiable and satisfies Laplace's equation, ∂²u/∂x² + ∂²u/∂y² = 0, as defined in Jeremy Orloff's MIT 18.04 notes on harmonic functions. The equation is named after Pierre-Simon Laplace, who first studied its properties in 1786 (Laplace's equation on Wikipedia).
Try u = x² − y². The second derivative in x is 2, in y it is −2, and they add to 0, so u is harmonic. For x² + y² you get 2 + 2 = 4, so it is not.
What does the mean value property say?
If u is harmonic on and inside a circle of radius r centred at (x₀, y₀), then u(x₀, y₀) equals the average of u around that circle: (1/2π) times the integral of u(x₀ + r cos θ, y₀ + r sin θ) from θ = 0 to 2π. The MIT 18.04 notes prove this from the mean value property of analytic functions. Check it by hand for u = x² − y²:
Pick the point (2, 1). There u = 4 − 1 = 3.
Take four equally spaced points on the circle of radius 1: (3, 1) gives 8, (2, 2) gives 0, (1, 1) gives 0, (2, 0) gives 4.
Average them: (8 + 0 + 0 + 4) / 4 = 3. It matches the centre.
For the whole circle, put x = 2 + cos θ and y = 1 + sin θ. Expanding gives u = 3 + 4 cos θ − 2 sin θ + cos 2θ.
Each of cos θ, sin θ and cos 2θ averages to zero over a full turn, so the circle average is exactly 3, and the same holds for any radius.
Now try x² + y² at (2, 1). The centre value is 5, but the four points give 10, 8, 2 and 4, which average to 6. x² + y² is a bowl, and a bowl's middle sits below its rim.
Four points were enough here because cos 2θ cancels at quarter turns; for most harmonic functions they only approximate the circle average. That four-neighbour average underlies a standard grid method for Laplace's equation; the time-dependent version is in solving the heat equation with finite differences.
Why can't a harmonic function have a peak inside?
At a strict interior peak, every value on a small circle would be lower, so their average would be too, breaking the mean value property. The MIT notes give the precise maximum principle: if a harmonic u has a relative maximum or minimum at an interior point, it is constant on a disk around that point, and on a bounded connected region its absolute maximum and minimum occur on the boundary.
On the unit disk, x² − y² peaks at 1 and bottoms out at −1, both on the edge; the origin is a saddle.
Why are soap films and steady temperatures harmonic?
Surface tension pulls a soap film into the least-area surface spanning its wire loop. A University of Texas physics note on soap films shows that the least-area equation is non-linear, but for low-profile films with small slopes it simplifies to the 2D Laplace equation for the film's height. So a shallow film is approximately harmonic, and its highest point is on the wire.
In heat conduction, Laplace's equation is the steady-state heat equation (Wikipedia). Hold a plate's edges at fixed temperatures and wait: the hottest and coldest spots end up on the edges.
How are harmonic functions linked to analytic functions?
If f(z) = u + iv is analytic on a region, both u and v are harmonic there, a short consequence of the Cauchy–Riemann equations shown in the MIT 18.04 notes. Our example is no accident: z² = (x² − y²) + i(2xy), so 2xy is harmonic too; the pair are harmonic conjugates. Conversely, on a simply connected region every harmonic u is the real part of some analytic function.
This link is why the notes can prove the maximum principle exactly as they prove the maximum modulus principle for analytic functions.
Can you check these yourself?
Test which are harmonic: xy, x³ − 3xy², eˣ cos y, and x² + y².
Repeat the four-point check for x³ − 3xy² at (1, 1) with radius 1. You should get −2 both ways.
Find v so that x³ − 3xy² + iv is analytic. Hint: think of z³.
If the Laplacian or the Cauchy–Riemann equations still feel shaky, the Fermi Concept Library gives every concept in physics, chemistry, biology, mathematics and computing its own lesson. For more practice, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



