Skip to content
The book

Residue theorem and standard contour integrals

Why this is asked: Five standard contour patterns cover almost every exam integral. Know which contour goes with which integrand, and remember that a semicircular indentation contributes iπ·Res, not 2πi·Res.

In one sentence

The residue is the single Laurent coefficient a−1a_{-1}, the residue theorem says a contour integral is 2πi2\pi i times the residues enclosed, and the exam's real content is the handful of standard contours that turn a real integral into that sum.

Why the exam asks it

Because it converts hard real integrals into arithmetic, and because each standard contour has a convergence condition that decides whether the method works at all. A candidate who applies the semicircle without checking the degree condition will get a confident wrong answer, which is exactly what the options are for.

The idea

For an isolated singularity at aa, Res⁡(f,a)\operatorname{Res}(f, a) is the coefficient a−1a_{-1} in the Laurent expansion on a punctured disc around aa. It is the only coefficient that survives integration, because ∮(z−a)ndz=0\oint (z-a)^n dz = 0 for every n≠−1n \ne -1.

Residue theorem. If ff is holomorphic inside and on a positively oriented simple closed contour γ\gamma except for finitely many isolated singularities aka_k inside, then

∮γf(z) dz=2πi∑kRes⁡(f,ak).\oint_\gamma f(z)\,dz = 2\pi i \sum_k \operatorname{Res}(f, a_k).

Computing residues

  • Simple pole: Res⁡(f,a)=lim⁡z→a(z−a)f(z)\operatorname{Res}(f,a) = \lim_{z\to a}(z-a)f(z).
  • Simple pole of a quotient: if f=p/qf = p/q with p(a)≠0p(a)\ne0 and qq having a simple zero at aa, then Res⁡=p(a)q′(a)\operatorname{Res} = \dfrac{p(a)}{q'(a)}. This is the one worth memorising; it avoids factorising the denominator.
  • Pole of order mm: Res⁡(f,a)=1(m−1)!lim⁡z→adm−1dzm−1[(z−a)mf(z)].\operatorname{Res}(f,a) = \frac{1}{(m-1)!}\lim_{z\to a}\frac{d^{m-1}}{dz^{m-1}}\Big[(z-a)^m f(z)\Big].
  • Essential singularity: no formula. Expand and read a−1a_{-1}. For e1/ze^{1/z} the coefficient of 1/z1/z is 11, so the residue is 11.

Getting mm wrong is the commonest error — the formula silently returns a number for the wrong mm rather than failing.

Trigonometric integrals

For ∫02πR(cos⁡θ,sin⁡θ) dθ\int_0^{2\pi} R(\cos\theta,\sin\theta)\,d\theta, set z=eiθz = e^{i\theta}, so

cos⁡θ=z+z−12,sin⁡θ=z−z−12i,dθ=dziz,\cos\theta = \frac{z + z^{-1}}{2}, \qquad \sin\theta = \frac{z - z^{-1}}{2i}, \qquad d\theta = \frac{dz}{iz},

and the integral becomes a contour integral round ∣z∣=1|z| = 1. For example ∫02πdθ2+cos⁡θ=2π3\int_0^{2\pi}\frac{d\theta}{2+\cos\theta} = \frac{2\pi}{\sqrt3}, from the single pole inside the unit circle.

Rational integrals over the line

pole, counted pole, counted pole below: ignored −R R the arc length πR, integrand ~ R^(−2) The arc vanishes only if the integrand decays faster than 1/R — denominator ≥ numerator + 2.
The standard semicircle. Only the poles above the axis are counted, and the arc vanishes only when the integrand decays faster than 1/R.

Close with a semicircle in the upper half plane and let R→∞R \to \infty. The arc has length πR\pi R, so by ML it vanishes only if the integrand decays faster than 1/R1/R:

Condition: deg⁡(denominator)≥deg⁡(numerator)+2\deg(\text{denominator}) \ge \deg(\text{numerator}) + 2.

Then ∫−∞∞f=2πi∑Res⁡\int_{-\infty}^{\infty} f = 2\pi i \sum \operatorname{Res} over poles in the upper half plane only. For 11+x2\frac{1}{1+x^2}: the pole at ii has residue 12i\frac{1}{2i}, so the integral is 2πi⋅12i=π2\pi i \cdot \frac{1}{2i} = \pi, which is arctan⁡\arctan agreeing.

Closing in the lower half plane is equally valid and picks up the other poles with a sign change; the answers agree, and that is a useful check.

Oscillatory integrals

For ∫−∞∞f(x)eiaxdx\int_{-\infty}^{\infty} f(x)e^{iax}dx with a>0a > 0, Jordan's lemma allows the weaker condition that f→0f \to 0 on the arc — degree of denominator exceeding numerator by 11 suffices, because ∣eiaz∣=e−aIm⁡z|e^{iaz}| = e^{-a\operatorname{Im}z} decays in the upper half plane.

The sign of aa decides which half plane to close in. Getting it wrong closes the contour where the exponential grows, and the arc no longer vanishes.

Poles on the contour

∫0∞sin⁡xxdx\int_0^\infty \frac{\sin x}{x}dx has an integrand whose complex counterpart eiz/ze^{iz}/z has a pole at the origin, sitting on the path. Indent the contour with a small semicircle around it. A small semicircle around a simple pole contributes iπRes⁡i\pi \operatorname{Res} — half of 2πi2\pi i, because it turns through half a revolution. The result is π/2\pi/2.

Note this computes a principal value. ∫−∞∞sin⁡xxdx\int_{-\infty}^{\infty}\frac{\sin x}{x}dx converges as an improper Riemann integral, but many principal values exist for integrands that do not converge at all, and the option will not always distinguish them.

Where intuition breaks

"Apply the semicircle to any rational function." Only when the denominator's degree exceeds the numerator's by at least 22. For ∫x1+x2\int \frac{x}{1+x^2} the arc does not vanish and the integral does not converge — though its principal value is 00 by symmetry, which is a different claim.

"The residue is the value of the function at the pole." It is the coefficient of (z−a)−1(z-a)^{-1}. The function has no value at the pole.

"Use the order-mm formula; if mm is too big it will still work." Too large an mm gives a wrong number, not an error — the derivative of a function with a removable singularity is perfectly finite. Establish the order first.

"Count all the poles." Only those inside the contour. Half the options in this topic move a pole across the axis.

"A pole on the contour just contributes its residue." An indentation round a simple pole contributes iπRes⁡i\pi\operatorname{Res}, not 2πiRes⁡2\pi i \operatorname{Res} — half the turn, half the contribution. And for a pole of order ≥2\ge 2 on the contour the indented integral diverges.

"eiaze^{iaz} decays in the upper half plane whatever the sign of aa." ∣eiaz∣=e−aIm⁡z|e^{iaz}| = e^{-a\operatorname{Im}z} decays above the axis only for a>0a > 0. For a<0a<0, close below.

"The principal value is the integral." It agrees when the integral converges, and exists in many cases where it does not. ∫−∞∞x dx\int_{-\infty}^{\infty} x\,dx has principal value 00 and no value.

The exam's angle

  1. Identify the poles and which are enclosed. That is most of the work; the residues are then mechanical.
  2. Use p(a)/q′(a)p(a)/q'(a) for simple poles. It is faster than factorising and it is right whenever qq has a simple zero.
  3. Check the decay condition before closing a contour. Degree gap of 22 for rational, 11 with an oscillatory factor via Jordan.
  4. For ∫02π\int_0^{2\pi}, substitute z=eiθz = e^{i\theta} immediately. The unit circle is the contour and dθ=dz/(iz)d\theta = dz/(iz).
  5. Watch for a pole on the real axis — that means an indentation and a factor of iπi\pi, and it means the answer is a principal value.

The night before

  • Res⁡(f,a)=a−1\operatorname{Res}(f,a) = a_{-1}. ∮=2πi∑Res⁡\oint = 2\pi i\sum\operatorname{Res} over enclosed singularities.
  • Simple pole: lim⁡(z−a)f(z)\lim (z-a)f(z), or p(a)/q′(a)p(a)/q'(a) for a quotient.
  • Order mm: 1(m−1)!dm−1dzm−1[(z−a)mf(z)]\frac{1}{(m-1)!}\frac{d^{m-1}}{dz^{m-1}}[(z-a)^mf(z)]. Establish mm first — a wrong mm returns a number, not an error.
  • Essential: expand and read a−1a_{-1}. Res⁡(e1/z,0)=1\operatorname{Res}(e^{1/z},0) = 1.
  • ∫02π\int_0^{2\pi}: put z=eiθz = e^{i\theta}, dθ=dz/(iz)d\theta = dz/(iz), integrate round ∣z∣=1|z|=1.
  • Rational over R\mathbb{R}: semicircle above, denominator degree ≥\ge numerator + 2+\,2, count upper-half poles only. ∫dx1+x2=π\int\frac{dx}{1+x^2} = \pi.
  • With eiaxe^{iax}: Jordan, degree gap of 11 suffices, close above for a>0a>0 and below for a<0a<0.
  • Pole on the contour: indent, and a simple pole contributes iπRes⁡i\pi\operatorname{Res}. ∫0∞sin⁡xx=π2\int_0^\infty \frac{\sin x}{x} = \frac{\pi}{2}.
  • Principal value exists more often than the integral does.

See it move

Computing residues without expanding the seriesinteractive

This visual is part of Trap Analysis

Simple poles, higher-order poles and the check that catches arithmetic slips.

Unlock interactive visuals

Check yourself — select all that apply

For an integer k, consider the contour integral Ik=∫∣z∣=1I_{k} = \int_{|z|=1} eᶻ/zᵏ dz. Which of the following statements are true?

More in Singularities and Residues

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Argument principle, Rouché's theorem, open mapping

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 2