Understanding Complex Differentiation
Understanding Complex Differentiation
Chapter One
COMPLEX DIFFERENTIATION
1. Revision
A complex number is simply an ordered pair of real numbers. Therefore, any vector in the xy
plane corresponds to a complex number, and vice-versa. As a rule we shall write x + iy for the
pair (x, y); the special symbol i represents the pair (0, 1), which in vector analysis is usually
written ̂. Indeed, many engineering books (and the programming language python) use the
notation x + jy, which is probably more intuitive. Moreover, x and y are called the “real” and
“imaginary” part of z, respectively, despite the fact that they are both real numbers. All this
can be confusing at the beginning, but you’ll get used to it.
Addition of complex numbers corresponds to addition of vectors by the “parallelogram
law”. Multiplication of a complex number by a real number s has the effect of scaling the
corresponding vector; if s is negative, then the direction is also changed.
Multiplication between complex numbers is defined by the formula
def
(x + iy) · (a + ib) = (xa − yb) + i (xb + ya).
i2 = −1.
It’s also easy to show that in this way all standard properties of “usual” multiplication (com-
mutative, associative and distributive) are preserved: convince yourself of this.
In case you wonder, it’s impossible to carry this idea into 3-dimensional vector spaces: it
has been shown that no algebra may be constructed over triplets of real numbers, preserving all
the “usual” properties of addition and multiplication.
Multiplying a complex number by its own conjugate, one always gets a real quantity:
The right-hand side of this expression is never negative; clearly, it’s zero only if x = y = 0 (i.e., if
z = 0). Except for this special case, the product of a complex number by its complex conjugate
is a positive real number.
2 Complex Differentiation
x + iy x + iy a − ib (x + iy)(a − ib)
= · = .
a + ib a + ib a − ib a 2 + b2
is called the modulus of z. Note that the modulus of a complex number is equal to the length
of the corresponding vector. ◭
z1 z1 · z 2
= .
z2 |z2 |2
then clearly the expressions in brackets on the left-hand side are the cosine and sine, respectively,
of some
p angle φ which is called the argument of x + iy. Recall that, if z = x + iy, then
|z| = x2 + y 2 . Therefore, we may write
where φ and |z| are real numbers; φ is the argument and |z| is the modulus of z.
Note however that the argument is not uniquely defined; adding 2π radians to φ does not
affect cos φ and sin φ.
Finally, applying Euler’s formula, we get:
z = |z| eiφ .
In other words, when two complex numbers are multiplied, the modulus of the product equals
the product of the moduli, and the argument of the product equals the sum of the arguments.
Another important application of the polar form comes in the calculation of powers: if
z = |z| eiφ ,
z = 2 ei5π/3+i2kπ .
z 11 = 211 ei55π/3+i22kπ .
We may ignore the factor ei22kπ because it’s equal to 1. Moreover 55π/3 = π/3 + 18π; hence
√
cos(55π/3) = cos π/3 = 1/2, sin(55π/3) = sin π/3 = 3/2.
De Moivre’s formula may be applied in reverse to find roots of complex numbers, but then one
must be careful: look at the following example.
√
◮Example 3 Find z 1/5 , if z = 1 − i 3.
Solution: Using the results of the preceding example, we note that arg z may be written in any
of the forms
arg z = 5π/3, = 11π/3, = 17π/3, = 23π/3, = 29π/3, etc.
All these values correspond to the same z because they differ by multiples of 2π. However, when
we take the 5th root, we must divide the argument by 5, and this does make a difference. We
get results like
√ √ √ √ √ √
2 eiπ/3 , 2 ei11π/15 , 2 ei17π/15 , 2 ei23π/15 , 2 ei29π/15 , 2 ei35π/15 ,
5 5 5 5 5 5
and so on. Further analysis (e.g., calculating cos π/3, cos 11π/15 etc.) shows that the first five
complex numbers in the list are different, but the sixth one is identical to the first. This had to
be expected, because 35π/15 and π/3 differ exactly by 2π. In the same way, one may discover
that the seventh value
√ coincides with the second, the third value with the eighth, and so on.
The expression (1 − i 3)1/5 has exactly five distinct values in the complex field. ◭
This example may be adapted to roots of any integer order: one finds that for any complex z
and integer n, the expression z 1/n has always exactly n distinct complex values.
2. Elementary Complex Functions
A complex function is a law that associates a complex variable z with one or more complex
variable(s) w1 , w2 , w3 , etc. If only one variable w is determined by z, the function is called
single-valued; if more than one, the function is called multi-valued.
For example f (z) = z 3 and f (z) = (z + 3)/(5z + i4) are single-valued; f (z) = z 1/3 is
multi-valued (three-valued, if you wish to be precise).
A single-valued complex function may be seen as an ordered pair of real functions of the
variables x and y; however, in many applications one doesn’t have to get into such details.
The real and imaginary part of a complex number are themselves real functions of z: as a matter
of fact, it’s easy to see that
z+z z−z
x= , y= ;
2 i2
verify this. However, many applications of complex functions are based on functions that do not
depend on anything but the variable z alone. We’ll come back to this point.
Complex Differentiation 5
pn (z) = an · (z − λ1 ) · (z − λ2 ) · (z − λ3 ) · · · (z − λn ),
where an is the coefficient of the leading term. Some of the numbers λ1 , λ2 , . . . may coincide.
They are called the roots or also the zeroes of the polynomial; when some of them coincide, we
say the polynomial has a multiple root (or roots).
Rational functions are, by definition, fractions where both the numerator and the denom-
inator are polynomials, and the denominator is not constant. Obviously, if numerator and
denominator have common factors, they may be cancelled. If f (z) is a rational fraction without
common factors, then (by the fundamental theorem of algebra) there is at least one point λ
where f (λ) = 0, and at least one point µ where 1/f (µ) = 0, i.e., |f | becomes infinite.
THE EXPONENTIAL AND RELATED FUNCTIONS
The exponential function is defined by the series
∞
X zk
exp z = .
k!
k=0
It may be shown that this series converges absolutely at every point z of the complex plane. It
is often written ez , and we shall use this notation too, although we’ll see later that this is not
entirely correct.
Since this series converges absolutely, one may sum the even powers and the odd powers
separately:
X zk X zk
ez = + . (1)
k! k!
k=even k=odd
which hold for all complex a and b. Furthermore, one may show that
cosh2 z − sinh2 z = 1
cosh(a ± b) = cosh a cosh b ± sinh a sinh b, sinh(a ± b) = sinh a cosh b ± cosh a sinh b
Recall that equation (1) is valid for any complex z. Hence, replacing z with iz in (1), we get:
X (iz)k X (iz)k
eiz = + .
k! k!
k=even k=odd
Now, note that i2 = −1, hence i4 = +1, i6 = −1 and so on. Raising i to an even power gives
always ±1, with alternating sign. From here, it’s easy to deduce that i3 = −i, i5 = +i, etc. As
an exercise, verify that the following expansions are valid:
∞ ∞
X z 2ℓ X z 2ℓ+1
eiz = (−1)ℓ · +i (−1)ℓ · =
(2ℓ)! (2ℓ + 1)!
ℓ=0 ℓ=0
= cos z + i sin z.
The last line is precisely Euler’s formula, which you saw in first year in the context of real
variables. Therefore, Euler’s formula may be extended to complex arguments.
Inverting Euler’s formula, one gets immediately:
these formulas are very useful. Also, from (3) one may immediately deduce that
cos2 z + sin2 z = 1
Complex Differentiation 7
cos(a ± b) = cos a cos b ∓ sin a sin b, sin(a ± b) = sin a cos b ± cos a sin b
for every complex a and b; note the sign inversion on the left-hand side.
THE LOGARITHM
The complex logarithm is defined by requiring that the identity
elog z = z,
be valid for all complex z 6= 0. To understand this definition, it’s convenient to start from the
polar form of complex numbers,
z = |z| ei arg z , (5)
where one may always substitute |z| with eln |z| , because |z| is real (recall that we assume z 6= 0),
and ln |z| represents its natural logarithm, which you studied in first-year calculus. Having done
this substitution, we find that (5) becomes
This is the definition of the complex logarithm; for example, see R.P. Boas, Invitation to Complex
Analysis, Random House (New York), 1987. Note immediately that, unlike the real logarithm,
which is single-valued, the complex logarithm is multi-valued because arg z may be increased or
decreased by any integer multiple of 2π. The complex logarithm is an infinitely-valued
function. For this reason, among others, we keep the different symbols, “log” and “ln”, for the
complex, and the real, logarithm respectively.
The most important property of the logarithmic function, i.e.,
is preserved, because
and so
log(z1 · z2 ) = ln |z1 | + ln |z2 | + i arg z1 + i arg z2 = log z1 + log z2 .
Unlike its real counterpart, the complex logarithm is defined for all complex z (except z = 0, of
course). Negative numbers are not a problem, because eiπ = cos π + i sin π = −1.
◮Example 5 Observe that −3 = e+iπ · eln 3 · ei2kπ , where k may be any integer. Therefore,
Everything comes at a price. In order to give a meaning to the logarithm of a negative number,
we must give up the one-valued-ness of the function. ◭
8 Complex Differentiation
√ √
1 1
1+i= 2 √ +i√ = 2 cos π/4 + i sin π/4 =
2 2
√
= 2 eiπ/4 .
√
So, |i + i| = 2 and arg(i + i) = 41 π + 2kπ, where k may be any integer. Hence,
√
1+i= 2 eiπ/4+i2kπ ;
1
log(1 + i) = 2 ln 2 + iπ/4 + i2kπ,
|z| = 13,
and z is a point in the second quadrant (x is negative, y is positive). Hence arg z is an angle
between π/2 and π, plus an arbitrary integer multiple of 2π.
Let’s find first an angle between 0 and 2π radians. Given that
recall that the real function arcsin x ranges from −π/2 and +π/2, but arccos x ranges from 0 to
π. It finally follows that log(−5 + i12) = ln 13 + i(2k + 1)π − i arcsin 12/13. ◭
√
This√is a quadratic
√ equation in λ; solving
√ it, we find
√ that λ = 2 ± 3. Note, however, that
2 − 3 = 1/(2 + 3): hence, ln(2 − 3) = − ln(2 + 3). Going back to the variable z, we find
that √
iz 2 + 3√
e =
1/(2 + 3).
Taking the complex logarithm of both sides, we get:
√
iz = ± ln(2 + 3) + i2kπ [k = 0, ±1, ±2, . . .]
(the term i2kπ may be inserted on either side of the equality, because k may be positive or
negative). So, dividing through by i, we find that
√
z = ±i ln(2 + 3) + 2kπ.
Note that there is no real solution; note also that all solutions differ by multiples of 2π: the
cosine remains a periodic function with period 2π, even when complex values are allowed. ◭
POWERS
As a rule, the expression az , where a and z may be complex numbers, is always interpreted as
a z = ez log a
,
So, finally, √ √
(1 + i)3 = 8 · (−1 + i)/ 2 = −2 + i2.
As an exercise, verify that (1 + i) · (1 + i) · (1 + i) = −2 + i2. ◭
10 Complex Differentiation
It follows that
√
e(ln 2)/6 = eiπ/12 = cos π/12 + i sin π/12.
6
2 and
However,
1 if k = . . . 0, 3, 6, 9, . . .
1
√
ei2kπ/3 = 2 (−1 + i 3)
if k = . . . 1, 4, 7, 10, . . .
√
1
2 (−1 − i 3)
if k = . . . 2, 5, 8, 11, . . .
√
So, the possible values of (1 + i)1/3 are determined by multiplying 6 2 (cos π/12 + i sin π/12) by
each of the (three) possible values of ei2kπ/3 listed above. ◭
√
2
◮Example 11 Find all the values of the complex power 2 .
Solution: By definition,
√ √ √ √ √
2 2 log 2 2 (ln 2+i2kπ) 2 ln 2
2 =e =e =e · ei 8kπ
. [k = 0, ±1, ±2, . . .]
√
The expression ei 8kπ
has an infinite number of different values, as k varies:
√
ei 8kπ
=1 if k = 0,
√ √
= cos 8π ± i sin 8π, if k = ±1,
√ √
= cos 2 8π ± i sin 2 8π, if k = ±2,
√
and so on. Because 8 is irrational, the numbers generated in this √ way—and there is an infinity
of them—are√
all different. Multiplying each one of them by exp(
√
2 ln 2), we get all the complex
2 2
values of 2 . One of them coincides with the real power 2 that you met in high school. ◭
◮Example 12 Find ii .
Solution: Note that |i| = 1 and i = eiπ/2 . Hence, log i = iπ/2 + i2kπ. We find immediately that
in this case the expression on the right is infinite-valued, but all its values are real. ◭
If you are observant, you’ll have noticed that, according to the definitions given so far, technically,
the expression ez is multi-valued unless z is an integer. If you spotted this, congratulations.
However, virtually every author since the days of Euler has used ez as a convenient alternate
for exp z, and we’ll follow this (wrong) practice in these notes.
3. Limits, Continuity and Derivatives
Complex limits, continuity and differentiation are defined exactly as you would expect, and they
mirror the definitions given in real analysis.
Complex Differentiation 11
There are, however, some points to note. First of all, always bear in mind that the complex
notation is actually a short-hand way of expressing two real functions of two real variables. In
other words,
z = x + iy,
w = f (z) ⇐⇒
w = u(x, y) + i v(x, y).
Therefore, if z0 = x0 + iy0 is a point in the xy plane, then by definition
where the limits on the right-hand side are limits of functions of two variables, which you’ll find
explained in your old calculus textbook.
if, and only if, both limits appearing on the right-hand side in (6) exist finite, and
The concept of infinity may now be introduced, but carefully. Most books don’t attach any
meaning to expressions like lim f (z) = ∞ if f is a complex function, and neither shall we. On
the other hand, writing
lim |f (z)| = ∞
z→z0
p
simply means that the real function u2 (x, y) + v 2 (x, y) gets larger than any arbitrary bound,
for all (x, y) sufficiently close to (x0 , y0 ), and in this sense it’s acceptable. It is also possible to
give a meaning to “limit as z goes to infinity”:
def
◮Definition: lim f (z) = lim f (1/z), if the limit on the right-hand exists. ◭
z→∞ z→0
All the theorems on limits of real functions of two variables are applicable here, so we shall not
spend any time on them. Derivatives of complex functions are introduced in a natural way.
◮Definition: A complex function f is said to be differentiable at a point z0 if, and only if,
Again, it may be shown that the differentiation rules you learnt in first year are formally ap-
plicable to complex derivatives as long as these exist: the sum rule, the product rule, the chain
12 Complex Differentiation
rule and so on. There’s even an equivalent form of de l’Hospital’s theorem which may be applied
to complex limits.
For functions expressed by simple formulas, the existence of the derivative may be estab-
lished in a simple way, not unlike what you saw in first year calculus.
The common factor ∆z may now be cancelled from numerator and denominator, yielding
Now it’s clear that there’s no need to look into u(x, y) and v(x, y) for this specific example.
Since ∆z = ∆x + i∆y, and both ∆x and ∆y go to zero in the numerator only, we may simply
replace ∆z in the equation above with 0 + i0. It follows that
f ′ (z0 ) = 4z03 .
The right-hand side may be separated into a real and imaginary part, if one so wishes, but there
is absolutely no need to do it. Actually, it’s better to leave the answer in this form because the
result and the procedure mirror what you saw in first-year calculus. ◭
Proceeding in the same way, it’s easy to show that f (z) = z n is differentiable at any point in the
plane if n is a positive integer, and that df /dz = n z n−1 : exactly like in real calculus. Moreover,
we have mentioned that the usual rules for calculating real derivatives are applicable to complex
functions, as long as such derivatives exist. In particular, by the “sum rule”, we deduce that
d
a0 + a1 z + a2 z 2 + · · · + an z n = a1 + 2a2 z + 3a3 z 2 + · · · + nan z n−1 ,
dz
◮Conclusion: Polynomials in z are differentiable at any point in the complex plane and their
derivative may be found by the same rules as in real calculus. ◭
However, differentiability is a very strong requirement for complex functions, much stronger
than continuity. This is a completely different scenario from what you saw in first-year calculus.
Solution: By definition, f (z) = x − iy, hence both the real and the imaginary part, u = x and
v = −y, are continuous at every point in the plane, so f (z) is continuous everywhere.
However, for differentiability we need to consider
Let’s consider the real part of the last expression, and let ∆x and ∆y go to zero. We’ll now see
that
(∆x)2 − (∆y)2
lim does not exist.
∆x→0 (∆x)2 + (∆y)2
∆y→0
This may be proven as you learnt in the first semester, by letting ∆y = m∆x, where m =
constant, and then ∆x → 0. The result depends on the parameter m:
(∆x)2 − m2 (∆x)2 1 − m2
lim = ,
∆x→0 (∆x)2 + m2 (∆x)2 1 + m2
therefore the limit of the real part doesn’t exist. No need to consider the imaginary part: it
follows immediately that f (z) = z is not differentiable anywhere.
In real analysis, there are indeed functions that are continuous everywhere but differentiable
nowhere; however, they are constructed by fairly advanced methods and, by engineering stan-
dards, “look weird”. The function z, on the other hand, is probably one of the easiest examples
that come to mind, and yet it is everywhere continuous and nowhere differentiable. ◭
Proceeding like in the preceding example (let ∆y = m∆x and then ∆x → 0) one finds that the
right-hand side does not tend to any limit, except for the special case where x = y = 0. ◭
4. Cauchy-Riemann Equations
It’s easy to find a simple, necessary condition for complex differentiability. Suppose df /dz exists
at a certain point. In other words, suppose that
∆u + i∆v
lim = A + iB
∆x→0 ∆x + i∆y
∆y→0
14 Complex Differentiation
where u and v are, as usual, the real and imaginary part of f (z). Recall that the existence of
the limit implies that the limit is always the same, if we allow ∆x and ∆y to approach zero in
any way we please.
Very well then, let’s allow ∆z to approach zero along a straight, horizontal path: let ∆y = 0,
and let only ∆x be variable. In other words, consider the limit
∆u + i∆v ∆u ∆v
lim = lim + i lim .
∆x→0 ∆x ∆x→0 ∆x ∆x→0 ∆x
This leads us back to the definition of partial derivatives of real functions, which you saw in the
first semester. Hence, by definition:
∆u + i∆v ∂u ∂v
lim = +i .
∆x→0 ∆x ∂x ∂x
Next, we allow ∆z to approach zero along a straight, vertical path. This means we let ∆x = 0,
∆y = variable, and allow ∆y → 0. Proceeding exactly like before, we find:
∆u + i ∆v ∂u ∂v
lim = −i + .
∆y→0 i ∆y ∂y ∂y
The two limits must be equal (because we are assuming that df /dz exists). Therefore,
∂u ∂v ∂u ∂v
+i = −i + .
∂x ∂x ∂y ∂y
∂u ∂v ∂u ∂v
= , and =− . (7)
∂x ∂y ∂y ∂x
These simple equations, called Cauchy-Riemann Equations, are a direct consequence of the
existence of df /dz. Hence, they are a necessary condition for differentiability. In other words,
a function f (z) is differentiable at a certain point only if its real part u and imaginary part v
satisfy, at that point, Cauchy-Riemann equations. If they don’t, we deduce immediately that f
is not differentiable.
◮Example 16 Show that f (z) = z is not differentiable anywhere (this is example 14).
Solution: The real and imaginary part of f are, respectively, u = x and v = −y. We find that
∂u ∂v
=1 = −1.
∂x ∂y
Cauchy-Riemann equations provide a necessary condition for differentiability: where they are
not satisfied, the corresponding function is not differentiable. But obviously a sufficient condition
would be more desirable, i.e., a simple way to determine where a function is indeed differentiable,
rather than where it is not.
Complex Differentiation 15
◮This is a difficult point. Cauchy-Riemann equations alone are not sufficient. However, it may
be shown that if
(i) the real part u and the imaginary part v of a complex function f (z) satisfy the Cauchy-
Riemann equations, and
(ii) the partial derivatives ux , uy , vx and vy are continuous at all points in an open neighbor-
hood, then f (z) is differentiable in such neighborhood. ◭
The proof of this theorem hinges on the concept of differentiability of a function of several real
variables, which is no longer taught to engineering students at this University. It may be found
in any good book on advanced calculus: see, for instance, Courant & John, Introduction to
Calculus and Analysis, Vol. 2, Sect. 8.2, Springer-Verlag (Berlin), 1989.
Recall, an open neighborhood in the xy plane is a set that consists only of internal points.
A good example is a circle with the boundary removed. Take, for instance, the circle with radius
1 and center at the origin: the point (1, 0) sits on the boundary therefore it is not “in” the open
neighborhood. On the other hand, the point (0.999999999, 0) is internal, even though it’s very
close to the previous one: it is “in” the neighborhood. Every internal point, no matter how close
it is to the boundary, is always surrounded by a neighborhood where every point is internal—
such a neighborhood may be very small, but it would still contain an infinity of points, and they
would all be internal.
If you have followed so far, you’ll realize that the shape of an open neighborhood doesn’t
have to be a circle: it may be a triangle, a cardioid, a star. You may think in terms of circles,
if it helps to draw pictures in your mind, but you don’t have to.
Finally, you may quibble that the requirement (ii) is over-stated: if (i) holds, then ux = vy
and uy = −vx (Cauchy-Riemann), hence if ux and uy are continuous, then vx and vy must also
be continuous. Did you notice that? Good. However, as they said in Latin, repetita juvant: to
repeat things, helps.
One last remark before we look at examples: observe that from the partial derivatives in (7),
one may actually derive, with no extra work, the derivative df /dz. The point is that—again—
where lim∆z→0 ∆f /∆z exists, ∆z may approach zero from any direction, including (but not
necessarily) vertically and horizontally. In the first case, ∆x = 0 and hence ∆z = i∆y; in the
second, ∆y = 0 and hence ∆z = ∆x. Therefore
df ∆u + i∆v
= lim = ux + ivx ,
dz ∆x→0 ∆x
∆u + i∆v
= lim = −iuy + vy .
∆y→0 i∆y
◮Example 17 Show that f (z) = ez is differentiable everywhere and find its derivative.
Solution: We note that
ez = ex+iy = ex (cos y + i sin y);
hence
u = ex cos y, v = ex sin y.
16 Complex Differentiation
It follows that
Hence, we find that ux = vy and uy = −vx . Cauchy-Riemann equations are satisfied for every
x and y. Furthermore, it is obvious that the four partial derivatives listed above are continuous
functions of x and y in the whole plane, and so the second requirement is also satisfied. Therefore
ez is differentiable everywhere.
Its derivative may be found as follows:
d ez
= ux + i vx = ex (cos y + i sin y) = ex eiy = ex+iy .
dz
The last term is clearly equal to ez , hence df /dz = ez . ◭
◮Example 18 Show that sin z is differentiable everywhere and d(sin z)/dz = cos z.
Solution: We note that
and
v = cos x sinh y, vx = − sin x sinh y, vy = cos x cosh y.
Clearly u and v are continuous at all points in the xy plane, and their derivatives satisfy Cauchy-
Riemann equations (7), so sin z is differentiable everywhere. It follows immediately that
The last term on the right-hand side is, of course, cos z, and so finally:
d sin z
= cos z,
dz
as expected. ◭
In a very similar way, one may show that ecz is also differentiable, c being a (possibly complex)
constant. And from here one may go on and find the derivatives of all trigonometric and
hyperbolic functions.
◮Example 19 Find the derivative of f (z) = z 4 using the Cauchy-Riemann equations (this is
example 13 revisited)
Complex Differentiation 17
u= 1
2 ln(x2 + y 2 ), v = arctan y/x + 2kπ,
a similar problem occurs with uy . Therefore f (z) = log z is differentiable everywhere except at
the origin.
To calculate the derivative, we write
x −y/x2 x − iy 1
ux + ivx = 2 2
+ i 2 2
= 2 2
= .
x +y 1 + y /x x +y x + iy
Hence, finally,
d log z 1
= .
dz z
Note the difference between
d ln |x| 1 d log z 1
= and = .
dx x dz z
18 Complex Differentiation
The modulus bars are correct on the left-hand side, because the formula is applied only to
the real function ln |x|. On the right-hand side they would be wrong, because log |z| is not
differentiable! Convince yourself of this. ◭
You’ll be surprised to learn that Cauchy-Riemann equations were not discovered by Cauchy nor
by Riemann, but by d’Alembert (1717-1783) in the course of his research on hydrodynamics.
Much later Cauchy (1789-1857), and especially Riemann (1826-1866), understood the role of
these equations in the theory of complex functions, and this is probably why they are still
named after them.
5. Holomorphic Functions
We have seen that for a function f = u + iv to be differentiable, it is sufficient that the partial
derivatives of u and v be continuous in an open neighborhood and satisfy Cauchy-Riemann
equations. Most functions of practical interest in engineering enjoy this property for all z, with
the possible exception of isolated points: for example, the logarithm is not differentiable only at
z = 0.
If you followed so far, you understand that “being holomorphic” implies “being differentiable”.
But there is a reason for introducing a new abstruse word. Holomorphic means more than just
differentiable. It means that every point where f (z) is holomorphic is surrounded (at least up
to a certain distance) by a region where at every other point f (z) is holomorphic too. That’s
where the concept of open set plays its part, but we won’t get into more details.
It’s not difficult to create complex functions that have the opposite property of being differ-
entiable only at scattered, isolated points. We’ve already seen one such function, in example 15.
We shall also see, in the tutorial problems, an example of a function that is differentiable along
a whole straight line. More complicated examples of this kind may be constructed, but this
aspect of the theory is not essential in this course.
Holomorphy, on the other hand, is always extended over open sets; a function cannot be
holomorphic at just one point. In practice, almost all the complex functions used in engineering
are holomorphic almost everywhere.
For example, log z is holomorphic everywhere except at z = 0; tan z is holomorphic every-
where except at x = ± 21 π, ± 32 π, ± 52 π, etc. Here we have an infinity of points where the function
tan z is not holomorphic, but each one is surrounded by a sea of other points where holomorphy
holds. Therefore they are isolated singular points.
The only non-holomorphic functions you need to keep in mind for this course are f (z) = z,
which we have already discussed, and f (z) = |z|: and this one is actually a real function of a
complex variable.
HARMONIC FUNCTIONS
Not every function u(x, y) of two real variables may represent the real part of a holomorphic
function.
For example, there is no holomorphic function f (z) such that its real part is u = x3 + y 3 .
How can we be so sure? Elementary: suppose a function v exists such that u+iv is holomorphic.
Complex Differentiation 19
uxx + uyy = 0.
For the function we have in mind, which is u = x3 + y 3 , we find that uxx + uyy = 12xy, and so
there is no open neighborhood where uxx + uyy = 0.
◮Definition: A real function u(x, y) is called harmonic if it satisfies the equation uxx +uyy = 0,
which is called the Laplace equation. ◭
Therefore, a function u(x, y) may represent the real part of a holomorphic function only if it is
harmonic. Vice-versa, if a function u(x, y) is harmonic in an open neighborhood, then it’s the
real part of some holomorphic function. Similar conditions hold for the imaginary part.
◮Example 21 Let u = x2 − y 2 . Show that it is harmonic and find a function v(x, y) such that
u + iv is holomorphic. Identify the corresponding complex function f (z).
Solution: Note that uxx = 2 and uyy = −2; hence uxx + uyy = 0 everywhere, as required. For
the second part of the problem, we must find a function v(x, y) that pairs up with this u. Note
that ux = 2x and uy = −2y, hence vy = 2x and vx = 2y (Cauchy-Riemann). Integrating vy
with respect to y, we get that v = 2xy + g(x), where g(x) is a real function of x only. Similarly,
integrating vx with respect to x we get that v = 2xy + h(y), where h(y) is a real function of y
only. By comparison, g = h = constant. It follows that v = 2xy + c, where c is a real constant;
hence, finally:
f (x + iy) = x2 − y 2 + i (2xy + c) = (x + iy)2 + ic.
◮Example 22 Show that u(x, y) = y 3 − 3x2 y is harmonic and find a function v(x, y) such that
u + iv is holomorphic. Identify the corresponding complex function f (z).
Solution: Note that uxx = −6y and uyy = 6y; hence uxx + uyy = 0 everywhere, as required. For
the second part of the problem, we observe that, by the first Cauchy-Riemann equation,
where g(x) is a function of x alone. Similarly, the second Cauchy-Riemann equation yields
where h(y) is a function of y alone. By comparison, we deduce that g(x) = x3 and h(y) =
constant. It follows that v = x3 − 3xy 2 + c, where c is a real constant; hence, finally:
ANALYTIC FUNCTIONS
The proof of this identity (for complex z) is exactly like the one that you saw in high school
with real numbers, so we won’t go into it—but do it, as an exercise. Other examples include
the exponential series, and the series for sine and cosine (both hyperbolic and trigonometric).
Analytic functions may be visualized as “polynomials of infinite degree”. As it happens,
analytic functions have many properties in common with polynomials, but not all of them. For
instance, the geometric series already shows that the fundamental theorem of algebra does not
apply to analytic functions because the equation 1/(1 − z) = 0 has no roots.
Analytic functions have several important properties. Unfortunately their proofs require
some knowledge of the theory of series convergence, which would lead us too far away from
the core of this course. We shall mention—without proof—one property only, because of its
importance in applications.
◮Theorem If a function f (z) is analytic at z0 , then there is an open circle C with center at z0 ,
such that at every point in C [note that all points in C are internal points] f (z) is analytic and
differentiable. Circle C may have an infinite radius, in which case it coincides with the whole
complex plane.
Corollary: If a function is analytic at z0 , then it is holomorphic in a circle centered at z0 . ◭
and so on. All the power series generated in this way converge in the open circle with radius 1
and center at the origin. ◭
Complex Differentiation Tutorial Problems 21
PROBLEMS
Revision
1. Show that |z1 + z2 |2 + |z1 + z 2 |2 = 2 |z1 |2 + 2 |z2 |2 + 4 Re(z1 ) Re(z2 ).
2. Find all the z such that |z − 1| = |z − 9| = 5.
√
3. Find all the values of 6 8.
4. Show that | sin z|2 = sin2 x + sinh2 y.
5. Show that | cos z|2 + | sin z|2 ≥ 1.
√ √
6. Calculate: (a) (−1 + i 3)60 , (b) [(1 + i 3)/(1 − i)]40 .
7. Find all the roots of the equation z 3 + 3z 2 + 3z + 3 = 0.
Cauchy-Riemann Equations
8. Find the real and imaginary part of f (z) = z 3 − i z.
9. Find the real and imaginary part of f (z) = z 4 − |z|4 .
10. Find the real and imaginary part of f (z) = (1 + i z)/(1 + z).
11. Find the function f (z) such that its real part is u(x, y) = ey cos x and its imaginary part is
v(x, y) = ey sin x. Show that for this function Cauchy-Riemann equations are nowhere satisfied.
12. Find the function f (z) such that its real part is u(x, y) = −2(xy + x) and its imaginary part
is v(x, y) = x2 − y 2 − 2y. Show that for this function Cauchy-Riemann equations are satisfied
at all points in the xy plane.
13. Find the function f (z) such that its real part is u(x, y) = x/(x2 + y 2 ) and its imaginary part
is v(x, y) = −y/(x2 + y 2 ). Show that f (z) is holomorphic at all points in the xy plane except
the origin.
14. Show that the function u(x, y) = ax2 + bxy + cy 2 , where a, b and c are real constants, is
harmonic if and only if a = −c (with no restriction on b).
15. Show that the function u(x, y) = −ex sin y is harmonic and hence find a function v(x, y)
such that u + i v is holomorphic. Hence, express the result as a function of z alone.
16. Show that the function v(x, y) = arctan y/x is harmonic and hence find a function u(x, y)
such that u + i v is holomorphic. Hence, express the result as a function of z alone.
17. Show that the function v(x, y) = sin 3x cosh 3y is harmonic and hence find a function u(x, y)
such that u + i v is holomorphic. Hence, express the result as a function of z alone.
18. Show that the function f (x, y) = x2 + i y 2 is differentiable along the straight line x = y but
is not holomorphic anywhere. Express this function in terms of z.
ANSWERS
2 z =5± √ i3. √ √ √ √
3 z = ± 2, z = (−1 ± i√ 3)/ 2, z = (1 ± i√3)/ 2. √ √
6 (a) 260 , (b) −219 (1 + i 3). 7 z = −(1 + 3 2), z = −1 + (1 ± i 3)/ 3 4.
8 u = x3 − 3xy 2 − y, v = 3x2 y − y 3 − x. 9 u = −8x2 y 2 , v = 4xy(x2 − y 2 ).
10 u = [x − 2xy − y + 1]/[(x + 1)2 + y 2 ], v = [x2 − y 2 + x + y]/[(x + 1)2 + y 2 ].
11 f (z) = ei z . 12 f (z) = iz 2 − 2z. 13 f (z) = 1/z + ic.
22 Tutorial Problems Complex Differentiation
p
15 v(x, y) = ex cos y + c; f (z) = i(ez + c). 16 u(x, y) = ln x2 + y 2 ; f (z) = log z + c.
17 u(x, y) = − cos 3x sinh 3y; f (z) = i sin 3z + c [or also f (z) = sinh i3z + c].
18 Hint: You need to show that: (i) if x = y, then
and is equal to 2x; (ii) Cauchy-Riemann equations do not hold if x 6= y. Hence, f ′ (z) exists
at all points on the straight line x = y, and only there. However, since no point on this line is
internal (every disk with center on the line contains points that are not on the line), f (z) is not
holomorphic anywhere.
f (z) = (z + z)2 /4 − i (z − z)2 /4.
Complex Integration 23
Chapter Two
COMPLEX INTEGRATION
1. Definite Integration
In real analysis you saw the fundamental theorem of calculus, which links integration and differ-
entiation. Complex analysis does have its own version of the fundamental theorem, but there
are some subtle differences.
First of all, you will recall that a real function of one variable doesn’t even have to be
continuous—never mind differentiable—in order to be integrable. Therefore, the question of
whether a given real function has an “anti-derivative” is, so to speak, separated from whether
it has a derivative.
The corresponding problem in complex analysis is not so simple. We have seen that differ-
entiability comes with strong requirements (i.e., Cauchy-Riemann equations, real and imaginary
parts must be harmonic). It shouldn’t come as a surprise that anti-differentiation—indefinite in-
tegration, if you wish—has similar requirements. Definite integration, by comparison, is straight-
forward, we’ll start with this one.
◮Definition: Let f (z) = u(x, y) + i v(x, y) be a complex function, and γ a smooth path in the
domain of definition of f . The expression
Z Z Z
f (z) dz = u(x, y) dx − v(x, y) dy + i u(x, y) dy + v(x, y) dx (8)
γ γ γ
The integrals appearing on the right-hand side above are ordinary line integrals of real functions
in the xy plane, which you’ll find explained in your old calculus book. If you find this definition
confusing, consider the formal expansion
and then it should become obvious. The actual calculation of the definite integral may be done
either using a pair of real parametric equations for x and y, or a single complex parametric
equation for z. (
x = x(t)
⇐⇒ z(t) = x(t) + i y(t).
y = y(t)
The first method is what you learnt in first-year calculus; the second method is entirely equiva-
lent, it’s more compact but may need some practice to get used to, which is how we’ll use the
rest of this section.
24 Complex Integration
R
◮Example 24 Evaluate γ (2z + z) dz, where γ is the semicircle with center at the origin,
radius = 1, cut in the upper half-plane by the x axis, covered right-to-left.
Solution: A possible parametric representation of the
semicircle is
( y
x = cos t
[ 0 ≤ t ≤ π].
y = sin t
γ
But instead of substituting
into (8) and evaluate two real integrals (which wouldn’t be wrong), we write
(
it
dz = i eit dt,
z = cos t + i sin t = e , =⇒
z = e−it .
x = t − 1, y=t [1 ≥ t ≥ 0] γ
Note that this example has the same integrand as the preceding one, and the same endpoints,
but a different path joins the endpoints. ◭
R
◮Example 26 Calculate γ (|z|/z) dz if (i) γ is the portion of Archimedes’ spiral x = t cos t,
y = t sin t extending from the origin to the point B(2π, 0); (ii) γ is the segment of the x axis
extending from the origin to B.
Solution: (i) Parametric equations for the spiral are given, so we simply let
z = t (cos t + i sin t) = t eit , y
which gives immediately |z| = t, dz = (1 + it) eit dt
[and arg z = t + 2kπ, which is not needed]. Therefore,
(ii) B
2π
|z| t(1 + it) eit dt
Z Z
O x
dz = = 2π(1 + i).
γ z 0 t eit
(i)
(ii) On the positive real axis, z = x and |z| = x too,
because x > 0. Hence dz = dx, and finally:
2π
|z|
Z Z
dz = dx = 2π.
γ z 0
This is another example showing that in general definite complex integration is path-dependent
even if the endpoints are kept fixed. ◭
◮Example 27 Calculate γ exp(z 2 − z 2 ) dz, where γ is the straight vertical segment leading
R
from A( 14 , 0) to B( 14 , π).
Solution: First of all, we simplify the exponential:
x = 41 , y = t, =⇒ z= 1
4 + i t, dz = i dt, 4xy = t,
◮Example 28 Calculate γ 1/ | cos z|2 + 21 dz, where γ is the whole vertical straight line
R
applying (4), we substitute cos iy = cosh y and sin iy = i sinh y. We get that
It follows immediately that cos x = sin x = 1/√2, and also that dz = i dt. Therefore,
| cos z|2 = 1
2 cosh2 t + 1
2 sinh2 t,
and finally
∞ ∞ i∞
dz i dt i dt
Z Z Z h
1 = 2 2 = = i tanh t = i 2.
γ | cos z|2 + 2 −∞
1 1
2 cosh t + 2 sinh t +
1
2 −∞ cosh2 t −∞ ◭
◮Example 29 Calculate γ dz/|z|2 , given that γ is the whole right-hand branch of the hyper-
R
−∞ < t < ∞
γ
Therefore,
∞ ∞ ∞
dz (sinh t + i cosh t) dt sinh t dt cosh t dt
Z Z Z Z
= = +i .
γ |z|2 −∞ cosh2 t + sinh2 t −∞ cosh2 t + sinh2 t −∞ cosh2 t + sinh2 t
We see immediately that the first integral on the right-hand side (the real part) is zero by
symmetry, because the integrand is odd in t:
0 ∞
sinh t dt sinh t dt
Z Z
=− .
−∞ cosh2 t + sinh2 t 0 cosh2 t + sinh2 t
0 ∞
cosh t dt cosh t dt
Z Z
= ,
−∞ cosh2 t + sinh2 t 0 cosh2 t + sinh2 t
Substituting sinh t = u, and noting the identity cosh2 t + sinh2 t = 1 + 2 sinh2 t, we get:
∞ ∞ √ i∞
cosh t dt du h 1 π
Z Z
=2 = 2 √ arctan 2u =√ .
−∞ cosh2 t + sinh2 t 0 1 + 2u 2
2 0 2
√
dz/|z|2 = i π/ 2.
R
So, finally, γ
◭
2. Cauchy-Goursat Theorem
You’ll probably recall that in real vector analysis you were introduced to the concept of con-
servative vector fields, i.e., vector fields that lead to a certain class of path-independent line
integrals.
As complex definite integrals are basically pairs of line integrals in the xy plane, it’s not
surprising that path-independence may also be found in complex integration.
REVISION
Before we continue, let us revise some concepts and theorems that you perhaps saw in first-year
calculus, and will play a major role in the following sections.
◮Definition: An open set of points D in the xy plane is called connected if any pair of points
in D may be joined by a path that lies entirely in D. (In plain words, a set is connected if it is
all in one piece.) ◭
◮Definition: An open set D is called simply connected if it’s connected and every closed path
in D surrounds only points that belong in D. (In plain words, a simply connected domain is a
domain without holes.) ◭
The two definitions given above may be extended to sets that are not open, but we’ll not need
them it this course.
◮Theorem Let P (x, y) and Q(x, y) have continuous first partial derivatives in a simply-
connected open domain D. If
∂P ∂Q
=
∂y ∂x
R
everywhere in D, then the line integral [P dx + Q dy] is path-independent in D ◭
28 Complex Integration
This theorem is a direct consequence of Green’s Theorem, and has a famous three-dimensional
counterpart in Stokes’ Theorem—which is of no use here because complex numbers are inherently
two-dimensional (as we noted on page 1).
For a better revision of these ideas, see W. Kaplan, Advanced Calculus Fourth Edition,
Addison-Wesley (USA), 1991, or also N. Piskunov, Differential and Integral Calculus, Mir
(Moscow), 1974.
THE CAUCHY-GOURSAT THEOREM
Consider the definite integral of a holomorphic function f = u + i v: by definition [go back to
equation (8), page 23] this is
Z Z Z
f (z) dz = u(x, y) dx − v(x, y) dy + i u(x, y) dy + v(x, y) dx .
γ γ γ
Assume that u and v satisfy Cauchy-Riemann equations (7), and that ux and uy are continuous.
Let’s look first at the real part of the right-hand side, which is
Z
u(x, y) dx − v(x, y) dy .
γ
uy = −vx =⇒ Py = Qx ,
so all hypotheses of the path-independence theorem recalled above are satisfied. Similarly, the
imaginary part is Z
u(x, y) dy + v(x, y) dx ;
γ
ux = v y =⇒ Py = Qx .
The elegant proof outlined here is generally called Cauchy’s proof, but its genesis was as tortuous
and difficult, as this one is simple.
For a long time, after Bombelli introduced “imaginary” numbers and used them to solve
cubic equations (around 1560), complex numbers were poorly understood. The apparently
simple definition of complex numbers as points in the xy plane, which today is the norm,
was given in 1806, by Argand. In between, for√ two and a half centuries, the mathematical
community was not sure about the meaning of −1, while accepting the beatiful results that
could be obtained through it.
Indeed, when Cauchy presented this theorem to the French Academy in 1814, he avoided
complex numbers, which however appeared in his first book on the subject (1825). He didn’t
mention Cauchy-Riemann equations either, although they had been found by d’Alembert half a
Complex Integration 29
century before. Eventually Cauchy achieved a clear view of complex functions theory, expanding
on the work of Gauss, Green and Laurent, among others. But only in a paper of 1846 did he
come fairly close to the modern perspective; the same paper contains also Cauchy’s integral
formula, which we’ll discuss soon. Meanwhile Green (1790-1841) died ignored by most of his
contemporaries. For a vivid account of this story, see I. Grattan-Guinness, The Norton History
of the Mathematical Sciences, Norton (USA), 1998.
Much later, in 1900, Goursat (1858-1936) found a different (but difficult) proof that avoided
the assumption that ux and uy be continuous. His famous Course of Analysis, a model of clarity
and rigor, was still in print in the 1970s.
because γ is oriented in the same direction as the arrow along path (i), but in the opposite
direction along path (ii): hence the negative sign. Combining the last two results we get that
I
f (z) dz = 0,
γ
3. Indefinite Integration
Another important consequence of Cauchy-Goursat theorem is that holomorphic functions pos-
sess an indefinite integral.
To see this, we only need to consider the expression
Z z
def
F (z) = f (ζ) dζ
z0
and show that, if f (z) is holomorphic, then F ′ (z) exists and is equal to f (z).
The outline of the proof is almost trivial. Consider ∆F , that is,
Z z+∆z Z z
∆F = f (ζ) dζ − f (ζ) dζ,
z0 z0
30 Complex Integration
where ∆z is at this point arbitrary, but not zero. Because f (z) is by assumption holomorphic,
the two integrals on the right-hand side are path-independent and hence may be combined:
Z z+∆z
∆F = f (ζ) dζ.
z
Now we may replace f (z) with u(x, y) + i v(x, y) and use the fact that u and v are continuous
real functions with continuous partial derivatives. It then follows (proof omitted) that
∆F = f (z) ∆z + ε ∆z
where ε is a complex quantity that goes to zero as ∆z → 0. We may finally divide the last
equation by ∆z, and deduce that
∆F ∆F
= f (z) + ε, =⇒ lim = f (z).
∆z ∆z→0 ∆z
The last equation establishes that F ′ (z) indeed exists and equals f (z); in other words, F (z) is
the anti-derivative of f (z).
This means that it is possible to extend to holomorphic functions all the techniques of
anti-differentiation developed in real analysis; formulas are formally identical.
No need to use the parametric equations for the path; this integral is path-independent. ◭
This may all look simple, except for a small detail: how can we recognize that a function is
holomorphic? Here are a few simple rules.
• We have shown that f (z) = z in not holomorphic anywhere. Hence, if in the expression for
f (z) you spot z, you’ll know that f is not holomorphic.
• We have shown that polynomials in z are holomorphic in the whole plane.
• Analytic functions of z are holomorphic in a circle centered at the center of expansion. Some
of them, in particular ez , and sine and cosine (hyperbolic/trigonometric), are analytic in
the whole plane.
• Rational functions of z are holomorphic everywhere except at the points where the denom-
inator is zero.
• The complex logarithm is holomorphic in the whole plane except at the origin; but is multi-
valued. If a point z moves over a path that loops around the origin, then arg z increases by
multiples of 2π.
• The composition of two holomorphic functions is generally holomorphic, with the possible
exception of some isolated points, as next example shows.
Complex Integration 31
As a rule, multi-valued functions must be integrated with some care, because their value must
be “followed” along the path.
◮Example 32 Find γ dz/z, where γ is the portion of the Archimedes’ spiral z = t eit extending
R
from z = 2π to z = 8π.
Solution: The anti-derivative of the integrand is
d−1
1
= log z + C,
dz −1 z
so, one is tempted to write
ifinish 8π
dz h
Z
= log z 2π
γ z start
dz
Z
= ln |8π| − ln |2π| + i ∆ arg z = ln 4 + i 6π.
γ z
Still confused? Let’s do this problem again, using parametric equations like in example 26. Let
z = t eit , dz = (1 + it) eit dt. It follows:
8π 8π
dz (1 + it) eit dt 1 + it i8π
Z Z Z h
= = dt = ln |t| + i t = ln 4 + i 6π.
γ z 2π teit 2π t 2π
We got the same answer, of course, but with much more work.
In this simple example the initial and final values of arg z do not influence the result, which
depends only on their difference. In general, however, one must bear this possibility in mind.
As an exercise, convince yourself that if γ were replaced by the spiral z = (2π + t) ei t/3 ,
which also starts at z = 2π and finishes at z = 8π, but wraps itself around the origin only once,
as you can see using gnuplot, then the final result would be ln 4 + i 2π. ◭
d−1
1
= log(z − z0 ) + a constant.
dz −1 z − z0
If z moves around z0 , then the expression (z − z0 ) returns to its initial value (the constant is
irrelevant, of course), and so does ln |z − z0 |, but arg(z − z0 ) increases by 2π radians: hence
I
dz h ifinish
= ln |z − z0 | + i arg(z − z0 ) + C = i 2π.
CR z − z0 start
Suppose now that f (z) is holomorphic in an open domain D, and let C be a closed smooth contour
in D, such that f is holomorphic inside the region enclosed by C and also on the boundary C.
Recall that, conventionally, counter-clockwise contour
integration is always regarded as positive.
The domain D does not have to be simply-connected,
but it is crucial that the region enclosed by the contour C
is “hole-free”, and f is holomorphic on the boundary C as CR
well.
C
z0
Consider
f (z)
Z
dz, (10)
C z − z0
D
where z0 is an arbitrary point inside C. Since z0 is internal to
C, it’s possible to draw a circle CR with center at z0 , radius
R, that is contained entirely in C, as shown in the picture.
Complex Integration 33
Since f (z) is holomorphic on and inside C, then there is only one point inside C where
f (z)/(z − z0 ) may be non-holomorphic: this is the point z0 (because the denominator becomes
zero).
Clearly, the value of the integral (10) does not change if C is altered in such a way that
the new, deformed contour lies entirely in D, and the deformation does not carry it across the
point z0 .
In particular, we may modify C into the circle C R without affecting the value of the integral,
and we have that
f (z) f (z)
Z Z
dz = dz.
C z − z0 CR z − z0
Combining this equation with the result of example 33, we find that
f (z) f (z) dz
Z Z Z
dz − i 2π · f (z0 ) = dz − · f (z0 ) =
C z − z0 CR z − z0 CR z − z0
f (z) − f (z0 )
Z
= dz.
CR z − z0
It follows immediately that:
f (z) f (z) − f (z0 ) |f (z) − f (z0 )|
Z Z Z
dz − i 2π · f (z0 ) = dz ≤ |dz|.
C z − z0 CR z − z0 CR |z − z0 |
But obviously |z − z0 | = R because the integration is over a circle, and |dz| = R dt. Also,
|f (z) − f (z0 )| may be made as small as we please by taking R sufficiently small (but not zero),
because f is continuous. So, finally,
Z t1 +2π
f (z) ε
Z
dz − i 2π · f (z0 ) ≤ R dt = ε · 2π.
C z − z0 t1 R
We see that the left-hand side of this equation is not negative, but is smaller than any arbitrary
positive constant, no matter how small. Therefore it must be
f (z)
Z
dz − i 2π · f (z0 ) = 0.
C z − z0
◮Conclusion: Removing the modulus bars, which are no longer needed, and dividing through
by i 2π, we obtain:
1 f (z)
Z
dz = f (z0 ), (11)
i 2π C z − z0
which is Cauchy integral formula. ◭
One can see immediately that this is a remarkable formula, even without knowing its applications
in science and engineering. For example, it shows that the values of a holomorphic function at
points inside a contour C are completely determined by the values on the boundary. With an
abuse of language, one may say that holomorphic functions are “tamper-proof”: once their value
is assigned on a contour C, the values inside C are automatically determined.
Furthermore: let the contour be the circle CR with center at z0 , radius R. Then, as we have
seen in example 33, z = z0 + Reit , dz = iReit dt, and (11) yields
Z 2π
1
f (z0 ) = f (z0 + Reit ) dt.
2π 0
34 Complex Integration
We see that the value of a holomorphic function at the center of any circle is the average
of the values on the circumference. Another interesting consequence comes if we take the
real/imaginary part of the last equation. Since f = u + i v, and u and v are harmonic, this
means that the value of a harmonic function of x and y at the center of any circle in the xy
plane is the average of the values on the circumference.
NUMERICAL EXAMPLES
◮Example 34 Find C (3z 2 − 5z + 4) dz/(z − 1) where C is the circle with center at the origin,
H
radius = 7.
Solution: Let f (z) = 3z 2 − 5z + 4, which is holomorphic everywhere because it’s a polynolmial,
and let z0 = 1. The contour C encloses z0 . Hence,
3z 2 − 5z + 4
I
dz = i 2πf (1) = i 4π.
C z−1
Note that the radius of the circle does not have to be equal to 7; it may be equal to any number
greater than 1. If the radius is exactly 1, then C goes over the point z0 = 1, and the integral
becomes meaningless. ◭
◮Example 35 Find C eiz dz/(z 2 + 1) where C is the cardioid given in polar coordinates by the
H
equation ρ = 1 + sin φ.
Solution: The function
y
eiz eiz
=
z2 + 1 (z + i)(z − i)
eiz x
f (z) = and z0 = i.
(z + i)
−1
It follows immediately that
eiz dz e−1
I
= i 2π = πe−1 .
C (z + i)(z − i) i 2
Once again, the shape of C may be altered. Any other contour enclosing i but not −i would
have given the same result. Make sure you understand this point. ◭
Solution: The integrand has an infinity of singular points, i.e., points where it is not holomorphic,
but only one such point lies inside the unit circle.
Complex Integration 35
First of all, tan z fails to be holomorphic at z = ±π/2, ±3π/2, ±5π/2, ±7π/2, and so on.
All these points are on the x axis. However, π/2 ≈ 1.57, so even the nearest ones to the origin
lie outside the unit circle.
There are two more points where the integrand is not holomorphic: they are the points
where
3z 2 + i 5z + 2 = 0.
Solving this equation, we find
√
−i 5 ± −25 − 24 −i 5 ± i 7 −i 2,
z= = =
6 6 i/3.
Having found the roots of the denominator, we may factorize it. Hence, we write the integrand
in a convenient form:
tan z tan z
2
= .
3z + i 5z + 2 3(z + i2)(z − i/3)
Clearly −i 2 is outside the unit circle and i/3 is inside. Therefore, we let
tan z
f (z) = ,
3(z + i2)
f (z) dz
I
z2 C
,
C (z − z0 )(z − z1 ) · · · (z − zn )
C2
C0
where f (z) is holomorphic inside a closed con- z0
tour C, as well as on the boundary. C1
The method is illustrated by the picture
on the right, for the case where there are only z1
three points, z0 , z1 and z2 . We break the
contour C at any point and add a path leading C
toward the point z0 . Such a path does not C
have to be straight, though it looks straight
in the picture. We then add a contour C 0 that
surrounds the point z0 , and trace back our steps toward C. We repeat the procedure for the
point z1 : we break C adding a path leading toward z1 , then a contour C 1 surrounding z1 , then
another path leading back toward C. Finally, we do the same for the point z2 : we break C
adding a path leading toward z2 , then a contour C 2 surrounding z2 , then another path leading
36 Complex Integration
back toward C. If there are only three points, like in the picture, no more detours are needed.
If there are more points, we must repeat the procedure for each of the points included in C.
In this way we create a modified region γ ( shaded in the picture) that does not include
any of the points z0 , z1 , z2 . Therefore, by (9),
f (z) dz
I
= 0.
γ (z − z 0 )(z − z1 )(z − z2 )
We note that γ consists of the original contour C, of the contours C 0 , C 1 , C 2 , and of the paths
joining C to C 0 , C 1 , C 2 . However:
(i) While C is covered counter-clockwise, the inner contours C 0 , C 1 , C 2 are covered clockwise.
Recall that clockwise contour integrals count as negative.
(ii) Paths joining the various contours are covered twice, in opposite directions, and therefore
the corresponding integrals cancel out.
In summary, we get
2
f (z) dz f (z) dz
I X I
− = 0;
C (z − z0 )(z − z1 )(z − z2 ) Ck (z − z0 )(z − z1 )(z − z2 )
k=0
the negative sign account for clockwise integration. It follows immediately that
2
f (z) dz f (z) dz
I X I
= . (12)
C (z − z0 )(z − z1 )(z − z2 ) Ck (z − z0 )(z − z1 )(z − z2 )
k=0
This result shows that the integral on the left-hand side, over a contour surrounding the points
z0 , z1 and z2 , may be written as the sum of an integral over C 0 surrounding only z0 , plus an
integral over C 1 surrounding only z1 , plus an integral over C 2 surrounding only z2 . Each of the
integrals on the right-hand side may then be evaluated by Cauchy integral formula (11).
3
◮Example 37 Find C sin πz dz/(z 3 − z 2 + 16
H
z), where C is the unit circle.
3 3 3
Solution: First of all, we factor z 3 −z 2 + 16 z = z(z 2 −z+ 16 ). Solving the equation z 2 −z+ 16 = 0,
1 3
we find the roots z = 4 and z = 4 . Hence,
z3 − z2 + 3
16 z = z(z − 14 )(z − 43 ).
We note that the integrand is non-holomorphic at three points, namely 0, 41 and 34 , all of which
are inside the contour of integration. Therefore, applying (12), we write
sin πz
I
1 3 dz =
C z(z − 4 )(z − 4 )
Naturally, if there are more (or less) than three points inside C where the integrand is non-
holomorphic, the sum in formula (12) extends to all such points and only to them.
Solution: The function f (z) = sin z is holomorphic in the whole plane. The denominator, z 2 + 1,
is zero only at z = ±i; C is the circle with radius = 2 and center at the origin, and so it encloses
both points. Therefore, applying (12) and then (11), we find immediately:
sin z dz sin(−i) sin i i 4π sin i
I
··· = = i 2π + i 2π = = i 2π sinh 1.
C (z + i)(z − i) −i − i i+i i2 ◭
z 2 dz z 2 dz
I I
3
= ,
C z −8 C (z − z0 )(z − z1 )(z − z2 )
where √ √
z0 = 2, z1 = −1 + i 3, z2 = −1 − i 3.
Then, we apply (12):
z 2 /(z − z1 )(z − z2 ) z 2 /(z − z0 )(z − z2 ) z 2 /(z − z0 )(z − z1 )
I I I
··· = dz + dz + dz.
C0 z − z0 C1 z − z1 C2 z − z2
Each of the integrals on the right-hand side may be now be found by Cauchy integral for-
mula (11). We find:
z 2 dz i 2πz02 i 2πz12 i 2πz22
I
3
= + + .
C z −8 (z0 − z1 )(z0 − z2 ) (z1 − z0 )(z1 − z2 ) (z2 − z0 )(z2 − z1 )
√ √
Now one must substitute z0 = 2, z1 = −1 + i 3 and z2 = −1 − i 3, and then simplify. The
calculations are time consuming, though not difficult (do it, as an exercise); in the end one finds
that the right-hand side is equal to i 2π. ◭
38 Complex Integration
z 4 = −64, C −4
It’s easy to see that z2 and z3 lie outside the circle C, so we don’t need to consider them. Writing
the integrand as follows:
z2 − i z2 − i
I I
dz = dz,
C (z 4 + 64) C (z − z0 )(z − z1 )(z − z2 )(z − z3 )
considering that C surrounds only z0 and z1 , applying (12), and substituting for z0 , z1 , z2 , z3
their numerical values, we find immediately that
z02 − i z12 − i
· · · = i 2π · + i 2π · =
(z0 − z1 )(z0 − z2 )(z0 − z3 ) (z1 − z0 )(z1 − z2 )(z1 − z3 )
π π
= −i . ◭
32 4
CAUCHY FORMULA FOR DERIVATIVES
The letter z appearing under the symbol of integration in Cauchy integral formula (11) is
a dummy variable, which may be replaced by any other symbol. So, for instance, we may
rewrite (11) in the form
1 f (ζ)
Z
f (z) = dζ,
i 2π C ζ − z
which is entirely equivalent, but shows the right-hand side as a function of z.
It can be rigorously shown that the equation above may be formally differentiated with
respect to z: in other words, it may be shown that
Z Z
d f (ζ) ∂ f (ζ)
dζ = dζ
dz C ζ −z C ∂z ζ − z
Complex Integration 39
Put in a different way, differentiation with respect to z and integration with respect to ζ may
be swapped around. This is precisely what one would expect, but remember, differentiation of
complex functions is in general more subtle than its real counterpart. Actually, the proof is not
difficult but it would take us too far away.
Using this result, and noting that
∂ 1 1
= ,
∂z ζ − z (ζ − z)2
1 f (ζ)
I
′
f (z) = dζ.
i 2π C (ζ − z)2
This is Cauchy formula for first derivatives. It may be differentiated again under the same
assumptions ; one gets (verify this)
2! f (ζ) 3! f (ζ)
I I
f ′′ (z) = dζ, f ′′′ (z) = dζ,
i 2π C (ζ − z)3 i 2π C (ζ − z)4
which are Cauchy formulas for second and third derivatives, respectively. Formulas for higher
derivatives are obtained in the same way. More generally, after a suitable relabelling of variables,
one obtains:
n! f (z)
I
dz = f (n) (z0 ), (13)
i 2π C (z − z0 )n+1
where n is the order of the derivative of f . The case n = 0 corresponds to the standard Cauchy
integral formula (11).
It is possible to use these formulas to evaluate contour integrals in a way that is entirely
analogous to (12), even when more than one singular point is surrounded by C; the details are
the same as before.
z 2 − 3z + 4 i 2π ′
I
2
dz = f (0) = −i 6π.
C z 1!
Method 2: For this problem, there is also a direct method that does not call for (13): simplifying
the integrand, write
z 2 − 3z + 4 3 4
I I I I
dz = dz − dz + dz.
C z2 C C z C z2
3 4
I I I
dz = 0, dz = i 6π, dz = 0.
C C z C z2
40 Complex Integration
The first result follows from the fact that f (z) ≡ 1 is holomorphic everywhere; the second result
follows from example 33; the third result comes from the fact that z −2 has an anti-derivative,
which is −z −1 , that returns to its
H initial value if z covers any closed contour (whether it surrounds
the origin or not). So, finally, C (z 2 − 3z + 4) dz/z 2 = −i 6π, as expected. ◭
ez ln 2 i 2π d2 h z ln 2 i
I
dz = e = i π(ln 2)2 e5 ln 2 = i 32π(ln 2)2 .
C (z − 5)3 2! dz 2 z=5 ◭
◮Example 43 Find C (z 4 + 1) dz/z(z − 1)2 , where C is the square |x| + |y| = 3 pictured in
H
example 39.
Solution: The contour encloses both z = 0 and z = 1. Following exactly the same steps of the
derivation of (12), we deform C into two contours C 0 and C 1 , such that C 0 surrounds only the
origin and C 1 surrounds only the point z = 1.
It follows that
(z 4 + 1) (z 4 + 1) (z 4 + 1)
I I I
2
dz = 2
dz + 2
dz.
C z(z − 1) C0 z(z − 1) C1 z(z − 1)
z4 + 1
4
z +1
I
dz = i 2π = i 2π;
C0 z(z − 1)2 (z − 1)2 z=0
z4 + 1 i 2π d z 4 + 1
I
dz = = i 4π.
C1 z(z − 1)2 1! dz z z=1
1 1 1 1
2
= − + .
z(z − 1) z z − 1 (z − 1)2
Hence,
z4 + 1 z4 + 1 z4 + 1 z4 + 1
I I I I
dz = dz − dz + dz.
C z(z − 1)2 C z C z−1 C (z − 1)2
No need to modify the contour, here. The first two terms are found directly by Cauchy integral
formula (11), and the third term by Cauchy formula for first derivatives [see (13) with n = 1].
It follows that
h i h i h i
· · · = i 2π z 4 + 1 − i 2π z 4 + 1 + i 2π 4z 3 = i 2π − i 4π + i 8π.
z=0 z=1 z=1
z3 i 2π d2 z3
I
dz = = i 4π.
C (z − 1)(z − 2)3 2! dz 2 (z − 1) z=2
(ii) In this case C surrounds both z = 2 and z = 1. Proceeding like in the preceding example,
we get that
z3 z3
I I I
··· = 3
dz + 3
dz,
C C2 (z − 1)(z − 2) C1 (z − 1)(z − 2)
where C 2 surrounds only the point z = 2 and C 1 surrounds only the point z = 1. The first term
has been found in part (i), and it is equal to i 4π. For the second term we may use Cauchy
integral formula (11), which yields
z3 z3
I
dz = i 2π = −i 2π.
C1 (z − 1)(z − 2)3 (z − 2)3 z=1
z3
I
dz = i 4π − i 2π = i 2π.
C (z − 1)(z − 2)3 ◭
42 Tutorial Problems Complex Integration
PROBLEMS
You are strongly exhorted to revise Green’s theorem in your old calculus book.
H
19. Show that if C is a simple closed path, then C z dz = i 2A, where A is the area of the region
enclosed by C.
20. Show that if C is a simple closed path, then C |z|2 z dz = i 4 I, where I is the moment of
H
inertia about the origin of the plane region enclosed by C (assuming unit density σ).
Path-dependent Integration
R 1+i
21. Calculate 0 (x2 − iy 2 ) dz along the straight line from the origin to 1 + i.
R
22. Find γ dz from −i to i if:
(i) γ is the polygonal path with vertices at −i, −1 − i, −1, i.
(ii) γ is the left half of the circle |z| = 1.
R
23. Find γ x dz from −4 to +4 if:
(i) γ is the polygonal path with vertices at −4, −4 + i4, 4 + i4, +4.
(ii) γ is the upper half of the circle |z| = 4.
H
24. Calculate γ z dz, where γ is the whole circle |z| = 4, covered counter-clockwise.
R −1
25. Calculate 1 |z − 1|2 dz along the upper half of the circle |z| = 1.
H
26. Calculate γ dz/z, if γ is the whole circle |z| = 2, covered counter-clockwise.
R1
27. Calculate −1 z · Im(z 2 ) dz along the lower half of the circle |z| = 1.
R 1+i
28. Calculate 0 |z|2 dz along an arc of the parabola y = x2 .
29. Calculate γ dz/|z|2 , if γ is the whole right-hand branch of the hyperbola x2 /9 − y 2 /16 = 1.
R
R 1+i 2
30. Calculate 0 e|z| x dz along the straight line joining the origin and the point 1 + i.
R
31. Calculate γ (1/z − 1/z) dz along the whole straight horizontal line z = i.
32. Calculate γ z dz along the whole asteroid |x|2/3 + |y|2/3 = 1.
H
Path-independent Integration
R 1+i
33. Find 0
z 3 dz
R i ln 2
34. Find 0
sin z dz
R i π 2 z/2
35. Find 0
z e dz
R 1+i
36. Find 1−i
2 sin z cosh z dz
R √3+i 3
2
37. Find 0
z/(z + 8) dz
Complex Integration Tutorial Problems 43
R 1+i 2
38. Find i
z ei z /2
dz
R
39. Find γ
dz/(z + 12), where γ is the path pictured in example 32.
40. Find:
(a) C (ez + cos z) dz/z where C is the circle |z| = 1.
H
H
(b) C dz/(z + 1)(z − 1) where C is the circle |z − 1| = 1.
(c) C dz/(z + 1)(z − 1)2 where C is the circle |z − 1| = 1.
H
41. Find:
(a) C ez dz/(z 2 + 2z) where C is the circle |z| = 1.
H
ANSWERS