A technique for evaluating complex contour integrals by summing residues at enclosed poles.
IntuitionFrom an isolated pole to an infinite sum
Imagine walking a closed loop γ in the complex plane around a function f that blows up at a few isolated points. Near each such point, f behaves like a spiral staircase: the closer you get, the faster the value spins and grows. The residue theorem says something remarkable: the value of the whole loop integral depends only on a single number extracted at each trapped point — its residue — never on the shape of the loop itself, as long as the loop does not cross a singularity.
Colored plot of a complex function showing a spiraling color pattern around an isolated pole.
Domain-coloring plot of a function with an isolated pole; the color swirls around the pole, and its winding encodes the residue there.
UndergraduateIsolated singularities and the Laurent series
Definition: Isolated singularity and its residue
A point z0 is an isolated singularity of f if f is holomorphic on some punctured disk around z0 but not at z0 itself. On that punctured disk, f has a unique Laurent expansion f(z)=∑n=−∞∞an(z−z0)n, and the coefficient a−1 of the term (z−z0)−1 is called the residue of f at z0, written Res(f,z0)=a−1. Singularities are classified by how many negative powers appear: none is removable ( limz→z0f(z) exists), finitely many of order m is a pole, and infinitely many (as in sin(1/z) at z=0) is essential.
f(z)=n=−∞∑∞an(z−z0)n
Practically, no one expands a full Laurent series just to find a residue at a pole. For a simple pole (order m=1), Res(f,z0)=limz→z0(z−z0)f(z). For a pole of higher order m, the formula generalizes to Res(f,z0)=(m−1)!1limz→z0dzm−1dm−1[(z−z0)mf(z)], which differentiates away the singular part before evaluating.
Let f be holomorphic on a simply connected domain except at finitely many isolated singularities z1,…,zn inside a positively oriented simple closed contour γ. Then ∮γf(z)dz=2πi∑kRes(f,zk).
Why is it true?
It reduces a hard geometric problem (integrating along a curve) to an easy algebraic one (adding up finitely many numbers), because deforming the contour around each pole shrinks it to a tiny circle where the Laurent series does all the work.
Proof
Step 1 (Deform the contour). By Cauchy's integral theorem, ∮γf(z)dz=0 for any closed curve bounding a region where f is holomorphic. Since f fails to be holomorphic only at z1,…,zn, surround each zk with a tiny positively oriented circle Ck of radius ε small enough that the circles are disjoint and lie inside γ. Cutting slits from γ to each Ck turns the region between γ and the Ck into a simply connected domain where f is holomorphic, so the integral over the boundary of that region is 0; the slit contributions cancel in pairs, leaving ∮γf(z)dz=∑k∮Ckf(z)dz.
Step 2 (Evaluate each small circle). Fix k and expand f as its Laurent series f(z)=∑n=−∞∞an(z−z0)n around zk, valid on the punctured disk containing Ck. Every term an(z−zk)n with n=−1 has an antiderivative single-valued on the punctured disk, so it integrates to 0 around the closed circle Ck; only the term a−1(z−zk)−1 survives.
Step 3 (Compute the surviving integral). Parametrize Ck by z=zk+εeiθ for θ∈[0,2π], so dz=iεeiθdθ and z−zkdz=idθ. Then ∮Ckz−zka−1dz=a−1∫02πidθ=2πia−1=2πiRes(f,zk).
Step 4 (Sum up). Substituting Step 3 into the identity from Step 1 gives ∮γf(z)dz=2πi∑kRes(f,zk), which is exactly the residue theorem.
If f has a pole of order m at z0, meaning g(z)=(z−z0)mf(z) extends holomorphically to z0 with g(z0)=0, then Res(f,z0)=(m−1)!1limz→z0dzm−1dm−1[(z−z0)mf(z)]. In particular, for a simple pole (m=1), Res(f,z0)=limz→z0(z−z0)f(z).
Why is it true?
Multiplying by (z−z0)m kills the singular part of the Laurent series, turning it into an ordinary Taylor series whose coefficients are just derivatives — so extracting a−1 becomes an ordinary calculus computation.
Proof
Step 1 (Write the Laurent series explicitly). Since f has a pole of order m at z0, its Laurent series has the form f(z)=(z−z0)ma−m+⋯+z−z0a−1+a0+a1(z−z0)+⋯ with a−m=0.
Step 2 (Clear the pole). Multiply both sides by (z−z0)m: g(z):=(z−z0)mf(z)=a−m+a−m+1(z−z0)+⋯+a−1(z−z0)m−1+a0(z−z0)m+⋯, which is an ordinary power series, so g is holomorphic at z0.
Step 3 (Recognize the coefficient as a derivative). In this power series, a−1 is the coefficient of (z−z0)m−1. For any holomorphic g(z)=∑jcj(z−z0)j, Taylor's formula gives cj=j!g(j)(z0), so a−1=(m−1)!g(m−1)(z0).
Step 4 (Conclude). Since Res(f,z0)=a−1 and g(m−1)(z0)=limz→z0dzm−1dm−1[(z−z0)mf(z)], substituting gives Res(f,z0)=(m−1)!1limz→z0dzm−1dm−1[(z−z0)mf(z)]. Setting m=1 collapses the derivative and factorial to give Res(f,z0)=limz→z0(z−z0)f(z).
UndergraduateReal-World Applications and Worked Examples
Residues turn otherwise intractable definite real integrals into arithmetic, which is why they appear throughout physics and engineering: evaluating oscillatory Fourier and Laplace transforms in signal processing, computing scattering amplitudes and propagators in quantum field theory, inverting Laplace transforms to solve control-system differential equations, and estimating asymptotics of counting functions in analytic number theory and combinatorics.
Example: A real integral with no elementary antiderivative shortcut
Evaluate ∫−∞∞x2+1dx using the residue theorem. (This integral can also be done by the substitution x=tanθ, but residues generalize to integrals that substitution cannot touch.)
Solution
Step 1 (Set up the contour). Consider f(z)=z2+11 and the closed contour γR made of the segment [−R,R] on the real axis together with the upper semicircle ∣z∣=R, traversed counterclockwise, for large R.
Step 2 (Bound the arc). On the semicircular arc, ∣f(z)∣≤R2−11, and the arc has length πR, so the arc's contribution is at most R2−1πR→0 as R→∞.
Step 3 (Find the enclosed pole). f(z)=z2+11 has simple poles at z=i and z=−i; only z=i lies inside the upper semicircle. By the simple-pole formula, Res(f,i)=limz→i(z−i)(z−i)(z+i)1=2i1.
Step 4 (Apply the residue theorem and take the limit). ∮γRf(z)dz=2πi⋅2i1=π for every R>1, and this equals the real integral plus the vanishing arc term, so letting R→∞ gives ∫−∞∞x2+1dx=π.
Example: Inverting a Laplace transform in control theory
A control engineer models a damped system with transfer function F(s)=(s+1)(s+2)21 and needs its impulse response y(t), the inverse Laplace transform, to check whether the system settles without oscillating.
Solution
Step 1 (Recall the inversion integral). The inverse Laplace transform is y(t)=2πi1∫c−i∞c+i∞F(s)estds, which for a rational F(s) decaying at infinity equals 2πi times the sum of residues of F(s)est at all poles of F(s)=(s+1)(s+2)21.
Step 2 (Locate the poles). F(s)=(s+1)(s+2)21 has a simple pole at s=−1 and a pole of order 2 at s=−2.
Step 3 (Residue at the simple pole). Ress=−1F(s)est=lims→−1(s+1)(s+1)(s+2)2est=(−1)2e−t=e−t.
Step 4 (Residue at the order-2 pole). Ress=−2F(s)est=lims→−2dsd[s+1est]=lims→−2(s+1)2test(s+1)−est=−te−2t−e−2t.
Step 5 (Assemble the response). Summing residues gives y(t)=e−t−(1+t)e−2t for t≥0; both exponentials decay and neither term oscillates, so the engineer confirms the system is overdamped.
If f has a single simple pole at z0 inside a positively oriented simple closed contour γ, and Res(f,z0)=3, what is ∮γf(z)dz?
What is the order of the pole of f(z)=z31 at z=0?
What is Resz=0zez?
An electrical engineer needs ∫−∞∞x2+1dx to normalize a Lorentzian frequency response. Using the residue at z=i, what value should they get?