Complex Variables — Analytic Functions, Cauchy’s Theorems and Residues
Contour Integrals — Only What Is Inside Matters
- Cauchy’s integral theorem. If f is analytic everywhere on and inside a closed contour, ∮f dz = 0. So the first question about any contour integral is where the singularities are: ∮dz/(z − 1) over the circle |z| = 1/2 is zero, because the only pole sits at z = 1, outside.
- Cauchy’s integral formula. For f analytic inside a contour enclosing a, ∮ f(z)/(z − a) dz = 2πi·f(a). So ∮ ez/z dz over |z| = 1 is 2πi·e⁰ = 2πi, without expanding anything. The generalised form ∮ f(z)/(z − a)n+1 dz = 2πi·f(n)(a)/n! handles a higher-order pole the same way.
- The basic case to memorise. ∮dz/z = 2πi around any contour enclosing the origin — not 0, and not 2π. Every other contour integral in the topic is this one dressed up.
Poles, Laurent Series and the Residue Theorem
A Taylor series expands an analytic function in powers of (z − a) with no negative powers. A Laurent series is the same idea around a singularity and admits negative powers, and the coefficient of the (z − a)⁻¹ term is the residue at a. The order of the pole is the highest negative power that appears: f(z) = (z + 1)/[z²(z − 3)] has a pole of order 2 at z = 0 and a simple pole at z = 3, which you can read from the denominator without expanding.
| Pole | Residue | Worked |
|---|---|---|
| Simple, at z = a | lim(z→a) (z − a)·f(z) | For 1/(z² + 1) at z = i: 1/(z + i) at z = i is 1/(2i) = −i/2. |
| Order 2, at z = a | lim(z→a) d/dz [(z − a)²·f(z)] | One derivative before the limit. Forgetting it is the standard error at a double pole. |
| A quotient with a simple zero below | p(a)/q′(a) | Fastest route when q factorises badly. For z/[(z − 1)(z − 2)] the residues are −1 at z = 1 and 2 at z = 2. |
The residue theorem then finishes the job: ∮f dz = 2πi × (sum of residues inside). For 1/(z² + 1) around |z − i| = 1, only z = i is enclosed, so the integral is 2πi·(−i/2) = π — a real answer from a complex integral, which is exactly how this machinery is used to evaluate real integrals. For z/[(z − 1)(z − 2)] around |z| = 3 both poles are inside, the residues sum to −1 + 2 = 1, and the integral is 2πi.
Key takeaways
- Check whether your paper lists complex variables at all — several do not, Civil Engineering among them. A topic you do not need is the most expensive thing you can study.
- Analyticity needs both Cauchy–Riemann equations: uₓ = v_y and u_y = −vₓ. z̄ fails the first everywhere, so it is nowhere analytic however smooth it looks.
- The real and imaginary parts of an analytic function are harmonic. Given one, the other is recovered by integrating the Cauchy–Riemann equations.
- A pole outside the contour contributes nothing. The same integrand gives 2πi over one circle and 0 over another, so read the contour before the integrand.
- Memorise ∮dz/z = 2πi and Cauchy’s formula ∮f(z)/(z − a) dz = 2πi·f(a). Together they answer most one-mark questions in the topic outright.
- The residue at a simple pole is lim (z − a)f(z); at a double pole take one derivative first. The order is read off the denominator, not from an expansion.
- ∮f dz = 2πi × (sum of enclosed residues). For 1/(z² + 1) around z = i that is 2πi·(−i/2) = π — a real number out of a complex integral.
Practice questions (9)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
The function f(z) = z̄ (the complex conjugate of z) is:
Show answer
Answer: C — Nowhere analytic
Write z̄ = x − iy, so u = x and v = −y. Then uₓ = 1 while v_y = −1, and the first Cauchy–Riemann equation uₓ = v_y fails at every point — there is no point at which 1 = −1. So the function is nowhere analytic. Note how counter-intuitive this is and why it is set so often: u and v are as smooth as functions of two real variables can be, infinitely differentiable, and none of that helps. Analyticity is a condition on how the real and imaginary parts are coupled, not on how smooth each one is separately.The value of ∮ dz/z taken counter-clockwise around the circle |z| = 1 is:
Show answer
Answer: B — 2πi
The integrand has a simple pole at z = 0, which the contour encloses, so Cauchy’s integral theorem does not apply and the answer is not zero. Either use the integral formula with f(z) = 1, giving 2πi·f(0) = 2πi, or substitute z = eiθ: dz = ieiθdθ and the integral becomes ∫₀2π i dθ = 2πi. Option A is the answer when the pole lies outside the contour, and option C drops the i — this is the single most-used result in the topic, so it is worth being certain that the answer is imaginary.The value of ∮ dz/(z − 1) around the circle |z| = 1/2 is:
Show answer
Answer: B — 0
The only singularity is at z = 1, and the contour is the circle of radius 1/2 about the origin, which reaches only to |z| = 0.5. The pole is outside, so the integrand is analytic on and inside the contour and Cauchy’s integral theorem gives 0. Option A is the answer for the same integrand over |z| = 2, where the pole is enclosed — the integrand is identical in both questions and the answers differ entirely, which is precisely the point examiners are making. Always locate the poles relative to the contour before reaching for a formula.The residue of f(z) = 1/(z² + 1) at z = i is:
Show answer
Answer: A — −i/2
Factorise the denominator as (z − i)(z + i), so z = i is a simple pole. The residue is lim(z→i) (z − i)·f(z) = 1/(z + i) evaluated at z = i, which is 1/(2i). Rationalise by multiplying above and below by i: i/(2i²) = i/(−2) = −i/2. Option B is the answer without that final sign step, and it is where nearly every mistake in this question happens — 1/i is −i, not i. As a check, the residue theorem then gives ∮f dz = 2πi·(−i/2) = π around a contour enclosing only z = i, a positive real number, which is what a correctly signed residue must produce here.The value of ∮ ez/z dz around the circle |z| = 1 is:
Show answer
Answer: B — 2πi
Cauchy’s integral formula reads ∮ f(z)/(z − a) dz = 2πi·f(a). Here f(z) = ez, which is entire, and a = 0, so the integral is 2πi·e⁰ = 2πi·1 = 2πi. Option A evaluates f at z = 1 instead of at the pole — the formula asks for f at the singularity, and the radius of the contour never enters. Option C would require the integrand to be analytic inside, but ez/z has a simple pole at the origin, squarely enclosed.The function f(z) = (z + 1)/[z²(z − 3)] has, at z = 0, a pole of order:
Show answer
Answer: B — 2
Read the order off the denominator: z appears squared and the numerator z + 1 equals 1 at z = 0, so nothing cancels and the pole has order 2. The other singularity, at z = 3, is simple. Option D would need the numerator to vanish at z = 0 to at least the second order, and it does not vanish there at all. The order matters practically rather than as a label: the residue at this double pole requires differentiating z²f(z) once before taking the limit, whereas the simple pole at z = 3 yields to a direct substitution.If u = x² − y² is the real part of an analytic function f(z), then f(z) is:
Show answer
Answer: A — z² (up to an additive constant)
First check that u can be the real part of something analytic: uₓₓ + u_yy = 2 + (−2) = 0, so u is harmonic and option D is out. Now recover v from the Cauchy–Riemann equations: v_y = uₓ = 2x gives v = 2xy + g(x), and vₓ = −u_y = 2y forces g′(x) = 0. So v = 2xy and f = (x² − y²) + i(2xy) = z², up to an additive constant that the conditions cannot determine. Option C is v alone, which is a real function and cannot be f; option B fails the Cauchy–Riemann test, as any function of z̄ does.The sum of the residues of f(z) = z/[(z − 1)(z − 2)] at all its poles is _____.
Numerical answer — type the value.
Show answer
Answer: 1
Both poles are simple. At z = 1 the residue is z/(z − 2) evaluated at z = 1, that is 1/(−1) = −1. At z = 2 it is z/(z − 1) at z = 2, that is 2/1 = 2. The sum is −1 + 2 = 1. So a contour enclosing both, such as |z| = 3, gives ∮f dz = 2πi·1 = 2πi, while a contour enclosing only z = 1, such as |z| = 1.5, gives 2πi·(−1) = −2πi. The two answers differ in sign as well as magnitude, which is why the contour has to be read as carefully as the function. Being a numerical-answer question, a wrong entry costs nothing.Which of the following functions are analytic at every point of the complex plane? (More than one option may be correct.)
Show answer
Answer: A — e^{z}; D — z²
ez and z² are entire — analytic at every point of the plane — so options A and D are correct. Option B fails at exactly one point: 1/z is analytic everywhere except z = 0, where it has a simple pole, and "at every point" is therefore false even though the function is analytic almost everywhere. Option C fails at every point, since z̄ = x − iy gives uₓ = 1 against v_y = −1 and the first Cauchy–Riemann equation never holds. The pair is worth noticing as a pair: B and C are the two ways a function can fail to be entire — a single bad point, or no good points at all.