Discover complex differentiability and the Cauchy-Riemann equations
Being differentiable in the complex sense is a strict test, and most functions fail it. The ones that pass, the analytic functions, get a lot of structure for free.
Drag the small square and shrink it. Under an analytic function its image becomes a rotated, scaled square; under z̄ or |z|² it flips, shears, or flattens however far you zoom.
Cauchy–Riemann holds: the square only rotates by 32.0° and scales by 1.89.
Colored edges: the exact image of the square, magnified so it stays the same size as you shrink it. Dashed: the Jacobian's prediction. As the square shrinks the two agree, so what you see is the derivative itself. Any real-linear map can be written dz ↦ a·dz + b·dz̄; it is a rotation and scaling exactly when b = ∂f/∂z̄ = 0, which is the Cauchy–Riemann equations in one line. Non-analytic functions are shown in rose.
In complex analysis, a function is analytic (or holomorphic) if it is complex differentiable in a neighborhood of every point in its domain. This seemingly simple requirement has profound consequences!
The key to understanding analyticity is the Cauchy-Riemann equations - a pair of partial differential equations that relate the real and imaginary parts of a complex function.
For a function f(z) = u(x,y) + iv(x,y) to be analytic, it must satisfy the Cauchy-Riemann equations:
Zoomed in far enough, any smooth map of the plane looks like its Jacobian matrix [[uₓ, u_y], [vₓ, v_y]]. Complex differentiability asks for more: the Jacobian must be multiplication by a single complex number f′(z₀), which rotates by arg f′(z₀) and scales by |f′(z₀)|. A matrix [[p, −q], [q, p]] does exactly that, and matching it entry by entry gives the two equations above.
Another way to say it: every real-linear map can be written dz ↦ a·dz + b·dz̄, with a = ∂f/∂z and b = ∂f/∂z̄. The dz̄ part is what flips and shears the square in the demo, and the Cauchy–Riemann equations are the single condition ∂f/∂z̄ = 0.
Choose an analytic function and compare its real part u with its imaginary part v. Both are harmonic, and their level curves cross at right angles.
Blue = low values, Red = high values
Blue = low values, Red = high values
🎨 Reading the Heatmaps:
⚗️ Harmonic Functions:
The real and imaginary parts of an analytic function are harmonic functions - they satisfy Laplace's equation:
Harmonic functions have many beautiful properties: they have no local maxima or minima, the level curves of u and its harmonic conjugate v are orthogonal, and they model steady-state heat distribution.
Test each function and see which pass. Start with z and eᶻ, then try the conjugate z̄ and |z|².
Analytic functions produce smooth, continuous color patterns (except at poles)
📚 Key Insights:
Not all complex functions are analytic! Test various functions to see which satisfy the Cauchy-Riemann equations. Some surprising examples:
Analyticity is Rare: Most functions from ℝ² → ℝ² are not analytic. Only those that satisfy C-R equations have this special property.
Powerful Consequences: Analytic functions have infinite derivatives, can be represented as power series, and satisfy the Cauchy Integral Theorem - topics we'll explore next!
Spot a mistake or have an idea?