Z Transform
Z Transform
Z Transform
Outline
Signals and Systems
Z-Transforms
How to do Z-Transforms
How to do inverse Z-Transforms
How to infer properties of a signal from its
Z-transform
Transfer Functions
How to obtain Transfer Functions
How to infer properties of a system from its
Transfer Function
Signals
The signals we are studying in this
course Discrete Signals
A discrete signal takes value at each nonnegative time instance
18
16
14
12
10
8
6
4
2
0
10
12
Example of a System
18
18
16
16
14
14
12
12
10
10
Filter
2
0
10
2
0
12
y(k)
10
smooth temperature
values after filtering
- Output Signal
12
Control System
Reference
Input
Transduced
Output
Transducer
Target
System
Measured
Output
Common Signals
exponential
0.8
impulse
0.5
0.7
|a|<1
0.5
0.3
|a|>1
a=1.2
0.6
0.4
0
-1
(ak)
0.9
0.2
0.1
0
delayed impulse
0.5
10
0
-1
15
sin(k*pi/6)
0.5
0
-1
sine
9
-0.5
-1
10
12
14
16
18
step
0.5
cos(k*pi/6)
0.5
0
-1
cosine
9
0
-0.5
4
3
ramp
-1
10
12
14
16
18
exponentially
modulated
cosine/sine
1
0.8
0.6
u(k)=cos(k*pi/6)*0.9k
0.4
0.2
0
-0.2
-0.4
-0.6
0
-1
-0.8
-1
10
12
14
16
18
Z-Transform of a Signal
Z
u(k)
U(z)
Z-1
u(0)
u(0) z0
u(1)
+u(1) z-1
u(2)
+u(2) z-2
u(3)
+u(3) z-3
u(4)
+u(4) z-4
U(z) u(k) z k
k 0
Z-Transform Contd
Mapping from a discrete signal to a
function of z
Many Z-Transforms have this form:
n
U(z)
a z
i 0
m
Rational Function of z
b z
Helps intuitively derive the signal
properties
j0
Does it converge?
To which value does it converge?
How fast does it converges to the value?
Z
Z-1
uimpulse(k)
Uimpulse(z)
u(0) = 1
1 z0
u(1) = 0
+0 z-1
u(2) = 0
+0 z-2
u(3) = 0
+0 z-3
u(4) = 0
+0 z-4
Uimpuls e(z) 1
0.5
0
-1
0 z0
u(1) = 1
+1 z-1
u(2) = 0
+0 z-2
u(3) = 0
+0 z-3
u(4) = 0
+0 z-4
Udelay (z) z
0.5
0
-1
1 z0
u(1) = 1
+1 z-1
u(2) = 1
+1 z-2
u(3) = 1
+1 z-3
u(4) = 1
+1 z-4
0.5
0
-1
1a
1 a a 2 ... a n
n ,
assuming |a| 1,
(1 a)(1 a a 2 ... a n )
1 a a ... lim
n
1a
1 a n 1
lim
n 1 a
1
1a
U step (z) 1 z
1
...
1- z -1
Z-Transform of Exponential
Signal
Z
uexp(k)
Uexp(z)
Z-1
u(0) = 1
1 z0
u(1) = a
+a z-1
u(2) = a2
+a2 z-2
u(3) = a3
+a3 z-3
u(4) = a4
+a4 z-4
a=1.2
0
-1
Remember
this!
1- az -1
LTI Systems
Linear, Time Invariant (LTI) System
Many systems we analyze or design are or
can be approximated by LTI systems
We have a well-established theory for LTI
system analysis and design
3-MA
y(k)
Control System
Reference
Input
Transduced
Output
Transducer
Target
System
Measured
Output
u(k)
3-MA
y(k)
u(k)
3-MA
y(k)
Superposition
u1(k)
3-MA
y1(k)
u2(k)
3-MA
y2(k)
u1(k)+u2(k)
3-MA
y1(k)+y2(k)
Time Invariance
u(k)
3-MA
y(k)
u(k)=u(k-n)
3-MA
y(k)=y(k-n)
Idiom:
u(k-n) is u(k)
delayed by n
time units!
y(k+1)=[u(k)+u(k-1)+u(k-2)]/3
y(k+1-n)=[u(k-n)+u(k-1-n)+u(k-2-n)]/3
y(k+1)=[u(k)+u(k-1)+u(k-2)]/3
Reality Check
Typically speaking, are computing
systems linear? Why?
Consider saturation
uimpulse(k)
yimpulse(k)
0.5
0.5
0
-1
10
y(k)
0
-1
Claim:
If we know yimpulse(k), we can obtain y(k)
corresponing to ANY input u(k)!
yimpulse(k) contains ALL information about
the input-output relationship of an LTI system.
An Example: 3-MA
3MA
uimpulse(k)
yimpulse(k)
0.5
0.5
0
-1
0
-1
3MA
u (k)
6x
9
8
y (k) ?
u(k) =
5
4
3
0
-1
uimpulse(k-1)
0.5
0
-1
uimpulse(k-2)
1
0.5
0
-1
0.5
9x
3x
uimpulse(k)
0
-1
An Example: 3-MA
3MA
uimpulse(k)
yimpulse(k)
0.5
0.5
0
-1
0
-1
3MA
u (k)
6x
9
8
y (k) ?
y(k) =
5
4
3
0
-1
yimpulse(k-1)
0.5
0
-1
yimpulse(k-2)
1
0.5
0
-1
0.5
9x
3x
yimpulse(k)
0
-1
Convolution
y(5)= u(0) yimpulse(k)
+ u(1) yimpulse(k-1)
+ u(2) yimpulse(k-2)
+ u(3) yimpulse(k-3)
+ u(4) yimpulse(k-4)
u(0) x
9
8
1
0.5
0
-1
y(k) =
5
4
3
u(1) x
yimpulse(k-2)
1
0.5
0
-1
0.5
0
-1
u(2) x
yimpulse(k-1)
0
-1
k 1
Important Theorem
Time Domain
u(k)
v(k)
y(k)
(convolution)
Z Z-1
U(z)
Z Z-1
(multiplication)
Z Domain
V(z)
Z Z-1
=
Y(z)
Z-Transform/Inverse Z-Transform
LTI: yimpuse(k)=0.3k-1
u (k)=0.7k
1
0.9
0.9
0.8
0.7
0.6
0.5
0.3
0.6
0.5
0.5
0.2
0.1
0
Z
1
1 0.7z1
0.6
0.3
15
0.7
0.4
0.1
10
0.8
0.3
0.1
5
0.9
0.4
0.2
0.7
0.2
0.8
(convolution)
0.4
y (k)?
10
12
14
16
(multiplication)
18
Transfer
Function
-1
z
1 0.3z 1
10
15
Z-1
z 1
(1 0.3z 1)(1 0.7z 1)
u (k)
y (k)
0.5
0.5
0.5
0
-1
ustep (k)
(multiplication)
udelayed(k)
(convolution)
Transfer
Function
Z
1
1 z 1
0
-1
0
-1
udstep(k)
Z
z-1
z -1
1 z 1
Z
Z-1
udstep(k)
u(0) = 0
0 z0
u(1) = 1
+1 z-1
u(2) = 1
+1 z-2
u(3) = 1
+1 z-3
u(4) = 1
+1 z-4
Remember
this!
0.5
0
-1
Udstep(z)
z -1
1
1- z -1
z 1
Transfer Function
Transfer function provides a much more
intuitive way to understand the input-output
relationship, or system characteristics of an
LTI system
Stability
Accuracy
Settling time
Overshoot
0.5
0
-1
0.5
0
-1
12
10
y(k)=u(k-n)
10
n-Delay
y(k)=u(k-n)
k n
1,
yimpuls e(k) undelay (k)
0, otherwise
Yimpulse(z) z n
Y(z) z nU(z)
U(z) u(0) u(1)z 1 u(2)z 2 u(3)z 3 ...
Y(z) y(0) ... y(n 1)z n1 y(n)z n y(n 1)z n1 y(n 2)z n2 y(n 3)z n3 ...
0 ... 0z n1 u(0)z n u(1)z n1 u(2)z n2 u(3)z n3 ...
z -nU(z)
0.5
0.5
0
-1
0
-1
y(k)=u(k+n)
Z-Transform
Scaling
y(k)=au(k)
Y(z)=aU(z)
Superposition
y(k)=u(k)+v(k)
Y(z)=U(z)+V(z)
sin? cos?
1
sin(k*pi/6)
0.5
-0.5
-1
10
12
14
16
18
10
12
14
16
18
cos(k*pi/6)
0.5
-0.5
-1
1
1- az-1
Euler Formula:
Z[cos(k)]?
Z[sin(k)]?
ei cos isin
e cos( ) isin( ) cos isin
e i e i
cos
2
e i e i
sin
2i
Z-Transform of sin/cos
Z-Transform
Time Domain
u(k) e ik
U(z)
u(k) e -ik
u(k) cos(k )
U(z)
ik
e
2
ik
1- e z -1
1
1- e-i z -1
1
1
U(z) (
)/2
i
-1
i
1- e z 1 e z 1
1
1
(
)/2
1
1
1
1 cos z isin z
1 cos z isin z 1
1 cos z 1
eik e ik
u(k) sin(k )
2i
1
i
1 cos z 1
1 2cos z 1 z 2
U(z)
sin z -1
1- 2cos z -1 z 2
u(k)=cos(k*pi/6)*0.9k
0.4
0.2
0
-0.2
-0.4
-0.6
-0.8
-1
10
(aei )k (ae i )k
uexpcos (k) a cos(k )
2
k
a sin z -1
U(z)
1- 2a cos z -1 a2 z 2
12
14
16
18
(aei )k (ae i )k
uexps in(k) a sin(k )
2i
k
a sin z -1
U(z)
1- 2a cos z -1 a2 z 2
LTI: yimpuse(k)
=udstep(k)
u (k)
y (k)
3
2
1
1
1
0.5
0.5
0
-1
ustep(k)
*
Transfer
Z
1
1 z 1
0
-1
udstep(k)
(convolution)
Function
(multiplication)
0
-1
Z
z -1
1 z 1
uramp(k)
Z-1
z -1
(1 z 1)2
Inverse Z-Transform
Z
u(k)
Z-1?
U(z)
Z-1?
Long Division
Partial Fraction Expansion
3
2z 1
U(z)
1 z 1 (1 z 1)2
3Us t ep(z) 2Uramp(z)
Long Division
Sort both nominator and denominator with
descending order of z first
3 z 1
U(z)
1 2z 1 z 2
U(z)
i
a
z
i
i 0
m
j
b
z
j
j0
cj
j 1
z pj
U(z) c0
May be trickier:
complex root
duplicate root
z 1
1
1 p j z 1
where
k 1
upj dexp(k) p j ,
k>0
An Example
3z 2 14z 14
U(z)
z 2 6z 8
U(z) c0
c1
c
2
z 2 z 4
(z-2)(z-4)
U1(z)=c0
c1
z 2
c
U3(z) 2
z 4
U2(z)
Z-1
Z-1
Z-1
k0
c ,
u(k) 0 k 1
k 1
c
4
, k0
2
1
u1(k)=c0*uimpulse(k)
u2(k)=c1*2k-1, k>0
u2(k)=c2*4k-1, k>0
c0? c1? c2?
U(z) c0
c1
c
2
z 2 z 4
(z-2)(z-4)
U(z) c0
c1
c
2 , z , U(z) c ,
0
z 2 z 4
c1(z 4)
c2 ,
z 2
3z 2 14z 14
K(4) c2
|z 4 3
z 2
3z 2 14z 14
c0 lim 2
3
z
z 6z 8
U(z)
a z
b z
i 0
m
j0
c0 limU(z)
z
cj Upj (pj )
cj
j 1
z pj
U(z) c0
define
U(z) c0
c1
c
2
z 2 z 4
3z 2 14z 14
c0 lim U(z) lim 2
3
z
z
z 6z 8
3z 2 14z 14
z 2 6z 8
3z 2 14z 14
z-4
U2(z) (z 2)
3z 14z 14
z 2 6z 8
3z 2 14z 14
z-2
U4(z) (z 4)
U(z) 3
1
3
z 2 z 4
3 2 2 14 2 14
c1 U2(2)
1
2-4
c2 U4(4)
3 4 2 14 4 14
3
4-2
k0
3,
u(k) k 1
k 1
2 3 4 , k 0
Z
Y(z) a1z 1Y(z) ... an z nY(z) b1z 1U(z) ... bm z mU(z)
b1z 1 ... bm z m
Y(z)
U(z)
1
n
1 a1z ... an z
Z-1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y(k-1)+0.6u(k-1)
Z
Y(z) 0.4z 1Y(z) 0.6z 1U(z)
U(z)
1
1 0.8z1
0.6z1
0.6z-1
Y(z)
U(z)
1 0.4z1
(1- 0.4z-1)(1- 0.8z-1)
Y(z)
0.6
G(z)
-1
U(z) z 0.4
If
b2 4ac 0,
b b 2 4ac
z
2a
b b 2 4ac
b b 2 4ac
az bz c a(z
)(z
)
2a
2a
2
If b2 4ac 0,
b i 4ac b 2
b i 4ac b 2
az bz c a(z
)(z
)
2a
2a
2
Or in polar coordinates,
az 2 bz c a(z r cos ir sin )(z r cos ir sin )
cj
j 1
z pj
cj
j 1
z pj
Y(z) c0
c0
Time domain
c
c'
Z-1
m
An Example
Z-Domain: Complex Poles
2
Time-Domain:
Exponentially Modulated Sin/Cos
1.5
z2 z
Y(z) 2
z 0.8z 0.64
k
k
y(k) 2 0.8 k sin( ) 0.8 k cos( )
3
3
0.5
-0.5
-1
10
12
14
16
18
20
Poles Everywhere
Observations
Using poles to characterize a signal
The smaller is |r|, the faster converges the signal
|r| < 1, converge
|r| > 1, does not converge, unbounded
|r|=1?
Change Angles
1
1
0.8
0.8
0.6
0.8
0.4
0.6
0.2
0.4
0.2
0.6
-0.2
-0.4
-0.2
0.2
-0.6
-0.4
-0.8
-0.2
-1
0.4
-0.6
-0.8
0
10
15
-1
-0.4
10
15
1
-0.6
0.8
-0.8
0.6
-1
10
0.4
15
0.2
0.8
0
0.6
-0.2
0.4
-0.4
0.2
Im
0
-0.2
-0.4
-0.6
-0.8
-1
10
15
-0.6
-0.8
1
-1
10
0.8
15
0.6
0.8
0.4
0.6
0.2
0.4
0.2
-0.2
0
-0.4
-0.2
-0.6
-0.4
-0.8
-0.6
-1
-0.8
-1
10
10
15
15
-0.9
0.8
0.6
0.4
0.2
0
0.9
Re
1
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.2
-0.6
-0.4
-0.8
-1
-0.6
10
15
-0.8
-1
10
15
0.8
0.8
0.6
0.6
0.4
0.8
0.2
0.6
0.4
-0.2
0.2
-0.4
-0.6
-0.2
-0.8
-0.8
-0.4
-1
-1
-0.6
0.4
0.2
0
-0.2
-0.4
10
-0.6
3
0
10
15
15
-0.8
-1
10
15
12
0
-1
10
1
0.8
Im
0.6
0.4
0.2
0
-2
-0.2
-3
10
12
-0.4
-0.6
-0.8
-1
10
15
Re
1
-2
-4
-6
10
12
14
14
Steady-State Analysis
If a signal finally converges, what value does
it converge to?
When it does not converge
Any |pj| is greater than 1
Any |r| is greater than or equal to 1
-1
z
m
y(k) c0 uimpuls e(k) c j pkj -1 br k sin k dr k cos k (1 z 1)2
j 1
An Example
2z
z
3z
z 1 z 0.5 z 0.9
u(k) 2 0.5k 3 (0.9)k
U(z)
converge to 2
-1
10
20
30
40
50
60
0.11z
0.11z
Y ( z) 2
-0.2
-0.25
-0.3
-0.35
0
10
k
15
Bounded Signals
5
5
a=0.4
5
a=0.9
a=1.2
0.5
-5
-5
-5
-0.5
5
a=-0.4
5
a=-0.9
a=-1.2
0.8
-1
0
1
0.5
0.6
-0.5
0.4
-5
0
-5
10 0
0.2
0
0
10
-5
10 0
5
15
20
10
-1
0
10
20
30
40
50
60
70
BIBO Stability
Bounded Input Bounded Output
Stability
If the Input is bounded, we want the
Output is bounded, too
If the Input is unbounded, its okay for the
Output to be unbounded
Limit Cycle
Output constrained,
But oscillating
Bad!
Imagine CPU utilization
Constantly switching from
1 to 0, 0 to 1,
y(k+1) = 1
y(k+1) = KP u(k)
y(k+1) = y(k) + u(k)
I Controller
M/M/1/K
Mystery
Time domain Eq
Transfer Function
Poles
Unity
y(k+1) = 1
G(z) = 1
N/A
P
Controller
y(k+1) = KP u(k)
G(z) = KP
N/A
Integrator
G(z) = 1/(z-1)
z=1
G(z) = KI/(z-1)
z=1
Mystery
G(z) = 2.3/(z+1.3)
z = -1.3
Example
u (k)=0.8k
LTI: y(k)=0.4y(k-1)+0.6u(k-1)
y (k)?
Z
Y(z) 0.4z 1Y(z) 0.6z 1U(z)
U(z)
1
1 0.8z1
0.6z1
0.6z-1
Y(z)
U(z)
1
1 0.4z
(1- 0.4z-1)(1- 0.8z-1)
Y(z)
0.6
G(z)
U(z) z 0.4
Final Value
Theorem
z 1
z
lim(z 1)G(z)
z 1
z 1
lim zG(z)
z 1
G(1)
Unit Step
Input
Z
b1z 1 ... bm z m
Y(z)
U(z)
1
n
1 a1z ... an z
z=1
b1 ... bm
yss
1 a1 ... an
Transfer
Function
Example
u (k)=1
LTI: y(k)=0.4y(k-1)+0.6u(k-1)
y (k)?
Z
Y(z) 0.4z 1Y(z) 0.6z 1U(z)
U(z)
1
1 z 1
0.6z1
0.6z-1
Y(z)
U(z)
1
1 0.4z
(1- 0.4z-1)(1- z -1)
Y(z)
0.6
G(z)
U(z) z 0.4
Yss? G(1)=1, so yss=1
System Orders
System Order = Number of Poles
The higher the system order is, the
more complex the system behavior is
Some poles are more important than
others
Why?
If |pi|<|pj|,|pi/pj|k-1 approaches 0 when
k is large (pik-1 converges faster than pjk-1)
m
Setting time
First order system
Higher order systems
ks
4
ln|p|
Remember
This!
p 0.7
k
4
4
11
ln|0.7| 0.36
1
0.9
0.8
y(k)=0.7
0.7
0.6
0.5
0.4
0.3
y(11)=0.0198
0.2
0.1
0
10
12
0.1
z 0.9
0.8
0.6
0.4
0.2
0
10
15
20
25
30
0.09
(z 0.9)(z - 0.1)
0.8
0.6
0.4
0.2
0
10
15
20
25
30
1
0.8
0.07
(z 0.9)(z - 0.3)
0.6
0.4
0.2
0
10
15
20
25
30
1
0.8
0.063
(z 0.9)(z - 0.3)(z - 0.1)
0.6
0.4
0.2
0
10
15
20
25
30
Dominant
Pole: 0.9
1.9
z 0.9
1
0.5
0
10
15
20
25
30
2
1.5
1.71
(z 0.9)(z - 0.1)
1
0.5
0
10
15
20
25
30
2
1.5
1
0.5
0
10
15
20
25
30
1.33
(z 0.9)(z - 0.3)
2
1.5
1.197
(z 0.9)(z - 0.3)(z - 0.1)
1
0.5
0
10
15
20
25
30
Dominant
Pole: -0.9
Dominant Pole
We can approximate a high-order
system with a first-order system with
the dominant pole of the high-order
system
IF the dominant pole DOES exist
Can give a pretty good estimation of
settling time
Can give a reasonable estimate of the
maximum overshoot
No Dominant Pole
Step Response
5
pole=-0.9
pole=-0.7
poles=-0.9, -0.7
4
3
Amplitude
1
0
-1
-2
-3
10
15
20
25
Time (sec)
30
35
40
45
50
G(1)(1 p' )
z p'
4
ks
ln|p'|
Summary
Signals/Systems