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∗=a−ib

Or

z∗=re−iθ

Thus

||z||2=z⋅z∗

Scaling & Rotations

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

a⋅b=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(z1⋅z2)=arg(z1)+arg(z2)

De Moivre's Theorem

Based on the above, it's pretty evident that

zn=rneinθ=rn(cos⁡nθ+isin⁡nθ)

Correspondingly

z1n=r1n(cos⁡1nθ+isin⁡1nθ)

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=2⋅ei(π4+2πk)
  1. Apply De Moivre's theorem
z=(1+i)15=2110ei(π20+2kπ5)
  1. Find the values of k
    Since −π≤θ≤π. Thus k∈{−2,−1,0,1,2}
    ∴QED

Expressing cos⁡nθ, sin⁡nθ 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 cos⁡nθ and sin⁡nθ 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 cos⁡3θ and sin⁡3θ 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=cos⁡3θ+isin⁡3θ
  1. Equate the imaginary and real parts.
    Equating the real part
cos⁡3θ=cos3⁡θ−3cos⁡θsin2⁡θ=cos3⁡θ−3cos⁡θ(1−cos2⁡θ)=4cos3⁡θ−3cos⁡θ

Equating the imaginary part:

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

Interesting question

Pasted image 20250905153329.png

Given n lighthouses along a unit circle, suppose an observer is standing inside one of the lighthouse. Find and Express the product of the distance between the observer and all other lighthouses, (d0⋅d1⋅d2…) in terms of n.

Solution

Consider an Argand diagram. The n roots of xn=1 are spaced equidistance apart along a unit circle. Recall roots of unity.

xn=1

Suppose the observer stands at point O (on the roots) where O=L0=1+0i.
Pasted image 20250905154118.png|500

The n roots L0,L1,…Ln−1

xn−1=(x−L0)(x−L1)(x−L2)…(x−Ln−1)

Like vectors, see that x−La gives a complex number whose magnitude is equal to the distance between x and La. Thus the product

d0⋅d1⋅d2…dn−2=|(O−L1)(O−L2)…(O−Ln−1)|=On−1O−1=1+O+O2+O3…On−1=n

Source: https://www.youtube.com/watch?v=8GPy_UMV-08

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=(0−11 0)

such that

i2=(0−110)(0−110)=(−100−1)=−1

A complex number can be rewritten in matrix form as

z=a+ib=(a−bba)

In which the conjugate equates to the transpose of the matrix

z∗=zT

Split Complex numbers

Are defined as

j=−1

or

j2=1,j≠1j≠−1

Properties

ejx=cosh⁡x+jsinh⁡x

Forms a hyperbola
multiplying by j is a reflection about the y=x axis.
and

|j|=i