Complex Differentiation and the Cauchy–Riemann Equations
What You’ll Learn
Section titled “What You’ll Learn”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.
The Concept
Section titled “The Concept”The derivative
Section titled “The derivative”is differentiable at if
exists, with complex and the limit independent of how .
The differentiation rules you know all hold with the same proofs: sum, product, quotient, chain, and . Differentiability implies continuity, again with the same argument.
What is new is how few functions qualify.
Deriving the equations
Section titled “Deriving the equations”Write and let approach 0 in two particular ways.
Along the real axis, with real:
Along the imaginary axis, :
If is differentiable these two must be equal. Matching real and imaginary parts gives the Cauchy–Riemann equations:
And the derivative itself has two equivalent formulas:
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.
Necessary, and when sufficient
Section titled “Necessary, and when sufficient”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 have continuous first partial derivatives on a neighbourhood of and satisfy the Cauchy–Riemann equations there, then is differentiable at .
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.
What the equations mean
Section titled “What the equations mean”Three readings, all worth carrying.
Rigidity. The equations couple and tightly: you cannot choose the real and imaginary parts independently. Given , the function is determined up to a constant. Half of an analytic function determines the other half.
No conjugates allowed. Introduce the operator
The Cauchy–Riemann equations are exactly , which says depends on but not on . That is the sharpest way to state the whole condition, and it instantly explains why , , , and all fail.
Geometric. As a real map , the derivative of has Jacobian
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 , so is the local area magnification factor.
The harmonic consequence
Section titled “The harmonic consequence”Differentiate the first equation with respect to and the second with respect to , then add. Assuming enough smoothness, which we will later prove is automatic,
and the same for . 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.
Polar form of the equations
Section titled “Polar form of the equations”For functions naturally written in polar coordinates, with :
These are what you use for and for power functions with non-integer exponents.
Worked Examples
Section titled “Worked Examples”Example 1: Verify is differentiable and find .
Solution. Here and , so
Both equations hold: ✓ and ✓. The partials are polynomials, hence continuous, so is differentiable everywhere.
✓ as expected.
Example 2: Show fails the test.
Solution. and , giving
The second equation holds, since . The first does not: , 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 differentiable?
Solution. , so and .
The equations require and , so both hold only at the origin. The partials are continuous, so is differentiable at and nowhere else, with .
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 is entire.
Solution. , so and . Then
Both equations hold everywhere, and all partials are continuous. So is differentiable on all of , and
The exponential is its own derivative in too. ∎
Example 5: Find a harmonic conjugate.
Given , find so that is analytic.
Solution. From the first equation, , so integrating in ,
for some function of alone. From the second equation, . But differentiating the expression above gives , so and is a constant .
Checking, . ✓
The constant is the only freedom, which is the rigidity from earlier made concrete: determines up to an additive constant.
Example 6: A function satisfying the equations at a point yet not differentiable there.
Solution. Let for and . A computation shows and satisfy the Cauchy–Riemann equations at the origin, because all four partials there are 0.
But along the ray ,
which depends on , so the limit does not exist and 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 .
Solution. Take the principal branch , so and . Then
Both hold for , so is differentiable away from the origin and away from whatever ray we cut to make single-valued. And
∎
Real-World Applications
Section titled “Real-World Applications”Fluid flow. For a two-dimensional incompressible irrotational flow, the velocity potential and stream function are precisely a pair satisfying the Cauchy–Riemann equations. The complex function 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 and 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 is used in complex-valued signal and image processing, where a filter’s dependence on 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.
Retrying will remove your ✅ checkmark until you pass again.