Skip to content
Tutorials Center
My learning

Topics

Lesson 13 of 36 · Analytic Functions

The Cauchy-Riemann Equations

Derive the Cauchy-Riemann equations, use them to test whether a complex function is differentiable or analytic, and find f'(z) from partial derivatives.

How can you tell whether f(z) = u(x, y) + i v(x, y) is complex differentiable without testing every direction of h? The Cauchy-Riemann equations give a practical test. They say that the real and imaginary parts must be tied together by two partial differential equations.

Deriving the equations

Suppose f'(z₀) exists, with z₀ = x₀ + iy₀. The limit of the difference quotient must be the same along every path, so test two of them.

Along the real direction, h = Δx (real):

Text
f'(z₀) = lim [ u(x₀ + Δx, y₀) - u(x₀, y₀) + i( v(x₀ + Δx, y₀) - v(x₀, y₀) ) ] / Δx
       = u_x + i v_x

Along the imaginary direction, h = iΔy:

Text
f'(z₀) = lim [ u(x₀, y₀ + Δy) - u(x₀, y₀) + i( v(x₀, y₀ + Δy) - v(x₀, y₀) ) ] / (iΔy)
       = (1/i)(u_y + i v_y) = v_y - i u_y

(here 1/i = -i). Both expressions equal f'(z₀), so equate real and imaginary parts:

Text
u_x = v_y        and        u_y = -v_x

These are the Cauchy-Riemann equations. Along the way we found the useful formula

Text
f'(z) = u_x + i v_x

The theorem

Necessary. If f = u + iv is complex differentiable at z₀, then u and v have first partial derivatives there, and the Cauchy-Riemann equations hold at z₀.

Sufficient. If u and v have continuous first partial derivatives in a neighborhood of z₀ and satisfy the Cauchy-Riemann equations at z₀, then f is complex differentiable at z₀.

Without the continuity of partials the converse can fail, so the equations alone are not enough in general. In practice, for the functions in this track (polynomials, exponentials and similar), the partials are continuous and the test works.

A function that is complex differentiable at every point of an open set D is called analytic or holomorphic on D. A function analytic on the whole plane is entire. To be analytic at a point means being differentiable in some whole disk around it, not just at the point itself.

Worked examples

Example 1: f(z) = z². u = x² - y², v = 2xy. Then u_x = 2x, v_y = 2x, u_y = -2y, v_x = 2y. Both equations hold everywhere, the partials are continuous, so f is entire. And f' = u_x + i v_x = 2x + 2iy = 2z.

Example 2: f(z) = z̄. u = x, v = -y. Then u_x = 1 but v_y = -1. The first equation fails everywhere, so z̄ is nowhere differentiable, in agreement with the previous lesson.

Example 3: f(z) = abs(z)² = x² + y². Here u = x² + y², v = 0. u_x = 2x and v_y = 0 are equal only when x = 0; u_y = 2y and -v_x = 0 only when y = 0. So both hold only at the single point z = 0. The function is differentiable at 0 but nowhere analytic, because no disk around 0 consists of points where it is differentiable.

Example 4: f(z) = e^x (cos y + i sin y). u = e^x cos y, v = e^x sin y. u_x = e^x cos y = v_y and u_y = -e^x sin y = -v_x. This is entire and f' = u_x + i v_x = e^x cos y + i e^x sin y = f. We have rediscovered the function e^z.

Python A Cauchy-Riemann checker

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.

This tiny program is a real analytic-function detector: it takes u and v and checks both equations symbolically.

Polar form

In polar coordinates z = r e^(iθ) with f = u(r, θ) + i v(r, θ), the equations read (for r > 0)

Text
u_r = (1/r) v_θ        and        v_r = -(1/r) u_θ

This version is convenient for functions like z^n and log z. Check with f(z) = z²: u = r² cos 2θ, v = r² sin 2θ. Then u_r = 2r cos 2θ and (1/r)v_θ = (1/r)(2r² cos 2θ) = 2r cos 2θ. ✓.

Another way to see it

A neat shorthand: the Cauchy-Riemann equations say that f does not depend on z̄. Treating z and z̄ as independent variables, the condition is ∂f/∂z̄ = 0, where ∂/∂z̄ = (1/2)(∂/∂x + i ∂/∂y). So z² has no z̄ in it and is analytic, while abs(z)² = z z̄ depends on z̄ and is not.

Python Testing numerically for any function

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.

Analytic functions give a residual near zero (rounding level). Non-analytic ones give a clearly nonzero value.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What are the Cauchy-Riemann equations for f = u + iv?

    Equating the derivative computed along the real and imaginary directions gives u_x = v_y and u_y = -v_x.
  2. 2. For which z does f(z) = |z|² satisfy the Cauchy-Riemann equations?

    u = x² + y², v = 0 gives 2x = 0 and 2y = 0, so only at the origin. It is differentiable at 0 but analytic nowhere.
  3. 3. If f = u + iv is analytic, which formula gives f'(z)?

    Taking h real gives f' = u_x + i v_x.
  4. 4. What is f'(z) for u = e^x cos y, v = e^x sin y?

    u_x + i v_x = e^x cos y + i e^x sin y, which equals f itself.

Summary

  • A complex differentiable function satisfies u_x = v_y and u_y = -v_x (Cauchy-Riemann), and then f' = u_x + i v_x.
  • If u, v have continuous partials and satisfy the equations, f is differentiable.
  • Analytic means differentiable on a whole open set; abs(z)² is differentiable only at 0, so it is not analytic.
  • Equivalent view: an analytic function does not depend on z̄.

Next: Harmonic Functions