LectureD6 Z Transform
LectureD6 Z Transform
Lecture-D6
Z-Transform
Zhao Wang
[email protected]
Room EE322
1
Content
• 1. What is z-transform?
– DTFT and z-transform
– Convergence
• 2. Region of Convergence (ROC)
• 3. Inverse DTFT
• 4. Z-transform properties
• 5. Rational Z-transform
• 6. CCLDE and Z-transform
– Zero/pole positions
– Frequency responses
2
1.1 Why do we need another transform?
• Think about all the transforms you have seen so far
– Laplace transform, Fourier series, CTFT, DTFT and DFT
• Why do we need another one?
– Convergence issues with the Fourier transforms:
The DTFT of a sequence exists if and only if the sequence x[n] is
absolutely summable, that is, if
– DTFT may not exist for certain signals of practical interest or some
analytical signals, whose frequency analysis can therefore not be
obtained through DTFT
3
1.2 Z-Transform
• A generalization of the DTFT leads to the z-transform that
may exist for many signals for which the DTFT does not.
– DTFT is in fact a special case of the z-transform
– …just like the CTFT is a special case of Laplace’s transform.
• Importance of z-transform
– The use of z-transform techniques permits simple algebraic
manipulations
– The z-transform has become an important tool in the analysis and
design of digital filters
– The representation of an LTI discrete-time system in the z-domain
is given by its transfer function which is the z-transform of the
impulse response of the system
4
1.2 Z-Transform
• For a given sequence x[n], its z-transform X(z) is defined as
n
X[ z]
n
x[n]z n
n
x[n] re j
n
x[ n]r n e j n
5
1.2 Convergence
• Just like the DTFT, z-transform also has its own
convergence requirements: x[n]r-n must be absolutely
summable, that is,
which converges to
1
U[ z ] 1
, for z 1 1
1z
z
, for z 1
z1
• The region of convergence is the annular region in the z-plane
1 z
7
Example 2
• Determine the z-transform and the corresponding ROC of the
causal sequence x[n]=αnu[n] (right-sided)
n 1
X[ z ]
n
n
u[n]z n
z
n0
1
X[ z]
1 z 1
, for z 1 1
z
, for z
z
8
Example 3 Is the same with that in previous slide, but with different ROC
1 z 1 z
1
1
, for z
1 z 1 z z
9
1.3 Impulse response and transfer function
• Impulse responses: x[n]=αnu[n] and y[n]=-αnu[-n-1]
• Transfer functions: X[ z] z , for z
z
z
Y[ z ] , for z
z
– The z-transforms of the two sequences x[n] and y[n] are identical
even though the two parent sequences are different
– Only way a unique sequence can be associated with a z-transform is
by specifying its ROC
– Both transfer functions have a pole at z=α, which make the transfer
function asymptotically approach to infinity at this value. Therefore,
z=α is not included in either of the ROCs.
10
2.1 ROC of the z-transform
[ ]
= = , | |>| |
[ ] −
• In the X[z] given above, z = 0 is its zero, and z = α is its pole.
• The circle with the radius of α is called the pole circle. A system may
have many poles, and hence many pole circles.
• For right sided sequences, the ROCs extend outside of the outermost
pole circle, whereas for left sided sequences, the ROCs are the inside of
the innermost pole circle.
• For two-sided sequences, the ROC will be the intersection of the two
ROC areas corresponding to the left and right sides of the sequence.
11
2.1 ROC of the z-Transform
• For double sided sequence:
= − [− − 1]
• Its z-transform is:
1 1
= +
1− 1−
|β|
|α| |β|
12
2.1 ROC of the z-Transform
• When R1 < R2
Right-sided
Left-sided
R1 z R2
R2
if 0 R1 R2 R1
|β|
R1
ROC of a left-sided ROC of a right-sided
sequence is inside of sequence is outside of
a circular area a circular area
R2
• When R1 > R2
– No valid ROC => z-transform doesn’t exist.
13
Example 4
• Consider x[n]=5nu[n]-8nu[-n-1]
z z
X[ z]
z5 z8
– Corresponding ROCs are |z|>5 and |z|<8
– Therefore the ROC for this signal is the annular region 5<|z|<8
• Consider x[n]=8nu[n]-5nu[-n-1]
z z
X[ z ]
z5 z8
– Corresponding ROCs are |z|<5 and |z|>8
– Therefore, the z-transform of this sequence
does not exist!
14
2.2 Existence of DTFT and z-transform
• Since DTFT is the z-transform evaluated on the unit circle,
that is for z=ejω, DTFT of a sequence exists if and only if the
ROC includes the unit circle!
– The DTFT for x[n]=5nu[n]-8nu[-n-1] clearly does not exist, since the
ROC does not include the unit circle!
The existence of DTFT is not a guarantee for the existence of the z-transform either!
15
3.1 Inverse z-transform
• The inverse z-transform is defined as
17
3.2 Inverse z-Transform by long division
• The z-transform of a causal sequence can be expanded in a
power series in z-1.
• For a rational z-transform expressed as a ratio of polynomials
in z-1, the power series expansion can be obtained by long
division.
18
3.3 Inverse z-Transform by Partial Fraction Expansion
• A rational H(z) can be expressed as
19
3.3 Inverse z-Transform by Partial Fraction Expansion
20
3.3 Inverse z-Transform by Partial Fraction Expansion
21
3.3 Inverse z-Transform by Partial Fraction Expansion
• Multiple Poles: If the z-domain function contains an m-multiple pole,
that is, a term as the following is included
22
4.1 Z-transform properties
• Linearity
• Example
– 1. Determine the z-Transform and the ROC of
– 2. Determine the z-Transform and the ROC of
– 3. Determine the z-Transform and the ROC of
23
4.2 Z-transform properties
• Time-shifting
• Example
– Determine the z-Transform of the signal
24
4.3 Z-transform properties
• Example
– Determine the z-transform and its ROC of the causal sequence
25
4.4 Z-transform properties
• Time Reversal
• Example
– Determine the z-transform and its ROC of
26
4.5 Z-transform properties
• Example
– Find the z-Transform of
27
4.6 Z-transform properties
28
4.7 Z-transform properties
• Parseval’s relation
29
4.8 Properties Summary
30
5.1 Rational z-transform
Z Z
Y[z] a1z1Y[z] a2 z2Y[z] aN zNY[z] X[z] b1z1X[z] b2 z2 X[z] bM z MX[z]
32
5.1 Rational z-transform
33
• Example: A physical interpretation of the concepts of poles
and zeros can be given by plotting the log-magnitude
20log10|G(z)| of G(z) The poles are at z=0.4±j0.6928
The zeroes are at z=1.2±j1.2
34
clear;
close all;
N=256;
rez=linspace(-4,4,N);
imz=linspace(-4,4,N);
%create a uniform z-plane
for n=1:N
z(n,:)=ones(1,N).*rez(n)+j*ones(1,N).*imz(1:N);
end
%Compute the H function on the z-plane
for n=1:N
for m=1:N
Hz(n,m)=(1-2.4*z(n,m)^(-1)+2.88*z(n,m)^(-
2))/(1-0.8*z(n,m)^(-1)+0.64*z(n,m)^(-2));
end
end
%Logarithmic mesh plot of the H function
mesh(rez, imz, 20*log10(abs(Hz)))
35
• Matlab has simple functions to determine and plot the poles and zeros of
a function in the z-plane
– tf2zpk():[Z,P,K]=tf2zpk(NUM,DEN) finds the zeros, poles, and gain.
b=[1 -2.4 2.88]; z = 1.2000 + 1.2000i
a=[1 -0.8 0.64]; 1.2000 - 1.2000i
[z,p,k] = tf2zpk(b,a) p = 0.4000 + 0.6928i
0.4000 - 0.6928i
k=1
– [num,den] = zp2tf(z,p,k) implements the reverse process
– zplane(): zplane(Z,P) plots the zeros Z and poles P (in column vectors)
with the unit circle for reference.
zplane(B,A) plots the poles and zeros of B(z)/A(z) where B and
A are row vectors containing transfer function polynomial coefficients
zplane(b,a);
zplane(z,p);
36
5.2 Frequency Response
37
5.3 Poles and Zeros
• The ROC of a rational z-transform cannot
contain any poles and is bounded by the poles
– For a right sided sequence, the ROC is outside of
the largest pole
– For a left sided sequence, the ROC is inside of the
smallest pole
– For a two sided sequence, some of the poles
contribute to terms in the parent sequence for n<0
and other to terms for n>0. Therefore, the ROC is
between two circular regions: outside of the largest
pole coming from the n>0 sequence and inside of
the smallest pole coming from the n<0 sequence.
– If the sequence is of finite length, then the ROC
includes the entire z-plane, except possibly z=0
and/or z=∞.
38
5.3 Stability & ROC
– Now, for an LTI system to be stable it must be absolutely summable,
or in other words, it must have a DTFT. But for a system to have a
DTFT, its ROC must include the unit circle.
• An LTI system is stable, if and only if the ROC of its transfer
function H(z) includes the unit circle!
39
Behavior of a Single Real-Pole Causal Signal
40
Behavior of a Double Real-Pole Causal Signal
41
Behavior of a Causal Signal with a Pair of
Complex-Conjugate Poles
42
5. Summary
43
6.1 CCLDE coefficients
• All discrete systems can be represented using Constant Coefficient,
Linear Difference Equations (CCLDE), of the form
• The function H(z), which is the z-transform of the impulse response h[n]
of the LTI system, is called the transfer function
– Using the CCLDE coefficients
44
6.2 Frequency response and the transfer function
• If the ROC of the transfer function H(z) includes the unit
circle, then the frequency response H(ω) of the LTI digital
filter can be obtained simply as follows:
H H e j
H z z e j
45
6.2 Frequency response and the transfer function
46
6.3 Frequency response by pole and zero distances
• Example:
– The transfer function of a filter has zeros at zo ro e jo and poles
j p
z
at p p r e , thus
( z ro e jo )( z ro e jo ) z 2 2 ro cos o z ro2
H ( z) j p j p
2 2
( z rp e )( z rp e ) z 2 rp cos p z rp
47
6.3 Frequency response by pole and zero distances
• Thus we may evaluate the frequency response at a given
frequency in
terms of the magnitudes and angles of the phasors uk
product of distances to zeros
H ( e j )
product of distances to poles
48
– An approximate plot of the magnitude and phase responses of the
transfer function of an LTI digital filter can be developed by
examining the pole and zero locations
– Now, the frequency response has the smallest magnitude around
ω=ζ, and the largest magnitude around ω=p.
– Of course, at ω=p, the response is infinitely large, and at ω=ζ, the
response is zero
6 0
-1
5
-2
4
magnitude response
-3
phase
3
-4
2
-5
1
-6
0 -7
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
frequency frequency
49
6.3 Frequency response by pole and zero distances
• Therefore:
– To highly attenuate signal components in a specified frequency
range, we need to place zeros very close to or on the unit circle in
this range.
50
6.4 Graphical interpretation
• Complex vector
– αk is in general a complex quantity, let’s write that as k k e j k
unit circle
– As ω varies from 0 to 2π, the tip of this vector moves counter-
clockwise tracing the unit circle.
51
• The magnitude response |H(ω)|, at a given frequency ω, is the
product of the magnitude (length of orange vector) of all zeros,
divided by the magnitude of all poles, as evaluated at that ω.
– If αk is a zero (i.e., a numerator factor), the
overall magnitude vector of H(ω) will be
small at frequencies around φk, and will be
exactly zero if αk is on the unit circle, causing
H(ωk) = 0.
– Conversely, if αk is a pole (i.e., a denominator
factor), the overall magnitude vector of H(ω)
will be large at frequencies around φk, and
will go to infinity if αk is on the unit circle.
– This is why the zeros and the poles that are at
or close to the unit circle have a larger impact
on the overall frequency response than those
that are further away from the unit circle.
52
6.4 Graphical interpretation – An example
One zero at z = 0
One pair of conjugate poles
at z = -0.5000 ± j0.5000
53
6.4 Graphical interpretation – An example
• Consider the M-point moving-average FIR filter with an
impulse response
55
6. Summary
• Frequency response
– Magnitude response Z-transform
– Phase response (Zero-pole positions)
• Graphic explanation
• Filter design based on zero position arrangement
56
Lect-D6 Practices
• Exercise 1. Consider the z-transform X(z) whose pole-zero plot is
shown on the right.
– A) Determine the ROC of X(z)
if it is known that the Fourier
transform exists. For this case,
determine whether the corres-
ponding sequence x[n] is right
sided, left sided, or two sided.
57
Lect-D6 Practices
• Exercise 2.
– a) What are the conditions for a causal LTI system to be stable?
.
– b) Is the system H z = stable?
.
– c) Find the ROC of a stable H(z).
– b) ∑
( )
– c) ∑
58
Lect-D6 Practices
• Exercise 4. The input to a causal LTI system is
– C) Determine y[n].
59
Lect-D6 Practices
• Exercise 5. Consider the causal sequence x n = (−0.7) , with a
z-transform given by X(z). Determine the inverse z-transform of X(z3)
without computing X(z).
where circle represents the zeros and cross represents the poles.
60