Cauchy's integral theorem
Statement
Let \(\Omega \subseteq \mathbb{C}\) be a non-empty, open, simply connected set, and let \(f:\Omega \to \mathbb{C}\) be holomorphic on \(\Omega\) (complex-differentiable at every point of \(\Omega\)). Let \(\gamma:[a,b]\to\Omega\) be a closed, piecewise-\(C^1\) (rectifiable) curve in \(\Omega\), i.e. \(\gamma(a)=\gamma(b)\). Then \[ \oint_\gamma f(z)\,dz \;=\; 0. \]
Why it matters
This is the load-bearing result of complex analysis: essentially every other structural theorem about holomorphic functions — the Cauchy integral formula, the power-series (Taylor) expansion of holomorphic functions, Cauchy's estimates, Liouville's theorem, the maximum modulus principle, the residue theorem — is derived from it, directly or via one further step. The theorem says something that has no real-variable analogue of comparable strength: complex differentiability, a purely local and seemingly weak hypothesis, forces a rigid global constraint (path-independence of integrals) on the function.
It also explains, retrospectively, why complex analysis is so much more rigid than real analysis: a real \(C^1\) function need satisfy no such vanishing condition on any closed loop of its graph, yet a merely-once-complex-differentiable function is already forced into this global straightjacket, and (as a consequence proved later, via Cauchy's formula) is automatically infinitely differentiable and analytic.
Hypotheses
Proof
The proof proceeds in three stages: (I) Goursat's lemma — the theorem is proved first for the boundary of a triangle, using no topology beyond compactness of the plane; (II) a primitive of \(f\) is manufactured locally on any disc using Goursat's lemma; (III) the local primitives are patched into one single-valued global primitive on \(\Omega\) using simple connectivity, after which the theorem is a one-line consequence of the Fundamental Theorem of Calculus for contour integrals.
Result
Reading. If you never leave a region where a function is complex-differentiable, and that region has no "holes" the loop could wind around, then integrating the function all the way round any closed loop always gives exactly zero — regardless of the loop's shape or how many times it doubles back on itself.
Scope. Applies to any \(f\) holomorphic on any open simply connected \(\Omega\subseteq\mathbb{C}\) (in particular: entire functions on all of \(\mathbb{C}\); any holomorphic function on a disc, half-plane, or star-shaped domain; any holomorphic function on a simply connected \(\Omega\) even if \(f\) has singularities strictly outside \(\Omega\)) and any closed rectifiable curve \(\gamma\) lying in \(\Omega\). It does not apply, without modification, to multiply connected domains (annuli, punctured planes) — there the residue theorem, of which this is the residue-free special case, is needed.
Corollaries & converses
- Path independence. If \(f\) is holomorphic on simply connected \(\Omega\) and \(\gamma_1,\gamma_2\) are two piecewise-\(C^1\) paths in \(\Omega\) from \(z_0\) to \(z_1\), then \(\int_{\gamma_1} f = \int_{\gamma_2} f\) (apply the theorem to the closed loop \(\gamma_1\) followed by \(\gamma_2\) reversed).
- Existence of primitives. Every \(f\) holomorphic on a simply connected \(\Omega\) has a holomorphic antiderivative \(F\) on \(\Omega\) with \(F'=f\) — this was in fact constructed inside the proof (Steps 8–11) and is logically equivalent to the theorem itself.
- Downstream results. The Cauchy Integral Formula, Cauchy's estimates on derivatives, Liouville's theorem, the Fundamental Theorem of Algebra, and the identity theorem all follow from this theorem (typically via one further application to \(g(z)=f(z)/(z-a)\) or similar).
- Partial converse — Morera's Theorem. If \(f\) is continuous on an open set \(\Omega\) and \(\oint_{\partial\Delta} f\,dz = 0\) for every closed triangle \(\Delta\subseteq\Omega\), then \(f\) is holomorphic on \(\Omega\). (Proof: the same Steps 8–9 construct a local primitive \(F\) from continuity plus the triangle-vanishing hypothesis alone; \(F\) is then holomorphic, hence — by a theorem proved from Cauchy's Integral Formula — infinitely differentiable, so \(F'=f\) is itself holomorphic.) The full converse (integral vanishing on every closed curve implies holomorphic) is also true and reduces to this triangle version.
Fails without
- Holomorphy dropped: \(f(z)=\bar z\) on \(\Omega=\mathbb{C}\) (simply connected, but \(f\) not holomorphic): \(\oint_{|z|=1}\bar z\,dz=2\pi i\neq0\).
- Simple connectivity dropped: \(f(z)=1/z\) holomorphic on \(\Omega=\mathbb{C}\setminus\{0\}\) (not simply connected): \(\oint_{|z|=1} dz/z=2\pi i\neq0\).
- Curve leaves the domain of holomorphy: \(f(z)=1/(z^2+1)\) is holomorphic on \(\mathbb{C}\setminus\{\pm i\}\); if \(\gamma\) is a circle of radius \(2\) centred at \(0\) there is no simply connected \(\Omega\) containing \(\gamma\) and its interior on which \(f\) is holomorphic (both \(\pm i\) lie inside), and indeed \(\oint_{|z|=2}\frac{dz}{z^2+1}=2\pi i\left(\operatorname{Res}_{z=i}+\operatorname{Res}_{z=-i}\right)=0\) only by an unrelated symmetry cancellation — replacing the integrand by \(1/(z-i)\) instead gives \(\oint_{|z|=2}\frac{dz}{z-i}=2\pi i\neq 0\), showing the theorem's hypotheses (not merely its numerical conclusion) genuinely fail.
Common errors
- Applying the theorem to \(f(z)=1/z\) (or any function with a pole) on a loop that encircles the pole, forgetting that "holomorphic on \(\Omega\)" must hold at every point of \(\Omega\), including the interior enclosed by \(\gamma\), not just on the trace of \(\gamma\) itself.
- Treating "\(\Omega\) simply connected" as automatic for any open connected set; annuli and punctured discs are connected but not simply connected, and the theorem can fail there.
- Quoting the theorem for a curve that is not closed and expecting zero; for open \(\gamma\) the correct statement is \(\int_\gamma f\,dz = F(\text{endpoint})-F(\text{start})\), which is generally non-zero.
- Confusing this theorem with the Cauchy Integral Formula \(f(a)=\frac{1}{2\pi i}\oint_\gamma \frac{f(z)}{z-a}\,dz\) — the latter is a different (later, stronger) statement about a function divided by \(z-a\), not the vanishing of \(\oint_\gamma f\).
- Believing the theorem requires \(\gamma\) to be a simple (non-self-intersecting) curve; it holds for any closed piecewise-\(C^1\) curve, self-intersecting or winding round multiple times, as long as it stays in \(\Omega\).
Discussion
Augustin-Louis Cauchy first stated a version of this result in 1825, under the extra (and at the time unavoidable) hypothesis that \(f'\) itself be continuous, which allowed him to invoke Green's theorem: writing \(f=u+iv\), \(dz=dx+i\,dy\), the real and imaginary parts of \(\oint_\gamma f\,dz\) become exactly the line integrals appearing in Green's theorem, and the Cauchy–Riemann equations make both resulting double integrals vanish identically. That argument is genuinely illuminating but logically weaker than the one given above, since it presupposes \(f\in C^1\) as a real map, a fact not yet known to follow from mere complex differentiability. Édouard Goursat closed this gap in 1900 by proving the triangle case using only the definition of the derivative and a bisection argument — no continuity of \(f'\) assumed — which is why the lemma bears his name and why the modern theorem is often called the Cauchy–Goursat theorem.
The deepest content of the theorem, in retrospect, is the equivalence between three things that look completely different: (i) a local, pointwise differential condition (holomorphy), (ii) a global integral condition (vanishing of loop integrals), and (iii) the existence of a primitive. Steps 8–11 of the proof show (i) \(\Rightarrow\) (iii), and Step 12 shows (iii) \(\Rightarrow\) (ii); Morera's theorem supplies the missing arrow (ii) \(\Rightarrow\) (i) (via triangles), closing the loop of equivalences. This triad is the structural skeleton on which the rest of elementary complex analysis (Cauchy's formula, Taylor series, residues) is built.
The role of simple connectivity is best understood homotopically rather than purely topologically: the theorem generalises to the statement that \(\oint_{\gamma_0} f=\oint_{\gamma_1}f\) whenever \(\gamma_0\) and \(\gamma_1\) are freely homotopic closed curves within the (not necessarily simply connected) domain of holomorphy of \(f\) — a fact sometimes called the homotopy invariance of the contour integral, and provable by exactly the chaining-and-monodromy argument of Steps 10–11 applied along the homotopy. Simple connectivity of \(\Omega\) is precisely the condition guaranteeing every closed curve is homotopic to a constant curve (which trivially has integral \(0\)), so the theorem as stated is the special case of homotopy invariance where the target loop is a point.
Common misconception: that the theorem says holomorphic functions integrate to zero because "the antiderivative undoes the derivative", as though this were a triviality analogous to the real 1-D Fundamental Theorem of Calculus. It is not trivial: on the real line every continuous function trivially has a primitive (via \(\int_a^x\)), but a complex-differentiable function need not have a well-defined single-valued primitive unless the domain is simply connected — \(1/z\) is the standing counterexample, complex-differentiable everywhere it is defined, yet with no single-valued antiderivative on \(\mathbb{C}\setminus\{0\}\) (any candidate primitive is a branch of \(\log z\), which cannot be made continuous, let alone holomorphic, all the way around the origin).
Worked examples
Problems
- Compute \(\displaystyle\oint_{|z|=3} \sin(z)\,dz\).
Solution
\(\sin z\) is entire, hence holomorphic on \(\Omega=\mathbb{C}\) (simply connected), and \(\{|z|=3\}\) is a closed curve in \(\Omega\). By Cauchy's Integral Theorem the integral is \(0\). - Compute \(\displaystyle\oint_{|z-1|=1/2} \frac{dz}{z-3}\).
Solution
The integrand \(f(z)=1/(z-3)\) is holomorphic on \(\mathbb{C}\setminus\{3\}\). The disc \(\Omega=D(1,2)\) is open, simply connected, avoids \(z=3\) (since \(|3-1|=2\) is on the boundary — choose instead, say, \(\Omega=D(1,1.9)\) to be safely inside), and contains the curve \(\{|z-1|=1/2\}\) together with its interior. All hypotheses hold on \(\Omega\), so the integral is \(0\). - Let \(f\) be holomorphic on an open set containing the closed annulus \(\{1\le|z|\le2\}\). Using Cauchy's Integral Theorem (not the residue theorem), show \(\displaystyle\oint_{|z|=2} f\,dz=\oint_{|z|=1} f\,dz\) (both counterclockwise).
Solution
Cut the annulus along the segment \([1,2]\) on the positive real axis (approached from just above and just below) to form a simply connected "keyhole" region \(K\): the boundary of \(K\) consists of the outer circle \(|z|=2\) traversed counterclockwise, the segment from \(2\) to \(1\) just below the cut, the inner circle \(|z|=1\) traversed clockwise, and the segment from \(1\) to \(2\) just above the cut. \(K\) is simply connected and \(f\) is holomorphic on (a neighbourhood of) \(\overline{K}\), so by Cauchy's Integral Theorem the integral of \(f\) around \(\partial K\) is \(0\). As the width of the keyhole cut shrinks to zero, the two straight segments are traversed in opposite directions with the same integrand values on them (by continuity of \(f\)) and their contributions cancel in the limit, leaving \[ \oint_{|z|=2} f\,dz \;-\; \oint_{|z|=1} f\,dz = 0, \] i.e. the two circle integrals (both counterclockwise) are equal. - Let \(\Omega\) be simply connected and \(f:\Omega\to\mathbb{C}\) holomorphic with \(f(z)\neq0\) for all \(z\in\Omega\). Show there exists a holomorphic \(g:\Omega\to\mathbb{C}\) with \(e^{g(z)}=f(z)\) for all \(z\in\Omega\) (a holomorphic branch of \(\log f\)).
Solution
Since \(f\) is holomorphic and non-vanishing on \(\Omega\), the function \(h(z)=f'(z)/f(z)\) is holomorphic on \(\Omega\) (quotient of holomorphic functions with non-vanishing denominator). Because \(\Omega\) is simply connected, Cauchy's Integral Theorem applies to \(h\) (Steps 8–11 of the proof), giving a holomorphic primitive \(G\) on \(\Omega\) with \(G'=h=f'/f\). Fix \(z_0\in\Omega\) and adjust \(G\) by an additive constant so that \(e^{G(z_0)}=f(z_0)\) (possible since \(f(z_0)\neq0\)); set \(g=G\). Consider \(\phi(z)=f(z)e^{-G(z)}\): \(\phi'(z)=f'(z)e^{-G(z)}-f(z)G'(z)e^{-G(z)}=e^{-G(z)}\bigl(f'(z)-f(z)\cdot f'(z)/f(z)\bigr)=0\) on the connected set \(\Omega\), so \(\phi\) is constant, equal to \(\phi(z_0)=f(z_0)e^{-G(z_0)}=1\). Hence \(f(z)=e^{G(z)}=e^{g(z)}\) for all \(z\in\Omega\), as required. - Assuming Cauchy's Integral Theorem, derive the Cauchy Integral Formula: if \(f\) is holomorphic on simply connected \(\Omega\), \(\gamma\) is a closed curve in \(\Omega\) that winds once counterclockwise around \(a\in\Omega\setminus\gamma\) and \(0\) times around every point outside a simply connected region containing \(a\) and bounded appropriately by \(\gamma\) (take \(\gamma\) a circle \(|z-a|=r\) for concreteness), show \(\displaystyle\oint_\gamma \frac{f(z)}{z-a}\,dz = 2\pi i f(a)\).
Solution
Define \(g(z)=\dfrac{f(z)-f(a)}{z-a}\) for \(z\in\Omega\setminus\{a\}\) and \(g(a)=f'(a)\). Since \(f\) is holomorphic at \(a\), \(\lim_{z\to a} g(z)=f'(a)=g(a)\), so \(g\) is continuous on \(\Omega\); and \(g\) is holomorphic on \(\Omega\setminus\{a\}\) as a quotient of holomorphic functions with non-vanishing denominator there. One checks (e.g. via Morera's theorem applied to small triangles, splitting off the case where \(a\) is a vertex and using continuity of \(g\) at \(a\) to bound that piece) that \(g\) is in fact holomorphic at \(a\) too, hence holomorphic on all of \(\Omega\). Now for \(0\lt\rho\lt r\), the annulus \(\rho\le|z-a|\le r\) lies in \(\Omega\setminus\{a\}\) where... instead apply Problem 3's result directly to \(g\) (holomorphic on all of \(\Omega\), including \(a\)): \(\oint_{|z-a|=r} g\,dz = \oint_{|z-a|=\rho} g\,dz\) for every \(\rho\in(0,r]\); but by Cauchy's Integral Theorem applied directly to \(g\) on the disc \(\Omega\) (simply connected, \(g\) holomorphic everywhere on it), \(\oint_{|z-a|=r} g\,dz=0\) outright. Hence \[ 0=\oint_{|z-a|=r} \frac{f(z)-f(a)}{z-a}\,dz = \oint_{|z-a|=r}\frac{f(z)}{z-a}\,dz \;-\; f(a)\oint_{|z-a|=r}\frac{dz}{z-a}. \] Parametrising \(z=a+re^{i\theta}\), \(\oint_{|z-a|=r} dz/(z-a) = \int_0^{2\pi} i\,d\theta = 2\pi i\). Substituting: \(0=\oint_{|z-a|=r}\frac{f(z)}{z-a}dz - 2\pi i f(a)\), i.e. \(\oint_{|z-a|=r}\frac{f(z)}{z-a}\,dz = 2\pi i f(a)\), as required.