Skip to content

Complex Differentiation and the Cauchy–Riemann Equations

In this lesson you’ll derive the Cauchy–Riemann equations from the requirement that the derivative be direction-independent, learn exactly when they are sufficient as well as necessary, and use them as a fast test for differentiability.

ff is differentiable at z0z_0 if

f(z0)=limh0f(z0+h)f(z0)hf'(z_0) = \lim_{h\to0}\frac{f(z_0+h)-f(z_0)}{h}

exists, with hh complex and the limit independent of how h0h\to0.

The differentiation rules you know all hold with the same proofs: sum, product, quotient, chain, and ddzzn=nzn1\frac{d}{dz}z^n = nz^{n-1}. Differentiability implies continuity, again with the same argument.

What is new is how few functions qualify.

Write f=u+ivf = u+iv and let hh approach 0 in two particular ways.

Along the real axis, h=th = t with tt real:

f(z0)=limt0u(x0+t,y0)u(x0,y0)+i[v(x0+t,y0)v(x0,y0)]t=ux+ivxf'(z_0) = \lim_{t\to0}\frac{u(x_0+t,y_0)-u(x_0,y_0) + i\big[v(x_0+t,y_0)-v(x_0,y_0)\big]}{t} = u_x + iv_x

Along the imaginary axis, h=ith = it:

f(z0)=limt0u(x0,y0+t)u(x0,y0)+i[v(x0,y0+t)v(x0,y0)]it=uy+ivyi=vyiuyf'(z_0) = \lim_{t\to0}\frac{u(x_0,y_0+t)-u(x_0,y_0)+i\big[v(x_0,y_0+t)-v(x_0,y_0)\big]}{it} = \frac{u_y+iv_y}{i} = v_y - iu_y

If ff is differentiable these two must be equal. Matching real and imaginary parts gives the Cauchy–Riemann equations:

  ux=vyanduy=vx  \boxed{\;u_x = v_y \qquad\text{and}\qquad u_y = -v_x\;}

And the derivative itself has two equivalent formulas:

f(z)=ux+ivx=vyiuyf'(z) = u_x + iv_x = v_y - iu_y

Note that we used only two directions. Every other direction imposes no new condition - that is a small miracle and the reason the theory is workable at all.

The derivation shows the equations are necessary. On their own they are not quite sufficient, and the standard counterexample is unpleasant enough that it is worth knowing the correct statement instead:

Sufficiency. If u,vu, v have continuous first partial derivatives on a neighbourhood of z0z_0 and satisfy the Cauchy–Riemann equations there, then ff is differentiable at z0z_0.

In practice this is what you use. Both directions are needed for different purposes: necessity lets you rule functions out with a one-line check, sufficiency lets you rule them in.

Three readings, all worth carrying.

Rigidity. The equations couple uu and vv tightly: you cannot choose the real and imaginary parts independently. Given uu, the function vv is determined up to a constant. Half of an analytic function determines the other half.

No conjugates allowed. Introduce the operator

fzˉ=12(fx+ify)\frac{\partial f}{\partial\bar z} = \frac12\left(\frac{\partial f}{\partial x} + i\frac{\partial f}{\partial y}\right)

The Cauchy–Riemann equations are exactly fzˉ=0\frac{\partial f}{\partial\bar z} = 0, which says ff depends on zz but not on zˉ\bar z. That is the sharpest way to state the whole condition, and it instantly explains why zˉ\bar z, z2=zzˉ|z|^2 = z\bar z, Rez=z+zˉ2\operatorname{Re}z = \frac{z+\bar z}{2}, and Imz\operatorname{Im}z all fail.

Geometric. As a real map R2R2\mathbb{R}^2\to\mathbb{R}^2, the derivative of ff has Jacobian

(uxuyvxvy)=(abba)\begin{pmatrix} u_x & u_y \\ v_x & v_y\end{pmatrix} = \begin{pmatrix} a & -b \\ b & a\end{pmatrix}

after substituting the equations. Matrices of that shape are exactly the rotation-and-scaling matrices. So complex differentiability means the map is locally a rotation and a uniform scaling, which is why analytic maps preserve angles. Conjugation’s Jacobian is a reflection, which is why it fails.

Also worth noting: the Jacobian determinant is a2+b2=f(z)2a^2+b^2 = |f'(z)|^2, so f2|f'|^2 is the local area magnification factor.

Differentiate the first equation with respect to xx and the second with respect to yy, then add. Assuming enough smoothness, which we will later prove is automatic,

uxx+uyy=0u_{xx}+u_{yy} = 0

and the same for vv. So the real and imaginary parts of an analytic function are harmonic: they satisfy Laplace’s equation. This is the bridge to physics, since Laplace’s equation governs steady-state heat, electrostatic potential, and incompressible irrotational flow. It gets a lesson of its own later.

For functions naturally written in polar coordinates, with f=u(r,θ)+iv(r,θ)f = u(r,\theta)+iv(r,\theta):

ur=1rvθ,vr=1ruθ\frac{\partial u}{\partial r} = \frac1r\frac{\partial v}{\partial\theta}, \qquad \frac{\partial v}{\partial r} = -\frac1r\frac{\partial u}{\partial\theta}

These are what you use for logz\log z and for power functions with non-integer exponents.

Example 1: Verify f(z)=z2f(z)=z^2 is differentiable and find ff'.

Solution. Here u=x2y2u = x^2-y^2 and v=2xyv = 2xy, so

ux=2x,vy=2x,uy=2y,vx=2yu_x = 2x, \quad v_y = 2x, \quad u_y = -2y, \quad v_x = 2y

Both equations hold: ux=vyu_x = v_y ✓ and uy=vxu_y = -v_x ✓. The partials are polynomials, hence continuous, so ff is differentiable everywhere.

f=ux+ivx=2x+2iy=2zf' = u_x+iv_x = 2x+2iy = 2z

✓ as expected.

Example 2: Show f(z)=zˉf(z)=\bar z fails the test.

Solution. u=xu = x and v=yv = -y, giving

ux=1,vy=1,uy=0,vx=0u_x = 1, \quad v_y = -1, \quad u_y = 0, \quad v_x = 0

The second equation holds, since 0=00 = -0. The first does not: 111 \ne -1, and not at any point.

Answer: nowhere differentiable. ∎

One failed equation is enough, and here it fails by a constant amount everywhere, so there is not even a single exceptional point.

Example 3: Where is f(z)=z2f(z) = |z|^2 differentiable?

Solution. z2=x2+y2|z|^2 = x^2+y^2, so u=x2+y2u = x^2+y^2 and v=0v = 0.

ux=2x,vy=0,uy=2y,vx=0u_x = 2x, \quad v_y = 0, \quad u_y = 2y, \quad v_x = 0

The equations require 2x=02x = 0 and 2y=02y = 0, so both hold only at the origin. The partials are continuous, so ff is differentiable at z=0z=0 and nowhere else, with f(0)=0f'(0) = 0.

Differentiable at a single point is useless, because every strong theorem in this subject needs differentiability on an open set. This is exactly why the word analytic is defined the way it is in the next lesson.

Example 4: Verify f(z)=ezf(z)=e^z is entire.

Solution. ez=excosy+iexsinye^z = e^x\cos y + ie^x\sin y, so u=excosyu = e^x\cos y and v=exsinyv = e^x\sin y. Then

ux=excosy,vy=excosy,uy=exsiny,vx=exsinyu_x = e^x\cos y, \quad v_y = e^x\cos y, \quad u_y = -e^x\sin y, \quad v_x = e^x\sin y

Both equations hold everywhere, and all partials are continuous. So eze^z is differentiable on all of C\mathbb{C}, and

f=ux+ivx=excosy+iexsiny=ezf' = u_x+iv_x = e^x\cos y + ie^x\sin y = e^z

The exponential is its own derivative in C\mathbb{C} too.

Example 5: Find a harmonic conjugate.

Given u(x,y)=x2y2+3xu(x,y) = x^2-y^2+3x, find vv so that u+ivu+iv is analytic.

Solution. From the first equation, vy=ux=2x+3v_y = u_x = 2x+3, so integrating in yy,

v=2xy+3y+g(x)v = 2xy+3y+g(x)

for some function gg of xx alone. From the second equation, vx=uy=2yv_x = -u_y = 2y. But differentiating the expression above gives vx=2y+g(x)v_x = 2y+g'(x), so g(x)=0g'(x)=0 and gg is a constant CC.

v=2xy+3y+Cv = 2xy+3y+C

Checking, f=z2+3z+iCf = z^2+3z + iC. ✓

The constant is the only freedom, which is the rigidity from earlier made concrete: uu determines vv up to an additive constant.

Example 6: A function satisfying the equations at a point yet not differentiable there.

Solution. Let f(z)=zˉ2zf(z) = \frac{\bar z^2}{z} for z0z \ne 0 and f(0)=0f(0)=0. A computation shows uu and vv satisfy the Cauchy–Riemann equations at the origin, because all four partials there are 0.

But along the ray argz=θ\arg z = \theta,

f(z)f(0)z=zˉ2z2=e4iθ\frac{f(z)-f(0)}{z} = \frac{\bar z^2}{z^2} = e^{-4i\theta}

which depends on θ\theta, so the limit does not exist and ff is not differentiable at 0.

This is why the sufficiency statement requires the partials to be continuous in a neighbourhood, not merely to satisfy the equations at the one point. The partials here are not continuous at 0.

Example 7: Use the polar equations on logz\log z.

Solution. Take the principal branch logz=lnr+iθ\log z = \ln r + i\theta, so u=lnru = \ln r and v=θv = \theta. Then

ur=1r,1rvθ=1r1=1ru_r = \frac1r, \qquad \frac1r v_\theta = \frac1r \cdot 1 = \frac1r \quad ✓ vr=0,1ruθ=0v_r = 0, \qquad -\frac1r u_\theta = 0 \quad ✓

Both hold for r>0r>0, so logz\log z is differentiable away from the origin and away from whatever ray we cut to make θ\theta single-valued. And

ddzlogz=1z\frac{d}{dz}\log z = \frac1z

Fluid flow. For a two-dimensional incompressible irrotational flow, the velocity potential and stream function are precisely a pair u,vu, v satisfying the Cauchy–Riemann equations. The complex function u+ivu+iv is the complex potential, and its derivative gives the velocity field directly.

Electrostatics. Potential and field lines form the same orthogonal pair. Field-line diagrams in textbooks are level curves of uu and vv for an analytic function, which is why they always cross at right angles.

Conformal meshing. Grid generation for finite-element simulation often uses analytic maps because the Jacobian being a rotation-and-scaling means cells stay well shaped, which keeps the numerics stable.

Image processing. The Wirtinger derivative /zˉ\partial/\partial\bar z is used in complex-valued signal and image processing, where a filter’s dependence on zˉ\bar z measures how far it is from being analytic.

Elasticity. The Kolosov–Muskhelishvili approach solves plane elasticity problems using two analytic functions, turning a system of PDEs into complex function theory. It is standard in fracture mechanics.

Aerodynamics. Circulation and lift are computed from a complex potential whose real and imaginary parts satisfy these equations, which is how the Kutta–Joukowski theorem is derived.

What are the Cauchy–Riemann equations?
How many directions of approach are needed to derive the Cauchy–Riemann equations?
Are the Cauchy–Riemann equations sufficient for differentiability?
Where is f(z) = |z|² differentiable?
What does ∂f/∂z̄ = 0 express?
Geometrically, what does complex differentiability mean for the map as a transformation of ℝ²?
If u(x, y) = x² − y² + 3x, what is a harmonic conjugate v?
Why must the real and imaginary parts of an analytic function be harmonic?