You are on page 1of 25

Signal Processing First

Lecture 4
Spectrum Representation

01/03/24 © 2003, JH McClellan & RW Schafer 1


READING ASSIGNMENTS

 This Lecture:
 Chapter 3, Section 3-1

 Other Reading:
 Appendix A: Complex Numbers

 Next Lecture: Ch 3, Sects 3-2, 3-3, 3-7 & 3-8

01/03/24 © 2003, JH McClellan & RW Schafer 3


LECTURE OBJECTIVES

 Sinusoids with DIFFERENT Frequencies


 SYNTHESIZE by Adding Sinusoids
N
x (t )   Ak cos(2 f k t   k )
k 1
 SPECTRUM Representation
 Graphical Form shows DIFFERENT Freqs

01/03/24 © 2003, JH McClellan & RW Schafer 4


FREQUENCY DIAGRAM

 Plot Complex Amplitude vs. Freq

10
j / 3  j / 3
7e 7e
 j / 2 j / 2
4e 4e

–250 –100 0 100 250


f (in Hz)

01/03/24 © 2003, JH McClellan & RW Schafer 5


Another FREQ. Diagram
A-440
Frequency is the vertical axis

Time is the horizontal axis

01/03/24 © 2003, JH McClellan & RW Schafer 6


MOTIVATION

 Synthesize Complicated Signals


 Musical Notes
 Piano uses 3 strings for many notes
 Chords: play several notes simultaneously
 Human Speech
 Vowels have dominant frequencies
 Application: computer generated speech
 Can all signals be generated this way?
 Sum of sinusoids?

01/03/24 © 2003, JH McClellan & RW Schafer 7


Fur Elise WAVEFORM

Beat
Notes

01/03/24 © 2003, JH McClellan & RW Schafer 8


Speech Signal: BAT

 Nearly Periodic in Vowel Region


 Period is (Approximately) T = 0.0065 sec

01/03/24 © 2003, JH McClellan & RW Schafer 9


Euler’s Formula Reversed
 Solve for cosine (or sine)
j t
e  cos( t )  j sin( t )
 j t
e  cos(  t )  j sin(  t )
 j t
e  cos( t )  j sin( t )
j t  j t
e e  2 cos( t )
cos( t )  1 ( e j t e  j t
)
2
01/03/24 © 2003, JH McClellan & RW Schafer 10
INVERSE Euler’s Formula
 Solve for cosine (or sine)

cos( t )  1 ( e j t e  j t
)
2

j t  j t
sin( t )  1
2j
(e e )

01/03/24 © 2003, JH McClellan & RW Schafer 11


SPECTRUM Interpretation
 Cosine = sum of 2 complex exponentials:

A cos(7t )  A e j 7t  A e  j 7t
2 2
One has a positive frequency
The other has negative freq.
Amplitude of each is half as big

01/03/24 © 2003, JH McClellan & RW Schafer 12


NEGATIVE FREQUENCY

 Is negative frequency real?


 Doppler Radar provides an example
 Police radar measures speed by using the
Doppler shift principle
 Let’s assume 400Hz 60 mph
 +400Hz means towards the radar
 -400Hz means away (opposite direction)
 Think of a train whistle
01/03/24 © 2003, JH McClellan & RW Schafer 13
SPECTRUM of SINE
 Sine = sum of 2 complex exponentials:
A j 7t A  j 7t
A sin(7t )  2 j e  2 j e
1  j 0.5 j 7 t 1 j 0.5  j 7 t
 2 Ae e  2 Ae e
1 j 0.5
j
 je
 Positive freq. has phase = -0.5
 Negative freq. has phase = +0.5
01/03/24 © 2003, JH McClellan & RW Schafer 14
GRAPHICAL SPECTRUM
EXAMPLE of SINE
1  j 0.5 j 7t 1 j 0.5  j 7 t
A sin(7t )  2
Ae e  Ae
2
e

1 j 0.5 1  j 0.5
(2 A)e (2 A)e

-7 0 7 

AMPLITUDE, PHASE & FREQUENCY are shown

01/03/24 © 2003, JH McClellan & RW Schafer 15


SPECTRUM ---> SINUSOID
 Add the spectrum components:
10
j / 3  j / 3
7e 7e
 j / 2 j / 2
4e 4e

–250 –100 0 100 250


f (in Hz)

What is the formula for the signal x(t)?


01/03/24 © 2003, JH McClellan & RW Schafer 16
Gather (A,) information

 Frequencies:  Amplitude & Phase


 -250 Hz
 -100 Hz  4 -/2
 0 Hz  7 +/3
 100 Hz  10 0
 250 Hz  7 -/3
 4 conjugate phase
Note the +/2

DC is another name for zero-freq component


DC component always has or (for real x(t) )
01/03/24 © 2003, JH McClellan & RW Schafer 17
Add Spectrum Components-1
 Frequencies:  Amplitude & Phase
 -250 Hz
 -100 Hz  4 -/2
 0 Hz  7 +/3
 100 Hz  10 0
  7 -/3
250 Hz
 4 +/2

x (t )  10 
 j / 3 j 2 (100) t j / 3  j 2 (100) t
7e e  7e e
j / 2 j 2 ( 250) t  j / 2  j 2 ( 250) t
4e e  4e e
01/03/24 © 2003, JH McClellan & RW Schafer 18
Add Spectrum Components-2
10
j / 3  j / 3
7e 7e
 j / 2 j / 2
4e 4e

–250 –100 0 100 250


f (in Hz)

x (t )  10 
 j / 3 j 2 (100) t j / 3  j 2 (100) t
7e e  7e e
j / 2 j 2 ( 250) t  j / 2  j 2 ( 250) t
4e e  4e e
01/03/24 © 2003, JH McClellan & RW Schafer 19
Simplify Components

x (t )  10 
 j / 3 j 2 (100) t j / 3  j 2 (100) t
7e e  7e e
j / 2 j 2 ( 250) t  j / 2  j 2 ( 250) t
4e e  4e e
Use Euler’s Formula to get REAL sinusoids:

 j j t  j  j t
A cos( t   )  1
2
Ae e 1
 Ae
2
e
01/03/24 © 2003, JH McClellan & RW Schafer 20
FINAL ANSWER

x (t )  10  14 cos(2 (100)t   / 3)
 8 cos(2 ( 250)t   / 2)
So, we get the general form:
N
x (t )  A0   Ak cos(2 f k t   k )
k 1
01/03/24 © 2003, JH McClellan & RW Schafer 21
Summary: GENERAL FORM
N
x (t )  A0   Ak cos(2 f k t   k )
k 1

 
N
x ( t )  X 0   e X k e j 2 f k t
j k
k 1 X k  Ak e
e{z}  12 z  1 z Frequency  f k
2

 
N
x (t )  X 0   1
2
Xke j 2 f k t
 1
2
  j 2 f k t
Xke
k 1
01/03/24 © 2003, JH McClellan & RW Schafer 22
Example: Synthetic Vowel

 Sum of 5 Frequency Components

01/03/24 © 2003, JH McClellan & RW Schafer 23


SPECTRUM of VOWEL
 Note: Spectrum has 0.5Xk (except XDC)
 Conjugates in negative frequency

01/03/24 © 2003, JH McClellan & RW Schafer 24


SPECTRUM of VOWEL
(Polar Format)

0.5Ak

k

01/03/24 © 2003, JH McClellan & RW Schafer 25


Vowel Waveform
(sum of all 5 components)

01/03/24 © 2003, JH McClellan & RW Schafer 26

You might also like