Of Notes

Complex Contour Integration

4 min read · revised 16 October 2026 · referred to by 1 note · ·

This is a form of integral denoted by which follows some contour which is also sometimes written as .

Particularly useful for a function so we write:

our curve will be defined generally as a parameter of which is real:

where for a closed contour. At time our position will be given by the contour so a displacement . To solve this we employ initially the simple direct parametrization method:

An infinitesimally small displacement of a position becomes so inside the integral we get:

By linearity of integration we get that:

Which gives us that one complex integral is equal to two real ones.

Apart from the above method of direct parametrization we can better leverage the Cauchy Residue Theorem.

Example versus along two paths

Compute from to along two different paths:

  1. : the straight line from to
  2. : along the real axis from to , then straight up from to

Then repeat both with instead. Do the two paths agree? Compare with why is not analytic in Complex Functions.

Two paths from \(0\) to \(1+i\): the diagonal \(\gamma_1\) and the corner path \(\gamma_2\).
Fig. 1. Two paths from to : the diagonal and the corner path .

Solution

Along with : for , so and :

Along with : split into two legs. First , , then , :

The two paths give different answers, so for the integral depends on the path.

Now with , along :

and along :

Both paths agree. This is because is analytic with antiderivative , so the integral only depends on the endpoints: . The function fails the Cauchy Riemann Conditions and has no such antiderivative.

Complexification of a real integral

The idea is that we take some complicated integral and we can extend it to and then use the tools of complex analysis to solve it and then restrict it back to along some contour which is related to (the real interval of integration).

If we have some we replace which is just substituting and then we can use the tools of complex analysis to solve the integral. This is particularly useful for integrals of the form:

There are three main families of contours for different "shapes" of integrals.

Semicircular Contours

  • Integrals that go over the entire real line can be solved by extending the integral to the complex plane and then closing the contour with a semicircle in the upper or lower half-plane.
    • The choice of which half-plane to use depends on the behavior of as and the location of singularities.
    • If your function has singularities in the upper half-plane, you would typically close the contour in the lower half-plane to avoid enclosing those singularities, and vice versa.

The way of handling the infinity is by using limits such that:

Unit Circle Contours

  • Often used for periodic functions in shapes like which can be transformed into a contour integral over the unit circle in the complex plane.
  • The substitution transforms one period into a full circle in the complex plane, allowing us to use the tools of complex analysis to evaluate the integral.
    • Why? Because and traces out the unit circle as goes from to .

where the identities derived from the inverse of Euler's Formula are used to express and in terms of and .

Keyhole Contours

  • Used for integrals that involve branch cuts or non-integer powers, such as for non-integer .
  • The contour typically consists of a line segment along the positive real axis, a small circle around the origin to avoid the branch point, and a large circle at infinity to close the contour.
  • The integral is then evaluated by considering the contributions from each part of the contour and applying the residue theorem.
/ or Ctrl K
search; empty, it shows notes to revise and lately read
m
mark this note to revise, or unmark it
c
cover maths, proofs and solutions to test yourself
n
uncover the next covered item
y
copy this note’s org-roam link
e
copy this note as markdown, LaTeX kept as TeX
p
the next problem to work; there h hints, s shows the solution, x passes it for today
→ ← j k space
turn the page, when reading in pages
l
on the map, trace the greatest distance, then the longest path
double-click
a formula, to copy its TeX
rest on maths
bind a part of a formula and open the wheel of notes it comes from; scroll or ↑ ↓ widens it, 1–6 goes
?
this card