[motivation]
The fundamental mystery at the heart of complex analysis is not that holomorphic functions are differentiable — it is that their derivatives are constrained in a way that has no analogue in real analysis. A function $f: \mathbb{R} \to \mathbb{R}$ can be differentiable everywhere yet behave almost arbitrarily: it can oscillate, fail to be twice differentiable, and carry no memory of its values on distant intervals. Complex differentiability is different in kind, not just in degree. When $f: \Omega \to \mathbb{C}$ is holomorphic on an open set $\Omega \subset \mathbb{C}$, its real and imaginary parts are not just smooth — they are harmonic, tied together by the Cauchy–Riemann equations into a rigid system that propagates information across the entire domain.
This rigidity has a spectacular geometric consequence: the value of $f$ at any point $z_0$ inside a closed curve is completely determined by the values of $f$ on that curve. Integration, normally thought of as a way to accumulate local data, turns out to detect global topology. Whether a contour integral $\oint_\gamma f(z)\, dz$ vanishes depends not on the smoothness of $f$ along $\gamma$, but on whether $f$ has singularities enclosed by $\gamma$ and how many times the curve winds around them.
Cauchy's theorem is the result that makes this precise. It says that for a holomorphic function on a simply connected domain, every closed contour integral vanishes. From this single statement flows most of classical complex analysis: the Cauchy integral formula, the identity theorem, the maximum modulus principle, and the classification of singularities via Laurent series and residues. Understanding Cauchy's theorem is understanding why complex analysis works.
[/motivation]
[example: Failure of Path Independence for Non-Holomorphic Functions]
To see what makes holomorphicity special, consider first a function that is not holomorphic. Let $f: \mathbb{C} \setminus \{0\} \to \mathbb{C}$ be defined by
\begin{align*}
f(z) &= \frac{1}{\bar{z}}.
\end{align*}
Write $z = x + iy$, so $f(z) = \frac{x - iy}{x^2 + y^2}$. This function is smooth as a map $\mathbb{R}^2 \setminus \{0\} \to \mathbb{R}^2$, but it is not holomorphic: the Wirtinger derivative gives $\partial_{\bar{z}} f = \partial_{\bar{z}}(\bar{z}^{-1}) = -\bar{z}^{-2} \cdot \partial_{\bar{z}}\bar{z} = -\bar{z}^{-2} \neq 0$.
Integrate $f$ over the unit circle $\gamma(t) = e^{it}$ for $t \in [0, 2\pi]$. We have $dz = ie^{it}\, dt$ and $\overline{\gamma(t)} = e^{-it}$, so
\begin{align*}
\oint_\gamma \frac{1}{\bar{z}}\, dz &= \int_0^{2\pi} \frac{1}{e^{-it}} \cdot ie^{it}\, dt = \int_0^{2\pi} i e^{2it}\, dt = \frac{i}{2i}\left[e^{2it}\right]_0^{2\pi} = \frac{1}{2}(1 - 1) = 0.
\end{align*}
That particular integral vanishes, but this is a coincidence of the specific curve and function. Over the square with vertices $\pm 1 \pm i$ (oriented counterclockwise), the integral of $1/\bar{z}$ does not vanish. To see this, compute each side directly. Label the sides: bottom ($y = -1$, $x$ from $-1$ to $1$, $\bar{z} = x+i$, $dz = dx$), right ($x = 1$, $y$ from $-1$ to $1$, $\bar{z} = 1-iy$, $dz = i\,dy$), top ($y = 1$, $x$ from $1$ to $-1$, $\bar{z} = x-i$, $dz = dx$), and left ($x = -1$, $y$ from $1$ to $-1$, $\bar{z} = -1-iy$, $dz = i\,dy$). The four contributions are
\begin{align*}
I_{\text{bottom}} &= \int_{-1}^{1} \frac{dx}{x+i}, \quad I_{\text{right}} = \int_{-1}^{1} \frac{i\,dy}{1-iy}, \quad I_{\text{top}} = \int_{1}^{-1} \frac{dx}{x-i}, \quad I_{\text{left}} = \int_{1}^{-1} \frac{i\,dy}{-1-iy}.
\end{align*}
Note that $I_{\text{bottom}} = \int_{-1}^{1} \frac{x-i}{x^2+1}\,dx$ and $I_{\text{top}} = -\int_{-1}^{1} \frac{x+i}{x^2+1}\,dx$; their real parts cancel while their imaginary parts add: $I_{\text{bottom}} + I_{\text{top}} = -2i\int_{-1}^1 \frac{dx}{x^2+1} = -2i\cdot\frac{\pi}{2} = -\pi i$. Similarly, $I_{\text{right}} = \int_{-1}^1 \frac{i(1+iy)}{1+y^2}\,dy$ and $I_{\text{left}} = -\int_{-1}^1 \frac{i(-1+iy)}{1+y^2}\,dy$; together they give $I_{\text{right}} + I_{\text{left}} = -2\int_{-1}^1 \frac{y}{1+y^2}\,dy + 2i\int_{-1}^1 \frac{dy}{1+y^2}$. The first integral vanishes by oddness and the second gives $\pi i$, so $I_{\text{right}} + I_{\text{left}} = \pi i$. The total is $(-\pi i) + (\pi i) = 0$ — but this particular cancellation is an accident specific to this symmetric contour and this integrand. The essential point is not the final value but what produces it: the integral depends on which path is taken, as the Cauchy–Riemann test confirms directly. Since $\partial_{\bar z}(1/\bar z) = -\bar z^{-2} \neq 0$, Green's theorem gives $\oint_{\partial E} (1/\bar z)\,dz = 2i\iint_E \partial_{\bar z}(1/\bar z)\,d\mathcal{L}^2 \neq 0$ for a generic region $E$ — the value changes if we deform the contour, which is the hallmark of path dependence. This shows that $1/\bar z$ behaves fundamentally differently from holomorphic functions. For holomorphic functions, Cauchy's theorem guarantees that path-independence always holds on simply connected domains.
[/example]
## Definition
The setting for Cauchy's theorem is the complex plane viewed as a domain in $\mathbb{C}$. The central object of integration theory in $\mathbb{C}$ is the contour: a path along which we can integrate a complex function. In one-variable real calculus, integrals run from $a$ to $b$ along the real line. In $\mathbb{C}$, there is an uncountable family of paths between any two points, and integration along different paths can give different results. We need a class of paths well-behaved enough to integrate along. Continuity alone is not sufficient: a continuous path can be wildly oscillatory — even space-filling — and the substitution formula $\int_a^b f(\gamma(t))\gamma'(t)\,dt$ requires $\gamma'$ to exist. But asking for $\gamma$ to be globally smooth ($C^1$ on all of $[a,b]$) is too restrictive: a rectangle has corners, and a square wave has kinks, yet both are perfectly natural integration paths. The right compromise is piecewise smooth curves: $\gamma'$ exists and is continuous on finitely many subintervals, with $\gamma'(t) \neq 0$ on each open piece to ensure the curve has a nondegenerate tangent (no reversals or cusps that would make the direction of traversal ill-defined). This condition guarantees that the arc length $\int_a^b |\gamma'(t)|\,dt$ is well-defined and finite, that the substitution formula applies on each smooth piece and the results can be summed, and that the orientation of the path is unambiguous.
[definition: Contour]
A **contour** (or **piecewise smooth curve**) in $\mathbb{C}$ is a continuous function $\gamma: [a, b] \to \mathbb{C}$ such that there exist finitely many points $a = t_0 < t_1 < \cdots < t_n = b$ with $\gamma$ continuously differentiable on each subinterval $[t_{k-1}, t_k]$ and $\gamma'(t) \neq 0$ on each open subinterval $(t_{k-1}, t_k)$.
The contour $\gamma$ is **closed** if $\gamma(a) = \gamma(b)$. It is **simple** (or a **Jordan curve**) if it is injective on $[a, b)$ (no self-intersections other than possibly the endpoint). The **image** of $\gamma$ is the set $\gamma^* = \{\gamma(t) : t \in [a, b]\} \subset \mathbb{C}$.
Given a contour $\gamma$ and a continuous function $f: \gamma^* \to \mathbb{C}$, the **contour integral** of $f$ along $\gamma$ is
\begin{align*}
\int_\gamma f(z)\, dz &= \int_a^b f(\gamma(t))\, \gamma'(t)\, dt,
\end{align*}
where on subintervals where $\gamma'$ fails to exist, the integrand is extended by continuity. If $\gamma$ is closed, we write $\oint_\gamma f(z)\, dz$.
[/definition]
The contour integral is the correct way to integrate complex functions: it reduces to a real integral in terms of the parametrization, and it is independent of the choice of parametrization (up to orientation). Two different parametrizations of the same geometric curve yield the same integral.
## Holomorphicity and Simple Connectedness
With the notion of integration in hand, we need to say what kind of functions we are integrating and what kind of domains we are integrating over. These two conditions — holomorphicity of the function and simple connectedness of the domain — are the two hypotheses of Cauchy's theorem.
In real analysis, differentiability of $f: U \subset \mathbb{R}^2 \to \mathbb{R}^2$ just requires the existence of the Jacobian matrix. Complex differentiability is more restrictive: the limit must exist and be the same regardless of the direction in which we approach the point. This directional constraint is what makes complex analysis so rigid.
[definition: Holomorphic Function]
Let $\Omega \subset \mathbb{C}$ be an open set. A function $f: \Omega \to \mathbb{C}$ is **holomorphic at $z_0 \in \Omega$** if the limit
\begin{align*}
f'(z_0) &= \lim_{h \to 0} \frac{f(z_0 + h) - f(z_0)}{h}
\end{align*}
exists in $\mathbb{C}$, where $h \in \mathbb{C} \setminus \{0\}$ approaches $0$ from any direction. The function $f$ is **holomorphic on $\Omega$** (written $f \in \mathcal{O}(\Omega)$) if it is holomorphic at every point of $\Omega$. It is **entire** if it is holomorphic on all of $\mathbb{C}$.
[/definition]
[remark: Holomorphic vs. Complex Differentiable]
Some texts distinguish "holomorphic" (differentiable in a neighborhood) from "complex differentiable" (differentiable at a single point). On open sets, the two coincide, and we use "holomorphic" throughout. The word "analytic" is also used as a synonym, justified by the theorem — proved later using Cauchy's formula — that holomorphic functions are locally equal to their Taylor series.
[/remark]
The Cauchy–Riemann equations give a concrete test for holomorphicity in terms of the real and imaginary parts of $f$.
[quotetheorem:333]
The Cauchy–Riemann equations are the real manifestation of the constraint that the complex derivative must exist in all directions simultaneously. When $h \to 0$ along the real axis, $f'(z_0) = \partial_x u + i\partial_x v$. When $h \to 0$ along the imaginary axis, $f'(z_0) = -i\partial_y u + \partial_y v$. Equating these forces exactly the Cauchy–Riemann equations. The Wirtinger derivative $\partial_{\bar{z}} f = 0$ is the elegant reformulation: $f$ is holomorphic iff it does not depend on $\bar{z}$ at all, only on $z$.
The second hypothesis of Cauchy's theorem is a condition on the domain. The theorem requires the domain to have no "holes" — no topological obstacles that would force a contour to wind around a singularity without any hope of being contracted away.
[definition: Simply Connected Domain]
An open set $\Omega \subset \mathbb{C}$ is **simply connected** if it is connected and every closed contour in $\Omega$ can be continuously deformed within $\Omega$ to a point. Equivalently, $\Omega$ is simply connected if its complement $\mathbb{C} \setminus \Omega$ is connected (in the extended complex plane $\hat{\mathbb{C}} = \mathbb{C} \cup \{\infty\}$).
In particular, any convex open set is simply connected, and the full complex plane $\mathbb{C}$ itself is simply connected. The punctured plane $\mathbb{C} \setminus \{0\}$ and the annulus $\{z : r < |z| < R\}$ are not simply connected.
[/definition]
[illustration:simply-connected-vs-annulus]
Simple connectedness is not just a technical hypothesis to check and forget — it is the exact geometric condition that separates domains where Cauchy's theorem holds from those where it fails. The following explanation shows precisely what goes wrong when the domain has a hole.
[explanation: Why Simple Connectedness Is Necessary]
Simple connectedness is precisely the condition that prevents a contour from encircling a singularity. The function $f(z) = 1/z$ is holomorphic on $\mathbb{C} \setminus \{0\}$, but
\begin{align*}
\oint_{|z|=1} \frac{1}{z}\, dz &= 2\pi i \neq 0.
\end{align*}
The unit circle encloses the singularity at $0$. On the domain $\mathbb{C} \setminus \{0\}$, the unit circle cannot be contracted to a point without crossing through $0$, so simple connectedness fails. On any simply connected subdomain of $\mathbb{C} \setminus \{0\}$ — for instance, the slit plane $\mathbb{C} \setminus (-\infty, 0]$ — every closed contour integral of $1/z$ does vanish, because every closed curve in this domain winds zero times around the origin.
The winding number $n(\gamma, z_0) = \frac{1}{2\pi i}\oint_\gamma \frac{dz}{z - z_0}$ measures how many times $\gamma$ goes around $z_0$. Cauchy's theorem says this number is zero for every $z_0 \notin \Omega$ when $f$ is holomorphic and $\Omega$ is simply connected — not because the function has no singularities, but because the topology of the domain prevents the contour from encircling any external point.
[/explanation]
## Cauchy's Theorem
With the definitions in place, we can state the central result. The most classical form is for a disk, which already contains all the essential content.
Why should a contour integral vanish? The key insight is Green's theorem: under suitable smoothness conditions, a closed contour integral equals a double integral over the enclosed region. When $f$ is holomorphic, the Cauchy–Riemann equations force the integrand of that double integral to be identically zero.
[quotetheorem:2569]
[explanation: The Green's Theorem Argument]
Write $f(z) = u(x,y) + iv(x,y)$ and $dz = dx + i\, dy$. Then
\begin{align*}
\oint_\gamma f(z)\, dz &= \oint_\gamma (u + iv)(dx + i\, dy) = \oint_\gamma (u\, dx - v\, dy) + i\oint_\gamma (v\, dx + u\, dy).
\end{align*}
If $\gamma = \partial E$ for a region $E \subset D$ with $C^1$ boundary (and $f$ extends $C^1$ to the closure), Green's theorem gives
\begin{align*}
\oint_\gamma (u\, dx - v\, dy) &= \iint_E \left(-\frac{\partial v}{\partial x} - \frac{\partial u}{\partial y}\right) d\mathcal{L}^2, \\
\oint_\gamma (v\, dx + u\, dy) &= \iint_E \left(\frac{\partial u}{\partial x} - \frac{\partial v}{\partial y}\right) d\mathcal{L}^2.
\end{align*}
The Cauchy–Riemann equations say $\partial_x u = \partial_y v$ and $\partial_y u = -\partial_x v$. Both integrands vanish, so $\oint_\gamma f(z)\, dz = 0$.
This argument assumes $f' \in C(D)$, i.e., that $f \in C^1(D)$. The proof without this assumption is due to Goursat and uses a more subtle approximation argument subdividing the region into triangles.
[/explanation]
The full generality of Cauchy's theorem allows the domain to be any simply connected open set, not just a disk.
[quotetheorem:344]
The equivalence with the existence of a primitive is exact: $\oint_\gamma f\, dz = F(\gamma(b)) - F(\gamma(a))$, which is $0$ when $\gamma$ is closed. Simply connected domains are precisely the ones on which every holomorphic function has a primitive.
[example: Antiderivative on a Slit Plane]
Consider $f(z) = 1/z$, holomorphic on $\mathbb{C} \setminus \{0\}$. The full punctured plane is not simply connected, so Cauchy's theorem does not guarantee a primitive there — and indeed $\oint_{|z|=1} (1/z)\, dz = 2\pi i \neq 0$.
But restrict to the slit plane $\Omega = \mathbb{C} \setminus (-\infty, 0]$, which is simply connected. On $\Omega$, the principal branch of the logarithm
\begin{align*}
\operatorname{Log}(z) &= \ln|z| + i\operatorname{Arg}(z), \quad \operatorname{Arg}(z) \in (-\pi, \pi),
\end{align*}
satisfies $\frac{d}{dz}\operatorname{Log}(z) = 1/z$ on $\Omega$. So $\operatorname{Log}$ is the required primitive.
To make this concrete, take the closed contour $\gamma$ that goes from $z = 1$ along the upper semicircle $|z| = 1$ (parametrized by $\gamma(t) = e^{it}$, $t \in [0, \pi/2]$) to $z = i$, then straight down along the imaginary axis to $z = 1$ via $\gamma(t) = i(1 - t) + t$ for $t \in [0,1]$ appropriately reparametrized — or more simply, take the triangular contour with vertices $1$, $2$, and $1 + i$ traversed counterclockwise, all of which lie in $\Omega$. By the fundamental theorem applied to the primitive $\operatorname{Log}$:
\begin{align*}
\oint_\gamma \frac{dz}{z} &= \operatorname{Log}(\gamma(b)) - \operatorname{Log}(\gamma(a)) = \operatorname{Log}(1) - \operatorname{Log}(1) = 0,
\end{align*}
since $\gamma$ is closed ($\gamma(a) = \gamma(b)$). For any such closed contour in $\Omega$, the integral vanishes — not because $1/z$ has no singularity (it still has one at $0$), but because every closed curve in the slit plane winds zero times around the origin, and the primitive $\operatorname{Log}$ is single-valued there.
The moment we try to extend $\operatorname{Log}$ to the full punctured plane, the branch cut along $(-\infty, 0]$ introduces a discontinuity: approaching $-1$ from above gives $\operatorname{Log}(-1) = \pi i$, while from below gives $-\pi i$. The primitive ceases to exist globally, and a contour that crosses the branch cut — such as the unit circle — can give a nonzero integral.
[/example]
## The Cauchy Integral Formula
Cauchy's theorem is more than a vanishing statement. Its most powerful consequence is the Cauchy integral formula, which expresses the value of a holomorphic function at any interior point as a contour integral over the boundary. This is the result that makes complex analysis feel magical: knowing $f$ on a curve determines $f$ everywhere inside.
The key idea is deformation of contours. If $f$ is holomorphic on an annulus $r < |z - z_0| < R$, then the integral of $f$ over any closed contour in the annulus that winds once around $z_0$ equals the integral over any other such contour — they can be continuously deformed into each other without leaving the domain. This is the homotopy invariance of contour integrals for holomorphic functions.
[quotetheorem:345]
[explanation: Derivation of the Formula]
The function $g(z) = f(z)/(z - z_0)$ is holomorphic on $\Omega \setminus \{z_0\}$. To evaluate the integral, we deform $\gamma$ to a small circle $C_\varepsilon(z_0) = \{|z - z_0| = \varepsilon\}$ (possible by homotopy invariance, since $f$ is holomorphic in the annulus between the curves):
\begin{align*}
\oint_\gamma \frac{f(z)}{z - z_0}\, dz &= \oint_{C_\varepsilon(z_0)} \frac{f(z)}{z - z_0}\, dz.
\end{align*}
On $C_\varepsilon(z_0)$, write $z = z_0 + \varepsilon e^{it}$ with $t \in [0, 2\pi]$, so $dz = i\varepsilon e^{it}\, dt$ and $z - z_0 = \varepsilon e^{it}$:
\begin{align*}
\oint_{C_\varepsilon(z_0)} \frac{f(z)}{z - z_0}\, dz &= \int_0^{2\pi} \frac{f(z_0 + \varepsilon e^{it})}{\varepsilon e^{it}} \cdot i\varepsilon e^{it}\, dt = i\int_0^{2\pi} f(z_0 + \varepsilon e^{it})\, dt.
\end{align*}
As $\varepsilon \to 0^+$, continuity of $f$ gives $f(z_0 + \varepsilon e^{it}) \to f(z_0)$ uniformly in $t$. Therefore
\begin{align*}
\lim_{\varepsilon \to 0^+} i\int_0^{2\pi} f(z_0 + \varepsilon e^{it})\, dt &= i \cdot 2\pi \cdot f(z_0) = 2\pi i \, f(z_0),
\end{align*}
which gives the formula.
[/explanation]
The Cauchy integral formula has a higher-order version, expressing all derivatives of $f$ as contour integrals. This is the result that proves holomorphic functions are automatically infinitely differentiable — a far stronger conclusion than the definition requires.
[quotetheorem:2570]
The jump from $C^1$ to $C^\infty$ to real analytic — all from a single complex derivative — is the hallmark of rigidity in complex analysis. It has no counterpart in real analysis: a function $f: \mathbb{R} \to \mathbb{R}$ can be differentiable without being twice differentiable, and smooth without being analytic.
[example: Computing an Integral via the Cauchy Formula]
We compute
\begin{align*}
I &= \oint_{|z|=2} \frac{e^z}{z^3}\, dz.
\end{align*}
The integrand has the form $f(z)/(z - 0)^3$ with $f(z) = e^z$, which is entire. The singularity at $z = 0$ is enclosed by the circle $|z| = 2$. Applying the Cauchy integral formula for derivatives with $n = 2$ and $z_0 = 0$:
\begin{align*}
\oint_{|z|=2} \frac{e^z}{z^3}\, dz &= \frac{2\pi i}{2!} \cdot f''(0) = \pi i \cdot (e^z)''|_{z=0} = \pi i \cdot e^0 = \pi i.
\end{align*}
To verify the formula applies: $f(z) = e^z$ is holomorphic on $\mathbb{C} \supset \{|z| \leq 2\}$, the circle $|z| = 2$ is positively oriented, and $z_0 = 0$ lies inside. All hypotheses are satisfied, so $I = \pi i$.
[/example]
## Liouville's Theorem and the Fundamental Theorem of Algebra
The Cauchy integral formula gives estimates on the size of the derivatives of a holomorphic function in terms of the size of $f$ on a circle. These Cauchy estimates are the source of one of the most elegant consequences of the theory: Liouville's theorem, which says that the only bounded entire functions are constants.
To appreciate why this is remarkable, recall that in real analysis, $\sin(x)$ is bounded and smooth on all of $\mathbb{R}$, yet nonconstant. In complex analysis, $\sin(z)$ is not bounded on $\mathbb{C}$: for $z = iy$ with $y \to \infty$, $|\sin(iy)| = |\sinh(y)| \to \infty$. Boundedness, combined with holomorphicity, forces constancy.
[quotetheorem:2571]
The estimate follows from the Cauchy integral formula for derivatives: bound the integrand $|f(z)|/|z - z_0|^{n+1}$ by $M_r/r^{n+1}$ on the circle of radius $r$, and multiply by the length $2\pi r$.
[quotetheorem:346]
[explanation: Proof Strategy via Cauchy Estimates]
Fix any $z_0 \in \mathbb{C}$. Apply the Cauchy estimate for $n = 1$ on the circle of radius $r$ centered at $z_0$:
\begin{align*}
|f'(z_0)| &\leq \frac{M}{r}.
\end{align*}
Since $f$ is entire, this holds for every $r > 0$. Letting $r \to \infty$ forces $|f'(z_0)| = 0$, so $f'(z_0) = 0$. Since $z_0$ was arbitrary, $f' \equiv 0$ on $\mathbb{C}$, which implies $f$ is constant.
The argument is short, but notice how much it relies on: the Cauchy integral formula (to get the estimate), the fact that $f$ is holomorphic on all of $\mathbb{C}$ (so we can take $r$ as large as we like), and the boundedness of $f$ (so $M_r \leq M$ for all $r$). Remove any one condition and the theorem fails.
[/explanation]
Liouville's theorem has a classical application: a proof of the fundamental theorem of algebra that requires no topology beyond the maximum modulus principle.
[quotetheorem:347]
[explanation: Proof via Liouville]
Suppose $p(z)$ has no root in $\mathbb{C}$. Then $1/p(z)$ is entire. For large $|z|$, if $p(z) = a_d z^d + \cdots + a_0$ with $a_d \neq 0$, then
\begin{align*}
|p(z)| &\geq |a_d||z|^d - |a_{d-1}||z|^{d-1} - \cdots - |a_0| \geq \frac{|a_d|}{2}|z|^d
\end{align*}
for $|z|$ sufficiently large, say $|z| \geq R$. This means $|1/p(z)| \leq 2/(|a_d| R^d) \to 0$ as $|z| \to \infty$. In particular, $1/p$ is bounded for large $|z|$, and on the compact disk $\overline{B}(0, R)$ it is bounded by its maximum (since it is continuous). Therefore $1/p$ is a bounded entire function, hence constant by Liouville's theorem. But $p$ was nonconstant, so $1/p$ is nonconstant — a contradiction.
[/explanation]
## Homotopy Invariance and the Residue Theorem
Cauchy's theorem on simply connected domains is a special case of a more general principle: the integral of $f$ along a closed contour depends only on the homotopy class of the contour within the domain of holomorphicity of $f$. Two contours that can be continuously deformed into each other without crossing a singularity yield the same integral.
This homotopy invariance is what makes it possible to evaluate complicated integrals by deforming contours to simpler ones. The systematic version is the residue theorem, which handles domains with multiple holes — such as the complement of finitely many singular points.
To make homotopy invariance computational, we need to quantify the contribution of each singularity. Near an isolated singularity $z_0$, the function $f$ has a Laurent expansion — a generalized power series that includes negative powers of $(z - z_0)$. Each term $(z - z_0)^n$ with $n \neq -1$ has an antiderivative: $\frac{(z-z_0)^{n+1}}{n+1}$, which is single-valued in a punctured disk around $z_0$. The integral of $(z - z_0)^n$ around any small circle centered at $z_0$ therefore vanishes for $n \neq -1$. The single exception is $n = -1$: the function $(z - z_0)^{-1}$ has no single-valued antiderivative on $\mathbb{C} \setminus \{z_0\}$ (the logarithm branches), and its integral around the unit circle centered at $z_0$ is exactly $2\pi i$. This means that when we integrate $f$ around a small circle enclosing $z_0$, the entire contribution comes from the $c_{-1}$ term: every other Laurent coefficient integrates to zero. The coefficient $c_{-1}$ is the only term in the expansion that "remembers" the topology of the loop around $z_0$.
But not all isolated singularities behave alike, and the type of singularity determines how $c_{-1}$ can be computed and what one should expect. A singularity where $f$ merely appears to blow up but can actually be continuously extended is very different from one where $|f(z)| \to \infty$ as $z \to z_0$, and both differ from the chaotic behavior near an essential singularity. This classification matters for several reasons. Removable singularities contribute zero to any contour integral once extended and can be safely ignored. Poles contribute a finite residue that can be extracted by an explicit formula — $(m-1)!^{-1} \lim_{z \to z_0} \frac{d^{m-1}}{dz^{m-1}}[(z-z_0)^m f(z)]$ for a pole of order $m$ — without computing the entire Laurent series. Essential singularities are far more pathological: by the Great Picard theorem, $f$ takes every value in $\mathbb{C}$ (with at most one exception) infinitely often in any punctured neighborhood of an essential singularity. The classification is what makes the residue theorem a practical computational tool rather than a theoretical statement, because knowing the type of singularity tells you immediately how to extract the residue.
[definition: Isolated Singularity and Residue]
Let $f \in \mathcal{O}(\Omega \setminus \{z_0\})$ for some open $\Omega$ and $z_0 \in \Omega$. The point $z_0$ is an **isolated singularity** of $f$. Near $z_0$, $f$ has a **Laurent expansion**:
\begin{align*}
f(z) &= \sum_{n=-\infty}^{\infty} c_n (z - z_0)^n, \quad 0 < |z - z_0| < r,
\end{align*}
converging in the punctured disk $B(z_0, r) \setminus \{z_0\}$ for some $r > 0$. The **residue** of $f$ at $z_0$ is
\begin{align*}
\operatorname{Res}(f, z_0) &= c_{-1},
\end{align*}
the coefficient of $(z - z_0)^{-1}$ in the Laurent expansion. Isolated singularities are classified by the principal part $\sum_{n < 0} c_n (z-z_0)^n$: the singularity is **removable** if all $c_n = 0$ for $n < 0$; a **pole of order $m$** if $c_{-m} \neq 0$ and $c_n = 0$ for $n < -m$; and an **essential singularity** if infinitely many $c_n$ with $n < 0$ are nonzero.
[/definition]
[illustration:isolated-singularity-classification]
With the residue defined and singularities classified, the residue theorem assembles these local contributions into a global formula: the integral of $f$ around any closed contour equals $2\pi i$ times the sum of the residues at the enclosed singularities, weighted by winding numbers.
[quotetheorem:352]
The residue theorem unifies Cauchy's theorem (no singularities enclosed, all residue contributions zero) with the computation $\oint_{|z|=1} (1/z)\, dz = 2\pi i$ (one singularity of residue $1$, enclosed once). The winding number weights the contribution of each residue by how many times the contour goes around the corresponding singularity.
[example: A Real Integral via Residues]
We evaluate the real integral
\begin{align*}
I &= \int_{-\infty}^\infty \frac{1}{1 + x^2}\, dx
\end{align*}
using residues. Consider $f(z) = 1/(1 + z^2)$. Factor: $1 + z^2 = (z-i)(z+i)$, so $f$ has simple poles at $z = i$ and $z = -i$.
Take the semicircular contour $\Gamma_R = [-R, R] \cup C_R^+$, where $C_R^+$ is the upper semicircle $\{Re^{it} : t \in [0, \pi]\}$, traversed counterclockwise. For $R > 1$, the contour encloses only the pole at $z = i$.
The residue at $z = i$: since the pole is simple,
\begin{align*}
\operatorname{Res}(f, i) &= \lim_{z \to i} (z - i) \cdot \frac{1}{(z-i)(z+i)} = \frac{1}{i + i} = \frac{1}{2i}.
\end{align*}
By the residue theorem (winding number $1$ around $z = i$):
\begin{align*}
\oint_{\Gamma_R} f(z)\, dz &= 2\pi i \cdot \frac{1}{2i} = \pi.
\end{align*}
Estimate the integral over the semicircle $C_R^+$: for $z = Re^{it}$, $|1 + z^2| \geq |z|^2 - 1 = R^2 - 1$, so
\begin{align*}
\left|\int_{C_R^+} f(z)\, dz\right| &\leq \frac{1}{R^2 - 1} \cdot \pi R \to 0 \quad \text{as } R \to \infty.
\end{align*}
(Here we used the ML-inequality: $|\int_\gamma g\, dz| \leq \sup_{\gamma^*}|g| \cdot \text{length}(\gamma)$.) Therefore
\begin{align*}
\int_{-\infty}^\infty \frac{dx}{1 + x^2} &= \lim_{R \to \infty} \oint_{\Gamma_R} f(z)\, dz - \lim_{R \to \infty} \int_{C_R^+} f(z)\, dz = \pi - 0 = \pi.
\end{align*}
[/example]
[illustration:semicircular-contour-residue]
## Consequences and the Maximum Modulus Principle
Cauchy's theorem and its derivatives impose remarkable rigidity on holomorphic functions beyond infinite differentiability. Two further consequences deserve prominence: the open mapping theorem and the maximum modulus principle. Together, they show that holomorphic functions are in a precise sense the "most rigid" of all smooth maps.
In real analysis, a smooth nonconstant function $f: \mathbb{R} \to \mathbb{R}$ can easily have a local maximum in the interior of an interval — think of $f(x) = -x^2$. A nonconstant holomorphic function cannot: its modulus has no local maximum in the interior of its domain.
[quotetheorem:491]
[explanation: Intuition from the Mean Value Property]
The Cauchy integral formula applied to a circle $C_r(z_0) = \{|z - z_0| = r\} \subset \Omega$ gives
\begin{align*}
f(z_0) &= \frac{1}{2\pi i}\oint_{C_r(z_0)} \frac{f(z)}{z - z_0}\, dz = \frac{1}{2\pi}\int_0^{2\pi} f(z_0 + re^{it})\, dt.
\end{align*}
This is the **mean value property**: the value of $f$ at $z_0$ is the average of $f$ over any circle centered at $z_0$ contained in $\Omega$. Taking moduli,
\begin{align*}
|f(z_0)| &\leq \frac{1}{2\pi}\int_0^{2\pi} |f(z_0 + re^{it})|\, dt \leq \max_{|z-z_0|=r} |f(z)|.
\end{align*}
If $|f(z_0)|$ is a local maximum, then $|f(z_0)|$ equals the average of $|f|$ over circles around $z_0$, and yet $|f(z_0)|$ is the maximum of $|f|$ on those circles. This forces $|f|$ to be constant on each such circle. By analyticity, $f$ must then be constant on $\Omega$.
[/explanation]
The open mapping theorem reveals another dimension of this rigidity. In real analysis, a smooth nonconstant function can easily fail to send open sets to open sets: the function $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^2$ maps the open interval $(-1, 1)$ to $[0, 1)$, which is not open — the image has a boundary point at $0$ that is in the image but every neighborhood of which contains points not in the image. This happens because $f$ has a critical point at $x = 0$ where $f'(0) = 0$ and $f$ is not locally injective. The question is whether a nonconstant holomorphic function can do the same: can it map an open set to a set with a boundary point in its interior?
[quotetheorem:358]
The answer is no. No nonconstant holomorphic function can map an open set to a non-open image. The combination of the open mapping theorem and the maximum modulus principle characterizes holomorphic functions as the most constrained of smooth maps: they cannot have local modulus maxima in the interior, and they cannot collapse open sets to boundary-touched images.
[remark: Harmonic Functions and the Mean Value Property]
Both the maximum modulus principle and the mean value property are also valid for harmonic functions $u: \Omega \to \mathbb{R}$ (i.e., $\Delta u = 0$). This is not a coincidence: the real part $u = \operatorname{Re}(f)$ of any holomorphic $f$ is harmonic, because the Cauchy–Riemann equations give $\Delta u = \partial_x^2 u + \partial_y^2 u = \partial_x(\partial_y v) - \partial_y(\partial_x v) = 0$. The theory of holomorphic functions subsumes the theory of harmonic functions in the plane.
[/remark]
## References
Lars Ahlfors, *Complex Analysis* (3rd ed., 1979).
Elias M. Stein and Rami Shakarchi, *Complex Analysis* (Princeton Lectures in Analysis II, 2003).
Henri Cartan, *Elementary Theory of Analytic Functions of One or Several Complex Variables* (1963).
John B. Conway, *Functions of One Complex Variable* (2nd ed., 1978).
Walter Rudin, *Real and Complex Analysis* (3rd ed., 1987).