Differentiability and Cauchy-Riemann equations

Take an ordinary real function of two variables and ask it to be differentiable in the complex sense, and the requirement suddenly becomes far stricter: the limit defining the derivative must agree no matter which direction in the plane you approach from, not just along one axis. That single demand — direction independence — is what makes complex differentiability such a powerful and restrictive idea, and the Cauchy-Riemann (C-R) equations are its algebraic fingerprint. Instead of checking infinitely many directions of approach, you check two partial-derivative identities. This topic sits at the hinge of Unit 5 (Complex Variables) in MA10001. It converts the abstract limit definition of f′(z0)f'(z_0) into a concrete test you can run on any f(z)=u(x,y)+iv(x,y)f(z) = u(x,y) + iv(x,y), and it reconnects to the harmonic functions of Unit 2: the real and imaginary parts of an analytic function turn out to be a conjugate harmonic pair. Everything later in the unit — contour integration, Cauchy's theorem, residues — rests on the notion of analyticity built here.

The core insight

A complex function f(z0)f(z_0) is differentiable only if its real and imaginary parts u,vu,v satisfy ux=vyu_x=v_y and uy=−vxu_y=-v_x (the Cauchy-Riemann equations), and if those partials are also continuous nearby, ff is in fact analytic there.

The core idea

Complex differentiability is a one-limit, all-directions condition. f(z)f(z) is differentiable at z0z_0 if

f′(z0)=lim⁡Δz→0f(z0+Δz)−f(z0)Δzf'(z_0) = \lim_{\Delta z \to 0} \frac{f(z_0 + \Delta z) - f(z_0)}{\Delta z}

exists as a single value, no matter how Δz→0\Delta z \to 0 in the complex plane — along the real axis, the imaginary axis, or any spiral in between. where: Δz\Delta z is a complex increment, and the limit must be the same finite number f′(z0)f'(z_0) for every path of approach. Real differentiability only ever asks about approach along a line in R2\mathbb{R}^2 restricted to one variable at a time; complex differentiability asks about every direction in the plane simultaneously, which is why it is so much harder to satisfy.

Analyticity upgrades a point condition to a neighbourhood condition. ff is analytic (equivalently holomorphic) at z0z_0 if it is differentiable not just at z0z_0 but at every point of some open disc around z0z_0. Differentiability at an isolated point does not make a function analytic there — you need a whole neighbourhood of good behaviour before the deep machinery of complex analysis (Cauchy's integral theorem, power-series expansions, residue calculus) becomes available.

The Cauchy-Riemann equations translate the limit condition into partial derivatives. Writing f(z)=u(x,y)+iv(x,y)f(z) = u(x,y) + iv(x,y), if f′(z0)f'(z_0) exists then uu and vv have first partials at (x0,y0)(x_0,y_0) satisfying

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

where: uu is the real part and vv the imaginary part of ff, both functions of the two real variables x,yx,y; the four quantities ux,uy,vx,vyu_x,u_y,v_x,v_y are ordinary partial derivatives. These two identities are necessary for differentiability at a point — every differentiable ff obeys them — but on their own they are not enough to guarantee differentiability, which is the single most tested subtlety in this topic.

Continuity of the partials upgrades necessity to sufficiency. If ux,uy,vx,vyu_x,u_y,v_x,v_y exist and are continuous in a neighbourhood of (x0,y0)(x_0,y_0) and satisfy the C-R equations there, then ff is differentiable — in fact analytic — at z0z_0, with f′(z0)=ux+ivxf'(z_0)=u_x+iv_x. Drop the continuity requirement and C-R holding at a point no longer guarantees anything, because the underlying real-variable theorem (differentiability of a function of two variables) itself needs continuous partials. The figure below visualises why direction-independence is the crux: two different paths into z0z_0 must produce the same difference-quotient limit, and equating what each path forces on uu and vv is exactly how the C-R equations are born.

Figure
Two paths approaching a point in the complex plane, one along the real axis and one along the imaginary axis, both required to give the same derivative
Two approach directions must agree at z0 Re Im z0 real-axis approach: dz = dx imaginary-axis approach: dz = i dy Same f'(z0) from every path forces u_x = v_y and u_y = -v_x

The core derivation

Derivation ADeriving the Cauchy-Riemann equations from complex differentiability

The goal is to show that if f(z0)f(z_0) exists as a genuine, direction-independent complex limit, then the real and imaginary parts u,vu,v of f=u+ivf = u+iv must satisfy ux=vyu_x = v_y and uy=−vxu_y = -v_x at that point — turning a single hard-to-check limit condition into two ordinary partial-derivative equations that can be verified algebraically on any polynomial or rational expression in xx and yy.

Step 1. Approach along the real axis. Let Δz=Δx\Delta z = \Delta x (a real increment, Δy=0\Delta y = 0). Then

f′(z0)=lim⁡Δx→0[u(x0+Δx,y0)−u(x0,y0)]+i[v(x0+Δx,y0)−v(x0,y0)]Δx=ux(x0,y0)+i vx(x0,y0).f'(z_0) = \lim_{\Delta x \to 0} \frac{[u(x_0+\Delta x, y_0) - u(x_0,y_0)] + i[v(x_0+\Delta x, y_0) - v(x_0,y_0)]}{\Delta x} = u_x(x_0,y_0) + i\,v_x(x_0,y_0).

This is just the ordinary partial derivative of uu and of vv with respect to xx, combined into one complex number.

Step 2. Approach along the imaginary axis. Let Δz=iΔy\Delta z = i\Delta y (a purely imaginary increment, Δx=0\Delta x = 0). Then

f′(z0)=lim⁡Δy→0[u(x0,y0+Δy)−u(x0,y0)]+i[v(x0,y0+Δy)−v(x0,y0)]iΔy=uy(x0,y0)i+vy(x0,y0)=vy(x0,y0)−i uy(x0,y0),f'(z_0) = \lim_{\Delta y \to 0} \frac{[u(x_0,y_0+\Delta y) - u(x_0,y_0)] + i[v(x_0,y_0+\Delta y) - v(x_0,y_0)]}{i\Delta y} = \frac{u_y(x_0,y_0)}{i} + v_y(x_0,y_0) = v_y(x_0,y_0) - i\,u_y(x_0,y_0),

using 1/i=−i1/i = -i to clear the factor of ii from the denominator.

Step 3. Equate the two expressions for f′(z0)f'(z_0), since a genuine complex derivative must give the same value regardless of the path chosen. The real-axis result is ux+ivxu_x + iv_x and the imaginary-axis result is vy−iuyv_y - iu_y; two complex numbers are equal exactly when their real parts match and their imaginary parts match.

Step 4. Read off the two equations. Matching real parts gives ux=vyu_x = v_y. Matching imaginary parts gives vx=−uyv_x = -u_y, i.e. uy=−vxu_y = -v_x. These are the Cauchy-Riemann equations, and the argument shows they are necessary — forced on any function that is genuinely complex differentiable at z0z_0 — though on their own, without continuity of the partials, they are not sufficient to guarantee that differentiability.

Harmonic conjugates fall out for free. If f=u+ivf=u+iv is analytic, differentiate the C-R equations once more: uxx=vyxu_{xx}=v_{yx} and uyy=−vxyu_{yy}=-v_{xy}. Adding, and using equality of mixed partials vxy=vyxv_{xy}=v_{yx}, gives uxx+uyy=0u_{xx}+u_{yy}=0 — so uu is harmonic, and by the same argument so is vv. They are called harmonic conjugates: given one, C-R determines the other up to an additive real constant.

Worked example

Problem. Show that f(z)=z2f(z) = z^2 is differentiable everywhere and find f′(z)f'(z) using the Cauchy-Riemann equations; then show f(z)=zˉf(z)=\bar z (complex conjugation) is nowhere differentiable.

Step 1. Split z2z^2 into real and imaginary parts. With z=x+iyz=x+iy, z2=(x+iy)2=x2−y2+2ixyz^2 = (x+iy)^2 = x^2-y^2+2ixy, so u(x,y)=x2−y2u(x,y)=x^2-y^2 and v(x,y)=2xyv(x,y)=2xy.

Step 2. Compute the four partials. ux=2xu_x=2x, uy=−2yu_y=-2y, vx=2yv_x=2y, vy=2xv_y=2x.

Step 3. Check C-R and continuity. ux=2x=vyu_x=2x=v_y holds, and uy=−2y=−vx=−(2y)u_y=-2y=-v_x=-(2y) holds — for all (x,y)(x,y). All four partials are polynomials, so they are continuous everywhere. By the sufficiency direction, z2z^2 is analytic on all of C\mathbb{C} (an entire function), with f′(z)=ux+ivx=2x+i(2y)=2(x+iy)=2zf'(z) = u_x+iv_x = 2x+i(2y) = 2(x+iy) = 2z, matching the familiar formula ddz(z2)=2z\frac{d}{dz}(z^2)=2z.

Step 4. Now test f(z)=zˉ=x−iyf(z)=\bar z = x-iy, so u=xu=x, v=−yv=-y, giving ux=1, uy=0, vx=0, vy=−1u_x=1,\,u_y=0,\,v_x=0,\,v_y=-1. The first C-R equation requires ux=vyu_x=v_y, i.e. 1=−11=-1, which is false at every point. Since the necessary condition fails everywhere, zˉ\bar z is nowhere differentiable — even though uu and vv are perfectly smooth real functions on their own, differentiability of the components separately is not enough.

Answer: f(z)=z2f(z)=z^2 is entire with f′(z)=2zf'(z)=2z; f(z)=zˉf(z)=\bar z is differentiable at no point of C\mathbb{C}.

Competitive stretch

For f(z)=∣z∣2=x2+y2f(z)=|z|^2 = x^2+y^2: u=x2+y2, v=0u=x^2+y^2,\,v=0, so ux=2x, uy=2y, vx=0, vy=0u_x=2x,\,u_y=2y,\,v_x=0,\,v_y=0. C-R needs ux=vy⇒2x=0u_x=v_y \Rightarrow 2x=0 and uy=−vx⇒2y=0u_y=-v_x \Rightarrow 2y=0, both true only at the single point (0,0)(0,0). So ff is differentiable only at z=0z=0 and, since no neighbourhood of 00 is entirely made of points where it's differentiable, ff is nowhere analytic — a sharp illustration that differentiability at one point does not give analyticity.

Common traps

  • Confusing C-R sufficiency with necessity. C-R holding at a point is necessary but not sufficient by itself — you also need the four partials continuous near that point before concluding differentiability.
  • Checking C-R at one point and calling the function analytic. Analyticity needs differentiability throughout a neighbourhood; f(z)=∣z∣2f(z)=|z|^2 satisfies C-R only at the origin and is nowhere analytic.
  • Sign error in the second equation. It is uy=−vxu_y=-v_x, not uy=vxu_y=v_x; this is the single most common slip.
  • Forgetting the harmonic conjugate is only unique up to a constant. Given uu harmonic, vv is determined by integrating the C-R relations but always carries a free additive real constant.

Ask the tutor: For more practice verifying C-R on new functions or finding harmonic conjugates step by step, ask the AI tutor to generate a fresh problem set for this topic.

If a function satisfies the Cauchy-Riemann equations at a point, is it automatically differentiable there?

Not necessarily. C-R holding is a necessary condition, derived by forcing the real-axis and imaginary-axis approach limits to agree — but two directions agreeing does not by itself prove that every direction agrees. The extra ingredient is continuity of the four partials ux,uy,vx,vyu_x,u_y,v_x,v_y near the point; once you have both C-R and that continuity, the sufficiency theorem guarantees differentiability. Without checking continuity, you have only shown a necessary condition is satisfied, not that the function is actually differentiable.

Why does complex differentiability require so much more than real differentiability?

In one real variable, differentiability only means the difference quotient has a limit as you approach along the single number line — there are only two directions, left and right, and they usually agree easily. In the complex plane, Δz→0\Delta z \to 0 can happen along infinitely many directions and spiralling paths, and every single one must give the same limiting value. The Cauchy-Riemann equations are the two extra constraints that emerge once you demand agreement between just the two simplest directions (real and imaginary axes); sufficiency then extends that agreement to all directions provided the partials are continuous. That is exactly why so few functions built from zˉ\bar z, Re(z)\text{Re}(z), or ∣z∣|z| survive the test.

How do I find the harmonic conjugate v given a harmonic function u?

Use the C-R equations as a recipe. From vy=uxv_y = u_x, integrate with respect to yy to get vv up to an unknown function of xx; then differentiate that expression with respect to xx, set it equal to −uy-u_y (the second C-R equation), and solve for the unknown function of xx. The result always contains one free additive real constant, since integrating only pins down vv up to a constant — the problem never has a unique answer without an extra condition like v(0,0)=0v(0,0)=0.

Before this

Where this leads