Skip to content
Tutorials Center
My learning

Topics

Lesson 14 of 36 · Analytic Functions

Harmonic Functions

Show that real and imaginary parts of analytic functions satisfy Laplace's equation, construct harmonic conjugates step by step, and test the mean value property.

Real and imaginary parts of an analytic function are not independent: they obey the Cauchy-Riemann equations. A remarkable consequence is that each of them satisfies a famous second-order equation, Laplace's equation. Functions that satisfy it are called harmonic, and they describe steady-state heat flow, electrostatic potentials and ideal fluid flow. This lesson links the two worlds.

Laplace's equation

A real function φ(x, y) with continuous second partial derivatives is harmonic on a region if

Text
φ_xx + φ_yy = 0

The left side is the Laplacian Δφ (also written ∇²φ). Simple examples: x, y, xy, x² - y², e^x cos y, ln(x² + y²) (away from the origin).

Why analytic functions give harmonic ones

Suppose f = u + iv is analytic. The Cauchy-Riemann equations are u_x = v_y and u_y = -v_x. Differentiate the first with respect to x and the second with respect to y:

Text
u_xx = v_yx        and        u_yy = -v_xy

Add them. If the mixed partials are equal, v_yx = v_xy, so u_xx + u_yy = 0. A similar computation gives v_xx + v_yy = 0.

There is a gap in this argument: it assumes v has continuous second derivatives, which is not known yet. A later theorem (Cauchy's integral formulas) shows that an analytic function is infinitely differentiable, which fills the gap. For now, accept that the real and imaginary parts of any analytic function are harmonic.

Harmonic conjugates

Given a harmonic u, can we find a v such that u + iv is analytic? If so, v is called a harmonic conjugate of u. (The relation is not symmetric: -u is a conjugate of v.) On a simply connected region (one with no holes, such as a disk or the whole plane) a harmonic conjugate always exists, and it is unique up to adding a constant.

Procedure. Given u:

  1. Check u_xx + u_yy = 0.
  2. Use v_y = u_x. Integrate with respect to y: v = ∫ u_x dy + g(x).
  3. Use v_x = -u_y to find g'(x), then integrate.

Example. Let u = x³ - 3xy². Check: u_xx = 6x, u_yy = -6x, sum 0. ✓. Then u_x = 3x² - 3y², so v_y = 3x² - 3y² and v = 3x²y - y³ + g(x). Next v_x = 6xy + g'(x) must equal -u_y = 6xy, so g' = 0, g is a constant, and v = 3x²y - y³. Indeed z³ = (x + iy)³ = (x³ - 3xy²) + i(3x²y - y³). So u + iv = z³.

Example 2. Let u = e^x cos y. Then u_x = e^x cos y, so v = e^x sin y + g(x). Also -u_y = e^x sin y = v_x = e^x sin y + g'(x), so g' = 0. The function is e^x cos y + i e^x sin y = e^z.

Python Finding a harmonic conjugate

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last case, x² + y², has Laplacian 4, so it is not harmonic and cannot be the real part of an analytic function.

Properties of harmonic functions

Harmonic functions are surprisingly rigid. On a region where they are harmonic:

  • Mean value property. The value at the center of a circle (inside the region) equals the average of the values on the circle.
  • Maximum principle. A nonconstant harmonic function on a bounded region cannot have a maximum or minimum inside; the extremes occur on the boundary.
  • Smoothness. A harmonic function is infinitely differentiable.

Physically, a steady temperature distribution has no hot or cold spots in the interior: the temperature at each point is the average of its surroundings.

Let us check the mean value property numerically for u = e^x cos y, a harmonic function, and contrast it with the non-harmonic x² + y².

Python The mean value property

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

For the harmonic function the average equals the center value for every radius. For x² + y² the average on a circle of radius r is larger than the center value by exactly r².

Harmonic functions can be defined without any complex numbers, but complex analysis gives the best tools for building them: take any analytic function and read off its real or imaginary part.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which equation defines a harmonic function φ(x, y)?

    Laplace's equation: the sum of the second partial derivatives vanishes.
  2. 2. Is u = x² + y² the real part of an analytic function?

    Real parts of analytic functions are harmonic, and u_xx + u_yy = 2 + 2 = 4.
  3. 3. What is a harmonic conjugate of u = x² - y²?

    x² - y² + 2xy i = z², so v = 2xy (up to an added constant).
  4. 4. According to the maximum principle, where does a nonconstant harmonic function on a bounded region attain its maximum?

    A nonconstant harmonic function has no interior maximum; the maximum is on the boundary.

Summary

  • A harmonic function satisfies φ_xx + φ_yy = 0.
  • The real and imaginary parts of an analytic function are harmonic.
  • On a simply connected region every harmonic u has a harmonic conjugate v, unique up to a constant, found by integrating the Cauchy-Riemann equations.
  • Harmonic functions satisfy the mean value property and the maximum principle.

Next: The Complex Exponential Function