Harmonic Functions and Holomorphy
Why does the temperature distribution on a metal plate satisfy the same equation as the electrostatic potential in a vacuum? The real part of a holomorphic function also satisfies this equation. This is not a coincidence. It is a structural fact at the heart of complex analysis. The Cauchy–Riemann equations characterize holomorphy. They force both the real and imaginary parts of a holomorphic function to solve Laplace's equation. This turns complex analysis into a powerful engine for solving two-dimensional problems in physics and engineering. Holomorphic functions are far easier to construct and manipulate than solutions of a partial differential equation found by direct methods. The link runs in both directions. Every holomorphic function decomposes into a pair of harmonic functions. These are its real and imaginary parts. They are related by a partner condition called being harmonic conjugates. Conversely, on suitably simple domains, every harmonic function arises this way. It is the real part of some holomorphic function. This function is unique up to an additive imaginary constant. This equivalence lets one transport theorems freely between the two worlds. The maximum principle, mean value property, and smoothness results for harmonic functions all trace back to complex-analytic machinery. Conversely, the classification of holomorphic functions is illuminated by potential theory. The big picture is that holomorphy is a rigidity phenomenon. A single complex differentiability condition packages together an enormous amount of real analytic structure. Harmonicity captures exactly the "shadow" this rigidity casts. This shadow falls onto each of the two real coordinate functions separately. Understanding this shadow is the first step toward Conformal Mappings. The geometric meaning of holomorphy — angle- and orientation-preservation — is intimately tied to how harmonic level curves behave. This article makes the correspondence precise. We define harmonic functions and harmonic conjugates. We prove the fundamental theorem linking them to holomorphic functions on simply connected domains. We work through two non-trivial examples. We show exactly where the correspondence breaks down when the domain is not simply connected.
- A function is harmonic if it is and satisfies Laplace's equation .
- If is holomorphic, both and are automatically harmonic, via the Cauchy–Riemann equations.
- Two harmonic functions are harmonic conjugates when is holomorphic — a strictly asymmetric relation.
- On a simply connected domain, every harmonic has a harmonic conjugate, unique up to an additive real constant.
- Simple connectivity is essential: on an annulus, is harmonic but has no single-valued harmonic conjugate.
- Key idea: holomorphy is exactly the pairing of two harmonic functions by the Cauchy–Riemann equations, so complex analysis is a factory for solving Laplace's equation in the plane.
Where this lives today
The harmonic–holomorphic correspondence underlies two-dimensional potential theory: steady-state heat flow, electrostatics in the plane, and incompressible irrotational fluid flow are all modeled by harmonic potentials and their harmonic-conjugate stream functions, letting engineers solve boundary value problems by finding an appropriate conformal map (this is the classical technique of "complex potentials" in aerodynamics, e.g. Joukowski airfoil theory). In electrical engineering, harmonic functions model capacitance and resistance distributions in planar conductors. In pure mathematics, the correspondence is the seed of Hodge theory and the theory of harmonic forms on Riemann surfaces, and of the theory of subharmonic functions used in pluripotential theory and several complex variables. In probability, harmonic functions are exactly the functions annihilated by the generator of planar Brownian motion, giving a probabilistic (martingale) interpretation of the mean value property; this feeds into the modern theory of Brownian motion and Dirichlet problems. In numerical analysis and computer graphics, discrete harmonic functions (solutions of the discrete Laplace equation on graphs/meshes) are used for mesh parameterization and image processing, directly inspired by the continuous theory here. Finally, this article's construction is the essential stepping stone toward Conformal Mappings and the Riemann Mapping Theorem, where harmonic conjugates supply the angle-preserving coordinate systems used to transplant boundary value problems between domains.
Ask the tutor: Can you show me why the maximum principle for harmonic functions follows from the maximum modulus principle for holomorphic functions?
Let be open. A function is harmonic on if: 1. (all second partial derivatives exist and are continuous), and 2. satisfies Laplace's equation:
Given a harmonic function on , a function is called a harmonic conjugate of if is harmonic on and the pair satisfies the Cauchy–Riemann equations:
Equivalently, is a harmonic conjugate of if and only if is holomorphic on . Note the relation is not symmetric: if is a harmonic conjugate of , then (not ) is a harmonic conjugate of , since holomorphic gives holomorphic.
Intuition
The Cauchy–Riemann equations are two coupled first-order PDEs relating and . Differentiating the first equation with respect to , and the second with respect to , gives
If so that mixed partials commute (, guaranteed once we know holomorphic functions are , indeed real-analytic), adding these yields . The same computation with the roles of swapped shows is harmonic too. So harmonicity of both real and imaginary parts is an automatic corollary of holomorphy — it costs nothing extra. Geometrically, the level curves and of a holomorphic function with are orthogonal wherever they cross: the gradient vectors and satisfy . This orthogonal grid of level curves is the seed of Conformal Mappings: holomorphic maps carry orthogonal families to orthogonal families, and can be read as "isothermal coordinates" adapted to . Physically, if represents a steady-state temperature (or electrostatic potential), Laplace's equation says has no local maxima or minima in the interior — heat flows without sources or sinks. The conjugate traces the "streamlines" — level curves along which no heat flows, orthogonal to the isotherms .
Let be a domain (open and connected).
(a) If is holomorphic, then and are each harmonic on , and is a harmonic conjugate of .
(b) If in addition is simply connected, then every harmonic function admits a harmonic conjugate on , and is unique up to an additive real constant. Consequently every harmonic function on a simply connected domain is (locally and globally on ) the real part of a holomorphic function on .
If is holomorphic on an open set , then is infinitely complex-differentiable on ; in particular, writing , both and are as functions of , and all mixed partial derivatives of and commute.
(Lemma, sketch of a standard prior result, used as input.) This is the classical regularity theorem for holomorphic functions, proved via Cauchy's integral formula: if is holomorphic on and , then for ,
and one differentiates under the integral sign (justified by uniform convergence of difference quotients on compact subsets) to get, for every ,
This shows has complex derivatives of all orders, hence is real-analytic in (its Taylor series in converges locally and can be re-expanded in ), hence as a map , hence its partials commute by Clairaut's/Schwarz's theorem. We take this regularity fact — a foundational prerequisite result about Holomorphic Functions — as known input rather than reproving it here, since re-deriving it would require the same Cauchy integral machinery already established for holomorphic functions.
∎Proof of the Theorem.
(a) Suppose is holomorphic on . By definition of complex differentiability, satisfy the Cauchy–Riemann equations
at every point of (this is the standard derivation: computing as the limit of the difference quotient along the real axis gives , and along the imaginary axis gives ; equating real and imaginary parts of these two expressions yields the two equations above). By the regularity Lemma above, , so in particular and all mixed partials commute. Differentiate the first Cauchy–Riemann equation in and the second in :
Since (Schwarz's theorem, applicable because ), adding gives
So is harmonic. Symmetrically, differentiate the first equation in and the second in :
Since , subtracting gives , so is harmonic. Since are both harmonic and satisfy the Cauchy–Riemann equations, is by definition a harmonic conjugate of . This proves (a).
(b) Now suppose is simply connected and is harmonic on . We must construct with , on . Construction of a candidate 1-form. Define a differential -form on :
This is well-defined and since . We claim is closed, i.e. . Writing with , , closedness means :
and is exactly the statement , i.e. , which holds because is harmonic. So is closed. Existence of a potential via simple connectivity. On a simply connected domain, every closed -form is exact: fixing a basepoint , define
where is any piecewise- path in from to . This is well defined (independent of the choice of path) because for any two such paths , the closed loop bounds (as is simply connected, the loop is null-homotopic in ), and Green's theorem applied to a disk-topology region — or more precisely the homotopy-invariance of the line integral of a closed form, which follows by approximating the homotopy by a mesh of small rectangles/triangles on which Green's theorem applies and kills each contribution — gives
(This is the standard Poincaré lemma / path-independence argument for closed forms on simply connected domains.) Hence is a well-defined single-valued function on , and by construction of the line integral of a -form,
i.e. and : the Cauchy–Riemann equations hold for . Holomorphy and harmonicity of . Since satisfy the Cauchy–Riemann equations and have continuous partials, the function is holomorphic on (this is the converse direction of the Cauchy–Riemann criterion: real and imaginary parts satisfying CR equations imply complex differentiability at each point, a standard fact about Holomorphic Functions). By part (a) applied to this holomorphic , is automatically harmonic, and is by definition a harmonic conjugate of . This proves existence. Uniqueness up to a constant. Suppose are both harmonic conjugates of on . Then both satisfy the same Cauchy–Riemann equations paired with :
Wait — state directly: and . Let . Then and throughout . Since is connected (a domain), a function with identically zero gradient on a connected open set is constant: any two points can be joined by a polygonal path with axis-parallel segments (connectedness + openness gives this locally, and a connectedness argument patches it globally), and is constant along each such segment since its directional derivative along axis directions vanishes; hence is constant on . So for some real constant . This proves uniqueness up to an additive real constant, completing the proof of (b).
∎Worked examples
Example 1: A non-homogeneous polynomial harmonic function. Let on (simply connected). We verify harmonicity and find the harmonic conjugate. Check harmonicity. Compute
So : is harmonic on all of . Find using the Cauchy–Riemann equations. We need . Integrate in :
for some function to be determined. Now impose the second Cauchy–Riemann equation :
for a real constant . Take for a canonical choice:
Assemble and identify it. Compute
Group by powers: (this is the standard binomial expansion identity ), and . So
manifestly holomorphic (a polynomial), confirming and are conjugate harmonic functions, exactly as the theorem predicts. As a sanity check, differentiate directly: , matching our computed exactly.
Example 2: Recovering from using the Milne-Thomson-style shortcut, with a transcendental . Let on . This looks unpleasant to integrate directly in ; we illustrate a faster route that is a direct corollary of the theorem's proof. Harmonicity check first. Write . Compute the partials carefully.
Adding: . Good, is harmonic. Shortcut: express directly. Since is holomorphic with (using ), we can compute purely from and then re-express the result in terms of alone by formally substituting (a standard trick valid because , being holomorphic, is determined by its restriction to the real axis , where ):
Compute: , and . So along :
Integrate: (using , so , plus constant ). Verify. Take and expand with , using :
So exactly as given, confirming the computation, and we read off the harmonic conjugate directly:
This example shows the power of the correspondence: differentiating a nasty-looking , restricting to the real axis, and re-integrating in recovers a clean closed form that would have been hard to guess by inspection.
Consider the punctured plane , which is not simply connected (a loop encircling the origin cannot be contracted to a point within ). Define
Check is harmonic on . Let . Compute
and by symmetry ,
So on : is genuinely harmonic on the punctured plane, and since . Attempt to find a global harmonic conjugate. If a harmonic conjugate existed on all of , the proof of the theorem shows and . But these are precisely the partial derivatives of the (multivalued) argument function : indeed locally satisfies , . So formally , which is only well defined up to an integer multiple of — it is not single-valued on : tracking continuously around the unit circle , , increases from to , disagreeing with its starting value. Concretely, integrate the candidate -form around the unit circle , :
A closed loop integral of the candidate conjugate's differential is , so no single-valued function on can have (if it did, the loop integral would vanish by the fundamental theorem for line integrals). Hence has no global harmonic conjugate on , even though it is harmonic there. This is exactly where the simple-connectivity hypothesis in part (b) of the theorem is used: the path-independence argument for relied on filling in loops with disks (null-homotopy) inside , which fails here because loops around the puncture cannot be contracted. Locally — on any simply connected subdomain, such as minus a ray through the origin — a harmonic conjugate (a branch of ) does exist, consistent with the theorem; it is the global, single-valued statement that fails.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| simply connected, harmonic | Harmonic conjugate exists globally, unique up to constant | — |
| not simply connected (e.g. annulus, punctured disk) | Local conjugates exist on simply connected patches | Global single-valued conjugate may not exist (e.g. ) |
| only but disconnected | Theorem applies domain-by-domain | Additive constant in part (b) can differ on each component |
| harmonic but not real-analytic hypothesis assumed | N/A — harmonicity + the theorem's proof automatically forces | Do not assume real-analyticity as a hypothesis; it is a consequence once |
| Swapping roles of | If is a conjugate of , then is a conjugate of | is not in general a conjugate of (sign matters) |
The mathematician behind it
Origins · 1 minBernhard Riemann and how this was discovered
Riemann's 1851 doctoral dissertation, supervised by Gauss, introduced what are now called the Cauchy–Riemann equations as the defining condition for complex differentiability, and explicitly connected them to potential theory and the two-dimensional Laplace equation arising in electrostatics and fluid flow. He treated holomorphic (then "monogenic") functions geometrically, emphasizing angle-preservation and the mapping properties later formalized as conformal mapping — directly foreshadowing Conformal Mappings. His introduction of what became Riemann surfaces was partly motivated by the multivaluedness phenomena seen in examples like , precisely the obstruction exhibited in the counterexample above.
What exactly does "harmonic" mean, intuitively?
A harmonic function has no interior local extrema and satisfies a mean value property: its value at any point equals the average of its values over any circle centered there (a consequence provable from the Cauchy integral formula applied to a holomorphic function with that harmonic real part). Physically, harmonic functions describe equilibrium states with no internal sources or sinks — steady temperatures, electrostatic potentials in charge-free regions, or velocity potentials of incompressible, irrotational, source-free fluid flow. Laplace's equation is the precise algebraic condition capturing "no local bumps": the function curves up as much in one direction as it curves down in the perpendicular direction.
Is every harmonic function of two variables the real part of a holomorphic function?
Locally, yes: near any point, a small enough disk is simply connected, so the theorem guarantees a local harmonic conjugate and hence a local holomorphic representative . Globally, it depends on the topology of the domain: if the domain is simply connected (no holes), the theorem guarantees a single-valued global conjugate, so yes globally too. If the domain has holes — an annulus, a punctured disk, a multiply connected region — a global single-valued conjugate can fail to exist, as the counterexample demonstrates, even though remains harmonic everywhere on that domain.
Why are mixed partial derivatives allowed to be swapped in the proof?
Swapping (Schwarz's theorem, sometimes called Clairaut's theorem) requires the mixed partials to be continuous near the point in question. When is merely assumed in the definition of harmonic, this continuity is part of the hypothesis and Schwarz's theorem applies directly. When arises as the real part of a holomorphic , the stronger regularity Lemma (holomorphic functions are , provable via Cauchy's integral formula) guarantees this automatically, so the hypothesis is never in doubt in either direction of the theorem.
Can a harmonic function have a strict local maximum or minimum?
No, and this is one of the deepest consequences of the correspondence: if has a strict local max at an interior point, then (locally) writing for a holomorphic , the function would be holomorphic with having a strict local max in modulus, contradicting the maximum modulus principle for holomorphic functions. This is why physical equilibrium quantities like steady-state temperature never have hot or cold spots strictly inside a region with no internal heat sources — the extreme values occur only on the boundary.
How is the harmonic conjugate actually computed in practice?
Two standard methods: direct integration of the Cauchy–Riemann equations (integrate in to get up to an unknown function of , then use to pin that function down), as in Example 1; or the Milne-Thomson-style shortcut of computing , formally restricting to so , and then integrating the resulting expression in , as in Example 2. Both methods rely on the same underlying theorem and give the same answer up to the unavoidable additive constant.
Does the correspondence extend to harmonic functions of three or more variables?
Laplace's equation makes sense in any dimension, and harmonic functions in for retain the mean value property and maximum principle. However, the clean equivalence with holomorphic functions is a genuinely two-dimensional phenomenon: there is no direct analogue of "complex differentiability" pairing coordinates in higher dimensions in the same way, though quaternionic and Clifford-analytic generalizations exist. In two real dimensions the correspondence is exact and constitutes the entire content of this article; in higher dimensions potential theory becomes a self-standing subject built by other means (Green's functions, Perron's method) rather than via a holomorphic partner.
What role does this play in setting up conformal mapping?
Harmonic conjugates provide exactly the coordinate pairs whose level curves are mutually orthogonal wherever , which is the infinitesimal signature of angle-preservation. When one wants to solve a Laplace-equation boundary value problem on an awkward domain, the standard strategy is to find a conformal (holomorphic, locally invertible) map to a simple domain like the unit disk, solve the transplanted problem there using the Poisson kernel, and pull the harmonic solution back — this entire strategy (developed fully under Conformal Mappings) rests on the fact proved here, that real and imaginary parts of holomorphic maps are harmonic and hence transform boundary value problems into equivalent ones.