Complex Variables & Transforms · Unit 1 · Topic 05

The residue theorem: a contour integral from a few coefficients.

Short answer

The residue of \(f\) at \(a\) is the coefficient of \(\dfrac{1}{z - a}\) in its Laurent series. At a simple pole it is \(\displaystyle\lim_{z \to a}(z - a)f(z)\). The residue theorem says

\[\oint_C f(z)\,dz = 2\pi i\sum\big(\text{residues inside } C\big).\]

Example: \(\displaystyle\int_0^{2\pi}\frac{d\theta}{5 + 4\cos\theta} = \frac{2\pi}{3}\).

Engineering MathsSemester III/IVBSc
01

What a residue is

Before you start: you need Laurent series and poles and Cauchy's integral formula.

Suppose \(f\) has an isolated singularity at \(a\), with Laurent series \(\sum a_n (z - a)^n + \sum b_n (z - a)^{-n}\). Integrate it term by term round a small circle about \(a\). Every term gives 0 except \(\dfrac{b_1}{z - a}\), which gives \(2\pi i\,b_1\). That one surviving coefficient is the residue.

Definition

The residue of \(f\) at \(a\) is the coefficient of \(\dfrac{1}{z - a}\) in its Laurent series about \(a\): \[\operatorname{Res}_{z = a} f(z) = b_1 = \frac{1}{2\pi i}\oint_{|z - a| = r} f(z)\,dz\] for any small enough \(r\).

Formulas for poles

Type of poleResidue
Simple pole\(\displaystyle\lim_{z \to a}(z - a)f(z)\)
Simple pole, \(f = \dfrac{p(z)}{q(z)}\) with \(q(a) = 0\), \(q'(a) \ne 0\)\(\dfrac{p(a)}{q'(a)}\)
Pole of order \(m\)\(\dfrac{1}{(m - 1)!}\displaystyle\lim_{z \to a}\frac{d^{m-1}}{dz^{m-1}}\Big[(z - a)^m f(z)\Big]\)
Essential singularityread \(b_1\) off the Laurent series

The order-\(m\) formula is Cauchy's derivative formula in disguise: \((z - a)^m f(z)\) is analytic near \(a\), and you are picking out the coefficient of \((z - a)^{m-1}\) in its Taylor series.

02

The residue theorem

Residue theorem

If \(f\) is analytic inside and on a simple closed curve \(C\), except at finitely many points \(a_1, \dots, a_k\) inside \(C\), then \[\oint_C f(z)\,dz = 2\pi i\sum_{j=1}^{k}\operatorname{Res}_{z = a_j} f(z).\]

Draw a tiny circle round each singular point. By Cauchy's theorem the integral over \(C\) equals the sum of the integrals over the tiny circles, and each of those is \(2\pi i\) times a residue. Cauchy's integral formula is the special case of one simple pole.

  1. Find the singular points of \(f\).
  2. Keep only those inside \(C\).
  3. Find the order of each and compute its residue.
  4. Multiply the sum by \(2\pi i\).
03

Real integrals by residues

Type 1: \(\int_0^{2\pi} F(\cos\theta, \sin\theta)\,d\theta\)

Put \(z = e^{i\theta}\). Then \(\theta\) from 0 to \(2\pi\) traces \(|z| = 1\), and \[\cos\theta = \frac{z + z^{-1}}{2}, \quad \sin\theta = \frac{z - z^{-1}}{2i}, \quad d\theta = \frac{dz}{iz}.\]

Standard result: \(\displaystyle\int_0^{2\pi}\frac{d\theta}{a + b\cos\theta} = \frac{2\pi}{\sqrt{a^2 - b^2}}\) for \(a > |b|\).

Type 2: \(\int_{-\infty}^{\infty}\frac{P(x)}{Q(x)}\,dx\)

If \(Q\) has no real zeros and \(\deg Q \ge \deg P + 2\), then \[\int_{-\infty}^{\infty}\frac{P(x)}{Q(x)}\,dx = 2\pi i\sum \big(\text{residues in the upper half-plane}\big).\]

Standard result: \(\displaystyle\int_{-\infty}^{\infty}\frac{dx}{(x^2 + a^2)^2} = \frac{\pi}{2a^3}\) for \(a > 0\).

For Type 2, close the real interval \([-R, R]\) with a semicircle of radius \(R\) in the upper half-plane. On the semicircle the integrand is roughly \(1/R^2\) in size while the length is \(\pi R\), so that part tends to 0 as \(R \to \infty\). What is left is the real integral, equal to \(2\pi i\) times the residues enclosed, and only upper half-plane poles are enclosed.

Where does \(\dfrac{\pi}{2a^3}\) come from? The integrand \(\dfrac{1}{(z - ia)^2(z + ia)^2}\) has a double pole at \(ia\). Its residue is \(\dfrac{d}{dz}(z + ia)^{-2}\) at \(z = ia\), which is \(\dfrac{-2}{(2ia)^3} = \dfrac{1}{4ia^3}\). Multiply by \(2\pi i\).

04

Solved examples

Example 1: Two simple poles

Easy

Find the residues of \(f(z) = \dfrac{z + 1}{z(z - 2)}\) at its poles.

  1. Simple poles at \(z = 0\) and \(z = 2\).
  2. At 0: \(\displaystyle\lim_{z \to 0} z f(z) = \frac{0 + 1}{0 - 2} = -\frac{1}{2}\).
  3. At 2: \(\displaystyle\lim_{z \to 2}(z - 2)f(z) = \frac{2 + 1}{2} = \frac{3}{2}\).

Answer\(\operatorname{Res}_{z=0} = -\dfrac{1}{2}\), \(\operatorname{Res}_{z=2} = \dfrac{3}{2}\)

Example 2: Using p/q'

Easy

Find the residue of \(\dfrac{z}{z^2 + 4}\) at \(z = 2i\).

  1. \(p = z\), \(q = z^2 + 4\), \(q' = 2z\). \(q(2i) = 0\) and \(q'(2i) = 4i \ne 0\), so it is a simple pole.
  2. Residue \(= \dfrac{p(2i)}{q'(2i)} = \dfrac{2i}{4i}\).

Answer\(\dfrac{1}{2}\)

Example 3: A double pole

Medium

Find the residues of \(f(z) = \dfrac{z}{(z - 1)^2(z + 2)}\).

  1. \(z = 1\) is a pole of order 2. Its residue is \[\frac{d}{dz}\left[\frac{z}{z + 2}\right]_{z=1} = \left[\frac{2}{(z + 2)^2}\right]_{z=1} = \frac{2}{9}.\]
  2. \(z = -2\) is simple. Residue \(= \left[\dfrac{z}{(z - 1)^2}\right]_{z=-2} = \dfrac{-2}{9}\).

Answer\(\dfrac{2}{9}\) at \(z = 1\), \(-\dfrac{2}{9}\) at \(z = -2\)

Example 4: The residue theorem

Medium

Evaluate \(\displaystyle\oint_C\frac{z\,dz}{(z - 1)^2(z + 2)}\) where \(C\) is (a) \(|z| = \tfrac{3}{2}\), (b) \(|z| = 3\).

  1. (a) Only \(z = 1\) is inside (\(|-2| = 2 > \tfrac{3}{2}\)). Integral \(= 2\pi i\cdot\dfrac{2}{9}\).
  2. (b) Both poles are inside. Integral \(= 2\pi i\left(\dfrac{2}{9} - \dfrac{2}{9}\right) = 0\).

Answer(a) \(\dfrac{4\pi i}{9}\); (b) \(0\)

Example 5: A pole of order 3

Medium

Evaluate \(\displaystyle\oint_{|z| = 2}\frac{e^{2z}}{(z - 1)^3}\,dz\).

  1. Pole of order 3 at \(z = 1\), inside the circle.
  2. Residue \(= \dfrac{1}{2!}\left[\dfrac{d^2}{dz^2}e^{2z}\right]_{z=1} = \dfrac{4e^2}{2} = 2e^2\).

Answer\(2\pi i\cdot 2e^2 = 4\pi i\,e^2\)

Example 6: An integral over 0 to 2π

Exam level

Evaluate \(\displaystyle\int_0^{2\pi}\frac{d\theta}{5 + 4\cos\theta}\).

  1. With \(z = e^{i\theta}\): \[5 + 4\cos\theta = 5 + 2\left(z + \frac{1}{z}\right) = \frac{2z^2 + 5z + 2}{z}.\]
  2. The integral becomes \[\oint_{|z|=1}\frac{z}{2z^2 + 5z + 2}\cdot\frac{dz}{iz} = \frac{1}{i}\oint_{|z|=1}\frac{dz}{(2z + 1)(z + 2)}.\]
  3. Poles: \(z = -\tfrac{1}{2}\) (inside) and \(z = -2\) (outside).
  4. Residue at \(-\tfrac{1}{2}\): \(\left[\dfrac{1}{2(z + 2)}\right]_{z = -1/2} = \dfrac{1}{3}\).
  5. Integral \(= \dfrac{1}{i}\cdot 2\pi i\cdot\dfrac{1}{3}\). Check with the standard result: \(\dfrac{2\pi}{\sqrt{25 - 16}} = \dfrac{2\pi}{3}\). ✓

Answer\(\dfrac{2\pi}{3}\)

Example 7: Infinite limits, double pole

Exam level

Evaluate \(\displaystyle\int_{-\infty}^{\infty}\frac{dx}{(x^2 + 1)^2}\).

  1. \(\deg Q = 4 \ge 0 + 2\), and \(Q\) has no real zeros. Poles at \(\pm i\), each of order 2; only \(i\) is in the upper half-plane.
  2. \(f(z) = \dfrac{1}{(z - i)^2(z + i)^2}\). Residue at \(i\): \[\left[\frac{d}{dz}(z + i)^{-2}\right]_{z=i} = \frac{-2}{(2i)^3} = \frac{-2}{-8i} = \frac{1}{4i}.\]
  3. Integral \(= 2\pi i\cdot\dfrac{1}{4i}\). This is \(\dfrac{\pi}{2a^3}\) with \(a = 1\).

Answer\(\dfrac{\pi}{2}\)

Example 8: Two poles in the upper half-plane

Exam level

Evaluate \(\displaystyle\int_{-\infty}^{\infty}\frac{dx}{(x^2 + 1)(x^2 + 4)}\).

  1. Upper half-plane poles: \(i\) and \(2i\), both simple.
  2. At \(i\): \(\dfrac{1}{2i\,(i^2 + 4)} = \dfrac{1}{6i}\).
  3. At \(2i\): \(\dfrac{1}{\big((2i)^2 + 1\big)\cdot 4i} = \dfrac{1}{-12i}\).
  4. Sum \(= \dfrac{2 - 1}{12i} = \dfrac{1}{12i}\). Multiply by \(2\pi i\).

Answer\(\dfrac{\pi}{6}\)

Vipul Sir's tip

After a real integral, sanity-check the answer: an integral of a positive function must come out real and positive. If you get an \(i\) left over or a negative number, you have dropped the \(\dfrac{1}{i}\) from \(d\theta = \dfrac{dz}{iz}\) or picked up a pole from the wrong half-plane.

05

Common mistakes

1. Using the simple-pole formula at a higher-order pole

For \(\dfrac{e^{2z}}{(z - 1)^3}\), \(\displaystyle\lim_{z \to 1}(z - 1)f(z)\) does not even exist. Find the order first, then use the order-\(m\) formula with \(m = 3\).

2. Keeping both roots in a Type 1 integral

In Example 6, \(z = -2\) is a root of the denominator but lies outside \(|z| = 1\). Only roots with \(|z| < 1\) count.

3. Taking poles from the lower half-plane

For \(\displaystyle\int_{-\infty}^{\infty}\frac{dx}{x^2 + 1}\), use only \(z = i\): \(2\pi i\cdot\dfrac{1}{2i} = \pi\). Adding the residue at \(-i\) as well gives 0, which is impossible for a positive integrand.

06

Practice questions

Try each one on paper before you open the answer.

Q1Find the residue of \(\dfrac{1}{z^2 + 9}\) at \(z = 3i\).

\(\dfrac{p}{q'} = \dfrac{1}{6i} = -\dfrac{i}{6}\).

Q2Find the residue of \(\dfrac{z^2}{(z - 2)^3}\) at \(z = 2\).

Order 3: \(\dfrac{1}{2!}\dfrac{d^2}{dz^2}(z^2) = \dfrac{2}{2} = 1\).

Q3Evaluate \(\displaystyle\oint_{|z| = 2}\frac{e^z}{z(z - 1)}\,dz\).

Residues: at 0, \(\dfrac{e^0}{-1} = -1\); at 1, \(\dfrac{e^1}{1} = e\).

Integral \(= 2\pi i\,(e - 1)\).

Q4Evaluate \(\displaystyle\int_0^{2\pi}\frac{d\theta}{2 + \cos\theta}\).

\(a = 2\), \(b = 1\): \(\dfrac{2\pi}{\sqrt{4 - 1}} = \dfrac{2\pi}{\sqrt 3}\).

By residues: the pole inside is \(z = -2 + \sqrt 3\), with the same result.

Q5Evaluate \(\displaystyle\int_{-\infty}^{\infty}\frac{dx}{(x^2 + 4)^2}\).

\(\dfrac{\pi}{2a^3}\) with \(a = 2\): \(\dfrac{\pi}{16}\).

Q6Evaluate \(\displaystyle\int_{-\infty}^{\infty}\frac{x^2\,dx}{(x^2 + 1)(x^2 + 4)}\).

Residue at \(i\): \(\dfrac{i^2}{2i\cdot 3} = -\dfrac{1}{6i}\). At \(2i\): \(\dfrac{-4}{(-3)(4i)} = \dfrac{1}{3i}\).

Sum \(= \dfrac{1}{6i}\), so the integral is \(\dfrac{\pi}{3}\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

07

Frequently asked questions

What is a residue in complex analysis?

The coefficient \(b_1\) of \(\dfrac{1}{z - a}\) in the Laurent series of \(f\) about an isolated singularity \(a\). It equals \(\dfrac{1}{2\pi i}\) times the integral of \(f\) round a small circle about \(a\).

How do you find the residue at a pole of order m?

Use \(\dfrac{1}{(m - 1)!}\displaystyle\lim_{z \to a}\frac{d^{m-1}}{dz^{m-1}}\big[(z - a)^m f(z)\big]\). For a simple pole this reduces to \(\displaystyle\lim_{z \to a}(z - a)f(z)\).

What does the residue theorem say?

The integral of \(f\) round a closed curve equals \(2\pi i\) times the sum of the residues of \(f\) at the singular points inside the curve.

Why only the upper half-plane for integrals from minus infinity to infinity?

The real line is closed with a large semicircle in the upper half-plane, whose contribution tends to 0. Only poles inside that semicircle are enclosed. Closing in the lower half-plane also works, but then the path runs clockwise and you must use \(-2\pi i\).

Related lessons

← All 12 Complex Variables & Transforms topics
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Complex Variables and Transforms

Get Complex Variables & Transforms right, with Vipul Sir beside you.

Concept-first classes in small batches in Goregaon and Vile Parle, or online. Your first class is free.

WhatsApp↗