In linear algebra the complex numbers are needed mainly for one reason: eigenvalues are zeros of polynomials, and a polynomial with real coefficients need not have a real zero. This note covers the basic arithmetic of complex numbers, the fundamental theorem of algebra, and the complex exponential function.
1. Basic properties
1.1 Definition
Definition (complex numbers). The set of complex numbers is
C={(a,b)∣a,b∈R}.
Addition and multiplication are defined by
(a1,b1)+(a2,b2):=(a1+a2,b1+b2),(a1,b1)⋅(a2,b2):=(a1a2−b1b2,a1b2+a2b1).
A pair is usually written as a+ib:=(a,b). This is the algebraic form. In this notation the product rule reads
(a1+ib1)(a2+ib2)=(a1a2−b1b2)+i(a1b2+a2b1).
In particular the fundamental equation holds:
i2:=i⋅i=−1.
The real numbers are regarded as the subset R={(a,0)∣a∈R}={a+i0}⊂C. The real part and imaginary part of a+ib are
Re(a+ib):=a,Im(a+ib):=b.
A complex number is often called z, so z=a+ib. Adding complex numbers means adding real parts and imaginary parts separately. Since we can switch between z=a+ib and z=(a,b), we call C the complex plane: z is the point with coordinates (a,b) (horizontal axis: real axis, vertical axis: imaginary axis).
1.2 Conjugation and absolute value
Definition. The complex conjugation is the map
C→C,z=a+ib↦zˉ:=a−ib.
The absolute value is the map
∣⋅∣:C→R≥0,z=a+ib↦∣z∣:=zzˉ=a2+b2.
Geometrically, conjugation is the reflection of the plane in the real axis (the x-axis). By the Pythagorean theorem, ∣z∣ is the distance of the point (a,b) from the origin. Moreover ∣z∣=0 exactly if z=0. If z=a=a+0i is real, then ∣z∣=∣a∣ is the usual absolute value: ∣a∣=a if a≥0 and ∣a∣=−a if a<0.
Note that zzˉ=(a+ib)(a−ib)=a2+b2 is a real number.
1.3 Inverse and division
Lemma. If z=0, i.e. z=a+ib with a or b (or both) nonzero, then z−1=z1 exists as a complex number, and
z−1=zzˉzˉ.
Proof. Multiply the expression by z: z⋅z−1=zzˉzzˉ=1. □
The formula is an actual simplification because zzˉ is real, so dividing by it is easy. Without the conjugate it reads
z−1=a2+b2a−a2+b2bi.
Example. Let z=2+3i. Then zˉ=2−3i and zzˉ=22+32=13, so
z−1=132−3i=132−133i.
Since every nonzero number has a reciprocal, any w∈C can be divided by z=0:
zw=zzˉwzˉ=∣z∣2wzˉ.
1.4 Trigonometric form
Multiplication of complex numbers shows its essence best in the trigonometric form.
Absolute value is multiplicative. For z1=a1+b1i, z2=a2+b2i:
∣z1z2∣=(a1a2−b1b2)+(a1b2+a2b1)i=(a1a2−b1b2)2+(a1b2+a2b1)2=(a1a2)2−2a1a2b1b2+(b1b2)2+(a1b2)2+2a1b2a2b1+(a2b1)2=(a12+b12)(a22+b22)=∣z1∣∣z2∣.
(The mixed terms ∓2a1a2b1b2 cancel, and the remaining four terms factor.)
For z=0 the number z/∣z∣ has absolute value 1: it lies on the unit circle (radius 1, centred at the origin). The angle α between the positive x-axis and the segment from the origin to z/∣z∣ is the argumentargz (measured in radians). So z/∣z∣=cosα+isinα and
z=∣z∣(cosα+isinα)(α=argz).(1)
Here ∣z∣≥0 and α are real numbers.
Im
| z/|z| = cos(a) + i sin(a)
| . *
| . |
| . | sin(a)
|. a |
--------+---------+------ Re
0 cos(a) (unit circle: radius 1)
Principal argument. One usually requires −π<α≤π. With this requirement there is a unique α such that (1) holds. Without it the argument is ambiguous: adding or subtracting 2π rotates by 360∘ counter-clockwise or clockwise, which does not change the point.
Precise statement. An equation
r(cosα+isinα)=s(cosβ+isinβ)(r,s≥0)
holds exactly if (1) r=s and (2) α−β is an integer multiple of 2π. We then say α and β are equal modulo 2π and write
α≡β(mod2π).(2)
This ambiguity must be taken into account when solving equations in trigonometric form (see the worked exercise below).
Example.
z=1=1+0i has ∣z∣=1 and argz=0.
z=−i has ∣−i∣=1 and argument 23π (that is 270∘; equivalent modulo 2π to −2π).
z=−2+2i has ∣z∣=8=22 and argument 43π (135∘).
1.5 Multiplication in trigonometric form
Lemma. If z1,z2 are in trigonometric form,
z1z2=∣z1∣∣z2∣(cos(argz1+argz2)+isin(argz1+argz2)).
That is: absolute values multiply, arguments add.
Proof. The absolute value was handled above. For the arguments write α1=argz1, α2=argz2. Then
(cosα1+isinα1)(cosα2+isinα2)=cosα1cosα2−sinα1sinα2+i(sinα1cosα2+cosα1sinα2)=cos(α1+α2)+isin(α1+α2).
The first equality is the definition of the product, the second the angle-sum identities. □
By induction, zn=rn(cosnα+isinnα) for z=r(cosα+isinα).
2. The fundamental theorem of algebra
For any three complex numbers v,w,z the usual rules of the real numbers hold:
1⋅z=z and 0+z=z;
z(wv)=(zw)v and z+(w+v)=(z+w)+v (associativity of multiplication and of addition);
zw=wz and z+w=w+z (commutativity);
z(v+w)=zv+zw (distributivity).
Each identity is checked by unravelling the definitions. In abstract algebra this is expressed by saying that C is a fielda set with addition, subtraction, multiplication and division by nonzero elements obeying the usual rules, exactly as R and Q are.
Theorem (Fundamental theorem of algebra). Consider an equation
anzn+an−1zn−1+⋯+a0=0
with complex numbers an,…,a0, where an=0 and n>0 (so it is not just a0=0). Then this equation has a complex solution: there is z∈C satisfying it.
This is in marked contrast to R: t2+1=0 has no real solution because t2+1>0 for every real t. In C it has exactly two roots, i and −i, since i2=−1 and (−i)2=(−i)(−i)=−1. The theorem says much more: every non-constant real or complex polynomial equation has a complex solution. The theorem is applied later to eigenvalues (zeros of the characteristic polynomial). It has many independent proofs: short ones using only basic calculus (the intermediate value theorem), and a graphical one whose geometric idea needs more theory to become rigorous. The source does not prove it.
Example: the equation zn=1
Write z=r(cosα+isinα), so zn=rn(cosnα+isinnα). This equals 1=1⋅(cos0+isin0) exactly if rn=1 (so r=1) and nα≡0(mod2π), i.e. nα=2kπ with k∈Z. Hence
α=n2kπ,zk=cosn2kπ+isinn2kπ.
There are exactly n distinct solutions, k=0,…,n−1. For n=5 there are 5 solutions on the unit circle, equally spaced by 72∘=52π, with z0=1; the value k=5 gives z5=z0 again, because winding around by 56⋅2π=432∘ is the same as winding around by 51⋅2π=72∘.
n = 5: the five solutions of z^5 = 1 on the unit circle
(regular pentagon, one vertex at z_0 = 1)
z_0 = 1 angle 0 deg
z_1 = cos(2pi/5) + i sin(2pi/5) angle 72 deg
z_2 angle 144 deg
z_3 angle 216 deg
z_4 angle 288 deg
z_5 = z_0 (6/5 of a turn = 1/5 of a turn)
de Moivre's formula
More generally, to solve zn=w (with n≥1 natural and w∈C fixed), write w=r(cosα+isinα). There are n solutions (distinct unless w=0):
z=nr(cosnα+2kπ+isinnα+2kπ),k∈{0,1,…,n−1}.
3. The complex exponential function
In real analysis, exp, sin, cos:R→R are defined by Taylor series:
exp(x):=n=0∑∞n!xn=1+x+2x2+6x3+24x4+…,sin(x):=n=0∑∞(2n+1)!(−1)nx2n+1=x−6x3+120x5−…,cos(x):=n=0∑∞(2n)!(−1)nx2n=1−2x2+24x4−….
These series converge for all real x and define differentiable functions. They satisfy exp′=exp and
exp(0)=1,exp(x+y)=expx⋅expy.(3)
Definition and Lemma. For any complex number z the same series
n=0∑∞n!zn,n=0∑∞(2n+1)!(−1)nz2n+1,n=0∑∞(2n)!(−1)nz2n
converge, i.e. define complex numbers, denoted exp(z), sin(z), cos(z) (some authors write ez for exp(z)). The addition formula exp(z+w)=expzexpw continues to hold for all complex z,w.
Proof idea. Convergence is shown almost exactly as in the real case: the denominators n! grow fast enough. (The differential equation exp′=exp also continues to hold, but this requires complex differentiation, which is not treated.)
For z=a+ib the addition formula gives
exp(a+ib)=exp(a)⋅exp(ib).
The first factor is the real exponential, so the interesting part is exp(ib).
Theorem (Euler). For every real b,
exp(ib)=cosb+isinb.
In particular, for b=π: exp(iπ)=cosπ=−1 (with sinπ=0), equivalently Euler's identityexp(iπ)+1=0.
Proof. Insert z=ib into the series:
exp(ib)=n=0∑∞n!(ib)n=1+ib+2(ib)2+6(ib)3+24(ib)4+…
We have (ib)n=inbn, and in depends only on the remainder of n modulo 4, because i4=i⋅i⋅i⋅i=(−1)(−1)=1: i0=1,i1=i,i2=−1,i3=−i,i4=1,i5=i,… Group even and odd n (a legitimate rearrangement by basic calculus):
exp(ib)=(1+2(ib)2+24(ib)4+…)+((ib)+6(ib)3+120(ib)5+…)=(1−2b2+24b4−…)+i(b−6b3+120b5−…)=cosb+isinb.□
Consequently, for z=a+ib:
exp(a+ib)=ea(cosb+isinb),
so a complex number in trigonometric form is z=∣z∣exp(iargz), and the rule "multiply absolute values, add arguments" is just exp(iα)exp(iβ)=exp(i(α+β)).
4. Worked exercises
Exercise A. Compute algebraic and trigonometric form of z=(i+1i−1)3.
First i+1i−1=∣i+1∣2(i−1)(i+1)=2(i−1)(1−i)=22i=i. So z=i3=−i (algebraic form). Then ∣z∣=1 and argz=23π, so z=cos23π+isin23π.
Exercise B. Find all z∈C with z=3i∣z∣zˉ.
To divide by z we first treat z=0: both sides are 0, so z=0 is a solution. For z=0 divide by z:
1=3i∣z∣zzˉ.
Write z=r(cosα+isinα) with r=∣z∣>0. Then zˉ=r(cosα−isinα)=r(cos(−α)+isin(−α)), so zˉ/z=cos(−2α)+isin(−2α), and the equation becomes
3i1=−3i=r(cos(−2α)+isin(−2α)).
Hence r=31 and, comparing arguments (careful: only modulo 2π, cf. (2)), −2α≡23π(mod2π), i.e. 2α≡−23π(mod2π). The two solutions in a full turn are 2α=−23π or 2α=−23π+2π=2π, giving α=−43π or α=4π. (Adding multiples of 2π to α, e.g. 45π, gives the same z.) Altogether there are three solutions: z=0 and
z=31(cos(−43π)+isin(−43π)),z=31(cos41π+isin41π).
Exercise C. Solve z3=8i in algebraic and trigonometric form.
Here 8i=8(cos2π+isin2π), so de Moivre with n=3, r=8, α=2π gives 38=2 and angles 3π/2+2kπ, k=0,1,2, i.e. 6π,65π,23π:
z0=3+i=2(cos6π+isin6π),z1=−3+i=2(cos65π+isin65π),z2=−2i=2(cos23π+isin23π).
They are the vertices of an equilateral triangle inscribed in the circle of radius 2.
Fundamental theorem of algebra. Every equation anzn+⋯+a0=0 with an=0, n>0, complex coefficients, has a complex solution (C is a fielda set where you can add, subtract, multiply and divide by nonzero elements with the usual rules). Used for eigenvalues.
Roots (de Moivre).zn=w, w=r(cosα+isinα): n solutions
zk=nr(cosnα+2kπ+isinnα+2kπ),k=0,…,n−1.
For w=1: n points on the unit circle, angular spacing n2π.
Exponential.exp(z)=∑zn/n! converges for all z∈C; exp(z+w)=expzexpw. exp(ib)=cosb+isinb (group even and odd terms of the series, use i4=1); exp(iπ)+1=0; exp(a+ib)=ea(cosb+isinb).
Typical mistakes.
Taking the argument as unique: when comparing arguments only equality modulo 2π follows; with 2α≡β there are two values of α in a full turn.
Forgetting the solution z=0 when dividing by z.
Dividing by z without conjugating: always multiply numerator and denominator by zˉ.
Forgetting that ∣z∣ is real and nonnegative while zzˉ=∣z∣2.