CH 02
CH 02
CH 02
x(t) = A cos(ωot + φ)
1
Many physical systems generate signals that can be
modeled as sinusoids. Two examples:
• tuning fork
• clay whistle
T≈8.15−5.85
=2.3 ms
Time (sec)
f =1/T
=1000 /2. 3
¿ 435 Hz
2
Let us look at the sinusoidal signal more closely:
3
periodic vs. aperiodic (non-periodic) signals
Periodic signals are characterized by a repeating
pattern that repeats itself infinitely many times.
expressing this mathematically:
x(t + nTo) = x(t) ∀t ∈ R ∀n ∈ Z and some To
To: period of the signal
The duration of one cycle of the sinusoid.
The shortest time interval over which the pattern
repeats itself is called the fundamental period. Its
reciprocal is the fundamental frequency fo.
The frequency of the sinusoid determines its period.
To = 1/fo or fo = 1/To
fo indicates the number of cycles per unit time.
To prove that sinusoids are periodic:
x(t) = A cos(ωot + φ)
x(t + nTo) = A cos[ωo(t + nTo) + φ]
= A cos(ωot + ωonTo + φ)
= A cos(ωot + n2π |{z}
foTo +φ)
1
= A cos(ωot + 2πn + φ)
= A cos(ωot + φ)
= x(t) ∀t ∈ R ∀n ∈ Z
4
There is an inverse relationship between time and
frequency.
What happens if fo = 0 or if ωo = 0?
fo = 0 is a perfectly acceptable value.
x(t) = A cos(ωot + φ)
= A cos(2πfot + φ)
= A cos(2π0t + φ)
= A cos(0 + φ)
= A cos(φ) (a constant)
5
Time Shift/Phase Shift
The phase shift parameter, together with fo, de-
termines the time locations of the maxima and the
minima of the sinusoid.
time-shifting a signal:
x(t): original signal
x(t − t1): time-shifted signal, shifted by t1
if t1 > 0, shift is to the right −→ delay
if t1 < 0, shift is to the left −→ advance
if t1 = 0, no shift
for the cosine waveform:
xo(t) = A cos(ωot)
(a cosine waveform with zero phase shift)
xo(t − t1) = A cos[ωo(t − t1)]
= A cos(ωot −ω
| {zot}1) φ : a constant
φ
= A cos(ωot + φ)
−π < φ ≤ π or (−π, π]
7
PROBLEM 2.1:
McClellan, Schafer and Yoder, Signal Processing First, ISBN 0-13-065562-7. This page should not be copied or electronically transmitted unless prior written
Pearson Prentice Hall, Inc. Upper Saddle River, NJ 07458.
c 2003 permission has been obtained from the authors. November 28, 2007
8
ex: The sinusoid x(t) = A cos(ωot + φ) is plot-
ted below. Find A, ωo, φ using the plot and write a
closed-form expression for the sinusoid.
9
Review of Complex Numbers and Operations
with Complex Numbers:
• study Appendix A
Im{z} z=∞
y z = x + jy = r∠θ = rejθ
unit
circle
1
r r sin θ
θ
r cos θ x Re{z}
x = r cos θ
y = r sin θ
11
Euler’s Formula:
More generally,
12
Proof of Euler’s Formula:
PROBLEM 2.4:
McClellan, Schafer and Yoder, Signal Processing First, ISBN 0-13-065562-7. This page should not be copied or electronically transmitted unless prior written
Pearson Prentice Hall, Inc. Upper Saddle River, NJ 07458.
c 2003 permission has been obtained from the authors. November 28, 2007
13
Complex Operations:
Cartesian form is more convenient for performing
addition and subtraction.
addition:
Suppose we have N arbitrary complex numbers zi in
Cartesian form where i = 1, . . . , N .
z1 = x1 + jy1
z2 = x2 + jy2
..
zN = xN + jyN
N
X
zsum = z1 + z2 + . . . + zN = zi
i=1
= (x1 + jy1) + (x2 + jy2) + . . . + (xN + jyN )
= (x1 + x2 + . . . + xN ) + j(y1 + y2 + . . . + yN )
XN N
X
= xi + j yi
i=1 i=1
14
subtraction:
First, demonstrate subtraction with two complex
numbers z1 and z2 in Cartesian form where
z1 = x1 + jy1
z2 = x2 + jy2
z1 − z2 = (x1 − x2) + j(y1 − y2)
z1 = x1 + jy1
z2 = x2 + jy2
..
zN = xN + jyN
zsum = z1 + z2 − z3 − z4 + . . . + zN
= (x1 + jy1) + (x2 + jy2) − (x3 + jy3) − (x4 + jy4)
+ . . . + (xN + jyN )
= (x1 + x2 − x3 − x4 + . . . + xN )
+j(y1 + y2 − y3 − y4 + . . . + yN )
15
The polar form is more convenient for performing
multiplication and division.
Recall law of exponents for ordinary exponentials
from calculus: exey = e(x+y). This law is also appli-
cable to complex exponentials:
multiplication:
z1 = r1∠θ1 = r1ejθ1
z2 = r2∠θ2 = r2ejθ2
z3 = r3∠θ3 = r3ejθ3
..
zN = rN ∠θN = rN ejθN
zproduct = z1.z2.z3 . . . zN
= r1ejθ1 .r2ejθ2 .r3ejθ3 . . . rN ejθN
= r1.r2.r3 . . . rN ej(θ1+θ2+θ3+...+θN )
z1 = r1∠θ1 = r1ejθ1
z2 = r2∠θ2 = r2ejθ2
16
complex conjugation:
If a complex number z is expressed in Cartesian
form: z = x + jy, its complex conjugate is z ∗ =
x − jy.
z + z ∗ = 2Re{z} = 2x z − z ∗ = 2jIm{z} = 2jy
If a complex number z is expressed in polar form:
z = rejθ , its complex conjugate is z ∗ = re−jθ .
z.z ∗ = |z|2 = (x + jy)(x − jy) = x2 − (j 2) y 2
|{z}
−1
2 2 2
= x + y = r (magnitude squared)
e−jθ} = r2
Or, z.z ∗ = |z|2 = rejθ .re−jθ = r.r. e|jθ{z
1
A complex number and its complex conjugate are
symmetric about the real axis of the complex plane.
complex conjugate of a sum:
zsum = z1 + z2 + . . . + zN
∗
zsum = (z1 + z2 + . . . + zN )∗ = z1∗ + z2∗ + . . . + zN∗
Complex conjugate of a sum is the sum of the com-
plex conjugates.
complex conjugate of a product:
zpro = z1.z2 . . . zN
∗
zpro = (z1.z2 . . . zN )∗ = z1∗.z2∗ . . . .zN∗
Complex conjugate of a product is the product of
the complex conjugates.
17
complex conjugate of a ratio:
zquotient = zz12
∗
∗ z1 z1∗
zquotient = z2 = z ∗
2
second way:
x1 +jy1 x1 −jy1
z= x2 +jy2 z∗ = x2 −jy2
1 x1 −jy1 x21 −j 2 y12 x21 +y12
∗
z.z = |z| = 2
r2 = xx12+jy
+jy2 . x2 −jy2 = x22 −j 2 y22
= x22 +y22
18
Make sure you can also do the following polar-to-
Cartesian and Cartesian-to-polar conversions very fast
because we need them often:
ej0 = ej2π = e−j2π = 1 ej2πk = 1 (k integer)
ejπ = e−jπ = −1
π 3π
ej 2 = e−j 2 = j
π 3π
e−j 2 = ej 2 = −j
π
ej 4 = 1+j
√
2
−j π4
e = 1−j
√
2
etc.
Simple form of Euler’s formula can be used to prove
all of the above.
√
Since j = −1, we also have:
1
j 2 = −1 j 3 = −j j4 = 1 j = −j − 1j = j
Im{z}
z=∞
unit
circle
1
−1 1
Re{z}
19
Complex Exponential Signals:
The complex number z = rejθ is a constant.
(no time dependence)
Now, we introduce time dependence to z in its angle
part: z = rejθ(t) where θ(t) = ωot + φ. We still keep
its magnitude r constant.
This way, we obtain a complex exponential signal:
z(t) = rej(ωot+φ)
|z(t)| = A
arg z(t) = θ(t) = ωot + φ
Thus, we have
20
Real & Imaginary Part Plots
PHASE DIFFERENCE = π /2
z(t) = Aej(ωot+φ)
= Aejωotejφ (using the law of exponents in reverse)
jφ jωo t
= Ae
|{z} e (changing the order of the exponentials)
∆
=X
jωo t
= Xe
21
The phasor X is a complex constant which contains
the real amplitude A and the phase angle φ of the
complex exponential signal z(t). It is independent of
time. We use it to represent the complex exponential
signal z(t).
In electrical engineering, complex exponentials are
used to greatly simplify the design and analysis of
electrical circuits.
at t = 0:
jωo 0
z(t) = Xejωot = X e|{z} =X
t=0 t=0 1
The phase shift φ defines where the phasor is point-
ing at t = 0. Thus, X could be considered as the
starting point of the complex exponential signal z(t)
on the complex plane at t = 0.
• interpret z(t) as a rotating vector
on the complex plane
• if ωo > 0, as t ↑, θ(t) = ωot + φ ↑.
rotation is counter-clockwise (CCW).
• if ωo < 0, as t ↑, θ(t) = ωot + φ ↓.
rotation is clockwise (CW).
22
demo: rotating phasors (single phasor)
Note that the phasor itself is constant and does not
rotate on the complex plane. It is the complex ex-
ponential signal z(t) that rotates because it changes
with time.
23
Inverse Euler Formulas:
derivation:
Using Euler’s formula, we have:
ejθ = cos θ + j sin θ (1)
e−jθ = cos(−θ) + j sin(−θ) = cos θ − j sin θ (2)
Adding the two expressions together, the imaginary
parts cancel out and we get:
ejθ + e−jθ = 2 cos θ
Leaving cos θ on the left-hand side, we have:
ejθ + e−jθ
cos θ =
2
Similarly, we can subtract (2) from (1). This time,
the real parts cancel out and we get:
ejθ − e−jθ = 2j sin θ
Leaving sin θ on the left-hand side, we have:
ejθ − e−jθ
sin θ =
2j
Now, let us use the first one of inverse Euler formu-
las by choosing θ as θ(t) = ωot + φ:
ej(ωot+φ) + e−j(ωot+φ)
cos(ωot + φ) =
2
24
Multiplying both sides by the (real) amplitude A:
+ e−j(ωot+φ)
j(ωot+φ)
e
A cos(ωot + φ) = A
2
Expanding the right-hand side using the law of expo-
nents in reverse:
A jφ jωot A −jφ −jωot
A cos(ωot + φ) = e e + e e
2 2
Rewriting using the definition of the phasor:
∆
X = Aejφ
X jωot X ∗ −jωot
A cos(ωot + φ) = e + e
2 2
∗
z(t) z (t)
= +
2 2
= Re{z(t)}
25
demo: rotating phasors (two phasors)
ADD SINUSOIDS
27
applications in:
• telecommunications
• electromagnetics (e.g., antennas)
• circuit theory
• music
essence of the phasor addition rule:
N
X
Ak ejφk = Aejφ
k=1
28
PROBLEM 2.15:
McClellan, Schafer and Yoder, Signal Processing First, ISBN 0-13-065562-7. This page should not be copied or electronically transmitted unless prior written
Pearson Prentice Hall, Inc. Upper Saddle River, NJ 07458.
c 2003 permission has been obtained from the authors. November 28, 2007
29
exercise to do at home:
Find the resultant signal (in cosine form) obtained
by summing x(t) and y(t) where x(t) = 6 cos(20t+5)
and y(t) = 3 sin(20t). Note that the 5 in the argu-
ment of the sinusoid is in radians here. Verify your
numerical result by making a phasor diagram on
the complex plane. Identify also the period and the
cyclic frequency of the resultant signal.
30