advanced28 min studyLesson 362 in Mathematics

Contour integrals and Cauchy's theorem

Compute oriented integrals and distinguish local holomorphicity from the global conditions that make closed integrals vanish.

On this page

What you’ll understand

  • Evaluate a complex contour integral using a piecewise smooth parameterization.
  • State a valid domain version of Cauchy's theorem.
  • Explain how primitives and holes affect path independence.

A complex contour integral combines a function's values with the direction in which its argument moves. It is not the integral of the function's magnitude along a curve. Orientation and the complex differential matter. Cauchy's theorem then makes a remarkable connection: holomorphicity, a local differentiability condition, forces many closed integrals to vanish. The permitted domain and the location of holes are essential parts of that statement. Ignoring them would incorrectly make the integral of one over z around the origin disappear.

Parameterize the differential as well as the function

Let γ be a piecewise continuously differentiable curve with a specified orientation, and let f be continuous on its image. Substitute z=γ(t)z=\gamma(t) and dz=γ′(t)dtdz=\gamma'(t)dt. The complex product retains both components of the tangent. Reversing orientation changes the sign, and subdividing or making an orientation-preserving piecewise smooth reparameterization leaves the integral unchanged. Integrating ∣f(γ(t))∣ ∣γ′(t)∣|f(\gamma(t))|\,|\gamma'(t)| instead produces a nonnegative length-weighted magnitude that generally is a different quantity.

The triangle inequality yields the useful length bound: the absolute value of the contour integral is at most the curve length times the maximum of |f| on the curve. This estimate can prove that an auxiliary arc disappears in a limiting argument without computing it exactly. Before using the maximum, check that f is continuous on the compact curve. Poles on the path invalidate an ordinary contour integral and require an explicitly different interpretation, such as an indentation or principal value.

∫γf(z) dz=∫abf(γ(t))γ′(t) dt,∣∫γf(z) dz∣≤L(γ)max⁡z∈γ∣f(z)∣\int_\gamma f(z)\,dz=\int_a^b f(\gamma(t))\gamma'(t)\,dt,\qquad \left|\int_\gamma f(z)\,dz\right|\le L(\gamma)\max_{z\in\gamma}|f(z)|
The curve is oriented and piecewise C¹ and f is continuous on it. The bound uses arc length, whereas the integral itself uses the complex tangent.↔ Scroll wide equations horizontally.

State where the contour may be contracted

One convenient Cauchy theorem says: if f is holomorphic on a simply connected open domain D, its integral around every closed piecewise smooth curve in D is zero. A more local formulation uses a simple closed piecewise smooth contour and holomorphicity on an open neighborhood of its curve and enclosed region. These are sufficient hypotheses, not an invitation to ignore the enclosed set. The Cauchy–Goursat theorem does not require continuity of the derivative as an additional assumption.

The geometry behind the theorem is deformation through a region containing no obstruction to holomorphicity. Integrals of a holomorphic function are unchanged under a fixed-endpoint homotopy of paths within its domain. A closed curve contractible there can therefore shrink to a point. On a punctured domain a loop may fail to contract without passing through a missing point. The integrand 1/z is holomorphic on the punctured plane, but the unit circle encloses the excluded origin and its integral is 2πi.

∮∣z∣=Rdzz=2πi(R>0, counterclockwise),∮γf(z) dz=0if f has a primitive on the domain\oint_{|z|=R}\frac{dz}{z}=2\pi i\quad(R>0,\ \text{counterclockwise}),\qquad \oint_\gamma f(z)\,dz=0\quad\text{if }f\text{ has a primitive on the domain}
The first integral is a direct circle parameterization and exhibits a hole obstruction. A globally defined primitive makes every closed integral vanish, even without assuming the domain is simply connected.↔ Scroll wide equations horizontally.

Primitives organize path independence

If a holomorphic function F satisfies F′=fF'=f on a domain, integrating the chain rule along each smooth piece gives an endpoint difference. Thus any two paths with the same endpoints have the same integral. Conversely, a continuous function with path-independent integrals on a domain defines a primitive by integrating from a fixed base point; a small-segment calculation verifies its derivative. In particular, a holomorphic function on a simply connected domain has a primitive. The domain must support the full definition, not merely the two paths drawn.

Simple connectedness is sufficient for every holomorphic integrand to have a primitive, but a particular integrand can have a primitive on a domain with holes. For example, z is the derivative of z²/2 on the punctured plane too. By contrast, a global logarithm would be a primitive of 1/z, and its nonzero circle integral rules one out there. This distinction keeps a domain property separate from the behavior of one chosen function.

A nonholomorphic integral that does not vanish

Evaluate ∮∣z∣=2z‾ dz\oint_{|z|=2}\overline z\,dz with counterclockwise orientation. Explain why its nonzero result does not contradict Cauchy's theorem.

  1. Choose z=2eitz=2e^{it} for 0≤t≤2π0\le t\le2\pi. Then z‾=2e−it\overline z=2e^{-it} and dz=2ieitdtdz=2ie^{it}dt, so their product is the constant differential 4i dt4i\,dt.

  2. Integrating gives 4i∫02πdt=8πi4i\int_0^{2\pi}dt=8\pi i. Its absolute value also equals the length bound: the contour length is 4π and the integrand's magnitude is 2.

  3. Conjugation is not complex differentiable at any point, because real and imaginary difference quotients disagree. Therefore the holomorphicity hypothesis fails throughout the enclosed disk, even though the function is continuous and the integral is well defined.

The result

The integral is 8πi8\pi i. Continuity is sufficient to define it, but the vanishing theorem needs holomorphicity on an appropriate domain.

Explore the model

Interactive lab

Interactive lab · vectors

Separate a position from its conjugate

Pause and Reset; set Angle=60 degrees and Magnitude=2. Predict z=1+i√3. For a separate comparison Reset and set Angle=−60 degrees,Magnitude=2 to display its conjugate. The modulus is unchanged while orientation reverses. This manually compares complex values; the vector instrument does not parameterize the entire contour or integrate the product with dz.

Separate a position from its conjugatePlayback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Current readings: x component: 1.393; y component: 0.975; Magnitude: 1.7. All parameters are adjustable with the labeled controls below.−7.46−3.7303.737.46−3.5−1.7501.753.5xyvvₓ = 1.39
Vectorx / y projectionsTrace marker
x component
1.393
y component
0.975
Magnitude
1.7
t = 0 s

Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forContour integrals depend on complex phase and the tangent, so preserving magnitudes does not preserve the integral.

Check your understanding

Why does Cauchy's vanishing theorem not force the integral of 1/z around the unit circle to be zero?

Try it yourself

Integrate z² from 0 to 1+i along any piecewise smooth path in the complex plane. Would excluding the origin from a path's surrounding domain change the endpoint computation when both endpoints are permitted?

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Find a globally defined polynomial primitive before parameterizing separate line segments.

Compare with the solution

A primitive is F(z)=z3/3F(z)=z^3/3, so the integral is (1+i)3/3=(−2+2i)/3(1+i)^3/3=(-2+2i)/3. The primitive remains defined when restricted to any domain, including a punctured one. For endpoints that lie in that domain and paths contained in it, the same endpoint rule applies. In the stated path starting at zero one uses the full plane; zero itself cannot be an endpoint of a path required to lie in the punctured plane.

Take it with you

  • The complex tangent, orientation, and domain all enter a contour integral.
  • Cauchy's theorem needs holomorphicity on a region appropriate to the contour.
  • A primitive gives path independence even on some domains with holes.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.