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
The question for today
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 and . 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 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.
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.
Primitives organize path independence
If a holomorphic function F satisfies 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.
Work it through
A nonholomorphic integral that does not vanish
Evaluate with counterclockwise orientation. Explain why its nonzero result does not contradict Cauchy's theorem.
Choose for . Then and , so their product is the constant differential .
Integrating gives . Its absolute value also equals the length bound: the contour length is 4π and the integrand's magnitude is 2.
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 integral is . Continuity is sufficient to define it, but the vanishing theorem needs holomorphicity on an appropriate domain.
The living notebook
Explore the model
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.
- x component
- 1.393
- y component
- 0.975
- Magnitude
- 1.7
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.
Pause & reason
Check your understanding
Your turn
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 , so the integral is . 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.
Keep the idea
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.