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=z2Re(z1)=Re(z2) and Im(z1)=Im(z2)

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

z=z¯=xjy

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θ+ejθ2sinθ=ejθejθ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)=(ac)+j(bd)

Multiplication

In rectangular form:

(a+jb)(c+jd)=(acbd)+j(ad+bc)

In polar/exponential form (more elegant):

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

Magnitudes multiply, phases add.

Division

In rectangular form:

a+jbc+jd=(a+jb)(cjd)(c+jd)(cjd)=(ac+bd)+j(bcad)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=zz
Phasez=arctan(y/x)
Conjugate(x+jy)=xjy
Cosinecosθ=ejθ+ejθ2
Sinesinθ=ejθejθ2j