# Complex Analysis/Contour integrals

## Integrals of complex-valued functions on real intervals

In calculus, we learned how to integrate (say, continuous) functions ${\displaystyle f:\mathbb {R} \to \mathbb {R} }$  on a finite interval ${\displaystyle [a,b]}$ . What happens now if the function ${\displaystyle f}$  we wish to integrate has values in the complex numbers (that is, ${\displaystyle f:\mathbb {R} \to \mathbb {C} }$ )? The answer is straightforward. We decompose ${\displaystyle f}$  by the formula ${\displaystyle f(x)=\operatorname {Re} f(x)+i\operatorname {Im} f(x)}$  and define the integral as follows:

Definition 4.1:

Let ${\displaystyle f:\mathbb {R} \to \mathbb {C} }$  continuous and complex-valued (or, alternatively, such that both ${\displaystyle \operatorname {Re} f(x)}$  and ${\displaystyle \operatorname {Im} f(x)}$  are integrable). Then we set

${\displaystyle \int _{a}^{b}f(x)dx:=\int _{a}^{b}\operatorname {Re} f(x)dx+i\int _{a}^{b}\operatorname {Im} f(x)dx}$ .

## The idea behind contour integrals

In this chapter, given a function ${\displaystyle f:O\to \mathbb {C} }$ , we want to integrate ${\displaystyle f}$  along a differentiable curve; roughly speaking, we want to determine the measure of the area under the graph which arises when flattening out the curve as indicated in the following animation:

We now want to figure out which formula could make sense for obtaining this measure (note that as in normal integration, we want the area where the function is negative to be subtracted from the value of the integral, instead of being added to it). The idea is to approximate the desired integral. Let a differentiable curve ${\displaystyle \gamma :[0,1]\to O}$  be given. We choose a certain decomposition

${\displaystyle [0,1]=[0=t_{0},t_{1}]\cup [t_{1},t_{2}]\cup \cdots \cup [t_{n-1},t_{n}=1]}$

where ${\displaystyle t_{0} . Then we approximate the desired integral, which we denote by ${\displaystyle \int _{\gamma }f(z)dz}$ , by a finite sum as follows:

${\displaystyle \int _{\gamma }f(z)dz\approx \sum _{j=0}^{n-1}(\gamma (t_{j})-\gamma (t_{j+1}))f(\gamma (t_{j}))}$ .

This sum sums small squares which approximate the integral, just like Riemann sums. As the maximum distance between consecutive ${\displaystyle t_{j}}$  gets smaller, we obtain better and better approximations. On the other hand,

${\displaystyle \sum _{j=0}^{n-1}(\gamma (t_{j})-\gamma (t_{j+1}))f(\gamma (t_{j}))=\sum _{j=0}^{n-1}f(\gamma (t_{j}))\int _{t_{j}}^{t_{j+1}}\gamma '(t)dt}$ ,

where the latter integral converges to

${\displaystyle \int _{0}^{1}f(\gamma (t))\gamma '(t)dt}$

as ${\displaystyle n\to \infty }$ . This is why we define:

Definition 4.2:

Let a ${\displaystyle {\mathcal {C}}^{1}}$  (in the real sense) curve ${\displaystyle \gamma :[a,b]\to \mathbb {C} }$  (which we shall also call contour) be given. Then we define the integral of ${\displaystyle f}$  along the contour ${\displaystyle \gamma }$  to be

${\displaystyle \int _{\gamma }f(z)dz:=\int _{a}^{b}f(\gamma (t))\gamma '(t)dt}$ .

In fact, even before talking about cycles (chapter 10) and related things we need a more general, but not much more difficult, definition of contour integrals, namely one which also holds for piecewise ${\displaystyle {\mathcal {C}}^{1}}$  curves.

Definition 4.3:

A function ${\displaystyle \gamma :[a,b]\to \mathbb {C} }$  is called a piecewise ${\displaystyle {\mathcal {C}}^{1}}$  contour if and only if there exists a decomposition ${\displaystyle [a,b]=[t_{0},t_{1}]\cup [t_{1},t_{2}]\cup \cdots \cup [t_{n-1},t_{n}]}$ , ${\displaystyle a=t_{0}  such that for all ${\displaystyle j\in \{0,\ldots ,n-1\}}$  the restriction

${\displaystyle \gamma \upharpoonright _{[t_{j},t_{j+1}]}}$

is ${\displaystyle {\mathcal {C}}^{1}}$ .

## Rules for contour integrals

In this section, we state and prove some formulas which hold for contour integrals and which we shall extensively use throughout the subsequent chapters.

Theorem 4.4:

Assume that ${\displaystyle f:O\to \mathbb {C} }$  has a primitive, that is a function ${\displaystyle F:O\to \mathbb {C} }$  such that ${\displaystyle F}$  is holomorphic and ${\displaystyle F'(z)=f(z)}$  for all ${\displaystyle z\in O}$ . Then for all piecewise ${\displaystyle {\mathcal {C}}^{1}}$  contours ${\displaystyle \gamma :[a,b]\to O}$  we have

${\displaystyle \int _{\gamma }f(z)dz=F(\gamma (b))-F(\gamma (a))}$ .

Theorem 4.5:

The contour integral is linear, that is for ${\displaystyle f,g:O\to \mathbb {C} }$  holomorphic, ${\displaystyle \lambda \in \mathbb {C} }$  and ${\displaystyle \gamma :[a,b]\to O}$  piecewise ${\displaystyle {\mathcal {C}}^{1}}$  we have

${\displaystyle \int _{\gamma }(f(z)+\lambda g(z))dz=\int _{\gamma }f(z)dz+\lambda \int _{\gamma }g(z)dz}$ .