In complex analysis, contour integration is a method of evaluating certain integrals along paths in the complex plane. Contour integration is used to study complex-valued functions that are holomorphic in a region.
Contour integration is closely related to the calculus of residues, a method of complex analysis. The power of contour integration comes from the fact that the integrals of holmorphic functions are invariant under deforming the contour, provided the deformation does not cross a singularity or branch cut. Thus the value of a contour integral between fixed endpoints is not governed by the precise shape of the contour, but by its winding around the singularities of the integrand.
One use of contour integrals is the evaluation of certain integrals of functions over the real line. Regarding the real line as a contour, and deforming it into the complex plane often leads to simpler integrals than those which can be found by using only real variable methods. In modern language, the integral of a holomorphic or meromorphic function is a pairing between a cohomology class of differential forms and a homology class of cycles in the domain of the function. It also has various applications to physics.
Curves in the complex plane In complex analysis, a contour is a type of curve in the complex plane. In contour integration, contours provide a precise definition of the curves on which an integral may be suitably defined. A curve in the complex plane is defined as a continuous function from a closed interval of the real line to the complex plane: .
This definition of a curve coincides with the intuitive notion of a curve, but includes a parametrization by a continuous function from a closed interval. This more precise definition allows us to consider what properties a curve must have for it to be useful for integration. In the following subsections we narrow down the set of curves that we can integrate to include only those that can be built up out of a finite number of continuous curves that can be given a direction. Moreover, we will restrict the "pieces" from crossing over themselves, and we require that each piece have a finite (non-vanishing) continuous derivative. These requirements correspond to requiring that we consider only curves that can be traced, such as by a pen, in a sequence of even, steady strokes, which stop only to start a new piece of the curve, all without picking up the pen.
Directed smooth curves Contours are often defined in terms of directed smooth curves. These provide a precise definition of a "piece" of a smooth curve, of which a contour is made.
A smooth curve is a curve with a non-vanishing, continuous derivative such that each point is traversed only once ( is one-to-one), with the possible exception of a curve such that the endpoints match (). In the case where the endpoints match, the curve is called closed, and the function is required to be one-to-one everywhere else and the derivative must be continuous at the identified point (). A smooth curve that is not closed is often referred to as a smooth arc.
The parametrization of a curve provides a natural ordering of points on the curve: comes before if . This leads to the notion of a directed smooth curve. It is most useful to consider curves independent of the specific parametrization. This can be done by considering equivalence classes of smooth curves with the same direction. A directed smooth curve can then be defined as an ordered set of points in the complex plane that is the image of some smooth curve in their natural order (according to the parametrization). Note that not all orderings of the points are the natural ordering of a smooth curve. In fact, a given smooth curve has only two such orderings. Also, a single closed curve can have any point as its endpoint, while a smooth arc has only two choices for its endpoints.
Contours Contours are the class of curves on which we define contour integration. A contour is a directed curve which is made up of a finite sequence of directed smooth curves whose endpoints are matched to give a single direction. This requires that the sequence of curves be such that the terminal point of coincides with the initial point of for all such that . This includes all directed smooth curves. Also, a single point in the complex plane is considered a contour. The symbol is often used to denote the piecing of curves together to form a new curve. Thus we could write a contour that is made up of curves as
Contour integrals The contour integral of a complex function is a generalization of the integral for real-valued functions. For continuous functions in the complex plane, the contour integral can be defined in analogy to the line integral by first defining the integral along a directed smooth curve in terms of an integral over a real valued parameter. A more general definition can be given in terms of partitions of the contour in analogy with the partition of an interval and the Riemann integral. In both cases the integral over a contour is defined as the sum of the integrals over the directed smooth curves that make up the contour.
For continuous functions To define the contour integral in this way one must first consider the integral, over a real variable, of a complex-valued function. Let be a complex-valued function of a real variable, . The real and imaginary parts of are often denoted as and , respectively, so that
Then the integral of the complex-valued function over the interval is given by
Now, to define the contour integral, let be a continuous function on the directed smooth curve . Let be any parametrization of that is consistent with its order (direction). Then the integral along is denoted
and is given by
This definition is well defined. That is, the result is independent of the parametrization chosen. In the case where the real integral on the right side does not exist the integral along is said not to exist.
As a generalization of the Riemann integral The generalization of the Riemann integral to functions of a complex variable is done in complete analogy to its definition for functions from the real numbers. The partition of a directed smooth curve is defined as a finite, ordered set of points on . The integral over the curve is the limit of finite sums of function values, taken at the points on the partition, in the limit that the maximum distance between any two successive points on the partition (in the two-dimensional complex plane), also known as the mesh, goes to zero.
Direct methods Direct methods involve the calculation of the integral through methods similar to those in calculating line integrals in multivariate calculus. This means that we use the following method: parametrizing the contour The contour is parametrized by a differentiable complex-valued function of real variables, or the contour is broken up into pieces and parametrized separately. substitution of the parametrization into the integrand Substituting the parametrization into the integrand transforms the integral into an integral of one real variable. direct evaluation The integral is evaluated in a method akin to a real-variable integral.
Example A fundamental result in complex analysis is that the contour integral of is , where the path of the contour is taken to be the unit circle traversed counterclockwise (or any positively oriented Jordan curve about ). In the case of the unit circle there is a direct method to evaluate the integral
In evaluating this integral, use the unit circle as a contour, parametrized by , with , then and
which is the value of the integral. This result only applies to the case in which is raised to power of . If the power is not equal to , then the result will always be zero.
Applications of integral theorems Applications of integral theorems are also often used to evaluate the contour integral along a contour, which means that the real-valued integral is calculated simultaneously along with calculating the contour integral.
Integral theorems such as the Cauchy integral formula or residue theorem are generally used in the following method: a specific contour is chosen: The contour is chosen so that the contour follows the part of the complex plane that describes the real-valued integral, and also encloses singularities of the integrand so application of the Cauchy integral formula or residue theorem is possible application of Cauchy's integral theorem The integral is reduced to only an integration around a small circle about each pole. application of the Cauchy integral formula or residue theorem Application of these integral formulae gives us a value for the integral around the whole of the contour. division of the contour into a contour along the real part and imaginary part The whole of the contour can be divided into the contour that follows the part of the complex plane that describes the real-valued integral as chosen before (call it ), and the integral that crosses the complex plane (call it ). The integral over the whole of the contour is the sum of the integral over each of these contours. demonstration that the integral that crosses the complex plane plays no part in the sum If the integral can be shown to be zero, or if the real-valued integral that is sought is improper, then if we demonstrate that the integral as described above tends to 0, the integral along will tend to the integral around the contour . conclusion If we can show the above step, then we can directly calculate , the real-valued integral.
Example 1 Consider the integral
To evaluate this integral, we look at the complex-valued function
which has singularities at and . We choose a contour that will enclose the real-valued integral, here a semicircle with boundary diameter on the real line (going from, say, to ) will be convenient. Call this contour .
There are two ways of proceeding, using the Cauchy integral formula or by the method of residues:
Using the Cauchy integral formula Note that:
thus
Furthermore, observe that
Since the only singularity in the contour is the one at , then we can write
which puts the function in the form for direct application of the formula. Then, by using Cauchy's integral formula,
We take the first derivative, in the above steps, because the pole is a second-order pole. That is, is taken to the second power, so we employ the first derivative of . If it were taken to the third power, we would use the second derivative and divide by , etc. The case of to the first power corresponds to a zero order derivative—just itself.
We need to show that the integral over the arc of the semicircle tends to zero as , using the estimation lemma
where is an upper bound on along the arc and the length of the arc. Now,
So
Using the method of residues Consider the Laurent series of about , the only singularity we need to consider. We then have
(See the sample Laurent calculation from Laurent series for the derivation of this series.)
It is clear by inspection that the residue is , so, by the residue theorem, we have
Thus we get the same result as before.
Contour note As an aside, a question can arise whether we do not take the semicircle to include the other singularity, enclosing . To have the integral along the real axis moving in the correct direction, the contour must travel clockwise, i.e., in a negative direction, reversing the sign of the integral overall.
This does not affect the use of the method of residues by series.
Example 2 – Cauchy distribution The integral