Line integrals in the complex plane
A complex function can be evaluated pointwise, but the next natural question is how to integrate it along a path winding through the plane. That question — the complex line (contour) integral — is the single construction that unlocks Cauchy's Integral Theorem, Cauchy's Integral Formula, and residue calculus later in Unit 5 of MA10001. It sits right after differentiability, analyticity, and the Cauchy-Riemann equations, and it needs nothing beyond parametrizing a curve and evaluating an ordinary real definite integral. This is not the vector-calculus line integral of a vector field — that machinery is out of scope here. Instead a contour integral is built entirely from real integrals of real and imaginary parts, and its most famous instance, , is the seed of everything that follows in the unit.
The contour integral is defined by substituting a parametrization into and multiplying by , turning it into an ordinary real definite integral over .
The core idea
Let be a piecewise-smooth curve in , parametrized as for , with the starting point and the ending point. For continuous on , the complex line integral is
where: is the tangent velocity of the parametrization, and the right-hand side is computed by ordinary real-variable calculus once is expanded into a single complex-valued function of the real variable . Expanding into real and imaginary parts shows the same integral can be written as a pair of real line integrals,
but in practice the parametrization route is the standard computational tool, and it is the one used throughout this article. Three properties, inherited directly from the ordinary real integral, are used constantly: linearity, ; orientation reversal, , where is traversed backwards; and additivity over sub-arcs, when . A fourth tool, the ML-inequality, bounds the integral without computing it: if on and has length , then
It follows from bounding pointwise and applying the triangle inequality for integrals, and it is the standard device for showing a contour integral vanishes in a limit — a technique reused heavily once residue calculus evaluates real integrals via contours later in the unit. A crucial early fact is that can genuinely depend on the path joining two fixed endpoints, not just on the endpoints themselves — path-independence is a special property tied to analyticity, and it is developed fully in the very next topic, Cauchy's Integral Theorem.
The goal is to show, starting only from the definition of as a limit of Riemann-type sums along , that once a parametrization of is chosen, the contour integral collapses exactly to the ordinary real definite integral , which is what makes every contour integral computable with first-year calculus.
Step 1. Partition the curve. Choose points along , corresponding to a partition of the parameter interval, and pick a sample point on the sub-arc between and . The defining Riemann sum for the contour integral is .
Step 2. Rewrite each increment using the parametrization. Since , the mean value theorem applied separately to and gives for a fine partition, because is exactly the rate at which the point moves as increases.
Step 3. Substitute back into the sum. Writing for some in the -th sub-interval, the sum becomes , which is precisely a Riemann sum for the ordinary real-variable function over .
Step 4. Take the limit. As the partition is refined, the left side converges to by definition, and the right side converges to because is continuous (a continuous composed with the continuous, piecewise-smooth , times the piecewise-continuous ). Equating the two limits gives , exactly the working formula used in every computation below.
Worked example
Problem. Evaluate where is the straight-line segment from to , and separately evaluate where is the unit circle traversed once counter-clockwise.
Step 1. Parametrize the segment as , , so , , and . Then , since .
Step 2. Apply the reduction formula from the derivation: .
Step 3. Sanity-check using the antiderivative. Because is analytic everywhere, this integral can also be computed as , and , giving the same — consistent with possessing an antiderivative on all of .
Step 4. Now the circle: parametrize by , , so , and , a constant. So .
The answers are: on the segment to , and .
Competitive stretch
Bound for the same segment using only the ML-inequality, without computing the integral. On , (the farthest point is ), so ; the segment has length . The ML-inequality gives . Checking against the exact value: , comfortably below the bound — as it must be, since ML only ever gives an upper estimate, never the exact answer.
Common traps
- Treating like . Always substitute into and multiply by , never just — dropping is the single most common arithmetic slip.
- Assuming every contour integral is path-independent. The unit-circle example shows a non-analytic-at-a-point integrand giving a nonzero closed-loop integral; path-independence is guaranteed only under Cauchy's Integral Theorem's hypotheses, covered next.
- Sign errors from orientation. Reversing the direction of traversal flips the sign of the whole integral; fix and state the direction (usually counter-clockwise for closed contours) before parametrizing.
- Misusing ML as an equality. The ML-inequality gives only an upper bound , useful for showing an integral is small or vanishes in a limit — never for computing the exact value, as the competitive stretch above makes explicit.
Ask the tutor: if parametrizing curves other than straight segments and full circles (semicircular arcs, quarter-arcs, or paths made of several joined pieces) feels unfamiliar, ask the AI tutor to walk through a few more contour setups before moving on to Cauchy's Integral Theorem.
Why does the contour integral of 1/z around the unit circle come out to 2 pi i instead of zero?
Because is not analytic at , which lies inside the circle encloses. Cauchy's Integral Theorem (the next topic) guarantees a contour integral is zero only when the integrand is analytic everywhere inside and on — that hypothesis fails here precisely at the enclosed singularity. The nonzero value is not a fluke; it is the first instance of residue calculus, where the residue of at is and the integral equals times that residue.
Do I always have to parametrize a curve before integrating, or are there shortcuts?
Parametrization is the universal method and the one this article relies on, but when the integrand is analytic on a simply connected region containing , you can instead use an antiderivative and evaluate it at the endpoints, exactly as the sanity-check for did with . That shortcut only works when an antiderivative exists, which is not guaranteed in general — near is the standard counterexample, so parametrization remains the fallback that always works.
What is the difference between this and the line integral of a vector field from vector calculus?
They look similar but are built differently. The vector-calculus line integral integrates a vector field's component along a curve using dot products, and it is explicitly out of scope for this course. The complex contour integral instead multiplies the complex function value by the complex tangent , and both pieces are complex numbers — the result mixes real and imaginary parts through complex multiplication, not a dot product. They can be related through the real-and-imaginary-part decomposition shown in the core idea section, but you should treat the contour integral as its own self-contained construction for this unit.