03 Complex Numbers
03 Complex Numbers
3. Complex Numbers
The imaginary unit, denoted i, is a hypothetical solution to the quadratic equation
z 2 + 1 = 0, (1)
√
which is an equation that lacks real solutions. In other words, i = −1.
We can let the imaginary unit take part in the usual arithmetic operations of addition
and multiplication, treating it as an algebraic quantity on the same footing as the more
familiar real numbers. Thus, we deal with numbers containing both real and imaginary parts,
called complex numbers. It is one of the most profound discoveries of mathematics that
this seemingly arbitrary idea gives rise to powerful computational methods for addressing
mathematical and physical problems.
z = x + iy, (2)
where x and y are real numbers that depend uniquely on z. We refer to these as the real
part of z and the imaginary part of z, respectively. The real and imaginary parts are also
commonly denoted as Re(z) and Im(z), respectively, where the Re and Im operations can
be regarded as functions mapping complex numbers to real numbers
The set of complex numbers is denoted by C. We can define algebraic operations on
complex numbers—addition/subtraction, products, and taking powers—simply by following
the usual rules of algebra and setting i2 = −1 whenever it shows up.
Example
z 2 = (x + iy)2 (3)
2 2
= x + 2x(iy) + (iy) (4)
2 2
= x − y + 2ixy (5)
There’s one caveat: for now, we’ll only consider taking integer powers, such as z −1 or
z 2 . Taking non-integer powers, such as z 1/3 , introduces vexatious complications which we’ll
postpone for now (this will be dealt with when discussing branch points and branch cuts).
Another interesting fact, which can be easily proven, is that real coefficients can be freely
moved into or out of Re(· · · ) and Im(· · · ) operations:
This has an important consequence: if we have a complex function of a real variable, then we
can calculate the derivative of that function from the derivatives of the real and imaginary
parts. This is shown in the example below.
18
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
Example
If z(t) is a complex function of a real input t, then
dz d dz d
Re = Re [z(t)] , and Im = Im [z(t)] . (8)
dt dt dt dt
z ∗ = x − iy. (9)
Example
Let us prove that (z1 z2 )∗ = z1∗ z2∗ . First, let z1 = x1 + iy1 and z2 = x2 + iy2 . Then,
∗
(z1 z2 )∗ = [(x1 + iy1 )(x2 + iy2 )]
∗
= [(x1 x2 − y1 y2 ) + i (x1 y2 + y1 x2 )]
= (x1 x2 − y1 y2 ) − i (x1 y2 + y1 x2 )
= (x1 − iy1 ) (x2 − iy2 )
= z1∗ z2∗ .
This is a non-negative real number. A complex number and its conjugate have the same
magnitude: |z| = |z ∗ |. Also, we can show that magnitudes have the property
19
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
This property is similar to the “absolute value” operation for real numbers, hence the similar
notation. As a corollary, we can show that taking a power of a complex number raises its
magnitude by the same power:
This can be proven using the series definition of the exponential function, which is
z2 z3 z4 z5 z6
exp(z) = 1 + z + + + + + + ··· (16)
2! 3! 4! 5! 6!
Previously, we assumed that the input to the exponential function was a real number. How-
ever, since complex numbers can be added and multiplied using the same rules of algebra
as real numbers, we can employ this series formula as the definition of the complex expo-
nential function. This is a function that takes complex inputs and gives complex outputs.
When the input happens to be real, the complex exponential function gives the same output
as the real exponential function.
Plugging iz as the input to the complex exponential function gives
z2 z4 z6
cos(z) = 1 − + − + ··· (20)
2! 4! 6!
z3 z5 z7
sin(z) = z − + − + ··· (21)
3! 5! 7!
These are perfect matches for the two terms in the series expansion of the complex expo-
nential! Hence, Euler’s formula immediately follows:
20
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
The real and imaginary parts are represented by horizontal and vertical Cartesian coordi-
nates. The coordinate axes are called the “real axis” and the “imaginary axis”, respectively.
The radial coordinate is r, and by its definition we see that it is equal to what we have
defined as the magnitude of the complex number: r = |z|. The azimuthal coordinate θ is
called the argument of the complex number, which we sometimes denote by arg(z).
Using Euler’s formula, we can write
z = r cos(θ) + ir sin(θ) (27)
= r [cos(θ) + i sin(θ)] (28)
iθ
= re . (29)
Thus, whenever we can manipulate a complex number into a form AeiB , where A and B are
real, then A is the magnitude and B is the argument. This is used in the following example:
Example
For z ∈ C, it can be shown that the magnitude and argument of exp(z) are:
21
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
• Addition of two complex numbers can be interpreted as the addition of two coordinate
vectors. If z1 = x1 + iy1 and z2 = x2 + iy2 , then z1 + z2 = (x1 + x2 ) + i (y1 + y2 ) .
Hence, the point corresponding to z1 + z2 is obtained by adding the two coordinate
vectors corresponding to z1 and z2 . From this, we can geometrically prove a useful
inequality relation between complex numbers, called the “triangle inequality”:
The cosine and sine functions on the right-hand side of this equation are complex trigonomet-
ric functions, defined using the same series expansions as the real cosine and sine functions,
except that the inputs z are allowed to be complex numbers:
z3 z5 z7
sin(z) = z − + − + ··· (34)
3! 5! 7!
z2 z4 z6
cos(z) = 1 − + − + ··· , z∈C (35)
2! 4! 6!
Note that the outputs of the complex trigonometric functions are complex numbers too.
Thus, some of the familiar properties of the real trigonometric functions don’t apply. For
instance, | sin(z)| and | cos(z)| are not bounded by 1 when z is not real. For example,
sin(i) = 1.1752 . . . > 1. (36)
22
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
We can also write the complex cosine and sine functions in terms of the exponential:
1 iz
e + e−iz
cos(z) = (37)
2
i
sin(z) = − eiz − e−iz .
(38)
2
This is often a convenient step when solving integrals, as shown in the following example.
Example
Consider the (real) integral
Z ∞
I= dx e−x cos(x). (39)
0
One way to solve this is to use integration by parts, but another way is to use the
complex expansion of the cosine function:
Z ∞
1 ix
dx e−x e + e−ix
I= (40)
0 2
Z ∞
1 h i
= dx e(−1+i)x + e(−1−i)x (41)
2 0
∞
1 e(−1+i)x e(−1−i)x
= + (42)
2 −1 + i −1 − i 0
1 1 1
=− + (43)
2 −1 + i −1 − i
1
= . (44)
2
The standard proofs for these formulas are geometric: you draw a figure, and solve a bunch of
relations between the angles and sides of the various triangles, making use of the Pythagorean
formula. But using the Euler formula, we can prove these algebraically. For example,
1 iz1
e + e−iz1 eiz2 + e−iz1
cos(z1 ) cos(z2 ) = (47)
4
1 h i(z1 +z2 ) i
= e + ei(−z1 +z2 ) + ei(z1 −z2 ) + e−i(z1 +z2 ) (48)
4
1
sin(z1 ) sin(z2 ) = − eiz1 − e−iz1 eiz2 − e−iz1
(49)
4
1h i
= − ei(z1 +z2 ) − ei(−z1 +z2 ) − ei(z1 −z2 ) + e−i(z1 +z2 ) . (50)
4
Thus,
1 h i(z1 +z2 ) i
cos(z1 ) cos(z2 ) − sin(z1 ) sin(z2 ) = e + e−i(z1 +z2 ) = cos(z1 + z2 ). (51)
2
23
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
As a bonus, these addition formulas now hold for complex inputs as well, not just real inputs.
Higher-order trigonometric addition formulas can be derived in a similar way.
Using these relations, we can relate the addition formulas for trignometric formulas to the
addition formulas for hyperbolic functions, e.g.
To see why, observe that the function has the form z(t) = r(t) eiθ(t) , where the magnitude
(i.e., the distance from the origin) r(t) = 1 is a constant, and the argument θ(t) = ωt varies
proportionally with t. If ω is positive, the argument increases with t, so the trajectory is
counter-clockwise, as shown in the above figure. If ω is negative, the trajectory is clockwise.
Next, consider
z(t) = e(γ+iω)t , where γ, ω ∈ R. (60)
For γ = 0, this reduces to the previous example. For γ 6= 0, the trajectory is a spiral:
24
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
To see why, observe that this function can be written in the form
where r(t) = eγt and θ = ωt. Similar to the previous example, the argument varies pro-
portionally with t, so the trajectory loops around the origin. What’s different is that the
magnitude (i.e., the distance from the origin) now either increases or decreases exponentially
with t, depending on the sign of γ. If γ and ω are both positive, then the trajectory is an
anticlockwise spiral moving outwards from the origin. You should work out for yourself how
and why the trajectory behaves if we flip the signs of γ and/or ω.
Finally, consider
1
z(t) = , α, β ∈ R. (62)
αt + β
This trajectory is a circle which passes through the origin, as shown below:
25
Y. D. Chong (2016) MH2801: Complex Methods for the Sciences
ba. Octonions are eight-component numbers which are both non-commutative and non-
associative: (ab)c 6= a(bc). These and other still-more-complicated number systems have
some applications in physics and other fields, but are overall much less important than C.
Another reason complex numbers are so mathematically rich is that you can do calculus
on them. The study of smooth complex functions is called complex analysis, which will
be discussed later. As we shall see, it is possible to extend the concepts of differentiation
and integration from real functions to complex functions, with many profound outcomes.
By contrast, because quaternions are not commutative, even the concept of “derivative”
becomes tricky to define. Thus, it’s a lot harder to perform mathematical analysis on
quaternions and other more complicated number systems.
3.8 Exercises
1. Let z = x + iy, where x, y ∈ R. For each of the following expressions, find (i) the real
part, (ii) the imaginary part, (iii) the magnitude, and (iv) the complex argument, in
terms of x and y:
• z2
• 1/z
• exp(z)
• exp(iz)
• cos(z)
2. Show that |z1 z2 | = |z1 | |z2 |, by using (i) the polar representation, and (ii) the Cartesian
representation.
3. Show that (z1 z2 )∗ = z1∗ z2∗ , by using (i) the polar representation, and (ii) the Cartesian
representation.
4. Identify the problem with this chain of equations:
√ √ √ √
−1 = i · i = −1 −1 = −1 · −1 = 1 = 1.
26