Complex Integration and Contour Integrals
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll define the contour integral, learn to evaluate it by parametrisation, meet the ML inequality for bounding integrals you cannot compute, and see the one integral that the rest of the section is built on.
The Concept
Section titled “The Concept”The definition
Section titled “The definition”A contour is a piecewise smooth curve with an orientation. The integral of along it is defined by pulling back to a real parameter:
The right-hand side is an ordinary integral of a complex-valued function of a real variable, which you handle by integrating real and imaginary parts separately. So the definition is not exotic - it is a line integral, exactly as in Calculus 3, with complex multiplication in place of a dot product.
The mechanical recipe is short and worth internalizing:
- Parametrise the contour as .
- Compute .
- Substitute into and multiply.
- Integrate over from to .
Basic properties, all immediate from the definition:
- Linearity.
- Reversal.
- Concatenation. Splitting a contour splits the integral.
- Reparametrisation invariance. Only the curve and its orientation matter, not the choice of parameter.
Path dependence, and when it goes away
Section titled “Path dependence, and when it goes away”Here is the central question of the lesson: does depend on the path, or only on the endpoints?
For a general continuous it depends on the path. But:
Fundamental theorem for contour integrals. If is analytic on a domain containing and , then
So if the integrand has an antiderivative, only the endpoints matter and the integral around any closed contour is 0.
That explains both halves of the figure. The integrand has antiderivative , so both routes to give the same answer . The integrand is analytic nowhere, has no antiderivative, and duly gives different answers on the two routes.
Cauchy’s theorem, next lesson, is the statement that analytic functions on a simply connected domain always have this property. This lesson is the groundwork for it.
The integral that everything rests on
Section titled “The integral that everything rests on”Compute where is the unit circle traversed counterclockwise. Parametrise for , so :
Not zero. This is the most important computation in the subject, and the reason is instructive: is analytic on the punctured plane, but the punctured plane is not simply connected, and has no single-valued antiderivative there. Its natural antiderivative is , which gains each time you loop the origin - exactly the branch-cut behaviour from last lesson.
Every you will meet for the rest of the section traces back to this one integral.
By contrast for every integer , because is then a genuine single-valued antiderivative on a neighbourhood of the circle. The exponent is the unique exception, which is why residues are about the coefficient of and nothing else.
The ML inequality
Section titled “The ML inequality”Often you need to show an integral is small without evaluating it. The tool is:
If for all on , and has length , then
Sometimes called the estimation lemma. It is the workhorse for showing that a large semicircular arc contributes nothing in the limit, which is the step that makes real integrals computable by contour methods later.
For a circle of radius the length is , so the bound is . If decays faster than , the contribution vanishes as .
Worked Examples
Section titled “Worked Examples”Example 1: Evaluate along the straight line from 0 to .
Solution. Parametrise for , so :
∎
Or immediately: has antiderivative , so the answer is . When an antiderivative exists, use it.
Example 2: Same integrand, the L-shaped path.
Solution. First leg along the real axis, for :
Second leg upward, for , with :
Total: . ✓ Same as Example 1, as the antiderivative guaranteed.
Example 3: on both paths.
Solution. Straight line, , :
L-shaped path. First leg: . Second leg, so :
Total: .
Path dependent. ∎ And necessarily so: is nowhere analytic, so it has no antiderivative.
Example 4: Evaluate on the circle .
Solution. Parametrise , :
∎
The radius cancelled. Any counterclockwise circle around the origin gives , and later we will see any counterclockwise closed contour enclosing the origin once does too.
Example 5: Evaluate .
Solution. is entire with antiderivative , so around a closed contour the integral is 0.
Checking directly with :
✓
Example 6: Use the ML inequality.
Show that as , where is the semicircle in the upper half plane.
Solution. On the contour, , so by the reverse triangle inequality
The semicircle has length . So
∎
This is the standard closing argument. It is exactly the step that lets a real integral over be replaced by a closed contour, which is how residues evaluate real integrals.
Example 7: An integral that is not zero despite an analytic integrand.
Explain why does not contradict the fundamental theorem.
Solution. The integrand is analytic on , so it is analytic at every point of the contour. But the theorem needs an antiderivative on a domain containing the contour, and has none on any annulus around 0: its antiderivative is multi-valued there, gaining per loop.
∎
The obstruction is topological, not analytic. The punctured plane has a hole, and that hole is the entire source of the residue calculus.
Real-World Applications
Section titled “Real-World Applications”Circulation and flux. For a fluid flow with complex potential , the contour integral has real part the circulation and imaginary part the flux through the curve. The Kutta–Joukowski lift formula is a contour integral of exactly this kind.
Ampère’s law. Computing the magnetic field around a wire is a closed line integral, and the two-dimensional case is literally with the current at the origin. The nonzero answer is the physical statement that the field circulates.
Inverse Laplace transforms. Recovering a time-domain signal from its transform is a contour integral, the Bromwich integral, evaluated by residues. Every step response computed symbolically goes through this.
Winding numbers in robotics and vision. Counting how many times a path loops a point is , and it is used for point-in-polygon tests and for topological path planning.
Numerical differentiation. Cauchy’s integral formula turns derivatives into contour integrals, and evaluating those integrals with the trapezoid rule on a circle gives derivative estimates that are far more accurate than finite differences.
Phase unwrapping. In interferometry and synthetic-aperture radar, accumulated phase around a loop is a contour integral whose nonzero value signals a defect or a residue in the data. The terminology is borrowed directly from this subject.
Retrying will remove your ✅ checkmark until you pass again.