2.161 Signal Processing: Continuous and Discrete: Mit Opencourseware
2.161 Signal Processing: Continuous and Discrete: Mit Opencourseware
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Massachusetts Institute of Technology
Department of Mechanical Engineering
Lecture 141
Reading:
c o n v o lu tio n
{fn } {y } = { f Ä h }
n n n
L T I s y s t e m
Z Z
h n
F (z ) Y (z ) = F (z )H (z )
We saw in Lec. 13 that the output to an input sequence {fn } is given by the convolution
sum:
∞ ∞
yn = fn ⊗ hn = fk hn−k = hk fn−k ,
k=−∞ k=−∞
where {hn } is the pulse response. Using the convolution property of the z-transform we have
at the output
Y (z) = F (z)H(z)
where F (z) = Z {fn }, and H(z) = Z {hn }. Then
Y (z)
H(z) =
F (z)
is the discrete-time transfer function, and serves the same role in the design and analysis
of discrete-time systems as the Laplace based transfer function H(s) does in continuous
systems.
1 c D.Rowell 2008
copyright
14–1
In general, for LTI systems the transfer function will be a rational function of z, and may
be written in terms of z or z −1 , for example
N (s) b0 + b1 z −1 + b2 z −2 + . . . + bM z −M
H(z) = =
D(s) a0 + a1 z −1 + a2 z −2 + . . . + aN z −N
where the bi , i = 0, . . . , m, ai , i = 0, . . . , n are constant coefficients.
Z {fn−k } = z −k F (z)
term-by-term on both sides of the equation, (effectively taking the inverse z-transform)
M
= yn−i + fn−i
i=1
a0 i=0
a0
which is in the form of a recursive linear difference equation as discussed in Lecture 13.
Example 1
Find the difference equation to implement a causal LTI system with a transfer
function
(1 − 2z −1 )(1 − 4z −1 )
H(z) =
z(1 − 12 z −1 )
Solution:
z −1 − 6z −2 + 8z −3
H(z) =
1 − 12 z −1
14–2
from which
1
yn − yn−1 = fn−1 − 6fn−2 + 8fn−3 ,
2
or
1
yn = yn−1 + (fn−1 − 6fn−2 + 8fn−3 ).
2
The reverse holds as well: if we are given the difference equation, we can define the system
transfer function.
Example 2
Find the transfer function (expressed in powers of z) for the difference equation
and reorganizing
Á {z }
z - p la n e
x o x o  {z }
-0 .5 0 .5 1
14–3
z - p la n e
p o le lo c a tio n
14–4
This simple demonstration shows that this system is stable only for the pole position −1 <
a < 1. In general for a system
M
k=1 (z − zk )
H(z) = K N
k=1 (z − pk )
having complex conjugate poles (pk ) and zeros (zk ) :
A discrete-time system will be stable only if all of the poles of its
transfer function H(z) lie within the unit circle on the z-plane.
∞
−j ωk
= A hk e ej ωn
k=−∞
j ω j ωn
= AH(e )e
where the frequency response function H(ej ω ) is
H(ej ω ) = H(z)|z=ej ω
that is
0 < w < p z - p la n e
j1
w i n c r e a s i n g e jw
w w = 0
w = p  {z }
w = -p -1 1
- j1
- p < w < 0
14–5
Á {z }
0 < W < p /D T z - p la n e
j1
W in c r e a s in g e jW D T
N y q u is t fr e q u e n c y
W = 0
W = p /D T W D T
 {z }
W = -p /D T -1 1
- j1
- p /D T < W < 0
we can define the mapping between the imaginary axis in the s-plane and the unit-circle in
the z-plane
s = j Ωo ←→ z = ej Ωo ΔT
jW Á {z }
N y q u is t fr e q u e n c y s - p la n e m a p p in g
z - p la n e
jp / D T j1
jW o D T
e
N y q u is t fr e q u e n c y
jW o
W = 0
" p r im a r y " s tr ip W = p /D T W D T
 {z }
s
W = -p /D T -1 1
- j1
- jp / D T
The periodicity in H( ej ΩΔT ) can be clearly seen, with the “primary” strip in the s-plane
(defined by −π/ΔT < Ω < π/ΔT ) mapping to the complete unit-circle. Within the primary
strip, the l.h. s-plane maps to the interior of the unit circle in the z-plane, while the r.h.
s-plane maps to the exterior of the unit-circle.
14–6
Aside: We use the argument to differentiate between the various classes of transfer
functions:
H(s) H(jΩ) H(z) H( ej ω )
Continuous Continuous Discrete Discrete
Transfer Frequency Transfer Frequency
Function Response Function Response
where F (z) has N distinct poles pk , k = 1, . . . , N and ccw path lies in the
ROC.
For a simple pole at z = zo
1 dm−1
Res [F (z), zo ] = lim (z − zo )m F (z)
z→zo (m − 1)! dz m−1
fn = Z −1 {F (z)} = Res F (z)z n−1 , pk .
k
Example 3
A first-order low-pass filter is implemented with the difference equation
yn = 0.8yn−1 + 0.2fn .
14–7
Solution: The filter has a transfer function
Y (z) 0.2 0.2z
H(z) = = =
F (z) 1 − 0.8z −1 z − 0.8
0.2z 2
Y (z) = H(z)U (z) =
(z − 1)(z − 0.8)
0 .8
0 .6
0 .4
0 .2
0
0 2 4 6 8 1 0 1 2 1 4 1 6 1 8
n ( s a m p le s )
Example 4
Find the impulse response of the system with transfer function
1 z2 z2
H(z) = = =
1 + z −2 z2 + 1 (z + j 1)(z − j 1)
14–8
1 1
0 .5
2 6 1 0 1 4 1 8
0
4 8 1 2 1 6 n
-0 .5
-1
Example 5
Find the impulse response of the system with transfer function
1 z2 z2
H(z) = = =
1 + 2z + z −2 z 2 + 2z + 1 (z + 1)2
Solution: The system has a pair of coincident poles at z = −1. The residue at
z = −1 must be computed using
1 dm−1
Res [F (z), zo ] = lim (z − zo )m F (z).
z→zo (m − 1)! dz m−1
With m = 2, at z = −1,
1 d
Res H(z)z n−1 , −1 = lim (z − 1)2 H(z)z n−1
z→−1 (1)! dz
d n+1
= lim z
z→−1 dz
= (n + 1)(−1)n
14–9
The impulse response is
hn = Z −1 {H(z)} = Res H(z)z n−1 , −1 = (n + 1)(−1)n .
h n
2 0
1 0
0
2 4 6 8 1 0 1 2 1 4 1 6 1 8 n
-1 0
-2 0
Partial Fraction Expansion: This is a table look-up method, similar to the method
used for the inverse Laplace transform. Let F (z) be written as a rational function of
z −1 :
M −k
k=0 bi z
F (z) = N
−k
k=0 ai z
M −1
k=1 (1 − ci z )
= N
k=1 (1 − di z )
−1
If there are no repeated poles, F (z) may be expressed as a set of partial fractions.
N
Ak
F (z) =
k=1
1 − dk z −1
Ak = lim (1 − dk z −1 )F (z).
z→dk
Since
Z 1
(dk )n un ←→
1 − dk z −1
N
fn = Ak (dk )n un .
k=1
14–10
Example 6
Find the response of the low-pass filter in Ex. 3 to an input
fn = (−0.5)n
and
0.1 −1 1 0.16 −1 1
yn = Z + Z
1.3 1 + 0.5z −1 1.3 1 − 0.8z −1
0.1 0.16
= (−0.5)n + (0.8)n
1.3 1.3
Note: (1) If F (z) contains repeated poles, the partial fraction method must be ex
tended as in the inverse Laplace transform.
(2) For complex conjugate poles – combine into second-order terms.
14–11
Example 7
Find Z −1 {log(1 + az −1 )}.
∞
(−1)n+1 an
−1
F (z) = log(1 + az ) = z −n for |a| < |z|
n=1
n
Because the ROC defines a causal sequence, the samples fn are
⎧
⎨0 for n ≤ 0
fn = (−1)n+1 an
⎩ for n ≥ 1.
n
Polynomial Long Division: For a causal system, with a transfer function written as
a rational function, the first few terms in the sequence may sometimes be computed
directly using polynomial division. If F (z) is written as
N (z −1 )
F (z) = = f0 + f1 z −1 + f2 z −2 + f2 z −2 + · · ·
D(z −1 )
the quotient is a power series in z −1 and the coefficients are the sample values.
Example 8
Determine the first few terms of fn for
1 + 2z −1
F (z) =
1 − 2z −1 + z −2
using polynomial long division.
Solution:
1 + 4z −1 + 7z −2 + · · ·
1 − 2z −1 + z −2 1 + 2z −1
1 − 2z −1 + z −2
4z −1 − z −2
4z −1 − 8z −2 + 4z −3
7z −2 − 4z −3
so that
1 + 2z −1
F (z) = = 1 + 4z −1 + 7z −2 + · · ·
1 − 2z −1 + z −2
and in this case the general term is
fn = 3n + 1 for n ≥ 0.
14–12
In general, the computation can become tedious, and it may be difficult to recognize
the general term from the first few terms in the sequence.
14–13