The definition
Definition
A function \(f\) defined near \(a\) is complex differentiable at \(a\) if the limit
\[ f'(a) = \lim_{h\to0}\frac{f(a + h) - f(a)}{h} \]exists, where \(h\) is a complex number tending to 0.
On the real line, \(h\) can approach 0 only from the left or the right. In the plane, it can come from any direction, or spiral in. The quotient must tend to the same complex number regardless. That one extra demand changes everything.
The familiar rules
The algebra of limits is the same as in the real case, so the familiar rules hold with the same proofs:
Examples
\(f(z) = z^2\): \(\frac{(a + h)^2 - a^2}{h} = 2a + h \to 2a\), from every direction. So \((z^2)' = 2z\).
More generally \((z^n)' = nz^{n-1}\), and the sum, product, quotient and chain rules all hold. So every polynomial is differentiable everywhere, and every rational function wherever its denominator isn't 0: \(\left(\frac1z\right)' = -\frac1{z^2}\).
A function with no derivative
Now try the simple reflection \(f(z) = \bar z\):
\[ \frac{\overline{a + h} - \bar a}{h} = \frac{\bar h}{h}. \]As we saw in Unit 3, this is 1 when \(h\) is real and \(-1\) when \(h\) is imaginary. No limit. So \(\bar z\) is differentiable nowhere, even though it is as smooth as a function can be in the real sense: a linear map of the plane. The same goes for \(\operatorname{Re} z\), \(\operatorname{Im} z\) and \(|z|\).
Complex differentiability is not about smoothness. It is about the kind of transformation a function makes near each point, as the next picture shows.
Rotate and scale
As in real calculus, a derivative is a best linear approximation: near \(a\),
\[ f(a + h) \approx f(a) + f'(a)\,h. \]But multiplying \(h\) by the complex number \(f'(a)\) is a rotation by \(\arg f'(a)\) and a scaling by \(|f'(a)|\) (Unit 2). So near each point, a differentiable function acts like a rotation combined with a scaling. Tiny squares go to tiny squares, turned and resized.
Here \(f'(a) = 2a = 2 + i\), with length \(\sqrt5 \approx 2.24\) and angle about \(27°\). The square isn't tiny, so its image is slightly curved, but its corners are still right angles and the edge arrows are turned and stretched by exactly the same amount. Needham calls this local rotate-and-scale an amplitwist.
A general smooth map of the plane looks, close up, like a general linear map: a matrix, which can shear a square into a parallelogram or flip it over. Complex differentiable maps are exactly those whose matrix has the special form
\[ \begin{pmatrix} p & -q \\ q & p \end{pmatrix}, \]a rotation times a scaling. \(\bar z\) fails because its matrix \(\begin{pmatrix}1 & 0\\ 0 & -1\end{pmatrix}\) is a reflection: it flips squares over.
The Cauchy–Riemann equations
Write \(f = u + iv\). Let \(h\) approach 0 along the real axis (\(h = t\)) and along the imaginary axis (\(h = it\)):
\[ f'(a) = \frac{\partial u}{\partial x} + i\frac{\partial v}{\partial x}, \qquad f'(a) = \frac{1}{i}\left(\frac{\partial u}{\partial y} + i\frac{\partial v}{\partial y}\right) = \frac{\partial v}{\partial y} - i\frac{\partial u}{\partial y}. \]Both must give the same number. Comparing real and imaginary parts:
Theorem
If \(f\) is complex differentiable at \(a\), then \(u\) and \(v\) satisfy the Cauchy–Riemann equations there. Conversely, if the partial derivatives of \(u\) and \(v\) exist, are continuous near \(a\), and satisfy the equations at \(a\), then \(f\) is complex differentiable at \(a\).
Examples
\(z^2\): \(u = x^2 - y^2\), \(v = 2xy\). Then \(u_x = 2x = v_y\) and \(u_y = -2y = -v_x\). ✓
\(|z|^2 = x^2 + y^2\): \(u = x^2 + y^2\), \(v = 0\). The equations say \(2x = 0\) and \(2y = 0\), so \(|z|^2\) is differentiable only at the single point 0.
Analytic functions
Being differentiable at one isolated point is a curiosity. What matters is differentiability on a whole region.
Definition
A function is analytic (also called holomorphic) on an open set \(U\) if it is complex differentiable at every point of \(U\). A function analytic on all of \(\mathbb C\) is entire.
Polynomials are entire; \(\frac1z\) is analytic on \(\mathbb C \setminus \{0\}\). In Unit 5 we'll add \(e^z\), \(\sin z\) and \(\cos z\) to the list of entire functions.
Here is the first sign of how strong this condition is. In real analysis, a function can be differentiable once but not twice, or infinitely often and still not equal its Taylor series. In complex analysis:
Coming in Units 8 and 9
If \(f\) is analytic on an open set, then \(f'\) is analytic too. So \(f\) has derivatives of every order, and it equals its Taylor series on every disc inside the set. One derivative gives you all of them, for free.
Harmonic functions
Differentiate the Cauchy–Riemann equations again (assuming, as Unit 9 will justify, that second derivatives exist): \(u_{xx} = v_{yx}\) and \(u_{yy} = -v_{xy}\). Adding,
\[ \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = 0, \]and the same for \(v\). This is Laplace's equation, and its solutions are called harmonic functions. The real and imaginary parts of every analytic function are harmonic.
Laplace's equation governs steady temperature in a plate, electrostatic potential, and the flow of an ideal fluid. If \(u\) is a temperature, its level curves are isotherms and the level curves of \(v\) are the lines along which heat flows. This is why complex analysis became a standard tool of physicists and engineers: solving a 2D physics problem often amounts to finding the right analytic function.
Going deeper: the derivative with respect to z̄
Any smooth function of \(x\) and \(y\) can be written in terms of \(z\) and \(\bar z\), since \(x = \frac{z + \bar z}{2}\) and \(y = \frac{z - \bar z}{2i}\). Define \(\frac{\partial f}{\partial\bar z} = \frac12\left(\frac{\partial f}{\partial x} + i\frac{\partial f}{\partial y}\right)\). A short calculation shows that the Cauchy–Riemann equations say exactly \(\frac{\partial f}{\partial\bar z} = 0\). Analytic functions are those that depend on \(z\) alone, with no \(\bar z\) in sight. For instance \(|z|^2 = z\bar z\) has \(\frac{\partial}{\partial\bar z}(z\bar z) = z\), which is 0 only at the origin, matching the example above.
History
D'Alembert found the equations in 1752 studying fluid flow, and Euler used them in 1777. Cauchy made them the foundation of his theory from 1814 on; Riemann's 1851 thesis put them at the centre of a geometric view of complex functions, which is the view this course takes.
Practice set
Mixed questions covering the whole unit. Try each one before opening the answer.
1. Differentiate \(f(z) = \dfrac{z^2 + 1}{z - i}\) where it is defined. Is anything surprising?
Show answer
\(z^2 + 1 = (z - i)(z + i)\), so \(f(z) = z + i\) for \(z \neq i\), and \(f'(z) = 1\). The apparent problem at \(i\) is removable: define \(f(i) = 2i\) and \(f\) is entire.
2. Use the Cauchy–Riemann equations to check that \(f(z) = z^3\) is entire.
Show answer
\(u = x^3 - 3xy^2\), \(v = 3x^2y - y^3\). Then \(u_x = 3x^2 - 3y^2 = v_y\) and \(u_y = -6xy = -v_x\). The partials are continuous, so \(f\) is differentiable everywhere.
3. Where is \(f(x + iy) = x^2 + iy^2\) complex differentiable? Is it analytic anywhere?
Show answer
\(u_x = 2x\), \(v_y = 2y\), \(u_y = 0 = -v_x\). So it's differentiable exactly on the line \(y = x\). A line contains no open set, so \(f\) is analytic nowhere.
4. Near \(a = i\), what does \(f(z) = z^2\) do to tiny shapes?
Show answer
\(f'(i) = 2i = 2e^{i\pi/2}\): it turns them a quarter turn anticlockwise and doubles their size.
5. Show that \(u = x^2 - y^2 + 3x\) is harmonic, and find a \(v\) making \(u + iv\) analytic.
Show answer
\(u_{xx} + u_{yy} = 2 - 2 = 0\). We need \(v_y = u_x = 2x + 3\), so \(v = 2xy + 3y + g(x)\); and \(v_x = -u_y = 2y\) forces \(g' = 0\). So \(v = 2xy + 3y\), and \(u + iv = z^2 + 3z\).
6. If \(f\) is analytic on a disc and takes only real values, show that \(f\) is constant.
Show answer
\(v = 0\), so by Cauchy–Riemann \(u_x = v_y = 0\) and \(u_y = -v_x = 0\). All partial derivatives vanish on a disc, so \(u\) is constant. (Geometrically: a rotate-and-scale map can't squash the plane onto a line unless the scale factor is 0.)
Summary and glossary
- \(f'(a) = \lim_{h\to0}\frac{f(a + h) - f(a)}{h}\) with \(h\) complex: the limit must agree from every direction.
- The usual rules hold; polynomials are entire. But \(\bar z\), \(|z|\) and \(\operatorname{Re} z\) are differentiable nowhere.
- Near each point, a differentiable function acts like multiplication by \(f'(a)\): a rotation and a scaling.
- The Cauchy–Riemann equations \(u_x = v_y\), \(u_y = -v_x\) express this in coordinates.
- Real and imaginary parts of analytic functions are harmonic, with level curves crossing at right angles.
- Complex differentiable
- The difference quotient has a limit as \(h \to 0\) through complex values.
- Analytic (holomorphic)
- Complex differentiable at every point of an open set.
- Entire
- Analytic on all of \(\mathbb C\).
- Cauchy–Riemann equations
- \(u_x = v_y\) and \(u_y = -v_x\).
- Harmonic
- Satisfying Laplace's equation \(u_{xx} + u_{yy} = 0\).