Cauchy integral theorem and path independence

Every contour integral you computed in the last topic — parametrize, substitute, grind through the algebra — turns out to be unnecessary work in the single most common case: when the function is analytic. Cauchy's Integral Theorem says that if ff is analytic everywhere inside and on a simple closed contour CC, then ∮Cf(z) dz=0\oint_C f(z)\,dz = 0, no parametrization required. That one fact is the hinge on which the rest of complex integration swings: it forces path-independence between two points, guarantees an antiderivative exists, and licenses the trick of deforming an awkward contour into a small convenient circle around a singularity — the exact move used later in Cauchy's Integral Formula and residue calculus. This article builds the theorem from the Cauchy-Riemann equations via Green's theorem, then works both corollaries into number-crunching tools.

The core insight

For ff analytic inside and on a simple closed contour CC, ∮Cf(z) dz=0\oint_C f(z)\,dz = 0; consequently, open-path integrals of an analytic function depend only on the endpoints and can be evaluated by an antiderivative, and closed contours can be deformed onto smaller ones around an enclosed singularity without changing the integral's value.

The core idea

Cauchy's Integral Theorem (Cauchy-Goursat). Let ff be analytic at every point inside and on a simple closed contour CC, where the enclosed region has no holes (simply connected). Then

∮Cf(z) dz=0.\oint_C f(z)\, dz = 0.

where: CC is a simple closed contour traversed once, and "analytic inside and on CC" means ff is differentiable at every point of the closed region bounded by CC — not just on the boundary curve itself. The result is a direct consequence of the Cauchy-Riemann equations, which is why it holds only for analytic functions and fails the moment a singularity sits inside CC.

Path independence. If ff is analytic on a simply connected domain DD and z1,z2∈Dz_1, z_2 \in D, then ∫Cf(z) dz\int_C f(z)\,dz takes the same value along every path CC in DD from z1z_1 to z2z_2 — it depends only on the endpoints. Two such paths C1C_1 and C2C_2, joined end to end with C2C_2 reversed, form a closed contour on which the integral vanishes by the theorem, so the two open-path integrals must agree.

Antiderivative and evaluation. Path-independence lets us define F(z)=∫z0zf(ζ) dζF(z) = \int_{z_0}^{z} f(\zeta)\,d\zeta unambiguously (any path in DD), with F′(z)=f(z)F'(z) = f(z). Evaluation then mirrors ordinary calculus:

∫z1z2f(z) dz=F(z2)−F(z1).\int_{z_1}^{z_2} f(z)\,dz = F(z_2) - F(z_1).

where: FF is any antiderivative of ff on DD, and z1,z2z_1, z_2 are the path's endpoints — the shape of the path in between is irrelevant once ff is analytic throughout DD.

Deformation of contours. If ff is analytic in the region between two simple closed contours C1C_1 and C2C_2 (with C2C_2 inside C1C_1, both traversed counter-clockwise — the classic picture is a "hole" excised around a singularity), then ∮C1f(z) dz=∮C2f(z) dz\oint_{C_1} f(z)\,dz = \oint_{C_2} f(z)\,dz. A large or awkward contour can therefore be replaced by a small circle hugging each enclosed singularity, which is exactly the figure below.

Figure
Two concentric contours around a singularity at the origin with equal circulation
Deformation of contours around a singularity z = 0 C1 (large) C2 (small) f analytic in the ring between C1 and C2, both counter-clockwise so the loop integral over C1 equals the loop integral over C2
Derivation ACauchy's Integral Theorem from the Cauchy-Riemann equations

The goal is to show, using only Green's theorem and the Cauchy-Riemann equations a student already owns, that a contour integral of an analytic function around any simple closed curve must vanish — turning the bare statement of Cauchy's Integral Theorem into something derived rather than merely quoted. Writing f=u+ivf = u+iv and splitting ∮Cf dz=∮C(u dx−v dy)+i∮C(v dx+u dy)\oint_C f\,dz = \oint_C(u\,dx - v\,dy) + i\oint_C(v\,dx+u\,dy) turns the complex line integral into two real ones, each convertible by Green's theorem into a double integral over the enclosed region RR, and each of those double integrals dies exactly when the Cauchy-Riemann equations hold — which is precisely the hypothesis that ff is analytic.

Step 1. Split f dzf\,dz into real and imaginary parts. With f=u+ivf = u + iv and dz=dx+i dydz = dx + i\,dy, expanding f dz=(u+iv)(dx+i dy)f\,dz = (u+iv)(dx+i\,dy) and collecting real and imaginary pieces gives ∮Cf dz=∮C(u dx−v dy)+i∮C(v dx+u dy)\oint_C f\,dz = \oint_C(u\,dx - v\,dy) + i\oint_C(v\,dx + u\,dy). The problem is now two ordinary real line integrals around the same closed curve CC.

Step 2. Apply Green's theorem to each. Green's theorem converts ∮C(P dx+Q dy)\oint_C(P\,dx + Q\,dy) into ∬R(∂Q∂x−∂P∂y)dA\iint_R\left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)dA over the region RR enclosed by CC. For the real part, P=u, Q=−vP=u,\ Q=-v, giving ∬R(−vx−uy) dA\iint_R(-v_x - u_y)\,dA; for the imaginary part, P=v, Q=uP=v,\ Q=u, giving ∬R(ux−vy) dA\iint_R(u_x - v_y)\,dA.

Step 3. Apply the Cauchy-Riemann equations. Because ff is analytic throughout RR, ux=vyu_x = v_y and uy=−vxu_y = -v_x hold at every point of RR. Substituting, −vx−uy=−vx−(−vx)=0-v_x - u_y = -v_x -(-v_x) = 0 and ux−vy=vy−vy=0u_x - v_y = v_y - v_y = 0. Both integrands are identically zero, so both double integrals are zero.

Step 4. Conclude. Since both the real and imaginary parts of ∮Cf dz\oint_C f\,dz vanish, ∮Cf dz=0\oint_C f\,dz = 0. (Goursat's rigorous proof drops the assumption that the partial derivatives are continuous, which this Green's-theorem route silently uses — but the conclusion and the mechanism, Cauchy-Riemann forcing cancellation, are exactly the same.)

Worked example

Problem. Evaluate ∮Cez dz\displaystyle\oint_C e^z\,dz for C:∣z∣=2C: |z|=2, and separately evaluate ∫0πiez dz\displaystyle\int_0^{\pi i} e^z\,dz along any path.

Step 1. Check analyticity. eze^z is entire — analytic at every point of C\mathbb{C} — so it is analytic inside and on any simple closed contour, in particular C:∣z∣=2C: |z|=2.

Step 2. Apply the theorem to the closed contour. Since the hypothesis of Cauchy's Integral Theorem is satisfied, ∮Cez dz=0\oint_C e^z\,dz = 0 immediately, with no parametrization needed.

Step 3. Apply path-independence to the open path. eze^z has the antiderivative F(z)=ezF(z) = e^z (itself), valid everywhere, so ∫0πiez dz=F(πi)−F(0)=eπi−e0\int_0^{\pi i} e^z\,dz = F(\pi i) - F(0) = e^{\pi i} - e^0.

Step 4. Evaluate. Using eπi=−1e^{\pi i} = -1, ∫0πiez dz=−1−1=−2\int_0^{\pi i} e^z\,dz = -1 - 1 = \mathbf{-2}. Both answers required zero parametrization: the closed integral is 00 by the theorem, and the open integral is −2-2 by the antiderivative shortcut.

Competitive stretch

Problem. Given ∮C21z dz=2πi\displaystyle\oint_{C_2}\frac{1}{z}\,dz = 2\pi i for C2:∣z∣=1C_2: |z|=1 (found earlier by direct parametrization), evaluate ∮C11z dz\displaystyle\oint_{C_1}\frac{1}{z}\,dz for C1:∣z∣=5C_1: |z|=5.

Step 1. Check whether the theorem applies to C1C_1. f(z)=1/zf(z)=1/z fails to be analytic at z=0z=0, which lies inside C1C_1, so Cauchy's Integral Theorem does not apply — this is not a case that gives zero.

Step 2. Use deformation instead. 1/z1/z is analytic in the annular region between C1:∣z∣=5C_1: |z|=5 and C2:∣z∣=1C_2: |z|=1 (both enclose only the singularity z=0z=0, same orientation), so the deformation principle gives ∮C11z dz=∮C21z dz\oint_{C_1}\frac{1}{z}\,dz = \oint_{C_2}\frac{1}{z}\,dz.

Step 3. Substitute the known value. ∮C21z dz=2πi\oint_{C_2}\frac{1}{z}\,dz = 2\pi i, so ∮C11z dz=2πi\displaystyle\oint_{C_1}\frac{1}{z}\,dz = \mathbf{2\pi i}, reusing the earlier direct computation instead of re-parametrizing the larger circle.

Common traps

  • Applying the theorem when a singularity lies inside CC. Concluding ∮Cf dz=0\oint_C f\,dz = 0 without checking that ff is analytic at every interior point invalidates the whole argument — a single interior singularity is fatal to the hypothesis.
  • Confusing "analytic on CC" with "analytic inside and on CC." The theorem needs the whole closed region bounded by CC, not merely the boundary curve.
  • Forgetting simple-connectedness. Path-independence and the antiderivative argument need a domain with no holes; domains with holes are exactly where nonzero closed-contour integrals, like 1/z1/z around the origin, arise.
  • Mismatched orientation in deformation. Both contours must be traversed the same way (typically counter-clockwise) for ∮C1f dz=∮C2f dz\oint_{C_1} f\,dz = \oint_{C_2} f\,dz to hold as stated.

Ask the tutor: if the Green's-theorem step or the deformation argument still feels hand-wavy, ask the AI tutor to walk through an extra worked contour before moving on to Cauchy's Integral Formula.

Why does Cauchy's Integral Theorem require the domain to be simply connected?

The Green's-theorem proof needs the double integral over the entire region enclosed by CC to make sense with ff analytic throughout it. If the domain has a hole — say a singularity has been excised — then ff is not analytic on all of the enclosed region, the Cauchy-Riemann cancellation in the proof breaks down, and the closed-contour integral need not be zero. That is exactly the situation for 1/z1/z around the origin: the "hole" at z=0z=0 is why ∮1/z dz≠0\oint 1/z\,dz \ne 0 on a contour enclosing it, even though 1/z1/z is analytic everywhere else.

If path-independence holds, why do we still bother parametrizing contour integrals at all?

Path-independence only applies when ff is analytic throughout the domain connecting the endpoints. The moment a singularity lies inside the region, or the function is not analytic (say it involves zˉ\bar{z} or ∣z∣|z|), the shortcut disappears and direct parametrization is the only route. Even for analytic ff, path-independence is what justifies choosing a convenient path or reusing an antiderivative — it does not eliminate parametrization as a technique, it just tells you when you are allowed to skip it.

How is contour deformation different from just saying the integral is zero?

Deformation applies precisely when the theorem's zero-conclusion does not: when a singularity sits inside the contour, so ff fails to be analytic throughout the enclosed region. Instead of forcing the integral to zero, deformation lets you shrink the contour down onto a small circle around the singularity, where the integral can often be computed directly or is already known — as with 1/z1/z giving 2πi2\pi i on any contour enclosing the origin once. It is the tool that replaces "the theorem doesn't apply" with "here is how to compute it anyway."

Before this

Where this leads