Complex Numbers

Introduction

An imaginary is defined as i with the following property

i2=1

It corresponds to a π2rad anti-clockwise rotation in the Argand plane

A complex number is defined as.

z=a+ib

Euler's Identity

eiθ=cosθ+isinθ

Proof using Maclaurin Series

Proof for Euler's Identity using Maclaurin Series

Alternative Proof using Calculus

Proof for Euler's Identity using ODEs

Polar Form

A vector has an angle θ and a magnitude r. It should be self-evident that we can rewrite this using Eulers Identity.

z=r(cosθ+isinθ)=reiθ

The angle θ can be sufficiently described using this range.

πθπ

The magnitude of a complex number can be expressed as r=a2+b2=||z||

Conjugate

The conjugate of z is

z=aib

Or

z=reiθ

Thus

||z||2=zz

Scaling & Rotations

A complex number encodes a rotation and a scaling. When a is multiplied with b where a,bC

ab=r1r2ei(θ1+θ2)

a acts on b by scaling it by r1 and rotating it by θ1

Fun Fact

Complex numbers can also help us encode rotations in 3d space! It's called Quaternions, but you'll need 4 dimension, 1 real and 3 imaginary part. It powers most gaming/3d simulation software.

Argument

Argument is basically the angle between the vector and the x-axis.

arg(z)=arg(reiθ)=θ

Hopefully it is obvious that

arg(z1z2)=arg(z1)+arg(z2)

De Moivre's Theorem

Based on the above, it's pretty evident that

zn=rneinθ=rn(cosnθ+isinnθ)

Correspondingly

z1n=r1n(cos1nθ+isin1nθ)

Solving for nth roots

Solve for

zn=C

Fundamental theorem of algebra state that there exist n number of solutions

  1. Express C in polar form
  2. Apply the De Moivre's theorem to solve for z
  3. Find the suitable values of k
Example

Solve for

z5=1+i
  1. Express 1+i in polar form
1+i=2ei(π2+2πk)
  1. Apply De Moivre's theorem
z=(1+i)15=2110ei(π10+2kπ5)
  1. Find the values of k
    Since πθπ. Thus k{2,1,0,1,2}
    QED

Expressing cosnθ, sinnθ in terms of coskθ and sinkθ.

Expanding the expression using De Moivre theorem and algebra will yield different results. This allows you to equate and express cosnθ and sinnθ in unique ways

(cosθ+isinθ)n
  1. Expand it algebraically
  2. Expand it using De Moivre theorem
  3. Equate the reals and imaginaries

Expand (cosθ+isinθ)3. Express cos3θ and sin3θ in terms of coskθ and sinkθ.

  1. Algebraically
(cosθ+isinθ)3=cos3θ+3cos2θ(isinθ)+3cosθ(isinθ)2+(isinθ)3=(cos3θ3cosθsin2θ)+i(3cos2θsinθsin3θ)
  1. De Moivre theorem
(cosθ+isinθ)3=cos3θ+isin3θ
  1. Equate the imaginary and real parts.
    Equating the real part
cos3θ=cos3θ3cosθsin2θ=cos3θ3cosθ(1cos2θ)=4cos3θ3cosθ

Equating the imaginary part:

sin3θ=3cos2θsinθsin3θ=3(1sin2θ)sinθsin3θ=4sin3θ+3sinθ

Relationship with Matrices

An anti-clockwise rotation of a vector by θ can be described as

Rθ=(cosθsinθsinθcosθ)

Since i represents a π2 rotation, it can also be expressed as a matrix

i=(011 0)

such that

i2=(0110)(0110)=(1001)=1

A complex number can be rewritten in matrix form as

z=a+ib=(abba)

In which the conjugate equates to the transpose of the matrix

z=zT