Chapter4 PDF
Chapter4 PDF
Outline:
1. DTFT basics
2. Inversion of DTFT
3. Properties of DTFT
DTFT formula
X() DTFTx[n ] x[n] e j n
n
We always have:
x[n ]e
n
jn
x[n ]e
n
jn
x[n ] e
n
jn
= x[n ]
n
DTFT exists when:
x[n ]
n
From ZT to DTFT
Recall ZT of x[n]:
X(z) x[n]z
n
n
Evaluating X(z) on the unit circle (if the unit circle is in the
ROC of X(z)):
X( z)
z e j
x[n]e
n
j n
X()
From ZT to DTFT
X () X ( z )
z e j
If the ROC of the ZT contains the unit circle, we can get the
DTFT from the ZT by substitution z = ejΩ
Example of calculating DTFT
If |a| < 1:
j
1 e
X() a e n jn
(ae )
j n
j
n 0 n 0 1 ae j
e a
z e j
X ( z) , ROC :| z || a | X () j , | a | 1
za e a
Lecture 6
DTFT
Outline:
1. DTFT basics
2. Inversion of DTFT
3. Properties of DTFT
Inversion of DTFT
X() x[ n
n
] e j n
1 1
j n j l
2
j l
X()e d
2 n
x[n ]e
e d
1 j ( l n )
x[n ] e d x[l]
n 2
1
j n
x[n ] X() e d
2
Examples of calculating the
inverse DTFT
1, c
1. Find x[n] from its DTFT X(Ω): X()
0, c
1 c
1 jn c sin c n
x[n ] 1.e d
jn c
.e c
2
c
2jn c n
Examples of calculating the
inverse DTFT
2
e e 1 j2 1 1 j2
j j
X () e e
2 4 2 4
1 1 1
x[n ] [n 2] [n ] [n 2]
4 2 4
Examples of calculating of the
inverse of DTFT
e j
3. Find x(n) from its DTFT X(Ω): X() j
e 2
z
X(z) | z | 2
z2
x[n ] 2 u[n 1]
n
Lecture 6
DTFT
Outline:
1. DTFT basics
2. Inversion of DTFT
3. Properties of DTFT
Linearity
DTFT
ax[n] by[n] aX() bY()
DTFT
x[n n 0 ] e j n 0
X()
Proof: infer from the shifting property of ZT
ZT
x[n n 0 ] z X(z) n 0
DTFT
e j0 n
x[n ] (e
n
j0 n
x[n ])e jn
x[ n
n
]e j( ) n
0
X ( 0 )
DTFT
x1[n ] x 2 [n ] X1 ().X2 ()
Multiplication
1
in time X ( ) e j n
d 2
x [ n ]e jn
n 2 2
1
1 x [n ] e j( ) n d
X ( ) 2
2 2 n
1
1
2 2
X1
( ) X 2
( ) d Convolution in
frequency
HW
a ) x[n ] 2 , 1 , 0 , 1 , 2
2 ( 12 )n | n | 4
b) y[n ]
0 | n | 4
c) v[n ] 2 u[n ]
n
HW
(a ) x[n ] x[n 1]
(b) x[n ] cos(0.3 n )
jn / 2
(c) e x[n 2]
Lecture 7
Digital signal spectra
Outline:
1. Frequency spectrum
2. Nonperiodic signals
3. Periodic signals
Frequency spectrum
Outline:
1. Frequency spectrum
2. Nonperiodic signals
3. Periodic signals
DTFT to calculate spectrum of a
nonperiodic signal
j( )
X() X() e
Amplitude spectrum Phase spectrum
X ( ) x[n]e
n
jn
; X ( ) x[n]e
n
jn
X ( ) X ( ) *
j 4
3
1 e
X ( ) e jn
j
n 0 1 e
sin(2) j 3 / 2
e
sin( / 2)
Using Matlab to plot amplitude
spectrum and phase spectrum
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2
-4
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Phase spectrum
Lecture 7
Digital signal spectra
Outline:
1. Frequency spectrum
2. Nonperiodic signals
3. Periodic signals
Periodic sinusoidal signals
1.5
0.5
-0.5
-1
-1.5
-20 -15 -10 -5 0 5 10 15 20
Fourier expansion
• CT periodic signals with period T:
1 2
x(t ) a e
k
k
jk0t
; ak x(t )e jk0t dt
TT
0
T
1 2
x[n] a e
k N
k
jk 0 n
; ak
N
x[n]e
n N
jk 0 n 0
N
Given a DT periodic signals with period N: p[n] [n kN ]
k
. . . -2N -N 0 N 2N . . . . .
N 1 2
p[n] ak e
jk n
N
k 0
1 N1 1
a k p[n ]e jk 2 n / N
N n 0 N
Spectrum of periodic signals
F
x[n ] X() 2 a k ( k0 )
k
Example of calculating DTFT of
periodic signals (DFS)
Height = 1
Spacing = N
. . . -2N -N 0 N 2N . . . . . . . . n
2 2
P() 2 a k k0 k
k N k N
2π/N 2π/N 2π/N 2π/N 2π/N Height = 2π/N
Spacing = 2π/N
0 N-1
x[n] 0 n N 1
x0 [n]
0 otherwise
Another approach to get DTFT of
periodic signals (DFS)
x[n] 0 n N 1
x0 [n]
0 otherwise
x[n] x [n kN ] x [n] [n kN ] x [n] [n kN ]
k
0
k
0 0
k
p(n) in previous
example
F
x[n] x0 [n] p[n] X 0 () P() X ()
Another approach to get DTFT of
periodic signals (DFS)
F
x[n] x0 [n] p[n] X 0 () P() X ()
2 2
X () X 0 ()
N k
( k )
N
2 2 2
N k
X 0 (k
N
) ( k
N
)
Step 1:
Start with x0(n) – one period of x(n), with zero everywhere else
Step 2:
Find the DTFT X0(Ω) of the signal x0[n] above
Step 3:
Find X0(Ω) at N equally spacing frequency points X0(k2π/N)
Step 4:
2 2 2
Obtain the DTFT(DFS): X ()
N
k X 0 (k N ) ( k N )
Example of calculating DFS of
periodic signals
0 1 2 3
3
X 0 () x0 (n)e jn
1 e j
2e j 3
n 0
a ) x[n ] [n ] [n 2]
1
2
b) x[n ] [n ] 2 [n 1] [n 2]
1
2
c) x[n ] [n ] 3 [n 1] 3 [n 2] [n 3]
1
8
HW
Prob.5
Given a periodic signal y(n) with N = 3 with associated
Find Y0(Ω) and Y(Ω). Do the test with the inverse DTFT
Lecture 8
Frequency response and filter
Outline:
1. Frequency response
2. Response to complex exponential signals
3. Filters
Frequency response
1 0.3e j
H ()
1 0.1e j 0.85e j 2
Example of amplitude & phase responses
1
H()
1 0.4e j
1 1
| H() |
| 1 0.4e | | 1 0.4 cos j0.4 sin |
j
1
(1 0.4 cos ) 2 (0.4 sin ) 2
1
1.16 0.8 cos
0.4 sin
H() 0 (1 0.4e j
) arctg
1 0.4 cos
Example of amplitude & phase responses
1
H()
1 0.4e j
2
1.5
0.5
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
0.5
-0.5
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Lecture 8
Frequency response and filter
Outline:
1. Frequency response
2. Response to complex exponential signals
3. Filters
Response to complex exponential signals
j0 n
x[n] Ae , n
y[n ] h[k] x[n k]
k
y[n] h[ k
k
] Ae j 0 ( n k )
A h[k ] e
j 0 k j 0 n
e
k
j 0 n
( Ae ) H ( 0 ) x[n]H ( 0 )
Example of determining response
to complex exponential signals
Determine the output signal of system h[n] (1 / 2) n u[n]
to the input signal below
j n
x[n ] Ae 2
, n
1 2 j26.60
H e
2 1 j 2
1
5
2 j26.6 2A
j n j n 26.60
y[n ] x[n ]H Ae . e
0
2
2
e
2 5 5
Response to sinusoidal signals
A j n A j n
x[n ] A cos(0 n ) e e 0
, n 0
2 2
A j 0 n A j0 n
y[n ] e H( 0 ) e H ( 0 )
2 2
A j 0 n jH ( 0 ) A j0 n jH ( 0 )
e | H ( 0 ) | e e | H ( 0 ) | e
2 2
A | H( 0 ) | cos 0 n H( 0 )
Example of determining response
to sinusoidal signals
h[n] (1 / 2) n u[n]
x[n ] 10 5 sin n 20 cos n, n
2
1 2 j26.6 1 2
H(0) 2 ; H ; H()
0
e
1 0.5 2 5 1 0.5 3
y[n ] 10 | H(0) | 5 H sin n H( 2 )
2 2
20 | H() | cos(n )
0 40
20 2 5 sin n 26.6 cos(n )
2 3
Lecture 8
Frequency response and filter
Outline:
1. Frequency response
2. Response to complex exponential signals
3. Filters
What is digital filters?
Systems that perform mathematical operations on a DT signal
to reduce or enhance certain aspects of that signal.
Provide a convenient means to change the nature of a signal.
Change the frequency characteristics of a signal in a specific
way, letting some frequencies in the signal pass while blocking
other
B
E A
F F
O T
R E
E R
Characterizations of digital filter
Cx[n n0 ], 1 2
y[ n ]
0 ,
Y (e j ) CX (e j )e j n0 X (e j ) H (e j ), 1 2
j n0
j Ce , 1 2
H (e )
0,
Block diagram representation
Being built based on input-output relation or transform function
by connecting the basic components in the specific way:
y[n] a1 y[n 1] ... aN y[n N ] b0 x[n] b1 x[n 1] ... bM x[n M ]
N M
a
k 0
k y[n k ] b r x[n r ]
r 0
M
.
Y(z) r
b z r
H(z) r 0
N
k
X(z) k
a z
k 0
such that:
- It rejects completely a frequency component at 0 2 / 3
- Its frequency response is normalized so that H(0) = 1
(b) Compute and sketch the magnitude and phase response of
the filter to check if it satisfies the requirements
w = -pi:pi/255:pi;
b0 =1/3 ; b1 =1/3 ; b2 =1/3 ;
H = b0 + b1*exp(-j*w) + b2*exp(-j*2*w);
Habs = abs(H);
Hphase = phase(H);
subplot(2,1,1);
plot(w/pi,Habs,'linewidth',2);grid;
subplot(2,1,2);
plot(w/pi,Hphase,'linewidth',2);grid;