# Harmonic function

A harmonic function defined on an annulus.

In mathematics, mathematical physics and the theory of stochastic processes, a harmonic function is a twice continuously differentiable function f : UR (where U is an open subset of Rn) which satisfies Laplace's equation, i.e.

$\frac{\partial^2f}{\partial x_1^2} + \frac{\partial^2f}{\partial x_2^2} + \cdots + \frac{\partial^2f}{\partial x_n^2} = 0$

everywhere on U. This is usually written as

$\nabla^2 f = 0$

or

$\textstyle \Delta f = 0$

## Examples

Examples of harmonic functions of two variables are:

• The real or imaginary part of any holomorphic function
• The function $\,\! f(x,y)=e^{x} \sin y$; this is a special case of the example above, as $f(x,y)=\operatorname{Im}(e^{x+iy})$, and $e^{x+iy}$ is a holomorphic function.
• The function
$\,\! f(x_1,x_2)=\ln (x_1^2+x_2^2)$
defined on $\mathbb{R}^2 \setminus \lbrace 0 \rbrace$ (e.g. the electric potential due to a line charge, and the gravity potential due to a long cylindrical mass)

Examples of harmonic functions of three variables are given in the table below with $r^2=x^2+y^2+z^2$:

Function Singularity
$\frac{1}{r}$ Unit point charge at origin
$\frac{x}{r^3}$ x-directed dipole at origin
$-\ln(r^2-z^2)\,$ Line of unit charge density on entire z-axis
$-\ln(r+z)\,$ Line of unit charge density on negative z-axis
$\frac{x}{r^2-z^2}\,$ Line of x-directed dipoles on entire z axis
$\frac{x}{r(r+z)}\,$ Line of x-directed dipoles on negative z axis

Harmonic functions that arise in physics are determined by their singularities and boundary conditions (such as Dirichlet boundary conditions or Neumann boundary conditions). On regions without boundaries, adding the real or imaginary part of any entire function will produce a harmonic function with the same singularity, so in this case the harmonic function is not determined by its singularities; however, we can make the solution unique in physical situations by requiring that the solution goes to 0 as you go to infinity. In this case, uniqueness follows by Liouville's theorem.

The singular points of the harmonic functions above are expressed as "charges" and "charge densities" using the terminology of electrostatics, and so the corresponding harmonic function will be proportional to the electrostatic potential due to these charge distributions. Each function above will yield another harmonic function when multiplied by a constant, rotated, and/or has a constant added. The inversion of each function will yield another harmonic function which has singularities which are the images of the original singularities in a spherical "mirror". Also, the sum of any two harmonic functions will yield another harmonic function.

Finally, examples of harmonic functions of n variables are:

• The constant, linear and affine functions on all of Rn (for example, the electric potential between the plates of a capacitor, and the gravity potential of a slab)
• The function $\,\! f(x_1,\dots,x_n)=({x_1}^2+\cdots+{x_n}^2)^{1-n/2}$ on $\mathbb{R}^n \setminus \lbrace 0 \rbrace$ for n > 2.

## Remarks

The set of harmonic functions on a given open set U can be seen as the kernel of the Laplace operator Δ and is therefore a vector space over R: sums, differences and scalar multiples of harmonic functions are again harmonic.

If f is a harmonic function on U, then all partial derivatives of f are also harmonic functions on U. The Laplace operator Δ and the partial derivative operator will commute on this class of functions.

In several ways, the harmonic functions are real analogues to holomorphic functions. All harmonic functions are analytic, i.e. they can be locally expressed as power series. This is a general fact about elliptic operators, of which the Laplacian is a major example.

The uniform limit of a convergent sequence of harmonic functions is still harmonic. This is true because every continuous function satisfying the mean value property is harmonic. Consider the sequence on (−∞, 0) × R defined by $\scriptstyle f_n(x,y) = \frac1n \exp(nx)\cos(ny)$. This sequence is harmonic and converges uniformly to the zero function; however note that the partial derivatives are not uniformly convergent to the zero function (the derivative of the zero function). This example shows the importance of relying on the mean value property and continuity to argue that the limit is harmonic.

## Connections with complex function theory

The real and imaginary part of any holomorphic function yield harmonic functions on R2 (these are said to be a pair of harmonic conjugate functions). Conversely, any harmonic function u on an open subset Ω of R2 is locally the real part of a holomorphic function. This is immediately seen observing that, writing z = x + iy, the complex function g(z) := ux − i uy is holomorphic in Ω because it satisfies the Cauchy–Riemann equations. Therefore, g has locally a primitive f, and u is the real part of f up to a constant, as ux is the real part of $\scriptstyle f\,^\prime=g$ .

Although the above correspondence with holomorphic functions only holds for functions of two real variables, harmonic functions in n variables still enjoy a number of properties typical of holomorphic functions. They are (real) analytic; they have a maximum principle and a mean-value principle; a theorem of removal of singularities as well as a Liouville theorem holds for them in analogy to the corresponding theorems in complex functions theory.

## Properties of harmonic functions

Some important properties of harmonic functions can be deduced from Laplace's equation.

### Regularity theorem for harmonic functions

Harmonic functions are infinitely differentiable. In fact, harmonic functions are real analytic.

### Maximum principle

Harmonic functions satisfy the following maximum principle: if K is any compact subset of U, then f, restricted to K, attains its maximum and minimum on the boundary of K. If U is connected, this means that f cannot have local maxima or minima, other than the exceptional case where f is constant. Similar properties can be shown for subharmonic functions.

### The mean value property

If B(x, r) is a ball with center x and radius r which is completely contained in the open set Ω ⊂ Rn, then the value u(x) of a harmonic function u: Ω → R at the center of the ball is given by the average value of u on the surface of the ball; this average value is also equal to the average value of u in the interior of the ball. In other words

$u(x) = \frac{1}{n \omega_n r^{n-1}}\int_{\partial B(x,r)} u\, d\sigma = \frac{1}{\omega_n r^n}\int_{B (x,r)} u\, dV$

where ωn is the area of the unit sphere in n dimensions and σ is the n-1 dimensional surface measure .

Conversely, all locally integrable functions satisfying the (volume) mean-value property are both infinitely differentiable and harmonic.

In terms of convolutions, if

$\chi_r:=\frac{1}{|B(0,r)|}\chi_{B(0,r)}=\frac{1}{\omega_n r^n}\chi_{B(0,r)}$

denotes the characteristic function of the ball with radius r about the origin, normalized so that $\scriptstyle \int_{\mathbf{R}^n}\chi_r\, dx=1$, the function u is harmonic on Ω if and only if

$u(x) = u*\chi_r(x)\;$

as soon as B(x, r) ⊂ Ω.

Sketch of the proof. The proof of the mean-value property of the harmonic functions and its converse follows immediately observing that the non-homogeneous equation, for any 0 < s < r

$\Delta w = \chi_r - \chi_s\;$

admits an easy explicit solution wr,s of class C1,1 with compact support in B(0, r). Thus, if u is harmonic in Ω

$0=\Delta u * w_{r,s} = u*\Delta w_{r,s}= u*\chi_r - u*\chi_s\;$

holds in the set Ωr of all points x in $\Omega$ with $\mathrm{dist}(x,\partial\Omega)>r$ .

Since u is continuous in Ω, ur converges to u as s → 0 showing the mean value property for u in Ω. Conversely, if u is any $L^1_{\mathrm{loc}}\;$ function satisfying the mean-value property in Ω, that is,

$u*\chi_r = u*\chi_s\;$

holds in Ωr for all 0 < s < r then, iterating m times the convolution with χr one has:

$u = u*\chi_r = u*\chi_r*\cdots*\chi_r\,,\qquad x\in\Omega_{mr},$

so that u is $C^{m-1}(\Omega_{mr})\;$ because the m-fold iterated convolution of χr is of class $C^{m-1}\;$ with support B(0, mr). Since r and m are arbitrary, u is $C^{\infty}(\Omega)\;$ too. Moreover

$\Delta u * w_{r,s} = u*\Delta w_{r,s} = u*\chi_r - u*\chi_s=0\;$

for all 0 < s < r so that Δu = 0 in Ω by the fundamental theorem of the calculus of variations, proving the equivalence between harmonicity and mean-value property.

This statement of the mean value property can be generalized as follows: If h is any spherically symmetric function supported in B(x,r) such that ∫h = 1, then u(x) = h * u(x). In other words, we can take the weighted average of u about a point and recover u(x). In particular, by taking h to be a C function, we can recover the value of u at any point even if we only know how u acts as a distribution. See Weyl's lemma.

### Harnack's inequality

Let u be a non-negative harmonic function in a bounded domain Ω. Then for every connected set

$V \subset \overline{V} \subset \Omega,$

Harnack's inequality

$\sup_V u \le C \inf_V u$

holds for some constant C that depends only on V and Ω.

### Removal of singularities

The following principle of removal of singularities holds for harmonic functions. If f is a harmonic function defined on a dotted open subset $\scriptstyle\Omega\,\setminus\,\{x_0\}$ of Rn , which is less singular at x0 than the fundamental solution, that is

$f(x)=o\left( \vert x-x_0 \vert^{2-n}\right),\qquad\text{as }x\to x_0,$

then f extends to a harmonic function on Ω (compare Riemann's theorem for functions of a complex variable).

### Liouville's theorem

If f is a harmonic function defined on all of Rn which is bounded above or bounded below, then f is constant (compare Liouville's theorem for functions of a complex variable).

Edward Nelson gave a particularly short proof [1] of this theorem, using the mean value property mentioned above:

Given two points, choose two balls with the given points as centers and of equal radius. If the radius is large enough, the two balls will coincide except for an arbitrarily small proportion of their volume. Since f is bounded, the averages of it over the two balls are arbitrarily close, and so f assumes the same value at any two points.

## Generalizations

### Weakly harmonic function

A function (or, more generally, a distribution) is weakly harmonic if it satisfies Laplace's equation

$\Delta f = 0\,$

in a weak sense (or, equivalently, in the sense of distributions). A weakly harmonic function coincides almost everywhere with a strongly harmonic function, and is in particular smooth. A weakly harmonic distribution is precisely the distribution associated to a strongly harmonic function, and so also is smooth. This is Weyl's lemma.

There are other weak formulations of Laplace's equation that are often useful. One of which is Dirichlet's principle, representing harmonic functions in the Sobolev space H1(Ω) as the minimizers of the Dirichlet energy integral

$J(u):=\int_\Omega |\nabla u|^2\, dx$

with respect to local variations, that is, all functions $u\in H^1(\Omega)$ such that J(u) ≤ J(u + v) holds for all $v\in C^\infty_c(\Omega),$ or equivalently, for all $v\in H^1_0(\Omega).$

### Harmonic functions on manifolds

Harmonic functions can be defined on an arbitrary Riemannian manifold, using the Laplace–Beltrami operator Δ. In this context, a function is called harmonic if

$\ \Delta f = 0.$

Many of the properties of harmonic functions on domains in Euclidean space carry over to this more general setting, including the mean value theorem (over geodesic balls), the maximum principle, and the Harnack inequality. With the exception of the mean value theorem, these are easy consequences of the corresponding results for general linear elliptic partial differential equations of the second order.

### Subharmonic functions

A C2 function that satisfies Δf ≥ 0 is called subharmonic. This condition guarantees that the maximum principle will hold, although other properties of harmonic functions may fail. More generally, a function is subharmonic if and only if, in the interior of any ball in its domain, its graph lies below that of the harmonic function interpolating its boundary values on the ball.

### Harmonic forms

One generalization of the study of harmonic functions is the study of harmonic forms on Riemannian manifolds, and it is related to the study of cohomology. Also, it is possible to define harmonic vector-valued functions, or harmonic maps of two Riemannian manifolds, which are critical points of a generalized Dirichlet energy functional (this includes harmonic functions as a special case, a result known as Dirichlet principle). This kind of harmonic maps appear in the theory of minimal surfaces. For example, a curve, that is, a map from an interval in R to a Riemannian manifold, is a harmonic map if and only if it is a geodesic.

### Harmonic maps between manifolds

If M and N are two Riemannian manifolds, then a harmonic map u : MN is defined to be a critical point of the Dirichlet energy

$D[u] = \frac{1}{2}\int_M \|du\|^2\,d\operatorname{Vol}$

in which du : TMTN is the differential of u, and the norm is that induced by the metric on M and that on N on the tensor product bundle T*Mu−1 TN.

Important special cases of harmonic maps between manifolds include minimal surfaces, which are precisely the harmonic immersions of a surface into three-dimensional Euclidean space. More generally, minimal submanifolds are harmonic immersions of one manifold in another. Harmonic coordinates are a harmonic diffeomorphism from a manifold to an open subset of a Euclidean space of the same dimension.