Complex numbers are introduced to make sense of the solutions of the quadratic equation
x2+bx+c=0,b,c∈R.
The solutions are
x1,2=2−b±Δ,Δ=b2−4c.
If Δ≥0 then x1,x2∈R. If Δ<0 the square root of a negative number appears. Writing Δ=(−1)(−Δ) with −Δ>0:
x1,2=2−b±(−1)(−Δ)=2−b±−1−Δ=−2b±j2−Δ.
The idea is to setj:=−1, the imaginary unitthe number whose square is -1. This is a key definition: change it and the mathematics breaks. (The symbol := means "is defined as".)
Basic notions
A complex number is
z:=a+jb∈C,a,b∈R.
C is the set of complex numbers; it extends R and is identified with R×R (see the Cartesian representation below).
Re(z):=a∈R is the real part of z.
Im(z):=b∈R is the imaginary part of z (a real number).
Definition (imaginary unit j).j is such that j2=−1, i.e. j:=−1.
The triple (C,+,⋅) is a field: both operations are commutative and, with z1=a1+jb1, z2=a2+jb2:
where the resulting phase is brought back to ]−π,π] by adding or subtracting multiples of 2π: moduli multiply (divide), phases add (subtract).
Names of the forms: the Cartesian form z=a+jb is the algebraic form (by definition); z=ρ(cosφ+jsinφ) is the trigonometric form; the exponential formz=ρejφ is justified below.
Examples (writing ρ∠φ)
1+j0=1∠0, −1+j0=1∠π.
0+j1=1∠2π, 0−j1=1∠−2π.
1+j1=12+12∠arctan11=2∠4π.
1−j3=12+(3)2∠arctan(−3)=2∠−3π.
−1+j3: here a<0, b>0, so φ=arctan(−13)+π=−3π+π, and −1+j3=2∠32π.
−1−j33: ρ=1+93=323 and φ=arctan(−1−3/3)−π=6π−π, so it equals 323∠−65π.
2∠π=−2+j0, 7∠0=7+j0.
0∠φ=0cosφ+j0sinφ=0 for every φ∈]−π,π].
4∠6π=4cos6π+j4sin6π=423+j421=23+j2.
3∠32π=3cos32π+j3sin32π=−23+j233.
(4∠π)(3∠2π)=4⋅3∠(π+2π)=12∠23π=12∠−2π=0−j12.
(28∠2π)/(7∠2π)=728∠(2π−2π)=4∠0=4+j0.
Exponential form and Euler's formula
Define, for z∈C,
ez:=n=0∑+∞n!zn.
It is well defined because absolute convergence holds: ∑n=0+∞n!zn<+∞ for all z∈C.
We need ez=ea+jb=ea⋅ejb. Let us prove something more general.
Fact.ex+y=ex⋅ey for all x,y∈C.
Proof. Expand the power with Newton's binomial formula:
The double sum runs over the "triangle" 0≤m≤n of the (n,m) grid. Since the series converge absolutely, Tonelli's theorem for series lets us exchange the order of summation: sum first over n≥m, then over m≥0. With ℓ=n−m:
Square root: (ej(4π+2ℓπ))1/2=ej(8π+ℓπ), which gives ejπ/8 for ℓ=0 (all even ℓ) and e−j87π for ℓ=−1 (all odd ℓ). Two distinct values, as expected for a square root.
With the half-angle formulas, ejπ/8=cos214π+jsin214π=21+cos(π/4)+j21−cos(π/4)=42+2+j42−2. The other root e−j87π is left as an exercise.
Complex powers are not needed in the course, but note that jj=elog(jj)=ejlog(j)=ejlog(ej(2π+2ℓπ))=ej(j(2π+2ℓπ))=e−(2π+2ℓπ)∈R for every ℓ∈Z: infinitely many real values (the lecturer's advice: "stay away").
admits exactly N roots z1,…,zN∈C (counted with multiplicity), i.e. p(zi)=0 for i=1,…,N.
The proof is not given in the course (too hard).
Exercise (N=1).az+b=0 has one and only one solution if and only if a=0. If a=0: for b=0 the equation is indeterminate (every z is a solution); for b=0 there is no solution.
Exercise.9z2+6z+10=0 must have two solutions. Using the reduced discriminant, 4Δ=(26)2−9⋅10=9−90=−81, so
z1,2=9−26±4Δ=9−3±−81=9−3±9j=−31±j.
Roots of unity
Exercise (N∈N∖{0}). zN=1 must have N solutions z1,…,zN. Note that 1=ej2πℓ for all ℓ∈Z. Since ej2πℓ is periodic of period 2π in the exponent, only N consecutive values of ℓ give distinct solutions. From zN=ej2πℓ:
zℓ+1=ej2πNℓ,ℓ=0,1,…,N−1
These are the N solutions sought. Observation: ∣zℓ+1∣=1 for all ℓ, so they lie on the unit circle, equally spaced by the angle N2π (ℓ=0 gives z=1, ℓ=1 is the next point counter-clockwise, ℓ=N−1 is the last one before returning to 1).
In the sketch of the course the points are drawn on the unit circle with ℓ=0 on the positive real axis, ℓ=1 just above it (counter-clockwise) and ℓ=N−1 just below it.
No ordering relation in C
In C there is no ordering relation. For z1,z2∈C, writing z1≤z2 makes no sense. (Real or integer quantities such as ∣z∣, Re(z), Im(z) can of course be compared.)
But we can solve inequalities between real quantities. Example:
∣z−1∣2≤Im(z)+Im(z)2.
Trick: write z=a+jb. Then ∣a+jb−1∣2≤b+b2 becomes (a−1)2+b2≤b+b2, and cancelling b2 gives b≥(a−1)2. The solution set is
{z∈C∣Im(z)≥(Re(z)−1)2},
the region of the complex plane lying on or above the parabola Im(z)=(Re(z)−1)2, whose vertex is at Re(z)=1.
Exercise. Solve {∣z−1∣≤1Re(z)=0. With z=a+jb, the second condition gives a=0; the first becomes ∣−1+jb∣2≤12, i.e. (−1)2+b2≤1, i.e. b2≤0⟺b=0. The only solution is z=0.
Homework from the course (practice problems)
The lecturer proposes a "furious exercise series" (check the results with a computer algebra system, which writes the imaginary unit as i):
Compute the algebraic form a+jb of z1z2, z21, z1z2, (z1+z2)2, z1+z2z1 with z1=4−j5, z2=2+j3; and of 2e−jπ/4, 3ejπ/2, ej45π, e−j34π, (1+j)16.
Compute the exponential form ρejφ of 1, −3, 1+j, 1−j, −1+j, −1−j, 1−j1+j, 1+j3, (1−j3)2, j(1+j)ejπ/6, 1+j3ejπ/3−1, rsinϕ+jrcosϕ.
Determine real numbers such as Re(1+j1), Im(7−j3+4j), Re(e3+j3π), Im(ejπ/4), 1−j1+jej3, ejπ/2+1ejπ/2−1, 1+2j2cost+2jsint, 7−5j5+7j, j3(1+4j)2(1+j)6.
Determine at least one form of 1+j7+3j, (1+3j5+4j), 1−j1+j, (7+4j)2, 3+4j(1+j)2, 1+j+j2+j3, (1+j)3, (1−j)2(1+j)3, (1−j)64(1+j)128.
Compute the modulus of 1−j(1+j)8, 7+2j(1+j)2+j, (8+6j)7(3+4j)5.
j:=−1, j2=−1. z=a+jb, Re(z)=a, Im(z)=b (both real). (C,+,⋅) is a field; C≃R×R (complex plane).
Product: (a1+jb1)(a2+jb2)=(a1a2−b1b2)+j(a1b2+a2b1). Inverse: a+jb1=a2+b2a−jb (multiply by the conjugate).
Conjugate z=a−jb; modulus ∣z∣=zz=a2+b2.
Polar: ρ=∣z∣≥0, φ=∠z∈]−π,π]; a=ρcosφ, b=ρsinφ. Arctangent rule: φ=arctanab if a>0; sign(b)π+arctanab if a<0, b=0; π if a<0, b=0; sign(b)2π if a=0, b=0; indeterminate at 0.
Product/quotient in polar form: moduli multiply/divide, phases add/subtract (bring back to ]−π,π]). z−1=(ρ−1,−φ).
ez:=∑n≥0n!zn converges absolutely for all z; ex+y=exey (Newton's binomial + Tonelli for series).
Powers: zm/n=ρm/nej(nmφ+2nmℓπ), ℓ∈Z; principal value for ℓ=0. Example: (ejπ/4)1/2=ejπ/8 or e−j87π.
Fundamental theorem of algebra: a degree-N polynomial over C has exactly N roots (with multiplicity).
Roots of zN=1: zℓ+1=ej2πℓ/N, ℓ=0,…,N−1, on the unit circle.
No ordering in C: z1≤z2 is meaningless; compare only real quantities (∣z∣, Re, Im). For inequalities set z=a+jb.
Typical mistakes: using arctan(b/a) alone when a<0 (the quadrant is wrong by π); forgetting that j2=−1 in products; leaving the phase outside ]−π,π] after multiplying; writing z1≤z2.