49  Complex integration

Cauchy’s theorem, the integral formula, and their consequences

49.1 Contours and contour integrals

A contour (or path) in the complex plane is a piecewise smooth curve \(C\): \(z = z(t)\), \(a \leq t \leq b\), where \(z(t) = x(t) + iy(t)\) and \(z'(t)\) is piecewise continuous. Piecewise smooth means the curve can have finitely many corners, but no cusps or fractal wiggles — at each smooth piece the tangent direction is well-defined.

The contour integral of \(f\) along \(C\) is:

\[\int_C f(z)\,dz = \int_a^b f(z(t))\,z'(t)\,dt\]

This is just a real line integral in disguise. Writing \(f = u + iv\) and \(dz = dx + idy\), multiply out the product: \[(u + iv)(dx + i\,dy) = u\,dx + iu\,dy + iv\,dx + i^2 v\,dy = (u\,dx - v\,dy) + i(v\,dx + u\,dy)\]

Separating real and imaginary parts:

\[\int_C f\,dz = \int_C(u\,dx - v\,dy) + i\int_C(v\,dx + u\,dy)\]

Properties. - Linearity: \(\int_C (\alpha f + \beta g)\,dz = \alpha\int_C f\,dz + \beta\int_C g\,dz\). - Reversal: \(\int_{-C}f\,dz = -\int_C f\,dz\) (reversing the direction negates the integral). - Additivity: if \(C = C_1 + C_2\), then \(\int_C = \int_{C_1} + \int_{C_2}\).

49.1.1 The ML inequality

The most useful estimate for contour integrals:

\[\left|\int_C f(z)\,dz\right| \leq M \cdot L\]

where \(M = \max_{z \in C}|f(z)|\) and \(L\) is the arc length of \(C\). This is the complex analogue of \(|\int_a^b f\,dx| \leq \max|f| \cdot (b-a)\).

49.1.2 A fundamental example

\[\oint_{|z|=r} \frac{dz}{z^{n+1}} = \begin{cases} 2\pi i & n = 0 \\ 0 & n \neq 0 \end{cases}\]

Proof for \(n=0\): parametrise \(z = re^{i\theta}\), \(dz = ire^{i\theta}d\theta\): \[\int_0^{2\pi}\frac{ire^{i\theta}}{re^{i\theta}}\,d\theta = \int_0^{2\pi}i\,d\theta = 2\pi i\]

This single result — that the integral of \(1/z\) around the origin is \(2\pi i\) — is the seed from which the residue theorem grows.


49.2 Cauchy’s theorem

Cauchy-Goursat theorem. If \(f\) is analytic throughout a simply connected domain \(D\) (no holes — defined in Chapter 1), then for every closed contour \(C\) in \(D\):

\[\oint_C f(z)\,dz = 0\]

Intuition. Because the domain has no holes, any closed curve can be continuously shrunk to a point. The integral shrinks with it — to zero.

Consequence: path independence. If \(f\) is analytic in a simply connected domain and \(C_1\), \(C_2\) are two paths from \(z_1\) to \(z_2\) in that domain, then \(\int_{C_1}f\,dz = \int_{C_2}f\,dz\). The integral depends only on the endpoints, not the path.

Deformation principle. If \(f\) is analytic everywhere between two contours \(C_1\) and \(C_2\) (with the same orientation), then \(\int_{C_1}f\,dz = \int_{C_2}f\,dz\). Contours can be freely deformed through regions where \(f\) is analytic, without changing the integral.


49.3 Cauchy’s integral formula

Cauchy’s integral formula. Let \(f\) be analytic in and on a simple closed contour \(C\) (traversed counterclockwise). Then for any \(z_0\) interior to \(C\):

\[f(z_0) = \frac{1}{2\pi i}\oint_C \frac{f(z)}{z - z_0}\,dz\]

Equivalently:

\[\oint_C \frac{f(z)}{z - z_0}\,dz = 2\pi i\,f(z_0)\]

Proof sketch. Because \(f\) is analytic everywhere inside \(C\) except at \(z_0\), the deformation principle applies to the annular region between \(C\) and any circle around \(z_0\): the integrand \(f(z)/(z-z_0)\) is analytic there. Shrink \(C\) to a small circle \(C_\varepsilon\) of radius \(\varepsilon\) around \(z_0\) without changing the integral. As \(\varepsilon \to 0\), \(f(z) \to f(z_0)\) uniformly on \(C_\varepsilon\), and \(\oint_{C_\varepsilon} dz/(z-z_0) = 2\pi i\).

Significance. The value of an analytic function at any interior point is completely determined by its values on the boundary. This has no analogue in real analysis.

49.3.1 Derivatives of all orders

Differentiating the integral formula under the integral sign (justified by uniform convergence):

\[f^{(n)}(z_0) = \frac{n!}{2\pi i}\oint_C \frac{f(z)}{(z-z_0)^{n+1}}\,dz\]

Consequence. An analytic function has derivatives of all orders, all of which are themselves analytic. In real analysis, once-differentiable functions need not be twice differentiable. In complex analysis, once differentiable means infinitely differentiable — a qualitative difference.


49.4 Major consequences

49.4.1 Liouville’s theorem

A bounded entire function is constant.

Proof. If \(|f(z)| \leq M\) everywhere, the ML inequality applied to the derivative formula gives \(|f'(z_0)| \leq M/R\) for any circle of radius \(R\). Letting \(R \to \infty\) gives \(f'(z_0) = 0\).

49.4.2 Fundamental theorem of algebra

Every non-constant polynomial \(p(z)\) of degree \(n \geq 1\) has exactly \(n\) complex roots (counting multiplicity).

Proof sketch. If \(p\) had no roots, \(1/p(z)\) would be entire and bounded (since \(|p(z)| \to \infty\)), contradicting Liouville’s theorem.

49.4.3 Morera’s theorem

If \(f\) is continuous on a domain \(D\) and \(\oint_C f\,dz = 0\) for every closed triangle \(C\) in \(D\), then \(f\) is analytic in \(D\). (The converse of Cauchy’s theorem.)


49.5 Application: real integrals via contour integration

The tools developed so far can already evaluate some real integrals. The general strategy — closing a real integral with a contour in the complex plane and applying Cauchy’s theorem — will be developed fully in the next chapter. The key example here:

Example. \(\displaystyle\int_{-\infty}^{\infty} \frac{dx}{1+x^2}\).

The integrand \(f(z) = 1/(1+z^2)\) has poles at \(z = \pm i\). Close the real-line integral with a large semicircle \(\Gamma_R\) of radius \(R\) in the upper half-plane, forming a closed contour \(C = [-R,R] + \Gamma_R\).

The semicircle contribution vanishes. On \(\Gamma_R\), \(|z| = R\), so \(|1+z^2| \geq R^2 - 1\) for large \(R\). The ML inequality gives: \[\left|\int_{\Gamma_R}\frac{dz}{1+z^2}\right| \leq \frac{1}{R^2-1}\cdot \pi R \to 0 \quad\text{as } R\to\infty\]

Applying Cauchy’s integral formula. Factor the denominator: \(1/(1+z^2) = [1/(z+i)]/(z-i)\). This has the form \(f(z)/(z-z_0)\) with \(f(z) = 1/(z+i)\) and \(z_0 = i\). Since \(z_0 = i\) lies inside the upper half-plane contour and \(f(z) = 1/(z+i)\) is analytic there:

\[\oint_C \frac{dz}{1+z^2} = \oint_C \frac{dz}{(z-i)(z+i)} = 2\pi i \cdot f(i) = 2\pi i \cdot \frac{1}{2i} = \pi\]

Since the semicircle contributes nothing, the real-line integral equals \(\pi\) — confirming the known result \(\arctan(x)\big|_{-\infty}^{\infty} = \pi\).


49.6 Exercises


49.6.1 Exercise 1: Direct computation of a contour integral

Compute \(\displaystyle\int_C \bar{z}\,dz\) where \(C\) is the straight line from \(0\) to \(1+i\).


49.6.2 Exercise 2: Cauchy’s theorem — zero integral

Show that \(\displaystyle\oint_C \frac{e^z}{z^2+4}\,dz = 0\) where \(C\) is the circle \(|z| = 1\).


49.6.3 Exercise 3: Cauchy’s integral formula

Evaluate \(\displaystyle\oint_C \frac{e^z}{z - 1}\,dz\) where \(C\) is the circle \(|z| = 2\) (counterclockwise).


49.6.4 Exercise 4: Derivative formula

Evaluate \(\displaystyle\oint_C \frac{\cos z}{(z - \pi)^2}\,dz\) where \(C: |z| = 4\) (counterclockwise).


49.6.5 Exercise 5: ML inequality estimate

Without evaluating it exactly, show that \(\displaystyle\left|\oint_C \frac{dz}{z^3}\right| \leq \frac{\pi}{4}\), where \(C\) is the upper semicircle \(|z| = 2\) from \(z = 2\) to \(z = -2\).