Worked examples — Cauchy's integral theorem and formula
Two tools are the whole toolbox. Let be a closed loop, a function, a point.
The reader who forgets what "holomorphic" or "" mean should reread §1 of the parent first.
The scenario matrix
Every contour integral you meet falls into exactly one of these cells. Each row is one thing that can go wrong or be special. The examples below are labelled by cell.
| Cell | Description | Which weapon | Example |
|---|---|---|---|
| A | No pole inside | Theorem | Ex 1 |
| B | One simple pole inside () | Formula, | Ex 2 |
| C | Higher-order pole () | Formula, | Ex 3 |
| D | Pole outside (degenerate: nothing enclosed) | Theorem | Ex 4 |
| E | Two poles inside → split by partial fractions | Formula twice | Ex 5 |
| F | Pole on the contour (illegal input) | Neither — principal value | Ex 6 |
| G | Limiting case: radius swallowing/excluding the pole | Boundary of A vs B | Ex 7 |
| H | Real-world word problem (physics/AC circuit flavour) | Formula in disguise | Ex 8 |
| I | Exam twist: same integral, two contours, different answers | A vs B side by side | Ex 9 |
| J | Contour reversed (clockwise) | Sign flip | Ex 10 |
| K | Non-pole singularities: branch points and essential singularities | Beyond these two weapons | Ex 11 |
Let me set one convention used everywhere: means the circle of radius centred at the origin, traversed counter-clockwise (the positive direction). Look at the figure — counter-clockwise is the arrow direction that keeps the enclosed disk on your left.

Example 1 — Cell A: nothing inside, so zero
Steps.
- Identify singularities of . Why this step? The theorem only fires if is holomorphic on the entire enclosed disk. A polynomial is differentiable at every point of — no denominators, no roots to divide by — so there are no singularities anywhere.
- All of them (there are none) lie... nowhere, hence none inside . Cell A confirmed. Why this step? We must be certain the "no holes" condition holds; here it holds trivially.
- Apply the Theorem:
Example 2 — Cell B: one simple pole, use
Steps.
- Match the shape : here and (so ). Why this step? The formula needs the denominator written exactly as so we can read off .
- Is inside ? Yes, since . And is holomorphic everywhere. Cell B confirmed. Why this step? If were outside we'd be in Cell D and the answer would be instead.
- Apply
Example 3 — Cell C: a higher-order pole needs a derivative
Steps.
- Write . So , with and . Why this step? The generalized formula reads the order of the pole off the exponent; matching to the power tells us how many derivatives to take.
- Confirm is inside (yes) and is holomorphic (yes). Cell C confirmed.
- Compute . Each derivative of multiplies by : , , . So . Why this step? The formula needs , nothing else.
- Apply
Example 4 — Cell D: pole outside → the theorem still rules, answer is zero
Steps.
- Singularity of the integrand: denominator zero at . Why this step? We must locate the pole before deciding which weapon fires.
- Is inside ? No — . So inside the loop, the whole integrand is holomorphic (nowhere does the denominator vanish there). Cell D confirmed. Why this step? This is the crucial contrast with Ex 2: same shape of integrand, but the pole is excluded, so it is invisible to the loop.
- Apply the Theorem (not the formula):
Example 5 — Cell E: two poles inside → split them apart
Steps.
- Factor and split: Why this step? The formula handles one enclosed pole at a time. Partial fractions turn a two-pole integrand into two Cell-B integrals we already know how to do. To be sure the split is correct, put the two pieces over a common denominator: , which is exactly what we started with — so the split is valid.
- Both and lie inside . Cell E confirmed. Why this step? Only enclosed poles contribute; we verify both are grabbed by this large circle before summing them.
- Integrate each piece with constant , : Why this step? Each is exactly Cauchy's formula with evaluated at the pole.
- Combine with the minus sign from the split: Why this step? The contour integral is linear: the integral of a sum (or difference) of pieces equals the sum (or difference) of their integrals, . So the algebraic minus sign between the two partial fractions carries straight through to a minus sign between the two contour integrals. We are not re-deriving anything — just using that integration distributes over and .
Example 6 — Cell F: a pole sitting ON the contour (degenerate/illegal)
Before we start, one honest warning. When the trouble-spot sits on the path, the integral does not have a single value; different sensible ways of handling it give different answers. The standard repair is the principal value: cut a tiny symmetric arc of angular half-width out of the contour, centred exactly on the pole, integrate over what remains, then let . "Symmetric" means you remove equal angle on each side of the pole, so the blow-ups on the two sides are given a fair chance to cancel. Keep that picture in mind for step 3.
Steps.
- Locate the pole: . Is it inside, outside, or on ? Exactly on it, since . Why this step? The formula's hypothesis " inside " is now violated, and the theorem's hypothesis " holomorphic on the contour" is also violated.
- Neither weapon legally applies. As written, the integrand is unbounded on the path and the integral does not converge as an ordinary contour integral. Why this step? We must not blindly plug into either formula — that would give a fake number.
- The symmetric detour: replace the removed arc by a tiny semicircle of radius that bulges around the pole. A full small circle around a simple pole contributes (that is Ex 2 in miniature); a half circle — exactly radians of arc — therefore contributes half of that, . Because the principal-value cut is symmetric, the detour is exactly this half-circle, so the principal value is . If instead you push the semicircle so the pole ends up strictly outside, you keep none of the residue and get ; push it so the pole ends up strictly inside, you keep all of it and get . Why this step? This makes the mechanism explicit: the answer is literally the fraction of the little circle you swing around the pole, and out of radians is exactly one half — that is where comes from.
Example 7 — Cell G: the limiting knife-edge (radius crossing the pole)
Steps.
- Pole at . Compare with radius . Why this step? Whether the pole is enclosed is the only thing that changes as varies.
- Case (pole outside): Cell D → Theorem → Why? Integrand holomorphic on the whole disk of radius .
- Case (pole inside): Cell B with , → Why? Now the pole is enclosed and the formula fires.
- Case : Cell F — the pole lies on the contour, integral undefined (see Ex 6).

Example 8 — Cell H: word problem (an AC-circuit / averaging flavour)
Steps.
- Recognise the mean-value property. Start from Cauchy's formula on with : Why this step? The word "average around the ring" is Cauchy's formula in disguise; we convert the given angular average into a contour integral.
- Parametrise , , so : Why this step? This shows the designer's is exactly — the mean-value property for holomorphic functions.
- Evaluate the centre: Why this step? The whole ring average collapses to a single number, at the centre.
- So
Example 9 — Cell I: exam twist, one integrand, two contours
Steps.
- Factor the denominator: ; poles at and . Why this step? Knowing pole locations is the whole game once the contours differ; each circle will enclose a different subset of these two points.
- Contour (a) — the circle of radius centred at . Distance from centre to the pole is , so is inside; distance to is , so is outside. This is Cell B: exactly one enclosed simple pole. Why this step? We must confirm which single pole is grabbed before applying the one-pole formula; the other pole must be safely outside or the method changes.
- Fold the far factor into . Write the integrand as with , so . Why this step? Cauchy's formula needs the enclosed pole isolated as a bare ; the factor from the outside pole never vanishes inside , so it is holomorphic there and legally becomes part of .
- Apply the formula: Why this step? With holomorphic on and inside and one simple pole at , the formula gives the value directly.
- Contour (b) — radius- circle about the origin. Distance to each pole is , so neither pole is enclosed. This is Cell A. Why this step? If no singularity is enclosed, the integrand is holomorphic on the whole disk and the theorem — not the formula — applies.
- Apply the theorem: Why this step? No enclosed pole ⇒ loop integral of a holomorphic function ⇒ zero, no matter how complicated the integrand looks.
Example 10 — Cell J: the same loop walked backwards (orientation)
Steps.
- Name the clockwise loop , where is the usual counter-clockwise unit circle. Why this step? We only know how to evaluate counter-clockwise loops; we must express the clockwise one in terms of a counter-clockwise one.
- Apply the reversal rule . Why this step? Reversing direction negates every step, hence negates the whole sum — this is the sign law stated in the orientation definition, no new machinery needed.
- Substitute the known value:
Example 11 — Cell K: when the singularity is NOT a pole
Our two weapons assume the only bad points are poles — spots where blows up like for some finite whole number . Two other creatures live in contour calculus, and it is vital to recognise that they are outside the reach of Cauchy's formula as stated.
Steps.
- (a) Branch point. has a branch point at : going once around the origin sends , so it is not a single-valued holomorphic function on the punctured disk. Cauchy's formula requires a single-valued holomorphic ; that hypothesis fails. Why this step? The formula's very first word is "holomorphic" — and holomorphic includes single-valued. A multivalued expression must first be tamed with a branch cut (a curve you forbid the contour to cross), which changes the problem entirely. So we do not get to write "" here.
- (b) Essential singularity — use the Laurent series. Expand . Why this step? The loop integral of over is for every integer and equals for (that is the fact). So the only term that survives is the coefficient of .
- Read off the coefficient of (the term): it is . Why this step? This coefficient is called the residue; the whole integral is times it.
- Therefore
Master checklist (run this on any contour integral)
Recall Quick self-test
::: , , , so . ::: pole at is outside; theorem ⇒ . ::: pole at now inside; . walked clockwise ::: (reverse orientation flips the sign).
Related deeper tools: enclosing many poles at once is the Residue theorem; the mean-value idea in Ex 8 leads to the Maximum modulus principle and Liouville's theorem; expanding an integrand near a pole or essential singularity uses a Laurent series; the derivation itself rests on the Cauchy-Riemann equations and Green's theorem.