Analytical Foundations of ECE
Complex Numbers
Definition of a Complex Number
Consider x 2 − 1 = 0 x^2-1=0 x 2 − 1 = 0 .
To find the roots:
x 2 − 1 = 0 x 2 = 1 x = 1 ⇒ x = ± 1
\begin{aligned}
x^2-1 &= 0\\
x^2 &= 1\\
x &= \sqrt{1}\\
\rArr x &= \plusmn{1}
\end{aligned}
x 2 − 1 x 2 x ⇒ x = 0 = 1 = 1 = ± 1
Now consider x 2 + 1 = 0 x^2+1=0 x 2 + 1 = 0 :
x 2 + 1 = 0 x 2 = − 1 x = − 1 ⇒ x = ± j
\begin{aligned}
x^2 + 1 &= 0\\
x^2 &= -1\\
x &= \sqrt{-1}\\
\rArr x &= \plusmn{j}
\end{aligned}
x 2 + 1 x 2 x ⇒ x = 0 = − 1 = − 1 = ± j
j j j is an imaginary unit introduced to solve this type of equation. It is better known as i i i :
i 2 = − 1 { Mathematics Physics Chemistry
i^2 = -1
\begin{cases}
\text{Mathematics} \\
\text{Physics} \\
\text{Chemistry}
\end{cases}
i 2 = − 1 ⎩ ⎨ ⎧ Mathematics Physics Chemistry
j 2 = − 1 { Engineering
j^2 = -1
\begin{cases}
\text{Engineering}
\end{cases}
j 2 = − 1 { Engineering
A complex number is represented as z = a + j b z = a+jb z = a + j b , where:
a = R e ( z ) Real part of z b = I m ( z ) Imaginary part of z
\begin{aligned}
a &= Re(z)\ &\text{Real part of }z\\
b &= Im(z)\ &\text{Imaginary part of }z
\end{aligned}
a b = R e ( z ) = I m ( z ) Real part of z Imaginary part of z
Complex Number Example
Sketch the following complex numbers in the 2D complex plane.
z 1 = 1 + j 2 z_1 = 1 + j2 z 1 = 1 + j 2
z 2 = − 1 + j 2 z_2 = -1 + j2 z 2 = − 1 + j 2
z 3 = − 1 − j 2 z_3 = -1 - j2 z 3 = − 1 − j 2
z 4 = 1 − j 2 z_4 = 1 - j2 z 4 = 1 − j 2
For a complex number z = a + j b z = a + jb z = a + j b , the magnitude of z z z is denoted by ∣ z ∣ |z| ∣ z ∣ . It represents the distance of a complex number from the origin. Using simple trigonometry:
∣ z ∣ = R e ( z ) 2 + I m ( z ) 2 = a 2 + b 2
\begin{aligned}
|z| &= \sqrt{Re(z)^2+Im(z)^2}\\
&= \sqrt{a^2+b^2}
\end{aligned}
∣ z ∣ = R e ( z ) 2 + I m ( z ) 2 = a 2 + b 2
Conjugate of a complex number z = a + j b z = a+jb z = a + j b is denoted by z ∗ z^{\ast} z ∗ . It’s obtained by replacing j j j by − j -j − j in the expression of z z z .
Complex numbers can be represented in 3 forms:
Rectangular Form (also known as Cartesian form)
Exponential Form
Polar Form
A complex number is expressed in Rectangular (Cartesian) form as
z = a + j b where a = R e ( z ) b = I m ( z )
\begin{aligned}
z = a + jb \quad\text{where}\thickspace &a = Re(z)\\
&b = Im(z)
\end{aligned}
z = a + j b where a = R e ( z ) b = I m ( z )
Consider the following complex number mapped in the complex plane:
Then the following applies:
a = ∣ z ∣ cos θ b = ∣ z ∣ sin θ
\begin{gathered}
a = |z|\cos{\theta}\\
b = |z|\sin{\theta}
\end{gathered}
a = ∣ z ∣ cos θ b = ∣ z ∣ sin θ
b a = ∣ z ∣ sin θ ∣ z ∣ cos θ = tan θ = I m ( z ) R e ( z )
\dfrac{b}{a} = \dfrac{|z|\sin{\theta}}{|z|\cos{\theta}} = \tan{\theta} = \dfrac{Im(z)}{Re(z)}
a b = ∣ z ∣ cos θ ∣ z ∣ sin θ = tan θ = R e ( z ) I m ( z )
⇒ θ = arctan ( b a ) = arctan ( I m ( z ) R e ( z ) )
\rArr \theta = \arctan{\Big\lparen \dfrac{b}{a} \Big\rparen} = \arctan{\Big( \dfrac{Im(z)}{Re(z)}\Big)}
⇒ θ = arctan ( a b ) = arctan ( R e ( z ) I m ( z ) )
Thus,
z = a + j b = ∣ z ∣ cos θ + j ∣ z ∣ sin θ = ∣ z ∣ ( cos θ + j sin θ )
\begin{aligned}
z &= a + jb\\
& = |z|\cos{\theta} + j|z|\sin{\theta}\\
& = |z|(\cos{\theta} + j\sin{\theta})
\end{aligned}
z = a + j b = ∣ z ∣ cos θ + j ∣ z ∣ sin θ = ∣ z ∣ ( cos θ + j sin θ )
From here, we can introduce a new, and famous, formula.
Euler’s Formula:
e j θ = cos θ + j sin θ
\Large e^{j\theta}=\cos{\theta}+j\sin{\theta}
e j θ = cos θ + j sin θ
Now, using Euler’s formula:
z = ∣ z ∣ ( cos θ + j sin θ ) = ∣ z ∣ e j θ
\begin{aligned}
z &= |z|(\cos{\theta}+j\sin{\theta})\\
&= |z|e^{j\theta}
\end{aligned}
z = ∣ z ∣ ( cos θ + j sin θ ) = ∣ z ∣ e j θ
This is known as the exponential form.
Note on the angle of a complex number
Consider the formula we derived earlier for the angle θ \theta θ :
θ = arctan ( I m ( z ) R e ( z ) )
\theta = \arctan{\Big( \dfrac{Im(z)}{Re(z)}\Big)}
θ = arctan ( R e ( z ) I m ( z ) )
There is a problem. Inverse tangent only has a valid range of ( − π 2 , π 2 ) (-\frac{\pi}{2},\frac{\pi}{2}) ( − 2 π , 2 π ) .
This unfortunately means that this formula does not work properly for complex numbers in the second and third quadrants of the complex plane, when its real component is negative.
This makes sense. When considering the fraction I m ( z ) / R e ( z ) Im(z)/Re(z) I m ( z ) / R e ( z ) , the resulting ratio does not change when both signs flip, or when only the sign moves between the numerator and denominator. In other words, these resulting ratios are equivalent:
− I m ( z ) R e ( z ) = I m ( z ) − R e ( z )
\dfrac{-Im(z)}{Re(z)}=\dfrac{Im(z)}{-Re(z)}
R e ( z ) − I m ( z ) = − R e ( z ) I m ( z )
− I m ( z ) − R e ( z ) = I m ( z ) R e ( z )
\dfrac{-Im(z)}{-Re(z)}=\dfrac{Im(z)}{Re(z)}
− R e ( z ) − I m ( z ) = R e ( z ) I m ( z )
This means that the formula for our angle in its current form is inaccurate for complex numbers with a negative real component. To remedy this, it is helpful to picture a complex number in the complex plane when its real and imaginary components are known.
When the real component is less than 0, i.e. negative, the complex number is either in the second or third quadrants.
If the imaginary component is less than 0, i.e. negative, the complex number is either in the third or fourth quadrants.
Using this:
If ( R e ( z ) < 0 ) ∧ ( I m ( z ) > 0 ) (Re(z) < 0) \land (Im(z) > 0) ( R e ( z ) < 0 ) ∧ ( I m ( z ) > 0 ) , then π 2 < θ < π \frac{\pi}{2} < \theta < \pi 2 π < θ < π
If ( R e ( z ) < 0 ) ∧ ( I m ( z ) < 0 ) (Re(z) < 0) \land (Im(z) < 0) ( R e ( z ) < 0 ) ∧ ( I m ( z ) < 0 ) , then − π < θ < − π 2 -\pi < \theta < -\frac{\pi}{2} − π < θ < − 2 π
From here, we can now derive a more verbose formula for the angle of a complex number:
θ = { arctan ( I m ( z ) R e ( z ) ) if R e ( z ) > 0 arctan ( I m ( z ) R e ( z ) ) + π if R e ( z ) < 0 ∧ I m ( z ) ≥ 0 arctan ( I m ( z ) R e ( z ) ) − π if R e ( z ) < 0 ∧ I m ( z ) < 0 π / 2 if R e ( z ) = 0 ∧ I m ( z ) > 0 − π / 2 if R e ( z ) = 0 ∧ I m ( z ) < 0
\theta =
\begin{cases}
\arctan{\Big( \dfrac{Im(z)}{Re(z)}\Big)} &\text{if } Re(z) > 0 \\
\arctan{\Big( \dfrac{Im(z)}{Re(z)}\Big)} + \pi &\text{if } Re(z) < 0 \land Im(z) \geq 0\\
\arctan{\Big( \dfrac{Im(z)}{Re(z)}\Big)} - \pi &\text{if } Re(z) < 0 \land Im(z) < 0\\
\pi/2 & \text{if } Re(z) = 0 \land Im(z) > 0\\
-\pi/2 & \text{if } Re(z) = 0 \land Im(z) < 0
\end{cases}
θ = ⎩ ⎨ ⎧ arctan ( R e ( z ) I m ( z ) ) arctan ( R e ( z ) I m ( z ) ) + π arctan ( R e ( z ) I m ( z ) ) − π π /2 − π /2 if R e ( z ) > 0 if R e ( z ) < 0 ∧ I m ( z ) ≥ 0 if R e ( z ) < 0 ∧ I m ( z ) < 0 if R e ( z ) = 0 ∧ I m ( z ) > 0 if R e ( z ) = 0 ∧ I m ( z ) < 0
Express the following complex numbers in exponential form:
z 1 = 1 + j z_1=1+j z 1 = 1 + j
∣ z 1 ∣ = 1 2 + 1 2 = 2
|z_1| = \sqrt{1^2+1^2} = \sqrt{2}
∣ z 1 ∣ = 1 2 + 1 2 = 2
θ 1 = arctan 1 1 = π 4 = 45 °
\theta_1 = \arctan{\frac{1}{1}} = \frac{\pi}{4} = 45\degree
θ 1 = arctan 1 1 = 4 π = 45°
⇒ z 1 = 2 e j π / 4
\rArr z_1 = \sqrt{2}e^{j\pi/4}
⇒ z 1 = 2 e j π /4
z 2 = − 1 + j z_2=-1+j z 2 = − 1 + j
∣ z 2 ∣ = ( − 1 ) 2 + 1 2 = 2
|z_2| = \sqrt{(-1)^2+1^2} = \sqrt{2}
∣ z 2 ∣ = ( − 1 ) 2 + 1 2 = 2
θ 2 = arctan ( 1 − 1 ) + π = 3 π 4 = 135 °
\theta_2 = \arctan{(\frac{1}{-1})}+\pi = \frac{3\pi}{4} = 135\degree
θ 2 = arctan ( − 1 1 ) + π = 4 3 π = 135°
⇒ z 2 = 2 e j 3 π / 4
\rArr z_2 = \sqrt{2}e^{j3\pi/4}
⇒ z 2 = 2 e j 3 π /4
z 3 = − 1 − j z_3=-1-j z 3 = − 1 − j
∣ z 3 ∣ = ( − 1 ) 2 + ( − 1 ) 2 = 2
|z_3| = \sqrt{(-1)^2+(-1)^2} = \sqrt{2}
∣ z 3 ∣ = ( − 1 ) 2 + ( − 1 ) 2 = 2
θ 3 = arctan ( − 1 − 1 ) − π = − 3 π 4 = − 135 °
\theta_3 = \arctan{(\frac{-1}{-1})} - \pi = -\frac{3\pi}{4} = -135\degree
θ 3 = arctan ( − 1 − 1 ) − π = − 4 3 π = − 135°
⇒ z 3 = 2 e − j 3 π / 4
\rArr z_3 = \sqrt{2}e^{-j3\pi/4}
⇒ z 3 = 2 e − j 3 π /4
z 4 = 1 − j z_4=1-j z 4 = 1 − j
∣ z 4 ∣ = 1 2 + ( − 1 ) 2 = 2
|z_4| = \sqrt{1^2+(-1)^2} = \sqrt{2}
∣ z 4 ∣ = 1 2 + ( − 1 ) 2 = 2
θ 4 = arctan 1 − 1 = − π 4 = − 45 °
\theta_4 = \arctan{\frac{1}{-1}} = -\frac{\pi}{4} = -45\degree
θ 4 = arctan − 1 1 = − 4 π = − 45°
⇒ z 4 = 2 e − j π / 4
\rArr z_4 = \sqrt{2}e^{-j\pi/4}
⇒ z 4 = 2 e − j π /4
A complex number is expressed in polar form as:
z = ∣ z ∣ ∠ θ
z = |z| \angle \theta
z = ∣ z ∣∠ θ
Complex Number Algebra
Let z 1 = a + j b z_1 = a + jb z 1 = a + j b and z 2 = c + j d z_2 = c + jd z 2 = c + j d
Addition : Calculate z a = z 1 + z 2 z_a = z_1 + z_2 z a = z 1 + z 2
= ( a + j b ) + ( c + j d ) = ( a + c ) + j ( b + d )
\begin{aligned}
&= (a + jb)+(c + jd)\\
&= (a+c) + j(b + d)
\end{aligned}
= ( a + j b ) + ( c + j d ) = ( a + c ) + j ( b + d )
Subtraction : Calculate z s = z 1 − z 2 z_s = z_1 - z_2 z s = z 1 − z 2
= ( a + j b ) − ( c + j d ) = ( a − c ) + j ( b − d )
\begin{aligned}
&= (a + jb)-(c + jd)\\
&= (a-c) + j(b - d)
\end{aligned}
= ( a + j b ) − ( c + j d ) = ( a − c ) + j ( b − d )
Multiplication : Calculate z m = z 1 ∗ z 2 z_m = z_1 * z_2 z m = z 1 ∗ z 2
= ( a + j b ) ( c + j d ) = a c + j ( a d ) + j ( b c ) + j b ( j d ) = a c + j ( a d + b c ) − b d
\begin{aligned}
&= (a + jb)(c + jd)\\
&= ac + j(ad) + j(bc) + jb(jd)\\
&= ac + j(ad + bc) - bd
\end{aligned}
= ( a + j b ) ( c + j d ) = a c + j ( a d ) + j ( b c ) + j b ( j d ) = a c + j ( a d + b c ) − b d
Division : Calculate z d = z 1 / z 2 z_d = z_1 / z_2 z d = z 1 / z 2
= a + j b c + j d = ( a + j b ) ( c − j d ) ( c + j d ) ( c − j d ) = a c − j a d + j b c − j 2 b d c 2 − j c d + j c d − j 2 d 2 = a c + b d + j ( b c − a d ) c 2 + d 2 = a c + b d c 2 + d 2 + j b c − a d c 2 + d 2
\begin{aligned}
&= \frac{a+jb}{c+jd}\\
&= \frac{(a+jb)(c-jd)}{(c+jd)(c-jd)}\\
&= \frac{ac-jad+jbc-j^2bd}{c^2-jcd+jcd-j^2d^2}\\
&= \frac{ac+bd+j(bc-ad)}{c^2+d^2}\\
&= \frac{ac+bd}{c^2+d^2} + j\frac{bc-ad}{c^2+d^2}
\end{aligned}
= c + j d a + j b = ( c + j d ) ( c − j d ) ( a + j b ) ( c − j d ) = c 2 − j c d + j c d − j 2 d 2 a c − j a d + j b c − j 2 b d = c 2 + d 2 a c + b d + j ( b c − a d ) = c 2 + d 2 a c + b d + j c 2 + d 2 b c − a d
Multiplying by its Conjugate
In the division example, we multiply both parts of the fraction by the conjugate of the denominator, or ( z 2 ) ∗ (z_2)^{\ast} ( z 2 ) ∗ .
This allows us to create a difference of squares, which removes the imaginary part of the denominator, allowing us to simplify our fraction, and eventually split it into the form a + j b a+jb a + j b .
However, some of those more keen-eyed may have noticed something familiar about the denominator when multiplying a complex number by its conjugate. Let’s explore it a bit further:
Let us define a complex number: z = a + j b z = a + jb z = a + j b .
Therefore,
z ∗ = a − j b
z^{\ast} = a - jb
z ∗ = a − j b
Now let us calculate z × z ∗ z \times z^{\ast} z × z ∗ as we described earlier:
z × z ∗ = ( a + j b ) ( a − j b ) = a ( a ) + a ( − j b ) + j b ( a ) + j b ( − j b ) = a 2 − j a b + j a b − j 2 b 2 = a 2 + b 2
\begin{aligned}
z \times z^{\ast} &= (a+jb)(a-jb)\\
&= a(a) + a(-jb) + jb(a) + jb(-jb)\\
&= a^2 - jab + jab - j^2b^2\\
&= a^2 + b^2
\end{aligned}
z × z ∗ = ( a + j b ) ( a − j b ) = a ( a ) + a ( − j b ) + j b ( a ) + j b ( − j b ) = a 2 − j ab + j ab − j 2 b 2 = a 2 + b 2
This looks suspiciously similar to another equation we saw earlier: the magnitude of a complex number, ∣ z ∣ |z| ∣ z ∣ . In fact, if we square ∣ z ∣ |z| ∣ z ∣ , we get the exact same value:
∣ z ∣ 2 = ( a 2 + b 2 ) 2 = a 2 + b 2
\begin{aligned}
|z|^2 &= (\sqrt{a^2+b^2})^2\\
&= a^2 + b^2
\end{aligned}
∣ z ∣ 2 = ( a 2 + b 2 ) 2 = a 2 + b 2
Essentially, this means we can conclude:
z z ∗ ≡ ∣ z ∣ 2 = a 2 + b 2
\begin{aligned}
zz^{\ast} \equiv |z|^2 = a^2 + b^2
\end{aligned}
z z ∗ ≡ ∣ z ∣ 2 = a 2 + b 2
Earlier, we introduced Euler’s formula:
e j θ = cos θ + j sin θ
e^{j\theta} = \cos{\theta}+j\sin{\theta}
e j θ = cos θ + j sin θ
Now, we can build upon this formula. Using trigonometric identities, namely the fact that cos ( − θ ) = cos θ \cos{(-\theta)} = \cos{\theta} cos ( − θ ) = cos θ and sin ( − θ ) = − sin θ \sin{(-\theta)} = -\sin{\theta} sin ( − θ ) = − sin θ , it holds that the following is true:
e − j θ = cos θ − j sin θ
e^{-j\theta} = \cos{\theta}-j\sin{\theta}
e − j θ = cos θ − j sin θ
Using these two, we can now further manipulate Euler’s formula to prove the following:
e j θ + e − j θ = ( cos θ + j sin θ ) + ( cos θ − j sin θ ) = 2 cos θ
\begin{aligned}
e^{j\theta} + e^{-j\theta} &= (\cos{\theta}+j\sin{\theta}) + (\cos{\theta}-j\sin{\theta})\\
&= 2\cos{\theta}
\end{aligned}
e j θ + e − j θ = ( cos θ + j sin θ ) + ( cos θ − j sin θ ) = 2 cos θ
e j θ − e − j θ = ( cos θ + j sin θ ) − ( cos θ − j sin θ ) = 2 j sin θ
\begin{aligned}
e^{j\theta} - e^{-j\theta} &= (\cos{\theta}+j\sin{\theta}) - (\cos{\theta}-j\sin{\theta})\\
&= 2j\sin{\theta}
\end{aligned}
e j θ − e − j θ = ( cos θ + j sin θ ) − ( cos θ − j sin θ ) = 2 j sin θ
Therefore,
e j θ + e − j θ 2 = cos θ
\frac{e^{j\theta} + e^{-j\theta}}{2} = \cos{\theta}
2 e j θ + e − j θ = cos θ
e j θ − e − j θ j 2 = sin θ
\frac{e^{j\theta} - e^{-j\theta}}{j2} = \sin{\theta}
j 2 e j θ − e − j θ = sin θ
Simplifying Trigonometry
We can use Euler’s formula to simplify complex trigonometric functions. Consider the following example:
cos 2 θ = ( e j θ + e − j θ 2 ) 2 = 1 4 ( e j θ + e − j θ ) 2
\begin{aligned}
\cos^2\!\theta &= \Big(\frac{e^{j\theta} + e^{-j\theta}}{2}\Big)^2\\
&=\frac{1}{4}(e^{j\theta} + e^{-j\theta})^2
\end{aligned}
cos 2 θ = ( 2 e j θ + e − j θ ) 2 = 4 1 ( e j θ + e − j θ ) 2
We can use Pascal’s Triangle to quickly simplify the binomial on the right side.
0 1 1 1 1 2 1 2 1 3 1 3 3 1 4 1 4 6 4 1 5 1 5 10 10 5 1
\begin{array}{c|cccccc}
0 & 1\\
1 & 1 & 1\\
2 & 1 & 2 & 1 \\
3 & 1 & 3 & 3 & 1 \\
4 & 1 & 4 & 6 & 4 & 1\\
5 & 1 & 5 & 10 & 10 & 5 & 1
\end{array}
0 1 2 3 4 5 1 1 1 1 1 1 1 2 3 4 5 1 3 6 10 1 4 10 1 5 1
We then get the following:
⇒ 1 4 [ ( e j θ ) 2 ( e − j θ ) 0 + 2 ( e j θ ) 1 ( e − j θ ) 1 + ( e j θ ) 0 ( e − j θ ) 2 ] = 1 4 [ ( e j 2 θ ) ( 1 ) + 2 ( e j θ ) ( e − j θ ) + ( 1 ) ( e − j 2 θ ) ] = 1 4 [ e j 2 θ + 2 + e − j 2 θ ] = 2 4 + e j 2 θ + e − j 2 θ 4 = 1 2 + 2 cos 2 θ 4 = 1 2 + cos 2 θ 2
\begin{aligned}
&\rArr \frac{1}{4}\Big[ (e^{j\theta})^2(e^{-j\theta})^0 + 2(e^{j\theta})^1(e^{-j\theta})^1 + (e^{j\theta})^0(e^{-j\theta})^2 \Big]\\
&= \frac{1}{4}\Big[ (e^{j2\theta})(1) + 2(e^{j\theta})(e^{-j\theta}) + (1)(e^{-j2\theta}) \Big]\\
&= \frac{1}{4}\Big[ e^{j2\theta} + 2 + e^{-j2\theta} \Big]\\
&= \frac{2}{4} + \frac{e^{j2\theta} + e^{-j2\theta}}{4}\\
&= \frac{1}{2} + \frac{2\cos{2\theta}}{4}\\
&= \frac{1}{2} + \frac{\cos{2\theta}}{2}
\end{aligned}
⇒ 4 1 [ ( e j θ ) 2 ( e − j θ ) 0 + 2 ( e j θ ) 1 ( e − j θ ) 1 + ( e j θ ) 0 ( e − j θ ) 2 ] = 4 1 [ ( e j 2 θ ) ( 1 ) + 2 ( e j θ ) ( e − j θ ) + ( 1 ) ( e − j 2 θ ) ] = 4 1 [ e j 2 θ + 2 + e − j 2 θ ] = 4 2 + 4 e j 2 θ + e − j 2 θ = 2 1 + 4 2 cos 2 θ = 2 1 + 2 cos 2 θ
Note here that we have actually derived the half-angle identity for cosine, which states:
cos θ 2 = ± 1 + cos θ 2 ⇒ ( cos θ 2 ) 2 = 1 + cos θ 2
\begin{gathered}
\cos{\frac{\theta}{2}} = \plusmn\sqrt{ \frac{1+\cos{\theta}}{2} }\\
\rArr (\cos{\frac{\theta}{2}})^2 = \frac{1+\cos{\theta}}{2}
\end{gathered}
cos 2 θ = ± 2 1 + cos θ ⇒ ( cos 2 θ ) 2 = 2 1 + cos θ
Here’s a more complicated example:
cos 5 θ \cos^5\!\theta cos 5 θ
= ( e j θ + e − j θ 2 ) 5 = 1 32 ( e j θ + e − j θ ) 5 = 1 32 [ ( e j θ ) 5 ( e − j θ ) 0 + 5 ( e j θ ) 4 ( e − j θ ) 1 + 10 ( e j θ ) 3 ( e − j θ ) 2 + 10 ( e j θ ) 2 ( e − j θ ) 3 + 5 ( e j θ ) 1 ( e − j θ ) 4 + ( e j θ ) 0 ( e − j θ ) 5 ] = 1 32 [ ( e j 5 θ ) ( 1 ) + 5 ( e j 4 θ ) ( e − j θ ) + 10 ( e j 3 θ ) ( e − j 2 θ ) + 10 ( e j 2 θ ) ( e − j 3 θ ) + 5 ( e j θ ) ( e − j 4 θ ) + ( 1 ) ( e − j 5 θ ) ] = 1 32 [ ( e j 5 θ ) + 5 ( e j 3 θ ) + 10 ( e j θ ) + 10 ( e − j θ ) + 5 ( e − j 3 θ ) + ( e − j 5 θ ) ] = 1 32 [ ( e j 5 θ + e − j 5 θ ) + 5 ( e j 3 θ + e − j 3 θ ) + 10 ( e j θ + e − j θ ) ] = 1 32 [ ( 2 cos 5 θ ) + 5 ( 2 cos 3 θ ) + 10 ( 2 cos θ ) ] = 1 32 [ 2 cos 5 θ + 10 cos 3 θ + 20 cos θ ] = 1 16 cos 5 θ + 5 16 cos 3 θ + 5 8 cos θ
\begin{aligned}
&= \Big(\frac{e^{j\theta} + e^{-j\theta}}{2}\Big)^5\\
&= \frac{1}{32}(e^{j\theta} + e^{-j\theta})^5\\
&= \frac{1}{32}\Big[ (e^{j\theta})^5(e^{-j\theta})^0 + 5(e^{j\theta})^4(e^{-j\theta})^1 + 10(e^{j\theta})^3(e^{-j\theta})^2 + 10(e^{j\theta})^2(e^{-j\theta})^3 + 5(e^{j\theta})^1(e^{-j\theta})^4 + (e^{j\theta})^0(e^{-j\theta})^5 \Big]\\
&= \frac{1}{32}\Big[ (e^{j5\theta})(1) + 5(e^{j4\theta})(e^{-j\theta}) + 10(e^{j3\theta})(e^{-j2\theta}) + 10(e^{j2\theta})(e^{-j3\theta}) + 5(e^{j\theta})(e^{-j4\theta}) + (1)(e^{-j5\theta}) \Big]\\
&= \frac{1}{32}\Big[ (e^{j5\theta}) + 5(e^{j3\theta}) + 10(e^{j\theta}) + 10(e^{-j\theta}) + 5(e^{-j3\theta}) + (e^{-j5\theta}) \Big]\\
&= \frac{1}{32}\Big[ (e^{j5\theta} + e^{-j5\theta}) + 5(e^{j3\theta} + e^{-j3\theta}) + 10(e^{j\theta} + e^{-j\theta}) \Big]\\
&= \frac{1}{32}\Big[ (2\cos{5\theta}) + 5(2\cos{3\theta}) + 10(2\cos{\theta}) \Big]\\
&= \frac{1}{32}\Big[ 2\cos{5\theta} + 10\cos{3\theta} + 20\cos{\theta} \Big]\\
&= \frac{1}{16}\cos{5\theta} + \frac{5}{16}\cos{3\theta} + \frac{5}{8}\cos{\theta}
\end{aligned}
= ( 2 e j θ + e − j θ ) 5 = 32 1 ( e j θ + e − j θ ) 5 = 32 1 [ ( e j θ ) 5 ( e − j θ ) 0 + 5 ( e j θ ) 4 ( e − j θ ) 1 + 10 ( e j θ ) 3 ( e − j θ ) 2 + 10 ( e j θ ) 2 ( e − j θ ) 3 + 5 ( e j θ ) 1 ( e − j θ ) 4 + ( e j θ ) 0 ( e − j θ ) 5 ] = 32 1 [ ( e j 5 θ ) ( 1 ) + 5 ( e j 4 θ ) ( e − j θ ) + 10 ( e j 3 θ ) ( e − j 2 θ ) + 10 ( e j 2 θ ) ( e − j 3 θ ) + 5 ( e j θ ) ( e − j 4 θ ) + ( 1 ) ( e − j 5 θ ) ] = 32 1 [ ( e j 5 θ ) + 5 ( e j 3 θ ) + 10 ( e j θ ) + 10 ( e − j θ ) + 5 ( e − j 3 θ ) + ( e − j 5 θ ) ] = 32 1 [ ( e j 5 θ + e − j 5 θ ) + 5 ( e j 3 θ + e − j 3 θ ) + 10 ( e j θ + e − j θ ) ] = 32 1 [ ( 2 cos 5 θ ) + 5 ( 2 cos 3 θ ) + 10 ( 2 cos θ ) ] = 32 1 [ 2 cos 5 θ + 10 cos 3 θ + 20 cos θ ] = 16 1 cos 5 θ + 16 5 cos 3 θ + 8 5 cos θ
(Example) Express the following complex numbers in rectangular form:
Recall common angles and their sine, cosine and tangents:
θ \theta θ
0 0 0
π / 6 \pi/6 π /6
π / 4 \pi/4 π /4
π / 3 \pi/3 π /3
π / 2 \pi/2 π /2
sin θ \sin{\theta} sin θ
0 / 2 \sqrt{0}/2 0 /2
1 / 2 \sqrt{1}/2 1 /2
2 / 2 \sqrt{2}/2 2 /2
3 / 2 \sqrt{3}/2 3 /2
4 / 2 \sqrt{4}/2 4 /2
cos θ \cos{\theta} cos θ
4 / 2 \sqrt{4}/2 4 /2
3 / 2 \sqrt{3}/2 3 /2
2 / 2 \sqrt{2}/2 2 /2
1 / 2 \sqrt{1}/2 1 /2
0 / 2 \sqrt{0}/2 0 /2
tan θ \tan{\theta} tan θ
0 0 0
1 / 3 1/\sqrt{3} 1/ 3
1 1 1
3 / 1 \sqrt{3}/1 3 /1
∞ \infin ∞
z 1 = 2 e j π / 6 z_1 = 2e^{j\pi/6} z 1 = 2 e j π /6
z 1 = 2 e j π / 6 = 2 ( cos ( π 6 ) + j sin ( π 6 ) ) = 2 ( 3 / 2 ) + 2 j ( 1 / 2 ) = 3 + j
\begin{aligned}
z_1 &= 2e^{j\pi/6}\\
&= 2(\cos(\frac{\pi}{6})+j\sin(\frac{\pi}{6}))\\
&= 2(\sqrt{3}/2)+2j(1/2)\\
&=\sqrt{3}+j
\end{aligned}
z 1 = 2 e j π /6 = 2 ( cos ( 6 π ) + j sin ( 6 π )) = 2 ( 3 /2 ) + 2 j ( 1/2 ) = 3 + j
z 2 = 4 e j π / 3 z_2 = 4e^{j\pi/3} z 2 = 4 e j π /3
z 2 = 4 e j π / 3 = 4 ( cos ( π 3 ) + j sin ( π 3 ) ) = 4 ( 1 / 2 ) + 4 j ( 3 / 2 ) = 2 + j 2 3
\begin{aligned}
z_2 &= 4e^{j\pi/3}\\
&= 4(\cos(\frac{\pi}{3})+j\sin(\frac{\pi}{3}))\\
&= 4(1/2)+4j(\sqrt{3}/2)\\
&=2+j2\sqrt{3}
\end{aligned}
z 2 = 4 e j π /3 = 4 ( cos ( 3 π ) + j sin ( 3 π )) = 4 ( 1/2 ) + 4 j ( 3 /2 ) = 2 + j 2 3
z 3 = 5 e j π / 2 z_3 = 5e^{j\pi/2} z 3 = 5 e j π /2
z 3 = 5 e j π / 2 = 5 ( cos ( π 2 ) + j sin ( π 2 ) ) = 5 ( 0 ) + 5 j ( 1 ) = j 5
\begin{aligned}
z_3 &= 5e^{j\pi/2}\\
&= 5(\cos(\frac{\pi}{2})+j\sin(\frac{\pi}{2}))\\
&= 5(0)+5j(1)\\
&=j5
\end{aligned}
z 3 = 5 e j π /2 = 5 ( cos ( 2 π ) + j sin ( 2 π )) = 5 ( 0 ) + 5 j ( 1 ) = j 5
More examples to consider:
j j j^j j j
j j = ( e j π / 2 ) j = e j 2 ( π / 2 ) = e − π / 2
\begin{aligned}
j^j &= (e^{j\pi/2})^j\\
&= e^{j^{2}(\pi/2)}\\
&= e^{-\pi/2}
\end{aligned}
j j = ( e j π /2 ) j = e j 2 ( π /2 ) = e − π /2
cos θ sin θ \cos{\theta}\sin{\theta} cos θ sin θ
cos θ sin θ = e j θ + e − j θ 2 e j θ − e − j θ 2 j = 1 4 j ( e j 2 θ − e − j 2 θ ) = 1 4 j ( 2 j sin ( 2 θ ) ) = 1 2 sin ( 2 θ )
\begin{aligned}
\cos{\theta}\sin{\theta} &= \frac{e^{j\theta}+e^{-j\theta}}{2}\frac{e^{j\theta}-e^{-j\theta}}{2j}\\
& = \frac{1}{4j}(e^{j2\theta}-e^{-j2\theta})\\
& = \frac{1}{4j}(2j\sin(2\theta))\\
& = \frac{1}{2}\sin(2\theta)
\end{aligned}
cos θ sin θ = 2 e j θ + e − j θ 2 j e j θ − e − j θ = 4 j 1 ( e j 2 θ − e − j 2 θ ) = 4 j 1 ( 2 j sin ( 2 θ )) = 2 1 sin ( 2 θ )
cos 2 θ − sin 2 θ \cos^2\theta-\sin^2\theta cos 2 θ − sin 2 θ
cos 2 ( θ ) − sin 2 ( θ ) = ( e j θ + e − j θ 2 ) 2 − ( e j θ − e − j θ 2 j ) 2 = 1 4 ( e j 2 θ + 2 + e − j 2 θ ) + 1 4 ( e j 2 θ − 2 + e − j 2 θ ) = 1 2 ( e j 2 θ + e − j 2 θ ) = 1 2 ( 2 cos ( 2 θ ) ) = cos ( 2 θ )
\begin{aligned}
\cos^2(\theta)-\sin^2(\theta)&=\Big\lparen\frac{e^{j\theta}+e^{-j\theta}}{2}\Big\rparen^2-\Big\lparen\frac{e^{j\theta}-e^{-j\theta}}{2j}\Big\rparen^2\\
&=\frac{1}{4}(e^{j2\theta}+2+e^{-j2\theta})+\frac{1}{4}(e^{j2\theta}-2+e^{-j2\theta})\\
&=\frac{1}{2}(e^{j2\theta}+e^{-j2\theta})\\
&=\frac{1}{2}(2\cos(2\theta))\\
&=\cos(2\theta)
\end{aligned}
cos 2 ( θ ) − sin 2 ( θ ) = ( 2 e j θ + e − j θ ) 2 − ( 2 j e j θ − e − j θ ) 2 = 4 1 ( e j 2 θ + 2 + e − j 2 θ ) + 4 1 ( e j 2 θ − 2 + e − j 2 θ ) = 2 1 ( e j 2 θ + e − j 2 θ ) = 2 1 ( 2 cos ( 2 θ )) = cos ( 2 θ )
( e j θ ) 2 (e^{j\theta})^2 ( e j θ ) 2
We will use the previous two examples to substitute parts of the following example.
( e j θ ) 2 = ( cos θ + j sin θ ) 2 = cos 2 θ + 2 j cos θ sin θ − sin 2 θ = cos 2 θ − sin 2 θ + 2 j cos θ sin θ = cos 2 θ + 2 j 1 2 sin 2 θ = cos 2 θ + j sin 2 θ ≡ e j 2 θ
\begin{aligned}
(e^{j\theta})^2 &= (\cos\theta + j\sin\theta)^2\\
&=\cos^2\theta + 2j\cos\theta\sin\theta - \sin^2\theta\\
&=\cos^2\theta - \sin^2\theta + 2j\cos\theta\sin\theta\\
&=\cos{2\theta} + 2j\frac{1}{2}\sin{2\theta}\\
&=\cos{2\theta} + j\sin{2\theta}\\
&\equiv e^{j2\theta}
\end{aligned}
( e j θ ) 2 = ( cos θ + j sin θ ) 2 = cos 2 θ + 2 j cos θ sin θ − sin 2 θ = cos 2 θ − sin 2 θ + 2 j cos θ sin θ = cos 2 θ + 2 j 2 1 sin 2 θ = cos 2 θ + j sin 2 θ ≡ e j 2 θ
In general:
e j n θ = cos n θ + j sin n θ
e^{jn\theta} = \cos{n\theta} + j\sin{n\theta}
e j n θ = cos n θ + j sin n θ
This is de Moivre’s formula.
nth roots of a Complex Number
Any non-zero complex number z z z has exactly n n n (positive integer) roots.
An n t h n^{th} n t h root of a complex number z z z is given by u n = z u^n = z u n = z
(Example) Cubic root of z = 1 z = 1 z = 1
u 3 = 1 = 1 e j ( 0 + 2 π k ) where k is an integer ⇒ u k = e j ( 0 3 + 2 k π 3 )
\begin{aligned}
u^3&=1\\
&=1e^{j(0+2\pi k)}\quad\text{where}\,k\,\text{is an integer}\\
\Rarr u_k&=e^{j(\frac{0}{3}+\frac{2k\pi}{3})}
\end{aligned}
u 3 ⇒ u k = 1 = 1 e j ( 0 + 2 π k ) where k is an integer = e j ( 3 0 + 3 2 k π )
In general… the n t h n^{th} n t h roots of unity (z = 1 z = 1 z = 1 ) are given by
e j 2 k π / n where k = 0 , 1 , … , n − 1
\Large e^{j2k\pi/n}\quad\text{where}\,k=0,1,\dots,n-1
e j 2 k π / n where k = 0 , 1 , … , n − 1
Let z = a + j b z = a + jb z = a + j b :
u n = z = a + j b = ∣ z ∣ e j θ u n = ∣ z ∣ e j ( θ + 2 k π ) u = ∣ z ∣ 1 n e j ( θ + 2 k π ) ⋅ 1 n = ∣ z ∣ 1 n e j ( θ n + 2 k π n ) where k = 0 , 1 , … , n − 1
\begin{aligned}
u^n = z &= a + jb = \lvert z \rvert e^{j\theta}\\
u^n &= \lvert z \rvert e^{j(\theta+2k\pi)}\\
u &= \lvert z \rvert^\frac{1}{n} e^{j(\theta+2k\pi)\cdot\frac{1}{n}}\\
&= \lvert z \rvert^\frac{1}{n}e^{j(\frac{\theta}{n}+\frac{2k\pi}{n})}\quad\text{where}\,k=0,1,\dots,n-1
\end{aligned}
u n = z u n u = a + j b = ∣ z ∣ e j θ = ∣ z ∣ e j ( θ + 2 k π ) = ∣ z ∣ n 1 e j ( θ + 2 k π ) ⋅ n 1 = ∣ z ∣ n 1 e j ( n θ + n 2 k π ) where k = 0 , 1 , … , n − 1
Example: z 6 + 2 z 3 − 3 z^6+2z^3-3 z 6 + 2 z 3 − 3
Let u = z 3 u = z^3 u = z 3 :
z 6 + 2 z 3 − 3 = u 2 + 2 u − 3
z^6+2z^3-3=u^2+2u-3
z 6 + 2 z 3 − 3 = u 2 + 2 u − 3
Solving for u u u yields u = 1 , u = − 3 u = 1, u = -3 u = 1 , u = − 3
Solving for z 3 = 1 z^3 = 1 z 3 = 1
z 3 = 1 = 1 e j ( 0 + 2 k π ) z 3 = e j ( 2 k π ) z k = e j ( 2 k π / 3 ) z 0 = 1 z 1 = e j ( 2 π / 3 ) z 2 = e j ( 4 π / 3 )
\begin{aligned}
z^3&=1=1e^{j(0+2k\pi)}\\
z^3&=e^{j(2k\pi)}\\
z_k&=e^{j(2k\pi/3)}\\
z_0&=1\\
z_1&=e^{j(2\pi/3)}\\
z_2&=e^{j(4\pi/3)}\\
\end{aligned}
z 3 z 3 z k z 0 z 1 z 2 = 1 = 1 e j ( 0 + 2 k π ) = e j ( 2 k π ) = e j ( 2 k π /3 ) = 1 = e j ( 2 π /3 ) = e j ( 4 π /3 )
Solving for z 3 = − 3 z^3 = -3 z 3 = − 3
z 3 = − 3 = 3 e j π z 3 = 3 e j ( π + 2 k π ) z 3 = 3 e j ( 1 + 2 k ) π z 0 = 3 3 e j π / 3 z 1 = 3 3 e j π z 2 = 3 3 e j 5 π / 3
\begin{aligned}
z^3&=-3=3e^{j\pi}\\
z^3&=3e^{j(\pi+2k\pi)}\\
z^3&=3e^{j(1+2k)\pi}\\
z_0&=\sqrt[3]{3}e^{j\pi/3}\\
z_1&=\sqrt[3]{3}e^{j\pi}\\
z_2&=\sqrt[3]{3}e^{j5\pi/3}
\end{aligned}
z 3 z 3 z 3 z 0 z 1 z 2 = − 3 = 3 e j π = 3 e j ( π + 2 k π ) = 3 e j ( 1 + 2 k ) π = 3 3 e j π /3 = 3 3 e j π = 3 3 e j 5 π /3
Functions
In electrical and computer engineering, signals are voltage and current. The functions depend on one or multiple variables.
v ( t ) v(t) v ( t ) , v v v is the dependent variable and t t t is the independent.
In this class, we will study functions of one independent variable which is time t t t .
i ( t ) current v ( t ) voltage
\begin{gathered}
i(t)\quad\text{current}\\
v(t)\quad\text{voltage}
\end{gathered}
i ( t ) current v ( t ) voltage
Exponential Functions
A real exponential function is defined as A e a t Ae^{at} A e a t where A , a A, a A , a are real constants.
v ( t ) = e 2 t v ( t ) = 10 e − 3 t
\begin{gathered}
v(t)=e^{2t}\\
v(t)=10e^{-3t}
\end{gathered}
v ( t ) = e 2 t v ( t ) = 10 e − 3 t
Sinusoidal Functions
A sine wave is defined as
X ( t ) = A cos ( ω t + θ )
X(t) = A\cos(\omega t+\theta)
X ( t ) = A cos ( ω t + θ )
where:
A A A is the peak amplitude A > 0 A > 0 A > 0
ω \omega ω is called the angular frequency, expressed in radians per second (rad/s)
θ \theta θ is called the phase angle
Unit Step Function
The unit step function is defined as
u ( t ) = { 1 , t ≥ 0 0 , t < 0
u(t) =
\begin{cases}
1,\thickspace t\geq0\\
0,\thickspace t<0
\end{cases}
u ( t ) = { 1 , t ≥ 0 0 , t < 0
One way to think of this is as a switch opening and closing a circuit at t = 0 t = 0 t = 0 .
Unit Impulse Function
The unit inpulse function (also known as the Dirac delta function) is defined as
δ ( t ) = d u ( t ) d t = { ∞ , t = 0 0 , elsewhere
\delta(t) = \frac{du(t)}{dt} =
\begin{cases}
\infin,\thickspace t=0\\
0,\thickspace\text{ elsewhere}
\end{cases}
δ ( t ) = d t d u ( t ) = { ∞ , t = 0 0 , elsewhere