The math optional, made finite. Daily Practice

Cauchy’s residue theorem

At a Glance

Why This Chapter Matters

Cauchy’s residue theorem converts a contour integral — which would otherwise require parametrisation and real calculus — into pure algebra: locate poles, compute residues, sum them, multiply by 2πi2\pi i. UPSC has set this exactly five times in the window 2013–2022 with very little variation: four questions ask you to evaluate a specific contour integral, and one asks you to count zeros via Rouché’s theorem. Mastering the residue formula for simple and double poles covers four of those five questions; Rouché adds the fifth at the cost of a single short argument. This is one of the most mark-efficient atoms in Paper 2 Complex Analysis.

Minimum Theory

Cauchy’s Residue Theorem. Let ff be analytic on and inside a simple closed positively-oriented contour CC, except at finitely many isolated singularities z1,z2,,znz_1, z_2, \ldots, z_n inside CC. Then Cf(z)dz=2πik=1nResz=zkf(z).\oint_C f(z)\,dz = 2\pi i \sum_{k=1}^{n} \operatorname{Res}_{z=z_k} f(z). If the curve winds nn times around the region (winding number nn), multiply the right-hand side by nn.

Residue formulas.

Rouché’s Theorem. If hh and kk are analytic on and inside a simple closed contour CC, and h(z)>k(z)|h(z)| > |k(z)| for all zz on CC, then h(z)h(z) and h(z)+k(z)h(z)+k(z) have the same number of zeros (counting multiplicity) inside CC. The key step is always to find the “dominant” term hh and verify the strict inequality on the boundary.

Residue theorem evaluation flow

Question Archetypes

ArchetypeRecognition
residue-theorem-evaluation”Evaluate Cdz\oint_C \ldots\,dz” — function with poles, contour given explicitly
rouche-theorem”Prove that [expression][\text{expression}] has nn zeros inside [contour][\text{contour}]

residue-theorem-evaluation (4 question(s); 2015, 2016, 2021, 2022)

Evaluate a closed-contour integral via the Cauchy residue theorem

Recognition Cues

The question gives a rational or meromorphic function of zz and a specific contour — either a circle za=r|z - a| = r or a parametric curve c(t)=e2πintc(t) = e^{2\pi i n t}. The instruction is “evaluate” or “using Cauchy’s residue theorem, find.” The answer is always a complex number (often a multiple of πi\pi i).

Solution Template

  1. State the theorem (required when the question says “state and use”).
  2. Find all poles of f(z)f(z) by solving the denominator = 0 (or factoring).
  3. Test each pole: check whether zka<r|z_k - a| < r for the given circle, or whether zk<1|z_k| < 1 for the unit circle. Mark each as inside/outside CC.
  4. Compute the residue at each pole inside CC:
    • Simple pole: use g(z0)/h(z0)g(z_0)/h'(z_0) where f=g/hf = g/h.
    • Double pole: differentiate (zz0)2f(z)(z-z_0)^2 f(z) and evaluate at z0z_0.
  5. Check the winding number nn (from the parametrisation c(t)=e2πintc(t) = e^{2\pi i n t}; most circles have n=1n=1).
  6. Assemble: Cfdz=n2πiRes\oint_C f\,dz = n \cdot 2\pi i \cdot \sum \operatorname{Res}.

Worked Example 1

2015 Paper 2, 2015-P2-Q3a (15 marks)

State Cauchy’s residue theorem and use it to evaluate Cez+1z(z+1)(zi)2dz\displaystyle\int_C \frac{e^z+1}{z(z+1)(z-i)^2}\,dz where C:z=2C: |z|=2.

Step 1 — State the theorem. Cauchy’s Residue Theorem: if ff is analytic inside and on simple closed contour CC except at isolated singularities z1,,znz_1,\ldots,z_n inside CC, then Cf(z)dz=2πik=1nResz=zkf(z).\oint_C f(z)\,dz = 2\pi i \sum_{k=1}^n \operatorname{Res}_{z=z_k}f(z).

Step 2 — Locate poles. Denominator zeros: z=0z=0 (simple), z=1z=-1 (simple), z=iz=i (double). All satisfy z<2|z| < 2, so all three lie inside CC.

Step 3 — Residues.

At z=0z=0 (simple): Resz=0=e0+1(0+1)(0i)2=2(1)(1)=2.\operatorname{Res}_{z=0} = \frac{e^0+1}{(0+1)(0-i)^2} = \frac{2}{(1)(-1)} = -2.

At z=1z=-1 (simple): Resz=1=e1+1(1)(1i)2=1+e1(1)(2i)=i(1+e1)2.\operatorname{Res}_{z=-1} = \frac{e^{-1}+1}{(-1)(-1-i)^2} = \frac{1+e^{-1}}{(-1)(2i)} = \frac{i(1+e^{-1})}{2}.

At z=iz=i (double): Write ϕ(z)=(ez+1)/[z(z+1)]\phi(z) = (e^z+1)/[z(z+1)]; then f(z)=ϕ(z)/(zi)2f(z) = \phi(z)/(z-i)^2 and Resz=i=ϕ(i).\operatorname{Res}_{z=i} = \phi'(i). Let ψ(z)=z2+z\psi(z) = z^2+z. Then ϕ(z)=ezψ(z)(ez+1)ψ(z)ψ(z)2,ψ(z)=2z+1.\phi'(z) = \frac{e^z \psi(z) - (e^z+1)\psi'(z)}{\psi(z)^2}, \quad \psi'(z) = 2z+1. At z=iz=i: ψ(i)=i2+i=1+i\psi(i) = i^2+i = -1+i, so ψ(i)2=(1+i)2=2i\psi(i)^2 = (-1+i)^2 = -2i.

Numerator: ei(1+i)(ei+1)(2i+1)=ei(1+i2i1)(2i+1)=ei(2i)(2i+1)e^i(-1+i) - (e^i+1)(2i+1) = e^i(-1+i-2i-1) - (2i+1) = e^i(-2-i)-(2i+1).

Hence Resz=i=ei(2i)(2i+1)2i.\operatorname{Res}_{z=i} = \frac{e^i(-2-i)-(2i+1)}{-2i}.

Step 4 — Sum and multiply: Cf(z)dz=2πi[2+i(1+e1)2+ei(2i)(2i+1)2i].\int_C f(z)\,dz = 2\pi i\left[-2 + \frac{i(1+e^{-1})}{2} + \frac{e^i(-2-i)-(2i+1)}{-2i}\right].

(Leave in this form or simplify numerically using ei=cos1+isin1e^i = \cos 1 + i\sin 1; the question awards full marks for correct residues and correct assembly.)

Worked Example 2

2016 Paper 2, 2016-P2-Q3c (15 marks)

Evaluate γdz4z21\displaystyle\int_\gamma \frac{dz}{4z^2-1} where γ(t)=e2πit\gamma(t)=e^{2\pi it}, t[0,1]t\in[0,1] (unit circle, n=1n=1).

Poles. 4z21=(2z1)(2z+1)4z^2-1 = (2z-1)(2z+1), so poles at z=12z = \tfrac{1}{2} and z=12z = -\tfrac{1}{2}. Both satisfy z=12<1|z| = \tfrac{1}{2} < 1, so both lie inside γ|\gamma|.

Residues (simple poles, use 1/h(z0)1/h'(z_0) with h=4z21h=4z^2-1, h=8zh'=8z): Resz=1/2=1812=14,Resz=1/2=18(12)=14.\operatorname{Res}_{z=1/2} = \frac{1}{8\cdot\tfrac{1}{2}} = \frac{1}{4}, \qquad \operatorname{Res}_{z=-1/2} = \frac{1}{8\cdot(-\tfrac{1}{2})} = -\frac{1}{4}.

Sum: 14+(14)=0\tfrac{1}{4} + (-\tfrac{1}{4}) = 0.

γdz4z21=2πi0=0.\boxed{\int_\gamma \frac{dz}{4z^2-1} = 2\pi i \cdot 0 = 0.}

Worked Example 3

2021 Paper 2, 2021-P2-Q1d (10 marks)

Evaluate cdz2z25z+2\displaystyle\int_c \frac{dz}{2z^2-5z+2} where c(t)=e4πitc(t) = e^{4\pi it}, t[0,1]t\in[0,1].

Winding number. c(t)=e4πit=e2πi2tc(t)=e^{4\pi it} = e^{2\pi i \cdot 2t} wraps twice around the origin, so n=2n=2.

Poles. 2z25z+2=(2z1)(z2)2z^2-5z+2=(2z-1)(z-2), so poles at z=12z=\tfrac{1}{2} (inside z=1|z|=1) and z=2z=2 (outside).

Residue at z=12z=\tfrac{1}{2}: Resz=1/2=1212212=limz1/2(z12)1(2z1)(z2)=12(122)=12(32)=13.\operatorname{Res}_{z=1/2} = \frac{1}{2\cdot\tfrac{1}{2}-2}\cdot\frac{1}{2} = \lim_{z\to 1/2}(z-\tfrac{1}{2})\cdot\frac{1}{(2z-1)(z-2)} = \frac{1}{2(\tfrac{1}{2}-2)} = \frac{1}{2\cdot(-\tfrac{3}{2})} = -\frac{1}{3}.

Assemble (winding number n=2n=2): cdz2z25z+2=22πi(13)=4πi3.\boxed{\int_c \frac{dz}{2z^2-5z+2} = 2 \cdot 2\pi i \cdot \left(-\frac{1}{3}\right) = -\frac{4\pi i}{3}.}

Worked Example 4

2022 Paper 2, 2022-P2-Q3a (15 marks)

Evaluate Cz+4z2+2z+5dz\displaystyle\int_C \frac{z+4}{z^2+2z+5}\,dz where C:z+1i=2C: |z+1-i|=2 (circle centre 1+i-1+i, radius 22).

Poles. z2+2z+5=0z=2±4202=1±2iz^2+2z+5=0 \Rightarrow z = \tfrac{-2\pm\sqrt{4-20}}{2} = -1\pm 2i.

Test against centre 1+i-1+i:

Residue at z1=1+2iz_1 = -1+2i (simple pole, z2+2z+5=(zz1)(zz2)z^2+2z+5=(z-z_1)(z-z_2)): Resz=z1=z1+4z1z2=(1+2i)+4(1+2i)(12i)=3+2i4i.\operatorname{Res}_{z=z_1} = \frac{z_1+4}{z_1-z_2} = \frac{(-1+2i)+4}{(-1+2i)-(-1-2i)} = \frac{3+2i}{4i}.

Simplify using 14i=i4\tfrac{1}{4i} = -\tfrac{i}{4}: 3+2i4i=(3+2i)i4=3i2i24=23i4.\frac{3+2i}{4i} = (3+2i)\cdot\frac{-i}{4} = \frac{-3i-2i^2}{4} = \frac{2-3i}{4}.

Assemble: Cz+4z2+2z+5dz=2πi23i4=πi(23i)2=2πi+3π2.\int_C \frac{z+4}{z^2+2z+5}\,dz = 2\pi i \cdot \frac{2-3i}{4} = \frac{\pi i(2-3i)}{2} = \frac{2\pi i + 3\pi}{2}.

Cz+4z2+2z+5dz=3π2+πi.\boxed{\int_C \frac{z+4}{z^2+2z+5}\,dz = \frac{3\pi}{2} + \pi i.}

Common Traps


rouche-theorem (1 question(s); 2013)

Count zeros inside a contour via Rouché’s theorem

Recognition Cues

The question asks you to prove that a given expression has exactly nn zeros inside a specified contour, or to show that two functions have the same number of zeros. It will always provide a condition like bea+1<1be^{a+1} < 1 that you will need to translate into the strict inequality h>k|h| > |k| on the boundary.

Solution Template

  1. Split the expression into two parts: identify a “dominant” function h(z)h(z) (whose zeros you know) and a “perturbation” k(z)k(z).
  2. Bound k(z)|k(z)| on the contour CC using ez=eRe(z)ez|e^z| = e^{\operatorname{Re}(z)} \le e^{|z|} or similar.
  3. Verify h(z)>k(z)|h(z)| > |k(z)| strictly on CC using the given condition.
  4. Conclude by Rouché: h+kh+k has the same number of zeros inside CC as hh.
  5. Count zeros of hh inside CC (often a power znz^n with nn zeros at the origin).

Worked Example

2013 Paper 2, 2013-P2-Q1d (10 marks)

Using Rouché’s theorem, prove that zneabezz^n e^{-a} - be^z has nn zeros inside the unit circle z=1|z|=1, given that bea+1<1b e^{a+1} < 1.

Step 1 — Choose the split. Write the expression as h(z)+k(z)h(z) + k(z) where h(z)=znea,k(z)=bez.h(z) = z^n e^{-a}, \qquad k(z) = -be^z.

Step 2 — Bound on z=1|z|=1.

On z=1|z|=1: h(z)=znea=ea|h(z)| = |z|^n e^{-a} = e^{-a}.

For k(z)|k(z)|: using ez=eRe(z)ez=e1=e|e^z| = e^{\operatorname{Re}(z)} \le e^{|z|} = e^1 = e, k(z)=bezbe.|k(z)| = b|e^z| \le be.

Step 3 — Apply the condition. The given hypothesis bea+1<1be^{a+1} < 1 is equivalent to beea<1be \cdot e^a < 1, i.e. be<eabe < e^{-a}. Therefore k(z)be<ea=h(z)for all z on z=1.|k(z)| \le be < e^{-a} = |h(z)| \quad \text{for all } z \text{ on } |z|=1.

Step 4 — Rouché’s conclusion. Since h(z)>k(z)|h(z)| > |k(z)| on z=1|z|=1, Rouché’s theorem guarantees that h(z)+k(z)=zneabezh(z)+k(z) = z^n e^{-a} - be^z has the same number of zeros inside z=1|z|=1 as h(z)=zneah(z) = z^n e^{-a}.

Step 5 — Count zeros of hh. h(z)=eaznh(z) = e^{-a} z^n has exactly nn zeros at z=0z=0 (multiplicity nn) inside z=1|z|=1. \blacksquare

Common Traps

Marks-Aware Writing

For a 10-mark residue question (e.g., 2021-P2-Q1d): state the winding number explicitly, identify which poles lie inside, compute each residue showing at least one line of working, and box the final answer. Skipping “step 2 — check which poles are inside” loses 2–3 marks even if the final number is correct.

For a 15-mark residue question (e.g., 2015-P2-Q3a): if the question says “state and use,” write out the theorem statement in full before any computation — this is worth 3–4 marks by itself. For the double pole at z=iz=i, show the derivative calculation explicitly; the examiner will check the quotient-rule step.

For a 10-mark Rouché question (e.g., 2013-P2-Q1d): write out hh and kk explicitly, show the bound on k|k| using the given numerical condition, state the conclusion of Rouché’s theorem in words (”h+kh+k has the same number of zeros as hh inside CC”), and then count the zeros of hh. Four steps, one mark each is the typical allocation.

Practice Set

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.