DSP First - Appendix A - Complex Numbers
- In this appendix, the basic manipulations of complex numbers are reviewed. There ideas are treated:
- simple algebraic rules: operations on z=x+jyz=x+jy.
- elimination of trigonometry: Euler's formula for the complex exponential z=rejθ=rcosθ+jrsinθz=rejθ=rcosθ+jrsinθ.
- representation by vectors: a way for visualization.
- Symbol: ii or jj
- Physicists and mathematicians use symbol i=√−1i=√−1.
- Electrical engineers use symbol j=√−1j=√−1 instead because ii is left to the current.
- Algebraic vs. Trigonometric vs. Geometric.
A.1 Introduction
- The way jj is introduced: z2=−1z2=−1 ==> z=±jz=±j.
- More general, complex numbers are the roots of quadratic equations.
A.2 Notation for complex numbers
- There are two types complex number representations:
- Rectangular form (Cartesian form): z=(x,y)=x+jy=ℜ{z}+jℑ{z}z=(x,y)=x+jy=R{z}+jI{z}, where ℜ{}R{} and ℑ{}I{} represent the real and imaginary parts of the complex number, respectively.
- Polar form: z↔r∠θz↔r∠θ where rr is the amplitude and ∠θ∠θ is the angle whose principal value belongs to −180∘<θ<180∘−180∘<θ<180∘
- Conversion:
- polar --> rectangular: z=x+jyz=x+jy, where {x=rcosθ,y=rsinθ
- rectangular --> polar: z=rejθ=|z|ejarg|z|, where {r=√x2+y2,θ=atan(y,x)
A.3 Euler's formula
- Euler's formula ejθ=cosθ+jsinθ
- Inverse Euler fomulas cosθ=ejθ+e−jθ2sinθ=ejθ−e−jθ2
A.4 Algebraic rules for complex numbers
Rectangular form
For z1=x1+jy1 and z2=x2+jy2,
- addition and subtraction: z1±z2=(x1±x2)+j(y1±y2).
- multiplication: z1z2=(x1x2−y1y2)+j(x1y2+x2y1)
- conjugate: z∗1=x1−jy1
- division: z1z2=z1z∗2z2z∗2=z1z∗2|z2|2=(x1x2+y1y2)+j(x2y1−x1y2)x22+y22
Polar form
For z1=r1ejθ1 and z2=r2ejθ2,
- multiplication: z1z2=(r1r2)ej(θ1+θ2)
- conjugate: z∗1=r1e−jθ1
- division: z1z2=r1r2ej(θ1−θ2)
- addition and subtraction: transfer to rectangular form and do the addition or subtraction, and then, transfer back to polar form.
others
- ℜ{z}=z+z∗2
- ℑ{z}=z−z∗2j
- |z|2=zz∗
A.5 Geometric views off complex operations
A geometric view provides a convenient visualization for complex number operations.
A.6 Powers and Roots
- zN=(rejθ)N=rNejNθ
- De Moivre's formula: (cosθ+jsinθ)N=cosNθ+jsinNθ (because (ejθ)N=ejNθ)
- Roots of unity (zN=1): z=ej2πl/N for l=0,1,2…N−1
- zN=c=|c|ejϕ: z=rejθ, where {r=|c|1/N,θ=ϕ+2πlN, and θ is the angular spacing.