Professional Documents
Culture Documents
Ch3 Z-Transform
Ch3 Z-Transform
Ch3 Z-Transform
Sampled Data
The generalized function (t) (also known as the impulse function) is useful in the definition
and analysis of sampled-data signals. Figure 1 below shows a simplified graph of an impulse.
(t-t0)
t
t0
Figure 1: Simplified graph of an impulse function
This property is called the sifting property and may be used to define a sampled signal f *(t) as
shown in Figure 2 below. The sampled signal is basically f(t) modulated by the pulse train
p(t) given by
p(t) = δ(t nT)
n
(2)
f(t) f*(t)
t t
p(t)
t
Figure 2: Ideal impulse sampling
Therefore
*
f (t) = f(t) p(t) = f(nT) δ(t nT)
n
(3)
So that the sampled signal is an amplitude modulated train of pulses. If each pulse is replaced
with the number f(nT), it is then called discrete-time signal. Finally, if f(t) is defined only
over t 0, the summation in Eq. (3) is taken over [0,].
The Laplace and z-transforms are closely related techniques. To demonstrate this, we will
start with the Laplace transform and show how it can be changed into the z-transform. The
single-sided Laplace transform of the time domain f(t) is defined as:
F(s) f(t)e st dt (4)
0
where F(s) is the s-domain representation of the signal f(t). The above equation analyzes the
time domain signal in terms of sine and cosine waves that have an exponentially changing
amplitudes. This can be understood by using the substitution s = +j so that the Laplace
transform becomes:
F( , ) {f(t) e } e
t jt (5)
dt
0
Now, take the Laplace transform of the sampled-data signal f*(t) given by Eq. (3)
F (s) f (t) e dt f(nT) δ(t nT) e st dt
* * st
0 0
n 0
f(nT) e
n 0
nTs
f(0) + f(T) e-sT + f(2T) e-2sT+ f(3T) e-3sT+ (6)
This equation is our starting point to define the z-transform of a sampled signal. It also relates
in a direct way the s-transform and the z-transform as will be soon illustrated. Define the
forward delay operator z = esT and rewrite Eq. (6) as follows:
F(z) f(nT) z
n 0
n
f(0) + f(T) z-1 + f(2T) z-2+ f(3T) z-3+ (7)
where F(z) is called the z-transform of the discrete signal f(nT) or Z{f(t)}.
Example: Find the z-transform for the unit ramp function r(t)=t for t ≥ 0.
SOLUTION: Substitute for r(t) in Eq. (7) to get
R(z) (nT ) z
n 0
n
= T (z1 + 2z2+ 3z3+ 4z3+ )
T z 1
Also, note that R(z) z1R(z) = T z1 + z2+ z3+ =
1 z 1
T z 1 Tz
Hence, R(z) = 1 2 =
(1 z ) ( z 1) 2
m
and Z{f(nTmT)}= z F(z) (10)
PROOF:
Z{f(nT+mT)}= f(nT mT) z n = z f(nT mT) z
m ( n m)
n0 n0
f
m m m m1
=z m z m f m 1 z ( m 1) = z F(z) z f0 z f1 z fm-1
n 0
Proof for the second case is similar except that f(nT) is assumed zero for negative indices.
Note that this final value exists only if (z-1)F(z) has its poles within unit circle.
Example: Calculate the initial and final values for the following complex functions
z ( z 1)
(a) F(z) =
( z z 1) ( z 1)
2
z
(b) F(z) =
( z 5 z 6)
2
SOLUTION:
(a) Calculate initial value
f(0) = lim F(z) = lim O (z1) = 0
z z
And the final value
z ( z 1)
f() = lim (z1)F(z) = lim =2
z 1 z 1 ( z 2 z 1)
(b) Initial value
f(0) = lim F(z) = lim O (z1) = 0
z z
While the final value
z ( z 1)
f() = lim (z1)F(z) = lim =0
z 1 ( z 5 z 6)
z 1
2
But this value is not true since has roots outside the unit circle. In fact f() = .
k! k z
tk k 1
lim (1) k [ T
]
s 0 k
ze
1 z
eat
sa z e aT
1 Tze aT
teat
( s a) 2 ( z e aT ) 2
at a z (1 e aT )
1e
s( s a) ( z 1) ( z e aT )
at a Tz z (1 e aT )
t(1e )/a
s ( s a)
2
( z 1) 2 a ( z 1) ( z e aT )
Damped sine ze aT sin T
eat sin(t) ( s a)2 2 z 2 2 ze aT cos T e 2 aT
There are several methods to obtain the inverse of the z-transforms. We shall discuss two
simple methods; long division and partial fraction expansion. Both are illustrated though the
following examples.
Or, simply
f(nT) z n 1 2 3 4
F(z) = = z +0.7z + 0.85 z +0.775 z +
n0
(b) Using partial fractions
0.2 0.8
F(z) can be expanded as F(z) = so that
( z 0.5) ( z 1)
z z
z F(z) = 0.2 0.8
( z 0.5) ( z 1)
and from z-transform table, we get fn+1 = 0.2(0.5)n + 0.8 for n 0
z 0.2
and f0 = lim = 0 as confirmed in (a).
z ( z 0.5) ( z 1)
Note that the sequence fn is seen as the impulse response of a filter with F(z) as its
transfer function.
EE452 Digital Control Dr. Salah Foda Page 6
Example: Find the inverse z-transform for
z
F(z) =
( z 5 z 6)
2
SOLUTION:
(a) Using long division
f(nT) z n 1 2 3 4
F(z) = = z +5z + 19 z + 65 z +
n0
1 1 1
Also, F(z)/z can be expanded as F(z)/z = =
( z 5 z 6) ( z 3) ( z 2)
2
z z
Hence F(z) =
( z 3) ( z 2)
n n
So that f((nT) = (3) (2) , for n 0.
>> syms f F n z
>> F=z/(z^2-5*z+6);
>> f=iztrans(F)
f = -2^n+3^n
SOLUTION: First, we may note that f is simply F(z) evaluated at z =1 (provided that
F(z) has no poles outside the unit circle). Let us evaluate F(z) as the complex
z d z 2z
differentiation of i.e. F(z) = z ( )=
z 0.5 dz z 0.5 ( z 0.5) 2
Hence, the sum f = F(1) = 8.
Example: Using z-transform table and partial fraction expansion, find the inverse z-
transform for
z ( z 1)
F(z) =
( z z 1) ( z 1)
2
SOLUTION: First, let us expand F(z) using partial fractions in the form
( z 1) a bzc 2 2 z 1
F(z)/z = = 2 = 2
( z z 1) ( z 1)
2 ( z 1) ( z z 1) ( z 1) ( z z 1)
The following matlab code was used to verify the values of f((nT):
4.5
3.5
2.5
f(nT)
1.5
0.5
0
0 2 4 6 8 10 12 14 16 18 20
nT
Useful Hints: The following formulas may be useful and are used quite often
N
1 r N 1
(i) r n r < 1 (Finite geometric series)
n 0 1 r
(ii) r
n 0
n
1 r
r<1 (Infinite geometric series)
n n
n nk k n
(iii) (a+b) = a b where = n(n1)(nk+1)/k! (Binomial expansion)
k 0
k k
1 1 2 3 2 4 3
(iv) (a+b) = a a b + a b a b + Special case of (iii).
n z
(v) Z{ n-k}=
k ( z ) k 1
(2) Find the initial value f(0) and final value f() for the following single sided z-transforms:
2z 1
(a) F(z) =
z 1
2z
(b) F(z) =
z 2z 1
2
z
(c) F(z) =
z ( z 1)
2
10 z 2 2 z
(d) F(z) =
(5 z 1) 2 ( z 1)
(3) Find the inverse z-transform for:
3
(a) F(z) =
z e T
4z
(b) F(z) =
( z 4 z 4) ( z 2)
2
z2 z
(c) F(z) =
( z 0.5)3 ( z 0.25)
(4) Find the z-transform for the Fibonacci sequence given by the following recursive equation:
x k+2 = xk+1 + xk given x1= x0 =1.
i.e. the discrete sequence xk= {1, 1, 2, 3, 5, 8, 13, 21, 34, }. Also find the golden ratio