Complex analysis · Differentiation
The complex derivative is defined by the same difference quotient as the real one. But because \(\Delta z\) can approach zero from every direction in the plane, demanding that the limit exist is a very strong condition. It forces the real and imaginary parts of the function to be tied together by two equations, the Cauchy–Riemann equations, and functions that satisfy them (the analytic functions) have remarkable properties: their parts are harmonic, their level curves cross at right angles, and as mappings they preserve angles. This post explains where all of this comes from.
The formula is identical to the real one, but the meaning of "\(\Delta z \to 0\)" is not. As in the previous post on limits, \(\Delta z\) is a complex number that may shrink to zero along any path: horizontally, vertically, along a spiral. The quotient must approach the same number along all of them. For functions built algebraically from \(z\) this happens automatically:
But a very innocent-looking function fails completely:
Write \( f(z) = u(x, y) + iv(x, y) \) and suppose \(f'(z)\) exists. Let us compute it along two special directions.
Both must give the same complex number. Comparing real and imaginary parts:
The computation above proves that the equations are necessary. Why are they also sufficient (with the differentiability of \(u, v\))? For a general direction, differentiability of \(u\) and \(v\) gives \( \Delta u \approx u_x\Delta x + u_y\Delta y \) and \( \Delta v \approx v_x\Delta x + v_y\Delta y \). Using the equations to replace \(u_y = -v_x\) and \(v_y = u_x\):
\[ \Delta u + i\Delta v \approx (u_x + iv_x)\Delta x + (-v_x + iu_x)\Delta y = (u_x + iv_x)(\Delta x + i\Delta y) = (u_x + iv_x)\,\Delta z. \]So the quotient \( \frac{\Delta f}{\Delta z} \) tends to \( u_x + iv_x \) whatever the direction: the two equations are exactly what is needed to turn a real linear approximation into multiplication by one complex number.
The four formulas for \(f'(z)\) all say the same thing; choose the one most convenient for the given \(u\) and \(v\). The last two show that \(f'\) is determined by \(u\) alone, or by \(v\) alone.
For functions given in polar coordinates \( z = re^{i\theta} \), \( f = u(r, \theta) + iv(r, \theta) \), the equations become (by the chain rule)
\[ \frac{\partial u}{\partial r} = \frac1r\frac{\partial v}{\partial\theta}, \qquad \frac{\partial v}{\partial r} = -\frac1r\frac{\partial u}{\partial\theta}, \qquad f'(z) = e^{-i\theta}\Big(\frac{\partial u}{\partial r} + i\frac{\partial v}{\partial r}\Big). \]Why: differentiate the first equation by \(x\) and the second by \(y\): \( u_{xx} = v_{yx} \), \( u_{yy} = -v_{xy} \). Adding, and using that the mixed derivatives are equal, gives \( u_{xx} + u_{yy} = 0 \). The same trick works for \(v\). (The second derivatives exist and are continuous because analytic functions are infinitely differentiable, a fact proved later with Cauchy's integral formula.)
Laplace's equation describes steady-state temperature, electrostatic potential and ideal fluid flow in the plane. So every analytic function hands us two solutions of a physical problem for free, which is one reason complex analysis is so useful in engineering.
Conversely, given a harmonic \(u\) on a simply connected domain, the Cauchy–Riemann equations determine \(v\) (the harmonic conjugate) up to a constant, and with it \(f = u + iv\).
The Cauchy–Riemann equations make the gradients of \(u\) and \(v\) perpendicular:
\[ \nabla u\cdot\nabla v = u_xv_x + u_yv_y = u_x(-u_y) + u_y(u_x) = 0. \]So the level curves \(u = \text{const}\) and \(v = \text{const}\) cross at right angles (wherever \(f' \ne 0\)). In physics: equipotential lines and field lines, or isotherms and heat-flow lines.
All the rules of differentiation of real functions hold for complex functions, with the same proofs: sums, products, quotients, the chain rule, inverse functions. Hence
\[ (z^n)' = nz^{n-1},\quad (e^z)' = e^z,\quad (\sin z)' = \cos z,\quad (\cos z)' = -\sin z,\quad (\ln z)' = \frac1z, \quad \dots \]Polynomials are analytic everywhere; rational functions everywhere except at the zeros of the denominator.
(Proof: divide numerator and denominator by \(z - z_0\) and pass to the limit; this form does not need a mean value theorem, which in fact fails for complex functions. If also \(f'(z_0) = g'(z_0) = 0\), repeat with higher derivatives.)
Near \(z_0\), \( \Delta w \approx f'(z_0)\,\Delta z \). Multiplying by the complex number \( f'(z_0) = |f'(z_0)|e^{i\alpha} \) means:
So, if \( f'(z_0) \ne 0 \), small figures near \(z_0\) are mapped to similar small figures: angles between curves through \(z_0\) are preserved, in size and orientation. Such mappings are called conformal, and analytic functions are conformal wherever \(f' \ne 0\). This is the geometric content of the Cauchy–Riemann equations: a general smooth map of the plane distorts small circles into ellipses, but an analytic map keeps them circles.
Example: \(w = z^2\) is conformal everywhere except at \(0\), where \(f'(0) = 0\) and angles are doubled (as seen in the previous post). The map \(\bar z\) preserves angle sizes but reverses their orientation (it is a mirror), which is another way to see why it is not analytic.
| Concept | Statement |
|---|---|
| Derivative | \( f'(z_0) = \lim\frac{f(z_0 + \Delta z) - f(z_0)}{\Delta z} \), the same along every path |
| Cauchy–Riemann | \( u_x = v_y \), \( u_y = -v_x \) (+ differentiability of \(u, v\)) \(\iff\) \(f\) differentiable |
| Formula for \(f'\) | \( u_x + iv_x = v_y - iu_y = u_x - iu_y = v_y + iv_x \) |
| Polar form | \( u_r = \frac1r v_\theta \), \( v_r = -\frac1r u_\theta \) |
| Harmonic | \( \Delta u = \Delta v = 0 \); level curves of \(u\) and \(v\) orthogonal |
| Differential | \( dw = f'(z)\,dz \) |
| Geometry | \(f' \ne 0\): local rotation by \(\arg f'\) and scaling by \(|f'|\), conformal |
Try each one before opening the solution. More solved problems from this topic are in Complex Numbers.
\( z^3 = x^3 - 3xy^2 + i(3x^2y - y^3) \). \( u_x = 3x^2 - 3y^2 = v_y \); \( u_y = -6xy = -v_x \). ✓ And \( f' = u_x + iv_x = 3(x^2 - y^2) + 6ixy = 3z^2 \).
\( u_x = 2x \), \( v_y = 2y \): equal on the line \(y = x\); \( u_y = 0 = -v_x \) always. Differentiable only on the line \(y = x\), analytic nowhere (a line contains no disk).
\( u_x = v_y = e^x\cos y \Rightarrow u = e^x\cos y + \psi(y) \); \( u_y = -e^x\sin y + \psi' = -v_x = -e^x\sin y \Rightarrow \psi = C \). \( f = e^z + C \), and \(f(0) = 1\) gives \(C = 0\): \( f = e^z \).
\( u_{xx} + u_{yy} = 6x - 6x = 0 \). \( v_y = u_x = 3x^2 - 3y^2 \Rightarrow v = 3x^2y - y^3 + \varphi(x) \); \( v_x = 6xy + \varphi' = -u_y = 6xy \). So \( v = 3x^2y - y^3 + C \), and \( f = z^3 + iC \).
L'Hôpital: \( \frac{e^0}{\cos 0} = 1 \).
\( f'(1 + i) = 2 + 2i = 2\sqrt2\,e^{i\pi/4} \): rotation by \(45^\circ\), stretching by \(2\sqrt2 \approx 2.83\).
The complex derivative asks for one limit, but since \(\Delta z\) can come from any direction, that single demand splits into two real equations. Checking just the horizontal and vertical directions gives the Cauchy–Riemann equations, and with differentiable \(u, v\) they are also enough. From them flow the main facts of this chapter: the real and imaginary parts of an analytic function are harmonic, either one determines the other, their level curves are orthogonal, and the function acts locally as a rotation combined with a scaling. Analytic functions are much more special than smooth maps of the plane, and that is what makes complex analysis so powerful.
Related posts: complex functions, limits and continuity; partial derivatives and the chain rule.