A real-valued function (or ) is harmonic if it has continuous second partial derivatives and satisfies Laplace’s equation:

The Laplacian (also written ) is the divergence of the Gradient: .

Why harmonic functions are central in physics

Laplace’s equation describes equilibrium / steady state in countless physical systems:

  • Steady-state electrostatic potentials in regions without charge. The electric field is ; Gauss’s law gives . With , .
  • Irrotational incompressible fluid flow. Velocity (irrotational), (incompressible). So .
  • Steady heat conduction. Heat equation in steady state gives .
  • Membrane displacements under tension (in equilibrium).
  • Gravitational potential in vacuum regions.

Find the right harmonic function with the right boundary conditions, and you have solved a major physics problem.

Harmonic = real/imaginary part of analytic

The deepest result connecting complex analysis to physics:

Theorem. If is analytic on a domain , then and are both harmonic on .

Proof. From the Cauchy-Riemann equations and , differentiate the first w.r.t. and the second w.r.t. :

By Clairaut’s theorem , so . Same argument for . ∎

(A subtle technical point: this proof uses Clairaut’s equality of mixed partials, which requires to be . With just our definition of analyticity — once complex differentiable on an open set — we don’t yet know that. The fact that analytic functions are automatically infinitely differentiable, hence , is established via the Cauchy integral formula. The chain of logic is non-circular: the CIF only uses analyticity, not harmonicity.)

So analytic functions automatically solve Laplace’s equation in 2D. This is the bridge between complex analysis and 2D steady-state physics.

Harmonic conjugate

If is harmonic on a simply connected domain, there exists a harmonic function (the harmonic conjugate of ) such that is analytic.

Recipe to find from :

  1. From , integrate: .
  2. From , get an equation for .
  3. Integrate.

Same shape as finding a potential function for a conservative field. The Cauchy–Riemann equations are exactly the cross-partial conditions of vector calculus for the field to be both conservative and source-free.

Worked example. . Check harmonic: , , sum . ✓

Find : , integrate w.r.t. : . Then must equal , so , . Stream function: .

Combined: .

So is the real part of the analytic function .

Properties of harmonic functions

These mirror the magical properties of analytic functions:

  • Maximum principle. A non-constant harmonic function attains its maximum and minimum on the boundary of its domain — never in the interior. (Same statement as the Maximum modulus principle for analytic functions, since is essentially the modulus of an analytic function.)
  • Mean value property. The value at the center of any disk equals the average over the bounding circle.
  • Uniqueness from boundary values. A harmonic function on a bounded domain is determined by its boundary values (Dirichlet problem). This is why boundary conditions are enough to solve the steady-state problems above.
  • Infinitely differentiable. Any harmonic function is automatically .

These all follow from the connection to analytic functions via harmonic conjugates and the Cauchy integral formula.

In context

The harmonic-function viewpoint is the foundation of 2D conformal mapping in physics: transform a hard region to an easy one via an analytic function, solve Laplace’s equation on the easy region (often a disk or half-plane), pull back via the inverse map. Laplace’s equation is preserved by conformal maps, which makes this work.