Z Transform
Z Transform
Z Transform
Lecture 5-6
1
Analysis of Discrete Time Linear Time
Invariant Systems
2
Impulse Response
• The impulse response is the output of a LTI system due to an
impulse input applied at time t = 0 or n = 0.
• The impulse response completely characterizes the behavior of
any LTI system.
• If the input to a linear system is expressed as a weighted
superposition of time-shifted impulses, then the output is the
weighted superposition of the response to each time shifted
impulse.
• If the system is also time invariant, then the system response to a
time shifted impulse is a time shifted version of the system
response to an impulse.
• Thus the output of a LTI system is a weighted superposition of
time shifted impulse responses. This weighted superposition is
termed as the Convolution Sum for discrete time systems and
Convolution integral for continuous time systems.
3
The Convolution Sum
Consider the product of a signal x[n] and the impulse
sequence [n], written as
x[n][n] = x[0][n]
Generalize this relationship to the product of x[n] and
a time shifted impulse sequence to obtain
x[n][n-k] = x[k][n-k]
This property allows us to express x[n] as the
following weighted sum of time shifted impulses:
x[n] = ….. + x[-2][n+2] +x[-1]n+1]+x[0][n]+
x[1][n-1]+x[2][n-2]+….
x[n ] x[k ]n k (1)
k
4
The Convolution Sum (cont.)
Let the operator H denote the system to which the input
x[n] is applied. Thus using (1) to represent the input x[n]
to the system results in the output
y[n] H x[k ][n k ]
Using theklinearity
property,
we write (2)
y[n]
or x[k ]Hn k
k
y[n] x[k ]h[n k ] (3)
where h[n-k] = H{[n-k]}. The sum in (3) is termed the
k
Convolution Sum and is denoted by the symbol *, that is,
x[n] * h[n] x[k ]hn k
k
(4)
5
Convolution Sum
• Example 1:
The impulse response of a linear time invariant
system is h[n] = {1, 2, 1, -1}
6
-1 1 2 1
-1 1 2 1
-1 1 2 1
h[-k] -1 1 2 1
x[n] 0 1 2 3 1
-1 1 2 1
-1 1 2 1
-1 1 2 1
-1 1 2
1
x[n]*h[n] = [0, 1, 4, 8, 8, 3, -2, -1] 7
Example 2: Assume that an LTI system has impulse response
h[n] = {1 2 1}
[1 a a 2 ]
1
1a
9
Example 4:
Determine the impulse response for the
cascade of two linear time-invariant
systems having impulse responses
h1[n]=(1/2)nu[n] and h2[n] = (1/4)nu[n].
Solution:
1 1
n k n k
h1 n * h 2 n h1 [k ]h 2 [n k ]
k 0 k 0 2 4
n n n
1
4
k 0
2 k
1
4
1 2 2 2 ......
1
n
2 n 1 1 1 n 1
n
2
4 2 1 2 2
10
Properties of Convolution
• Commutative Law
x[n]*h[n] = h[n]*x[n]
• Associative Law
[x[n]*h1[n]]*h2[n] = x[n]*[h1[n]*h2[n]]
• Distributive Law
x[n]*[h1[n] + h2[n]] = x[n]*h1[n] + x[n]*h2[n]
11
Crosscorrelation and
Autocorrelation Sequences
• Suppose that we have two signal sequences
x[n] and y[n]. The correlation of x[n] and
y[n] is a sequence
rxy k x[n]y[n k ] , k = 0, 1, 2, 3, …… (1)
n
or, equivalently, as
rxy [k ] x[n k ]y[k ]
n
, k = 0, 1, 2, 3, …
(2)
12
Crosscorrelation and Autocorrelation
Sequences (cont.)
• If we reverse the roles of x[n] and y[n] in (1) and (2) and
hence reverse the order of indices xy, we obtain the
crosscorrelation sequence
, k = 0, 1, 2, 3, …… (3)
ryx k y[n]x[n k ]
or, equivalently,
n as
, k = 0, 1, 2, 3, … (4)
Byrxy
comparing
[k ] y[(1)
n and (4)
k ]x[n ] or (2) and (3), we conclude that
n
13
• Example 5: Determine the crosscorrelation
sequence of the sequences
14
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
2 -1 3 7 1 2 -3
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
Rxy[k] ={ 10, -9, 19, 36, -14, 33, 0,
1 -1 2 -2 4 1 -2
5 7, 13, -18, 16, -7, 5, -3}
15
Autocorrelation Function
• The Autocorrelation Function of x[n] is defined as
k x[n]x[n kas
or,rxxequivalently, ]
n
rxx [k ] x[n k ]x[n]
Notice that
n rxx(k) = rxx(-k)
16
Properties of Autocorrelation and
Crosscorrelation Sequences
Let us assume that we have two sequences x[n] and y[n]
with finite energy from which we form the linear
combination
ax[n] + by[n-k]
where a and b are arbitrary constants and k is some
time shift. The energy in this signal is
2
ax[n] by[n 1] a x n b y [n k ] 2ab x[n]y[n k ]
2 2 2 2
n n n n
20
Classification of LTI Discrete Time systems
• LTI discrete time systems are usually classified either
according to the length of their impulse response sequences
or according to the method of calculation employed to
determine the output samples.
• Classification based on impulse response length:
(a) Finite Impulse Response:
If h[n] is of finite length, then it is known as a finite impulse response
(FIR) discrete-time system. In this case the convolution sum reduces to
N2
y[n] h[k ]x[n k ]
k N1
22
- Recursive Discrete-Time System
23