Lecture 6: harmonic functions
1. Harmonic functions
We begin with an important problem from analysis, apparently unrelated to complex numbers: the differential equation
for a function . This is Laplace’s equation; the operator is called the Laplacian , so we could more simply rewrite the equation as
Solutions to this differential equation are called harmonic functions. They have many applications both within pure mathematics and to numerous other fields.
We will be interested in the case , so
We claim that these harmonic functions of two variables have a close relation to analytic functions, via the Cauchy–Riemann equations:
Proposition.
If is an analytic function on a domain , then viewing as a subset of the plane, and are harmonic functions on .
This is a corollary of the Cauchy–Riemann equations: we have
so
and therefore
i.e. is harmonic. A similar argument works for .
Given a harmonic function on a domain , it is then natural to ask if it “comes from” an analytic function on , i.e. whether there exists another harmonic function on such that is an analytic function, and if so whether such an is unique. (You could also swap the places of and , but this amounts to multiplying by and so is equivalent.) Such a function is called a harmonic conjugate of , so this is equivalent to asking whether has a harmonic conjugate on .
It turns out that it’s not too hard to show uniqueness, up to an additive constant: that is, if and are both harmonic conjugates of , then is constant. Indeed, and are, by assumption, both analytic functions, so so is . However, since and are real-valued, so is , and we saw last time that a real-valued analytic function must be constant.
The existence of a harmonic conjugate is more subtle. Let’s try an example: let . First, we claim that this is a harmonic function. Indeed, both second partial derivatives vanish, so everywhere. How can we find a harmonic conjugate for ?
Well, we should solve the Cauchy–Riemann equations:
The first equation tells us that and the second that , so equating these and setting gives while setting gives . Letting , we have , so
for some constant . This gives the analytic function
which is visibly analytic in ; this is in fact already guaranteed by our construction of , but it’s good to check. So is a harmonic conjugate of for any constant ; and by the uniqueness above, these are the only harmonic conjugates of .
This reasoning might lead you to believe that we can always find a harmonic conjugate. However, this is not true: it was implicitly important in the above that we were working on the entire complex plane . If we had a different domain, such as , this can fail. Consider for example , defined on this domain . We have
so is harmonic on . If is a harmonic conjugate of , applying the same method we have
We could integrate as before, and we would find . But we know very well that there is no way to choose a function which is continuous everywhere in : we had to choose a branch cut. For to be harmonic, it must be continuous, so there is no harmonic conjugate to on .
Nevertheless, under certain conditions on we can show that the above method will always work: for example if is the entire complex plane, an open disk, or a rectangle, or more generally a star-shaped domain. More precisely, the argument can only fail if it is possible to draw a path in which contains inside of it a point which is not in (in the example above, this would have been the origin). If does not have any “holes,” this is impossible (the precise version is: if is simply connected) and so the argument works.
We’ll come back to the maximally general version later. For the moment, let’s assume we have a star-shaped domain , with respect to some point . For any point in , we can choose a path connecting and , and integrate along it it. The equation
gives
for some constant ; in particular a harmonic conjugate exists. For the case as above, this gives
recovering the same harmonic conjugate as above after absorbing the extra additive constants into .
2. The mean value property
Suppose is a continuous function on a domain . If and is the circle around of radius , i.e. for any small enough that is contained in , we can consider the “average value” of on the circle:
(If we viewed as a subset of and , we could write this as .) This is a continuous function of so long as is not too high; must contain some disk around of radius , so this is well-defined for . As , each point on which we’re estimating approaches and so . In general though for the average value may differ from , e.g. if is a local maximum.
If is harmonic, however, we claim that the average value at any radius is equal to on the nose. That is: if is harmonic on , then
This is quite a special property: it means we can detect the value on the center of the loop only by evaluating the function on the perimeter!
The proof of this fact is not too hard, but it does use some multivariable integral calculus, and we are still mostly in the “differential” portion of this class, so we’ll defer the proof until next unit.
More generally, we’ll say that has the mean value property at if for any , and that has the mean value property on if it has the mean value property everywhere in . So we can restate the above as the fact that harmonic functions have the mean value property. We will, hopefully, soon see that this is a characterizing property: any function satisfying the mean value property is harmonic. Note that a priori, is only continuous, while harmonic functions have to be twice differentiable, so this is actually quite surprising!
3. The maximum principle
Recall the fact that a continuous function on a compact set is bounded and attains its maximum. A domain , however, is (at least in general) not compact, since it is open, while compact sets are closed. (One can have sets which are both open and closed, but not interesting ones in our setting.) If is a function on which is further harmonic, we claim that almost the opposite is true: will never attain its maximum, unless it is constant. More precisely:
Proposition.
If is a harmonic function and for some we have for all , then if for , then is constant.
This is sometimes called the strict maximum principle (for real-valued harmonic functions).
The proof uses some topology, which I’ll just briefly summarize: since is a domain, i.e. an open and (path-)connected subset of the plane, it can’t be partitioned into two nonempty open sets (indeed, this is the definition of being connected). So we’ll write down two disjoint open sets inside whose union is , and then conclude that one of them has to be empty.
First, let be the set of points such that . This is an open condition, so it’s an open set. Its complement is the set of points such that ; since we know that , this is equivalently the set of points with . We’d like to show that this is open. If we knew this, then the above argument would tell us that either is empty, so and doesn’t attain its maximum on ; or is empty, so for every , i.e. is constant.
To show that is open, we need to show that for every , we can find an open disk of some radius centered at which is contained in . For , we have . Since is harmonic, it satisfies the mean value property, so there is some such that for any ,
Since for all , the integrand is nonnegative for all ; so the only way the integral can be is if in fact for all . Hence for every contained in the open disk of radius centered at , we can write it as for some and , hence , i.e. ; so contains this disk, and therefore is an open set, so we’re done.
A consequence is the strict maximum principle for complex harmonic functions:
Proposition.
If is a bounded harmonic complex-valued function on such that for all and for some , then is constant on .
This is not quite immediate, since isn’t necessarily harmonic. However, the real and imaginary parts of are harmonic. Multiplying by for some , we can safely assume that is real; so if , then , , so attains its maximum and is therefore constant. Therefore satisfies implies , i.e. for all , so is constant.
Finally, we can extend to the boundary to get the maximum principle:
Proposition.
If is a complex-valued harmonic function on a bounded domain such that extends continuously to and for all , then for all .
That is: a harmonic function can never be higher on the interior of such a domain then on its boundary.
To see this, observe that is a closed and bounded set, hence compact, so attains its maximum somewhere on this set. If it attained it on , by the above principles it would be constant, hence also constant on with the same value, so the principle trivially holds. Otherwise, it attains its maximum on , so the principle again holds.