Skip to content

Complex Numbers ​

Complex numbers are fundamental to signal processing. They provide an elegant way to represent and manipulate sinusoidal signals, analyze frequency content, and describe system behavior.

The Imaginary Unit ​

Definition ​

The imaginary unit j (often denoted i in mathematics) is defined as:

j=−1,thusj2=−1

Properties ​

Powers of j cycle with period 4:

j0=1,j1=j,j2=−1,j3=−j,j4=1,…

Rectangular Form ​

Definition ​

A complex number z in rectangular (Cartesian) form is:

z=x+jy

where:

  • x=Re(z) is the real part
  • y=Im(z) is the imaginary part

The Complex Plane ​

Complex numbers are visualized on the complex plane (Argand diagram), where the horizontal axis represents the real part and the vertical axis represents the imaginary part.

Complex plane

Properties ​

Equality: Two complex numbers are equal if and only if their real and imaginary parts are equal:

z1=z2⟺Re(z1)=Re(z2) and Im(z1)=Im(z2)

Complex Conjugate: The complex conjugate of z=x+jy is:

z∗=z¯=x−jy

Polar Form ​

Definition ​

A complex number can also be expressed in polar form:

z=r(cos⁡θ+jsin⁡θ)

where:

  • r=|z|=x2+y2 is the magnitude (or modulus)
  • θ=∠z=arctan⁡(y/x) is the phase (or argument)

Properties ​

Conversion from Rectangular:

r=x2+y2,θ=arctan⁡(yx)

(Note: Use atan2(y, x) in code to handle all quadrants correctly)

Conversion to Rectangular:

x=rcos⁡θ,y=rsin⁡θ

Exponential Form and Euler's Formula ​

Euler's Formula ​

Euler's formula is one of the most important results in mathematics:

ejθ=cos⁡θ+jsin⁡θ

Euler's formula visualization

Properties ​

From Euler's formula, we can derive:

Cosine and Sine as Exponentials:

cos⁡θ=ejθ+e−jθ2sin⁡θ=ejθ−e−jθ2j

Exponential Form of Complex Numbers:

z=rejθ

This combines magnitude and phase into a compact notation.

Complex Arithmetic ​

Addition and Subtraction ​

Add/subtract real and imaginary parts separately:

(a+jb)+(c+jd)=(a+c)+j(b+d)(a+jb)−(c+jd)=(a−c)+j(b−d)

Multiplication ​

In rectangular form:

(a+jb)(c+jd)=(ac−bd)+j(ad+bc)

In polar/exponential form (more elegant):

r1ejθ1⋅r2ejθ2=r1r2ej(θ1+θ2)

Magnitudes multiply, phases add.

Division ​

In rectangular form:

a+jbc+jd=(a+jb)(c−jd)(c+jd)(c−jd)=(ac+bd)+j(bc−ad)c2+d2

In polar/exponential form:

r1ejθ1r2ejθ2=r1r2ej(θ1−θ2)

Magnitudes divide, phases subtract.

Complex Exponentials and Rotation ​

The Unit Circle ​

The complex exponential ejθ traces the unit circle as θ varies:

|ejθ|=1for all θ

Complex exponential rotation

Properties ​

Rotating Phasor: ejωt represents a point rotating counterclockwise on the unit circle with angular velocity ω.

Periodicity:

ej(θ+2π)=ejθ

De Moivre's Theorem:

(ejθ)n=ejnθ=cos⁡(nθ)+jsin⁡(nθ)

Key Formulas ​

FormulaExpression
Euler's formulaejθ=cos⁡θ+jsin⁡θ
Magnitude|z|=x2+y2=z⋅z∗
Phase∠z=arctan⁡(y/x)
Conjugate(x+jy)∗=x−jy
Cosinecos⁡θ=ejθ+e−jθ2
Sinesin⁡θ=ejθ−e−jθ2j