Analytic functions, contour integrals, residues, and conformal mapping. The most beautiful corner of mathematics, with stunning applications in physics and engineering.
Here is a real integral that is notoriously difficult with real methods alone:
No amount of integration-by-parts or trigonometric substitution makes this easy. But with the residue theorem from complex analysis, it falls out in three lines. Complex analysis is not just an abstract exercise — it is a power tool for real-world computation.
Complex analysis also gives us:
• Conformal mappings that solve 2D boundary value problems (electrostatics, fluid flow, heat)
• Contour integration for evaluating "impossible" real integrals
• Power series and Laurent series for understanding singularities
• The mathematical foundation of quantum mechanics and signal processing
A complex number z = x + iy has a real part x and an imaginary part y, where i2 = −1. We can represent z as a point (x, y) in the complex plane (also called the Argand plane).
The polar form is often more useful:
where r = |z| = √(x2 + y2) is the modulus (distance from origin) and θ = arg(z) is the argument (angle from the positive real axis).
Multiplication in polar form is beautiful: z1z2 = r1r2 ei(θ1+θ2). Multiply the moduli, add the arguments. Multiplication is rotation + scaling.
Roots: zn = w has exactly n roots, equally spaced around a circle. For example, the cube roots of 1 are 1, ei2π/3, ei4π/3 — three points forming an equilateral triangle.
Click to place a complex number z (orange dot). Teal dot shows z2. The unit circle is shown. Observe how squaring doubles the angle and squares the distance.
A function f(z) of a complex variable z = x + iy is analytic (or holomorphic) at a point z0 if it has a complex derivative there:
This looks identical to the real definition, but h is now a complex number approaching 0 from every direction. This is an enormously stronger requirement.
Examples of analytic functions: Polynomials, ez, sin z, cos z, rational functions (away from poles). These are the workhorses of complex analysis.
Non-analytic: f(z) = z (the conjugate) is not analytic anywhere, despite being perfectly smooth as a real function of (x, y). Also |z| is not analytic. Complex differentiability is restrictive.
If f is analytic in a region, then it automatically has derivatives of all orders, and it has a convergent Taylor series. It also satisfies the maximum modulus principle: |f(z)| cannot attain a maximum in the interior of the region. Like the maximum principle for harmonic functions, extremes are always on the boundary.
Important analytic functions:
| Function | Where analytic | Key property |
|---|---|---|
| zn (polynomial) | Everywhere (entire) | n zeros counting multiplicity |
| ez | Everywhere (entire) | Never zero; period 2πi |
| sin z, cos z | Everywhere (entire) | Zeros on real axis; unbounded on imaginary axis |
| 1/z | z ≠ 0 | Simple pole at origin |
| Log z | z ≠ 0, branch cut | Multi-valued; needs branch choice |
Write f(z) = u(x, y) + iv(x, y), splitting into real and imaginary parts. The condition for f to be analytic is:
These are the Cauchy-Riemann equations. They are the bridge between complex differentiability and real partial derivatives.
Consequence: If f = u + iv is analytic, then both u and v are harmonic (satisfy Laplace's equation ∇2u = 0 and ∇2v = 0). This is because:
So the real and imaginary parts of any analytic function automatically solve the Laplace equation. This is why complex analysis and potential theory are inseparable.
Example: f(z) = z2 = (x + iy)2 = (x2 − y2) + i(2xy). So u = x2 − y2, v = 2xy. Check: ux = 2x = vy. uy = −2y = −vx. Cauchy-Riemann satisfied.
Polar form: For f(z) = u(r, θ) + iv(r, θ) in polar coordinates, the Cauchy-Riemann equations become:
This form is useful for functions naturally expressed in polar coordinates, like zn = rn einθ.
A contour integral is an integral of a complex function along a curve (contour) C in the complex plane:
If C is parameterized by z(t) = x(t) + iy(t) for a ≤ t ≤ b, then:
The fundamental result is Cauchy's integral theorem (next chapter): if f is analytic inside and on a simple closed contour C, then ∮C f(z) dz = 0. The integral around any closed loop is zero for analytic functions.
Key example: ∮C zn dz around the unit circle. For n ≠ −1, the integral is 0. For n = −1, the integral is 2πi. This single fact is the foundation of residue calculus.
Why 2πi? Parameterize the unit circle: z = eiθ, dz = ieiθ dθ. Then ∮ (1/z) dz = ∫02π (1/eiθ) · ieiθ dθ = ∫02π i dθ = 2πi. The factor of i comes from dz, and 2π comes from going around the full circle.
If f(z) is analytic in a simply connected domain D, then for any closed contour C in D:
Analytic functions have zero circulation. This is the complex-analysis version of "conservative fields are path-independent."
If f is analytic inside and on C, and z0 is inside C:
Derivatives too: Differentiating under the integral sign:
This proves that analytic functions have derivatives of all orders. One derivative implies infinitely many. This is the rigidity that makes complex analysis so powerful.
Morera's theorem (converse of Cauchy): If f is continuous and ∮C f(z) dz = 0 for every closed contour C, then f is analytic. So zero integrals around all loops characterizes analyticity.
The unit circle contour (orange) around the origin. For f(z) = 1/z, the contour integral is 2πi. Drag the contour center to see how the integral changes when the singularity is inside vs. outside.
If f is analytic at z0, it has a convergent Taylor series:
The series converges in the largest disk centered at z0 in which f is analytic. The radius of convergence is the distance from z0 to the nearest singularity.
Near a singularity, the Taylor series breaks down. The Laurent series allows negative powers:
The part with negative powers, Σn=−∞−1 an(z − z0)n, is the principal part. It encodes the behavior near the singularity.
The coefficient a−1 of (z − z0)−1 in the Laurent series is the residue of f at z0. This single number is the key to the residue theorem.
Example: f(z) = e1/z = 1 + 1/z + 1/(2!z2) + 1/(3!z3) + ... The Laurent series at z = 0 has infinitely many negative powers — essential singularity. The residue is a−1 = 1.
Example: f(z) = 1/(z2 + 1) = 1/((z − i)(z + i)). At z = i, the Laurent expansion starts with 1/(2i(z − i)). The residue is 1/(2i).
| Singularity type | Principal part | Example |
|---|---|---|
| Removable | None (no negative powers) | sin(z)/z at z = 0 |
| Pole (order m) | Finitely many terms to (z−z0)−m | 1/z3 at z = 0 |
| Essential | Infinitely many negative powers | e1/z at z = 0 |
This is the most powerful computational tool in complex analysis:
The integral of f around a closed contour C equals 2πi times the sum of residues at all singularities zk inside C. The residue captures exactly how much a singularity contributes to the contour integral.
The residue theorem turns real integrals into algebra. The strategy:
1. Embed the real integral into a contour integral in the complex plane.
2. Choose a contour that includes the real axis segment and closes in the upper or lower half-plane.
3. Show the integral over the closing arc vanishes (via the ML inequality).
4. Compute the residues inside the contour.
Example: ∫−∞∞ 1/(x2 + 1) dx. The integrand has poles at z = ±i. Close in the upper half-plane, capturing z = i. Res(1/(z2+1), i) = 1/(2i). Result: 2πi · 1/(2i) = π.
Trigonometric integrals: For ∫02π R(cos θ, sin θ) dθ, substitute z = eiθ, so cos θ = (z + 1/z)/2, sin θ = (z − 1/z)/(2i), dθ = dz/(iz). The real integral becomes a contour integral around the unit circle.
Example: ∫02π dθ/(2 + cos θ). With z = eiθ: the integral becomes ∮ 2dz/(iz(2 + (z + 1/z)/2)) = ∮ 4dz/(i(z2 + 4z + 1)). The poles inside the unit circle are at z = −2 + √3. Computing the residue gives the result: 2π/√3.
Visualize how complex functions transform the plane. These "domain coloring" plots assign a color to each point based on the value of f(z): hue encodes the argument (angle), brightness encodes the modulus (magnitude).
Domain coloring of f(z). Hue = arg(f(z)), brightness = |f(z)|. Zeros appear as dark spots where all colors meet. Poles appear as bright spots. Choose a function.
Conformal maps are analytic functions that preserve angles. They transform one region into another while keeping the angle between any two curves unchanged. This is invaluable for solving Laplace's equation: transform a hard domain into a simple one (like a disk or half-plane), solve there, and map back.
A grid in the z-plane (left) mapped through f(z) to the w-plane (right). Notice how the grid lines remain orthogonal — angles are preserved.
| This lesson | Where it leads |
|---|---|
| Complex numbers | Quantum mechanics (wave functions are complex), AC circuits (impedance) |
| Analytic functions | 2D potential theory, fluid dynamics (potential flow) |
| Cauchy-Riemann | Harmonic functions, Laplace equation (Ch 6), electrostatics |
| Cauchy's theorem | Green's theorem in disguise (Ch 5), topological invariants |
| Laurent series | Classification of singularities, algebraic geometry |
| Residues | Evaluating Fourier/Laplace integrals, transfer functions (controls) |
| Conformal mapping | Airfoil design (Joukowski), waveguide analysis, general relativity |
"The shortest path between two truths in the real domain passes through the complex domain." — Jacques Hadamard