Residues and the Residue Theorem

A function that is analytic everywhere in a small disc except at one central point still carries a complete record of what goes wrong there, written in its Laurent series. Of the infinitely many coefficients in that series, exactly one survives integration around a loop: the coefficient of (z−z0)−1(z-z_0)^{-1}, called the residue. Every other power, positive or negative, integrates to zero around a closed contour, because ∮(z−z0)n dz\oint (z-z_0)^n\,\mathrm{d}z vanishes unless n=−1n=-1, where it equals 2πi2\pi i. The residue is therefore not an arbitrary label but the single number a contour integral is physically able to detect — the one fingerprint of a singularity that flux around it can measure. The Residue Theorem promotes this local fact to a global accounting rule. If ff is analytic on and inside a simple closed contour CC except at finitely many isolated singularities, then ∮Cf dz\oint_C f\,\mathrm{d}z equals 2πi2\pi i times the sum of the enclosed residues, each weighted by how many times CC winds around it. A global integral collapses into a finite, local, algebraic sum. This is not a new axiom: it is the exact meeting point of Cauchy's Integral Theorem (deform freely where ff is analytic), Cauchy's Integral Formula (the kernel 1/(z−z0)1/(z-z_0) supplies one residue), and the Laurent series (which supplies all the others). For a physicist the payoff is enormous. Real integrals that defeat elementary calculus — Fourier and Laplace inversions, dispersion relations, momentum-space Green's functions, infinite sums summed by pairing with πcot⁡πz\pi\cot\pi z — all reduce to residue arithmetic the moment one closes a contour in the complex plane. Learning to read off a residue is, in practice, learning to do a large fraction of theoretical physics.

Key takeaways
  • The residue of ff at an isolated singularity z0z_0 is the Laurent coefficient a−1a_{-1} of (z−z0)−1(z-z_0)^{-1} — equivalently 12πi∮f dz\tfrac{1}{2\pi i}\oint f\,\mathrm{d}z around a small loop about z0z_0.
  • The Residue Theorem: ∮Cf dz=2πi∑kn(C,zk)Res⁡zkf\oint_C f\,\mathrm{d}z = 2\pi i\sum_k n(C,z_k)\operatorname{Res}_{z_k}f, converting a global contour integral into a finite sum of local residues.
  • For a simple pole Res⁡=lim⁡z→z0(z−z0)f(z)\operatorname{Res}=\lim_{z\to z_0}(z-z_0)f(z); for an order-mm pole differentiate m−1m-1 times; for a quotient g/hg/h with a simple zero of hh, just g(z0)/h′(z0)g(z_0)/h'(z_0).
  • It unifies Cauchy's Integral Theorem (no residues) and Cauchy's Integral Formula (one residue from the kernel) as the two simplest special cases.
  • It is the master tool for real definite integrals (∫−∞∞dx/(1+x2)=π\int_{-\infty}^\infty \mathrm{d}x/(1+x^2)=\pi), infinite series (∑1/n2=π2/6\sum 1/n^2=\pi^2/6), transform inversion, and Green's functions.
  • Key idea: around a closed loop every Laurent power (z−z0)n(z-z_0)^n integrates to zero except n=−1n=-1, which gives 2πi2\pi i — so a contour integral sees only the residues, the a−1a_{-1} coefficients, of whatever singularities it encloses.
The core insight

Around a closed loop every Laurent power (z−z0)n(z-z_0)^n integrates to zero except n=−1n=-1, which gives 2πi2\pi i; hence a contour integral sees only the residues — the a−1a_{-1} coefficients — of whatever singularities it encloses.

Where this lives today

Residue calculus is not a historical curiosity — it is the everyday arithmetic of theoretical physics. In quantum field theory every Feynman propagator is a pole in the complex energy plane, and the loop integrals of perturbation theory are evaluated by contour rotation and residues; the choice of which pole to enclose (the iεi\varepsilon prescription) is what encodes causality and distinguishes the Feynman, retarded, and advanced Green's functions. The one-line Yukawa integral derived above generalizes directly to the massive scalar propagator. In condensed matter, Matsubara sums over discrete imaginary frequencies are performed by inserting the Bose or Fermi distribution — which supplies exactly the unit-residue poles of a cot⁡\cot or tanh⁡\tanh kernel — and closing a contour, the finite-temperature analogue of the Basel trick. Signal processing inverts Laplace transforms through the Bromwich integral, reading each system mode off a pole's residue, and the Kramers-Kronig relations of optical response come from pushing a contour past the poles of a causal susceptibility. Numerical analysts even use residue-based contour integrals (rational eigensolvers like FEAST) to compute eigenvalues to high accuracy — a two-hundred-year-old idea running inside modern linear-algebra libraries.

The physical picture

Think of each isolated singularity as a point source dropped into the complex plane and of the contour integral ∮Cf dz\oint_C f\,\mathrm{d}z as a flux measurement taken along the loop CC. Cauchy's Theorem says the loop can be stretched, dented, or slid at will without changing the reading, as long as it never crosses a source. So CC can be reeled in until it becomes a bunch of tiny circles, one hugging each enclosed singularity. On each tiny circle the Laurent series is a clean inventory of the local behaviour, and integrating it term by term annihilates everything except the (z−z0)−1(z-z_0)^{-1} term. What is left is a fixed quantum 2πi a−12\pi i\,a_{-1} per source. The total flux is just the bookkeeping of these quanta — nothing about the far-away shape of CC matters, only which sources sit inside it and with what residue.

Figure
The loop C picks up a fixed quantum 2πi·Res at each enclosed singularity: deforming C onto small circles γₖ hugging the poles leaves ∮꜀ f dz = 2πi Σₖ Res f — a global integral reduced to a local algebraic sum
∮꜀ f dz = 2πi ( Res₁ + Res₂ + Res₃ ) — flux = sum of quanta Re z Im z C γ₁ · Res₁ γ₂ · Res₂ γ₃ · Res₃ f analytic on the shaded region between C and the γₖ, so ∮꜀ = Σ ∮γₖ

The theorem is only useful because the residue is easy to get without ever doing the integral: for a simple pole you cancel one factor and take a limit; for a higher-order pole you differentiate. The second picture shows the workhorse application — turning a real integral over the whole line into a single residue by closing the contour with a large arc that contributes nothing. The pole at z=+iz=+i is captured, its twin at z=−iz=-i is left outside, and the arithmetic 2πi⋅12i=π2\pi i\cdot \tfrac{1}{2i}=\pi delivers a definite integral that would otherwise need an antiderivative.

Figure
Closing the real axis with a semicircle of radius R in the upper half plane captures only the pole z = i: the arc contribution falls as πR/(R²−1) → 0, and Res at i of 1/(1+z²) = 1/(2i) gives ∫dx/(1+x²) = 2πi·1/(2i) = π
∫₋∞⁺∞ dx/(1+x²) = 2πi · Res(i) = 2πi · 1/(2i) = π Re z Im z −R +R arc: |∫| ≤ πR/(R²−1) → 0 z = i (enclosed) Res = 1/(2i) z = −i (outside, not counted)

The core equations

The residue is defined two equivalent ways at once: as a specific Laurent coefficient, and as a normalized contour integral. In practice one reads the coefficient off algebraically and uses it to evaluate the integral — the definition runs left to right, the application runs right to left.

Res⁡z=z0f≡a−1=12πi∮Cf(z) dz(1)\operatorname{Res}_{z=z_0} f \equiv a_{-1} = \frac{1}{2\pi i}\oint_{C} f(z)\,\mathrm{d}z \qquad (1)

where: a−1a_{-1} — Laurent coefficient of (z−z0)−1(z-z_0)^{-1}, the residue; CC — small positively oriented circle enclosing only z0z_0; ff — analytic in a punctured neighbourhood of z0z_0. Reading: the residue is both a number in a series and the value of a loop integral, normalized by 2πi2\pi i. Every isolated singularity carries a full Laurent expansion, and the residue is one entry in the table of coefficients. The integral formula for ana_n makes the definition above the special case n=−1n=-1.

f(z)=∑n=−∞∞an(z−z0)n,an=12πi∮Cf(z)(z−z0)n+1 dz(2)f(z) = \sum_{n=-\infty}^{\infty} a_n (z-z_0)^n,\qquad a_n = \frac{1}{2\pi i}\oint_C \frac{f(z)}{(z-z_0)^{n+1}}\,\mathrm{d}z \qquad (2)

where: ana_n — the nn-th Laurent coefficient; nn — any integer; z0z_0 — centre of expansion and location of the singularity. Reading: setting n=−1n=-1 makes the kernel 1/(z−z0)0=11/(z-z_0)^0=1, recovering equation (1). The engine that makes only a−1a_{-1} matter is a single orthogonality integral. It is the reason the whole theory works, and it depends on nothing but the geometry of a circle.

∮C(z−z0)n dz=2πi δn,−1(3)\oint_{C}(z-z_0)^{n}\,\mathrm{d}z = 2\pi i\,\delta_{n,-1} \qquad (3)

where: δn,−1\delta_{n,-1} — Kronecker delta, equal to 11 when n=−1n=-1 and 00 otherwise; CC — a closed contour winding once around z0z_0. Reading: integrating any integer power over a full loop kills it, except the −1-1 power, which returns the universal constant 2πi2\pi i. Assembled globally, these give the Residue Theorem in the form that keeps track of multiply-wound contours through the winding number.

∮Cf(z) dz=2πi∑kn(C,zk) Res⁡z=zkf(4)\oint_{C} f(z)\,\mathrm{d}z = 2\pi i \sum_{k} n(C,z_k)\,\operatorname{Res}_{z=z_k} f \qquad (4)

where: zkz_k — the isolated singularities enclosed by CC; n(C,zk)n(C,z_k) — winding number of CC about zkz_k, usually +1+1; Res⁡z=zkf\operatorname{Res}_{z=z_k}f — the residue there. Reading: the integral counts each singularity with a multiplicity equal to how many times the loop circles it. To use the theorem you need residues, and for a pole of finite order there is a closed formula that never requires the full series. Multiply away the pole, then differentiate to pick out a−1a_{-1}.

Res⁡z=z0f=1(m−1)!lim⁡z→z0dm−1dzm−1[(z−z0)mf(z)](5)\operatorname{Res}_{z=z_0} f = \frac{1}{(m-1)!}\lim_{z\to z_0}\frac{\mathrm{d}^{m-1}}{\mathrm{d}z^{m-1}}\Big[(z-z_0)^m f(z)\Big] \qquad (5)

where: mm — the order of the pole at z0z_0; (z−z0)mf(z)(z-z_0)^m f(z) — the regularized function, analytic at z0z_0. Reading: for a simple pole (m=1m=1) this is just lim⁡z→z0(z−z0)f(z)\lim_{z\to z_0}(z-z_0)f(z); each extra order of pole costs one derivative. The single most common case — a ratio whose denominator has a simple zero — has an even shorter shortcut, obtained by L'Hôpital on the simple-pole limit.

Res⁡z=z0g(z)h(z)=g(z0)h′(z0)(6)\operatorname{Res}_{z=z_0}\frac{g(z)}{h(z)} = \frac{g(z_0)}{h'(z_0)} \qquad (6)

where: g(z0)≠0g(z_0)\neq 0 — numerator value; h(z0)=0, h′(z0)≠0h(z_0)=0,\ h'(z_0)\neq 0 — denominator with a simple zero. Reading: differentiate only the denominator and evaluate — no factoring, no limits. On the Riemann sphere the accounting closes exactly: the residue at infinity balances all the finite ones, giving a powerful consistency check and an alternative route when the finite poles are messy.

Res⁡z=∞f=−12πi∮Cf dz=−Res⁡w=0 ⁣[1w2f ⁣(1w)],∑all incl. ∞Res⁡f=0(7)\operatorname{Res}_{z=\infty} f = -\frac{1}{2\pi i}\oint_{C} f\,\mathrm{d}z = -\operatorname{Res}_{w=0}\!\Big[\tfrac{1}{w^2}f\!\big(\tfrac1w\big)\Big],\qquad \sum_{\text{all incl. }\infty}\operatorname{Res} f = 0 \qquad (7)

where: CC — large circle enclosing all finite singularities; w=1/zw=1/z — the map sending infinity to the origin. Reading: for any rational or globally meromorphic ff, the finite residues plus the residue at infinity sum to zero.

Derivation AProof of the Residue Theorem

The goal is to show that the contour integral of a function analytic except at finitely many isolated singularities equals 2πi2\pi i times the sum of its residues there, using only two ingredients already in hand: Cauchy's Theorem, which lets a contour be deformed freely through any region where ff is analytic, and the orthogonality integral ∮(z−z0)n dz=2πi δn,−1\oint(z-z_0)^n\,\mathrm{d}z=2\pi i\,\delta_{n,-1}, which does the actual selecting. We isolate each singularity on its own small circle, expand there, and integrate term by term.

Step 1. Let ff be analytic on and inside a simple closed contour CC except at the isolated points z1,…,zNz_1,\dots,z_N, each encircled once positively. Draw a tiny circle γk\gamma_k around each zkz_k and join every γk\gamma_k to CC by a pair of infinitesimally close cross-cuts. The resulting region — CC on the outside, the γk\gamma_k punched out on the inside — contains no singularities, so Cauchy's Theorem gives ∮Cf dz=∑k=1N∮γkf dz\oint_{C} f\,\mathrm{d}z = \sum_{k=1}^{N}\oint_{\gamma_k} f\,\mathrm{d}z. Why: the two passes along each cross-cut run in opposite directions and cancel exactly, so the boundary integral reduces to CC minus the small circles.

Step 2. On the annulus surrounding zkz_k the Laurent series f(z)=∑nan(k)(z−zk)nf(z)=\sum_{n}a_n^{(k)}(z-z_k)^n converges uniformly, so it may be integrated term by term over γk\gamma_k: ∮γkf dz=∑nan(k)∮γk(z−zk)n dz\oint_{\gamma_k} f\,\mathrm{d}z=\sum_n a_n^{(k)}\oint_{\gamma_k}(z-z_k)^n\,\mathrm{d}z. Why: uniform convergence on the compact circle is exactly the license needed to exchange the infinite sum and the integral without changing the value.

Step 3. Apply the orthogonality integral (equation 3): every term ∮γk(z−zk)n dz\oint_{\gamma_k}(z-z_k)^n\,\mathrm{d}z vanishes except n=−1n=-1, which contributes 2πi2\pi i. Hence ∮γkf dz=2πi a−1(k)=2πi Res⁡z=zkf\oint_{\gamma_k} f\,\mathrm{d}z = 2\pi i\,a_{-1}^{(k)} = 2\pi i\,\operatorname{Res}_{z=z_k} f. Why: this single fact is the whole selection mechanism — of the entire Laurent inventory only the residue is visible to a loop integral.

Step 4. Sum over the singularities: ∮Cf dz=2πi∑k=1NRes⁡z=zkf\oint_{C} f\,\mathrm{d}z = 2\pi i\sum_{k=1}^{N}\operatorname{Res}_{z=z_k} f, which is the theorem. Why: with each local circle reduced to its residue, the global integral is just their total, and inserting winding numbers for contours that loop more than once gives the general form (4). *Two classical results emerge as immediate special cases: with N=0N=0 (no singularities) the right side is empty and ∮Cf dz=0\oint_C f\,\mathrm{d}z=0 — Cauchy's Integral Theorem. With f(z)=g(z)/(z−z0)f(z)=g(z)/(z-z_0), gg analytic, the sole residue is g(z0)g(z_0), so ∮Cf dz=2πi g(z0)\oint_C f\,\mathrm{d}z=2\pi i\,g(z_0) — Cauchy's Integral Formula.*

Go deeper · Derivation B · 1 minThe order-m residue formula from the Laurent series
Derivation BThe order-m residue formula from the Laurent series

The aim is to derive the practical formula (5) that extracts a residue by differentiation, so one never has to construct the whole Laurent series to read off a single coefficient. The idea is that multiplying ff by (z−z0)m(z-z_0)^m turns its principal part into an ordinary Taylor series, after which the residue is buried as one particular Taylor coefficient that repeated differentiation exposes. We track exactly which derivative lands on a−1a_{-1}.

Step 1. Suppose z0z_0 is a pole of order mm, so the Laurent series starts at n=−mn=-m: f(z)=∑n=−m∞an(z−z0)nf(z)=\sum_{n=-m}^{\infty}a_n(z-z_0)^n. Multiply through by (z−z0)m(z-z_0)^m to get ϕ(z)≡(z−z0)mf(z)=∑n=−m∞an(z−z0)n+m\phi(z)\equiv(z-z_0)^m f(z)=\sum_{n=-m}^{\infty}a_n(z-z_0)^{n+m}. Why: the smallest power is now (z−z0)0(z-z_0)^0, so ϕ\phi is analytic at z0z_0 — the pole has been removed and what remains is an honest Taylor series.

Step 2. In that Taylor series the residue a−1a_{-1} sits on the power (z−z0)n+m(z-z_0)^{n+m} with n=−1n=-1, i.e. the power (z−z0)m−1(z-z_0)^{m-1}. The Taylor coefficient of (z−z0)m−1(z-z_0)^{m-1} is ϕ(m−1)(z0)/(m−1)!\phi^{(m-1)}(z_0)/(m-1)!. Why: differentiating a power series m−1m-1 times and setting z=z0z=z_0 kills every lower power (they vanish) and every higher power (they still carry a factor z−z0z-z_0), leaving only the (m−1)(m-1)-th term.

Step 3. Equate the two expressions for that coefficient: a−1=1(m−1)!ϕ(m−1)(z0)=1(m−1)!lim⁡z→z0dm−1dzm−1[(z−z0)mf(z)]a_{-1}=\dfrac{1}{(m-1)!}\phi^{(m-1)}(z_0)=\dfrac{1}{(m-1)!}\lim_{z\to z_0}\dfrac{\mathrm{d}^{m-1}}{\mathrm{d}z^{m-1}}\big[(z-z_0)^m f(z)\big], which is equation (5). Why: the limit is written instead of a plain evaluation so the formula also applies when ϕ\phi is only defined by a removable singularity and must be reached as a limit.

Step 4. Specialize. For m=1m=1 the derivative is the zeroth one, so Res⁡=lim⁡z→z0(z−z0)f(z)\operatorname{Res}=\lim_{z\to z_0}(z-z_0)f(z). For a quotient g/hg/h with h(z0)=0h(z_0)=0, h′(z0)≠0h'(z_0)\neq0, write lim⁡(z−z0) g/h=lim⁡g/[(h(z)−h(z0))/(z−z0)]=g(z0)/h′(z0)\lim(z-z_0)\,g/h=\lim g\big/\big[(h(z)-h(z_0))/(z-z_0)\big]=g(z_0)/h'(z_0), recovering (6). Why: the difference quotient of hh tends to h′(z0)h'(z_0), so the simple-pole limit becomes the numerator over the derivative of the denominator. *As a concrete check: for f=ez/(z−1)2f=e^z/(z-1)^2 at z=1z=1 (m=2m=2), formula (5) gives 11!ddzez∣1=e\tfrac{1}{1!}\tfrac{\mathrm{d}}{\mathrm{d}z}e^z\big|_{1}=e. Applying the wrong simple-pole limit lim⁡z→1(z−1)f=lim⁡ez/(z−1)\lim_{z\to1}(z-1)f=\lim e^z/(z-1) diverges, correctly flagging that m=2m=2.*

Go deeper · Derivation C · 1 minThe Yukawa Green's function by Jordan's lemma
Derivation CThe Yukawa Green's function by Jordan's lemma

The purpose here is to evaluate the one-dimensional Fourier integral ∫−∞∞eikx/(k2+m2) dk\int_{-\infty}^{\infty} e^{ikx}/(k^2+m^2)\,\mathrm{d}k, which is the momentum-space form of the screened (Yukawa or Klein-Gordon) Green's function and a template for essentially every propagator integral in physics. The technique is to close the real axis with a large semicircle in whichever half-plane makes the exponential decay, use Jordan's lemma to discard the arc, and collect the single enclosed residue.

Step 1. The integrand eikx/(k2+m2)=eikx/[(k−im)(k+im)]e^{ikx}/(k^2+m^2)=e^{ikx}/[(k-im)(k+im)] has simple poles at k=±imk=\pm im on the imaginary axis. Take x>0x>0 first and close the contour with a semicircle of radius RR in the upper half-plane, where Im⁡k>0\operatorname{Im}k>0 makes ∣eikx∣=e−x Im⁡k|e^{ikx}|=e^{-x\,\operatorname{Im}k} decay. This encloses only k=+imk=+im. Why: the sign of xx dictates the half-plane — you must close where the oscillating exponential turns into a decaying one, or the arc will not vanish.

Step 2. Jordan's lemma bounds the arc: since 1/(k2+m2)→01/(k^2+m^2)\to0 uniformly as R→∞R\to\infty and the factor eikxe^{ikx} decays in the upper half-plane for x>0x>0, the semicircular contribution vanishes in the limit. The closed-contour integral therefore equals the original real-line integral. Why: Jordan's lemma is the sharpened arc estimate that works even though 1/(k2+m2)1/(k^2+m^2) only decays like 1/R21/R^2 — the exponential does the heavy lifting.

Step 3. Compute the residue at k=imk=im using the quotient rule (6) with h=k2+m2h=k^2+m^2, h′=2kh'=2k: Res⁡k=im=eikx2k∣k=im=e−mx2im\operatorname{Res}_{k=im}=\dfrac{e^{ikx}}{2k}\Big|_{k=im}=\dfrac{e^{-mx}}{2im}. By the Residue Theorem the integral is 2πi2\pi i times this: ∫−∞∞eikxk2+m2 dk=2πi⋅e−mx2im=πme−mx\int_{-\infty}^{\infty}\dfrac{e^{ikx}}{k^2+m^2}\,\mathrm{d}k=2\pi i\cdot\dfrac{e^{-mx}}{2im}=\dfrac{\pi}{m}e^{-mx}. Why: ei(im)x=e−mxe^{i(im)x}=e^{-mx} is real and decaying, so the imaginary factors cancel and the answer is a clean real exponential.

Step 4. For x<0x<0 close in the lower half-plane instead, picking up k=−imk=-im with a sign flip from the clockwise orientation; the result is πme+mx\dfrac{\pi}{m}e^{+mx}. The two cases combine into πme−m∣x∣\dfrac{\pi}{m}e^{-m|x|}. Why: the absolute value is forced by symmetry — the Green's function must decay away from the source in both directions, which is exactly the screened Coulomb falloff of the Yukawa potential. *As a numerical check, at m=1.5, x=0.7m=1.5,\ x=0.7 the integral evaluates to 0.73290790.7329079, matching (π/m)e−m∣x∣=0.7329079(\pi/m)e^{-m|x|}=0.7329079 to seven digits; the result is real and even in xx as required.*

Limiting cases

The general apparatus specializes to a small family of everyday tools, selected entirely by the type of singularity enclosed.

CaseResultMeaning
No singularity enclosed∮Cf(z) dz=0\oint_C f(z)\,\mathrm{d}z = 0All residues absent — this is Cauchy's Integral Theorem, the N=0N=0 base case.
Simple pole (order 1)Res⁡z0f=lim⁡z→z0(z−z0) f(z)\operatorname{Res}_{z_0} f = \lim_{z\to z_0}(z-z_0)\,f(z)The overwhelmingly common case; cancels the single (z−z0)−1(z-z_0)^{-1} factor.
Pole of order mmRes⁡z0f=1(m−1)!lim⁡z→z0dm−1dzm−1[(z−z0)mf]\operatorname{Res}_{z_0} f = \dfrac{1}{(m-1)!}\lim_{z\to z_0}\dfrac{\mathrm{d}^{m-1}}{\mathrm{d}z^{m-1}}\big[(z-z_0)^m f\big]Differentiate m−1m-1 times to extract a−1a_{-1} from the regularized function.
Quotient g/hg/h, simple poleRes⁡z0gh=g(z0)h′(z0)\operatorname{Res}_{z_0}\dfrac{g}{h} = \dfrac{g(z_0)}{h'(z_0)}Valid when g(z0)≠0g(z_0)\neq0, h(z0)=0h(z_0)=0, h′(z0)≠0h'(z_0)\neq0; skips all algebra.
Kernel g/(z−z0)g/(z-z_0), gg analytic∮Cf dz=2πi g(z0)\oint_C f\,\mathrm{d}z = 2\pi i\,g(z_0)Cauchy's Integral Formula — the single-residue special case.

Worked examples

1 · A real integral by closing a contour (fully worked)

Evaluate ∫−∞∞dx1+x2\displaystyle\int_{-\infty}^{\infty}\frac{\mathrm{d}x}{1+x^2} using residues, and check it against the elementary antiderivative.

Step 1. Extend to the complex plane: f(z)=1/(1+z2)=1/[(z−i)(z+i)]f(z)=1/(1+z^2)=1/[(z-i)(z+i)] has simple poles at z=±iz=\pm i. Close the real segment [−R,R][-R,R] with a semicircle of radius RR in the upper half-plane, forming a contour CC that encloses only z=+iz=+i.

Step 2. Bound the arc. On the semicircle ∣1+z2∣≥R2−1|1+z^2|\ge R^2-1, so ∣∫arcf dz∣≤πRR2−1→R→∞0\big|\int_{\text{arc}}f\,\mathrm{d}z\big|\le \dfrac{\pi R}{R^2-1}\xrightarrow{R\to\infty}0. The arc drops out and the closed-contour integral equals the real-line integral.

Step 3. Take the residue with the quotient rule (6), h=1+z2, h′=2zh=1+z^2,\ h'=2z: Res⁡z=if=12z∣z=i=12i\operatorname{Res}_{z=i}f=\dfrac{1}{2z}\Big|_{z=i}=\dfrac{1}{2i}.

Step 4. Apply the theorem: ∫−∞∞dx1+x2=2πi⋅12i=π\displaystyle\int_{-\infty}^{\infty}\frac{\mathrm{d}x}{1+x^2}=2\pi i\cdot\frac{1}{2i}=\boldsymbol{\pi}. Cross-check with arctan⁡x∣−∞∞=π2−(−π2)=π\arctan x\big|_{-\infty}^{\infty}=\tfrac{\pi}{2}-(-\tfrac{\pi}{2})=\pi — the two agree exactly, and the residue method needed no antiderivative.

2 · An infinite sum from a cotangent kernel (fully worked)

Sum the Basel series ∑n=1∞1n2\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2} by pairing 1/z21/z^2 with πcot⁡πz\pi\cot\pi z.

Step 1. The function πcot⁡πz\pi\cot\pi z has a simple pole with residue 11 at every integer, because near z=nz=n it behaves like 1/(z−n)1/(z-n). So g(z)=πcot⁡(πz)/z2g(z)=\pi\cot(\pi z)/z^2 has, at each nonzero integer nn, a simple pole with Res⁡z=ng=1/n2\operatorname{Res}_{z=n}g=1/n^2.

Step 2. At z=0z=0, gg has a triple pole. Using the standard expansion πcot⁡πz=1z−π2z3−π4z345−⋯\pi\cot\pi z=\dfrac{1}{z}-\dfrac{\pi^2 z}{3}-\dfrac{\pi^4 z^3}{45}-\cdots, divide by z2z^2: g(z)=1z3−π23z−⋯g(z)=\dfrac{1}{z^3}-\dfrac{\pi^2}{3z}-\cdots. The coefficient of 1/z1/z is −π2/3-\pi^2/3, so Res⁡z=0g=\operatorname{Res}_{z=0}g=\boldsymbol{-\pi^2/3}.

Step 3. On a large square contour CNC_N with half-integer sides, cot⁡πz\cot\pi z stays bounded while 1/z21/z^2 forces ∮CNg dz→0\oint_{C_N} g\,\mathrm{d}z\to0 as N→∞N\to\infty. By the Residue Theorem the total of all enclosed residues therefore vanishes: ∑n≠01n2−π23=0\displaystyle\sum_{n\neq0}\frac{1}{n^2}-\frac{\pi^2}{3}=0.

Step 4. The double-sided sum is even, ∑n≠01/n2=2∑n≥11/n2\sum_{n\neq0}1/n^2=2\sum_{n\ge1}1/n^2, so 2∑n=1∞1/n2=π2/32\sum_{n=1}^{\infty}1/n^2=\pi^2/3 and ∑n=1∞1n2=≈1.6449\displaystyle\sum_{n=1}^{\infty}\frac{1}{n^2}=\boldsymbol{\frac{\pi^2}{6}}\approx1.6449 — Euler's value ζ(2)=π2/6\zeta(2)=\pi^2/6, obtained purely from residue bookkeeping.

3 · A double pole (quick)

Find Res⁡z=1ez(z−1)2\operatorname{Res}_{z=1}\dfrac{e^z}{(z-1)^2}. The pole is order m=2m=2, so formula (5) gives Res⁡=11!ddz[(z−1)2f]z=1=ddzez∣z=1=e\operatorname{Res}=\dfrac{1}{1!}\dfrac{\mathrm{d}}{\mathrm{d}z}\big[(z-1)^2 f\big]_{z=1}=\dfrac{\mathrm{d}}{\mathrm{d}z}e^z\Big|_{z=1}=\boldsymbol{e}. The naive simple-pole limit lim⁡z→1(z−1)f=lim⁡z→1ez/(z−1)\lim_{z\to1}(z-1)f=\lim_{z\to1}e^z/(z-1) diverges — a live reminder to check the order first.

Physics of the portrait

The residue calculus is the creation of one mathematician who, more than any other, turned the vague eighteenth-century manipulation of complex integrals into a rigorous machine — and who literally coined the word.

Origins · 1 minAugustin-Louis Cauchy and how this was discovered
AC
Augustin-Louis Cauchy
1789-1857 · founder of rigorous complex analysis and the calculus of residues

Augustin-Louis Cauchy was the most prolific mathematician of the nineteenth century and the architect of nearly the entire theory in this article. Beginning with his 1814 memoir on definite integrals, he spent two decades building the rigorous complex analysis that his predecessors — Euler, Laplace, Poisson — had only groped toward with formal symbol-shuffling. In an 1825 memoir on integrals taken between imaginary limits he proved what is now Cauchy's Integral Theorem: the integral of an analytic function around a closed path is zero. Then, in 1826, in his self-published Exercices de mathématiques, he isolated the one quantity that a contour integral does detect at a singularity and named it the résidu — the residue — launching the "calculus of residues" as a systematic method. By the early 1830s he had the general Residue Theorem and the integral formula that bears his name, and he applied residues relentlessly to real integrals, series, and differential equations. Cauchy insisted on convergence and rigor in an era that tolerated neither; the modern definitions of limit, continuity, and the Cauchy sequence are all his, across nearly 800 papers. The Laurent series that supplies the coefficients he integrates was contributed in 1843 by Pierre Alphonse Laurent, extending Cauchy's Taylor expansion to the annulus around a singularity — the final piece that lets every residue be read off as a coefficient.

History
1814
— Cauchy's memoir on definite integrals seeds the theory of complex integration
1825
— Cauchy proves the integral theorem for integrals between imaginary limits
1826
— Cauchy coins the term residue and founds the calculus of residues in the Exercices
1831
— Cauchy states the general residue theorem and the integral formula
1843
— Laurent extends the expansion to an annulus, giving the Laurent series

Going further

Texts. Stone & Goldbart, Mathematics for Physics, ch. on Complex Analysis · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., ch. on Calculus of Residues · Hassani, Mathematical Physics, ch. on Calculus of Residues · Byron & Fuller, Mathematics of Classical and Quantum Physics, ch. on Analytic Functions · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering · Ahlfors, Complex Analysis · Whittaker & Watson, A Course of Modern Analysis. Key results in this article: (1) ∮(z−z0)n dz=2πi δn,−1\oint(z-z_0)^n\,\mathrm{d}z=2\pi i\,\delta_{n,-1}, verified by direct parametrization z−z0=reiθz-z_0=re^{i\theta}; (2) the order-mm residue formula derived from the Laurent series; (3) ∫−∞∞dx/(1+x2)=π\int_{-\infty}^{\infty}\mathrm{d}x/(1+x^2)=\pi, consistent with arctan⁡\arctan; (4) the Basel sum ∑1/n2=π2/6≈1.6449\sum1/n^2=\pi^2/6\approx1.6449 using the expansion πcot⁡πz=1/z−π2z/3−π4z3/45−⋯\pi\cot\pi z=1/z-\pi^2z/3-\pi^4z^3/45-\cdots; (5) the Yukawa integral ∫eikx/(k2+m2) dk=(π/m)e−m∣x∣\int e^{ikx}/(k^2+m^2)\,\mathrm{d}k=(\pi/m)e^{-m|x|}, checked numerically to seven digits at m=1.5, x=0.7m=1.5,\ x=0.7; (6) the residue ee of ez/(z−1)2e^z/(z-1)^2 at z=1z=1.

Prerequisites. Laurent Series · Zeros, Poles, and Isolated Singularities · Cauchy's Integral Formula and Derivatives · Complex Integration and Contour Integrals · Cauchy's Integral Theorem. Leads to. Consequences: Liouville, Maximum Modulus, Morera · Elementary Complex Functions.

Ask the tutor: Bring me any integral, series, or transform you are stuck on and I will show you where to put the contour and which residues to collect.

What exactly is a residue, in one sentence

It is the coefficient of (z−z0)−1(z-z_0)^{-1} in the Laurent expansion of the function about the singularity z0z_0 — equivalently, 12πi\tfrac{1}{2\pi i} times the integral of the function around a small loop enclosing only z0z_0. Those two descriptions are the same number viewed two ways: the series picture tells you how to compute it algebraically, while the integral picture tells you what it does. Of all the infinitely many Laurent coefficients, this is the single one that a contour integral can register, which is why it deserves its own name and its own battery of shortcut formulas.

Why is 2πi the magic constant that appears everywhere

It comes straight from the geometry of a circle. Parametrize a small loop as z−z0=reiθz-z_0=re^{i\theta} with θ\theta running from 00 to 2π2\pi; then dz=ireiθ dθ\mathrm{d}z=ire^{i\theta}\,\mathrm{d}\theta, and integrating (z−z0)−1=e−iθ/r(z-z_0)^{-1}=e^{-i\theta}/r against it gives ∫02πi dθ=2πi\int_0^{2\pi} i\,\mathrm{d}\theta=2\pi i. Every other integer power carries a factor ei(n+1)θe^{i(n+1)\theta} that completes a whole number of oscillations and averages to zero. So 2πi2\pi i is nothing more exotic than "once around the circle" measured with the complex logarithm, and it is universal because it does not depend on the radius rr or on the particular function — only on winding once.

How do I choose which half-plane to close the contour in

Let the exponential decide. For an integrand carrying eikxe^{i k x} you need the added semicircle to make that factor decay, not blow up. Writing k=Re⁡k+iIm⁡kk=\operatorname{Re}k+i\operatorname{Im}k, the magnitude is e−xIm⁡ke^{-x\operatorname{Im}k}: if x>0x>0 this decays when Im⁡k>0\operatorname{Im}k>0, so close in the upper half-plane; if x<0x<0, close below. For a rational integrand with no exponential you can close in either half-plane, provided the function falls off faster than 1/∣z∣1/|z| so the arc vanishes — pick whichever side has the simpler poles. Jordan's lemma is the precise statement that legitimizes discarding the arc even when the rational factor only decays like 1/∣z∣1/|z|.

When does the simple-pole formula fail, and what do I use instead

The formula Res⁡=lim⁡z→z0(z−z0)f(z)\operatorname{Res}=\lim_{z\to z_0}(z-z_0)f(z) is valid only for a pole of order one. If the pole has order m>1m>1, that single factor of (z−z0)(z-z_0) cannot cancel all mm offending factors, and the limit diverges. The fix is equation (5): multiply by (z−z0)m(z-z_0)^m to regularize, differentiate m−1m-1 times, evaluate at z0z_0, and divide by (m−1)!(m-1)!. Always determine the pole order first — usually by inspecting the lowest power in the denominator — and never apply the order-one shortcut on faith. For essential singularities and branch points, neither formula applies and you must read the residue from the Laurent series directly.

How can a contour integral possibly compute an infinite sum

The trick is to manufacture a function whose residues are the terms you want to add. The kernels πcot⁡πz\pi\cot\pi z and π/sin⁡πz\pi/\sin\pi z both have simple poles with residue ±1\pm1 at every integer, so multiplying one of them by f(z)f(z) produces a function whose residue at z=nz=n is (up to sign) f(n)f(n). Integrating that product around a huge contour that swells to infinity gives zero when ff decays fast enough, and the Residue Theorem then says the sum of all residues — the sum ∑f(n)\sum f(n) plus the residues at ff's own poles — vanishes. Rearranging isolates the series. That is exactly how the Basel sum ∑1/n2=π2/6\sum1/n^2=\pi^2/6 falls out, and it generalizes to every even zeta value and to finite-temperature Matsubara sums in physics.

Is the Residue Theorem really just Cauchy's theorem and formula combined

Yes, and seeing that is the whole point. Cauchy's Integral Theorem is the case with no singularities enclosed: the integral is zero. Cauchy's Integral Formula is the case of a single simple pole coming from a kernel 1/(z−z0)1/(z-z_0): the integral is 2πi2\pi i times the value of the analytic numerator, which is precisely its residue. The Residue Theorem is the general statement that contains both — deform the contour onto small circles (that is Cauchy's Theorem at work), expand each singularity's Laurent series, and keep only the a−1a_{-1} terms. No genuinely new principle is introduced; the theorem is the organizing statement that makes the earlier two look like the two simplest instances of one accounting rule.

What about branch points, essential singularities, and the residue at infinity

Poles are the easy case. Essential singularities, like e1/ze^{1/z} at the origin, still have a residue — you read it as the a−1a_{-1} coefficient of the Laurent series (11, here) — but no pole formula produces it. Branch points, such as those of z\sqrt{z} or log⁡z\log z, are not isolated singularities at all: the function is multivalued around them, and you must use a keyhole or dogbone contour that runs along both sides of a branch cut rather than counting a residue. The residue at infinity, Res⁡∞f=−Res⁡w=0[w−2f(1/w)]\operatorname{Res}_\infty f=-\operatorname{Res}_{w=0}[w^{-2}f(1/w)], closes the accounting on the Riemann sphere: for any rational function the finite residues plus the one at infinity sum to zero, which is often the fastest way to get a stubborn residue and always a good consistency check.

Before this

Where this leads