© 2026 Neckpinch · www.neckpinch.com · All rights reserved.
Course 6Book 6A: The Heat Equation and Its RelativesChapter 2
Harmonic Functions
The mean value property, the maximum principle, Harnack and Liouville.
Read with Evans, Partial Differential Equations, section 2.2 (Laplace's equation: the fundamental solution, the mean value formulas, properties of harmonic functions, Green's function and Poisson's formula, energy methods). Jost's Partial Differential Equations, chapters 2 and 3, is a good second voice. This chapter proves everything it uses, so it can be read on its own; Green's functions and Poisson kernels are derived in full in 6B.4 Green’s Functions, Separation of Variables and Transforms.
In this chapter · 8 sections
- 2.1Steady temperatures
- 2.2The fundamental solution
- 2.3The mean value property
- 2.4Consequences of the mean value property
- 2.4.1Smoothness
- 2.4.2Estimates on derivatives of every order
- 2.4.3Harmonic functions are analytic
- 2.5The Harnack inequality
- 2.6Dirichlet's principle
- 2.7History
- 2.8Exercises
- ↗Free resources
Leave the heat equation running long enough with fixed boundary temperatures and it settles into a steady state, where . What remains is Laplace's equation , and its solutions are the harmonic functions. They are the equilibria of diffusion, and their properties are the static versions of everything the heat equation does: they average, they smooth, and they cannot have interior maxima.
Book 5A met harmonic functions in the plane as real parts of holomorphic functions. Here there are no complex numbers to lean on, and every result is proved in every dimension, from one formula: the value of a harmonic function at a point is its average over any sphere around that point. From the mean value property follow the maximum principle, uniqueness for the Dirichlet problem, smoothness, derivative estimates, the Harnack inequality and Liouville's theorem. These are the prototypes of the estimates used on the Ricci flow, and this chapter is where their proofs are simplest.
By the end of this chapter you will be able to:
- derive the fundamental solution of the Laplacian, and prove that convolving with it solves Poisson's equation;
- prove the mean value property and its converse;
- deduce the strong maximum principle, uniqueness, smoothness, derivative estimates of every order, real-analyticity and Liouville's theorem;
- prove Weyl's lemma: a function that is harmonic in the weak sense is smooth and harmonic;
- prove a Harnack inequality from the mean value property;
- state Dirichlet's principle, prove it, and use the energy method to prove uniqueness.
Steady temperatures
A solid body with no internal heat sources or sinks, whose surface is held at given temperatures, settles into a steady temperature distribution . Fourier's law says heat flows down the gradient, , and conservation of energy says that in a steady state as much heat flows out of any small region as flows in, so , which for constant conductivity is (1A.10 Divergence, Curl and the Integral Theorems).
The first consequence is one that thermal engineers use daily: in a body with no internal heat sources, the hottest and coldest points are on the surface. A heat spreader bonded to a chip is hottest at the contact with the chip; a wall between a warm room and a cold street has its extreme temperatures on its two faces. This is the maximum principle (Theorem 2.3). The second is that the steady state is completely determined by the boundary temperatures (uniqueness), and depends on them stably: a change of at most in the boundary temperatures changes the interior temperature by at most (Corollary 2.4). The Dirichlet problem for Laplace's equation is well posed in exactly Hadamard's sense (6A.1 What a PDE Is).
In electrostatics the potential in a region with no charge is harmonic. Inside a closed conducting shell, with no charge inside, is harmonic and, since a conductor in equilibrium is an equipotential, constant on the boundary. By the maximum principle, a harmonic function that is constant on the boundary of a bounded region is constant inside. So the field inside is zero, whatever charges sit outside. Michael Faraday demonstrated the effect in 1836 by sitting in a room lined with metal foil while large charges were applied to its outside. The same mathematics explains why a car or an aircraft protects its occupants from lightning, and why microwave ovens and sensitive electronics are enclosed in metal (for oscillating fields the shielding is good only for wavelengths much larger than the holes in the mesh, which is a statement about a different equation).
The fundamental solution
Laplace's equation is invariant under rotations, so look first for radial solutions , . In , (Exercise 2.12), and the solutions of are for and for . With the right constants these give the fundamental solution
where is the volume of the unit ball (3A.5 Product Measures and Change of Variables), so that the unit sphere has area . The constants are chosen so that in the sense of distributions (4A.9 Distributions and Weak Derivatives): is the potential of a unit point charge, or the steady temperature from a unit point source.
Where do the constants come from? Differentiating, for and every ,
The flux of out of every sphere around the origin is : a unit amount of "heat" is produced at the origin and flows outward. That is what means physically, and the normalisation is chosen to make the flux exactly . In three dimensions , Newton's and Coulomb's potential, and is the inverse-square law.
The use of is that it solves Poisson's equation for every source by superposition: add up the responses to the point sources that make up .
Let have compact support, and let
Then and .
Proof. Regularity. Substituting , . The function is locally integrable (in polar coordinates, , since and are integrable). The difference quotients of in converge uniformly to its derivatives, because has compact support and bounded continuous second derivatives; so we may differentiate under the integral sign twice (3A.3 The Lebesgue Integral), and
which is continuous in by dominated convergence.
The singularity. Fix and , write (so that ), and split
The first piece is small: for and for .
Integrate by parts twice. On , where is smooth and has compact support, Green's identity (1A.10 Divergence, Curl and the Integral Theorems) with the outward normal of on gives
The boundary term is small: , which is for and for . For , integrate by parts again, using on :
On , , the reciprocal of the area of the sphere. So
as , because it is minus the average of the continuous function over the sphere of radius about .
Conclusion. for every , and letting gives .
The structure of this proof recurs whenever a singular kernel is used: cut out a small ball around the singularity, show the piece inside is negligible, integrate by parts outside, and find that the boundary term on the small sphere produces exactly the value at the centre. The same computation, with the heat kernel in place of , appears in 6A.3 The Heat Equation on ℝⁿ.
Two remarks on the hypotheses. The assumption is more than needed: Hölder continuity of suffices for , but mere continuity does not, which is the start of Schauder theory (6B.7 Schauder Theory and the Continuity Method). And for , as , while for , grows like : in the plane, a net source makes the potential unbounded, which is why two-dimensional potential theory feels different.
On a bounded region with boundary values, the fundamental solution is corrected by a harmonic function to vanish on the boundary, giving Green's function. For the ball this can be done explicitly by reflection in the sphere, and the result is Poisson's formula: the solution of in with on the boundary is
(Evans, section 2.2.4; derived in full in 6B.4 Green’s Functions, Separation of Variables and Transforms). In the plane this is the Poisson kernel of 5A.4 Harmonic Functions and Conformal Mapping. The kernel is positive, has total integral , and concentrates at the boundary point nearest as approaches the boundary: an approximate identity (3A.8 Convolution and Mollifiers).
The mean value property
Write for an average: is the average over a sphere, and the average over a ball.
Let be harmonic ( with ) on an open set , and let . Then
Proof. Let for . Differentiating under the integral (3A.3 The Lebesgue Integral),
where the third equality is the divergence theorem (1A.10 Divergence, Curl and the Integral Theorems), , together with the ratio . So is constant, and as by continuity. The ball average follows by integrating the sphere averages over in polar coordinates (3A.5 Product Measures and Change of Variables).
The proof shows more. If (subharmonic), then and : a subharmonic function lies below its averages. If (superharmonic) the inequality reverses. This is the content of "the Laplacian measures how compares with its averages", the heuristic of 2B.7 Fourier Series and the First Heat Equation, made exact (Figure 2.1).
The converse holds too: a continuous function with the mean value property on every small sphere is harmonic, and in particular smooth (Exercise 2.13). The mean value property is therefore a complete characterisation of harmonic functions, and it needs no derivatives to state. That makes it the right definition in settings where derivatives are not available, such as graphs: a function on the vertices of a graph is called harmonic if its value at each vertex is the average of its neighbours' values. The figure in Figure 2.2 was computed by exactly that definition on a grid.
Consequences of the mean value property
Let be open, bounded and connected, and harmonic in . Then
and if attains its maximum at an interior point, is constant in . The same holds for minima.
Proof. Suppose with . For ,
with equality only if throughout , since and is continuous. So the set is open; it is closed in by continuity, and non-empty, so it is all of by connectedness (2B.4 Connectedness). For minima apply this to .
This is the argument of 5A.2 Cauchy’s Theorem and Its Consequences's maximum modulus principle, now in every dimension. A different proof, which doesn't use the mean value property, works for general elliptic operators: at an interior maximum the Hessian is negative semidefinite (2B.8 Calculus in Several Variables), so there; it is the starting point of 6A.5 Maximum Principles.
On a bounded open set , the Dirichlet problem in , on , has at most one solution in . If , are harmonic with boundary values , , then .
Proof. The difference of two solutions is harmonic; apply the maximum principle to it and to its negative.
Smoothness
A harmonic function was defined as a function with . In fact it is , and the proof needs nothing but the mean value property. Let be a radial mollifier: a smooth function supported in with , and (3A.8 Convolution and Mollifiers). Write .
Let be continuous on and satisfy whenever . Then on . Consequently , and is harmonic.
Proof. For , write the convolution in polar coordinates about (3A.5 Product Measures and Change of Variables), using that is radial, :
The last integral is , by the same polar-coordinate computation applied to the constant . So on . The convolution of a locally integrable function with a smooth compactly supported kernel is smooth (differentiate under the integral, 3A.8 Convolution and Mollifiers), so is smooth on for every , hence on . Finally, a smooth function with the mean value property is harmonic, by Exercise 2.13.
The proposition says that the mean value property, a condition with no derivatives in it, already forces infinite differentiability. In particular a harmonic function is . The next result goes further and drops differentiability from the hypotheses entirely.
Let satisfy
that is, in the sense of distributions (4A.9 Distributions and Weak Derivatives). Then agrees almost everywhere with a smooth harmonic function.
Proof. Step 1: mollifications are harmonic. For , let , which is smooth. Differentiating under the integral,
since is a test function supported in , and and agree on functions of . So is harmonic on , and in particular has the mean value property there.
Step 2: the mollifications don't depend on . Let and work on . By Proposition 2.5 applied to the harmonic function , ; and likewise . Convolution is commutative and associative (3A.8 Convolution and Mollifiers), so
Step 3: pass to the limit. As , in on every compact subset of (3A.8 Convolution and Mollifiers). But by Step 2, on any compact the functions are all equal, for small enough, to one smooth harmonic function . So almost everywhere on , and since is a countable union of compact sets, almost everywhere on .
Hermann Weyl proved this in 1940, to show that weak and classical harmonic functions are the same. It is the prototype of every regularity theorem: a solution defined only weakly, as an integrable function satisfying the equation against test functions, is automatically smooth. In 6A.6 Weak Solutions and Elliptic Regularity the same conclusion is reached for general elliptic equations with variable coefficients, where no mean value property is available and the proof uses energy estimates instead.
Estimates on derivatives of every order
Each partial derivative of a harmonic function is harmonic too (derivatives commute with , and is smooth), so it has the mean value property. Combined with the divergence theorem this bounds derivatives by values.
Let be harmonic on and . Then
and for every multi-index with ,
Proof. First derivatives. By the ball form of the mean value property applied to the harmonic function , and the divergence theorem applied to the vector field ,
Since and the sphere has area , .
Higher derivatives. Let , and for let be the largest value of over all multi-indices and all points of the closed ball . A derivative of order is with , and is harmonic. At a point , the ball lies in , so the first-derivative estimate on that ball gives . Hence , and after steps . Since bounds , this is the claim.
A bound on on a ball controls all its derivatives at the centre, with the scaling : the real-variable form of the Cauchy estimates of 5A.2 Cauchy’s Theorem and Its Consequences. The scaling is forced: is harmonic whenever is, and its -th derivatives carry a factor . Every interior estimate in this book has this form, "derivatives of order on a ball of radius are bounded by times the size of the solution on a slightly bigger ball", and for the heat equation the corresponding factor is (6A.3 The Heat Equation on ℝⁿ), which is the same thing with replaced by .
Harmonic functions are analytic
The constants in Proposition 2.7 grow like , which is the growth rate of up to an exponential (since , from ). That is exactly what is needed for the Taylor series to converge.
Let be harmonic on and , with . Then the Taylor series of about converges to on the ball .
Proof. For , Taylor's theorem with remainder (2B.8 Calculus in Several Variables), applied to on , gives
for some point on the segment from to . Since , Proposition 2.7 gives . The multinomial theorem says . So the remainder is at most
which tends to as when .
Analyticity has a striking consequence, unique continuation: if two harmonic functions on a connected open set agree on some small ball, they agree everywhere (the set where all derivatives of their difference vanish is open by analyticity and closed by continuity). Harmonic functions are rigid in a way that heat flow at positive times inherits (6A.3 The Heat Equation on ℝⁿ), and that no merely smooth function has.
A bounded harmonic function on is constant.
Proof. If , Proposition 2.7 on the ball gives for every . Letting , every partial derivative vanishes at every point, so is constant.
The Harnack inequality
The maximum principle compares a harmonic function with its boundary values. The Harnack inequality compares a positive harmonic function with itself: its values at nearby points are comparable.
Let be harmonic on the ball . Then for all ,
More generally, for every connected open with compact, there is a constant depending only on and such that for every non-negative harmonic on .
Proof. Let . Then . Using the ball form of the mean value property and ,
Dividing, . For a general , let (positive because is compact and inside ). Cover by finitely many balls with centres in (2B.3 Compactness); each lies in , so on each ball the first part gives . Since is connected, any two of the balls that meet are joined by a chain of at most balls of the cover, each meeting the next (otherwise the balls reachable from one of them and the rest would split into two disjoint non-empty open sets). Along a chain the comparisons multiply, so . The constant depends on and through , but not on .
The constant doesn't depend on : a positive harmonic function cannot be large at one point and tiny at a nearby one. The Harnack inequality gives a second Liouville theorem: a harmonic function on that is bounded below is constant (Exercise 2.15). In two dimensions this was the rehearsal of 5A.2 Cauchy’s Theorem and Its Consequences, there proved with complex analysis.
The heat equation has a Harnack inequality too, but it must compare values at different times: a positive solution at a point now is bounded below by its value at a nearby point earlier, with a constant depending on the elapsed time (Moser's parabolic Harnack inequality, 6A.7 Parabolic Regularity). Li and Yau found a sharp differential form of it on manifolds with non-negative Ricci curvature (6A.12 Entropy, Information and Diffusion, 9B.7 The Heat Equation on a Manifold), Hamilton found one for the Ricci flow itself (11B.2 Ancient Solutions and the Harnack Inequality), and Perelman one for his conjugate heat kernel (12A.9 Pseudolocality). Each says, in its setting, what the elementary above says: positive solutions of diffusion equations can't vary too wildly.
Dirichlet's principle
Harmonic functions have a variational characterisation: they minimise energy. For on a bounded region , let
the Dirichlet energy.
Let be harmonic with on . Then for every with on , with equality only if . Conversely, a minimiser of with these boundary values is harmonic.
Proof. Write with on . Then
integrating by parts (1A.10 Divergence, Curl and the Integral Theorems) with no boundary term since there. So , with equality only if , i.e. . Conversely, if minimises, then for all such , which forces (4A.9 Distributions and Weak Derivatives).
The same integration by parts gives a second proof of uniqueness, the energy method, which needs no maximum principle and therefore works for systems and for equations of higher order, where maximum principles fail. If and both solve in with the same boundary values, then is harmonic and vanishes on , so
Hence , so is constant on each component of , and the constant is because on the boundary. Energy methods of exactly this shape prove uniqueness for the heat equation (6A.3 The Heat Equation on ℝⁿ) and, in the form of energy estimates, existence for weak solutions (6A.6 Weak Solutions and Elliptic Regularity).
So Laplace's equation is the Euler–Lagrange equation of the Dirichlet energy. Riemann used this principle in 1851 to construct harmonic functions, assuming a minimiser exists; Weierstrass objected that it need not; Hilbert's direct method (4A.7 Weak Convergence and the Direct Method) and the weak solutions of 6A.6 Weak Solutions and Elliptic Regularity repair the argument. In 6A.11 Calculus of Variations and Gradient Flows the heat equation is shown to be the gradient flow of the same energy: heat flows so as to decrease as fast as possible.
A soap film spanning a wire frame minimises area, because surface tension makes its energy proportional to its area. If the film is the graph of over a region , its area is , and its Euler–Lagrange equation is the minimal surface equation (6A.11 Calculus of Variations and Gradient Flows). When the frame is nearly flat, is small, , and the area is approximately . To first order the film is the graph of a harmonic function. So a nearly flat soap film is a saddle, never a dome or a bowl: it has no interior maximum or minimum height (Figure 2.2).
On a Riemannian manifold, a coordinate system in which each coordinate function is harmonic (for the Laplacian of the metric) is called harmonic. In harmonic coordinates the Ricci tensor takes the form
where is applied to each component and is quadratic in the first derivatives of (DeTurck and Kazdan, 1981). Read the Ricci flow in these coordinates and it is : a heat equation for the metric. This is the precise sense of the slogan, and the idea behind DeTurck's trick (11A.1 The Equation and Its First Solutions, 11A.4 Short-Time Existence and Uniqueness). Harmonic coordinates are also the best coordinates for compactness theorems (9B.4 Convergence of Manifolds).
History
Pierre-Simon Laplace used the equation that bears his name in the 1780s in his work on gravitational attraction; Siméon Denis Poisson added the source term in 1813. George Green's 1828 Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism introduced Green's functions and the integral identities behind them. Carl Friedrich Gauss proved the mean value property for harmonic functions in three dimensions in his 1840 memoir on the theory of attraction. Riemann named the Dirichlet principle after his teacher and used it in 1851. Axel Harnack proved his inequality in 1887, for harmonic functions in the plane. Faraday's shielding experiment dates from 1836.
Harmonic functions are the steady states of diffusion. The fundamental solution solves and gives the solution of Poisson's equation by convolution; on a ball, Poisson's formula solves the Dirichlet problem. Every harmonic function equals its average over spheres and balls, and this alone gives the strong maximum principle, uniqueness and stability for the Dirichlet problem, smoothness, derivative estimates with the scaling , real-analyticity, Liouville's theorem and the Harnack inequality. Weyl's lemma: weakly harmonic functions are smooth. Harmonic functions minimise the Dirichlet energy, and the energy method gives uniqueness without a maximum principle. 6A.3 The Heat Equation on ℝⁿ turns to the heat equation itself.
Exercises
Show that for on , . Deduce that is harmonic away from , and that has .
Solution
, and . Summing over : . For : . For : .
Let satisfy for every ball with . Show that . (If , then on a small ball, and the formula for in the proof of Theorem 2.2 gives , a contradiction.)
Solution
Suppose , say (otherwise replace by ). By continuity of there is with and on . With , the computation in the proof of Theorem 2.2 (which used only , not harmonicity) gives for . But by hypothesis for every such , so : a contradiction. Hence everywhere.
(a) Use Proposition 2.7 to show that a harmonic function on with is affine. (b) More generally, show that if for some integer , then is a polynomial of degree at most .
Hint
Apply the estimate for derivatives of order on the ball and let .
Solution
(b) contains (a) as the case . Fix and . On , , so
because the power of in the denominator is larger. So every derivative of order vanishes identically, and a smooth function all of whose derivatives of order vanish is a polynomial of degree at most (by Taylor's theorem with remainder, the remainder of order is zero).
Let be harmonic on and bounded below, with . Apply the Harnack inequality to on and let to show that .
Solution
For all , , so . As the right side tends to , because , while the left side is non-decreasing in . So for every .
On the unit disc, the harmonic function with boundary values is . For , the function has the same boundary values. Show that , and check that it is smallest at , where it equals .
Solution
In polar coordinates . So . And with equality only at .
On the path graph with vertices , call harmonic at if . (a) Show that the harmonic functions with given , are exactly the linear ones. (b) Interpret as the probability that a random walk starting at reaches before , when and (the gambler's ruin). This is the discrete version of the link between harmonic functions and Brownian motion (6A.3 The Heat Equation on ℝⁿ, 6D.1 Brownian Motion).
Solution
(a) says : the increments are constant, so , and is fixed by the boundary values. Linear functions satisfy the condition, so they are exactly the solutions. (b) Let be the probability of reaching before from . Clearly and . From the first step goes to with probability each, and the walk then starts afresh, so : is harmonic with these boundary values, hence by (a). (Uniqueness, the discrete maximum principle, is what makes "hence" valid.) A gambler with pounds betting pound at a time on fair coin tosses reaches pounds before ruin with probability .
Let be the sphere of radius about the origin in , carrying total mass spread uniformly, and let . The potential of the shell is . (a) For , use the mean value property of the harmonic function on to show : outside, the shell attracts like a point mass at its centre. (b) For , show that is constant inside, so the shell exerts no force there. (For (b), is harmonic inside and radially symmetric, so it is a radial harmonic function that is bounded at the origin.)
Solution
(a) For , the function is harmonic on a neighbourhood of , so its average over equals its value at the centre, . The average is , so . (b) For , is harmonic in (differentiate under the integral; is harmonic in for ), and it depends only on by symmetry. Radial harmonic functions are (from ), and is bounded near , so and is constant, with value (evaluate at ). Its gradient, the force, vanishes. Integrating over shells gives the same results for any spherically symmetric mass distribution, the theorem Newton needed for planets of finite size.
(a) Let be harmonic on and suppose in . Show that is (equal almost everywhere to) a harmonic function. (b) Deduce that a uniform limit of harmonic functions is harmonic. Contrast with 2B.5 Uniform Convergence and Arzelà–Ascoli: a uniform limit of smooth functions need not even be differentiable.
Solution
(a) For a test function , , and . So , and Weyl's lemma applies. (b) Uniform convergence on compact sets implies convergence, and a continuous function equal almost everywhere to a continuous harmonic function equals it everywhere. The difference from 2B.5 Uniform Convergence and Arzelà–Ascoli is the equation: it forces the limit to be smooth.
Let be harmonic on an open set of . (a) Show that
where . (b) Deduce that is subharmonic, so it satisfies the maximum principle: on a bounded region, is largest on the boundary. On a Riemannian manifold the same computation produces an extra term ; that is the Bochner formula (9A.6 The Laplacian and the Bochner Formula), and it is how Ricci curvature enters every estimate for the Laplacian and the heat equation, from Li–Yau (6A.12 Entropy, Information and Diffusion) to Perelman. The parabolic version, , is Bernstein's method in 6A.7 Parabolic Regularity.
Solution
(a) , using . (b) ; the maximum principle for subharmonic functions follows from the inequality exactly as in Theorem 2.3.
Free resources for this chapter
Chosen for what this chapter covers, and all free to read or watch. Links checked Nov 6, 2026.
Read
- Notes Lecture 6: Laplace’s and Poisson’s equationsMIT OpenCourseWare 18.152 Introduction to PDEs (Fall 2011)Harmonic functions and the mean value property.
- Notes Lecture 9: Poisson’s equation: Poisson’s formula, Harnack’s inequality, and Liouville’s theoremMIT OpenCourseWare 18.152 Introduction to PDEs (Fall 2011)Poisson’s formula, Harnack’s inequality and Liouville’s theorem.
- Reference Dirichlet's principleWikipediaHarmonic functions as minimisers of energy.
Watch 3 lectures and talks
- Video Harmonic functions / Mean-value property (Cultivating Complex Analysis 7.2.2)Jiří Lebl, Cultivating Complex Analysis lecturesHarmonic functions characterised by the mean value property, and Harnack’s first theorem.
- Video The Mean-Value Property, Harmonic Functions and the Maximum PrincipleT. E. Venkata Balaji (IIT Madras), NPTEL Advanced Complex AnalysisThe mean value property and the maximum principle for harmonic functions.
- Video Complex analysis: Harmonic functionsRichard Borcherds, Complex Analysis (online undergraduate course)When a harmonic function in the plane is the real part of a holomorphic one.
© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.