Yeah
Yeah
In this lecture, we lead you through a study of the basics of control system.
After completing the chapter, you should be able to
Textbook
1.1 INTRODUCTION
1
Basic Electronics 2
Output
response Output
Actuating Process
device
Actual
Difference or Actuating Error Output
Response
Controller Process
Desired
Output
Response
Measurement Device
Thermometer
A/D Interface
Converter I
N
P
U
T
Relay Amplifier Interface
Battery
Turntable
DC Amplifier DC Motor
Desired
Actual
Speed Control
Speed
Device Actuator Process
(Amplifier) (DC Motor) (Turntable)
Battery
Turntable
DC Amplifier DC Motor
Tachometer
Desired Actual
Head Head
Position Error Position
Control Actuator and
Device Read Arm
Sensor
A hard disk uses round, flat disks called platters, coated on both sides with a
special media material designed to store information in the form of magnetic
patterns. The platters are mounted by cutting a hole in the center and stacking
them onto a spindle. The platters rotate at high speed, driven by a special spindle
motor connected to the spindle. Special electromagnetic read/write devices called
heads are mounted onto sliders and used to either record information onto the
disk or read information from it. The sliders are mounted onto arms, all of which
are mechanically connected into a single assembly and positioned over the
surface of the disk by a device called an actuator. A logic board controls the
activity of the other components and communicates with the rest of the computer.
For details see Figure 8 and Figure 9.
Basic Electronics 7
Control Gun
System Dynamics
Exercises
E1.1
A precise optical signal source can control the output power level to within 1%.
A laser is controlled by an input current to yield the output power. A
microprocessor controls the input current to the laser. The microprocessor
compares the desired power level with a measured signal proportional to the laser
power output obtained from a sensor. Draw the block diagram representing the
closed-loop control system.
Sensor
(Measurement)
Measured
power
Basic Electronics 11
E1.6
Automated highways may be prevalent in the next decade. Consider two
automated highway lanes merging into a single lane, and describe a control
system that ensures that the vehicle merge with a prescribed gap between two
vehicles.
Sensor
(Radar)
Measured gap
Basic Electronics 12
Problems
P1.1
Many luxury automobiles have thermostatically controlled air-conditioning
systems for the comfort of the passengers. Sketch a block diagram of an air-
conditioning system where the driver sets the desired interior temperature on a
dashboard panel.
Sensor
(Measurement)
Measured
temperature
Basic Electronics 13
P1.10
The role of air traffic control systems is increasing as airplane traffic increases at
busy airports. Engineers are developing air traffic control systems and collision
avoidance systems using the Global Positioning System (GPS) navigation
satellites. GPS allows each aircraft to know its position in the airspace landing
corridor very precisely. Sketch a block diagram depicting how an air traffic
controller might utilize GPS for aircraft collision avoidance.
Allerons,
elevators,
Autopilot rubber, and
Aircraft
(controller) (Process)
Engine Flight path
Desired flight power
Path from
traffic
controller
P1.21
The potential of employing two or more helicopters for transporting payloads that
are too heavy for a single helicopter is a well-addressed issue in the civil and
military rotorcraft design arenas. A case of a multilift arrangement wherein two
helicopters jointly transport payloads has been named twin lift as shown in the
following figure. Develop the block diagram describing the pilots’ action, the
position of each helicopter, and the position of the load.
1 2
Load
Measured separation
distance Radar
(Measurement)
Desired separation
distance
Separation
distance
Helicopter
Pilot
Altitude
Desired altitude
Altimeter
(Measurement)
Measured altitude
Basic Electronics 15
Design Problems
DP1.2
Many cars are fitted with cruise control that, at the press of a button,
automatically maintains a set speed. In this way, the driver can cruise at a speed
limit or economic speed without continually checking the speedmeter. Design a
feedback control in block diagram for a cruise control system.
Controller
Electric Auto/
1/k motor Valve Engine k
Desired Desired
Speed Shaft
of auto speed
set by Drive shaft
driver speed
Time reversal (also known as reflection) maps the input signal x(t) to
the output signal y(t) as given by
y(t) = x(−t).
Geometrically, the output signal y(t) is a reflection of the input signal x(t)
about the (vertical) line t = 0.
x(t) x(−t)
3 3
2 2
1 1
t t
−3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3
Time scaling (also called dilation) maps the input signal x(t) to the
output signal y(t) as given by
y(t) = x(at),
x(t) x(2t)
1 1
t t
−2 −1 0 1 2 −2 −1 0 1 2
x(t/2) x(−t)
1 1
t t
−2 −1 0 1 2 −2 −1 0 1 2
Time shifting (also called translation) maps the input signal x(t) to the
output signal y(t) as given by
x(t)
t
−3 −2 −1 0 1 2 3
x(t − 1) x(t + 1)
3 3
2 2
1 1
t t
−3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3
Consider a transformation that maps the input signal x(t) to the output
signal y(t) as given by
− 21 1
2
t 3 t
−1 1 2 3 −2 −1 1 2 2
Given x(t) as shown
−1 −1
below, find x(2t − 1).
x(t)
1
−2 −1 1 2
t time scale by 2 and then time shift by 12
−1
q(t) = x(2t) q(t − 1/2) = x(2(t − 1/2)
= x(2t − 1)
1
1
t − 21 1
2
−2 −1 1 2 3 t
−2 −1 1 2 2
−1 −1
Amplitude scaling maps the input signal x(t) to the output signal y(t) as
given by
y(t) = ax(t),
where a is a real number.
Geometrically, the output signal y(t) is expanded/compressed in
amplitude and/or reflected about the time axis.
x(t) 2x(t)
2 2
1 1
t t
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−1 −1
−2 −2
1 x(t) −2x(t)
2
2 2
1 1
t t
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−1 −1
−2 −2
Amplitude shifting maps the input signal x(t) to the output signal y(t) as
given by
y(t) = x(t) + b,
1 1
t t
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−1 −1
−2 −2
y(t) = ax(t) + b,
What is a transform?
A mapping of a mathematical function from one domain to
another
A change in perspective not a change of the function
Laplace Transform:
∞
ℒ 𝑔𝑔 𝑡𝑡 = 𝐺𝐺 𝑠𝑠 = ∫0 𝑔𝑔 𝑡𝑡 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑 (1)
= 𝛼𝛼 � ℒ 𝑔𝑔1 𝑡𝑡 + 𝛽𝛽 � ℒ 𝑔𝑔2 𝑡𝑡
∞ ∞
ℒ 𝑔𝑔̇ 𝑡𝑡 = 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑔𝑔 𝑡𝑡 � − � 𝑔𝑔 𝑡𝑡 −𝑠𝑠𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑
0 0
∞
= 0 − 𝑔𝑔 0 + 𝑠𝑠 � 𝑔𝑔 𝑡𝑡 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑 = −𝑔𝑔 0 + 𝑠𝑠𝑠 𝑔𝑔 𝑡𝑡
0
0, 𝑡𝑡 < 0
𝑢𝑢 𝑡𝑡 = �
1, 𝑡𝑡 ≥ 0
1 −𝑠𝑠𝑠𝑠 ∞ 1 1
= − 𝑒𝑒 � = 0 − − =
𝑠𝑠 0 𝑠𝑠 𝑠𝑠
0, 𝑡𝑡 < 0
𝑔𝑔 𝑡𝑡 = �
𝑡𝑡, 𝑡𝑡 ≥ 0
𝑔𝑔 𝑡𝑡 = 𝑒𝑒 −𝑎𝑎𝑎𝑎
Exponentials are common components of the
responses of dynamic systems
∞ ∞
ℒ 𝑒𝑒 −𝑎𝑎𝑎𝑎 = � 𝑒𝑒 −𝑎𝑎𝑎𝑎 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑 = � 𝑒𝑒 −(𝑠𝑠+𝑎𝑎)𝑡𝑡 𝑑𝑑𝑑𝑑
0 0
𝑒𝑒 − 𝑠𝑠+𝑎𝑎 𝑡𝑡 ∞ 1
=− � =0− −
𝑠𝑠 + 𝑎𝑎 0 𝑠𝑠 + 𝑎𝑎
−𝑎𝑎𝑎𝑎 1
ℒ 𝑒𝑒 = (9)
𝑠𝑠+𝑎𝑎
1 ∞ 𝑗𝑗𝑗𝑗𝑡𝑡
ℒ sin 𝜔𝜔𝜔𝜔 = � 𝑒𝑒 − 𝑒𝑒 −𝑗𝑗𝑗𝑗𝑡𝑡 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑑𝑑𝑑𝑑
2𝑗𝑗 0
1 ∞ − 𝑠𝑠−𝑗𝑗𝑗𝑗 𝑡𝑡
= � 𝑒𝑒 − 𝑒𝑒 − 𝑠𝑠+𝑗𝑗𝑗𝑗 𝑡𝑡
𝑑𝑑𝑑𝑑
2𝑗𝑗 0
1 ∞ − 𝑠𝑠−𝑗𝑗𝑗𝑗 𝑡𝑡
1 ∞
= � 𝑒𝑒 𝑑𝑑𝑑𝑑 − � 𝑒𝑒 − 𝑠𝑠+𝑗𝑗𝑗𝑗 𝑡𝑡
𝑑𝑑𝑑𝑑
2𝑗𝑗 0 2𝑗𝑗 0
1 𝑒𝑒 − 𝑠𝑠−𝑗𝑗𝑗𝑗 𝑡𝑡 ∞ 1 𝑒𝑒 − 𝑠𝑠+𝑗𝑗𝑗𝑗 𝑡𝑡 ∞
= � − �
2𝑗𝑗 − 𝑠𝑠 − 𝑗𝑗𝑗𝑗 0 2𝑗𝑗 − 𝑠𝑠 + 𝑗𝑗𝑗𝑗 0
1 1 1 1 1 2𝑗𝑗𝑗𝑗
= 0+ − 0+ =
2𝑗𝑗 𝑠𝑠 − 𝑗𝑗𝑗𝑗 2𝑗𝑗 𝑠𝑠 + 𝑗𝑗𝑗𝑗 2𝑗𝑗 𝑠𝑠 2 + 𝜔𝜔 2
𝜔𝜔
ℒ sin 𝜔𝜔𝜔𝜔 = (10)
𝑠𝑠2 +𝜔𝜔2
K. Webb ESE 330
Sinusoidal functions
23
1
We’ve seen that ℒ 𝑒𝑒 −𝑎𝑎𝑎𝑎 = 𝑠𝑠+𝑎𝑎
ℒ 𝑔𝑔 𝑡𝑡 𝑒𝑒 −𝑎𝑎𝑎𝑎 = 𝐺𝐺 𝑠𝑠 + 𝑎𝑎 (12)
Consider a time-domain
function, 𝑔𝑔 𝑡𝑡
To Laplace transform 𝑔𝑔 𝑡𝑡
we’ve assumed 𝑔𝑔 𝑡𝑡 = 0 for
𝑡𝑡 < 0, or equivalently
multiplied by 𝑢𝑢(𝑡𝑡)
To shift 𝑔𝑔 𝑡𝑡 by an amount,
𝑎𝑎, in time, we must also
multiply by a shifted step
function, 𝑢𝑢 𝑡𝑡 − 𝑎𝑎
ℒ 𝑔𝑔 𝑡𝑡 − 𝑎𝑎 � 𝑢𝑢 𝑡𝑡 − 𝑎𝑎 = 𝑒𝑒 −𝑎𝑎𝑎𝑎 𝐺𝐺 𝑠𝑠 (13)
ℒ 𝑔𝑔 𝑡𝑡 ∗ 𝑥𝑥 𝑡𝑡 = 𝐺𝐺 𝑠𝑠 𝑋𝑋 𝑠𝑠 (17)
1 − 𝑒𝑒 −𝑡𝑡0𝑠𝑠
ℒ 𝛿𝛿 𝑡𝑡 = lim
𝑡𝑡0 →0 𝑡𝑡0 𝑠𝑠
Apply l’Hôpital’s rule
𝑑𝑑
1 − 𝑒𝑒 −𝑡𝑡0𝑠𝑠 𝑠𝑠𝑒𝑒 −𝑡𝑡0𝑠𝑠 𝑠𝑠
𝑑𝑑𝑡𝑡0
ℒ 𝛿𝛿 𝑡𝑡 = lim = lim =
𝑡𝑡0 →0 𝑑𝑑 𝑡𝑡0 →0 𝑠𝑠 𝑠𝑠
𝑡𝑡0 𝑠𝑠
𝑑𝑑𝑡𝑡0
The Laplace transform of an impulse function is one
ℒ 𝛿𝛿 𝑡𝑡 =1 (18)
𝒈𝒈 𝒕𝒕 𝑮𝑮 𝒔𝒔 𝒈𝒈 𝒕𝒕 𝑮𝑮 𝒔𝒔
𝜔𝜔
𝛿𝛿 𝑡𝑡 1 𝑒𝑒 −𝑎𝑎𝑎𝑎 sin 𝜔𝜔𝜔𝜔
𝑠𝑠 + 𝑎𝑎 2 + 𝜔𝜔 2
1 𝑠𝑠 + 𝑎𝑎
𝑢𝑢 𝑡𝑡 𝑒𝑒 −𝑎𝑎𝑎𝑎 cos 𝜔𝜔𝜔𝜔
𝑠𝑠 𝑠𝑠 + 𝑎𝑎 2 + 𝜔𝜔 2
1
𝑡𝑡 𝑔𝑔(𝑡𝑡)
̇ 𝑠𝑠𝑠𝑠 𝑠𝑠 − 𝑔𝑔(0)
𝑠𝑠 2
𝑚𝑚!
𝑡𝑡 𝑚𝑚 𝑔𝑔̈ 𝑡𝑡 𝑠𝑠 2 𝐺𝐺 𝑠𝑠 − 𝑠𝑠𝑠𝑠 0 − 𝑔𝑔̇ 0
𝑠𝑠 𝑚𝑚+1
1 𝑡𝑡
−𝑎𝑎𝑎𝑎 1
𝑒𝑒 � 𝑔𝑔 𝜏𝜏 𝑑𝑑𝑑𝑑 𝐺𝐺 𝑠𝑠
𝑠𝑠 + 𝑎𝑎 0 𝑠𝑠
1
𝑡𝑡𝑒𝑒 −𝑎𝑎𝑎𝑎 𝑒𝑒 −𝑎𝑎𝑎𝑎 𝑔𝑔 𝑡𝑡 𝐺𝐺 𝑠𝑠 + 𝑎𝑎
𝑠𝑠 + 𝑎𝑎 2
𝜔𝜔
sin 𝜔𝜔𝜔𝜔 𝑔𝑔 𝑡𝑡 − 𝑎𝑎 � 𝑢𝑢 𝑡𝑡 − 𝑎𝑎 𝑒𝑒 −𝑎𝑎𝑎𝑎 𝐺𝐺 𝑠𝑠
𝑠𝑠 2 + 𝜔𝜔 2
𝑠𝑠 𝑑𝑑
cos 𝜔𝜔𝜔𝜔 𝑡𝑡 � 𝑔𝑔 𝑡𝑡 − 𝐺𝐺 𝑠𝑠
𝑠𝑠 2 + 𝜔𝜔 2 𝑑𝑑𝑑𝑑
K. Webb ESE 330
Example – Piecewise Function Laplace Transform
36
𝑓𝑓1 𝑡𝑡
Time-shifted, gated ramp
𝑓𝑓2 𝑡𝑡
Time-shifted pulse
Sum of staggered positive
and negative steps
1/𝑚𝑚
𝑌𝑌 𝑠𝑠 = 𝑏𝑏 𝑘𝑘 (9)
𝑠𝑠 𝑠𝑠 2 +𝑚𝑚𝑠𝑠+𝑚𝑚
1/𝑚𝑚
𝑌𝑌 𝑠𝑠 = 𝑏𝑏 𝑘𝑘 (9)
𝑠𝑠 𝑠𝑠 2 +𝑚𝑚𝑠𝑠+𝑚𝑚
In this case, the denominator polynomial has three real, distinct roots
𝑠𝑠1 = 0, 𝑠𝑠2 = −2, 𝑠𝑠3 = −8
K. Webb ESE 330
Inverse Laplace Transforms – Example 1
50
Equation (14) can now be transformed back to the time domain using the
Laplace transform table
K. Webb ESE 330
Inverse Laplace Transforms – Example 1
52
Next, apply the final value theorem to the Laplace transform step
response, (10)
1
𝑦𝑦 ∞ = lim 𝑠𝑠𝑌𝑌 𝑠𝑠 = lim
𝑠𝑠→0 𝑠𝑠→0 𝑠𝑠 2 + 10𝑠𝑠 + 16
1
𝑦𝑦 ∞ = = 0.0625𝑚𝑚 = 6.25𝑐𝑐𝑐𝑐
16
This final value agrees with both intuition and our numerical analysis
K. Webb ESE 330
Inverse Laplace Transforms – Example 2
54
In this case, the denominator polynomial has three real roots, two of which
are identical
𝑠𝑠1 = 0, 𝑠𝑠2 = −4, 𝑠𝑠3 = −4
Equation (20) can now be transformed back to the time domain using the
Laplace transform table
K. Webb ESE 330
Inverse Laplace Transforms – Example 2
57
This will transform into the sum of damped sine and cosine terms
𝑠𝑠 + 𝜎𝜎 𝜔𝜔
ℒ −1 𝑟𝑟𝑖𝑖 2 2
+ 𝑟𝑟𝑖𝑖+1 2 2
= 𝑟𝑟𝑖𝑖 𝑒𝑒 −𝜎𝜎𝜎𝜎 cos 𝜔𝜔𝜔𝜔 + 𝑟𝑟𝑖𝑖+1 𝑒𝑒 −𝜎𝜎𝜎𝜎 sin 𝜔𝜔𝜔𝜔
𝑠𝑠 + 𝜎𝜎 + 𝜔𝜔 𝑠𝑠 + 𝜎𝜎 + 𝜔𝜔
To get the second-order term in the denominator of (22) into the form of
(23), complete the square, to give the following partial fraction expansion
1 𝑟𝑟1 𝑟𝑟2 𝑠𝑠+2 +𝑟𝑟3 3.464
𝑌𝑌 𝑠𝑠 = = + (24)
𝑠𝑠 𝑠𝑠 2 +4𝑠𝑠+16 𝑠𝑠 𝑠𝑠+2 2 + 3.464 2
The time-domain step response of the system is the sum of a constant and
two decaying sinusoids:
The Laplace transform of the step response in the last example had
complex poles
A complex-conjugate pair: 𝑠𝑠 = −𝜎𝜎 ± 𝑗𝑗𝑗𝑗
of z-Transforms 21.4
Introduction
In this Section we shall apply the basic theory of z-transforms to help us to obtain the response or
output sequence for a discrete system. This will involve the concept of the transfer function and we
shall also show how to obtain the transfer functions of series and feedback systems. We will also
discuss an alternative technique for output calculations using convolution. Finally we shall discuss
the initial and final value theorems of z-transforms which are important in digital control.
64 HELM (2008):
Workbook 21: z-Transforms
®
1. Applications of z-transforms
Transfer (or system) function
Consider a first order linear constant coefficient difference equation
yn + a yn−1 = bxn n = 0, 1, 2, . . . (1)
where {xn } is a given sequence.
Assume an initial condition y−1 is given.
Task
Take the z-transform of (1), insert the initial condition and obtain Y (z) in terms
of X(z).
Your solution
Answer
Using the right shift theorem
Y (z) + a(z −1 Y (z) + y−1 ) = b X(z)
where X(z) is the z-transform of the given or input sequence {xn } and Y (z) is the z-transform of
the response or output sequence {yn }.
Solving for Y (z)
Y (z)(1 + az −1 ) = bX(z) − ay−1
so
bX(z) ay−1
Y (z) = − (2)
1 + az −1 1 + az −1
The form of (2) shows us clearly that Y (z) is made up of two components, Y1 (z) and Y2 (z) say,
where
bX(z)
(i) Y1 (z) = which depends on the input X(z)
1 + az −1
−ay−1
(ii) Y2 (z) = which depends on the initial condition y−1 .
1 + az −1
HELM (2008): 65
Section 21.4: Engineering Applications of z-Transforms
Clearly, from (2), if y−1 = 0 (zero initial condition) then
Y (z) = Y1 (z)
and hence the term zero-state response is sometimes used for Y1 (z).
Similarly if {xn } and hence X(z) = 0 (zero input)
Y (z) = Y2 (z)
and hence the term zero-input response can be used for Y2 (z).
In engineering the difference equation (1) is regarded as modelling a system or more specifically a
linear discrete time-invariant system. The terms linear and time-invariant arise because the difference
equation (1) is linear and has constant coefficients i.e. the coefficients do not involve the index n.
The term ‘discrete’ is used because sequences of numbers, not continuous quantities, are involved.
As noted above, the given sequence {xn } is considered to be the input sequence and {yn }, the
solution to (1), is regarded as the output sequence.
{xn } {yn }
system
input output
(stimulus) (response)
Figure 8
A more precise block diagram representation of a system can be easily drawn since only two operations
are involved:
1. Multiplying the terms of a sequence by a constant.
2. Shifting to the right, or delaying, the terms of the sequence.
A system which consists of a single multiplier is denoted as shown by a triangular symbol:
{xn } {yn }
A yn = Axn
Figure 9
As we have seen earlier in this workbook a system which consists of only a single delay unit is
represented symbolically as follows
{xn } {yn }
z −1 yn = xn−1
Figure 10
The system represented by the difference equation (1) consists of two multipliers and one delay unit.
Because (1) can be written
yn = bxn − ayn−1
a symbolic representation of (1) is as shown in Figure 11.
66 HELM (2008):
Workbook 21: z-Transforms
®
{xn } {yn }
+
b
+
z −1 −a
Figure 11
The circle symbol denotes an adder or summation unit whose output is the sum of the two (or more)
sequences that are input to it.
We will now concentrate upon the zero state response of the system i.e. we will assume that the
initial condition y−1 is zero.
Thus, using (2),
bX(z)
Y (z) =
1 + az −1
so
Y (z) b
= (3)
X(z) 1 + az −1
Y (z)
The quantity , the ratio of the output z-transform to the input z-transform, is called the
X(z)
transfer function of the discrete system. It is often denoted by H(z).
Key Point 16
The transfer function H(z) of a discrete system is defined by
Y (z) z-transform of output sequence
H(z) = =
X(z) z-transform of input sequence
when the initial conditions are zero.
HELM (2008): 67
Section 21.4: Engineering Applications of z-Transforms
Task
(a) Write down the transfer function H(z) of the system represented by (1)
(i) using negative powers of z
(ii) using positive powers of z.
(b) Write down the inverse z-transform of H(z).
Your solution
Answer
(a) From (3)
b
(i) H(z) =
1 + az −1
bz
(ii) H(z) =
z+a
(b) Referring to the Table of z-transforms at the end of the Workbook:
{hn } = b(−a)n n = 0, 1, 2, . . .
{xn } {yn }
H(z)
X(z) Y (z)
Figure 12
From the definition of the transfer function it follows that
Y (z) = X(z)H(z) (at zero initial conditions).
The corresponding relation between {yn }, {xn } and the inverse z-transform {hn } of the transfer
function will be discussed later; it is called a convolution summation.
The significance of {hn } is readily obtained.
1 n=0
Suppose {xn } =
0 n = 1, 2, 3, . . .
i.e. {xn } is the unit impulse sequence that is normally denoted by δn . Hence, in this case,
X(z) = Z{δn } = 1 so Y (z) = H(z) and {yn } = {hn }
In words: {hn } is the response or output of a system where the input is the unit impulse sequence
{δn }. Hence {hn } is called the unit impulse response of the system.
68 HELM (2008):
Workbook 21: z-Transforms
®
Key Point 17
For a linear, time invariant discrete system, the unit impulse response and the system transfer
function are a z-transform pair:
It follows from the previous Task that for the first order system (1)
b bz
H(z) = −1
= is the transfer function and
1 + az z+a
{hn } = {b(−a)n } is the unit impulse response sequence.
Task
Write down the transfer function of
(a) a single multiplier unit (b) a single delay unit.
Your solution
Answer
(a) {yn } = {A xn } if the multiplying factor is A
∴ using the linearity property of z-transform
Y (z) = AX(z)
Y (z)
so H(z) = =A is the required transfer function.
X(z)
(b) {yn } = {xn−1 }
so Y (z) = z −1 X(z) (remembering that initial conditions are zero)
∴ H(z) = z −1 is the transfer function of the single delay unit.
HELM (2008): 69
Section 21.4: Engineering Applications of z-Transforms
Task
Obtain the transfer function of the system.
yn + a1 yn−1 = b0 xn + b1 xn−1 n = 0, 1, 2, . . .
where {xn } is a known sequence with xn = 0 for n = −1, −2, . . . .
[Remember that the transfer function is only defined at zero initial condition i.e.
assume y−1 = 0 also.]
Your solution
Answer
Taking z-transforms
70 HELM (2008):
Workbook 21: z-Transforms
®
Task
Take the z-transform of (4), assuming given initial values y−1 , y−2 . Show that
Y (z) has two components. Obtain the transfer function of the system (4).
Your solution
Answer
From (4)
Example
Obtain (i) the unit impulse response (ii) the unit step response of the system specified by the second
order difference equation
3 1
yn − yn−1 + yn−2 = xn (5)
4 8
Note that both these responses refer to the case of zero initial conditions. Hence it is convenient to
first obtain the transfer function H(z) of the system and then use the relation Y (z) = X(z)H(z) in
each case.
We write down the transfer function of (5), using positive powers of z. Taking the z-transform of
(5) at zero initial conditions we obtain
3 1
Y (z) − z −1 Y (z) + z −2 Y (z) = X(z)
4 8
3 −1 1 −2
Y (z) 1 − z + z = X(z)
4 8
Y (z) z2 z2
∴ H(z) = = 2 3 1 =
X(z) z − 4z + 8
(z − 12 )(z − 14 )
HELM (2008): 71
Section 21.4: Engineering Applications of z-Transforms
We now complete the problem for inputs (i) xn = δn (ii) xn = un , the unit step sequence, using
partial fractions.
z2 2z z
H(z) = 1 −
1
1
= 1
z− 2
z− 4
z−2 z− 4
Hence, taking inverse z-transforms, the unit step response of the system is
n n
1 1 1 8
yn = (−2) × + × + n = 0, 1, 2, . . .
2 3 4 3
Notice carefully the form of this unit step response - the first two terms decrease as n increases and
are called transients. Thus
8
yn → as n→∞
3
8
and the term is referred to as the steady state part of the unit step response.
3
Combinations of systems
The concept of transfer function enables us to readily analyse combinations of discrete systems.
Series combination
Suppose we have two systems S1 and S2 with transfer functions H1 (z), H2 (z) in series with each
other. i.e. the output from S1 is the input to S2 .
Figure 13
72 HELM (2008):
Workbook 21: z-Transforms
®
{xn } {yn }
H1 (z)H2 (z)
X(z) Y (z)
Figure 14
Task
Obtain (a) the transfer function (b) the governing difference equation of the system
obtained by connecting two first order systems S1 and S2 in series. The governing
equations are:
S1 : yn − ayn−1 = bxn
S2 : yn − cyn−1 = dxn
(a) Begin by finding the transfer function of S1 and S2 and then use (6):
Your solution
HELM (2008): 73
Section 21.4: Engineering Applications of z-Transforms
Answer
b
S1 : Y (z) − az −1 Y (z) = bX(z) so H1 (z) =
1 − az −1
d
S2 : H2 (z) =
1 − cz −1
so the series arrangement has transfer function
bd
H(z) =
(1 − az −1 )(1 − cz −1 )
bd
=
1 − (a + c)z −1 + acz −2
If X(z) and Y (z) are the input and output transforms for the series arrangement, then
bdX(z)
Y (z) = H(z) X(z) =
1 − (a + c)z −1 + acz −2
(b) By transfering the denominator from the right-hand side to the left-hand side and taking inverse
z-transforms obtain the required difference equation of the series arrangement:
Your solution
Answer
We have
Y (z)(1 − (a + c)z −1 + acz −2 ) = bdX(z)
Y (z) − (a + c)z −1 Y (z) + acz −2 Y (z) = bdX(z)
from which, using the right shift theorem,
yn − (a + c)yn−1 + acyn−2 = bd xn .
which is the required difference equation.
You can see that the two first order systems in series have an equivalent second order system.
74 HELM (2008):
Workbook 21: z-Transforms
®
Feedback combination
{xn } {wn }
+ H1 (z) Y (z)
W (z)
X(z) +
−1 H2 (z)
Figure 15
For the above negative feedback arrangement of two discrete systems with transfer functions
H1 (z), H2 (z) we have, at zero initial conditions,
Y (z) = W (z)H1 (z) where W (z) = X(z) − H2 (z)Y (z)
Task
Eliminate W (z) and hence obtain the transfer function of the feedback system.
Your solution
Answer
so
Y (z)(1 + H2 (z)H1 (z)) = X(z)H1 (z)
Y (z) H1 (z)
∴ =
X(z) 1 + H2 (z)H1 (z)
This is the required transfer function of the negative feedback system.
HELM (2008): 75
Section 21.4: Engineering Applications of z-Transforms
2. Convolution and z-transforms
Consider a discrete system with transfer function H(z)
{xn } {yn }
H(z)
X(z) Y (z)
Figure 16
We know, from the definition of the transfer function that at zero initial conditions
Y (z) = X(z)H(z) (7)
We now investigate the corresponding relation between the input sequence {xn } and the output
sequence {yn }. We have seen earlier that the system itself can be characterised by its unit impulse
response {hn } which is the inverse z-transform of H(z).
We are thus seeking the inverse z-transform of the product X(z)H(z). We emphasize immediately
that this is not given by the product {xn }{hn }, a point we also made much earlier in the workbook.
We go back to basic definitions of the z-transform:
Y (z) = y0 + y1 z −1 + y2 z −2 + y3 z −3 + . . .
X(z) = x0 + x1 z −1 + x2 z −2 + x3 z −3 + . . .
H(z) = h0 + h1 z −1 + h2 z −2 + h3 z −3 + . . .
Hence, multiplying X(z) by H(z) we obtain, collecting the terms according to the powers of z −1 :
x0 h0 + (x0 h1 + x1 h0 )z −1 + (x0 h2 + x1 h1 + x2 h0 )z −2 + . . .
Task
Write out the terms in z −3 in the product X(z)H(z) and, looking at the emerging
pattern, deduce the coefficient of z −n .
Your solution
76 HELM (2008):
Workbook 21: z-Transforms
®
Answer
(x0 h3 + x1 h2 + x2 h1 + x3 h0 )z −3
which suggests that the coefficient of z −n is
x0 hn + x1 hn−1 + x2 hn−2 + . . . + xn−1 h1 + xn h0
.. ..
. .
z −n : yn = x0 hn + x1 hn−1 + x2 hn−2 + . . . + xn−1 h1 + xn h0 (9)
n
X
= xk hn−k (10a)
k=0
n
X
= hk xn−k (10b)
k=0
The sequence {yn } whose n th term is given by (9) and (10) is said to be the convolution (or more
precisely the convolution summation) of the sequences {xn } and {hn },
The convolution of two sequences is usually denoted by an asterisk symbol (∗).
where the general term of {xn } ∗ {hn } is in (10a) and that of {hn } ∗ {xn } is in (10b).
In words: the output sequence {yn } from a linear time invariant system is given by the convolution
of the input sequence with the unit impulse response sequence of the system.
HELM (2008): 77
Section 21.4: Engineering Applications of z-Transforms
Key Point 18
{xn } {yn }
H(z)
X(z) Y (z)
Figure 17
We have, at zero initial conditions
Y (z) = X(z)H(z) (definition of transfer function)
{yn } = {xn } ∗ {hn } (convolution summation)
where yn is given in general by (9) and (10) with the first four terms written out explicitly in (8).
Although we have developed the convolution summation in the context of linear systems the proof
given actually applies to any sequences i.e. for arbitrary causal sequences say {vn } {wn } with z-
transforms V (z) and W (z) respectively:
Z−1 {V (z)W (z)} = {vn } ∗ {wn } or, equivalently, Z({vn } ∗ {wn }) = V (z)W (z).
Indeed it is simple to prove this second result from the definition of the z-transform for any causal
sequences {vn } = {v0 , v1 , v2 , . . .} and {wn } = {w0 , w1 , w2 , . . .}
n
X
Thus since the general term of {vn } ∗ {wn } is vk wn−k
k=0
we have
∞
( n )
X X
Z({vn } ∗ {wn }) = vk wn−k z −n
n=0 k=0
Putting m = n − k or n = m + k we obtain
∞ X
X ∞
Z({vn } ∗ {wn }) = vk wm z −(m+k) (Why is the lower limit m = 0 correct?)
m=0 k=0
Finally,
∞
X ∞
X
−m
Z({vn } ∗ {wn }) = wm z vk z −k = W (z)V (z)
m=0 k=0
78 HELM (2008):
Workbook 21: z-Transforms
®
Example 2
Calculate the convolution {yn } of the sequences
{vn } = {an } {wn } = {bn } a 6= b
(i) directly (ii) using z-transforms.
Solution
(i) We have from (10)
n
X n
X
yn = vk wn−k = ak bn−k
k=0 k=0
n
n
X a k
= b
k=0
b
a a 2 a n
n
= b 1+ + + ...
b b b
a
The bracketed sum involves n + 1 terms of a geometric series of common ratio .
b
a n+1
1−
n b
∴ yn = b a
1−
b
(bn+1 − an+1 )
=
(b − a)
−1 z2
∴ yn = Z { }
(z − a)(z − b)
bn+1 − an+1
= using partial fractions or residues
(b − a)
HELM (2008): 79
Section 21.4: Engineering Applications of z-Transforms
Task
Obtain by two methods the convolution of the causal sequence
{2n } = {1, 2, 22 , 23 , . . .}
with itself.
Your solution
Answer
(a) By direct use of (10) if {yn } = {2n } ∗ {2n }
n
X n
X
k n−k n
yn = 2 2 =2 1 = (n + 1)2n
k=0 k=0
80 HELM (2008):
Workbook 21: z-Transforms
®
This result follows, at least informally, from the definition of the z-transform:
F (z) = f0 + f1 z −1 + f2 z −2 + . . .
from which, taking limits as z → ∞ the required result is obtained.
Task
Obtain the z-transform of
f (n) = 1 − an , 0<a<1
Verify the initial value theorem for the z-transform pair you obtain.
Your solution
Answer
Using standard z-transforms we obtain
z z
Z{fn } = F (z) = −
z−1 z−a
1 1
= −1
−
1−z 1 − az −1
hence, as z → ∞ : F (z) → 1 − 1 = 0
Similarly, as n → 0
fn → 1 − 1 = 0
so the initial value theorem is verified for this case.
HELM (2008): 81
Section 21.4: Engineering Applications of z-Transforms
Final value theorem
Suppose again that {fn } is a sequence with z-transform F (z). We further assume that all the poles
of F (z) lie inside the unit circle in the z−plane (i.e. have magnitude less than 1) apart possibly from
a first order pole at z = 1.
The ‘final value’ of fn i.e. lim fn is then given by lim fn = lim (1 − z −1 )F (z)
n→∞ n→∞ z→1
Example
Again consider the sequence fn = 1 − an 0 < a < 1 and its z-transform
z z 1 1
F (z) = − = −1
−
z−1 z−a 1−z 1 − az −1
Clearly as n → ∞ then fn → 1.
Considering the right-hand side
(1 − z −1 )
(1 − z −1 )F (z) = 1 − → 1 − 0 = 1 as z → 1.
1 − az −1
Note carefully that
z z
F (z) = −
z−1 z−a
has a pole at a (0 < a < 1) and a simple pole at z = 1.
The final value theorem does not hold for z-transform poles outside the unit circle
z
e.g. fn = 2n F (z) =
z−2
Clearly fn → ∞ as n → ∞
whereas
−1 z−1 z
(1 − z )F (z) = → 0 as z → 1
z (z − 2)
82 HELM (2008):
Workbook 21: z-Transforms
®
Exercises
1. A low pass digital filter is characterised by
yn = 0.1xn + 0.9yn−1
Two such filters are connected in series. Deduce the transfer function and governing difference
equation for the overall system. Obtain the response of the series system to (i) a unit step and
(ii) a unit alternating input. Discuss your results.
yn = xn − 0.7xn−1 + 0.4yn−1
yn = 0.9xn−1 − 0.7yn−1
are connected in series. Find the difference equation governing the overall system.
yn = 6xn−1 + 5yn−1
yn = αxn−1 + βyn−1
H1 (z)
H3 (z) =
1 + H1 (z)H2 (z)
and determine values for the parameters α and β if H3 (z) is to have a second order pole at
z = 0.5. Show briefly why the feedback systems S3 stabilizes the original system.
[Hint: yn − yn−1 = n2 ]
5. Evaluate each of the following convolution summations (i) directly (ii) using z-transforms:
HELM (2008): 83
Section 21.4: Engineering Applications of z-Transforms
Answers
3. α = 3.375 β = −4
n
X (2n + 1)(n + 1)n
4. k2 =
k=1
6
1
5. (a) (an+1 − bn+1 ) (b) (n + 1)an (c) δn−8 (d) {1, 2, 3, 4, 3, 2, 1}
(a − b)
84 HELM (2008):
Workbook 21: z-Transforms