EE330 Digital Signal Processing: Discrete Time Signals and Systems
EE330 Digital Signal Processing: Discrete Time Signals and Systems
Arbab Latif
Fall 2021
Resources:
Discrete Time Signal Processing, A. V. Oppenheim and R. W. Schaffer, 3rd Edition, 2010 (Chapter 2.5-2.9)
2 Last Week
• Signal
• Discrete Time Signals
• Discrete Time Systems
– Types / Properties
• Linear Time Invariant Systems
• Properties of LTI Systems
Linear Constant Coefficient
Difference Equation
• Section 2.5
4
Linear Constant Coefficient Difference Equation
(LCCDE) Representation:
• The relation between the input 𝑥[𝑛] and the output y[𝑛] of a
discrete-time (DT) system can be represented using a LCCDE
• It is DT equivalent of differential equations
• 𝑎0 𝑦 𝑛 + 𝑎1 𝑦 𝑛 − 1 + … + 𝑎𝑁 𝑦 𝑛 − 𝑁 = 𝑏0 𝑥 𝑛 + 𝑏1 𝑥 [𝑛 −
1ሿ + … + 𝑏𝑀 𝑥 𝑛 − 𝑀
• ∑𝑁 𝑎
𝑘=0 𝑘 𝑦 𝑛 − 𝑘 = ∑ 𝑀
𝑚=0 𝑏𝑚 𝑥 𝑛 − 𝑚
• The output at any time instant 𝑛 can be obtained as :
1
• 𝑦𝑛 = − { ∑𝑁 𝑎
𝑘=1 𝑘 𝑦 𝑛 − 𝑘 + ∑ 𝑀
𝑚=0 𝑏𝑚 𝑥 𝑛 − 𝑚 }
𝑎0
LCCDE Representation of a Causal Moving Average
5
System:
• Section 2.6
13 Eigen-functions for LTI Systems:
• Complex exponentials are eigenfunctions of LTI systems:
xn = e jn
• Let’s see what happens if we feed x[n] into an LTI system:
yn = hkxn − k = hk
e j(n −k )
k = − k = −
( ) = hke
j − jk
He
k = −
16
Example 2.17: Frequency Response of the
Ideal Delay System:
• LCCDE Representation: y[n] = x[n − n d ]
• For input x[n] = e jn
• The output will be
j (n − nd ) j n − j nd
y[n] = e =e e
• The eigen-value is
j − j nd
H (e ) = e
H R (e j ) = cos( n d ) H (e j ) = 1
j
H I (e ) = − sin( n d ) H (e j ) = − n d
y[n] = A cos[o (n − n d ) + ]
Note: Output is the input delayed by nd
20
Examples of Frequency Responses:
1) Ideal Lowpass Filter
H lp (e j )
One period of the frequency response
1 Fundamental Period
− −c 0 c
H lp (e j )
Periodicity of the frequency response
1
H hp (e j ) Fundamental Period
− −c 0 c
Representation of Sequences
by Fourier Transform
(Section 2.7)
26 Discrete-Time Fourier Transform (DTFT)
1
x[n] =
2 2
X (e jw ) e jn dw
j j jX (e j )
X (e ) = X (e ) e
(Polar Form: Magnitude & phase representation)
29 Frequency Response & DTFT
• From the last section on Freq. Response
and the definition of the DTFT, it is easy to
see that
“ Frequency-response is the DTFT of the
impulse response”
H(e jw ) = h[n]e− jn
and consequently k =−
• ∑∞
𝑛=−∞ 𝑥[𝑛ሿ < ∞
• Corollaries:
– All stable LTI systems have continuous frequency
responses.
– All finite-duration sequences are stable and have
finite continuous DTFT.
32
Example 2.21 Absolute Summability for
a Suddenly-applied Exponential:
• Consider the sequence,
x[n] = a u[n]
n
(
X (e jw ) = a n e− jn = ae− j )
n =0 n =0
1
X (e ) =
jw
− j
, if a 1
1 − ae
•
36
Example 2.22: Impulse Response of
Ideal Lowpass Filter:
• Frequency-response of Ideal lowpass
filter:
j
1, c
H lp (e ) =
0, c
----------------------------------------------------
• Impulse Response:
1
hlp [n] =
2 −
H (e j )e + j n d
1 c + jn
=
2 −c
e d
sin(c n)
= , − n .
n
37 Example 2.22: SpecialCase-
= /4 c
sin(c n)
h[ n] =
n
I-DTFT of Ideal Lowpass Filter
0.25
0.2
h[n]
0.15 Continuous Envelope
0.1
h[n]
0.05
0 n
-0.05
-0.1
-20 -15 -10 -5 0 5 10 15 20
n
c •Zero-crossings: Multiples of 4 (except at n=0)
h[0] =
•Decays at the rate of 1/n (Not Abs. Summable)
38
Example 2.22: Gibbs Phenomenon (Non-
uniform & Discontinuous Convergence)
c = / 2
1.5 1.5
1 1
H1(ej)
H3(ej)
0.5 0.5
0 0
-0.5 -0.5
-1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1
/ /
1.5 1.5
1 1
H19(ej)
H7(ej)
0.5 0.5
0 0
-0.5 -0.5
-1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1
/ /
40 Generalized Functions:
40
41
Example 2.19: Fourier Transform of
a Constant:
• Consider the sequence: 𝑥 𝑛 = 1, ∀𝑛 ∈ 𝑍
• DTFT?
--------------------------------------------------
• 𝑥 𝑛 is abs. summable or sq. summable? (No)
Thus, we get
X (e j ) = 2 ( ), for .
42
Example 2.24 Fourier Transform of Complex
Exponential Sequences:
• Consider :
X (e j ) = 2 ( −
r =−
o + 2 r )
• What is the Inverse-DTFT?
------------------------------------------------------
1
j n
x[n] = 2 ( − 0 ) e d
2 −
= ( − 0 ) e d j n
− Sifting Property
( − ) d = e
jo n jo n
x[n] = e 0
−
jo n
e 2 ( − o ), .
43 DTFT for sum of exponentials:
• Using the theory of generalized functions
(not covered here), we can define the DTFT
for
• 𝑥 𝑛 = ∑𝑘 𝑎𝑘 𝑒 𝑗𝜔𝑘 𝑛 , ∀𝑛 ∈ ℤ.
to be
j
X (e ) = 2 a ( −
r =− k
k k + 2 r )
1
U (e j ) = − j
+ ( + 2 r )
1− e r =−
Square Summable (finite energy) but DTFT exists & only Mean-square
no absolutely summable. convergence is guaranteed. The
resulting DTFT may be
1 sin(o n)
e.g., x[n] = u[n − 1], discontinuous (e.g., Ideal lowpass
n n filter).
Sequences which are not finite DTFT may not exist at all. In few
energy cases, the DTFT may be expressed
(e.g., x[n]=1 or unit step sequence, or as sum of impulse trains
periodic signals) (generalized functions).
46
Sampling & Periodicity across Time
and Frequency:
Time Frequency
(Section 2.8)
50 Symmetries for Real-valued Sequences:
• Even Sequences:
– Symmetric about vertical axis (Mirror image)
– 𝑥𝑒 𝑛 = 𝑥𝑒 −𝑛 , ∀ 𝑛 ∈ 𝑍
• Odd Sequences:
– Symmetric about the origin (180 degree rot.)
xo [n] = − xo [−n], n
– Examples:
sin(o n), n .
51 Symmetries for Complex-valued Sequences:
• Conjugate-Symmetric Sequences:
– Aka ‘Hermitian’
xe [n] = xe*[−n]
– Example:
j n
x[n] = e
• Conjugate-AntiSymmetric Sequences
– Aka ‘Skew-Hermitian’
xo [n] = − x [−n]
*
o
– Examples:
x[n] = sin(o n) + jcos(o n)
55 Symmetry Properties (General):
Signal DTFT X( e𝑗𝜔 )
𝑥[nሿ
1 x*[n] X * (e− j )
x*[− n] X * (e j )
2
3 Re{x[n]} X e (e j )
jIm{x[n]} X o (e j )
4
5 xe [n] X R (e j ) = Re{X(e j )}
6 xo [n] jX I (e j ) = j Im{X(e j )}
56
Symmetry Properties for Real
sequences:
Signal DTFT
𝑥[nሿ X( e𝑗𝜔 )
j − j
11 X (e ) = −X (e )
( Phase is odd )
(Section 2.9)
72 Properties of DTFT:
Relationship in Time Relationship in Frequency
Linearity Property:
1 ax[ n] + by[n] aX (e j ) + bY (e j )
Shift in time: Phase-factor in freq:
2
𝑥 𝑛 − 𝑛𝑑 , 𝑛𝑑 ∈ ℤ X (e j ) e − jnd
Mult. by Exp.: jo n
Shift in freq:
3 x[n]e X (e j ( −o ) )
Time-reversal:
4 x[ − n] X(e − j ) (for x[n] real,X
*
(e j ) )
Multiplication by n: Differentiation in Freq dX (e j )
5 nx[ n ] j
d
Convolution in Time: Multiplication in freq:
6 x[ n] y[n] X (e j ) Y(e j )
Multiplication in Time: Conv: 1
7 x[ n] y[n]
2
−
X (e j )Y (e j ( − ) ) d
73 Parseval’s Theorem (Plancherel Theorem):
2
−
X (e j ) Y* (e j )d
82 Fourier Transform Pairs:
Sequence DTFT
(Periodic with period 𝟐𝝅)
[n] 1
(Use DTFT Eq.)
− j no
[n − no ] e
(Example 2.14)
1, − n 2 ( + 2 k)
k =− (Example 2.19)
1
a u[n], a 1
n
1 − ae − j (Example 2.17)
1
u[ n] − j
+ ( + 2 k)
1− e k =− (Eq. 2.148)
83 Fourier Transform Pairs (Contd.):
Sequence DTFT
(Periodic with period 2*pi)
1
(n + 1) a u[n], ( a 1)
n
(1 − ae − j ) 2
(Use Diff. in Freq. Prop.)
sin( p (n + 1)) 1
r n
u[n], ( r 1)
sin( p ) 1 − 2r cos( p ) e− j + r 2e− j 2
(Use Mod. Prop.,&DTFT of sin(.))
sin(c n) j
1, c
X (e ) =
n (Ex. 2.18) 0, c
1, 0 n M sin( (M + 1) / 2) − j M /2
x[n] = e
0, otherwise sin( / 2)
(MA Ex. 2.16)
84 Fourier Transform Pairs (Contd.):
Sequence DTFT
(Periodic with period 2*pi)
e jo n
2 ( −
k =−
o + 2 k )
(Example 2.20)
cos(o n + )
[
k =−
e j
( − o + 2 k ) + e − j
( + o + 2 k )]
(Use Euler’s Identity & above prop.)