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.

Key takeaways
  • A function uu is harmonic if it is C2C^2 and satisfies Laplace's equation uxx+uyy=0u_{xx} + u_{yy} = 0.
  • If f=u+ivf = u + iv is holomorphic, both uu and vv are automatically harmonic, via the Cauchy–Riemann equations.
  • Two harmonic functions u,vu, v are harmonic conjugates when u+ivu + iv is holomorphic — a strictly asymmetric relation.
  • On a simply connected domain, every harmonic uu has a harmonic conjugate, unique up to an additive real constant.
  • Simple connectivity is essential: on an annulus, log⁡∣z∣\log|z| 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?

DefinitionHarmonic function, harmonic conjugate, and the Laplace equation

Let Ω⊆R2\Omega \subseteq \mathbb{R}^2 be open. A function u:Ω→Ru : \Omega \to \mathbb{R} is harmonic on Ω\Omega if: 1. u∈C2(Ω)u \in C^2(\Omega) (all second partial derivatives exist and are continuous), and 2. uu satisfies Laplace's equation:

Δu:=uxx+uyy=0on Ω.\Delta u := u_{xx} + u_{yy} = 0 \quad \text{on } \Omega.

Given a harmonic function uu on Ω\Omega, a function v:Ω→Rv : \Omega \to \mathbb{R} is called a harmonic conjugate of uu if vv is harmonic on Ω\Omega and the pair (u,v)(u,v) satisfies the Cauchy–Riemann equations:

ux=vy,uy=−vxon Ω.u_x = v_y, \qquad u_y = -v_x \quad \text{on } \Omega.

Equivalently, vv is a harmonic conjugate of uu if and only if f=u+ivf = u + iv is holomorphic on Ω\Omega. Note the relation is not symmetric: if vv is a harmonic conjugate of uu, then −u-u (not uu) is a harmonic conjugate of vv, since f=u+ivf = u+iv holomorphic gives if=−v+iuif = -v + iu holomorphic.

Intuition

The Cauchy–Riemann equations are two coupled first-order PDEs relating uu and vv. Differentiating the first equation ux=vyu_x = v_y with respect to xx, and the second uy=−vxu_y = -v_x with respect to yy, gives

uxx=vyx,uyy=−vxy.u_{xx} = v_{yx}, \qquad u_{yy} = -v_{xy}.

If v∈C2v \in C^2 so that mixed partials commute (vxy=vyxv_{xy} = v_{yx}, guaranteed once we know holomorphic functions are C∞C^\infty, indeed real-analytic), adding these yields uxx+uyy=0u_{xx} + u_{yy} = 0. The same computation with the roles of u,vu,v swapped shows vv 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 u=c1u = c_1 and v=c2v = c_2 of a holomorphic function f=u+ivf = u+iv with f′≠0f' \neq 0 are orthogonal wherever they cross: the gradient vectors ∇u=(ux,uy)\nabla u = (u_x,u_y) and ∇v=(vx,vy)=(−uy,ux)\nabla v=(v_x,v_y) = (-u_y, u_x) satisfy ∇u⋅∇v=−uxuy+uyux=0\nabla u \cdot \nabla v = -u_x u_y + u_y u_x = 0. This orthogonal grid of level curves is the seed of Conformal Mappings: holomorphic maps carry orthogonal families to orthogonal families, and u,vu,v can be read as "isothermal coordinates" adapted to ff. Physically, if uu represents a steady-state temperature (or electrostatic potential), Laplace's equation says uu has no local maxima or minima in the interior — heat flows without sources or sinks. The conjugate vv traces the "streamlines" — level curves along which no heat flows, orthogonal to the isotherms u=constu = \text{const}.

Figure
Orthogonal grids: level curves of u=Re(z2)=x2−y2u=\mathrm{Re}(z^2)=x^2-y^2 (blue) and v=Im(z2)=2xyv=\mathrm{Im}(z^2)=2xy (red) meet at right angles
x y u=const v=const
TheoremHolomorphy   ⟺  \iff conjugate harmonic pairing

Let Ω⊆C\Omega \subseteq \mathbb{C} be a domain (open and connected).

(a) If f=u+iv:Ω→Cf = u + iv : \Omega \to \mathbb{C} is holomorphic, then uu and vv are each harmonic on Ω\Omega, and vv is a harmonic conjugate of uu.

(b) If in addition Ω\Omega is simply connected, then every harmonic function u:Ω→Ru : \Omega \to \mathbb{R} admits a harmonic conjugate vv on Ω\Omega, and vv is unique up to an additive real constant. Consequently every harmonic function on a simply connected domain is (locally and globally on Ω\Omega) the real part of a holomorphic function on Ω\Omega.

LemmaHolomorphic functions are C∞C^\infty

If ff is holomorphic on an open set Ω⊆C\Omega \subseteq \mathbb{C}, then ff is infinitely complex-differentiable on Ω\Omega; in particular, writing f=u+ivf = u+iv, both uu and vv are C∞C^\infty as functions of (x,y)(x,y), and all mixed partial derivatives of uu and vv commute.

Proof

(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 ff is holomorphic on Ω\Omega and D(z0,r)‾⊂Ω\overline{D(z_0,r)} \subset \Omega, then for z∈D(z0,r)z \in D(z_0,r),

f(z)=12πi∫∣ζ−z0∣=rf(ζ)ζ−z dζ,f(z) = \frac{1}{2\pi i}\int_{|\zeta - z_0| = r} \frac{f(\zeta)}{\zeta - z}\, d\zeta,

and one differentiates under the integral sign (justified by uniform convergence of difference quotients on compact subsets) to get, for every n≥0n \geq 0,

f(n)(z)=n!2πi∫∣ζ−z0∣=rf(ζ)(ζ−z)n+1 dζ.f^{(n)}(z) = \frac{n!}{2\pi i}\int_{|\zeta-z_0|=r} \frac{f(\zeta)}{(\zeta - z)^{n+1}}\, d\zeta.

This shows ff has complex derivatives of all orders, hence is real-analytic in (x,y)(x,y) (its Taylor series in zz converges locally and can be re-expanded in x,yx,y), hence C∞C^\infty as a map R2→R2\mathbb{R}^2 \to \mathbb{R}^2, 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

Proof of the Theorem.

(a) Suppose f=u+ivf = u+iv is holomorphic on Ω\Omega. By definition of complex differentiability, u,vu,v satisfy the Cauchy–Riemann equations

ux=vy,uy=−vxu_x = v_y, \qquad u_y = -v_x

at every point of Ω\Omega (this is the standard derivation: computing f′(z)f'(z) as the limit of the difference quotient along the real axis gives f′=ux+ivxf' = u_x + iv_x, and along the imaginary axis gives f′=vy−iuyf' = v_y - i u_y; equating real and imaginary parts of these two expressions yields the two equations above). By the regularity Lemma above, u,v∈C∞(Ω)u,v \in C^\infty(\Omega), so in particular u,v∈C2(Ω)u,v \in C^2(\Omega) and all mixed partials commute. Differentiate the first Cauchy–Riemann equation in xx and the second in yy:

uxx=vyx,uyy=−vxy.u_{xx} = v_{yx}, \qquad u_{yy} = -v_{xy}.

Since vxy=vyxv_{xy} = v_{yx} (Schwarz's theorem, applicable because v∈C2v \in C^2), adding gives

uxx+uyy=vyx−vxy=0.u_{xx} + u_{yy} = v_{yx} - v_{xy} = 0.

So uu is harmonic. Symmetrically, differentiate the first equation in yy and the second in xx:

uxy=vyy,uyx=−vxx.u_{xy} = v_{yy}, \qquad u_{yx} = -v_{xx}.

Since uxy=uyxu_{xy}=u_{yx}, subtracting gives vxx+vyy=0v_{xx}+v_{yy}=0, so vv is harmonic. Since u,vu,v are both harmonic and satisfy the Cauchy–Riemann equations, vv is by definition a harmonic conjugate of uu. This proves (a).

(b) Now suppose Ω\Omega is simply connected and uu is harmonic on Ω\Omega. We must construct vv with ux=vyu_x = v_y, uy=−vxu_y = -v_x on Ω\Omega. Construction of a candidate 1-form. Define a differential 11-form on Ω\Omega:

ω=−uy dx+ux dy.\omega = -u_y\, dx + u_x\, dy.

This is well-defined and C1C^1 since u∈C2u \in C^2. We claim ω\omega is closed, i.e. dω=0d\omega = 0. Writing ω=P dx+Q dy\omega = P\,dx + Q\,dy with P=−uyP = -u_y, Q=uxQ = u_x, closedness means Py=QxP_y = Q_x:

Py=−uyy,Qx=uxx,P_y = -u_{yy}, \qquad Q_x = u_{xx},

and Py=QxP_y = Q_x is exactly the statement −uyy=uxx-u_{yy} = u_{xx}, i.e. uxx+uyy=0u_{xx}+u_{yy}=0, which holds because uu is harmonic. So ω\omega is closed. Existence of a potential via simple connectivity. On a simply connected domain, every closed C1C^1 11-form is exact: fixing a basepoint z0∈Ωz_0 \in \Omega, define

v(z)=∫γzωv(z) = \int_{\gamma_z} \omega

where γz\gamma_z is any piecewise-C1C^1 path in Ω\Omega from z0z_0 to zz. This is well defined (independent of the choice of path) because for any two such paths γ1,γ2\gamma_1,\gamma_2, the closed loop γ1−γ2\gamma_1 - \gamma_2 bounds (as Ω\Omega is simply connected, the loop is null-homotopic in Ω\Omega), 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 dω=0d\omega = 0 kills each contribution — gives

∫γ1ω−∫γ2ω=∫γ1−γ2ω=0.\int_{\gamma_1} \omega - \int_{\gamma_2}\omega = \int_{\gamma_1 - \gamma_2} \omega = 0.

(This is the standard Poincaré lemma / path-independence argument for closed forms on simply connected domains.) Hence vv is a well-defined single-valued C1C^1 function on Ω\Omega, and by construction of the line integral of a 11-form,

vx=P=−uy,vy=Q=ux,v_x = P = -u_y, \qquad v_y = Q = u_x,

i.e. ux=vyu_x = v_y and uy=−vxu_y = -v_x: the Cauchy–Riemann equations hold for (u,v)(u,v). Holomorphy and harmonicity of vv. Since u,v∈C1(Ω)u,v \in C^1(\Omega) satisfy the Cauchy–Riemann equations and have continuous partials, the function f=u+ivf = u+iv is holomorphic on Ω\Omega (this is the converse direction of the Cauchy–Riemann criterion: C1C^1 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 ff, vv is automatically harmonic, and is by definition a harmonic conjugate of uu. This proves existence. Uniqueness up to a constant. Suppose v1,v2v_1, v_2 are both harmonic conjugates of uu on Ω\Omega. Then both satisfy the same Cauchy–Riemann equations paired with uu:

(v1)x=uy⋅(−1)=−uy=(v2)x,(v1)y=ux=(v2)y.(v_1)_x = u_y \cdot(-1)= -u_y = (v_2)_x, \qquad (v_1)_y = u_x = (v_2)_y.

Wait — state directly: (v1)x=−uy=(v2)x(v_1)_x = -u_y = (v_2)_x and (v1)y=ux=(v2)y(v_1)_y = u_x = (v_2)_y. Let w=v1−v2w = v_1 - v_2. Then wx=0w_x = 0 and wy=0w_y=0 throughout Ω\Omega. Since Ω\Omega 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 ww is constant along each such segment since its directional derivative along axis directions vanishes; hence ww is constant on Ω\Omega. So v1−v2≡cv_1 - v_2 \equiv c for some real constant cc. This proves uniqueness up to an additive real constant, completing the proof of (b). ■\blacksquare

∎

Worked examples

Example 1: A non-homogeneous polynomial harmonic function. Let u(x,y)=x3−3xy2+2xu(x,y) = x^3 - 3xy^2 + 2x on Ω=C\Omega = \mathbb{C} (simply connected). We verify harmonicity and find the harmonic conjugate. Check harmonicity. Compute

ux=3x2−3y2+2,uxx=6x,uy=−6xy,uyy=−6x.u_x = 3x^2 - 3y^2 + 2, \quad u_{xx} = 6x, \qquad u_y = -6xy, \quad u_{yy} = -6x.

So uxx+uyy=6x−6x=0u_{xx}+u_{yy} = 6x - 6x = 0: uu is harmonic on all of C\mathbb{C}. Find vv using the Cauchy–Riemann equations. We need vy=ux=3x2−3y2+2v_y = u_x = 3x^2-3y^2+2. Integrate in yy:

v(x,y)=3x2y−y3+2y+g(x)v(x,y) = 3x^2 y - y^3 + 2y + g(x)

for some function g(x)g(x) to be determined. Now impose the second Cauchy–Riemann equation vx=−uy=6xyv_x = -u_y = 6xy:

vx=6xy+g′(x)6xy  ⟹  g′(x)=0  ⟹  g(x)=cv_x = 6xy + g'(x) \overset{!}{=} 6xy \implies g'(x) = 0 \implies g(x) = c

for a real constant cc. Take c=0c=0 for a canonical choice:

v(x,y)=3x2y−y3+2y.v(x,y) = 3x^2y - y^3 + 2y.

Assemble f=u+ivf = u + iv and identify it. Compute

f(z)=u+iv=(x3−3xy2+2x)+i(3x2y−y3+2y).f(z) = u+iv = (x^3-3xy^2+2x) + i(3x^2y - y^3+2y).

Group by powers: x3−3xy2+i(3x2y−y3)=(x+iy)3=z3x^3 - 3xy^2 + i(3x^2y-y^3) = (x+iy)^3 = z^3 (this is the standard binomial expansion identity z3=x3+3ix2y−3xy2−iy3z^3=x^3+3ix^2y-3xy^2-iy^3), and 2x+2iy=2z2x+2iy = 2z. So

f(z)=z3+2z,f(z) = z^3 + 2z,

manifestly holomorphic (a polynomial), confirming u=Re(z3+2z)u = \mathrm{Re}(z^3+2z) and v=Im(z3+2z)v=\mathrm{Im}(z^3+2z) are conjugate harmonic functions, exactly as the theorem predicts. As a sanity check, differentiate directly: f′(z)=3z2+2=ux+ivx=(3x2−3y2+2)+i(6xy)f'(z) = 3z^2+2 = u_x + iv_x = (3x^2-3y^2+2) + i(6xy), matching our computed ux,vxu_x, v_x exactly.

Example 2: Recovering ff from uu using the Milne-Thomson-style shortcut, with a transcendental uu. Let u(x,y)=ex(xcos⁡y−ysin⁡y)u(x,y) = e^x(x\cos y - y \sin y) on C\mathbb{C}. This looks unpleasant to integrate directly in yy; we illustrate a faster route that is a direct corollary of the theorem's proof. Harmonicity check first. Write u=xexcos⁡y−yexsin⁡yu = x e^x \cos y - y e^x \sin y. Compute the partials carefully.

ux=excos⁡y+xexcos⁡y−yexsin⁡y=excos⁡y(1+x)−yexsin⁡y,u_x = e^x\cos y + xe^x \cos y - y e^x \sin y = e^x\cos y(1+x) - ye^x\sin y,
uxx=excos⁡y(1+x)+excos⁡y−yexsin⁡y=excos⁡y(2+x)−yexsin⁡y.u_{xx} = e^x \cos y (1+x) + e^x\cos y - y e^x \sin y = e^x\cos y(2+x) - ye^x\sin y.
uy=−xexsin⁡y−exsin⁡y−yexcos⁡y=−exsin⁡y(x+1)−yexcos⁡y,u_y = -xe^x \sin y - e^x \sin y - y e^x \cos y = -e^x\sin y(x+1) - y e^x \cos y,
uyy=−excos⁡y(x+1)−excos⁡y+yexsin⁡y=−excos⁡y(x+2)+yexsin⁡y.u_{yy} = -e^x\cos y(x+1) - e^x\cos y + ye^x \sin y = -e^x\cos y(x+2) + ye^x\sin y.

Adding: uxx+uyy=excos⁡y(2+x)−yexsin⁡y−excos⁡y(x+2)+yexsin⁡y=0u_{xx}+u_{yy} = e^x\cos y(2+x) - ye^x\sin y - e^x\cos y(x+2) + ye^x\sin y = 0. Good, uu is harmonic. Shortcut: express f′(z)f'(z) directly. Since f=u+ivf = u+iv is holomorphic with f′=ux−iuyf' = u_x - i u_y (using vx=−uyv_x = -u_y), we can compute f′(z)f'(z) purely from ux,uyu_x, u_y and then re-express the result in terms of zz alone by formally substituting x=z,y=0x=z, y=0 (a standard trick valid because f′(z)f'(z), being holomorphic, is determined by its restriction to the real axis y=0y=0, where z=xz=x):

ux(x,0)−i uy(x,0).u_x(x,0) - i\,u_y(x,0).

Compute: ux(x,0)=ex(1+x)⋅1−0=ex(1+x)u_x(x,0) = e^x(1+x)\cdot 1 - 0 = e^x(1+x), and uy(x,0)=−exsin⁡(0)(x+1)−0⋅excos⁡0=0u_y(x,0) = -e^x\sin(0)(x+1) - 0\cdot e^x\cos 0 = 0. So along y=0y=0:

f′(z)=ez(1+z)−i⋅0=ez(1+z)∣formally x→z=(1+z)ez.f'(z) = e^z(1+z) - i\cdot 0 = e^z(1+z)\Big|_{\text{formally } x\to z}= (1+z)e^z.

Integrate: f(z)=∫(1+z)ez dz=zez+C\displaystyle f(z) = \int (1+z)e^z\,dz = z e^z + C (using ∫zez dz=zez−ez\int ze^z\,dz = ze^z - e^z, so ∫(1+z)ez dz=ez+zez−ez=zez\int(1+z)e^z\,dz = e^z + ze^z - e^z = ze^z, plus constant CC). Verify. Take C=0C=0 and expand f(z)=zezf(z) = ze^z with z=x+iyz=x+iy, using ez=ex(cos⁡y+isin⁡y)e^z = e^x(\cos y + i \sin y):

f(z)=(x+iy)ex(cos⁡y+isin⁡y)=ex[(xcos⁡y−ysin⁡y)+i(xsin⁡y+ycos⁡y)].f(z) = (x+iy)e^x(\cos y + i\sin y) = e^x\big[(x\cos y - y\sin y) + i(x\sin y + y\cos y)\big].

So Re(f)=ex(xcos⁡y−ysin⁡y)=u\mathrm{Re}(f) = e^x(x\cos y - y\sin y) = u exactly as given, confirming the computation, and we read off the harmonic conjugate directly:

v(x,y)=ex(xsin⁡y+ycos⁡y).v(x,y) = e^x(x\sin y + y\cos y).

This example shows the power of the correspondence: differentiating a nasty-looking uu, restricting to the real axis, and re-integrating in zz recovers a clean closed form f(z)=zezf(z) = ze^z that would have been hard to guess by inspection.

CounterexampleSimple connectivity cannot be dropped

Consider the punctured plane Ω=C∖{0}\Omega = \mathbb{C}\setminus\{0\}, which is not simply connected (a loop encircling the origin cannot be contracted to a point within Ω\Omega). Define

u(x,y)=log⁡x2+y2=12log⁡(x2+y2),(x,y)≠(0,0).u(x,y) = \log\sqrt{x^2+y^2} = \tfrac12 \log(x^2+y^2), \qquad (x,y)\neq (0,0).

Check uu is harmonic on Ω\Omega. Let r2=x2+y2r^2 = x^2+y^2. Compute

ux=xx2+y2,uxx=(x2+y2)−x(2x)(x2+y2)2=y2−x2(x2+y2)2,u_x = \frac{x}{x^2+y^2}, \qquad u_{xx} = \frac{(x^2+y^2) - x(2x)}{(x^2+y^2)^2} = \frac{y^2-x^2}{(x^2+y^2)^2},

and by symmetry x↔yx\leftrightarrow y,

uy=yx2+y2,uyy=x2−y2(x2+y2)2.u_y = \frac{y}{x^2+y^2}, \qquad u_{yy} = \frac{x^2-y^2}{(x^2+y^2)^2}.

So uxx+uyy=0u_{xx}+u_{yy} = 0 on Ω\Omega: uu is genuinely harmonic on the punctured plane, and u∈C∞(Ω)u \in C^\infty(\Omega) since (x,y)≠(0,0)(x,y)\ne(0,0). Attempt to find a global harmonic conjugate. If a harmonic conjugate vv existed on all of Ω\Omega, the proof of the theorem shows vx=−uy=−yx2+y2v_x = -u_y = -\frac{y}{x^2+y^2} and vy=ux=xx2+y2v_y = u_x = \frac{x}{x^2+y^2}. But these are precisely the partial derivatives of the (multivalued) argument function θ=arg⁡z\theta = \arg z: indeed θ=arctan⁡(y/x)\theta = \arctan(y/x) locally satisfies θx=−yx2+y2\theta_x = -\frac{y}{x^2+y^2}, θy=xx2+y2\theta_y = \frac{x}{x^2+y^2}. So formally v=θ=arg⁡zv = \theta = \arg z, which is only well defined up to an integer multiple of 2π2\pi — it is not single-valued on Ω\Omega: tracking θ\theta continuously around the unit circle z=eitz = e^{it}, t∈[0,2π]t \in [0,2\pi], θ\theta increases from 00 to 2π2\pi, disagreeing with its starting value. Concretely, integrate the candidate 11-form ω=−uy dx+ux dy\omega = -u_y\,dx + u_x\,dy around the unit circle γ(t)=(cos⁡t,sin⁡t)\gamma(t) = (\cos t, \sin t), t∈[0,2π]t\in[0,2\pi]:

∮γω=∮γ(−yx2+y2 dx+xx2+y2 dy)=∫02π[sin⁡t⋅sin⁡t+cos⁡t⋅cos⁡t]dt=∫02π1 dt=2π≠0.\oint_\gamma \omega = \oint_\gamma \left(-\frac{y}{x^2+y^2}\,dx + \frac{x}{x^2+y^2}\,dy\right) = \int_0^{2\pi} \left[\sin t \cdot \sin t + \cos t\cdot \cos t\right] dt = \int_0^{2\pi} 1\,dt = 2\pi \neq 0.

A closed loop integral of the candidate conjugate's differential is 2π≠02\pi \neq 0, so no single-valued function vv on Ω\Omega can have dv=ωdv = \omega (if it did, the loop integral would vanish by the fundamental theorem for line integrals). Hence u=log⁡∣z∣u = \log|z| has no global harmonic conjugate on Ω=C∖{0}\Omega = \mathbb{C}\setminus\{0\}, 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 ∮ω=0\oint \omega = 0 relied on filling in loops with disks (null-homotopy) inside Ω\Omega, which fails here because loops around the puncture cannot be contracted. Locally — on any simply connected subdomain, such as C\mathbb{C} minus a ray through the origin — a harmonic conjugate (a branch of arg⁡z\arg z) does exist, consistent with the theorem; it is the global, single-valued statement that fails.

Scope, edge cases & common traps

SituationWhat holdsWhat can fail
Ω\Omega simply connected, uu harmonicHarmonic conjugate vv exists globally, unique up to constant—
Ω\Omega not simply connected (e.g. annulus, punctured disk)Local conjugates exist on simply connected patchesGlobal single-valued conjugate may not exist (e.g. log⁡∣z∣\log|z|)
uu only C2C^2 but Ω\Omega disconnectedTheorem applies domain-by-domainAdditive constant in part (b) can differ on each component
uu harmonic but not real-analytic hypothesis assumedN/A — harmonicity + the theorem's proof automatically forces u∈C∞u\in C^\inftyDo not assume real-analyticity as a hypothesis; it is a consequence once u=Re(f)u=\mathrm{Re}(f)
Swapping roles of u,vu,vIf vv is a conjugate of uu, then −u-u is a conjugate of vvuu is not in general a conjugate of vv (sign matters)

The mathematician behind it

Origins · 1 minBernhard Riemann and how this was discovered
BR
Bernhard Riemann
1826–1866 · Göttingen, mid-19th-century complex analysis and geometry

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 log⁡z\log z, precisely the obstruction exhibited in the counterexample above.

History
- 1811 — Poisson and others study the Laplace equation in the context of potential theory arising in Laplace's celestial mechanics and later electrostatics.
- 1825 — Cauchy develops the integral calculus of complex functions, establishing the analytic apparatus (Cauchy's theorem, integral formula) underlying holomorphy.
- 1851 — Riemann's dissertation Grundlagen für eine allgemeine Theorie der Functionen einer veränderlichen complexen Größe formulates the Cauchy–Riemann equations and links them to harmonic functions and conformal geometry.
- 1870s — Schwarz and Neumann develop boundary value methods (Dirichlet problem, Schwarz reflection) exploiting the harmonic/holomorphic correspondence to solve physical potential problems.
- 1900s — Potential theory and harmonic function theory generalize to higher dimensions (Perron's method, Wiener's criterion), building on the two-dimensional model established by the complex-analytic correspondence.
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 uxx+uyy=0u_{xx}+u_{yy}=0 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 f=u+ivf=u+iv. 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 log⁡∣z∣\log|z| counterexample demonstrates, even though uu remains harmonic everywhere on that domain.

Why are mixed partial derivatives allowed to be swapped in the proof?

Swapping uxy=uyxu_{xy} = u_{yx} (Schwarz's theorem, sometimes called Clairaut's theorem) requires the mixed partials to be continuous near the point in question. When uu is merely assumed C2C^2 in the definition of harmonic, this continuity is part of the hypothesis and Schwarz's theorem applies directly. When uu arises as the real part of a holomorphic ff, the stronger regularity Lemma (holomorphic functions are C∞C^\infty, 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 uu has a strict local max at an interior point, then (locally) writing u=Re(f)u=\mathrm{Re}(f) for a holomorphic ff, the function efe^f would be holomorphic with ∣ef∣=eu|e^f| = e^u 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 vy=uxv_y=u_x in yy to get vv up to an unknown function of xx, then use vx=−uyv_x=-u_y to pin that function down), as in Example 1; or the Milne-Thomson-style shortcut of computing f′(z)=ux−iuyf'(z) = u_x - iu_y, formally restricting to y=0y=0 so z=xz=x, and then integrating the resulting expression in zz, 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 Δu=0\Delta u = 0 makes sense in any dimension, and harmonic functions in Rn\mathbb{R}^n for n≥3n\ge 3 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 (u,v)(u,v) whose level curves are mutually orthogonal wherever f′≠0f'\neq 0, 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.

Before this

Where this leads