Section1 6
Section1 6
1.6 Z-Transform
The z-transform is an important tool for filter design and for analyzing the stability of
systems.
It is defined as
X
X(z) =
x(n)z n ,
(1.44)
n=
|z| = 1
j
s |z|e
l
l
1
l
l '$
-1
&%
<
-1
(1.45)
N
1
X
bi x(n i)
i=0
M
X
ak y(n k).
(1.47)
k=1
106
M
X
bi z X(z)
i=0
!
ak z k
N
1
X
(1.48)
M
X
ak z k Y (z)
k=1
= X(z)
N
1
X
bi z i
i=0
k=1
Y (z)
X(z)
N
1
X
bi z i
i=0
M
X
1+
ak z k
k=1
z N +1
=
z M
N
1
X
bi z n1i
i=0
M
X
zM +
!
ak z M k
k=1
N
1
Y
assume
b0 6=0
(z zi )
b0 z M N +1 i=1
M
Y
(1.49)
(z pk )
k=1
where the last equality comes from the fact that polynomials of degrees N 1 and M
have N 1 and M roots, respectively. The values of z for which H(z) = 0 (i.e., the roots
of the numerator z1 , z2 , , zN 1 ) are called the zeros of H(z); whereas the values for
which H(z) is infinite (i.e., zeros of the denominator p1 , p2 , , pM ) are called the poles
if M > (N 1), then there are M (N 1) zeros at z = 0;
of H(z). In addition,
if M < (N 1), then there are (N 1) M poles at z = 0.
Poles and zeros may also occur at z = :
zero at means lim H(z) = 0,
|z|
107
X
n=0
an z n
az 1
n
n=0
=
=
if az 1 < 1,
1
1 az 1
z
za
The region of convergence (ROC) is the set of all values of z for which the z-transform
converges. In this example, it is |z| > |a|.
Zero
Pole
ROC
Im(z)
Re(z)
a
Let us now consider the filter whose transfer function is the z-transform of Example 1.30.
Example 1.31. Let
H(z) =
z
.
za
(a) Difference Equation To see how the z-transform is related to the time-domain
representation, we expand it :
Y (z)
1
=
X(z)
1 az 1
Y (z) az 1 Y (z) = X(z)
Y (z) = az 1 Y (z) + X(z)
Inverting the z-transform, we have:
y(n) = ay(n 1) + x(n).
108
x(n)
y(n)
z 1
Figure 1.72. The system diagram of Example 1.31. z 1 delays a signal by one time unit.
(c) Frequency Response The frequency response of the system can be obtained by
replacing z with ej in the transfer function:
H ej
H ej =
=
|H(ej)|
1
1 aej
1
p
(1 aej )(1 aej )
1
1 2a cos + a2
1
p
(1 a)2 + 2a(1 cos )
10
a=0.6
9
a=0.8
8
a=0.9
7
6
5
4
3
2
1
0
4 3 2 1
Figure 1.73. Magnitude response of the filter in Example 1.31 for several values of the parameter a.
Fig. 1.73 shows the magnitude response of the filter for different values of a. In
109
particular, note that the height of the peak is determined only by a, since the term
with the cosine is removed when = 0. The closer a is to the unit circle, the
sharper the peak, and the thinner the passband.
As we have seen from Example 1.31, in general, a pole near the unit circle will cause
the frequency response to increase in the neighborhood of that pole; a zero will cause
the frequency response to decrease in the neighborhood of that zero (Fig. 1.74).
Im(z)
ej
'$
e
Re(z)
|H(ej )|
1
e
&%
ej
Im(z)
'$
rej
Re(z)
|H(ej )|
1
&%
rej
Figure 1.74. The effects of zeros and poles near the unit circle.
X
n=0
n n
2 z
n
X
2
n=0
When can we sum this series? In other words, when does this series converge? Consider
these two cases:
1. If |z| 2, then z2 1. This means that every term in the series has an absolute
value greater than or equal to 1. If it is greater than 1, then every successive terms
grows larger. If it is equal to 1, then we are just adding 1 an infinite number of
times. In both cases, the series diverges.
110
2. On the other hand, if |z| > 2, then the geometric series converges because z2 < 1,
and we have
1
X(z) =
.
(1.50)
1 z2
Thus, the z-transform of x(n) = 2n u(n) is
|z| > 2
1 z2
X(z) =
undefined |z| 2
Im(z)
ROC
2
Re(z)
2
2
2
Usually, |z| > 2 is called the region of convergence (ROC) of the z-transform,
because when z lies in this region, the series actually converges to the function (1.50).
A slightly more accurate term would be the region of definition, since the z-transform
is undefined outside of this region.
Example 1.33. Let y(n) = 2n u(n 1). Then
Y (z) =
2n z n
n=1
2m1 z m+1
m=0
z
2
m=0
z m
2
where m = n 1
111
Y (z) =
undefined |z| 2
1
1 z2
|z| < 2
We get the same expression for the z-transform as in Example 1.32 but the ROC is
different and in fact does not intersect the ROC from Example 1.32.
Example 1.34. Let w(n) = 2n for < n < . Then
2n u(n) + 2n u(n 1) = x(n) y(n),
where x(n) and y(n) are from Examples 1.32 and 1.33, respectively. Hence,
W (z) = X(z) Y (z)
1
1
=
2
1 z
1 z2
= 0???
What is wrong with this derivation? As we saw in the two previous examples, X(z) and
Y (z) have no common ROC:
X(z) is undefined for |z| 2.
Y (z) is undefined for |z| 2.
This means that W (z) is not defined for any z.
Definition 1.12. The region of convergence of
x(n)z n
n=
is the set of all z for which this series is absolutely convergent, i.e.,
X
x(n)z n < .
n=
112
1
(1)n u(n) z n
n
n=
at z = 1.
Im(z)
Im(z)
Im(z)
Re(z)
Re(z)
Re(z)
1
, where the ROC is |z| > |a|,
1 az 1
an u(n 1)
1
, where the ROC is |z| < |a|.
1 az 1
(1.51)
(1.52)
113
7. An LTI system is BIBO stable if and only if the ROC of its transfer function H(z)
includes z = 1, (i.e., includes the unit circle):
"
#
X
h(n)z n
<
n
z=1
m
|h(n)| <
BIBO stability.
1 4z 1
.
1 3z 1 + 2z 2
A1
A2
1 4z 1
=
+
.
1
1
1
(1 z )(1 2z )
1z
1 2z 1
(1.53)
A1 (1 2z 1 ) + A2 (1 z 1 )
A1 + A2 (2A1 + A2 )z 1
=
.
(1 z 1 )(1 2z 1 )
(1 z 1 )(1 2z 1 )
2A1 + A2 = 4
A2 = 2
Method 2. Using (1.53),
[X(z)(1 z
[X(z)(1 2z
)]z=1
1 4z 1
=
1 2z 1
A2 (1 z 1 )
= A1 +
1 2z 1
z=1
3 = A1 .
z=1
1 4z 1
1 4z 1 )
=
= A1 +
1 1z 1 z=2
1 z 1 z=2
2 = A2 .
)]z=2
114
Thus, we have
2
3
.
1 z 1 1 2z 1
We now consider the three possible ROCs that this z-transform can have.
X(z) =
Re(z)
Case 2
Case 3
10
30
50
x(n)
10
x(n)
x(n)
1
3
70
5 3 1
1
n
1
3
5
5 3 1
1
n
5
5 3 1
1
n
Figure 1.78. The inverse z-transforms for the 3 possible ROCs of Example 1.35.
115
X
k=
h(k)x(n k)
h(k)z0nk
k=
X
n
z0
h(k)z0k
k=
LTI system
with impulse
response h(n)
if z0 ROC of H(z).
The transfer function H(z) is the z-transform of the impulse response h(n). It is
also the scaling factor of z n when z n goes through the system.
Recall that we have already considered the case of z0 = ej0 . The frequency response
H(ej0 ) is:
the DTFT of the impulse response h(n);
the scaling factor when ej0 n is the input, as shown in Fig. 1.80.
x(n) = ej0 n
LTI system
with impulse
response h(n)
116
X(ej )
@
@
@
@
@
@
fs
@
@
@
@
@
@
@
@
@
B
B
B
B
B
B
2
fs
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
L
2
L
2
L
B
B
B
B
B
B
2
HLP F (ej )
L
fs L
B
B
B
B
B
B
2
B
B
B
B
B
B
B
B
B
B
B
B
2
Figure 1.65. The effect of interpolation on the spectrum of the input signal x.