4.10.2 · D3Advanced Topics (Elite Level)

Worked examples — Complex integration — contour integrals

3,943 words18 min readBack to topic

Before anything: three facts, one convention, and one piece of notation we will lean on constantly. So you never have to chase the parent note, here they are, restated in full.

Recall The three parent facts, restated here (so you never leave this page)

Parent fact 1 — the power lemma. On the unit circle , every integer power obeys Why: substituting turns the integral into ; that exponential completes whole loops and cancels to unless , where it is the constant , giving . Only the term survives a loop — this is the seed of everything.

Parent fact 2 — Cauchy's theorem. If is analytic on and inside a closed loop , then . Why: writing and applying Green's theorem turns the loop integral into area integrals whose integrands are exactly the Cauchy–Riemann equations — both vanish.

Parent fact 3 — the deform-to-a-tiny-circle argument (the "inside" test). If is analytic in the ring between a big loop and a small circle around a pole , the two loop integrals are equal (the ring encloses no singularity, so by fact 2 the difference is ). Shrinking the small circle gives . Consequence: a pole outside your loop can be pushed off to nothing and contributes ; a pole inside always contributes times its residue.


The scenario matrix

Every contour problem lives in one of these cells. The examples below are labelled by cell.

Cell What makes it distinct Which tool wins
A — non-analytic integrand like ; Cauchy fails brute parametrise
B — analytic, no pole inside smooth everywhere in the loop Cauchy's theorem
C — one simple pole inside one spike
D — several poles, some in some out selection by "is it inside?" sum only the enclosed residues
E — higher-order (repeated) pole spike counted twice derivative residue formula
F — pole exactly ON the contour degenerate/limiting undefined (or principal value)
G — real integral close with a big arc arc , then residues
H — real word/exam twist phrased in disguise translate, then use C–G
I — essential singularity -type, infinitely sharp read off the Laurent series
J — branch point / branch cut keyhole contour, cannot encircle freely

We now cover cells A → J. Watch the sign, the "inside?" test, and the degenerate cases.


Cell A — Non-analytic: brute force is the only way


Cell B — Analytic, no pole: the answer is


Cell C — One simple pole inside


Cell D — Several poles: only the enclosed ones count

Figure — Complex integration — contour integrals

Figure s01 — the inside/outside test. The lavender loop is the counterclockwise unit circle . A coral star at sits inside the loop (its residue counts); a grey star at sits outside (its residue is ignored — parent fact 3 pushes it off to nothing). The small lavender arrow on the circle reminds you the walk is counterclockwise. The whole trick of Cell D is reading this picture: circle, then sum only the stars inside it.


Cell E — Higher-order (repeated) pole


Cell F — Pole exactly ON the contour (the degenerate case)


Cell G — A real integral, closed with a big arc

Figure — Complex integration — contour integrals

Figure s02 — the semicircular (Jordan) contour. The mint segment along the real axis is the integral we actually want, ; the lavender arc of radius closes the loop through the upper half-plane. Coral stars mark the poles the loop encloses (upper half); grey stars mark the ones it leaves out (lower half). The two arrows show the walk: rightward along the real axis, then counterclockwise back along the arc. As the arc's contribution shrinks to , so the real integral equals times the coral residues only.


Cell H — Real-world / exam twist (translate first)


Cell I — Essential singularity (no finite pole order)


Cell J — Branch point / branch cut (you cannot encircle freely)

Figure — Complex integration — contour integrals

Figure s03 — the keyhole contour. Functions like or are multivalued: walk once around and the value changes (e.g. flips sign). A branch point at forces a branch cut (the coral ray along the positive real axis) that the contour is forbidden to cross. The lavender keyhole hugs the cut: a big circle out, back just above the cut, a tiny circle around , and back just below. The gap between "above" and "below" the cut is exactly what makes the method work. This is why you cannot naively drop a residue at a branch point — there is no single-valued to read.


Sign & orientation sweep — the full clockwise case


Recall checkpoints

Recall Which cell, and what's the first move?

::: Cell A (non-analytic) — brute parametrise, cannot use residues. ::: Cell B (analytic, no pole) — equals by Cauchy's theorem. ::: Cell E (order-3 pole) — need two derivatives; answer . A pole sits at on ::: Cell F — integral undefined; needs principal value / indentation. ::: Cell I (essential singularity) — read off the series; answer . ::: Cell J (branch point) — keyhole contour, not a plain loop. Reverse a loop to clockwise ::: Multiply the whole integral by .


Connections

  • Analytic functions — Cell A vs B: analyticity decides whether paths matter.
  • Cauchy–Riemann equations — the test behind "is it analytic inside?"
  • Laurent series — reading residues off (Cells E, I, and the origin of it all).
  • Green's theorem — the engine that makes Cell B's answer .
  • Residue theorem applications — Cells G, H, J and the principal-value repair of Cell F.

Concept Map

yes no pole

has poles

Contour integral

Is f analytic inside?

Cauchy theorem gives zero

Test each pole inside or outside

Simple pole use p over q prime

Order m pole use derivative rule

Essential or branch use series or keyhole

Pole on contour is degenerate

Multiply by two pi i times sum of residues