ELE8311 - Module 3 - Transfer Function
ELE8311 - Module 3 - Transfer Function
Transfer function 𝐺𝐺(𝑧𝑧) for discrete-time systems can also be derived from their difference
equations. In addition, poles and zeros of 𝐺𝐺(𝑧𝑧) are defined in the same way as in continuous-
time domain.
If 𝑁𝑁(𝑧𝑧) and 𝐷𝐷(𝑧𝑧) share no common factors, then the roots of 𝑁𝑁(𝑧𝑧) are the zeros and the
roots of 𝐷𝐷(𝑧𝑧) are the poles of 𝐺𝐺(𝑧𝑧).
A. Parallel systems:
B. Series systems:
C. Feedback loop
𝐺𝐺(𝑧𝑧)𝐺𝐺𝑐𝑐 (𝑧𝑧)
𝑌𝑌(𝑧𝑧) = 𝑅𝑅(𝑧𝑧)
1 + 𝐺𝐺(𝑧𝑧)𝐺𝐺𝑐𝑐 (𝑧𝑧)
Hence, the closed loop transfer function 𝑇𝑇(𝑧𝑧) is 𝑌𝑌(𝑧𝑧). Also, the relation between the response
and system error is:
𝐸𝐸(𝑧𝑧) = 𝑆𝑆(𝑧𝑧)𝑅𝑅(𝑧𝑧)
where
1
𝑆𝑆(𝑧𝑧) = .
1 + 𝐺𝐺(𝑧𝑧)𝐺𝐺𝑐𝑐 (𝑧𝑧)
Similarly, for the systems in Fig. 3.2 (a), (b) and (c), we have:
Example 3.1
Determine the equivalent sampled response sequence and z-transfer function for the cascade
of the two analog systems shown in Fig. 3.3 when
1 2
𝐻𝐻1 (𝑠𝑠) = , 𝐻𝐻2 (𝑠𝑠) =
(𝑠𝑠 + 2) (𝑠𝑠 + 4)
Solution
i. When no sampler between the systems in Fig. 3.3, the overall transfer function is
2
𝐻𝐻(𝑠𝑠) = 𝐻𝐻1 (𝑠𝑠)𝐻𝐻2 (𝑠𝑠) =
(𝑠𝑠 + 2)(𝑠𝑠 + 4)
1 1
𝐻𝐻(𝑠𝑠) = −
𝑠𝑠 + 2 𝑠𝑠 + 4
ii. When the analog transfer functions in Fig. 3.3 are separated by a sampler, then
each has a z-transfer function given by:
𝑧𝑧 2𝑧𝑧
𝐻𝐻1 (𝑧𝑧) = , 𝐻𝐻2 (𝑧𝑧) =
𝑧𝑧 − 𝑒𝑒 −2𝑇𝑇 𝑧𝑧 − 𝑒𝑒 −4𝑇𝑇
3
ELE8311: Transfer Function
2𝑧𝑧 2
𝐻𝐻(𝑧𝑧) =
(𝑧𝑧 − 𝑒𝑒 −2𝑇𝑇 )(𝑧𝑧 − 𝑒𝑒 −4𝑇𝑇 )
2 𝑒𝑒 −2𝑇𝑇 𝑧𝑧 𝑒𝑒 −4𝑇𝑇 𝑧𝑧
𝐻𝐻(𝑧𝑧) = −2𝑇𝑇 � − �
𝑒𝑒 − 𝑒𝑒 −4𝑇𝑇 𝑧𝑧 − 𝑒𝑒 −2𝑇𝑇 𝑧𝑧 − 𝑒𝑒 −4𝑇𝑇
2
ℎ(𝑘𝑘𝑘𝑘) = [𝑒𝑒 −2𝑇𝑇 𝑒𝑒 −2𝑘𝑘𝑘𝑘 − 𝑒𝑒 −4𝑇𝑇 𝑒𝑒 −4𝑘𝑘𝑘𝑘 ]
𝑒𝑒 −2𝑇𝑇 − 𝑒𝑒 −4𝑇𝑇
2
= �𝑒𝑒 −2(𝑘𝑘+1)𝑇𝑇 − 𝑒𝑒 −4(𝑘𝑘+1)𝑇𝑇 �, 𝑘𝑘 = 0,1,2, …
𝑒𝑒 −2𝑇𝑇 − 𝑒𝑒 −4𝑇𝑇
The transfer function of the zoh is obtained by evaluating the difference between the Laplace
transform of a unit step and the time delay theorem, i.e.
1 𝑒𝑒 −𝑠𝑠𝑠𝑠
𝐿𝐿{1(𝑡𝑡)} = , 𝐿𝐿{1(𝑡𝑡 − 𝑇𝑇)} =
𝑠𝑠 𝑠𝑠
1 − 𝑒𝑒 −𝑠𝑠𝑠𝑠
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑠𝑠) =
𝑠𝑠
Hence, for an analog plant 𝐺𝐺(𝑠𝑠) sampled with a zoh 𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑠𝑠), the overall transfer function
𝐺𝐺𝑍𝑍𝑍𝑍 (𝑠𝑠) is
𝐺𝐺(𝑠𝑠)
𝐺𝐺𝑍𝑍𝑍𝑍 (𝑠𝑠) = 𝐺𝐺(𝑠𝑠)𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑠𝑠) = (1 − 𝑒𝑒 −𝑠𝑠𝑠𝑠 )
𝑠𝑠
𝐺𝐺(𝑠𝑠)
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑠𝑠) = (1 − 𝑧𝑧 −1 )𝑍𝑍 � � (3.1)
𝑠𝑠
4
ELE8311: Transfer Function
Example 3.2
Assume the cruise control of an automobile shown in Fig. 3.4 is represented by the following
model:
where, 𝑢𝑢 is the input force, 𝑣𝑣 is the velocity of the car, and 𝑏𝑏 is the viscous friction coefficient.
Find the discrete transfer function given a ZOH sampler.
Solution
From the mathematical model of the system, we have by taking the L transforms:
𝑉𝑉(𝑠𝑠) 1
𝐺𝐺(𝑠𝑠) = =
𝑈𝑈(𝑠𝑠) 𝑀𝑀𝑀𝑀 + 𝑏𝑏
𝐾𝐾 𝐾𝐾/𝜏𝜏
𝐺𝐺(𝑠𝑠) = =
𝜏𝜏𝜏𝜏 + 1 𝑠𝑠 + 1/𝜏𝜏
𝐺𝐺(𝑠𝑠)
where 𝐾𝐾 = 1/𝑏𝑏 and 𝜏𝜏 = 𝑀𝑀/𝑏𝑏. Then, partial fraction expansion of yields
𝑠𝑠
𝐺𝐺(𝑠𝑠) 𝐾𝐾 𝐴𝐴 𝐵𝐵
= � �� + �
𝑠𝑠 𝜏𝜏 𝑠𝑠 𝑠𝑠 + 1
𝜏𝜏
𝐺𝐺(𝑠𝑠) 𝐾𝐾 𝜏𝜏 𝜏𝜏
= � �� − �
𝑠𝑠 𝜏𝜏 𝑠𝑠 𝑠𝑠 + 1
𝜏𝜏
Hence, the desired z-transfer function is obtained from equation (3.1) as:
5
ELE8311: Transfer Function
𝐾𝐾 𝜏𝜏 𝜏𝜏
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = (1 − 𝑧𝑧 −1 )𝑍𝑍 �� � � − ��
𝜏𝜏 𝑠𝑠 𝑠𝑠 + 1
𝜏𝜏
𝑇𝑇
𝑧𝑧 − 1 2𝑧𝑧 − �1 + 𝑒𝑒 −𝜏𝜏 �
= 𝐾𝐾 �1 + 𝑇𝑇 � = 𝐾𝐾 � 𝑇𝑇 �.
− −
𝑧𝑧 − 𝑒𝑒 𝜏𝜏 𝑧𝑧 − 𝑒𝑒 𝜏𝜏
Example 3.3
Find the 𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) for the series RL circuit with the inductor as the output.
Solution
1
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = (1 − 𝑧𝑧 −1 )𝑍𝑍 � �
1
𝑠𝑠 + 𝜏𝜏
𝑧𝑧 − 1 𝑧𝑧 𝑧𝑧 − 1
= × 𝑇𝑇 = 𝑇𝑇
𝑧𝑧
𝑧𝑧 − 𝑒𝑒 −𝜏𝜏 𝑧𝑧 − 𝑒𝑒 −𝜏𝜏
Exercise 3.1
Determine the 𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) for the vehicle position control system shown Fig. 3.3, where, 𝑢𝑢 is the
input force, 𝑦𝑦 is the velocity of the car, and 𝑏𝑏 is the viscous friction coefficient.
1 𝜏𝜏(𝑧𝑧−1)
Ans: 𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = 𝐾𝐾 �𝑧𝑧−1 − 𝜏𝜏 + 𝑇𝑇 �.
−
𝑧𝑧−𝑒𝑒 𝜏𝜏
Exercise 3.2
6
ELE8311: Transfer Function
𝑑𝑑𝑑𝑑(𝑡𝑡)
𝐽𝐽 𝜃𝜃̈(𝑡𝑡) + 𝑏𝑏 𝜃𝜃̇ (𝑡𝑡) = 𝐾𝐾𝑡𝑡 𝑖𝑖(𝑡𝑡), 𝐿𝐿 + 𝑅𝑅𝑅𝑅(𝑡𝑡) = 𝑢𝑢(𝑡𝑡) − 𝐾𝐾𝑒𝑒 𝜃𝜃̇(𝑡𝑡), 𝑦𝑦(𝑡𝑡) = 𝜃𝜃(𝑡𝑡);
𝑑𝑑𝑑𝑑
where the system output 𝑦𝑦 is the position of the shaft 𝜃𝜃, I is the armature current, 𝑢𝑢 is the
source voltage (system’s input), 𝐽𝐽 is the inertia of the motor, 𝑏𝑏 is the viscous friction
coefficient, 𝐾𝐾𝑡𝑡 is the armature constant, 𝐾𝐾𝑒𝑒 is the motor torque constant, 𝑅𝑅 is the electric
resistance and 𝐿𝐿 is inductance.
𝑌𝑌(𝑠𝑠) 𝐾𝐾 𝐾𝐾
Hint: the transfer function is 𝐺𝐺(𝑠𝑠) = 𝑡𝑡
= 𝑠𝑠[(𝐽𝐽𝐽𝐽 +𝑏𝑏)(𝐿𝐿𝐿𝐿+𝑅𝑅)+𝐾𝐾 = 𝑠𝑠(𝑠𝑠+𝑝𝑝 .
𝑈𝑈(𝑠𝑠) 𝐾𝐾 ]
𝑡𝑡 𝑒𝑒 1 )(𝑠𝑠+𝑝𝑝 2 )
Ans:
1 𝑝𝑝1 + 𝑝𝑝2 1
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = 𝐾𝐾 � − 2 2 + 2
𝑝𝑝1 𝑝𝑝2 (𝑧𝑧 − 1) 𝑝𝑝1 𝑝𝑝2 𝑝𝑝1 (𝑝𝑝2 − 𝑝𝑝1 )(𝑧𝑧 − 1)(𝑧𝑧 − 𝑒𝑒 −𝑝𝑝 1 𝑇𝑇 )
1
− 2 �.
𝑝𝑝2 (𝑝𝑝2 − 𝑝𝑝1 )(𝑧𝑧 − 1)(𝑧𝑧 − 𝑒𝑒 −𝑝𝑝 2 𝑇𝑇 )
For discrete-time systems, the time response is the solution of the difference equation
governing the system. For LTI systems, the response consists of the forced or input
component and that due to initial conditions. While the input response for a given discrete
system is derived via a convolution sum of its input and its response to a unit impulse signal,
the response can also be obtained by algebraic product of their z-transforms.
Procedure:
Example 3.4
For the given discrete-time signal, find the impulse response ℎ(𝑘𝑘).
Solution:
7
ELE8311: Transfer Function
At 𝑦𝑦(0) = 0, we have
𝑌𝑌(𝑧𝑧) 1
𝐻𝐻(𝑧𝑧) = =
𝑈𝑈(𝑧𝑧) 𝑧𝑧 − 0.5
(0.5)𝑘𝑘−1 , 𝑘𝑘 = 1,2,3, …
ℎ(𝑘𝑘) = �
0, 𝑘𝑘 < 1
Exercise 3.3
Derive the system transfer function and its response due a unit-step input.
𝑧𝑧 𝑘𝑘 + 1, 𝑘𝑘 = 0,1,2,3 …
Ans: 𝐹𝐹(𝑧𝑧) = (𝑧𝑧−1)2 and 𝑦𝑦(𝑘𝑘) = �
0, 𝑘𝑘 < 0
Example 3.5
5(𝑠𝑠 + 4)
𝐺𝐺(𝑠𝑠) =
𝑠𝑠(𝑠𝑠 + 1)(𝑠𝑠 + 2)
Solution
5(𝑠𝑠 + 4) 10 15 5
𝑍𝑍 � � = 𝑍𝑍 � + + �
𝑠𝑠(𝑠𝑠 + 1)(𝑠𝑠 + 2) 𝑠𝑠 𝑠𝑠 + 1 𝑠𝑠 + 2
Example 3.6
Determine the output response for the sampled system shown in Fig. 3.5. Assume 𝑘𝑘 = 10,
𝑇𝑇 = 0.5s for a unit step input 𝑟𝑟(𝑡𝑡).
Fig. 3.5
8
ELE8311: Transfer Function
Solution
𝐶𝐶(𝑘𝑘) 𝐾𝐾(5𝑠𝑠 + 1)
=
𝑒𝑒 ∗ (𝑘𝑘) 𝑠𝑠(2𝑠𝑠 + 1)
Therefore,
Therefore,
9
ELE8311: Transfer Function
41 4
𝑐𝑐(𝑘𝑘) = 1.75 − 𝑐𝑐(𝑘𝑘 − 1) − 𝑐𝑐(𝑘𝑘 − 2).
60 60
Then, assuming 𝑐𝑐(−1) = 0, 𝑐𝑐(0) = 0, the subsequent response 𝑐𝑐(𝑘𝑘) of the system can be
obtained recursively as follows:
41 4
𝑐𝑐(1) = 1.75 − 𝑐𝑐(0) − 𝑐𝑐(−1) = 1.75
60 60
41 4
𝑐𝑐(2) = 1.75 − 𝑐𝑐(1) − 𝑐𝑐(0) ≈ 0.554
60 60
41 4
∴ 𝑐𝑐(𝑚𝑚) = 1.75 − 𝑐𝑐(𝑚𝑚 − 1) − 𝑐𝑐(𝑚𝑚 − 2).
60 60
For a closed-loop block diagram shown in Fig. 3.6, let the 𝐶𝐶(𝑧𝑧) block represent the
comparator and digital controller, and the 𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) block represents the ADC-analog
subsystem-DAC transfer function. Then for any input 𝑅𝑅(𝑧𝑧), if the output response is 𝑌𝑌(𝑧𝑧),
similar to the analog systems, the closed-loop transfer function for the system 𝐺𝐺𝑑𝑑 (𝑧𝑧) is given
by:
𝐶𝐶(𝑧𝑧)𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧)
𝐺𝐺𝑑𝑑 (𝑧𝑧) =
1 + 𝐶𝐶(𝑧𝑧)𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧)
1 + 𝐶𝐶(𝑧𝑧)𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = 0.
The roots of the characteristics equation are the closed-loop system poles which can be
selected for desired time response specifications.
Note, however, that for some digital systems, the transfer function may not be completely
expressed as a function without the input. The following example demonstrates such cases.
10
ELE8311: Transfer Function
Example 3.7
Find the Laplace transform of the analog and sampled output for the system shown in Fig.
3.7.
Fig. 3.7
Solution:
𝑋𝑋(𝑠𝑠) = 𝐻𝐻(𝑠𝑠)𝐺𝐺(𝑠𝑠)𝐷𝐷(𝑠𝑠)𝐸𝐸(𝑠𝑠)
Thus, the impulse-sampled variable 𝑥𝑥 ∗ (𝑡𝑡) has the following Laplace transform
Notice that now, several components in the above expression cannot be separated, thus
(𝐻𝐻𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
𝑋𝑋 ∗ (𝑠𝑠) =
1 + (𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
(𝐻𝐻𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
𝐸𝐸(𝑠𝑠) = 𝑅𝑅(𝑠𝑠) −
1 + (𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
Now, from the block diagram, the analog output 𝑌𝑌(𝑠𝑠) = 𝐺𝐺(𝑠𝑠)𝐷𝐷(𝑠𝑠)𝐸𝐸(𝑠𝑠), which is
(𝐻𝐻𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
𝑌𝑌(𝑠𝑠) = 𝐺𝐺(𝑠𝑠)𝐷𝐷(𝑠𝑠) �𝑅𝑅(𝑠𝑠) − �
1 + (𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
11
ELE8311: Transfer Function
(𝐻𝐻𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
𝑌𝑌(𝑠𝑠) = (𝐺𝐺𝐺𝐺𝐺𝐺)∗ (𝑠𝑠) − (𝐺𝐺𝐺𝐺)∗ (𝑠𝑠)
1 + (𝐻𝐻𝐻𝐻𝐻𝐻)∗ (𝑠𝑠)
(𝐻𝐻𝐻𝐻𝐻𝐻𝐻𝐻)(𝑧𝑧)
𝑌𝑌(𝑧𝑧) = (𝐺𝐺𝐺𝐺𝐺𝐺)(𝑧𝑧) − (𝐺𝐺𝐺𝐺)(𝑧𝑧) .
1 + (𝐻𝐻𝐻𝐻𝐻𝐻)(𝑧𝑧)
The above equation demonstrates that there is no expression for the transfer that excludes
the input.
Those variables present in the system response which are not originally part of the system
model are considered as disturbance variables. Disturbance signals can be deterministic, such
as load torque in a position control system, or stochastic, such as sensor or actuator noise.
However, disturbances are generally analog and are inputs to the analog subsystem in a
digital control loop.
Consider the system shown in Fig. 3.8, where the disturbance input 𝐷𝐷(𝑠𝑠) has an associated
transfer function 𝐺𝐺𝑑𝑑 (𝑠𝑠). Note that since the system is linear, the reference input can be
assumed to be zero.
In z-domain, we have
(𝐺𝐺𝐺𝐺𝑑𝑑 𝐷𝐷)(𝑧𝑧)
𝑌𝑌(𝑧𝑧) = (3.2)
1 + (𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 )(𝑧𝑧)𝐶𝐶(𝑧𝑧)
12
ELE8311: Transfer Function
Example 3.8:
𝐾𝐾𝑝𝑝 1
𝐺𝐺(𝑠𝑠) = , 𝐺𝐺𝑑𝑑 (𝑠𝑠) = , 𝐶𝐶(𝑧𝑧) = 𝐾𝐾𝑐𝑐 .
𝑠𝑠 + 1 𝑠𝑠
Determine the steady-state response of the system to an impulse disturbance of strength 𝐴𝐴.
Solution
Let’s evaluate the forward gain along the disturbance path as:
𝐾𝐾𝑝𝑝 𝐴𝐴 1 1
𝐺𝐺(𝑠𝑠)𝐺𝐺𝑑𝑑 (𝑠𝑠)𝐷𝐷(𝑠𝑠) = = 𝐾𝐾𝑝𝑝 𝐴𝐴 � − �
𝑠𝑠(𝑠𝑠 + 1) 𝑠𝑠 𝑠𝑠 + 1
𝐺𝐺(𝑠𝑠)
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = (1 − 𝑧𝑧 −1 )𝑍𝑍 � �,
𝑠𝑠
Therefore, we have
1 − 𝑒𝑒 −𝑇𝑇
𝐺𝐺𝑍𝑍𝑍𝑍𝑍𝑍 (𝑧𝑧) = 𝐾𝐾𝑝𝑝
𝑧𝑧 − 𝑒𝑒 −𝑇𝑇
𝐾𝐾𝑝𝑝 𝐴𝐴
𝑦𝑦(∞) = lim(𝑧𝑧 − 1)𝑌𝑌(𝑧𝑧) = .
z=1 1 + 𝐾𝐾𝑐𝑐 𝐾𝐾𝑝𝑝
Notice that similar to analog systems, increasing the controller gain reduces the error due to
the disturbance.
13