Final synthesis workshop

Every exam question on complex variables is secretly the same question in disguise: given a contour integral ∮Cf(z) dz\oint_C f(z)\,dz, which of the unit's big theorems actually applies? This closing workshop of Unit 5 does not introduce new material — it wires together everything you already proved, from the Cauchy-Riemann equations through Cauchy's Integral Theorem and Formula, Taylor/Laurent series, and singularity classification, into one decision chain that ends at the Residue Theorem. You will practice reading a problem, checking analyticity, counting and classifying the singularities a specific contour encloses, and picking the fastest correct tool — the exact judgment call examiners reward and half-prepared students skip.

The core insight

Analyticity forces ∮Cf dz=0\oint_C f\,dz=0 (Cauchy's Theorem), a single well-placed singularity collapses that integral to a derivative value (Cauchy's Formula), and any finite set of isolated singularities reduces to ∮Cf dz=2πi∑Res⁡\oint_C f\,dz = 2\pi i\sum\operatorname{Res} (the Residue Theorem) — the whole unit is one chain, and exam skill is choosing the right link.

The core idea

The unit's logical chain runs in a single direction, and each arrow is a genuine dependency:

analyticity (C-R eqns)  ⇒  ∮Cf dz=0  ⇒  f(a)=12πi∮Cf(z)z−adz  ⇒  f(z)=∑cn(z−a)n  ⇒  Res⁡=c−1  ⇒  ∮Cf dz=2πi∑Res⁡.\text{analyticity (C-R eqns)} \;\Rightarrow\; \oint_C f\,dz = 0 \;\Rightarrow\; f(a) = \frac{1}{2\pi i}\oint_C \frac{f(z)}{z-a}dz \;\Rightarrow\; f(z) = \sum c_n(z-a)^n \;\Rightarrow\; \operatorname{Res} = c_{-1} \;\Rightarrow\; \oint_C f\,dz = 2\pi i\sum \operatorname{Res}.

where: CC is a simple closed contour traversed counter-clockwise, aa is a point inside CC, cnc_n are the Taylor or Laurent coefficients of ff about aa, and Res⁡\operatorname{Res} (the residue) is the coefficient c−1c_{-1} of the (z−a)−1(z-a)^{-1} term in the Laurent expansion about each singularity enclosed by CC. The single most exam-relevant habit is running this decision tree before touching any formula. First ask whether ff is analytic everywhere inside and on CC — if so, Cauchy's Integral Theorem alone gives 00 and you stop. If not, ask whether ff has exactly one singularity inside CC of the clean form g(z)/(z−a)n+1g(z)/(z-a)^{n+1} with gg analytic inside CC — Cauchy's Integral Formula then hands you ∮Cf dz=2πin!g(n)(a)\oint_C f\,dz = \frac{2\pi i}{n!}g^{(n)}(a) directly, no series work needed. Only when the singularities are more general do you fall back to the full machinery: classify each isolated singularity (removable, pole of order mm, or essential) from its Laurent series, compute each residue, and sum via the Residue Theorem. A real-integral target is folded in by converting to a contour integral first (unit-circle substitution or a semicircular arc) and then applying the same three-way check. Two connections tie this back to earlier units. The Cauchy-Riemann equations force uu and vv to be harmonic conjugates, so Unit 2's Laplace equation fxx+fyy=0f_{xx}+f_{yy}=0 resurfaces here as a consequence of analyticity; and the radius-of-convergence tests for Taylor and Laurent series are the same ratio/root tests from Unit 4, now applied with ∣z−a∣|z-a| in place of ∣x−c∣|x-c|.

Figure
A flowchart showing the decision tree for evaluating a contour integral, starting from is f analytic inside C, branching to Cauchys theorem giving zero, or to one clean singularity giving Cauchys formula, or to several isolated singularities giving the residue theorem
Which theorem evaluates the oint of f dz? f analytic inside and on C? yes no Cauchy's Integral Theorem integral equals zero one singularity of form g(z)/(z-a)^(n+1)? yes no Cauchy's Integral Formula 2 pi i g^(n)(a) / n! Residue Theorem classify each, sum residues, 2 pi i times the sum Check analyticity first — it is often the fastest correct route on a timed exam.
Derivation AWhy the residue at a pole of order m has that formula

The goal — proving that the residue of ff at an isolated pole of order mm equals Res⁡z=af(z)=1(m−1)!lim⁡z→adm−1dzm−1[(z−a)mf(z)]\operatorname{Res}_{z=a}f(z) = \frac{1}{(m-1)!}\lim_{z\to a}\frac{d^{m-1}}{dz^{m-1}}\left[(z-a)^m f(z)\right] — matters because it converts the abstract statement "residue equals c−1c_{-1}" into a concrete recipe you can execute on any pole without writing out a full Laurent series each time. Since a pole of order mm means ff has finitely many negative-power terms, we can isolate the coefficient we need with ordinary differentiation.

Step 1. Write the Laurent expansion of ff about the pole z=az=a, valid on a punctured disc: f(z)=c−m(z−a)m+⋯+c−1z−a+c0+c1(z−a)+⋯f(z) = \dfrac{c_{-m}}{(z-a)^m} + \cdots + \dfrac{c_{-1}}{z-a} + c_0 + c_1(z-a) + \cdots. Because the pole has order exactly mm, the most negative power present is (z−a)−m(z-a)^{-m}, so there are only finitely many singular terms.

Step 2. Multiply through by (z−a)m(z-a)^m to clear every negative power at once: (z−a)mf(z)=c−m+c−m+1(z−a)+⋯+c−1(z−a)m−1+c0(z−a)m+⋯(z-a)^m f(z) = c_{-m} + c_{-m+1}(z-a) + \cdots + c_{-1}(z-a)^{m-1} + c_0(z-a)^m + \cdots. This new function is analytic at z=az=a (all powers are now non-negative), so it is a legitimate Taylor series and we may differentiate it term by term.

Step 3. The coefficient we want, c−1c_{-1}, now sits on the (z−a)m−1(z-a)^{m-1} term of this Taylor series. Standard Taylor-coefficient extraction says the coefficient of (z−a)m−1(z-a)^{m-1} in a Taylor series equals 1(m−1)!\frac{1}{(m-1)!} times the (m−1)(m-1)-th derivative evaluated at aa. Differentiating (z−a)mf(z)(z-a)^m f(z) exactly m−1m-1 times and evaluating the limit as z→az\to a isolates precisely that coefficient, since every term of lower or higher degree either vanishes or drops out under differentiation and the limit.

Step 4. Collecting the result: Res⁡z=af(z)=c−1=1(m−1)!lim⁡z→adm−1dzm−1[(z−a)mf(z)]\operatorname{Res}_{z=a}f(z) = c_{-1} = \dfrac{1}{(m-1)!}\lim_{z\to a}\dfrac{d^{m-1}}{dz^{m-1}}\left[(z-a)^m f(z)\right]. For a simple pole (m=1m=1) the derivative disappears and this collapses to the familiar shortcut Res⁡z=af(z)=lim⁡z→a(z−a)f(z)\operatorname{Res}_{z=a}f(z) = \lim_{z\to a}(z-a)f(z).

Worked example

Problem. Evaluate ∮Cz(z−1)(z+3)2 dz\displaystyle\oint_C \frac{z}{(z-1)(z+3)^2}\,dz for the contour C:∣z∣=5C: |z|=5, traversed counter-clockwise.

Step 1. Locate and classify the singularities. The integrand has a simple pole at z=1z=1 (since z−1z-1 appears to the first power) and a pole of order m=2m=2 at z=−3z=-3 (since z+3z+3 appears squared). Both lie inside ∣z∣=5|z|=5, because ∣1∣=1<5|1|=1<5 and ∣−3∣=3<5|-3|=3<5 — this rules out Cauchy's Theorem (not analytic inside CC) and rules out the direct Integral Formula (more than one singularity enclosed), so the Residue Theorem is the correct tool.

Step 2. Residue at the simple pole z=1z=1, using the m=1m=1 shortcut from the derivation above: Res⁡z=1z(z−1)(z+3)2=lim⁡z→1(z−1)⋅z(z−1)(z+3)2=1(1+3)2=116\operatorname{Res}_{z=1}\dfrac{z}{(z-1)(z+3)^2} = \lim_{z\to1}(z-1)\cdot\dfrac{z}{(z-1)(z+3)^2} = \dfrac{1}{(1+3)^2} = \dfrac{1}{16}.

Step 3. Residue at the order-2 pole z=−3z=-3, using the m=2m=2 formula (one derivative, then the limit): Res⁡z=−3f(z)=lim⁡z→−3ddz[zz−1]=lim⁡z→−3(z−1)−z(z−1)2=−1(−3−1)2=−116\operatorname{Res}_{z=-3}f(z) = \lim_{z\to-3}\dfrac{d}{dz}\left[\dfrac{z}{z-1}\right] = \lim_{z\to-3}\dfrac{(z-1)-z}{(z-1)^2} = \dfrac{-1}{(-3-1)^2} = -\dfrac{1}{16}.

Step 4. Sum the residues and apply the Residue Theorem: 116+(−116)=0\tfrac{1}{16} + \left(-\tfrac{1}{16}\right) = 0, so ∮Cf dz=2πi⋅0=0\oint_C f\,dz = 2\pi i \cdot 0 = \mathbf{0}.

Competitive stretch

Shrink the contour to C:∣z∣=2C:|z|=2 instead. Now only z=1z=1 is enclosed (∣−3∣=3>2|-3|=3>2 lies outside), so the sum has a single term: ∮Cf dz=2πi⋅116=πi8\oint_C f\,dz = 2\pi i \cdot \tfrac{1}{16} = \dfrac{\pi i}{8}. The pole locations never moved — only which ones a smaller contour happens to enclose changed, and that alone flipped the answer from πi8\frac{\pi i}{8} to 00.

Common traps

  • Reaching for the Residue Theorem on every problem. It always works, but recognizing that ff is analytic (answer 00) or that only one clean singularity is enclosed (direct Integral Formula) is often faster and less error-prone on a timed exam.
  • Mixing up which theorem needs which hypothesis. Cauchy's Theorem requires analyticity inside and on CC; the Integral Formula requires exactly one singularity of the specific g(z)/(z−a)n+1g(z)/(z-a)^{n+1} form; the Residue Theorem is the general fallback for any finite set of isolated singularities.
  • Forgetting an unresolved constant. Harmonic-conjugate problems end in an unknown additive constant that a boundary condition like v(0,0)=0v(0,0)=0 must pin down; skipping that step leaves the answer incomplete.
  • Not rechecking which singularities the current contour encloses. As the worked example shows, the same integrand on ∣z∣=2|z|=2 versus ∣z∣=5|z|=5 gives different answers because a different subset of poles counts.

Ask the tutor: For a mixed review session that jumps between C-R verification, contour-integral decision-making, and residue computation — mimicking exam conditions — ask the AI tutor to build you a combined practice set covering the whole Complex Variables unit.

How do I decide fast, under exam pressure, which theorem to use?

Run the three checks in order and stop at the first yes. Is ff analytic everywhere inside and on CC? Then the answer is 00 by Cauchy's Theorem — done. If not, is there exactly one singularity inside CC and does the integrand have the clean form g(z)/(z−a)n+1g(z)/(z-a)^{n+1} with gg analytic? Then use the Integral Formula directly. Only if neither shortcut applies do you classify every enclosed singularity and sum residues. Most exam problems are built to reward whichever of the first two checks you spot quickest.

Why did shrinking the contour from radius 5 to radius 2 change the answer?

The poles of z(z−1)(z+3)2\dfrac{z}{(z-1)(z+3)^2} sit at fixed locations, z=1z=1 and z=−3z=-3, and never move — but the Residue Theorem only sums residues of singularities the contour actually encloses. At ∣z∣=5|z|=5 both poles are inside, and their residues happen to cancel to 00. At ∣z∣=2|z|=2 only z=1z=1 is inside, so only its residue counts, giving πi/8\pi i/8. Always redraw or re-check which poles satisfy ∣a∣<|a| < contour radius before summing.

What is the practical link between harmonic conjugates and this unit's contour-integral work?

The Cauchy-Riemann equations are the bridge: if uu and vv satisfy them, f=u+ivf=u+iv is analytic, and analyticity is exactly the hypothesis every downstream theorem in this chain — Cauchy's Theorem, Cauchy's Formula, Taylor/Laurent expansion, residues — depends on. Finding a harmonic conjugate is really just verifying, from the real and imaginary parts, that an analytic f(z)f(z) exists at all before you attempt to integrate or expand it.

Before this