Counting primes
The primes look random: 2, 3, 5, 7, 11, 13, … with irregular gaps. Yet on a large scale they thin out smoothly. Gauss guessed around 1792 that the number of primes up to \(x\) is about \(\frac{x}{\ln x}\). Proving it took a hundred years, and complex analysis.
The link is Euler's product. Since every integer factors uniquely into primes, expanding the geometric series \(\frac1{1 - p^{-s}} = 1 + p^{-s} + p^{-2s} + \cdots\) and multiplying over all primes gives every \(n^{-s}\) exactly once:
\[ \zeta(s) = \sum_{n=1}^\infty \frac{1}{n^s} = \prod_{p \text{ prime}} \frac{1}{1 - p^{-s}}. \]So \(\zeta\) knows about the primes. Riemann's 1859 paper continued \(\zeta\) analytically to the whole plane (Unit 9) and showed that the error in counting primes is controlled by the zeros of \(\zeta\), through what is essentially a residue calculation (Unit 11).
In 1896 Hadamard and de la Vallée Poussin showed that \(\zeta\) has no zeros on the line \(\operatorname{Re} s = 1\), which is enough to prove the prime number theorem: the number of primes up to \(x\) is asymptotic to \(\frac{x}{\ln x}\). The Riemann hypothesis, that all non-trivial zeros lie on \(\operatorname{Re} s = \frac12\), would give the best possible error term. It is perhaps the most famous open problem in mathematics.
The Gamma function
The factorial \(n!\) is defined for whole numbers. Euler found a way to interpolate it:
\[ \Gamma(s) = \int_0^\infty t^{s-1}e^{-t}\,dt, \qquad \Gamma(n + 1) = n!. \]The integral converges for \(\operatorname{Re} s > 0\) and defines an analytic function there. Integration by parts gives \(\Gamma(s + 1) = s\Gamma(s)\), and running this backwards continues \(\Gamma\) to the whole plane, with simple poles at \(0, -1, -2, \ldots\). By the identity theorem (Unit 9), it is the only reasonable extension of the factorial with these properties. Two famous identities:
\[ \Gamma\left(\tfrac12\right) = \sqrt\pi, \qquad \Gamma(s)\Gamma(1 - s) = \frac{\pi}{\sin\pi s}. \]The second is proved by checking that both sides have the same poles and residues and comparing growth: Liouville's theorem does the rest.
Iteration and fractals
Take the simplest non-linear map, \(z \mapsto z^2 + c\), and iterate it from \(z = 0\): \(0, c, c^2 + c, \ldots\) For some \(c\) the orbit stays bounded; for others it flies off to infinity. The set of \(c\) whose orbit stays bounded is the Mandelbrot set, whose boundary is a fractal of infinite intricacy. For each \(c\), the boundary between starting points that escape and those that don't is a Julia set.
This is complex analysis in action: the theory, developed by Fatou and Julia around 1918 using Montel's theorem on families of analytic functions, predated computers by sixty years. Pictures only became possible in the 1980s. Conformality (Unit 6) is why these sets look the same at every scale: near any point, an analytic map is a rotation and scaling, so small pieces are faithful copies of larger ones.
The same ideas explain Newton's method: applied to \(z^3 = 1\) in the complex plane, the regions of starting points that converge to each of the three roots have a shared fractal boundary. Every boundary point is next to all three regions.
Riemann surfaces
Unit 5 met Riemann surfaces as the natural home of many-valued functions like \(\log z\) and \(\sqrt z\). The idea grew into a vast theory. The Riemann surface of \(\sqrt{(z - a)(z - b)(z - c)(z - d)}\) is a torus (a doughnut): such curves are elliptic curves, the objects at the heart of Wiles's proof of Fermat's last theorem and of modern cryptography.
The uniformization theorem (Koebe and Poincaré, 1907) extends the Riemann mapping theorem of Unit 6: every simply connected Riemann surface is conformally the sphere, the plane or the disc. So every surface carries one of three geometries: spherical, flat or hyperbolic.
Physics and engineering
- Quantum mechanics is written in complex numbers: the state of a system is a complex wave, and probabilities are squared moduli \(|\psi|^2\). Phases, the arguments of complex numbers, are what interfere.
- Signal processing and control: the Laplace and \(z\)-transforms turn differential equations into algebra. A system is stable exactly when the poles of its transfer function lie in the left half plane (or inside the unit disc). Engineers design filters by placing poles and zeros, and the argument principle of Unit 11 becomes the Nyquist stability criterion.
- Fluid flow and electrostatics in two dimensions are governed by harmonic functions, and solved with conformal maps (Units 4 and 6).
- Physics at the frontier: in string theory and statistical mechanics, two-dimensional systems at critical points have conformal symmetry, and their behaviour is governed by analytic functions.
Several complex variables
What about functions of two complex variables \(f(z, w)\)? Surprisingly, they behave very differently. Hartogs' theorem (1906) says that a function analytic on a ball in \(\mathbb C^2\) with a smaller ball removed automatically extends across the hole: in two or more variables, isolated singularities are impossible, and there is no Riemann mapping theorem. The subject is a deep field of its own, closely tied to algebraic geometry.
What to study next
- Complex analysis, further: elliptic functions, conformal mapping, the Riemann mapping theorem in full, harmonic functions and the Dirichlet problem.
- Analytic number theory: the prime number theorem and Dirichlet's theorem on primes in arithmetic progressions.
- Riemann surfaces and algebraic geometry: curves, surfaces, and their topology.
- Harmonic and functional analysis: Fourier transforms, Hardy spaces, operator theory. It builds on real analysis and linear algebra.
Further reading
Tristan Needham, Visual Complex Analysis: the inspiration for the geometric approach of this course. Elias Stein and Rami Shakarchi, Complex Analysis: a modern rigorous course. Lars Ahlfors, Complex Analysis: the classic. Elias Wegert, Visual Complex Functions: functions drawn with colour, a beautiful complement to the grid pictures used here. John Derbyshire, Prime Obsession: the story of the Riemann hypothesis for a general reader.
Practice set
Mixed questions covering the whole unit. Try each one before opening the answer.
1. Use \(\Gamma(s + 1) = s\Gamma(s)\) and \(\Gamma(\frac12) = \sqrt\pi\) to compute \(\Gamma(\frac52)\).
Show answer
\(\Gamma(\frac52) = \frac32\Gamma(\frac32) = \frac32\cdot\frac12\Gamma(\frac12) = \frac{3\sqrt\pi}4\).
2. What is the residue of \(\Gamma\) at \(s = 0\)? At \(s = -1\)?
Show answer
\(\Gamma(s) = \frac{\Gamma(s + 1)}{s}\), and \(\Gamma(1) = 1\), so the residue at 0 is 1. Then \(\Gamma(s) = \frac{\Gamma(s + 2)}{s(s + 1)}\), and at \(s = -1\) the residue is \(\frac{\Gamma(1)}{-1} = -1\). In general it is \(\frac{(-1)^n}{n!}\) at \(-n\).
3. Check that \(\Gamma(s)\Gamma(1 - s) = \frac{\pi}{\sin\pi s}\) at \(s = \frac12\).
Show answer
Left: \(\Gamma(\frac12)^2 = \pi\). Right: \(\frac{\pi}{\sin\frac\pi2} = \pi\). ✓
4. Does the orbit of 0 under \(z \mapsto z^2 + c\) stay bounded for \(c = -1\)? For \(c = i\)? For \(c = 1\)?
Show answer
\(c = -1\): \(0, -1, 0, -1, \ldots\) bounded. \(c = i\): \(0, i, -1 + i, -i, -1 + i, \ldots\) bounded (a cycle). \(c = 1\): \(0, 1, 2, 5, 26, \ldots\) escapes. So \(-1\) and \(i\) are in the Mandelbrot set and 1 is not.
5. Why does the Euler product show that there are infinitely many primes?
Show answer
As \(s \to 1^+\), \(\zeta(s) = \sum\frac1{n^s} \to \infty\) (the harmonic series). If there were finitely many primes, the product \(\prod\frac{1}{1 - p^{-s}}\) would have a finite limit \(\prod\frac{1}{1 - p^{-1}}\). Contradiction.
6. A system has transfer function \(\frac{1}{s^2 + 2s + 5}\). Is it stable?
Show answer
The poles are \(s = -1 \pm 2i\), both with negative real part, in the left half plane. So it is stable: its response decays like \(e^{-t}\), oscillating with frequency 2.
Summary and glossary
- The zeta function encodes the primes; its zeros control their distribution, and the Riemann hypothesis is still open.
- The Gamma function is the unique analytic extension of the factorial, with poles at \(0, -1, -2, \ldots\)
- Iterating \(z^2 + c\) produces the Mandelbrot and Julia sets, fractals governed by analytic function theory.
- Riemann surfaces grew into modern geometry; every simply connected one is a sphere, plane or disc.
- Complex analysis is a working tool in quantum mechanics, signal processing, fluid flow and beyond.
- Zeta function
- \(\zeta(s) = \sum n^{-s}\), continued analytically to \(\mathbb C \setminus \{1\}\).
- Critical line
- \(\operatorname{Re} s = \frac12\), where the Riemann hypothesis places the zeros.
- Gamma function
- \(\Gamma(s) = \int_0^\infty t^{s-1}e^{-t}dt\), with \(\Gamma(n + 1) = n!\).
- Mandelbrot set
- The \(c\) for which the orbit of 0 under \(z^2 + c\) stays bounded.
- Uniformization
- Every simply connected Riemann surface is a sphere, a plane or a disc.