Contour Integrals

Suppose you want to add up the values of a complex function. Not over an interval of the real line, though. Instead, along a curving path that winds through the complex plane. What does "integration" even mean when the domain of travel is a spiral or a circle, instead of a segment? This question is not idle curiosity. It is the doorway into the single most powerful computational tool in complex analysis. It turns seemingly impossible real integrals into algebra. It also reveals deep truths about analytic functions. The contour integral generalizes the familiar Riemann integral. It replaces the interval [a,b][a,b] with a parametrized curve γ\gamma in C\mathbb{C}. It does so in a way that respects the two-dimensional, rotational structure of the complex plane. A real integral only cares about the two endpoints. It also cares about the values in between along a straight track. A contour integral is different: it is sensitive to the shape of the path. This holds at least until we prove theorems (elsewhere) showing otherwise. For certain functions, shape stops mattering entirely. This article builds the machinery from the ground up. It covers what a contour is. It shows how to define ∫γf(z) dz\int_\gamma f(z)\,dz rigorously via parametrization. It also covers the elementary algebraic and estimation properties. These properties make the definition usable. We prove the fundamental estimate bounding a contour integral. This bound uses the length of the path and the size of the function. We also work two detailed examples. These examples expose exactly how orientation, parametrization, and singularities interact. Everything here is the necessary scaffolding for two of the deepest results in the subject. The first is Cauchy's theorem, which says integrals of analytic functions over closed contours often vanish. The second is quantitative estimates. These let us bound integrals without ever computing them exactly. Mastering the definitions and inequalities in this article matters greatly. It is what makes those later theorems intelligible rather than magical.

Key takeaways
  • A contour is a piecewise-C1C^1 curve γ:[a,b]→C\gamma:[a,b]\to\mathbb{C}; the contour integral ∫γf dz\int_\gamma f\,dz reduces integration to a single real-variable integral via parametrization.
  • The definition is built to be reparametrization-invariant (up to orientation) — the value depends on the oriented image curve, not on the specific parametrization.
  • Contour integrals are complex-linear in ff and additive over concatenation of paths; reversing orientation negates the integral.
  • The ML-inequality ∣∫γf dz∣≤M⋅L(γ)\left|\int_\gamma f\,dz\right| \le M\cdot L(\gamma) is the single most-used estimation tool in the theory.
  • Contour integrals of znz^n around circles centered at the origin are computed explicitly and reveal the special role of n=−1n=-1.
  • Key idea: integrating along a curve in C\mathbb{C} is defined by pulling everything back to a real parameter interval, turning geometry into calculus while keeping careful track of orientation and speed.

Where this lives today

Contour integration is the backbone of evaluating real definite integrals that resist elementary methods — physicists and engineers routinely compute integrals like ∫−∞∞cos⁡xx2+1dx\int_{-\infty}^\infty \frac{\cos x}{x^2+1}dx by closing a contour in the complex plane and invoking the machinery this article sets up. In electrical engineering and signal processing, contour integrals underlie the inverse Laplace and Z-transforms, used to reconstruct time-domain signals from frequency-domain representations. In physics, contour integration appears throughout quantum field theory (Feynman propagators, dispersion relations) and in statistical mechanics (partition function analysis via saddle-point and steepest-descent contours). In pure mathematics, contour integrals are the essential ingredient in proving the Fundamental Theorem of Algebra, in defining and computing residues, and in constructing analytic continuations of functions like the Riemann zeta function. Cryptography and coding theory occasionally invoke contour-integral representations when analyzing generating functions combinatorially (e.g., extracting coefficients via Cauchy's formula). Anywhere a problem can be recast as "integrate an analytic function around a loop," this article's definitions are the entry point.

:::quiz[If γ(t)=5eit\gamma(t) = 5e^{it} for t∈[0,2π]t \in [0, 2\pi], what is ∫γ1z dz\int_\gamma \frac{1}{z}\,dz?]

  • 00
  • πi\pi i
  • 2πi2\pi i ✓
  • 10πi10\pi i

:::quiz[For the contour γ(t)=2+3eit\gamma(t) = 2 + 3e^{it}, t∈[0,2π]t\in[0,2\pi], what is ∫γ(z−2)−2 dz\int_\gamma (z-2)^{-2}\,dz?]

  • 2πi2\pi i
  • 00 ✓
  • −2πi-2\pi i
  • 6πi6\pi i

:::quiz[Why does ∫γdzz−1\int_\gamma \frac{dz}{z-1} fail to be defined for γ(t)=eit\gamma(t)=e^{it}, t∈[0,2π]t\in[0,2\pi]?]

  • Because γ\gamma is not piecewise-smooth
  • Because the integrand is discontinuous at a point lying on the trace of γ\gamma ✓
  • Because γ\gamma is not a closed contour
  • Because 1/(z−1)1/(z-1) is not linear

Ask the tutor: How does the ML-inequality get used to prove that certain contour integrals vanish in the limit as a radius grows or shrinks to zero?

DefinitionContour and the Contour Integral

A path in C\mathbb{C} is a continuous function γ:[a,b]→C\gamma : [a,b] \to \mathbb{C}, where [a,b]⊂R[a,b] \subset \mathbb{R} is a closed bounded interval. The path is smooth if γ\gamma is continuously differentiable on [a,b][a,b] (one-sided derivatives at the endpoints) and γ′(t)≠0\gamma'(t) \neq 0 for all tt. A contour (or piecewise-smooth path) is a path γ:[a,b]→C\gamma:[a,b]\to\mathbb{C} for which there is a partition

a=t0<t1<⋯<tn=ba = t_0 < t_1 < \cdots < t_n = b

such that γ\gamma restricted to each [tk−1,tk][t_{k-1}, t_k] is smooth. The contour is closed if γ(a)=γ(b)\gamma(a) = \gamma(b). Let ff be a complex-valued function that is continuous on the image (trace) γ([a,b])\gamma([a,b]). The contour integral of ff along γ\gamma is defined by

∫γf(z) dz  :=  ∑k=1n∫tk−1tkf(γ(t)) γ′(t) dt,\int_\gamma f(z)\,dz \;:=\; \sum_{k=1}^{n} \int_{t_{k-1}}^{t_k} f\big(\gamma(t)\big)\,\gamma'(t)\,dt,

where each integral on the right is an ordinary Riemann integral of a complex-valued function of the real variable tt, understood by splitting into real and imaginary parts:

∫tk−1tku(t) dt:=∫tk−1tkRe⁡(u(t)) dt  +  i∫tk−1tkIm⁡(u(t)) dt.\int_{t_{k-1}}^{t_k} u(t)\,dt := \int_{t_{k-1}}^{t_k} \operatorname{Re}(u(t))\,dt \;+\; i\int_{t_{k-1}}^{t_k} \operatorname{Im}(u(t))\,dt.

The length of the contour is

L(γ)=∫ab∣γ′(t)∣ dt=∑k=1n∫tk−1tk∣γ′(t)∣ dt.L(\gamma) = \int_a^b |\gamma'(t)|\,dt = \sum_{k=1}^n \int_{t_{k-1}}^{t_k}|\gamma'(t)|\,dt.

Intuition

Think of γ(t)\gamma(t) as tracing out the position of a moving particle in the plane at time tt, and γ′(t)\gamma'(t) as its instantaneous velocity vector (a complex number encoding both speed and heading). The quantity f(γ(t)) γ′(t) dtf(\gamma(t))\,\gamma'(t)\,dt is a complex number for each instant: it multiplies the "local value" of ff felt by the particle by the tiny displacement γ′(t) dt\gamma'(t)\,dt the particle makes in that instant. Summing (integrating) these complex products over the whole time interval accumulates a single complex number — the contour integral. Crucially, this is not the same as integrating ff against arc length ∣dz∣|dz| (that would be a different, real-valued-weighted object used to define length or to prove the ML-inequality below). The contour integral retains directional information: the complex factor γ′(t)\gamma'(t) rotates and scales the value f(γ(t))f(\gamma(t)) according to the direction the curve is heading at that moment. This is why reversing the direction of travel flips the sign of the integral, and why re-tracing the same geometric curve at different speeds (but same direction) gives the same answer — speed is a red herring, direction is what matters. A second useful mental picture: writing f=u+ivf = u + iv and γ(t)=x(t)+iy(t)\gamma(t) = x(t) + iy(t), expanding the product f(γ(t))γ′(t) dtf(\gamma(t))\gamma'(t)\,dt shows that a contour integral packages two real line integrals (of the sort seen in vector calculus) into one complex number:

∫γf dz=∫γ(u dx−v dy)+i∫γ(v dx+u dy).\int_\gamma f\,dz = \int_\gamma (u\,dx - v\,dy) + i\int_\gamma (v\,dx + u\,dy).

This connects contour integration to the line integrals of vector fields you may have seen for computing work and flux, but bundled with the special complex-multiplicative structure that will later produce Cauchy's theorem.

:::svg[The contour γ(t)=eit\gamma(t) = e^{it} for t∈[0,π]t\in[0,\pi]: velocity γ′(t)=ieit\gamma'(t) = ie^{it} is tangent, rotated 90°90° ahead] Re Im 0 γ(0)=1 γ(π)=−1 γ(π/2)=i γ′(π/2) = i·i = −1 upper semicircle, |γ|=1

TheoremWell-Definedness and Basic Properties of the Contour Integral

Let γ:[a,b]→C\gamma:[a,b]\to\mathbb{C} be a contour and let ff be continuous on the trace of γ\gamma. Then: 1. (Reparametrization invariance.) If φ:[c,d]→[a,b]\varphi:[c,d]\to[a,b] is a continuous, piecewise-C1C^1, strictly increasing bijection with φ(c)=a, φ(d)=b\varphi(c)=a,\ \varphi(d)=b, and γ~=γ∘φ\tilde\gamma = \gamma\circ\varphi, then

∫γ~f(z) dz=∫γf(z) dz.\int_{\tilde\gamma} f(z)\,dz = \int_\gamma f(z)\,dz.

2. (Orientation reversal.) If γ−(t):=γ(a+b−t)\gamma^{-}(t) := \gamma(a+b-t) denotes γ\gamma traversed backward, then

∫γ−f(z) dz=−∫γf(z) dz.\int_{\gamma^-} f(z)\,dz = -\int_\gamma f(z)\,dz.

3. (Linearity.) For continuous f,gf,g on the trace of γ\gamma and α,β∈C\alpha,\beta\in\mathbb{C},

∫γ(αf+βg) dz=α∫γf dz+β∫γg dz.\int_\gamma (\alpha f + \beta g)\,dz = \alpha\int_\gamma f\,dz + \beta \int_\gamma g\,dz.

4. (Additivity over concatenation.) If γ1:[a,b]→C\gamma_1:[a,b]\to\mathbb{C} and γ2:[b,c]→C\gamma_2:[b,c]\to\mathbb{C} are contours with γ1(b)=γ2(b)\gamma_1(b) = \gamma_2(b), and γ=γ1∗γ2\gamma = \gamma_1 * \gamma_2 denotes the concatenated contour on [a,c][a,c], then

∫γf dz=∫γ1f dz+∫γ2f dz.\int_\gamma f\,dz = \int_{\gamma_1} f\,dz + \int_{\gamma_2} f\,dz.

5. (ML-inequality.) If ∣f(z)∣≤M|f(z)| \le M for all zz on the trace of γ\gamma, then

∣∫γf(z) dz∣  ≤  M⋅L(γ).\left|\int_\gamma f(z)\,dz\right| \;\le\; M \cdot L(\gamma).
Proof

We prove each part using only the definition of the contour integral as a sum of ordinary Riemann integrals, and standard one-variable calculus facts (substitution, triangle inequality for integrals).

(1) Reparametrization invariance. It suffices to treat one smooth piece, since a piecewise-C1C^1 increasing reparametrization respects any partition (refine partitions of [a,b][a,b] and [c,d][c,d] compatibly via φ\varphi). So assume γ\gamma is smooth on [a,b][a,b], φ:[c,d]→[a,b]\varphi:[c,d]\to[a,b] is a C1C^1 increasing bijection with φ(c)=a\varphi(c)=a, φ(d)=b\varphi(d)=b, and set γ~=γ∘φ\tilde\gamma = \gamma\circ\varphi. By the chain rule,

γ~′(s)=γ′(φ(s)) φ′(s).\tilde\gamma'(s) = \gamma'(\varphi(s))\,\varphi'(s).

Then, writing t=φ(s)t = \varphi(s),

∫cdf(γ~(s)) γ~′(s) ds=∫cdf(γ(φ(s))) γ′(φ(s)) φ′(s) ds.\int_c^d f(\tilde\gamma(s))\,\tilde\gamma'(s)\,ds = \int_c^d f\big(\gamma(\varphi(s))\big)\,\gamma'(\varphi(s))\,\varphi'(s)\,ds.

Apply the real-variable substitution rule t=φ(s)t = \varphi(s), dt=φ′(s) dsdt = \varphi'(s)\,ds (valid since φ\varphi is C1C^1 and strictly increasing, hence a valid change of variables on each real and imaginary part separately, as φ′(s)≥0\varphi'(s)\ge 0 so no absolute-value corrections arise):

=∫φ(c)φ(d)f(γ(t)) γ′(t) dt=∫abf(γ(t)) γ′(t) dt.= \int_{\varphi(c)}^{\varphi(d)} f(\gamma(t))\,\gamma'(t)\,dt = \int_a^b f(\gamma(t))\,\gamma'(t)\,dt.

This proves the smooth-piece case; summing over pieces of a partition gives the general piecewise-smooth statement.

(2) Orientation reversal. Let γ−(t)=γ(a+b−t)\gamma^-(t) = \gamma(a+b-t) for t∈[a,b]t \in [a,b]. This is precisely the composition γ∘ψ\gamma \circ \psi where ψ(t)=a+b−t\psi(t) = a+b-t is a C1C^1 decreasing bijection of [a,b][a,b] to itself with ψ(a)=b, ψ(b)=a\psi(a) = b,\ \psi(b)=a. We compute directly (this is the decreasing analogue of Part 1, so we redo the substitution argument tracking the sign): (γ−)′(t)=−γ′(a+b−t)(\gamma^-)'(t) = -\gamma'(a+b-t) by the chain rule. So

∫abf(γ−(t))(γ−)′(t) dt=−∫abf(γ(a+b−t)) γ′(a+b−t) dt.\int_a^b f(\gamma^-(t))(\gamma^-)'(t)\,dt = -\int_a^b f\big(\gamma(a+b-t)\big)\,\gamma'(a+b-t)\,dt.

Substitute s=a+b−ts = a+b-t, so ds=−dtds = -dt; as tt runs from aa to bb, ss runs from bb to aa. Hence

−∫abf(γ(a+b−t))γ′(a+b−t) dt=−∫baf(γ(s))γ′(s)(−ds)=−∫abf(γ(s))γ′(s) ds,-\int_a^b f(\gamma(a+b-t))\gamma'(a+b-t)\,dt = -\int_b^a f(\gamma(s))\gamma'(s)(-ds) = -\int_a^b f(\gamma(s))\gamma'(s)\,ds,

using ∫ba(−g) ds=∫abg ds\int_b^a (-g) \,ds= \int_a^b g\, ds. This equals −∫γf dz-\int_\gamma f\,dz, as claimed. (Applying this piece-by-piece to a partition gives the general piecewise-smooth case.)

(3) Linearity. On each smooth piece [tk−1,tk][t_{k-1},t_k],

∫tk−1tk(αf+βg)(γ(t)) γ′(t) dt=α∫tk−1tkf(γ(t))γ′(t) dt+β∫tk−1tkg(γ(t))γ′(t) dt,\int_{t_{k-1}}^{t_k}\big(\alpha f + \beta g\big)(\gamma(t))\,\gamma'(t)\,dt = \alpha\int_{t_{k-1}}^{t_k} f(\gamma(t))\gamma'(t)\,dt + \beta \int_{t_{k-1}}^{t_k} g(\gamma(t))\gamma'(t)\,dt,

which is exactly linearity of the ordinary Riemann integral of complex-valued functions (apply linearity separately to real and imaginary parts, then recombine). Summing over kk gives the result.

(4) Additivity over concatenation. By construction, γ=γ1∗γ2\gamma = \gamma_1 * \gamma_2 on [a,c][a,c] equals γ1\gamma_1 on [a,b][a,b] and γ2\gamma_2 on [b,c][b,c]; a partition of [a,b][a,b] into smooth pieces for γ1\gamma_1 together with one of [b,c][b,c] for γ2\gamma_2 is a valid partition of [a,c][a,c] for γ\gamma (continuity at bb holds since γ1(b)=γ2(b)\gamma_1(b)=\gamma_2(b) by hypothesis). The definition of ∫γf dz\int_\gamma f\,dz as a sum over partition pieces then splits exactly into the sum of the pieces from [a,b][a,b] and those from [b,c][b,c], i.e.

∫γf dz=∫γ1f dz+∫γ2f dz.\int_\gamma f\,dz = \int_{\gamma_1} f\,dz + \int_{\gamma_2} f\,dz.

(5) ML-inequality. First recall the standard fact for a Riemann integral of a complex-valued function h:[a,b]→Ch:[a,b]\to\mathbb{C}:

∣∫abh(t) dt∣≤∫ab∣h(t)∣ dt.(∗)\left|\int_a^b h(t)\,dt\right| \le \int_a^b |h(t)|\,dt. \tag{$\ast$}

Proof of (∗)(\ast): Let I=∫abh(t) dt∈CI = \int_a^b h(t)\,dt \in \mathbb{C}. If I=0I = 0 the inequality is trivial. Otherwise write I=∣I∣eiθI = |I|e^{i\theta} for some real θ\theta, so ∣I∣=e−iθI=∫abe−iθh(t) dt|I| = e^{-i\theta} I = \int_a^b e^{-i\theta}h(t)\,dt. Since ∣I∣|I| is real, ∣I∣=Re⁡(∫abe−iθh(t) dt)=∫abRe⁡(e−iθh(t)) dt|I| = \operatorname{Re}\left(\int_a^b e^{-i\theta}h(t)\,dt\right) = \int_a^b \operatorname{Re}\big(e^{-i\theta}h(t)\big)\,dt. Now for every real number xx, Re⁡(x)≤∣x∣\operatorname{Re}(x) \le |x|, so Re⁡(e−iθh(t))≤∣e−iθh(t)∣=∣h(t)∣\operatorname{Re}(e^{-i\theta}h(t)) \le |e^{-i\theta}h(t)| = |h(t)| for every tt. Monotonicity of the real Riemann integral gives

∣I∣=∫abRe⁡(e−iθh(t)) dt≤∫ab∣h(t)∣ dt,|I| = \int_a^b \operatorname{Re}(e^{-i\theta}h(t))\,dt \le \int_a^b |h(t)|\,dt,

proving (∗)(\ast). Now apply (∗)(\ast) to h(t)=f(γ(t))γ′(t)h(t) = f(\gamma(t))\gamma'(t) on each smooth piece [tk−1,tk][t_{k-1},t_k]:

∣∫tk−1tkf(γ(t))γ′(t) dt∣≤∫tk−1tk∣f(γ(t))∣ ∣γ′(t)∣ dt≤M∫tk−1tk∣γ′(t)∣ dt,\left|\int_{t_{k-1}}^{t_k} f(\gamma(t))\gamma'(t)\,dt\right| \le \int_{t_{k-1}}^{t_k} |f(\gamma(t))|\,|\gamma'(t)|\,dt \le M\int_{t_{k-1}}^{t_k}|\gamma'(t)|\,dt,

where we used ∣f(γ(t))∣≤M|f(\gamma(t))| \le M for all tt (since γ(t)\gamma(t) lies on the trace of γ\gamma), and monotonicity of the real integral again. Summing over kk and using the triangle inequality for finite sums of complex numbers,

∣∫γf dz∣=∣∑k=1n∫tk−1tkf(γ(t))γ′(t) dt∣≤∑k=1n∣∫tk−1tkf(γ(t))γ′(t) dt∣≤∑k=1nM∫tk−1tk∣γ′(t)∣ dt=M L(γ).\left|\int_\gamma f\,dz\right| = \left|\sum_{k=1}^n \int_{t_{k-1}}^{t_k} f(\gamma(t))\gamma'(t)\,dt\right| \le \sum_{k=1}^n \left|\int_{t_{k-1}}^{t_k} f(\gamma(t))\gamma'(t)\,dt\right| \le \sum_{k=1}^n M\int_{t_{k-1}}^{t_k}|\gamma'(t)|\,dt = M\,L(\gamma).

This completes the proof of all five parts. ■\blacksquare

∎

Worked examples

Example 1: Integrating znz^n around a circle not centered at the origin. Let γ(t)=2+3eit\gamma(t) = 2 + 3e^{it} for t∈[0,2π]t \in [0, 2\pi] — the circle of radius 33 centered at z0=2z_0 = 2, traversed once counterclockwise. We compute ∫γ(z−2)n dz\int_\gamma (z-2)^n\,dz for an integer nn (positive, negative, or zero), and separately note what happens for a shifted power like znz^n itself, to see the role of centering. Since γ(t)−2=3eit\gamma(t) - 2 = 3e^{it}, we have γ′(t)=3ieit\gamma'(t) = 3ie^{it}, so

∫γ(z−2)n dz=∫02π(3eit)n⋅3ieit dt=3n+1i∫02πei(n+1)t dt.\int_\gamma (z-2)^n\,dz = \int_0^{2\pi} (3e^{it})^n \cdot 3i e^{it}\,dt = 3^{n+1} i \int_0^{2\pi} e^{i(n+1)t}\,dt.

Case n≠−1n \neq -1: since n+1≠0n+1 \neq 0,

∫02πei(n+1)t dt=[ei(n+1)ti(n+1)]02π=ei(n+1)2π−1i(n+1)=1−1i(n+1)=0,\int_0^{2\pi} e^{i(n+1)t}\,dt = \left[\frac{e^{i(n+1)t}}{i(n+1)}\right]_0^{2\pi} = \frac{e^{i(n+1)2\pi} - 1}{i(n+1)} = \frac{1-1}{i(n+1)} = 0,

because ei(n+1)2π=1e^{i(n+1)2\pi} = 1 for any integer n+1n+1. So ∫γ(z−2)n dz=0\int_\gamma (z-2)^n\,dz = 0 for every integer n≠−1n \ne -1 (including negative nn, for which (z−2)n(z-2)^n is a well-defined continuous function on the trace, since z0=2z_0=2 is never on the circle ∣z−2∣=3|z-2|=3... wait, actually z=2z=2 is the center, not on the trace, so (z−2)n(z-2)^n for n<0n<0 is perfectly continuous on the circle ∣z−2∣=3|z-2|=3). Case n=−1n = -1: here n+1=0n+1 = 0 and ei⋅0⋅t=1e^{i\cdot 0 \cdot t} = 1 identically, so

∫02π1 dt=2π,\int_0^{2\pi} 1\,dt = 2\pi,

giving

∫γdzz−2=30i⋅2π=2πi.\int_\gamma \frac{dz}{z-2} = 3^0 i \cdot 2\pi = 2\pi i.

So we have derived the fundamental fact

∫γ(z−z0)n dz={2πi,n=−1,0,n∈Z, n≠−1,\int_\gamma (z-z_0)^n\,dz = \begin{cases} 2\pi i, & n = -1,\\ 0, & n \in \mathbb{Z},\ n\neq -1,\end{cases}

independent of the radius 33 — a first hint of the deep rigidity that Cauchy's theorem will explain. Note this computation required re-centering at z0=2z_0=2; if instead we integrated z−1z^{-1} (not (z−2)−1(z-2)^{-1}) over this same circle, the singularity at z=0z=0 lies inside the disk bounded by ∣z−2∣=3|z-2|=3 (since ∣0−2∣=2<3|0-2|=2<3) and a direct substitution z=2+3eitz = 2+3e^{it} gives a messier integral not reducible to a single clean exponential — illustrating why choosing the parametrization to match the geometry of the singularity matters. We do not evaluate that harder integral here; it becomes transparent once the residue and Cauchy machinery (foreshadowed by this article) is available.

Example 2: A non-closed contour and the ML-inequality in action. Let γ(t)=t+it2\gamma(t) = t + it^2 for t∈[0,1]t \in [0,1] — a parabolic arc from γ(0)=0\gamma(0) = 0 to γ(1)=1+i\gamma(1) = 1+i. We compute ∫γz dz\int_\gamma z\,dz two ways and also bound it via ML. Direct computation. Here γ′(t)=1+2it\gamma'(t) = 1 + 2it, so

∫γz dz=∫01(t+it2)(1+2it) dt.\int_\gamma z\,dz = \int_0^1 (t+it^2)(1+2it)\,dt.

Expand the integrand:

(t+it2)(1+2it)=t+2it2+it2+2i2t3=t+3it2−2t3.(t+it^2)(1+2it) = t + 2it^2 + it^2 + 2i^2t^3 = t + 3it^2 - 2t^3.

So

∫γz dz=∫01(t−2t3) dt+i∫013t2 dt=[t22−t42]01+i[t3]01=(12−12)+i(1)=i.\int_\gamma z\,dz = \int_0^1 \big(t - 2t^3\big)\,dt + i\int_0^1 3t^2\,dt = \left[\frac{t^2}{2} - \frac{t^4}{2}\right]_0^1 + i\big[t^3\big]_0^1 = \left(\frac12 - \frac12\right) + i(1) = i.

Check via antiderivative. Since z↦z2/2z \mapsto z^2/2 is an antiderivative of z↦zz\mapsto z on all of C\mathbb{C}, and this is a smooth path, the Fundamental-Theorem-of-Calculus-style formula (a fact that follows from the chain rule exactly as in real calculus, and which will be developed fully as the Fundamental Theorem for Contour Integrals) gives

∫γz dz=γ(1)22−γ(0)22=(1+i)22−0=1+2i+i22=2i2=i,\int_\gamma z\,dz = \frac{\gamma(1)^2}{2} - \frac{\gamma(0)^2}{2} = \frac{(1+i)^2}{2} - 0 = \frac{1 + 2i + i^2}{2} = \frac{2i}{2} = i,

matching our direct computation exactly, and confirming this integral depends only on endpoints here (a special feature of f(z)=zf(z)=z having an antiderivative, not a general phenomenon for arbitrary contours and functions). ML bound. Let's sanity-check with the ML-inequality (Part 5 of the theorem). On [0,1][0,1], ∣γ(t)∣=∣t+it2∣=t1+t2≤2|\gamma(t)| = |t+it^2| = t\sqrt{1+t^2} \le \sqrt{2}, so M=sup⁡t∈[0,1]∣f(γ(t))∣=2M = \sup_{t\in[0,1]}|f(\gamma(t))| = \sqrt 2 works as a bound for f(z)=zf(z)=z on the trace. The length is

L(γ)=∫01∣γ′(t)∣ dt=∫011+4t2 dt.L(\gamma) = \int_0^1 |\gamma'(t)|\,dt = \int_0^1 \sqrt{1+4t^2}\,dt.

Numerically, ∫011+4t2 dt≈1.4789\int_0^1 \sqrt{1+4t^2}\,dt \approx 1.4789 (this can be found via the standard antiderivative t21+4t2+14sinh⁡−1(2t)\frac{t}{2}\sqrt{1+4t^2} + \frac14 \sinh^{-1}(2t), evaluating to 125+14ln⁡(2+5)≈1.1180+0.3609≈1.4789\frac12\sqrt5 + \frac14\ln(2+\sqrt5) \approx 1.1180+0.3609 \approx 1.4789). So the ML bound predicts

∣∫γz dz∣≤2×1.4789≈2.091,\left|\int_\gamma z\,dz\right| \le \sqrt2 \times 1.4789 \approx 2.091,

while the true value has ∣i∣=1|i| = 1. The bound 1≤2.0911 \le 2.091 holds comfortably, as it must — the inequality is an upper bound, not an exact formula, and this example shows it can be quite loose; its value lies in giving guaranteed control without needing an exact antiderivative, which is essential for functions where no elementary antiderivative exists.

CounterexampleDropping continuity of ff on the trace breaks the ML-inequality and even well-definedness

The hypothesis that ff is continuous (at least) on the trace of γ\gamma is not a technicality — without some integrability control, the contour integral may fail to exist, and estimates like ML fail outright once ff is unbounded near the path. Take γ(t)=eit\gamma(t) = e^{it}, t∈[0,2π]t\in[0,2\pi], the unit circle, and consider

f(z)=1z−1.f(z) = \frac{1}{z - 1}.

The point z=1z=1 lies exactly on the trace of γ\gamma (at t=0t=0 and t=2πt=2\pi), so ff is not continuous (indeed not even defined) at a point of the trace — the hypothesis "ff continuous on the trace of γ\gamma" fails. Attempting the definition directly: γ′(t)=ieit\gamma'(t) = ie^{it}, so formally

∫γf(z) dz    ∫02πieiteit−1 dt.\int_\gamma f(z)\,dz \;\overset{?}{=}\; \int_0^{2\pi} \frac{ie^{it}}{e^{it}-1}\,dt.

Near t=0t=0 (and near t=2πt=2\pi), write eit−1≈ite^{it} - 1 \approx it for small tt, so the integrand behaves like i⋅1it=1t\frac{i\cdot 1}{it} = \frac1t, which is not integrable near t=0t=0 — the ordinary Riemann integral ∫02πieiteit−1dt\int_0^{2\pi}\frac{ie^{it}}{e^{it}-1}dt diverges (it has a genuine non-integrable pole, not a removable one), matching the fact that 1/(z−1)1/(z-1) blows up as z→1z\to 1 along the circle. So the contour integral ∫γdzz−1\int_\gamma \frac{dz}{z-1} does not exist as a finite complex number: the defining Riemann integral over [0,2π][0,2\pi] diverges. This shows why "continuous on the trace" cannot be dropped from the definition: without it, the very construction in the definition — reducing to an ordinary Riemann integral of f(γ(t))γ′(t)f(\gamma(t))\gamma'(t) — can fail to produce a well-defined finite value, and consequently no ML-type bound can apply either, since ff is unbounded on the trace (M=sup⁡∣f∣=∞M = \sup|f| = \infty), making the ML bound M⋅L(γ)M\cdot L(\gamma) vacuous (∞⋅2π\infty \cdot 2\pi). Contrast this with Example 1, where (z−2)−1(z-2)^{-1} was integrated over ∣z−2∣=3|z-2|=3: there the singularity at z=2z=2 is not on the trace (it's strictly inside), so ff is continuous (even analytic) on the trace, and the integral exists and is finite (2πi2\pi i). The distinction between "singularity avoided by the path" and "singularity sitting on the path" is exactly what the continuity-on-the-trace hypothesis is designed to police.

Scope, edge cases & common traps

SituationWhat to watch for
Non-simple contours (self-intersecting)Definition still applies verbatim — it only needs γ\gamma piecewise-C1C^1, not injective.
Contour passing through a singularity of ffIntegral may not exist (see counterexample); check continuity on the entire trace, not just "most" points.
Reparametrization by a decreasing mapReverses orientation, negates the integral — don't assume all reparametrizations preserve the value.
Estimating ∣∫γf dz∣|\int_\gamma f\,dz|ML gives an upper bound only; it can be very loose (see Example 2) and never claims to be sharp.
Length L(γ)L(\gamma) for piecewise contourSum lengths of smooth pieces; a corner (non-differentiable point) does not need special treatment beyond the partition.
Confusing ∫γf dz\int_\gamma f\,dz with ∫γf ∣dz∣\int_\gamma f\,|dz|The former is complex, direction-sensitive; the latter (arc-length integral) is a different, always-nonnegative-weighted object used inside the proof of ML, not the contour integral itself.

The mathematician behind it

Origins · 1 minAugustin-Louis Cauchy and how this was discovered
AC
Augustin-Louis Cauchy
1789–1857 · Post-revolutionary France, École Polytechnique and the Paris Academy of Sciences

Cauchy was the principal architect of rigorous complex analysis, introducing contour integration as a tool in the 1810s–1820s to make sense of divergent-looking real integrals via detours through the complex plane. His insistence on rigorous limits and precise definitions (rather than the more formal, symbol-pushing style of his predecessors) set the standard for 19th-century analysis, and his name attaches to nearly every foundational theorem in the field: the Cauchy integral theorem, the Cauchy integral formula, and Cauchy sequences.

History
- 1814 — Cauchy submits his first major memoir on definite integrals, introducing ideas that would evolve into contour integration.
- 1821 — Cauchy's Cours d'Analyse sets new standards of rigor for limits and continuity that underpin the modern definition of the contour integral.
- 1825 — Cauchy's memoir on integrals between imaginary limits states an early version of what becomes Cauchy's integral theorem.
- 1831 — Cauchy, in exile in Turin, develops the integral formula bearing his name, deepening the theory built on contour integrals.
- 1851 — Puiseux and later Riemann further clarify path-independence and singularities, cementing contour integration as standard machinery.
Why does the contour integral depend on direction but not on speed?

The definition builds in γ′(t) dt\gamma'(t)\,dt, the instantaneous displacement vector. If you retrace the same geometric path faster, γ′(t)\gamma'(t) scales up but dtdt shrinks correspondingly under a valid increasing reparametrization, and the reparametrization-invariance theorem shows these cancel exactly, leaving the integral unchanged. But if you reverse direction, the displacement vector γ′(t)\gamma'(t) points the opposite way at every instant, flipping the sign of every infinitesimal contribution, hence flipping the total sum. This mirrors the real-variable fact that ∫ab=−∫ba\int_a^b = -\int_b^a: direction of traversal is an orientation choice baked into the sign of the integral, whereas speed is merely a bookkeeping choice about how you traverse the same oriented geometric object.

Is a contour integral the same as a line integral from vector calculus?

They're closely related but not identical in general purpose. Writing f=u+ivf = u+iv and z=x+iyz = x+iy, expanding ∫γf dz\int_\gamma f\,dz literally produces two real line integrals, ∫γ(u dx−v dy)+i∫γ(v dx+u dy)\int_\gamma(u\,dx - v\,dy) + i\int_\gamma(v\,dx+u\,dy), each of the exact type you'd compute for work or flux of a 2D vector field. The distinguishing feature of the complex contour integral is that it packages these two real integrals together using the specific algebraic rule of complex multiplication, which later makes Cauchy's theorem and the residue calculus possible — a bookkeeping trick from vector calculus alone would not automatically encode this structure.

What happens if the contour is not piecewise-smooth, just continuous?

The definition given here genuinely requires piecewise-C1C^1 regularity, because it relies on γ′(t)\gamma'(t) existing (at least piecewise) to form the integrand f(γ(t))γ′(t)f(\gamma(t))\gamma'(t). For merely continuous (rectifiable) curves, a more general theory defines contour integrals as limits of Riemann–Stieltjes-type sums, but this requires additional machinery (bounded variation, etc.) beyond the scope of the elementary piecewise-smooth definition. In practice, essentially every contour one meets in a first course — lines, circles, arcs, polygonal paths — is piecewise-smooth, so the definition given is fully adequate for computing all standard examples.

Why is the case n=−1n=-1 special in ∫γ(z−z0)n dz=0\int_\gamma (z-z_0)^n\,dz = 0 or 2πi2\pi i?

For n≠−1n \ne -1, the integrand (z−z0)n(z-z_0)^n has an honest antiderivative (z−z0)n+1n+1\frac{(z-z_0)^{n+1}}{n+1} that is single-valued on any circle not passing through z0z_0, so the integral around a closed loop must vanish (it's evaluated at the same start and end point). For n=−1n=-1, the "antiderivative" would formally be log⁡(z−z0)\log(z-z_0), but the complex logarithm is inherently multi-valued — going once around z0z_0 increases its imaginary part by 2πi2\pi i, exactly the discrepancy that shows up as the nonzero value 2πi2\pi i. This single computation is the seed from which the general theory of winding numbers and residues grows.

Does the value of a contour integral depend on which point of a closed contour you call the "start"?

No — for a closed contour, shifting the starting point (reparametrizing "where t=at=a" points to) does not change the value of ∫γf dz\int_\gamma f\,dz, provided the direction of traversal and the full loop are unchanged. This follows from additivity: splitting the loop at the new start point and reassembling via concatenation just regroups the same sum of contributions in a different order, and complex addition is commutative and associative, so the total is identical.

Can the ML-inequality ever be an equality?

Yes, in special cases. Equality ∣∫γf dz∣=ML(γ)\left|\int_\gamma f\,dz\right| = M L(\gamma) can occur when the integrand f(γ(t))γ′(t)f(\gamma(t))\gamma'(t) has constant argument (constant phase) along the entire path and ∣f∣|f| attains its bound MM everywhere on the trace, so that no partial cancellation occurs when the complex contributions are summed. A simple instance is f(z)=1f(z)=1 on a path traversed at constant speed in a fixed direction (a straight segment), where the integral is literally the displacement vector and its magnitude equals the length times the (constant) bound M=1M=1. In most interesting examples, though — as Example 2 showed — the inequality is strict and can be quite loose.

How does this article's content connect to Cauchy's theorem?

Cauchy's theorem states that for functions analytic on a suitable domain, contour integrals over closed contours vanish, generalizing the phenomenon glimpsed in Example 1 (where (z−z0)n(z-z_0)^n integrated to zero for n≠−1n\ne -1). Everything in this article — the precise definition, linearity, additivity over concatenation, and especially the ML-inequality — is the toolkit used to prove that theorem, typically via approximating a general analytic function locally by polynomials or via Green's-theorem-style arguments applied to the real and imaginary line integral decomposition described above. Without a rigorous, reparametrization-invariant definition of ∫γf dz\int_\gamma f\,dz in hand, statements like "the integral around any closed contour is zero" would not even be meaningful.

Before this

Where this leads