Chapter 8 Discrete-Time Signals and Systems 8-1 Introduction
Chapter 8 Discrete-Time Signals and Systems 8-1 Introduction
Chapter 8 Discrete-Time Signals and Systems 8-1 Introduction
Instructor: Zhang
Page 8-1
Page 8-2
1. Sample Operation
Needs to Know:
(1) Sampling period: T
t=nT
Page 8-3
Derivation :
p (t )
series), with
1
T
function,
fs
jn 2 f s t
1 T /2
Cn
p (t )e jn 2f s t dt
T T / 2
x s (t ) p (t ) x (t )
( C n e jn 2 f s t ) x ( t )
n
x ( t ) e jn 2 f s t
Page 8-4
Derivation :
Take Fourier Transform for
x s (t )
C x (t ) e
jn 2f st
x (t )e
xs ( f )
j 2ft
dt
C x(t )e
n
C x(t )e
For n
j 2 ( f nf s ) t
dt
dt
jn 2f s t j 2ft
X ( f nf s )
X ( f nf s )
Xs( f )
Consider a f 0 f h
Cn X ( f
nf s )
Page 8-5
X s ( f0 )
X ( f 0 nf s )
C 0 X ( f 0 ) [C1 X ( f 0 f s ) C 1 X ( f 0 f s )]
If
f0 fs fh
X ( f0 fs ) 0
X s ( f 0 ) C0 X ( f 0 )
or
or
f0 fs fh
X ( f0 fs ) 0
Modifier
Page 8-6
If
f0 fs fh
or
X ( f0 fs ) 0
f0 fs fh
or
X s ( f 0 ) C0 X ( f 0 )
modification
X ( f0 fs ) 0
No spectrum
Xs( f ) X( f )
(| f | f h )
| f f s | f h
| f f s | f h
Condition
fs f fh
=>
fs f fh
fs f fh fs 2 fh
fs fh f fs 2 fh
Answer : f s 2 f h
process
Sampling Theorem: .
Constant with n
Page 8-7
7. What about if r 0 ?
1 T /2
1
jn 2f s t
p (t ) (t nT ) Cn
(
t
)
e
dt
fs
T
T
n
T / 2
1
X s ( f ) f s X ( f nf s ) X ( f nf s )
T n
n
8. Practical sampling rate:
f s 10 f h
Similar as r 0
Page 8-8
y (t )
xs (kT )h(t kT )
x(kT )h(t kT )
Discrete-tim
algorithm
x(kT)
What is y (t )
algorithm)
Lets see:
x(kT )h(t kT )
xs (t ) x(t )
xs (t )
(t kT )
or
x(kT ) (t kT )
Consider xs(t)*h(t) :
Page 8-9
xs (t ) * h(t )
x ( )h(t )d
s
x(kT ) ( kT )h(t )d
x(kT ) ( kT )h(t )d
x(kT )h(t kT )
y (t )
x(kT )h(t kT )
Ideal Filter
T
H( f )
0
| f | 0.5 f s
Otherwise (| f | 0.5 f s )
Page 8-10
h(t )
H ( f )e
j 2ft
df
fs / 2
Te
j 2ft
fs / 2
df T
fs / 2
e j 2ft
j 2t
j 2ft
df
fs / 2
f fs / 2
f f s / 2
T sin(f s t ) T 1 / f s sin(f s t )
t
(f s t )
t
sin f s ( k )
T
x(t ) y (t ) x(kT )
t
k n l 1
f s ( k )
T
nl
Page 8-11
n l
k n l 1
l+1,,n)
(k=n+1,,n+l)
x(kT )
(k=n-
Page 8-12
Part Two
8-3A The z-Transform
1. Definition
For Laplace transform, we are given a function x(t),
For z-Transform, we are given a sampling sequence: x(0) , x(T),
x(2T),
Definition: z-transform of a given sequence x(0) , x(T), x(2T),
is
x(t)
L[ x(t )] x(t )e st dt
0
T x(nT )(e sT ) n
On the other hand
n 0
Z [ x(nT )] x(nT ) z
z ~ e sT
n 0
x(nT): samples of
x(t)
L[ x(t )] TZ ( xs (t )) z esT
Page 8-13
z e ( j )T eT e jT
(1) 0
(eT 1) | z | 1 (note | e jT | 1)
s: j axis.
(4) s = 0 ( 0, 0 )
| z | 1
z: outside the unit circle
| z | 1
z: unit circle
e T 1
jT
e
cos T j sin T
z=1
Page 8-14
Solution :
1
x(nT )
0
n 0
( n)
n 0
1
X ( z ) x(0) x(T ) z 1
unbo
Similar as Lapl
transform
Page 8-15
1
x(nT )
0
Solution :
n0
n0
X ( z ) x(0) x(T ) z 1
1 z 1 z 2
(| z 1 | 1
or
1
1 z 1
| z | 1)
How to understand?
L[u (t )]
1
1
s
j
TX ( z ) z e sT
T
1 z 1
z e sT
T
1 e sT
T
1 e sT
s j
T
1 cos T j sin T
T 0 :
T
1
1
lim
T 0 sin T j cos T
1 cos T j sin T
j
Page 8-16
x(nT ) e t |t nT e nT (e T ) n
( 0)
(k eT )
kn
Solution:
X ( z ) x(0) x(T ) z 1 x(2T ) z 2
1 kz 1 k 2 z 2
1 (k 1 z ) 1 (k 1 z ) 2
k 1 z
1 1 2
1
1
1
1
1 kz 1
1
X ( z)
1 e T z 1
k 1 z 1 1
T
z
k e
L[e
1 s j 1
]
s
j
s j
TX ( z ) | z e sT
T 0:
T
1 e ( j )T
1 e T e jT
1 e ( j )T
1
1
T 0 ( j )e ( j )T
j
lim
Why? Because
lim e ( j )T lim e T e jT
T 0
lim e
T 0
T 0
(cos T j sin T ) 1
1
0
Page 8-17
Example 8-6 B
x ( nT ) : k 0
k1 k 2
1
=> X ( z )
1 kz 1
(t )
( n)
u (t )
u (n) : 1, 1,
e t
(e T ) n : 1, e t , e 2t ,
1, k , k 2 ,
(| z | k )
z - transform
1
1
1 z 1
1
1 e t z 1
1
1 kz 1
Page 8-18
Solution:
n
x ( nT ) a n cos
X ( z)
Analysis:
n
2
a n cos
n 0
n
z
)0
Page 8-19
n 2k cos(
1
n
) cos(k )
2
1
k : even
k : odd
n n
X ( z ) a n cos
z
2
n 0
a cosk z
2k
2 k
k 0
a0
a 4 z 4 a 8 z 8
a 2 z 2 a 6 z 6 a10 z 10
1 a 4 z 4
1 1 2 a 2 z 2 (1 a 4 z 4 a 8 z 8 )
1
a 2 z 2
1 1 1 1
1 a 2 z 2 1 a 2 z 2
1
1
4 4
1
1 a z
1 a 2 z 2
Very complex!
Using Symbolic ToolBox
syms a n z
xn = a^n*cos(n*pi/2);
xz = ztrans (xn, n, z);
xz (enter)
xz =
% Declare symbolic
% Define x(n)
% Determine X(z)
z^2/(a^2+z^2)
z2
1
a2 z2 1 a2 z 2
1. Linearity
X ( z)
2. Initial Value x (0) lim
z
why?
X ( z ) x(0) x(1) z 1
(1 z 1 ) X ( z )
3. Final value x() lim
z 1
Why?
But,
x() lim sX ( s )
s 0
s0
1
s
s
sX ( s )
lim sX ( s )
s 0
z 1
1
1 z 1
1 z 1
(1 z 1 ) X ( z )
lim(1 z 1 ) X ( z )
z 1
Page 8-21
X ( z ) x(0) x(1) z 1
X (z )
partial-fraction
expansion
what Terms?
1
1
z 1
What about if you have
?
1 z 1
1 z 1
1
1
T 1
1 e z
1 kz 1
1
Tz 1
What
about
if
you
have
?
(1 z 1 ) 2
(1 z 1 ) 2
1
Te T z 1
What
about
if
you
have
?
(1 e T z 1 ) 2
(1 e T z 1 ) 2
Az 1
B
T 1 2
T 1 2
T 1
(1 e z )
(1 e z )
1 e z
1
Lets see:
Az 1 B Be T z 1
(1 e T z 1 ) 2
Page 8-22
transform of
(1 e
z 1 ) 2
1
?
1 z 2
1
1
1 1
1
1 z 2
(1 jz 1 )(1 jz 1 ) 2 1 jz 1 1 jz 1
1
1
1
2 1 ( jz 1 ) 1 ( jz 1 )
(1) n / 2
1
1
1 n
n
n
n
x(nT ) Z (
) [( j) ( j) ] ( j) [(1) 1]
2
2
2
1 z
0
1
z2
X ( z)
( z 1)( z 0.2)
1
A
B
Solution : X ( z )
(1 z 1 )(1 0.2 z 1 ) 1 z 1 1 0.2 z 1
Heavisides Expansion Method:
X ( z)
A
B
1 z 1 1 0.2 z 1
Page 8-23
n eve
n odd
1
B (1 z 1 ) z 1
A
(1) (1 z ) X ( z )
1 0.2 z 1
1 0.2 z 1
1
1
B0
1
A
A
1.25
1 0 .2
1 0 .2
0 .8
1
(2) (1 0.2 z ) X ( z )
1 z 1
1 0.2 z 1
1
A(1 0.2 z 1 )
B
1 z 1
1 z 1
1 0.2 z 1 0 ( z 0.2 )
B 1 /(1 5) 1 / 4 0.25
X ( z)
1.25
0.25
z2
1
X ( z) 2
1
z 1 .2 z 0 .2 1 1 .2 z 0 .2 z 2
b = 1;
a = [1 1.2 0.2];
[r, p, k] = residuez(b,a);
Page 8-24
1.25
r
0.25
1.0
p pole
0.2
1.25
0.25
1
1 1 .0 z
1 0.2 z 1
1.25
0.25
1
1 z
1 0.2 z 1
Y ( z)
Solution :
1
z 2 1.2 z 0.2
z2
z 2Y ( z ) (or
Question: Define X ( z ) 2
z 1.2 z 0.2
Y ( z ) z 2 X ( z ) )
x(nT ) z 1 ( X ( z )) and
y (nT ) z 1 (Y ( z )) ?
Page 8-25
Y ( z)
1
z 2
z 2
5
1 1.2 z 1 0.2 z 2
1 1.2 z 1 0.2 z 2
5 6 z 1
5 6 z 1
1 z 1 1 0.2 z 1
V ( z)
A V ( z )(1 z 1 ) | z 1 1
5 6 z 1
1 0.2 z 1
z 1 1
5 6 z 1
B V ( z )(1 0.2 z ) | z 1 5
1 z 1
1
1.25
0.8
z 1 5
5 30
6.25
4
1
1
6
.
25
1 z 1
1 0.2 z 1
y (nT ) 5 (n) 1.25 6.25(0.2) n
Y ( z ) 5 V ( z ) 5 1.25
= 1.2
n=0
n=1
5 + 1.25 - 6.25 = 0
0 + 1.25 - 6.25*0.2 = 0
n=2
0 + 1.25 - 6.25*0.22 = 1
0.25*0.22 = 1.24
n=3
0 + 1.25 - 6.25*0.23 =1.2
0.25*0.23 = 1.248
1.25 - 0.25 = 1
1.25 - 0.25*0.2
1.25 1.25 -
Page 8-26
Why? 6.25*0.2*0.2=0.25
delay
Does Y ( z ) z 2 X ( z )
than Z 1 ( X ( z )) ?
Yes!
Z ( x(nT )) X ( z ) x(nT ) z n
n 0
Z ( x(nT kT )) x(nT kT ) z n
n 0
x(nT kT ) z
n k
n 0
x(nT kT ) z
( n k )
n 0
x(nT kT ) z ( nk ) :
n 0
(1)
x(nT kT ) z ( nk )
n k 0
(2)
x ( nT kT ) z
Z ( x( nT )) ? Yes!
( n k )
n0
Page 8-27
n k 1
kT
x ( nT
)z
n0
( n k )
n k
nT kT 0
x ( nT kT ) z
x ( nT kT ) z ( n k )
nk
( n k )
n k 0
Z ( x ( nT ))
Z ( x(nT kT )) z
x(nT kT )) z ( nk ) z k Z ( x(nT ))
n 0
x(nT kT )
Z ( x(nT kT ))
k steps
x(nT )
behind
z k
Z ( x(nT ))
z k Z ( x(nT ))
Question : If Z ( x(nT ))
z 2
1 0.5 z 1
1
, whats
1 0.5 z 1
Z ( x(nT 2T )) ? Answer:
Page 8-28
operator or
Processor
1. Shift-Invariant System
(Time-Invariant Systems for continuous-time or general)
An example of time-varying system
The processing algorithm which maps input to
output changes!
What do we mean by a time-invariant system?
Shift-invariant systems:
Physical:
Mathematic:
Assume x(nT): x(0), x(T), has generated
y(nT): y(0), y(T),
For example:
x:
generated
1 has
y : 0 .2 0 .4 0 .6 0 .8 1
Page 8-29
0 1
x(nT 2T )
x: 0 0
y (nT 2T )
y : 0 0 0 .2 0 .4 0 .6
generated
systems?
No! only for time-invariant systems!
Mathematical Description:
for
H [ x1 (nT )] H [ x2 (nT )]
for
n n0
n n0
Why? Although x1(nT) may not be the same as x2(nT) for n > n0
, such difference does not affect the output determined by input
up to n = n0 .
3. Linear System
Linear System
x(kT )h(nT kT )
y ( nT )
y ( nT )
or
h(kT ) x(nT kT )
Convolution
Linear+causal+ x ( kT ) 0
y (nT )
( k 0)
x(kT )h(nT kT )
x ( kT ) 0 ( k 0 )
x(kT )h(nT kT )
k 0
causal n
(nT kT 0) nT kT
k 0
Example: Given
x(0) = 1, x(T) = 2, x(2T) = 2, x(3T) = 1,
Page 8-31
1
x ( nT ) u( n )
n
n
2
1
1
y ( nT ) x ( nT ) * h( nT ) 3 2
n
2
3
1
h( nT ) u( n )
3
% Declare Symbolic
% x(n)
% h(n)
% z-transform of x(n)
% z-transform of h(n)
% multiply, not convolution
% Do you know why?
% y(nT)=3(1/2)n 2(1/3)n
x ( nT )
x ( nT )
0
h( nT )
h( nT )
0
n0
X ( z ) Z ( x ( nT ))
n0
n0
H ( z ) Z ( h( nT ))
n0
Page 8-32
Z ( x(nT ) * h(nT ))
Z { x(kT )h(nT kT )}
k
{ x(kT )h(nT kT )} z n
n<kn-k<0
n 0 k
n 0
x(kT ) h(nT kT ) z
k 1
n
x(kT ) h(nT kT )z h(nT kT ) z n
k 0
k 0
nk
n 0
x ( kT ) 0
k 0
nk
x(kT ) h(nT kT ) z
x(kT )z k
k 0
h(nT kT ) z
n k
n k 0
X ( z)H ( z)
i.e.
x(nT ) * h(nT ) Z 1 [ X ( z ) H ( z )]
x(nT ) 0 h(nT ) 0
if
1
1
Example: x ( nT ) u ( n 3)
4
4
1
1
h( nT ) u( n 5)
3
3
Solution:
z(nk)
Find x(nT)*h(nT)
x ( nT ) 0
h( nT ) 0
n 0
n 0
1
4
1
3
n 3
n 5
n 0
u( n 3)
u( n 5)
u( n 3)
due to
u( n 5)
Page 8-33
1 1
H ( z ) Z u (n 5)
3 3
5
n
1 5 1
z Z u (n)
3
3
1
1
z 5
1
3
1 z 1
3
1
X ( z)H ( z)
4
V ( z)
1
1
(1 z 1 )(1 z 1 )
4
3
1
1 8
z
1
1
3
(1 z 1 )(1 z 1 )
4
3
3
4
1
1
1 z 1 1 z 1
4
3
1
1
Z 1 (V ( z )) (4( ) n 3( ) n )u (n)
3
4
1
1
Z 1 ( z 8V ( z )) (4( ) n 8 3( ) n 8 )u (n 8)
3
4
1 1
1
1
x(nT ) * h(nT ) ( ) 3 ( ) 5 [4( ) n 8 3( ) n 8 )]u (n 8)
4 3
3
4
4. Stable system
| y ( nT ) |
Derivation of Criterion
x(kT )h(nT kT )
y ( nT )
y (nT )
| x(kT ) || h(nT kT ) |
M | h(nT kT ) |
| h(nT kT ) |
| h(kT ) |
Criterion:
| h(kT ) |
h( k ) 0
k 0
(causal)
y ( nT )
x(kT )h(nT kT )
y (nT ) , N n k 0 n k n N
n 100
100 k 90
N 10
Page 8-35
100
x(kT )h(100T kT ) |
k 90
100
M | h(100T kT ) |
k 90
N
M | h(kT ) | stable
k 0
In general
y (nT )
x(kT )h(nT kT )
x(kT )h(nT kT )
k n N
| y (nT ) | M
| h(nT kT ) |
k n N
N
M | h(nT ) |
k 0
x(kT )h(nT kT )
k 0
What about y ( nT )
Limited Terms
stable?
x(kT )h(nT kT )
k n 100
H ( z)
1
1 0.2 z 1 0.22 z 2
1
1 0.2 z
h(0) h(1)
h(2)
Page 8-36
| h(nT ) |
n 0
What about H ( z )
1
1 z 1 z 2
1
1 z
Not BIBO stable!
(1 p1 z ) (1 p n z n )
1
| p j | 1
stable
Solution:
| h(nT ) | | h(nT ) |
n 0
| 4(1 / 3)
n 0
3(1 / 4) | 4(1 / 3) n 4
n
n 0
1
6
1 1/ 3
Stable
u( n 1),, u( n m )
y ( n 1),..., y ( n r )
Difference
Equation
linear system
Different Equation
y (nT ) k1 y (nT T ) ... k r y (nT rT )
L0 x(nT ) L1 x(nT T ) ... Lm x(nT mT )
z-transform =>
Y ( z ) k1 z 1Y ( z ) ... kr z rY ( z )
L0 X ( z ) L1 z 1 X ( z ) ... Lm z m X ( z )
Y ( z ) L0 L1 z 1 ... Lm z m
H ( z)
X ( z)
1 k1 z 1 ... k r z r
z-transfer function
Y(z) = H(z)X(z)
response h(nT) ?
x(t)s spectrum X ( s ) s j
X ( )
Y ( )
( X ( s ) L[ x (t )])
x(nT)s spectrum TX ( z ) z e sT TX ( z ) z e jT
s j
y(t)s spectrum Y ( s ) s j
(Y ( s ) L[ y (t )])
Page 8-39
y(nT)s spectrum TY ( z ) z e sT TY ( z ) z e jT
s j
Y ( ) TY ( z ) |z e jT Y ( z )
X ( ) TX ( z ) |z e jT
X ( z ) z e jT
Y ( ) / X ( ) H ( z ) |z e jT H ( e jT )
Page 8-40
s 2f s 2
1
: sampling frequency
T
e j ( k s )T e jT e jk sT
s T 2
e jT e jk 2 e jT (cos k 2 j sin k 2 ) e jT
H (e j ( k s )T ) H (e jT )
Frequency Response H: periodic function with period s
when the frequency increase by k s , the
systems frequency
response
does not change.
Example:
Input 1: 10 sin(5t )
T = 1 second
Input 2 : 10 sin(7t )
Generate the same output amplitude?
Normalized Frequency r / s
s : frequency period s 2
jT
j 2 / s
r / s
1
T 2 / s
T
e j 2r
H ( e j 2r )
Amplitude Response | H ( e j 2r ) | or
Phase Response H ( e j 2r ) or
| H ( e jT ) |
H ( e jT )
Page 8-41
H ( z)
Y ( z)
1 z 2
X ( z)
H (e jT ) 1 z 2
z e jT
1 e j 2T
(e jT e jT )e jT
2 cos T e jT
H ( e j 2r ) 2 cos 2r e j 2r
| H ( e j 2r ) | 2 | cos 2r |
cos 2r 0
2r
H ( e j 2r )
cos 2r 0
2r
Page 8-42
Page 8-43