Unit 1, 2 Control - Systems - Notes
Unit 1, 2 Control - Systems - Notes
Control Systems
Compiled & Edited by,
Assistant Professor
Dr. Aniket D. Gundecha©2020 , MIT AOE, Pune, INDIA. All rights reserved
List of Tables xv
v
Contents
vi
Contents
1.14.1 Classification . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.18.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
vii
Contents
1.20.1 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
viii
Contents
2.4.5 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
2.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
2.7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
ix
Contents
2.10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2.10.2 Derivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2.11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
2.15 Controllability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
2.16 Observability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
x
Contents
2.17.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
2.18 Eigenvectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
2.19 Eigenvalues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
2.19.1 Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
xi
List of Figures
1.1 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
xii
List of Figures
xiii
List of Figures
xiv
List of Tables
xv
Chapter 1
Learning Outcomes
After completing this chapter, students will be able to:
1
Chapter 1. Modeling in Frequency Domain
A system gives an output (also called response) for an input (also called
excitation)
Input/Excitation Output/Response
System
Sys2
Input/Excitation Output/Response
Sys1 + Sys3
Sys4
Motor
Air Conditioner
2
Chapter 1. Modeling in Frequency Domain
Input–Drug administration
Input–Acceleration or Deceleration
Output–Vehicle displacement
Output of the system varies linearly Output of the system does not vary
with input linearly with input
3
Chapter 1. Modeling in Frequency Domain
y(t) = f (u(t)) ⇒ y(t + δ) = f (u(t + δ)) y(t) = f (u(t)) ; y(t + δ) = f (u(t + δ))
y(t) = f (x(t), x(t − 1), ...)) y(t) = f (x(t), x(t + 1), ...))
4
Chapter 1. Modeling in Frequency Domain
A system or mechanism which directs the input to other systems and regulates
their output
Disturbance
5
Chapter 1. Modeling in Frequency Domain
Feedback senses the plant output and gives a signal which can be compared
to the reference
Disturbance
F eedback
6
Chapter 1. Modeling in Frequency Domain
7
Chapter 1. Modeling in Frequency Domain
Plant : Room
Actual
T emp On / Of f Air temp
Desired
Setting Room
T emperature Switch Condition
Knob
8
Chapter 1. Modeling in Frequency Domain
Used for analysis and design, possibly before physical system exists.
P lant or Equivalent
System M athematical
M odel
– Provides understanding
P lant or Equivalent
System M athematical
M odel
9
Chapter 1. Modeling in Frequency Domain
J θ̈ + bθ̇ = Ki
di
L dt + Ri = V − K θ̇
System
10
Chapter 1. Modeling in Frequency Domain
State Space Model State is a set of variables that describes the system
behaviour in conjunction with the system inputs
dV dI d2 I I
=R +L 2 +
dt dt dt C
Transfer Function Model
I(s) 1
= 1
V (s) R + Ls + Cs
dIL
dt
−R
L
1
L
IL 1
L
= + V
dVc 1
dt C
0 Vc 0
11
Chapter 1. Modeling in Frequency Domain
M ath description
Select variable Apply relevant
of each model
of interest physical laws
element
12
Chapter 1. Modeling in Frequency Domain
X Electrical systems
X Mechanical systems
– Electronic systems
– Hydraulic systems
– Thermal systems
13
Chapter 1. Modeling in Frequency Domain
14
Chapter 1. Modeling in Frequency Domain
1. Resistance elements
2. Capacitance elements
3. Inductance elements
V = IR (Dissipates Energy)
dφ
V = dt
⇒ V = L dI
dt
– If power is disconnected, induced voltage will make
the current continue to flow (like an inertia)
15
Chapter 1. Modeling in Frequency Domain
M ath description
Select variable Apply relevant
of each model
of interest physical laws
element
Nodal and loop analysis form part of Step 6 in the steps of modelling.
Applied after identifying the basic elements of the system and variables of
interest.
N ode 1
N ode 2
16
Chapter 1. Modeling in Frequency Domain
N ode 1 i3
i1
− +
i2
+ Loop 1 − Loop 2
N ode 2
V N ode 1
+ + +
− − −
17
Chapter 1. Modeling in Frequency Domain
fk ∝ x
fk = Kx
F = fk
F = Kx
18
Chapter 1. Modeling in Frequency Domain
Mass (M)): Mass is the property of a body, which stores kinetic energy.
fm ∝ a
fm = M a
d2 x
fm = M 2
dt
By Newton’s second law,
F = fm
d2 x
F = M
dt2
Damper (B):
– If a force is applied on dashpot B, then it is opposed
by an opposing force (fb ) due to friction of the
dashpot.
fb ∝ v
fb = Bv
dx
fb = B
dt
By Newton’s second law,
F = fb
dx
F = B
dt
19
Chapter 1. Modeling in Frequency Domain
20
Chapter 1. Modeling in Frequency Domain
Find all the forces and its direction acting on the mass.
E.g. Force applied is in the direction of displacement and the opposing forces
due to spring, mass and damper are opposite to the direction of displacement.
Using Newton’s laws of motion, express all the forces in terms of displacement
or velocity of the mass.
21
Chapter 1. Modeling in Frequency Domain
22
Chapter 1. Modeling in Frequency Domain
Motivation
When the model equations are transformed to s–domain, they turn out to
be algebraic equations which are easier to solve.
For an LTI system, transfer function is the ratio of the Laplace transform of
the output to the Laplace transform of the input with the initial conditions
being zero.
C(s)
G(s) =
R(s)
Z ∞
δ(t) = 1
−∞
23
Chapter 1. Modeling in Frequency Domain
3. Take the Laplace transform of the model equations assuming zero initial
conditions.
4. Find the ratio of the Laplace transform of the output to the Laplace transform
of the input.
Examples
Eo (s)
E.g.1 Obtain the transfer function of the electrical system shown in Figure 1.18.
Ei (s)
24
Chapter 1. Modeling in Frequency Domain
Eo (s)
E.g.2 Obtain the transfer function of the electrical system shown in Figure 1.19.
Ei (s)
X(s)
E.g.3 Find the transfer function for the system of Figure 1.20.
F (s)
Y2 (s)
E.g.4 Obtain the transfer function for system shown in Figure 1.21.
U (s)
25
Chapter 1. Modeling in Frequency Domain
Using the transfer function, the response can be studied for various inputs
to understand the nature of the system.
Transfer function does not provide any information concerning the physical
structure of the system i.e., two different physical systems can have the same
transfer function.
1.18.1 Motivation
Block diagram enables calculating the overall system transfer function provided
the transfer functions of each of the components or sub-systems are known.
26
Chapter 1. Modeling in Frequency Domain
27
Chapter 1. Modeling in Frequency Domain
1.20.1 Example
28
Chapter 1. Modeling in Frequency Domain
C(s)
G(s) = = G3 (s)G2 (s)G1 (s)
R(s)
Parallel Connection:
C(s)
G(s) = = G1 (s) ± G2 (s) ± G3 (s)
R(s)
29
Chapter 1. Modeling in Frequency Domain
Simplification is done using certain rules called the ‘rules of block diagram
algebra’.
All these rules are derived by simple algebraic manipulations of the equations
representing the blocks.
30
Chapter 1. Modeling in Frequency Domain
Rule 3 – Check for the blocks connected in feedback loop and simplify.
Rule 4 – If there is difficulty with take-off point while simplifying, shift it towards
right.
Rule 6 – Repeat the above steps till you get the simplified form, i.e., single block.
31
Chapter 1. Modeling in Frequency Domain
Examples
C(s)
E.g.1: Obtain the transfer function for the system shown in Figure 1.31.
R(s)
C(s)
E.g.2: Obtain the transfer function for the system shown in Figure 1.32.
R(s)
C(s)
E.g.3: Find the transfer function for the system of Figure 1.33.
R(s)
32
Chapter 1. Modeling in Frequency Domain
Signal flow graph does not require any reduction because there is a graph
gain formula which directly gives the transfer function.
In this method, at each step block diagram Only one time Signal flow graph is to be
is to be redrawn. Thats why it is tedious drawn and then apply Mason’s gain formula
method. to evaluate the system.
Signal flow graph can be obtained from the block diagram of a system.
33
Chapter 1. Modeling in Frequency Domain
2. Branch: Branch is a line segment which joins two nodes. It has both gain
and direction.
3. Source or Input Node: A node which has only outgoing branches is known
as source or input node.
e.g. Node y1 is a source node.
4. Sink or Output Node: A node which has only incoming branches is known
as sink or output node.
e.g. Node y6 is a sink node.
6. Forward path: A path from input node to output node is defined as forward
path.
e.g. y1 – y2 – y3 – y4 – y5 – y6 First forward path
y1 – y2 – y5 – y6 Second forward path
34
Chapter 1. Modeling in Frequency Domain
8. Feedback loop: A loop consisting of more than one node but originating and
terminating at the same node is known as feedback loop.
e.g. y3 – y4 – y5 – y3 or y2 – y3 – y2 or y2 – y5 – y3 – y2
9. Self loop: A feedback loop containing only one node is called as self loop.
e.g. y2 – y2 having gain a2
10. Non–touching loops: While forming different loops, if the same node is
not traced again i.e. if the node is not common, then those are called as
non–touching loops.
11. Loop gain: The product of all the branch gains forming a loop is known as
loop gain.
12. Dummy node: Separate input and output nodes added with branch gain 1
are known as dummy nodes.
35
Chapter 1. Modeling in Frequency Domain
4. Step 4: If the branch connecting a summing point and take-off point has
unity gain, then the summing point and take-off point can be combined and
represented by a single node.
5. Step 5: If there are more than one take-off points from the same signal then
all the take-off points can be combined and represented by a single node.
6. Step 6: If the gain of the link connecting two summing points is one, then
the two summing points can be combined and can be replaced by a single
node.
36
Chapter 1. Modeling in Frequency Domain
Examples
C(s)
E.g.1: Using Mason’s rule, find the transfer function, T (s) = for the system
R(s)
represented in Figure 1.35.
C(s)
E.g.2: Using Mason’s rule, find the transfer function, T (s) = for the system
R(s)
represented in Figure 1.36.
E.g.3: For the linear, time-invariant system whose block diagram is shown in
Y (s)
Figure 1.37 find the transfer function .
X(s)
37
Chapter 1. Modeling in Frequency Domain
E.g.4: For the linear, time-invariant system whose signal flow graph is shown in
Y (s)
Figure 1.38 find the transfer function .
X(s)
E.g.5: The block diagram of a system is shown in the Figure 1.39. If the desired
s
transfer function of the system is C(s)
R(s)
= 2 , then G(s) is:
s +s+2
s
(a) 2 (b) s (c) 1/s (d) 1
s +s+2
(a) (b)
(c) (d)
38
Chapter 1. Modeling in Frequency Domain
E.g.7: The block diagram for a particular control system is shown in the figure.
C(s)
What is the transfer function R(s)
for this system?
(a) (b)
s+a s−b
s−b s+a
(c) (d)
s+a s+b
s+b s+a
Vo (s)
E.g.8: Find the transfer function Vi (s)
for the lag network shown in Figure 1.40.
Vo (s)
E.g.9: Find the transfer function Vi (s)
for the lead network shown in Figure 1.41.
39
Chapter 1. Modeling in Frequency Domain
X1 (s) X2 (s)
E.g.10: Obtain the transfer function U (s)
and U (s)
of the mechanical system
shown in Figure 1.42.
X1 (s)
E.g.11: Find the transfer function, G(s) = F (s)
, for the translational mechanical
system shown in Figure 1.43.
X2 (s)
E.g.12: Find the transfer function, G(s) = F (s)
, for the translational mechanical
network shown in Figure 1.44.
40
Chapter 2
Learning Outcomes
After completing this chapter, students will be able to:
41
Chapter 2. Modeling in Time Domain
Transfer functions are defined in Can be used for only LTI systems
the Laplace domain
– Can be extended for (some) nonlinear
Algebraic properties of the transfer – Can handle MIMO systems, with some
jugglery!
functions
It is valid for linear and non-linear systems that have backlash, saturation
and dead zone.
State space approach can handle the systems with non-zero initial conditions.
State space method works directly with the governing differential equations
in the time domain.
State equations are always first order irrespective of the system’s order, input
and outputs.
42
Chapter 2. Modeling in Time Domain
2.2 Definitions
2.2.1 Definitions related to state space techniques
State The concept of state is related to minimum set of variables. These variables
are called as state variable. Thus, the state of a system is defined as the
minimum (smallest) set of variables such that knowledge of these variables
at t = t0 , along with the knowledge of the input for t ≥ t0 , completely
determines the behaviour of the system for any time.
State space The n dimensional space whose coordinate axes consist of the x1
axis, x2 axis,..., xn axis is called state space.
Output equations It is the linear combinations of the state variables and the
inputs.
State variables: [x1 (t), x2 (t),...,xn (t)]
u1 (t) y1 (t)
nth order
u1 (t) y1 (t)
Input Controlled System Output
Variables u2 (t) y2 (t) Variables
m p
State variables (n)
um (t) yp (t)
x1 x2 xn
MIMO system
43
Chapter 2. Modeling in Time Domain
The state representation can be arranged in the form of n first order equations
dx1
= ẋ1 (t) = f1 (x1 , x2 , ..., xn ; u1 , u2 , ...um ; t)
dt
dx2
= ẋ2 (t) = f2 (x1 , x2 , ..., xn ; u1 , u2 , ...um ; t)
dt
..
.
dxn
= ẋn (t) = fn (x1 , x2 , ..., xn ; u1 , u2 , ...um ; t)
dt
ẋ(t) = f (x, u, t)
y(t) = g(x, u, t)
44
Chapter 2. Modeling in Time Domain
ẋ1 (t) = a11 x1 + a12 x2 + ... + a1n xn + b11 u1 + b12 u2 + ... + b1m um
ẋ2 (t) = a21 x1 + a22 x2 + ... + a2n xn + b21 u1 + b22 u2 + ... + b2m um
..
.
ẋn (t) = an1 x1 + an2 x2 + ... + ann xn + bn1 u1 + bn2 u2 + ... + bnm um
Output variables at time ‘t’ are linear combination of the values of the input and
state variables at time ‘t’, i.e.,
45
Chapter 2. Modeling in Time Domain
Input matrix: It is a input matrix which relates input and state variables.
b11 b12 . . . b1m
b21 b22 . . . b2m
[B]n×m = .
..
bn1 bn2 . . . bnm
n×m
46
Chapter 2. Modeling in Time Domain
Output matrix: It is a output matrix which relates output and state variables.
c11 c12 . . . c1n
c21 c22 . . . c2n
[C]p×n = .
..
cp1 cp2 . . . cpn
p×n
ẋ = Ax + Bu
yẋ =
= Cx
Ax +
+ Du
Bu
y = Cx + Du
U
B +
ẋ R x C +
Y
U
B +
+
ẋ R x C +
+ Y
+ +
U
B +
ẋ R x C +
Y
+ A
+
47
Chapter 2. Modeling in Time Domain
2.4.5 Example
ẋ = Ax + Bu
y = Cx + Du
U
B + + ẋ R
x C +
Y
+
dVC 1
dt
0 C
VC 0
= + Vs
dIL −1 −R 1
dt L A
L
IL L
D
h i h i VC
= +0
Y 1 0
IL
48
Chapter 2. Modeling in Time Domain
They can be easily determined if the system model is already known in the
differential equation/ transfer function form.
They are defined as particular state variables which are obtained from one
of system variables and its derivatives.
Often variable is selected as the system output and the remaining variables
are the derivative of the output.
x1 = y
dy
x2 = = ẋ1
dt
d2 y
x3 = 2 = ẋ2
dt
..
.
dn−1 y
xn = = ẋn−1
dtn−1
dn y
ẋn = n (2.2)
dt
49
Chapter 2. Modeling in Time Domain
dn y dn−1 y dn−2 y dy
ẋn = n
= −a n−1 n−1
− a n−2 n−2
− . . . − a1 − a0 y + b 0 u (2.3)
dt dt dt dt
Substituting equation (2.2) in equation (2.3) we get,
dn y
ẋn = = −an−1 xn − an−2 xn−1 − . . . − a1 x2 − a0 x1 + b0 u (2.4)
dtn
Finally, from equation (2.2) and equation (2.4) we get the state variables as,
ẋ1 = x2
ẋ2 = x3
ẋ3 = x4
..
.
ẋn = −an−1 xn − an−2 xn−1 − . . . − a1 x2 − a0 x1 + b0 u (2.5)
State equation:
ẋ 0 1 0 ... 0 x1 0
1
ẋ2 0 0 1 ... 0 x2 0
= + u
.. .. .. ..
. . . .
ẋn −a0 −a1 −a2 . . . −an−1 xn b0
Output equation:
x1
h i h i x2
=
y 1 0 ... 0
..
.
xn
50
Chapter 2. Modeling in Time Domain
Examples – Case 1
E.g.1: Find the state space model for the given transfer function
Y (s) 2
= 2
U (s) s +s+1
E.g.2: Find the state space model for the given transfer function
Y (s) 10
= 4
U (s) s + 3s + 2s2 + 5s + 4
3
E.g.3: Find the state space model for the differential equation given as
...
y + 3 ÿ + 2 ẏ = u
51
Chapter 2. Modeling in Time Domain
x1 = x
dx
x2 = = ẋ1
dt
d2 x
x3 = 2 = ẋ2
dt
...
ẋ3 = x (t) = −a2 ẍ(t) − a1 ẋ(t) − a0 x(t) + u(t) (2.10)
ẋ1 = x2
ẋ2 = x3
...
ẋ3 = x (t) = −a2 x3 − a1 x2 − a0 x1 + u(t) (2.11)
52
Chapter 2. Modeling in Time Domain
Output equation
x
1
h i h i
= (b0 − b3 a0 ) (b1 − b3 a1 ) (b2 − b3 a2 ) x2 + b3 u
y
x3
Output equation
x
1
h i h i
=
y b0 b1 b2 x 2
x3
Examples – Case 2
E.g.1: Find the state space model for the given transfer function
Y (s) 2s3 + s2 + 7s + 2
= 3
U (s) s + 15s2 + 62s + 48
E.g.2: Find the state space model for the given transfer function
E.g.3: Find the state space model for the differential equation given as
Y (s) 8s + 10
= 4
U (s) 8s + 5s + s2 + 5s + 13
3
53
Chapter 2. Modeling in Time Domain
E.g.4: For the given circuit, which one of the following is the correct state
equation?
(a) (b)
(c) (d)
2.7.1 Introduction
54
Chapter 2. Modeling in Time Domain
dn y dn−1 y dy dm u dm−1 u du
+ a n−1 + . . . + a 1 + a 0 y = b m + b m−1 + . . . + b 1 + b0 u
dtn dtn−1 dt dtm dtm−1 dt
Above equation can be written in s domain as,
Y (s) b3 s 3 + b2 s 2 + b1 s + b 0
G(s) = = 3 (2.17)
U (s) s + a2 s 2 + a1 s + a0
Equation (2.17) can be written in time domain form as,
d3 y d2 y dy d3 u d2 u du
+ a 2 + a 1 + a 0 y = b 3 + b 2 + b 1 + b0 u (2.18)
dt3 dt2 dt dt3 dt2 dt
Rearranging (2.18) we get,
d3 y d3 u d2 d
= b 3 + (b 2 u − a 2 y) + (b1 u − a1 y) + b0 u − a0 y (2.19)
dt3 dt3 dt2 dt
Integrating equation (2.19) we get,
Z Z Z Z Z Z
y = b3 u + (b2 u − a2 y)dt + (b1 u − a1 y)dt + (b0 u − a0 y)dt (2.20)
b0 b1 b2 b3
55
Chapter 2. Modeling in Time Domain
ẋ1 = b0 u − a0 y
= b0 u − a0 (x3 + b3 u)
ẋ1 = −a0 x3 + u(b0 − a0 b3 ) (2.21)
ẋ2 = x1 + b1 u − a1 (x3 + b3 u)
= x1 + b1 u − a1 x3 − a1 b3 u)
ẋ2 = x1 − a1 x3 + u(b1 − a1 b3 ) (2.22)
ẋ3 = x2 + b2 u − a2 (x3 + b3 u)
= x 2 − a2 x 3 + b 2 u − a2 b 3 u
ẋ3 = x2 − a2 x3 + u(b2 − a2 b3 ) (2.23)
From equation (2.21),(2.22) and (2.23) we can write state equation as,
State equation
ẋ 0 0 −a0 x (b − a0 b3 )
1 1 0
= 1 0 −a1 x2 + (b1 − a1 b3 ) u
ẋ2
ẋ3 0 1 −a2 x3 (b2 − a2 b3 )
56
Chapter 2. Modeling in Time Domain
Aobs = ATcont
T
Bobs = Ccont
T
Cobs = Bcont
Dobs = Dcont
Examples
E.g.1: Find the state space model for the given transfer function
Y (s) 2s3 + s2 + 7s + 2
= 3
U (s) s + 15s2 + 62s + 48
E.g.2: Find the state space model for the given transfer function
Y (s) s4 + 2s3 + 12s2 + 7s + 6
= 5
U (s) s + 9s4 + 13s3 + 8s2
E.g.3: Find the state space model for the differential equation given as
Y (s) 8s + 10
= 4
U (s) 8s + 5s + s2 + 5s + 13
3
The state models having minimum number of non-zero elements are called
as canonical forms.
There are two types: (i) Diagonal canonical form (ii) Jordan canonical form.
The diagonal canonical form is a state space model in which the poles of the
transfer function are arranged diagonally in the A matrix.
57
Chapter 2. Modeling in Time Domain
dn y dn−1 y dy dm u dm−1 u du
an + a n−1 + . . . + a 1 + a 0 y = b m + b m−1 + . . . + b 1 + b0 u
dtn dtn−1 dt dtm dtm−1 dt
Above equation can be written in s domain as,
Y (s) b 2 s 2 + b1 s + b0
G(s) = = (2.25)
U (s) a3 s 3 + a2 s 2 + a1 s + a0
The system transfer function (2.25) having a denominator polynomial that can
Y (s) c1 c2 c3
= + + (2.26)
U (s) (s + λ1 ) (s + λ2 ) (s + λ3 )
Re-arranging (2.26) we get (roots of denominator are also known as eigen values),
To find the values of c1 , c2 & c3 from (2.28), replace S with different values.
58
Chapter 2. Modeling in Time Domain
c1 c2 c3
Y (s) = U (s) + U (s) + U (s) (2.32)
(s + λ1 ) (s + λ2 ) (s + λ3 )
Equation (2.32) can be written as,
U (s)
X1 (s) =
(s + λ1 )
X1 (s)(s + λ1 ) = U (s)
ẋ1 (t) = −λ1 x1 + u(t) (2.34)
U (s)
X2 (s) =
(s + λ2 )
X2 (s)(s + λ2 ) = U (s)
ẋ2 (t) = −λ2 x2 + u(t) (2.35)
59
Chapter 2. Modeling in Time Domain
U (s)
X3 (s) =
(s + λ3 )
X3 (s)(s + λ3 ) = U (s)
ẋ3 (t) = −λ3 x3 + u(t) (2.36)
From equation (2.34), (2.35) & (2.36) we can write the state equation as,
State equation
ẋ −λ1 0 0 x1 1
1
= −λ2 0 x2 + 1 u
ẋ2 0
ẋ3 0 0 −λ3 x3 1
Output equation
x
1
h i h i
=
y c1 c2 c3 x 2
x3
60
Chapter 2. Modeling in Time Domain
ẋ1 R x1
c1
-
λ1
u ẋ2 R x2 y
c2
-
λ2
ẋ3 R x3
c3
-
λ3
dn y dn−1 y dy dm u dm−1 u du
an n
+ a n−1 n−1
+ . . . + a 1 + a 0 y = b m m
+ b m−1 m−1
+ . . . + b1 + b0 u
dt dt dt dt dt dt
Above equation can be written in s domain as,
Y (s) b3 s 3 + b2 s 2 + b1 s + b 0
G(s) = = 3 (2.39)
U (s) s + a2 s 2 + a1 s + a0
61
Chapter 2. Modeling in Time Domain
Y (s) c1 c2 c3
= b3 + + + (2.42)
U (s) (s + λ1 ) (s + λ2 ) (s + λ3 )
Y (s) c1 (s + λ2 )(s + λ3 ) + c2 (s + λ1 )(s + λ3 ) + c3 (s + λ1 )(s + λ2 )
= b3 +
U (s) (s + λ1 )(s + λ2 )(s + λ3 )
(2.43)
Comparing numerator term of equation (2.41) and (2.43) and substitute s = −λ2
we get,
we get,
get,
c1 c2 c3
Y (s) = b3 U (s) + U (s) + U (s) + U (s) (2.47)
(s + λ1 ) (s + λ2 ) (s + λ3 )
62
Chapter 2. Modeling in Time Domain
U (s)
X1 (s) =
(s + λ1 )
X1 (s)(s + λ1 ) = U (s)
ẋ1 (t) = −λ1 x1 + u(t) (2.49)
U (s)
X2 (s) =
(s + λ2 )
X2 (s)(s + λ2 ) = U (s)
ẋ2 (t) = −λ2 x2 + u(t) (2.50)
U (s)
X3 (s) =
(s + λ3 )
X3 (s)(s + λ3 ) = U (s)
ẋ3 (t) = −λ3 x3 + u(t) (2.51)
From equation (2.49), (2.50) & (2.51) we can write the state equation as,
State equation
ẋ −λ1 0 0 x1 1
1
= −λ2 0 x2 + 1 u
ẋ2 0
ẋ3 0 0 −λ3 x3 1
63
Chapter 2. Modeling in Time Domain
ẋ1 R x1
c1
-
λ1
u ẋ2 R x2 y
c2
-
λ2
ẋ3 R x3
c3
-
λ3
b3
64
Chapter 2. Modeling in Time Domain
Therefore, they are difficult for measurement and control purpose practically.
Examples
E.g.1: Find the state space model for the given transfer function
Y (s) s2 + 2s + 2
= 3
U (s) s + 12s2 + 47s + 60
Y (s) 5s + 15
= 2
U (s) s + 6s + 15
65
Chapter 2. Modeling in Time Domain
Most of the PID controller design techniques are based on transfer function
approach.
In that case, there is need to convert state space model into transfer function
form.
In control theory, like model order reduction, most of the conventional techniques
are based on transfer function form.
In that case also, there is need to convert state space into transfer function.
2.10.2 Derivation
ẋ = Ax + Bu (2.53a)
y = Cx + Du (2.53b)
or
where I is the identity matrix Substituting Eq. (2.56) into Eq. (2.54b) yields
66
Chapter 2. Modeling in Time Domain
Y (s)
= G(s) = C(sI − A)−1 B + D (2.59)
U (s)
Y (s) Adj[sI − A]
= G(s) = C B+D (2.60)
U (s) det[sI − A]
3. Determinant of [sI-A]
67
Chapter 2. Modeling in Time Domain
m11 m21 m31
Adjoint of [A] = transpose of (Cofactor of (A)) =
m12 m22 m32
m13 m23 m33
|A| = a11 (a22 a33 − a32 a23 ) − a12 (a21 a33 − a31 a23 ) + a13 (a21 a32 − a31 a22 )
68
Chapter 2. Modeling in Time Domain
Examples
E.g.1: Find the transfer function model for the system given below
ẋ 0 1 x 0
1 = 1 + u
ẋ2 −1 −2 x2 1
h i h i x1
y = 1 0
x2
E.g.2: Given the system defined by equation below, find the transfer function,
Y (s)
G(s) = U (s)
, where
U(s) isthe
input and Y(s)
is theoutput.
ẋ1 0 1 0 x1 10
ẋ = 0 0 1 x + 0 u
2 2
ẋ3 −1 −2 −3 x3 0
x1
h i h i
y = 1 0 0 x2
x3
69
Chapter 2. Modeling in Time Domain
ẋ = Ax + Bu (2.61a)
y = Cx + Du (2.61b)
ẋ = ax (2.62)
x(t) = b0 + b1 t + b2 t2 + . . . + bk tk + . . . (2.63)
70
Chapter 2. Modeling in Time Domain
If the assumed solution is to be true solution, Eq. (2.64) must hold for any t.
b1 = ab0
1 1
b2 = ab1 = a2 b0
2 2
1 1 3
b3 = ab2 = a b0
3 3×2
..
.
1 k
bk = a b0
k!
The value of b0 is determined by substituting t = 0 into Eq. (2.63), or
x(0) = b0 (2.65)
ẋ = Ax (2.67)
By analogy with the scalar case, we assume that the solution is in the form of a
vector power series in t, or
x(t) = b0 + b1 t + b2 t2 + . . . + bk tk + . . . (2.68)
71
Chapter 2. Modeling in Time Domain
If the assumed solution is to be true solution, Eq. (2.69) must hold for any t.
b1 = Ab0
1 1
b2 = Ab1 = A2 b0
2 2
1 1
b3 = Ab2 = A3 b0
3 3×2
..
.
1 k
bk = A b0
k!
The value of b0 is determined by substituting t = 0 into Eq. (2.68), or
x(0) = b0 (2.70)
The expression in the parentheses on the right hand side of the last equation
Eq. (2.71) is an n × n matrix. Because of its similarity to the infinite power series
for a scalar exponential, we call it the matrix exponential and write
1 22 1
I + At + A t + . . . + Ak tk + . . . = eAt
2! k!
In terms of the matrix exponential, the solution of Eq. (2.67) can be written as
Since the matrix exponential is very important in the state space analysis of linear
72
Chapter 2. Modeling in Time Domain
x(0)
X(s) = = (s − a)−1 x(0)
s−a
Taking inverse laplace transform of above equation gives the solution
Note that
73
Chapter 2. Modeling in Time Domain
I A A2
(sI − A)−1 = + 2 + 3 + ...
s s s
Hence, the inverse Laplace transform of (sI − A)−1 gives
A2 t2 A3 t3
L −1 [(sI − A)−1 ] = I + At + + + . . . = eAt (2.79)
2! 3!
From Eq. (2.78) and Eq. (2.79), the solution of Eq. (2.76) is obtained as
The importance of Eq. (2.79) lies in the fact that it provides a convenient means
It is called as free response of the system since the response is excited by the
initial conditions only.
74
Chapter 2. Modeling in Time Domain
1. Φ(0) = eA0 = I
5. [Φ(t)]n = Φ(nt)
d −at −at dx(t) −at −at dx(t)
[e x(t)] = e + x(t)(−a)e ⇒e − ax(t)
dt dt dt
d −at
[e x(t)] = e−at bu(t) (2.85)
dt
Integrating both sides of Eq. (2.85) from 0 to t
75
Chapter 2. Modeling in Time Domain
Z t Z t
d −at
[e x(t)] = e−aτ bu(τ )dτ (2.86)
0 dt 0
Z t
−at
e x(t) − x(0) = e−aτ bu(τ )dτ (2.87)
0
Z t
x(t) = at
e x(0) +e at
e−aτ bu(τ )dτ (2.88)
| {z } 0
initial condition | {z }
response to input
d −At −At dx(t) −At −At dx(t)
[e x(t)] = e + x(t)(−A)e ⇒e − Ax(t)
dt dt dt
d −At
[e x(t)] = e−At Bu(t) (2.92)
dt
Integrating both sides of Eq. (2.92) from 0 to t
Z t Z t
d −At
[e x(t)] = e−Aτ Bu(τ )dτ (2.93)
0 dt 0
76
Chapter 2. Modeling in Time Domain
Z t
−At
e x(t) − x(0) = e−Aτ Bu(τ )dτ (2.94)
0
Multiplying Eq. (2.94) by eAt and rearranging we get,
Z t
At
x(t) = e x(0) + eA(t−τ ) Bu(τ )dτ (2.95)
0
Z t
x(t) = Φ(t)x(0) + Φ(t − τ )Bu(τ )dτ (2.96)
| {z } 0
initial condition | {z }
response to input
Examples
77
Chapter 2. Modeling in Time Domain
ẋ1 0 1 x1 1
= + u(t)
ẋ2 0 −3 x2 0
where u(t) is the unit step function occurring at t = 0 and initial conditions as
x (0) −1
1 =
x2 (0) 3
Determine the state transition matrix and the state transition equation
78
Chapter 2. Modeling in Time Domain
They play an important role in the design of control systems in state space.
The solution to this problem may not exist if the system considered is not
controllable.
2.15 Controllability
Control input
u(t)
79
Chapter 2. Modeling in Time Domain
ẋ = Ax + Bu (2.101)
n.
Controllability Test
2.16 Observability
A system which is not completely observable implies that some of its state
variables are shielded from observation.
80
Chapter 2. Modeling in Time Domain
The system is said to be completely observable if every state x(t0 ) can be determined
from the observation of y(t) over a finite time interval, t0 ≤ t ≤ tf . The system is,
therefore, completely observable if every transition of the state eventually affects
every element of the output vector.
Consider a nth order plant whose state equation is
ẋ = Ax + Bu
y = Cx + Du (2.103)
Observability Test
Examples
E.g.1: Examine the controllability and observability of the system described by,
ẋ 1 1 x 0 x
1 = 1 + u; y = 1 0 1
h i
ẋ2 −2 −1 x2 1 x2
E.g.2: Examine the controllability and observability of the system described by,
ẋ −1 0 x 0 x
1 = 1 + u; y = 1 2 1
h i
ẋ2 0 −2 x2 1 x2
E.g.3: The state variable equations of a system are: ẋ1 = −3x1 − x2 + u, ẋ2 =
2x1 , y = x1 + u
The system is
(A) Controllable but not observable. (B) Observable but not controllable.
(C) Neither controllable nor observable. (D) Controllable and observable.
81
Chapter 2. Modeling in Time Domain
It is important to note that only square matrices have eigenvalues and eigenvectors
associated with them.
The word “eigen” comes from German and means “own”, while it is the
Dutch word for “characteristic”, and so this module could also be called
“Characteristic values and characteristic vectors”.
2.18 Eigenvectors
Definition 1:
Let us say,
Ax = y
Definition 2:
The eigenvector can also be defined as the vector “x ” such that the matrix operator
(A matrix) transforms it to a vector λx This vector have the same direction in state
space as the vector x.
82
Chapter 2. Modeling in Time Domain
Definition 3:
The eigenvectors of a system matrix [A] are all vectors, xi 6= 0, which under the
transformation of matrix [A] become multiples of themselves.
Axi = λi xi
2.19 Eigenvalues
2.19.1 Definition
The eigenvalues of the matrix [A] are the values of λi that satisfy Axi = λi xi for
xi 6= 0.
Why the eigenvalue of a system matrix is determined as |λi I − A| = 0?
Axi = λi xi
(λi I − A)xi = 0
xi = (λi I − A)−1 0
adj(λi I − A)
xi = 0
det(λi I − A)
Since xi 6= 0, a nonzero solution exists if
det(λi I − A) = 0
If the coefficients of A are all real, then its eigen values are either real or in
complex-conjugate pairs.
83
Chapter 2. Modeling in Time Domain
1
If A is nonsingular, with eigenvalues λi , i = 1, 2, . . . , n, then , i = 1, 2, . . . , n,
λi
are the eigenvalues of A−1 .
If the matrix A is real symmetric (row and column elements are same), then
the eigenvalues are always real (no complex conjugate values).
Examples
References
1. Katsuhiko Ogata, Modern Control Engineering, 5th edition, PHI, 2010, ISBN:
978-0136156734.
84