3 Contour Integrals and Cauchy's Theorem: 3.1 Line Integrals of Complex Functions
3 Contour Integrals and Cauchy's Theorem: 3.1 Line Integrals of Complex Functions
3 Contour Integrals and Cauchy's Theorem: 3.1 Line Integrals of Complex Functions
u(x) dx + i v(x) dx. For vector fields F = (P, Q) in the plane we have
a a�
the line integral P dx+Q dy, where C is an oriented curve. In case P and
C
Q are complex-valued, in which case we call P dx + Q dy a complex 1-form,
we again define the line integral by integrating the real and imaginary parts
separately. Next we recall the basics of line integrals in the plane:
1
is simply connected, whereas a “ring” such as {z ∈ C : 1 < |z| < 2} is not.)
In case P dx + Q dy is a complex 1-form, all of the above still makes sense,
and in particular Green’s theorem is still true.
We will be interested in the following integrals. Let dz = dx + idy, a
complex 1-form (with P = 1 and Q = i), and let f (z) = u + iv. The
expression
f (z) dz = (u + iv)(dx + idy) = (u + iv) dx + (iu − v) dy
= (udx − vdy) + i(vdx + udy)
is
� also a complex 1-form, of a very special type. Then we can define
f (z) dz for any reasonable closed oriented curve C. If C is a parametrized
C
curve given by r(t), a ≤ t ≤ b, then we can view r� (t) as a complex-valued
curve, and then
� � b
f (z) dz = f (r(t)) · r� (t) dt,
C a
where the indicated multiplication is multiplication of complex numbers
(and not the dot product). Another notation which is frequently used is
the following. We denote a parametrized curve in the complex plane by z(t),
a ≤ t ≤ b, and its derivative by z � (t). Then
� � b
f (z) dz = f (z(t))z � (t) dt.
C a
2
One final point in this section: let f (z) = u + iv be any complex valued
function. Then we can compute ∇f , or equivalently df . This computation
is important, among other reasons, because of the chain rule: if r(t) =
(x(t), y(t)) is a parametrized curve in the plane, then
d ∂f dx ∂f dy
f (r(t)) = ∇f · r� (t) = + .
dt ∂x dt ∂y dt
d
(Here · means the dot product.) We can think of obtaining f (r(t)) roughly
dt
∂f ∂f
by taking the formal definition df = dx + dy and dividing both sides
∂x ∂y
by dt.
Of course we expect that df should have a particularly nice form if f (z)
is analytic. In fact, for a general function f (z) = u + iv, we have
� � � �
∂u ∂v ∂u ∂v
df = +i dx + +i dy
∂x ∂x ∂y ∂y
df = f � (z) dz
d
f (z(t)) = f � (z(t))z � (t)
dt
This is sometimes called the chain rule for analytic functions. For example,
if α = a + bi is a complex number, then applying the chain rule to the
analytic function f (z) = ez and z(t) = αt = at + (bt)i, we see that
d αt
e = αeαt .
dt
3
3.2 Cauchy’s theorem
Suppose now that C is a simple closed curve which is the boundary
� ∂D of a
region in C. We want to apply Green’s theorem to the integral f (z) dz.
C
Working this out, since
we see that
� �� � � �� � �
∂v ∂u ∂u ∂v
f (z) dz = − − dA + i − dA.
C D ∂x ∂y D ∂x ∂y
Thus, the integrand is always zero if and only if the following equations hold:
∂v ∂u ∂u ∂v
=− ; = .
∂x ∂y ∂x ∂y
Of course, these are just the Cauchy-Riemann equations! This gives:
Theorem (Cauchy’s integral theorem): Let C be a simple closed curve
which is the boundary ∂D of a region in C. Let f (z) be analytic in D. Then
�
f (z) dz = 0.
C
4
It is easy� to check directly that this integral is 0, for example because terms
2π
such as 0 cos 3t dt (or the same integral with cos 3t replaced by sin 3t or
cos 2t, etc.) are all zero.
On the other hand, again with C the unit circle,
� � 2π � 2π
1
dz = e−it ieit dt = i dt = 2πi �= 0.
C z 0 0
3.3 Antiderivatives
If D is a simply connected region, C is a curve contained
� in D, P , Q are de-
∂Q ∂P
fined in D and = , then the line integral P dx+Q dy only depends
∂x ∂y C �
on the endpoints of C. However, if P dx + Q dy = dF , then P dx + Q dy
C
only depends on the endpoints of C whether or not D is simply connected.
We see what this condition means in terms of complex function theory: Let
f (z) = u + iv and suppose that f (z) dz = dF , where we write F in terms of
its real and imaginary parts as F = U + iV . This says that
� � � �
∂U ∂U ∂V ∂V
(u dx − v dy) + i(v dx + u dy) = dx + dy + i dx + dy .
∂x ∂y ∂x ∂y
5
We say that F (z) is a complex antiderivative for f (z), i.e. F � (z) = f (z). In
this case
∂u ∂2U ∂2V ∂v
= 2
= = ;
∂x ∂x ∂x∂y ∂y
∂u ∂2U ∂2V ∂v
= 2
= − =− .
∂y ∂y ∂x∂y ∂x
It follows that, if f (z) has a complex antiderivative, then f (z) satisfies the
Cauchy-Riemann equations: f (z) is necessarily analytic.
Thus we see:
Theorem: If the 1-form f (z) dz is of the form dF , or equivalently the
vector field (u + iv, −v + iu) is a gradient vector field ∇(U + iV ), then both
F (z) and f (z) are analytic, and F (z) is a complex antiderivative for f (z):
F � (z) = f (z). Conversely, if F (z) is a complex antiderivative for f (z), then
F (z) and f (z) are analytic and f (z) dz = dF .
The theorem tells us a little more: Suppose that F (z) is a complex
antiderivative for f (z), i.e. F � (z) = f (z). If C has endpoints z0 and z1 , and
is oriented so that z0 is the starting point and z1 the endpoint, then we have
the formula � �
f (z) dz = dF = F (z1 ) − F (z0 ).
C C
For example, we have seen that, if C�is the curve parametrized by r(t) =
t+2t2 i, 0 ≤ t ≤ 1 and f (z) = z 2 , then z 2 dz = −11/3+(−2/3)i. But z 3 /3
C
is clearly an antiderivative for z 2 , and C has starting point 0 and endpoint
1 + 2i. Hence
�
z 2 dz = (1 + 2i)3 /3 − 0 = (1 + 6i − 12 − 8i)/3 = (−11 − 2i)/3,
C
6
Theorem: Let D be a simply connected region and let f (z) be an analytic
function in D. Then there exists a complex antiderivative F (z) for f (z).
Fixing
� a base point p0 ∈ D, a complex antiderivative F (z) for f (z) is given
by f (z) dz, where f (z) is any curve in D joining p0 to z.
C
As a consequence, we see that, if D is �
simply connected, f (z) is analytic
in D and C is a closed curve in D, then f (z) dz = 0 (Cauchy’s integral
C
formula 2), since f (z) dz = dF , where F is a complex antiderivative for f (z),
and hence � �
f (z) dz = dF = 0,
C C
by the Fundamental Theorem for line integrals. �
1
From this point of view, we can see why dz = 2πi �= 0, where C
C z
is the unit circle. The antiderivative of 1/z is log z, and so the expected
answer (viewing the unit circle as starting at 1 = e0 and ending at e2πi = 1
is log 1 − log 1. But log is not a single-valued function, and in fact as z = eit
turns along the unit circle, the value of log changes by 2πi. So the correct
answer is really log 1 − log 1, viewed as log e2πi − log e0 = 2πi − 0 = 2πi.
Of course, 1/z is analytic except at the origin, but {z ∈ C : z �= 0} is not
simply connected, and so 1/z need not have an antiderivative.
The real point, however, in the above example is something special about
log z, or 1/z, but not the fact that 1/z fails to be defined at the origin. We
could have looked at other negative powers of z, say z n where n is a negative
integer less than −1, or in fact any integer �= −1. In this case, z n has an
antiderivative
� z n+1 /(n + 1), and so by the fundamental theorem for line
integrals z n dz = 0 for every closed curve C. To see this directly for the
C
case n = −2 and the unit circle C,
� � 2π � 2π
z −2 dz = e−2it ieit dt = i e−it dt = 0.
C 0 0
This calculation can be done somewhat differently as follows. Let r(t) = eαt ,
where α is a nonzero complex number. Then, by the chain rule for analytic
functions, an antiderivative for the complex curve r(t) is checked to be
�
1
s(t) = eαt dt = eαt .
α
7
Hence,
� b
1 � αb �
eαt dt = e − eαa .
a α
�
In general, we have seen that z n dz = 0 for every integer n �= −1, where
C
C is a closed curve. To verify this for the case of the unit circle, we have
� � 2π � 2π � �2π
i
z dz =
n
e ie dt = i
nit it
e(n+1)it dt = e(n+1)it
C 0 0 i(n + 1) 0
i � � 1
= e2(n+1)πi − e0 = (1 − 1) = 0.
i(n + 1) n+1
The real part is the gradient of the function 12 ln(x2 + y 2 ) = d ln r. But the
imaginary part corresponds to the vector field
� �
−y x
F= , ,
x2 + y 2 x2 + y 2
8
Theorem (Cauchy’s integral formula): Let D be a simply connected
region in C and let C be a simple closed curve contained in D. Let f (z) be
analytic in D. Suppose that z0 is a point enclosed by C. Then
�
1 f (z)
f (z0 ) = dz.
2πi C z − z0
as we have seen. In fact, the theorem is true for a circle of any radius: if
Cr is a circle of radius r centered at 0, then Cr can be parametrized by reit ,
0 ≤ t ≤ 2π. Then
� � 2π � 2π
1 1
dz = ire dt = i
it
dt = 2πi,
Cr z 0 reit 0
�
1
independent of r. The fact that dz is independent of r also follows
Cr z
from Green’s theorem.
The general case is obtained from this special case as follows. Let C =
∂R, with R ⊆ D since D is simply connected. We know that C encloses z0 ,
which says that z0 ∈ R. Let Cr be a circle of radius r with center z0 . If
r is small enough, Cr will be contained in R, as will the ball Br of radius
r with center z0 . Let Rr be the region obtained by deleting Br from R.
Then ∂Rr = C − Cr , where this is to be understood as saying that the
boundary of Rr has two pieces: one is C with the usual orientation coming
from the fact that C is the boundary of R, and the other is Cr with the
clockwise orientation, which we record by putting a minus sign in front
9
of Cr . Now z0 does not lie in Rr , so we can apply Green’s theorem to the
function f (z)/(z − z0 ) which is analytic in D except at z0 and hence in Rr :
�
f (z)
dz = 0.
∂Rr z − z0
as before. Thus �
1
f (z0 ) dz = 2πif (z0 ),
Cr z − z0
� �
f (z) f (z)
and so dz = dz is approximately equal to 2πif (z0 ). In
C z − z0 C r z − z0 �
f (z)
fact, this becomes an equality in the limit as r → 0. But dz is
C z − z0
independent of r, and so in fact
�
f (z)
dz = 2πif (z0 ).
C z − z0
10
that the z in the formula is a dummy variable. Thus we could equally well
write: �
1 f (w)
f (z) = dw,
2πi C w − z
for all z enclosed by C. This description of the analytic function f (z) by
an integral depending only on its values on the boundary curve of R turns
out to have many very surprising consequences. For example, it turns out
that an analytic function actually has derivatives of all orders, not just first
derivatives, which is very unlike the situation for functions of a real variable.
In fact, every analytic function can be expressed as a power series. This fact
can be seen by rewriting Cauchy’s formula above as
�
1 f (w)
f (z) = dw,
2πi C w(1 − z/w)
1
and then expanding as a geometric series. The fact that every
1 − z/w
analytic function is given by a convergent power series is yet another way of
characterizing analytic functions.
3.5 Homework
�
1. Let f (z) = x2 + iy 2 . Evaluate f (z) dz, where (a) C is the straight
C
line joining 1 to 2 + i; (b) C is the curve (1 + t) + t2 i, 0 ≤ t ≤ 1. Are
the results the same? Why or why not might you expect this?
2. Let α = c + di be a complex number. Verify directly that
d αt
e = αeαt .
dt
3. Let D be a region in C and let u(x, y) be a real-valued function on D.
We seek another real-valued function v(x, y) such that f (z) = u + iv
is analytic, i.e. satisfies the Cauchy-Riemann equations. Equivalently,
we want to find a function v such that
∂v ∂u ∂v ∂u
=− and = ,
∂x ∂y ∂y ∂x
� �
∂u ∂u
which says that ∇v is the vector field F = − , . Show that
∂y ∂x
F satisfies the mixed partials condition exactly when u is harmonic.
Conclude that, if D is simply connected, then F is a gradient vector
field ∇v and hence that u is the real part of an analytic function.
11
4. Let C be a circle
� centered at 4+i of radius 1. Without any calculation,
1
explain why dz = 0.
C z
5. Let C be the curve defined parametrically as follows:
(b) By using the fact that the line integral of a complex function with
an antiderivative is zero and the above, conclude that
� �
f � (z) f (z)
dz = dz.
C z − z 0 C (z − z0 )2
12
(c) Now apply Cauchy’s formula to conclude that
�
1 f (z)
f � (z0 ) = dz.
2πi C (z − z0 )2
13