Residue Theorem Explained with Worked Examples

For a function analytic inside and on a simple closed curve except for isolated poles inside, .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Residue theorem means

Take . The residues are at and at . On both poles are inside: (size 6.2832). On only is inside: (size 12.566). Each residue is computed as in residue at a simple pole.

For on , the poles have residues and , which add to , so the integral is (size 5.2871) (complex sine and cosine). The theorem generalises Cauchy's integral formula (Cauchy's integral formula), which is the single simple pole case, and Cauchy's theorem (Cauchy's integral theorem), the case of no poles.

Residues at higher-order poles use derivatives (residue at a pole of order m) or the Laurent series (Laurent series). The theorem evaluates real integrals (real integrals by residues, trigonometric integrals) and counts zeros (the argument principle).

What is it used for?

The residue theorem turns a contour integral into a sum over the poles inside the contour.

How to use residue theorem

  1. Find the poles of and decide which lie inside .
  2. Compute the residue at each pole inside.
  3. Add the residues.
  4. Multiply by .

Graph

Contours |z| = 1.5 and |z| = 3 around the poles z = 1 and z = 2pole 1: residue −2pole 2: residue 3-3-2-10123-3-2-10123Contours |z| = 1.5 and |z| = 3 around the poles z = 1 and z = 2Re zIm zGraph with x from -3.5 to 3.5 and y from -3.5 to 3.5. Shows |z| = 1.5 (73); |z| = 3 (73); point pole 1: residue −2 at (1, 0); point pole 2: residue 3 at (2, 0).

The small contour encloses only the first pole; the large one encloses both.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: both poles inside

Find .

Worked example
Answer
6.28326.2832
  1. Residues
  2. Value

Example 2: one pole inside

Find .

Worked example
Answer
12.56612.566
  1. Residue at 1
  2. Value

Example 3: e^z/(z²+1)

Find .

Worked example
Answer
5.28715.2871
  1. Sum of residues
  2. Value

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

f = 1/z, |z| = 1

Res = 1

|∮| = 2π.

f = 1/(z² + 1) around i

Res = 1/(2i)

|∮| = π.

f = 1/(z(z − 1)), |z| = 2

residues −1 and 1

Sum 0.

Both ±i inside

Res = 1/(2i) + (−1/(2i))

Total 0.

Word problems

∮_C f dz = 2πi Σ Res(f, aₖ) over the poles inside C.

Simple pole

f = 1/z. Find |∮| on |z| = 1.

  1. 2π × 1
  2. Check: ✓6.2832

Pole at i

f = 1/(z² + 1), contour around i only: |Res| = 1/2. Find |∮|.

  1. 2π × ½
  2. Check: ✓3.1416

Two poles Higher

f = 1/(z(z − 1)) on |z| = 2. Add the residues −1 and 1.

  1. −1 + 1
  2. Check: ✓0

Both ±i Higher

Add residues 1/(2i) and −1/(2i) in magnitude terms 0.5 − 0.5.

  1. 0
  2. Check: ✓0

Common mistakes

Counting poles outside

all poles ✗

inside only ✓

Contour dependence.

Missing 2πi

sum of residues ✗

2πi × sum ✓

Factor.

Wrong residue

value of f ✗

limit of (z − a)f ✓

Definition.

Orientation

clockwise positive ✗

anticlockwise positive ✓

Reverse sign if clockwise.

Exam tips

  1. 2πi × Σ residues.
  2. Inside only.
  3. Anticlockwise.
  4. Find poles first.
  5. Add residues.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. |∮ 1/z|, |z| = 2 Foundation

6.2832

2. |∮ 3/z|, |z| = 1 Foundation

18.8496

3. |∮ 1/(z − 1)|, |z| = 2 Foundation

6.2832

4. |∮ 1/(z(z − 3))| on |z| = 1 (Res at 0 = −1/3) Higher

2.0944

5. Sum of residues −1 + 1 + 2 Higher

2

6. |∮ 1/(z² − 1)| on |z| = 2 (Res ½ and −½) Higher

0

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Residue theorem
∮f = 2πi ΣRes.
Residue
Coefficient of 1/(z − a).
Pole
Singularity of 1/(z − a) type.
Contour
Closed path.
Orientation
Anticlockwise.
Winding number
Turns around a pole.

Frequently asked questions

What is the residue theorem?

∮f dz = 2πi times the sum of residues inside.

What is a residue?

The coefficient of 1/(z − a) in the Laurent series.

Which poles count?

Those inside the contour.

What orientation?

Anticlockwise.

Which page covers simple-pole residues?

residue at a simple pole.

Which page covers Cauchy’s theorem?

Cauchy’s integral theorem.

More in Analysis, algebra and topology and the formula sheets.