MCS5202 Control Engineering III - Lecture - Note-1
MCS5202 Control Engineering III - Lecture - Note-1
Introduction
One of the most important tasks in the analysis and design of control systems is mathematical
modeling of the system in which physical systems are represented by Dynamic equations in form
of differential equations. The differential equations describing the dynamic performance of a
physical system are obtained by utilizing the physical laws of the process (such as Newton’s
Laws, Kirchhoff’s laws, Ohm’s law etc.).
There are two approaches for analysis and design of control systems namely:
In classical approach the systems differential equations are converted in to transfer function.
In modern approach the systems differential equations are converted in to a set of first-order
differential equations, which may be combined into a first-order vector-matrix differential
equation.
Modern approach is a unified approach for modelling, analysing and designing of a wide range
of control systems.
1
State Space representation
2
The following examples illustrate how to represent a system in state space from its differential
equation:
Example 1
Where y is the output and u is the input of the system. Obtain the state space representation of
the system.
Solution
x 1= y
x 2= ẏ (2)
x 3= ÿ
ẋ 1= ẏ
ẋ 2= ÿ (3)
ẋ 3= ⃛y
ẋ 1=x 2
ẋ 2=x 3 (4)
3
From (2) the output equation is:
y ¿ x1 (5)
Step 5 The state equations can be obtained by expressing equations (4) and (5) in matrix form as:
[][ ][ ] [ ]
ẋ 1 0 1 0 x1 0
ẋ 2 = 0 0 1 x2 + 0 u
ẋ3 −10 −9 −5 x 3 6
[]
x1
y= [ 1 0 0 ] x 2
x3
[ ] []
0 1 0 0
A= 0 0 1 B= 0 C=[ 1 0 0 ] D=0
−10 −9 −5 6
Example 2
Y (s) 1
= 3
U ( s) s +10 s +29 s+18
2
Solution
x 1= y
x 2= ẏ (2)
4
x 3= ÿ
ẋ 1= ẏ
ẋ 2= ÿ (3)
ẋ 3= ⃛y
ẋ 1=x 2
ẋ 2=x 3 (4)
y ¿ x1 (5)
Step 5 The state equations can be obtained by expressing equations (4) and (5) in matrix form as:
[][ ][ ] [ ]
ẋ 1 0 1 0 x1 0
ẋ 2 = 0 0 1 x2 + 0 u
ẋ3 −18 −29 −10 x 3 1
[]
x1
y= [ 1 0 0 ] x 2
x3
Example 3
5
dθ d Ia
km + R a I a + La =V (t)
dt dt
Obtain the state space representation of the system. Assume the output of the system to be θ
Solution
km f
θ̈= I − θ̇
J a J
1 Ra km
I˙a= V − I a − θ̇ (1)
La La La
x 1=θ
x 2=θ̇ (2)
x 3=I a
ẋ 1=θ̇
ẋ 2=θ̈ (3)
ẋ 3= I˙a
ẋ 1=x 2
km f
ẋ 2= I a− θ̇
J J
km f
¿ x− x
J 3 J 2
1 Ra km
ẋ 3= V − I a − θ̇ (4)
La La La
6
1 Ra km
¿ V − x 3− x 2
La La La
θ=x1 (5)
The state equations can be obtained by expressing equations (4) and (5) in matrix form as:
[ ][ ] [ ]
0 1 0
[]
ẋ 1 k m x1 0
−f
0 0
ẋ 2 = J J x2 + V
1
ẋ3 −k m −Ra x 3
0 La
La La
[]
x1
θ=[ 1 0 0 ] x 2
x3
Example 4
Solution
x 1=x
x 2= ẋ (2)
7
x 3= ẍ
ẋ 1= ẋ
ẋ 2= ẍ (3)
ẋ 3= ⃛x
ẋ 1=x 2
ẋ 2=x 3 (4)
y 1=2 x 2+ 3u 1 ( t )
The state equations can be obtained by expressing equations (4) and (5) in matrix form as:
[][ ][ ] [ ][ ]
ẋ 1 0 1 0 x 1 0 0 0 u1
ẋ 2 = 0 0 1 x 2 + 0 0 0 u2
ẋ3 −7 −5 −3 x 3 1 3 4 u3
[] []
x1 u1
[ ][
y1
y2
= 0 2 0
x +
3 0
] [
0
0 0 1 2 0 6 1 2
x3
u
u3
]
State Space representation of nth order systems of linear differential equation involving
derivatives of forcing function
Consider a system whose differential equation involves derivatives of the forcing (input)
function such as:
8
n n−1 n n −1
d y d y d u d u du
n
+a 1 n−1 +... …+an y=b0 n +b1 n−1 + ...…+ bn−1 +b n u (1)
dt dt dt dt dt
x 1= y− β0 u
x 2= ẏ −β 0 u̇−β1 u
x 3= ÿ −β 0 ü−β 1 u̇−β2 u
(2)
⋮
⋮
(n−1) (n−1) (n−2)
x n= y −β 0 u −β 1 u −...…−β n−2 u̇−β n−1 u
Where
β 0=b0
β 1=b1 −a1 β0
β 2=b2−a 1 β 1−a 2 β 0
β 3=b3 −a1 β2 −a2 β1 −a3 β 0 (3)
⋮
⋮
β n=b n−a 1 β n−1−...−an−1 β 1−an β 0
Example 5
Y (s) s+ 3
= 3
U ( s) s + 9 s +24 s +20
2
Solution
From which:
9
β 0=b0=0
β 1=b 1−a1 β 0=0−0=0
β 2=b 2−a1 β 1−a2 β 0=1−0−0=1
x1 = y−β 0 u= y
x 2= ẏ−β 0 u̇−β 1 u= ẏ (2)
x 3= ÿ− β0 ü− β1 u̇−β 2 u= ÿ −u
ẋ 1= ẏ
ẋ 2= ÿ (3)
ẋ 3= ⃛y −u̇
From (2)
y=x 1
ẏ=x 2 (4)
ÿ=x 3 +u
ẋ 1=x 2
ẋ 2=x 3+ u (5)
y=x 1 (6)
The state equations can be obtained by expressing equations (5) and (6) in matrix form as:
10
[][ ][ ] [ ]
ẋ 1 0 1 0 x1 0
ẋ 2 = 0 0 1 x2 + 1 u
ẋ3 −20 −24 −9 x3 −6
[]
x1
y= [ 1 0 0 ] x 2
x3
Example 6
Solution
From which:
β 0=b 0=1
β1=b1−a1 β 0=3−5 ( 1 )=3−5=−2
β 2=b 2−a1 β 1−a2 β 0=1−5 (−2 ) −4 ( 1 ) =1+ 10−4=7
x 1= y− β0 u= y−u
x 2= ẏ−β 0 u̇−β 1 u= ẏ−u̇+ 2u (2)
x 3= ÿ− β0 ü−β1 u̇−β 2 u= ÿ −ü+2 u̇−7 u
ẋ 1= ẏ−u̇
ẋ 2= ÿ−ü+ 2 u̇ (3)
ẋ 3= ⃛y −u⃛ +2 ü−7 u̇
11
From (2)
y=x 1 +u
¿ x 2−2 u
¿ x 3+ 7 u (5)
¿ 5 ü−6 u̇+ 2u−5( x 3 + ü−2 u̇+7 u)−4 (x2 + u̇−2 u)−(x 1 +u)
y=x 1 +u (6)
The state equations can be obtained by expressing equations (5) and (6) in matrix form as:
[][ ][ ] [ ]
ẋ 1 0 1 0 x1 −2
ẋ 2 = 0 0 1 x2 + 7 u
ẋ3 −1 −4 −5 x 3 −26
[]
x1
y= [ 1 0 0 ] x 2 +u
x3
12
ẋ= Ax+ Bu (1)
y=Cx + Du (2)
Taking the Laplace transform of (1) assuming zero initial condition gives:
sX ( s )= AX ( s )+ BU ( s) (3)
From (3)
sX ( s )− AX ( s )=BU ( s)
( sI− A ) X ( s )=BU ( s )
−1
X ( s ) =( sI− A) BU ( s) (5)
Y ( s)
G ( s )= =C ( sI− A )−1 B+ D
U (s)
C[adj ( sI −A ) ]B
¿ +D
|sI− A|
Example 1
Determine the transfer function relating the output y (t ) to the input u(t ) for the system described
by the state space equation below.
13
[][
ẋ1
ẋ2
=
3 −4 x2][ ] [ ]
2 −1 x 1
+
1
−1
u
y= [ 1 0 ]
[]
x1
x2
Solution
A=
[ 23 −1
−4 ]
, B=[ ], C=[ 1
1
−1
0 ], D=0, I = [10 01]
The transfer function can be obtained using the relation:
G ( s )=
Y ( s)
=
[3
[ 1 0 ] s +4 −1 1
s−2 −1][ ]
U (s) 2
s +2 s−5
¿
[ s+ 4 −1 ] 1
2
[−1]
s + 2 s−5
( s +4 ) (1 )−1(−1)
¿ 2
s +2 s−5
s+5
¿ 2
s + 2 s−5
14
Example 1 can be solved using the following Matlab code:
Example 2
Determine the transfer function for the system described by the following state space equation:
[][
ẋ1 −3 1 x 1 0
= + u
ẋ2 −2 0 x 2 1 ][ ] [ ]
y= [ 1 0 ]
[]
x1
x2
Solution
A=
[−3 −1
−2 0 ], B=[ ], C=[ 1
0
1
0 ], D=0, I = [10 01]
The transfer function can be obtained using the relation:
adj ( sI −A )=
[−2s s+31 ]
|sI− A|=|( s+3 ) −1|=s ( s+ 3 )−2 (−1 )=s +3 s+2
2
2 s
15
G ( s )=
Y ( s)
=
[1 0 ] s [−2 ][ ]
1 0
s+3 1
U (s) 2
s +3 s +2
¿
[ s 1] 0
2
[1 ]
s + 3 s+ 2
1
¿ 2
s + 3 s+ 2
Example 3
Determine the transfer function of a linear system described by the following state equations:
[][ ][ ] [ ]
ẋ 1 −2 0 1 x1 1
ẋ 2 = 1 −2 0 x 2 + 0 u
ẋ3 1 1 −1 x 3 1
[]
x1
y= [ 2 1 −1 ] x 2 +u
x3
Solution
[ ] []
−2 0 1 1
A= 1 −2 0 , B= 0 ,C=[ 2 1 −1 ], D=1
1 1 −1 1
[ ][ ][ ]
s 0 0 −2 0 1 s +2 0 −1
( sI− A ) = 0 s 0 − 1 −2 0 = −1 s+ 2 0
0 0 s 1 1 −1 −1 −1 s +1
16
[ ]
| | | | | |
T
s+2 0 −1 0 −1 s +2
−
−1 s +1 −1 s+1 −1 −1
adj ( sI −A )= −
0
−1| −1
s +1 | | s +2
−1
−1
s+1 | | −
s+ 2 0
−1 −1 |
0
|
s+2
−1
0 | | − s +2
−1
−1
0 || s+2 0
−1 s +2 |
[ ]
2 T
s + 3 s+ 2 s+ 1 s +3
2
= 1 s +3 s +1 s +2
2
s+2 1 s + 4 s+ 4
[ ]
s2 +3 s+2 1 s+2
2
¿ s +1 s + 3 s+ 1 1
2
s +3 s+2 s +4 s +4
| |
s+ 2 0 −1
|sI− A|= −1 s +2 0
−1 −1 s+ 1
¿ ( s+2 ) |s+2
−1
0
s +1| |
−( 0 )
−1 0
−1 s+1 | |
+ (−1 )
−1 s +2
−1 −1 |
¿ ( s+2 ) ( s2 +3 s +2 )−0−( s+3 )
3 2 2
¿ s +3 s +2 s+ 2 s +6 s+ 4−s−3
3 2
¿ s +5 s +7 s +1
[ ][ ]
s2 +3 s +2 1 s+2 1
[ 2 1 −1 ] s+ 1 2
s +3 s+1 1
3 2
0 + s +5 s +7 s+1
s+3 s +2 s 2 +4 s+ 4 1
¿
s 3+5 s2 +7 s+1
[]
1
[(2 s¿¿ 2+6 s+ 4)+ ( s+1 )−(s+3) ¿ 2+ ( s 2+ 3 s+ 1 )−(s +2) ( 2 s +4 ) +1−( s2 + 4 s +4 ) ] 0 +s 3 +5 s 2 +7 s +1
1
¿ 3 2
s +5 s + 7 s+ 1
17
[]
1
[ 2 s2 +6 s+ 2 s +2 s +1 −s −2 s+1 ] 0 +s +5 s + 7 s+ 1
2 2 3 2
1
¿ 3 2
s +5 s +7 s+1
2 3 2
(2 s ¿¿ 2+6 s+2)+0+(−s −2 s +1)+ s +5 s +7 s+1
¿ ¿
s3 +5 s 2 +7 s +1
2 3 2
s + 4 s+3+ s + 5 s +7 s+1
¿ 3 2
s +5 s +7 s +1
3 2
s + 6 s +11s +4
3 2
s +5 s + 7 s +1
Example 4
Find the transfer function of the system represented by the following state and output equations:
[][ ][ ] [ ]
ẋ 1 0 1 0 x1 1
=
ẋ 2 0 0 +
1 x 2 −1 u
ẋ3 0 −4 −6 x 3 5
[]
x1
y= [ 1 0 0 ] x 2
x3
Solution
[ ] []
0 1 0 1
A= 0 0 1 , B= −1 , C=[ 1 0 0 ], D=0
0 −4 −6 5
18
[ ][ ][ ]
s 0 0 0 1 0 s −1 0
( sI− A ) = 0 s 0 − 0 0 1 = 0 s −1
0 0 s 0 −4 −6 0 4 s +6
[ ]
| | | | | |
T
s −1 0 −1 0 s
−
4 s+6 0 s +6 0 4
adj ( sI −A )= −
−1
4 | 0
s+ 6 | | | | | s
0
0
s +6
−
s −1
0 4
−1
s| 0
−1 | | | | | −s
0
0
−1
s −1
0 s
[ ]
2 T
s + 6 s +4 0 0
= s+ 6 2
s +6 s −4 s
1 s s
[ ]
s2 +6 s+ 4 s +6 1
¿ 0
2
s +6 s s
0 −4 s s
| |
s −1 0
|sI− A|= 0 s −1
0 4 s+ 6
¿ ( s) |4s −1
s+ 6 | |
−(−1 )
0 −1
0 s+ 6
+( 0 )| | |
0 s
0 4
¿ s ( s 2 +6 s+ 4 ) −0−0
3 2
¿ s +6 s + 4 s
[ ][ ]
s 2+ 6 s +4 s+6 1 1
[1 0 0 ] 0
2
s +6 s s −1
0 −4 s s 5
¿ 3 2
s +6 s +4 s
19
[]
1
[ s 2+ 6 s +4 s+6 1 ] −1
5
¿ 3 2
s +6s +4 s
( s 2 +6 s +4 )−(s+6)+5
¿ 3 2
s +6 s + 4 s
2
s +5 s +3
¿ 3 2
s +6s +4 s
Characteristic equation
|sI− A|=0
Eigenvalues
The eigenvalues of an nxn system matrix A are the roots of the characteristic equation:
|λI − A|=0
Eigenvalues of system matrix (A) are actually poles of the system’s transfer function. For a
stable system all the eigenvalues must have negative real part.
Example 1
20
A system has it’s a matrix given by
[ ]
4 −1 −1
A= −1 2 1
−1 1 2
Determine:
Solution
i. |λI − A|=¿
|[ ] [ ]| |[ ]|
λ 0 0 4 −1 −1 λ−4 1 1
0 λ 0 − −1 2 1 = 1 λ−2 −1 =0
0 0 λ −1 1 2 1 −1 λ−2
| | | | |
( λ−4 ) λ−2 −1 −( 1 ) 1 −1 + ( 1 ) 1 λ−2 =0
−1 λ−2 1 λ−2 1 −1 |
( ( λ−4 ) ( ( λ−2 ) ( λ−2 )−1) )−( ( λ−2 )+1 )+(−1−( λ−2 ))=0
3 2
λ −8 λ +17 λ−10=0
iii. Since the real parts of the eigenvalues are positive the system is unstable.
The eigenvalues in example 1 can be solved using the following Matlab code:
A=[ 4 -1 -1;-1 2 1;-1 1 2]
E=eig(A)
21
Eigenvectors
For each eigenvalue λ i, there is a corresponding eigenvector x i associated with it. The
eigenvector is a set of solutions in the form of a non-zero vector. Eigenvalues are unique but
eigenvectors are non-unique.
Ax=λx
( λI − A ) x=0
Example 2
[ ]
2 1 1
A= 2 3 4
−1 −1 −2
Determine:
i. Characteristics equation
ii. Eigenvalues
iii. Eigenvectors
Solution
i. |λI − A|=¿
|[ ] [ ]| |[ ]|
λ 0 0 2 1 1 λ−2 −1 −1
0 λ 0− 2 3 4 = −2 λ−3 −4 =0
0 0 λ −1 −1 −2 1 1 λ+ 2
| | | | |
( λ−2 ) λ−3 −4 − (−1 ) −2 −4 + (−1 ) −2 λ−3 =0
1 λ+2 1 λ+ 2 1 1 |
( ( λ−2 ) (( λ−3 )( λ+ 2 ) +4) ) + (−( 2 λ+4 ) +4 )−(−2−( λ−3 ))=0
22
( ( λ3− λ2−2 λ ) −2 λ2 +2 λ+ 4 ) −λ−1=0
3 2
λ −3 λ − λ+3=0
[ ][ ][ ] [ ]
1 0 0 2 1 1 xa 0
0 1 0− 2 3 4 xb = 0
0 0 1 −1 −1 −2 xc 0
[ ][ ] [ ]
−1 −1 −1 x a 0
−2 −2 −4 x b = 0
1 1 3 xc 0
Therefore x c =0
x b=−x a
Let
x a=1
Then
x b=−1
[]
1
v 1= −1
0
23
For λ=−1
(−I − A ) x=0
[ ][ ][ ] [ ]
−1 0 0 2 1 1 xa 0
0 −1 0 − 2 3 4 xb = 0
0 0 −1 −1 −1 −2 xc 0
[ ][ ] [ ]
−3 −1 −1 x a 0
−2 −4 −4 x b = 0
1 1 1 xc 0
−3 x a−x b −x c =0 (4)
−2 x a−4 x b−4 x c =0 (5)
x a + xb + x c =0 (6)
Therefore x a=0
x c =−x b
Let
x b=1
Then
x c =−1
Therefore the second eigenvector is:
[]
0
v 2= 1
−1
For λ=3
( 3 I − A ) x=0
[ ][ ][ ] [ ]
3 0 0 2 1 1 xa 0
0 3 0− 2 3 4 xb = 0
0 0 3 −1 −1 −2 xc 0
[ ][ ] [ ]
1 −1 −1 x a 0
−2 0 −4 x b = 0
1 1 5 xc 0
x a −x b−x c =0 (7)
24
−2 x a−4 x c =0 (8)
x a + xb +5 x c =0 (9)
[]
2
v 3= 3
−1
The eigenvector of A is
[ ]
1 0 2
V = [ v 1 v 2 v 3 ]= −1 1 3
0 −1 −1
The eigenvalues of example 2 can be obtained using the following Matlab code:
A=[ 2 1 1;2 3 4;-1 -1 -2]
[V,D]=eig(A)
The above code produces a diagonal matrix D of eigenvalues and a full matrix V whose columns
are the corresponding eigenvectors so that X*V = V*D.
y=Cx + Du (2)
It is possible to transform the state-space representation with state vector x into a state-space
representation with a state vector z .
25
Suppose the relation between the state vector is defined by the following transformation:
x=Pz (3)
P ż=APz +Bu
−1 −1
ż=P APz+ P Bu (4)
y=CPz + Du (5)
Hence, the transformation yields a new space representation. If the newly formed A matrix is
denoted by A z=P−1 AP , then A and A z have the following properties:
Example 1
[][ ][ ] [ ]
ẋ 1 0 1 0 x1 0
ẋ 2 = 0 0 1 x2 + 0 u
ẋ3 −2 −5 −7 x3 1
[]
x1
y= [ 1 0 0 ] x 2
x3
Transform the system to a new set of state variables z , where the new variables are related to the
original variables x as follows:
}
z 1=2 x1
z 2=3 x 1 +2 x 2 (a)
z 3=x 1+ 4 x 2 +5 x 3
Solution
[ ] []
0 1 0 0
A= 0 0 1 , B= 0 , C=[ 1 0 0 ] D=0
−2 −5 −7 1
26
From (a)
[ ] [ ][ ]
ż 1 2 0 0 x 1
ż 2 = 3 2 0 x 2 (b)
ż3 1 4 5 x3
From (3)
−1
z=P x (c)
[ ]
2 0 0
−1
P =3 2 0
1 4 5
[ ]
| | | | | |
T
2 0 3 0 3 2
+ − +
4 5 1 5 1 4
−| | | | | |
0 0
+
2 0
−
2 0
[ ]
4 5 1 5 1 4 T
10 −15 10
−1 −1 adjP
| | | | | |
+0
2
0
0
−2
3
0
0
+2
3
0
2
0
0
10 −8
0 4
P=( P ) = = =
[ ]
10 0 0
−15 10 0
[ ]
10 −8 4 0.5 0 0
¿ = −0.75 0.5 0
2(10)−0+0
0.5 −0.4 0.2
[ ][ ][ ]
2 0 0 0 1 0 0.5 0 0
−1
P AP= 3 2 0 0 0 1 −0.75 0.5 0
1 4 5 −2 −5 −7 0.5 −0.4 0.2
[ ][ ][ ]
0 2 0 0.5 0 0 −1.5 1 0
¿ 0 3 2 −0.75 0.5 0 = −1.25 0.7 0.4
−10 −24 −31 0.5 −0.4 0.2 −2.5 0.4 −6.2
[ ][ ] [ ]
2 0 0 0 0
−1
P B= 3 2 0 0 = 0
1 4 5 1 5
27
[ ]
0.5 0 0
CP=[ 1 0 0 ] −0.75 0.5 0 =[ 0.5 0 0 ]
0.5 −0.4 0.2
Hence
[ ] []
−1.5 1 0 0
ż= −1.25 0.7 0.4 z + 0 u
−2.5 0.4 −6.2 5
y= [ 0.5 0 0 ] z
A system in state space can be represented in diagonal form so that all system state are separated
or uncoupled as illustrated in the example below:
From the example, it can be seen that every state equation is a function of each state variable.
Therefore each differential equation can be solve independently
y=Cx + Du (2)
The state space model in (1) and (2) can be transform into diagonal form as follows:
−1 −1
ż=P APz+ P Bu (4)
y=CPz + Du (5)
In general, there are several methods of finding the transformation matrix P. It can be formed by
the use of the eigenvectors of A, that is
P=V
Note that the matrix P−1 AP is a diagonal matrix whose diagonal elements are the eigenvalues of
A.
Example 1
28
Consider a system represented in the state space by the following equations:
ẋ=
[−31 −31 ] x +[12] u
y= [ 2 3 ] x
Solution
A=
[−31 −31 ], B=[ 12], C=[ 2 3 ]
Eigenvalues
|λI − A|=0
|[ 0 λ] [ 1
|λI − A|= λ 0 − −3 1
−3
=
]| |
λ +3
−1
−1
|
λ+3
=0
( λ+ 3 ) ( λ+3 )−1=0
2
λ +6 λ+9−1=0
2
λ +6 λ+8=0
( λ+ 2 )( λ +4 )=0
Eigenvectors
( λI − A ) x=0
For λ=−2
[[ 0 −2 ][
−2 0 − −3 1
1 −3 ]][ xx ]=[−11 −11 ][ xx ]=[ 00]
1
2
a
x b=x a
Let
29
x a=1
Then
x b=1
[ 11]
v 1=
For λ=−4
b
−1 −1 ] [ x ] [ 0 ]
−1 x = 0 a
−x a−x b =0 (1)
−x a−x b =0 (2)
x b=−x a
Let
x a=1
Then
x b=−1
v 1=
[−11 ]
The eigenvector of A is therefore:
V = [ v 1 v 2 ]=
[ 11 −11 ]
Transformation matrix
30
P=V =
[ 1 1
1 −1 ]
[ −1 −1
] [ −1 1 ] 0.5 0.5
−1 −1
−1
P =
adjP −1 1
= = =
[ 0.5 −0.5]
|P|
|1 −1|
1 1 −2
P
−1
AP=
[ 0.5
0.5 −0.5 ] [ 1 −3 ] [1 −1 ] [−2 2 ] [ 1 −1 ] [ 0 −4 ]
0.5 −3 1 1 1
=
−1 −1 1 1
=
−2 0
−1
P B=
[0.5 0.5 1
[
0.5 −0.5 2 −0.5 ]
] ]=
[ 1.5
CP=[ 2 3 ]
[11 −11 ]= [5 −1]
Hence
ż=
[−20 −40 ] z +[−0.5
1.5
]u
y= [ 5 −1 ] z
Example 2
[ ][]
−5 −5 4 −1
ẋ= 2 0 −2 x+ 2 r
0 −2 −1 −2
y= [−1 1 2 ] x
Solution
31
[ ] []
−5 −5 4 −1
A= 2 0 −2 , B= 2 , C=[ −1 1 2 ]
0 −2 −1 −2
Eigenvalues
|λI − A|=0
|[ ] [ ]| | |
λ 0 0 −5 −5 4 λ+5 5 −4
|λI − A|= 0 λ 0 − 2 0 −2 = −2 λ 2 =0
0 0 λ 0 −2 −1 0 2 λ+1
| | |
( λ+ 5 ) λ 2 −5 −2 2 ±4 −2 λ =0
2 λ+1 0 λ +1 0 2 | | |
( λ+ 5 ) ( λ2 + λ−4 )−5 (−2 λ−2 )−4 (−4 )=0
( λ 3+ λ2−4 λ+ 5 λ2 +5 λ−20 ) + ( 10 λ+10 )+16=0
3 2
λ + 6 λ +11 λ+ 6=0
( λ+ 1 )( λ +2 ) ( λ+3 )=0
Eigenvectors
( λI − A ) x=0
For λ=−1
[ ][ ][ ] [ ][ ] [ ]
−1 0 0 −5 −5 4 xa 4 5 −4 x a 0
0 −1 0 − 2 0 −2 =
x b −2 −1 2 x b = 0
0 0 −1 0 −2 −1 xc 0 2 0 xc 0
4 x a+ 5 x b −4 x c =0 (1)
−2 x a−x b +2 x c =0 (2)
2 x b=0 (3)
From (3)
x b=0 (4)
32
From (5) or (6)
x a=x c
Let
x a=1
Then
x c =1
[]
1
v 1= 0
1
For λ=−2
[ ][ ][ ] [ ][ ] [ ]
−2 0 0 −5 −5 4 xa 3 5 −4 x a 0
0 −2 0 − 2 0 −2 x b = −2 −2 2 x b = 0
0 0 −2 0 −2 −1 xc 0 2 −1 x c 0
3 x a +5 x b −4 x c =0 (1)
−2 x a−2 x b+ 2 x c =0 (2)
2 x b−x c =0 (3)
From (3)
x c =2 x b (4)
Let
x b=1 (5)
Then
x c =2 (6)
x a=1 (7)
33
[]
1
v 2= 1
2
For λ=−3
[ ][ ][ ] [ ][ ] [ ]
−3 0 0 −5 −5 4 xa 2 5 −4 x a 0
0 −3 0 − 2 0 −2 x b = −2 −3 2 xb = 0
0 0 −3 0 −2 −1 xc 0 2 −2 x c 0
2 x a+ 5 x b −4 x c =0 (1)
−2 x a−3 x b+ 2 x c =0 (2)
2 x b−2 x c =0 (3)
From (3)
x c =x b (4)
Let
x b=1 (5)
Then
x c =1 (6)
x a=−0.5 (7)
[ ]
−0.5
v 3= 1
1
[ ]
1 1 −0.5
V = [ v 1 v 2 v 3 ]= 0 1 1
1 2 1
Transformation matrix
34
[ ]
1 1 −0.5
P=V = 0 1 1
1 2 1
[ ]
| | | | | |
T
1 1 0 1 0 1
−
2 1 1 1 1 2
−|1 −0.5
| | | | |
1 −0.5
−
1 1
[ ]
2 1 1 1 1 2 T
−1 1 −1
adjP
−1
|1 −0.5
1 1 | | | | |
− 1 −0.5
0 1
1
0
1
1
−2 1.5 −1
1.5 −1 1
P = = =
[ ][ ]
T
−1 1 −1 −1 −2 1.5
−2 1.5 −1 1 1.5 −1
[ ]
1.5 −1 1 −1 −1 1 −2 −4 3
¿ = = 2 3 −2
−1+1+ 0.5 0.5
−2 −2 2
[ ][ ][
][ ][ ][ ]
−2 −4 3 −5 −5 4 1 1 −0.5 2 4 −3 1 1 −0.5 −1 0 0
−1
P AP= 2 3 −2 2 0 −2 0 1 1 = −4 −6 4 0 1 1 = 0 −2 0
−2 −2 2 0 −2 −1 1 2 1 6 6 −6 1 2 1 0 0 −3
[ ][ ] [ ]
−2 −4 3 −1 −12
−1
P B= 2 3 −2 2 = 8
−2 −2 2 −2 −6
[ ]
1 1 −0.5
CP=[ −1 1 2 ] 0 1 1 =[ 1 4 3.5 ]
1 2 1
Hence
[ ][ ]
−1 0 0 −12
ż= 0 −2 0 z+ 8 u
0 0 −3 −6
y= [ 1 4 3.5 ] z
The process of determining the time domain solution of the state equation is similar to that of
solving a simple first order differential equation.
35
Consider a simple first order differential equation given by:
ẋ=ax (1)
x (0)
X ( s) = (2)
(s−a)
Taking the inverse Laplace transform of (2) gives the solution of the differential equation in (1)
as:
at
x (t )=e x (0) (3)
Homogenous system
For homogenous system u(t )=0 hence the state equation in (1) becomes:
¿ Φ (t)x ( 0 ) (6)
At
Φ ( t )=e is called the state-transition matrix, since it performs a transformation on x (0),
taking x from the initial state, x ( 0 ) , to the state x (t) at any time, t .
Each term of Φ ( t ) is the sum of exponentials generated by the system's poles (eigenvalues).
i. Φ ( 0 )=I
ii. Φ̇ ( 0 )= A
36
The state-transition matrix Φ ( t ) can be obtained using two techniques:
1. Classical technique
2. Laplace technique
Classical technique
Example 1
Obtain the state-transition matrix Φ ( t ) of the following system using classical method:
[][
ẋ1
=
0 1 x1
ẋ2 −2 −3 x 2 ][ ]
Solution
A=
[−20 −31 ]
Eigenvalues
|λI − A|=0
|[ ] [
|λI − A|= λ 0 − 0
0 λ
1
−2 −3 ]| |
=
λ
2
−1
|
λ+ 3
=0
λ ( λ +3 ) +2=0
2
λ +3 λ +2=0
( λ+ 1 )( λ +2 )=0
Since each term of the state-transition matrix is the sum of responses generated by the poles
(eigenvalues), we assume a state-transition matrix of the:
[ ]
−t −2 t −t −2 t
k 1 e +k 2 e k3 e + k4 e
Φ ( t )= −t −2 t −t −2 t (1)
k 5 e +k 6 e k7 e + k8 e
Φ ( 0 )=I
[ k 1 +k 2 k 3 + k 4
k 5 +k 6 k 7+ k 8
=
][ ]
1 0
0 1
37
Hence
k 1+ k 2=1 (2)
k 3+ k 4 =0 ⇒ k 3 ¿−k 4 (3)
Φ̇ ( 0 )= A
[ ][ ]
−t −2t −t −2 t
−k 1 e −2 k 2 e −k 3 e −2k 4 e
= 0 1
−t
−k 5 e −2 k 6 e
−2t −t
−k 7 e −2k 8 e
−2 t
−2 −3
k 2=−1
Hence
k 1=2
k 4=−1
Hence
k 3=1
38
k 6=2
Hence
k 5=−2
k 8=2
Hence
k 7=−1
Therefore
[ ]
−t −2 t −t −2 t
2 e −e e −e
Φ ( t )= −t −2t
−2 e +2 e −e−t + 2 e−2 t
Laplace technique
ẋ= Ax (1)
sX ( s )−x ( 0 )= AX ( s)
sX ( s )− AX ( s )=x ( 0 )
(sI− A) X ( s )=x ( 0 )
−1
X ( s ) =( sI− A) x ( 0 ) (2)
X ( s ) =Φ ( s ) x ( 0 ) (3)
Where
−1
Φ ( s ) =(sI− A) (4)
39
−1
x (t)=L [Φ ( s ) ]x ( 0 )
−1
Φ ( t )=L [Φ ( s ) ]
Example 2
Obtain the state-transition matrix Φ ( t ) of the following system using Laplace method:
[][
ẋ1
=
0 1 x1
ẋ2 −2 −3 x 2 ][ ]
Solution
[−20 −31 ]
A=
[ ] [ ]
[ ]
s+3 1 s+3 1 s+3 1
adj ( sI− A ) −2 s −2 s 2 2
= s +3 s +2 s + 3 s+ 2
−1
( sI− A ) = =
|sI −A|
|2 s +3| −2
2
s −1 s +3 s +2 s
2 2
s +3 s +2 s + 3 s+ 2
[ ]
s +3 1
(s+1)(s+2) (s+1)(s+2)
¿
−2 s
(s+1)(s+2) (s+1)(s+2)
s+ 3 A B
= +
( s+1)( s+2) (s +1) ( s+2)
( A+ B ) s + ( 2 A + B )=s+3
2 A + B=3 (2)
40
A=2
Hence
B=1−2=−1
1 A B
= +
( s+1)( s+2) (s +1) ( s+2)
( A+ B ) s + ( 2 A + B )=1
2 A + B=1 (4)
A=1
Hence
B=−1
−2 A B
= +
( s+1)( s+2) (s +1) ( s+2)
( A+ B ) s + ( 2 A + B )=−2
2 A + B=−2 (6)
A=−2
Hence
B=2
41
s A B
= +
( s+1)( s+2) (s +1) ( s+2)
( A+ B ) s + ( 2 A + B )=s
2 A + B=0 (8)
A=−1
Hence
B=2
Therefore
[ ]
2 1 1 1
− −
( sI− A )−1= (s+1) (s +2) (s +1) ( s+ 2)
−2 1 −1 2
+ +
( s+1 ) (s+2) ( s+1 ) (s +2)
[ ]
−t −2t −t −2 t
2 e −e e −e
Φ ( t )=L [ Φ ( s ) ] =L [ ( sI− A ) ]=
−1 −1 −1
−t −2 t
−2 e +2 e −e−t +2 e−2 t
Non-homogenous system
ẋ (t)− Ax (t)=Bu(t )
42
d − At −At
[e x ( t ) ]=e Bu(t)
dt
t
x ( t )−x ( 0 )=∫ e
− At −Aτ
e Bu(τ )dτ
0
t
x (t )=e x ( 0 ) +∫ e
At A (t −τ)
Bu(τ )dτ
0
t
x (t )=Φ ( t ) x ( 0 )+∫ Φ ( t−τ ) Bu (τ )dτ (2)
0
Where
At
Φ ( t )=e
A (t−τ )
Φ ( t−τ )=e
Example 1
[ ][ ẋ1 (t )
=
0 1 x 1 (t) 0
+ u(t)
ẋ2 (t ) −8 −6 x 2 (t) 1 ][ ] [ ]
y ( t ) =[ 1 0 ]
[ ]
x 1 (t)
x 2 (t)
x ( 0 )=
[ 10]
u ( t )=1
43
i. Determine the state transition matrices, Φ ( t ) using Laplace method.
ii. Solve for x (t) and y (t ).
iii. Use Matlab to plot the response y (t )
Solution
A=
[−80 −61 ], B=[ 01], C=[ 1 0 ], x ( 0)=[ 10]
( sI− A ) =[ s 0 ]−[ 0
0 s −8 −6 ] [ 8 s+6 ]
1 s −1
=
[ ] [
[
]
]
s+6 1 s+ 6 1 s+6 1
(
adj sI− A ) −8 s −8 s 2 2
= s + 6 s+ 8 s + 6 s +8
−1
( sI− A ) = =
|sI −A|
|8 s +6| −8
2
s −1 s +6 s+ 8 s
2 2
s + 6 s+ 8 s + 6 s +8
[ ]
s+6 1
(s+ 2)(s+ 4) ( s+2)( s+ 4)
¿
−8 s
(s+ 2)(s+ 4) ( s+2)( s+ 4)
s+6 A B
= +
( s+2)( s+ 4) (s+2) (s+ 4)
( s+ 4 ) A + ( s+2 ) B=s+6
( A+ B ) s + ( 4 A +2 B )=s +6
A=2
Hence
B=1−2=−1
44
1 A B
= +
( s+2)( s+ 4) (s+2) (s+ 4)
( s+ 4 ) A + ( s+2 ) B=1
( A+ B ) s + ( 4 A +2 B )=1
4 A +2 B=1 (4)
A=0.5
Hence
B=−0.5
−8 A B
= +
( s+2)( s+ 4) (s+2) (s+ 4)
( s+ 4 ) A + ( s+2 ) B=−8
( A+ B ) s + ( 4 A +2 B )=−8
A=−4
Hence
B=4
s A B
= +
( s+2)( s+ 4) (s+2) (s+ 4)
( s+ 4 ) A + ( s+2 ) B=s
( A+ B ) s + ( 4 A +2 B )=s
45
Comparing coefficients gives:
A=−1
Hence
B=2
Therefore
[ ]
2 1 0.5 0.5
− −
( sI− A )−1= (s+2) (s+ 4) (s +2) (s +4)
−4 4 −1 2
+ +
( s+2 ) (s+ 4) ( s+2 ) (s+ 4)
[ ]
−2t −4t −2 t −4 t
2 e −e 0.5 e −0.5 e
Φ ( t )=L
−1
[ Φ ( s ) ]=L−1 [ ( sI− A )−1 ]= −2 t −4 t
−4 e + 4 e −e−2t +2 e−4 t
t
x (t )=Φ ( t ) x ( 0 )+∫ Φ ( t−τ ) Bu ( τ ) dτ
0
[ ][ ] [ ][ ]
−2 t −4 t −2 t −4 t t −2(t −τ) −4 (t −τ ) −2(t−τ ) −4(t −τ)
2 e −e 0.5 e −0.5 e 1 2e −e 0.5 e −0.5 e 0
¿ −2 t −4 t +∫ dτ
−4 e + 4 e −e−2t +2 e−4 t 0 0 −4 e−2 (t−τ )
+4 e
−4(t −τ)
−e
−2 (t −τ)
+2 e
−4 (t−τ )
1
[ ] ∫[ ]
−2 t −4 t t −2 (t −τ ) −4 (t−τ )
2 e −e 0.5 e −0.5 e
¿ −2 t −4 t + −2(t−τ ) −4 (t −τ )
dτ
−4 e + 4 e 0 −e +2 e
[ ][ ]|
t
−2 t −4 t −2 (t −τ) −4 (t −τ )
2 e −e 0.25 e −0.125 e
¿ −2 t −4 t + −2 ( t −τ ) −4 (t −τ )
−4 e + 4 e −0.5 e + 0.5 e 0
[ ] [[ ][ ]]
−2 t −4 t −2(t−t ) −4 (t−t ) −2(t −0 ) −4 (t−0 )
2 e −e 0.25 e −0.125 e 0.25 e −0.125 e
¿ −2 t −4 t + −2 ( t−t ) −4 (t−t ) − −2 (t −0) −4 (t−0)
−4 e + 4 e −0.5 e +0.5 e −0.5 e +0.5 e
[ ] [[ ][ ]]
−2 t −4 t −2t −4 t
2 e −e 0.25−0.125 0.25 e −0.125 e
¿ −2 t −4 t + −
−4 e + 4 e −0.5+0.5 −0.5 e−2 t +0.5 e−4 t
46
[ ][ ]
−2 t −4 t −2 t −4t
2 e −e 0.125−0.25 e +0.125 e
¿ −2 t −4 t +
−4 e + 4 e 0.5 e−2 t−0.5 e−4 t
[ ]
−2t −4 t
0.125+ 1.75 e −0.875 e
¿
−3.5 e−2 t +3.5 e− 4 t
y ( t ) =C x 1 (t)
[ ]
−2 t −4 t
0.125+1.75 e −0.875 e
y ( t ) =[ 1 0 ]
−3.5 e−2 t +3.5 e−4 t
−2 t −4 t
¿ 0.125+1.75 e −0.875 e
t=(0:0.1:30);
y=0.125+1.75*exp(-2*t)-0.875*exp(-4*t);
plot(t,y)
grid
xlabel('t')
ylabel('y(t)')
0.9
0.8
0.7
0.6
y(t)
0.5
0.4
0.3
0.2
0.1
0 5 10 15 20 25 30
t
Example 2
For state & output equation and initial state vector shown below, using classical technique:
47
a. determine the state transition matrices, φ(t) using classical technique.
b. Solve for x(t).
c. Solve for output y(t)
[ ][
ẋ1 (t )
ẋ2 (t )
=
0
−1 −3
2 x 1 (t) 0
][ ] [ ]
+ u(t )
x 2 (t) 1
y ( t ) =[ 1 0 ]
[ ]
x 1 (t)
x 2 (t)
x ( 0 )=
[ 00]
u ( t )=1
Solution
A=
[−10 −32 ], B=[ 01], C=[ 1 0 ], D=0, x ( 0 )= [ 00], u ( t )=1
a.
|λI − A|=0
|[ ] [
|λI − A|= λ 0 − 0
0 λ
2
−1 −3
=
λ
1 ]| | −2
|
λ+ 3
=0
λ ( λ +3 ) +2=0
2
λ +3 λ +2=0
( λ+ 1 )( λ +2 )=0
Since each term of the state-transition matrix is the sum of responses generated by the poles
(eigenvalues), we assume a state-transition matrix of the:
[ ]
−t −2 t −t −2 t
k 1 e +k 2 e k3 e + k4 e
Φ ( t )= −t −2 t −t −2 t (1)
k 5 e +k 6 e k7 e + k8 e
Φ ( 0 )=I
[ k 1 +k 2 k 3 + k 4
k 5 +k 6 k 7+ k 8
=
1 0
0 1 ][ ]
48
Hence
k 1+ k 2=1 (2)
k 3+ k 4 =0 ⇒ k 3 ¿−k 4 (3)
Φ̇ ( 0 )= A
[ ][ ]
−t −2t −t −2 t
−k 1 e −2 k 2 e −k 3 e −2k 4 e
= 0 2
−t
−k 5 e −2 k 6 e
−2t −t
−k 7 e −2k 8 e
−2 t
−1 −3
k 2=−1
Hence
k 1=2
k 4=−2
Hence
k 3=2
49
k 6=1
Hence
k 5=−1
k 8=2
Hence
k 7=−1
Therefore
[ ]
−t −2 t −t −2 t
2e −e 2 e −2 e
Φ ( t )= −t −2 t
−e +e −e−t +2 e−2 t
b.
t
x (t )=Φ ( t ) x ( 0 )+∫ Φ ( t−τ ) Bu ( τ ) dτ
0
[ ][ ] [ ][ ]
−t −2 t −t −2 t t −(t −τ) −2(t−τ ) −(t −τ ) −2(t−τ )
2 e −e 2e −2 e 0 2e −e 2e −2 e 0
¿ −t −2 t −t −2 t +∫ −(t −τ ) −2(t−τ ) −(t−τ ) −2(t−τ )
dτ
−e +e −e +2 e 0 0 −e +e −e +2 e 1
[ ]
t −(t −τ) −2(t−τ )
2e −2 e
¿∫ −(t−τ ) −2(t−τ )
dτ
0 −e +2 e
[ ]|
t
− ( t −τ ) −2(t −τ)
2e −e
¿
−e − ( t−τ )
+e−2(t −τ) 0
[[ ][ ]]
− ( t−t ) −2 (t −t) ( ) −2(t−0 )
2e −e 2 e− t −0 −e
¿ − ( t −t ) −2 (t −t) − − ( t−0 ) −2(t−0 )
−e +e −e +e
[[ ][ ]]
−t −2 t
2−1 2e −e
¿ −
−1+ 1 −e−t +e−2 t
[ ]
−t −2 t
1−2 e +e
¿
e−t−e−2t
c.
y ( t ) =C x 1 (t)
50
[ ]
−t −2t
1−2 e + e
y ( t ) =[ 1 0 ]
e−t −e−2 t
−t −2t
¿ 1−2 e + e
Controllability
It is possible to have a system in which the state variables have no connection with the input.
Such systems are said to be uncontrollable, because no input can be used to affect their
behaviour.
[ ] [ ][ ] [ ]
ẋ1
ẋ2
=
1 0 x1 0
+ u
0 2 x2 1
ẋ 1=x 1
ẋ 2=2 x 2+u
From the above equations, it can be seen that x 2can be changed by u, but x 1 cannot be effected
by changing u. Hence the state x 1 is uncontrollable. Therefore the system is uncontrollable.
[ ] [ ][ ] [ ]
ẋ1
ẋ2
=
1 3 x1 0
+ u
0 2 x2 1
ẋ 1=x 1+ 3 x 2
ẋ 2=2 x 2+u
From the above equations, it can be seen that x 2can be changed by u directly and x 1 can be
controlled by u indirectly through x 2, hence the states x 1 and x 2 are controllable. Therefore the
system is controllable.
Kalman’s Test
Consider a system:
ẋ= Ax+ Bu
y=Cx
51
The system is completely controllable if and only if the controllability matrix
2 n−1
Q=[B AB A B … … … A B] has a full rank (rank of n). Where n is the number of states.
Example 1
1. [ ] [ ][ ] [ ]
ẋ1
=
2 1 x1 1
+ u
ẋ2 −1 2 x 2 1
2. [ ] [ ][ ] [ ]
ẋ1
ẋ2
=
2 0 x1 1
+ u
1 1 x2 1
Solution
1.
A=
[−12 12], B=[ 11]
Q= [ B AB ] =
[[ 11] [−12 12][ 11]]=[ 11 31]
detQ=|
1 1|
1 3
=1−3=−2≠ 0
Since detQ ≠0 , the matix Q has full rank, hence the system is completely controllable.
2.
A=
[ ] []
2 0
1 1
, B=
1
1
Q= [ B AB ] =
[[ 11] [ 21 01][ 11]]=[ 11 22]
detQ=|
1 2|
1 2
=2−2=0
Since detQ=0 , the matix Q has no full rank, hence the system is not completely
controllable.
Gilbert’s Test
52
y=CPz
Recall
[ ]
λ1 0 ⋯ 0
−1 0 λ2 ⋯ 0
P AP=
⋮ ⋯ ⋱ ⋮
0 ⋯ ⋯ λn
The system is said to be completely state controllable if diagonal elements of P−1 AP are distinct
and no row of P−1 B has all zero elements.
Example 2
1. [][
ż2 ][ ] [ ]
ż1 −1 0 z 1 2
= + u
0 −2 z 2 3
2. [][
ẋ1 −1
ẋ2
=
0 −5 ][ x ] [ 0 ]
0 x 1
2
+ u
4
Solution
1. The matrix [−10 −20 ] has distinct diagonal elements and there is no zero row in [ 23]
matrix. Hence the system is completely state controllable.
2. The matrix [
−1 0
0 −5 ]
has distinct diagonal elements, but matrix
4
0 []
has a zero row.
Observability
It is possible to have a system in which some state variables do not affect any of the outputs. In
this case, the systems are said to be unobservable, since some of the state variables cannot be
observed from the output of the system.
[ ] [ ][ ] [ ]
ẋ1
ẋ2
=
1 0 x1 0
+ u
0 2 x2 1
[ ]
[]
y= 0 1
x1
x2
53
ẋ 1=x 1
ẋ 2=2 x 2+u
y=x 2
From the above equations, it can be concluded that the system is unobservable, since the state x 1
does not affect the output y nor does it affect the state x 2 (which is coupled to the output)
[ ] [ ][ ] [ ]
ẋ1
ẋ2
=
1 3 x1 0
+ u
0 2 x2 1
[ ]
[]
y= 0 1
x1
x2
ẋ 1=x 1+ 3 x 2
ẋ 2=2 x 2+u
y=x 2
From the above equations, it can be concluded that the system is observable, since the state x 1
affected the output y indctly through x 2 it affect the state x 2 (which is coupled to the output)
From the above equations, it can be seen that x 2can affect y directly and x 1 can affect y
indirectly through x 2, hence the states x 1 and x 2 are observable. Therefore the system is
observable.
Kalman’s Test
Consider a system:
ẋ= Ax+ Bu
y=Cx
54
[ ]
C
CA
2
The system is completely observable if and only if the observability matrix O= CA has a
⋮
n−1
CA
full rank (rank of n ). Where n is the number of states.
Example 1
1. [ ] [ ][ ] [ ]
ẋ1
=
2 1 x1 1
ẋ2 −1 2 x 2 1
x
+ u , y= [ 1 1 ] 1
x2 []
2. [ ] [ ][ ] [ ]
ẋ1
ẋ2
=
2 0 x1 1 x
+ u , y= [ 0 1 1
0 1 x2 1 x2
]
[]
Solution
1.
A=
[−12 12], C=[ 1 1 ]
[ ]
1 1
O=
C
[ ]
CA
=
[ 1 1] 2 1 =
−1 2
1 1
[
1 3 ] [ ]
detO= |11 31|=1−3=−2≠ 0
Since detO ≠ 0 , the matix O has full rank, hence the system is completely observable.
3.
A=
[ 20 01], C=[ 0 1]
[ ]
0 1
O= C
[ ]
CA
=
[0 1] 2 0 =
0 1
0 1
0 1 [ ] [ ]
detO= |11 22|=0−0=0
55
Since detO=0 , the matix O is not of full rank, hence the system is not completely
observable.
Gilbert’s Test
y=CPz
The system is said to be completely state observable if diagonal elements of P−1 AP are distinct
and none of the columns of CP has all zero elements.
Example 2
1. [ ] [ ][ ] [ ]
ż1 −1 0 z 1 2
ż2
= + u,
0 −2 z 2 3
y= [ 2 3 ]
[]
z1
z2
2
=[
−1 0 x 1
2
y= [ 0 2 ]
[]
z1
z2
Solution
1. The system is completely state observable, because all the diagonal elements of P−1 AP
are distinct and non of the columns of CP are zeros
2. The system is not completely state observable, because a column in CP is zero even
though all the diagonal elements of P−1 AP are distinct.
The stability of LTI (linear time invariant) systems can be determined using classical methods
(i.e. Routh Hurwitz, Nyquest, etc). However, when the system is LTV (linear time variant) or
nonlinear the above criteria may not be successfully applied. The stability of such systems can be
analyzed using Lyapunov methods.
This method consists of all procedures of stability analysis in which the solution of the
differential equation is required. For nonlinear system, the nonlinearity is linearized around a
given point. If the roots of the linear model have negative real parts, then the original nonlinear
system is stable. If any of the roots is zero, then no conclusion can be drawn.
56
Lyapunov Second Method (Direct Method)
A system is said to be asymptotically stable in the sense of Lyapunov if a positive definite scalar
V (x ) (Lyapunov function) can be found whose first derivative with respect to time is negative
dV (x )
along the trajectory of the system (i.e is negative definite).
dt
{V ( x ) >0 for x ≠ 0
V ( x ) =0 for x=0
positive definite
Example 1
[][
ẋ1
=
0 1 x1
ẋ2 −1 −2 x 2 ][ ]
ẋ 1=x 1
ẋ 2=−x 1−2 x 2
Let
2 2
V ( x )=x 1+ x 2
V̇ ( x )=2 x1 ẋ 1+2 x 2 ẋ 2
¿ 2 x1 (x 1 )+ 2 x 2 (−x 1−2 x 2)
2 2 2 2
¿ 2 x1 −2 x 1−4 x 2=−4 x 2
Therefore V ( x ) is positive definite and V̇ ( x ) is negative definite, hence it can be concluded that
the system is asymptotically stable in the sense of Lyapunov.
The task of applying Lyapunov second method is determining the suitable scalar function V ( x ).
Even if V ( x ) is found, the first derivative may not be negative definite.
57
Consider the system:
ẋ= Ax
Let
T
V ( x )=x Px
The matrix P can be found by solving (4) and the positive definiteness can be checked using
Sylvester’s criterion.
Sylvester’s criterion states that a matrix is positive definite if the determinants of the successive
matrix are positive.
Example 1
Solution
58
A=
[−10 −21 ], T
A =
[ 01 −1
−2 ] I=
[ 0 1]
, [p p ]
1 0 P= p p 1
2
2
T
A P+ P A=−I
2
2
3
1
2
2
[ p −2 p p −2 p ] [− p p −2 p ]=[−10 −10 ]
1
−p 2 −p
2
+
2
− p p −2 p
3
3
2
3
1
2
2
[ −2 p 2
p 1−2 p 2− p3
p1−2 p2− p3 −1 0
2 p 2−4 p 3
=
0 −1 ][ ]
−2 p 2=−1 ⟹ p 2=0.5 (1)
Hence
P=
[ p1
p2
p2
p3
=
][
1.5 0.5
0.5 0.5 ]
The positive definiteness oh matrix P can be checked using Sylvester’s criterion.
P is positive definite, since all the determinants of the successive matrix are all positive, hence
the system is stable
Example 2
59
Given that [][
ẋ1
ẋ2
=
0 1 x1
−3 4 x2 ][ ]
Determine the stability of the system using Lyapunov second method
Solution
A=
[ 0 1
−3 4 ]
,
T
A =
[ 0 −3
1 4 ] [ ]
I=
1 0 P= p 1
0 1
,
p2 [ p2
p3 ]
T
A P+ P A=−I
[ 0 −3 p1
1 4 p2 ][ ] [ ][
p2 p 1
+
p3 p 2
p2 0 1
p3 −3 4
=− ] [ ]
1 0
0 1
[ −3 p2
p 1 + 4 p2
−3 p 3
+
][
−3 p 2
p 2+ 4 p3 −3 p3
p1 +4 p2 −1 0
p2 +4 p3
=
0 −1][ ]
[ −6 p2
p 1+ 4 p2−3 p3
p 1+ 4 p2−3 p3 −1 0
2 p2 +8 p 3
=
0 −1 ][ ]
−6 p2=−1 ⟹ p2=0.167 (1)
2 p 2+ 8 p 3=−1 (3)
−1.333
2 ( 0.167 ) +8 p3=−1⟹ p3= =−0.167 (4)
8
Hence
P=
[ p1
p2 p3
=
][
p2 −1.167 0.167
0.167 −0.167 ]
The positive definiteness oh matrix P can be checked using Sylvester’s criterion.
60
Determinant of second minor ¿ [
−1.167 0.167
0.167 −0.167 ]
=0.195−0.028=0.167 which is positive.
P is not positive definite, since not all the determinants of the successive matrix are all positive,
hence the system is unstable
y=Cx (2)
Equations (1) and (2) can be represented as state diagram as shown below:
In state feedback control, each state variable x i is fed back through a gain k i to form the input to
the system u as illustrated in the figure below:
[]
x1
x2
¿ r + [ −k 1−k 2 −…−k n ]
⋮
xn
61
¿ r −Kx (3)
Where r is the reference input, K is the controller gain vector and x is the state vector.
¿ Ax−BKx+ Br
¿ ( A−BK ) x+ Br
¿ Ac x+ Br
ϕ ( s )=|sI− A c|=0
Pole placement (assignment) is the process of moving the poles of a system to a desired location
so that a desired response is obtained. The poles are moved to a specified location by means of
state feedback.
D ( s )=( s− p1 ) ( s− p2 ) … … ..(s− pn )
For pole placement the the closed loop characteristics equation is the same as the desired
characteristic equation, that is:
ϕ ( s )=D( s)
Example 1
Given that
[][
ẋ1 −1 0 x 1 1
ẋ2
= + u
0 −4 x 2 1 ][ ] [ ]
62
y= [ 1 1 ]
[]
x1
x2
Design a state feedback controller so that the poles are at (-2, -3).
Solution
( s+2 ) ( s +3 ) =0
2
s +5 s +6=0
¿|sI− A+ BK |=0
¿
|[ ] [ s 0
0 s
−
−1 0 1
][]
+ [ k 1 k 2 ] =0
0 −4 1 |
¿
[| s+01 0
][k k
+ 1 2 =0
s+ 4 k 1 k 2 ]|
|
¿
s+1+ k 1
k1
k2
s+ 4+k 2
=0
|
(s+1+ k 1) ( s +4 +k 2) −k 1 k 2=0
2
s +4 s +k 2 s +s +4 +k 2+ k 1 s+ 4 k 1+ k 1 k 2−k 1 k 2=0
2
s + ( 5+ k 1+ k 2 ) s +4 +4 k 1 +k 2=0
ϕ ( s )=D( s)
2 2
s +5 s +6=s + ( 5+k 1+ k 2 ) s+ 4+ 4 k 1+ k 2
Therefore
5+ k 1+ k 2=5 ⟹ k 1 +k 2 =0 (1)
63
4 + 4 k 1 +k 2 =6 ⟹ 4 k 1+ k 2=2 (2)
3 k 1=2⟹ k 1 =2/3
Hence
k 2=−2/3
K= [ 2 /3 −2/3 ]
Note that pole placement method can only be applied to completely state controllable system.
Therefore before designing a pole placement controller for a particular system, the controllability
of the system must be confirmed.
Example 2
For the plant below, design a controller to yield a10% overshoot and a settling time of 5 second.
[][ ẋ1
=
0 1 x1 1
][ ] [ ]
+ u
ẋ2 −1 −2 x 2 1
y= [ 1 0 ]
[]
x1
x2
Solution
A=
[−12 12], B=[ 11], C=[ 1 0 ], T s=5 s, %OS=10 %
4
T s= =5⟹ ζ ω n=0.8 (1)
ζ ωn
−ζπ
=ln ( 0.1 ) =−2.3
√1−ζ 2
Squaring both sides gives:
64
2 2
ζ π
=5.3 ⟹ ζ π =5.3 ( 1−ζ ) ⟹ ζ π + 5.3 ζ =5.3
2 2 2 2 2 2
2
1−ζ
Hence
ζ=
√ 2
5.3
π +5.3
=0.59 (2)
0.8 0.8
ω n= = =1.36
ζ 0.59
¿|sI− A+ BK |=0
|[ ] [
¿
s 0
0 s
−
0 1 1
][]
+ [ k k ] =0
−1 −2 1 1 2 |
[| 1s
¿
−1
][
k k
+ 1 2 =0
s +2 k 1 k 2 ]|
¿
| s +k 1 k 2−1
k 1+1 s +2+k 2
=0
|
( s+ k 1 )( s +2+k 2 ) −(k 1+1)(k 2−1)=0
2
s +2 s +k 2 s +k 1 s +2 k 1 +k 1 k 2−k 1 k 2+ k 1−k 2+ 1=0
2
s + ( 2+ k 1+ k 2 ) s +1+3 k 1−k 2=0
ϕ ( s )=D( s)
65
Therefore
4 k 1=0.5 ⟹ k 1=0.125
Hence
k 2=−0.4−0.125=−0.525
K= [ 0.125 −0.525 ]
Controller design upon relies on the state variables for feedback through the gain K . However,
sometimes due to system configuration or cost, the state variables (or some of the state variables)
cannot be accessed (measured). These inaccessible states can be estimated using an observer.
An observer (estimator) is used to calculate state variables that are not accessible from the plant
as illustrated in the block diagram below.
66
The Observer is a model of the plant as illustrated in the figure below:
Where
y is plant output
^y is estimated output
From the above diagram the observer model can be written as:
^ẋ= A ^x +Bu+ L( y−^y ) (1)
67
^y =C ^x (2)
y=Cx (4)
The error between the estimated model (observer) and the actual model (plant) is:
¿
^ẋ− ẋ= A ( x^ −x ) + L( y −^y ) (5)
γ̇ =( A− LC)γ (6)
The eigenvalues of ( A−LC) which are the poles of the observer can be found from the
characteristics equation:
Similar to pole placement controller design, the characteristic equation obtained the will be
equated with the desired characteristic equation for the observer to obtain the observer matrix L.
Note that observer design can only be applied to observable system. Therefore before designing
a observer for a particular system, the observability of the system must be confirmed.
Example 1
Design a full order state observer for the plant with poles at [-5 -6]
68
A=
[ 00 −11 ], C=[ 1 0 ], L=
[]
l1
l2
¿|sI− A+ LC|=0
|[ ] [ ] [ ] |
l
¿ s 0 − 0 1 + 1 [ 1 0 ] =0 k
0 s 0 −1 l 2
|[ ] [ ]|
l 0
¿ s −1 + 1
0 s+1 l 2 0
=0
|
¿
s+l 1 −1
l2 |
s+ 1
=0
( s+l1 ) ( s +1 ) +l2=0
2
s + ( l 1 +1 ) s +l 1+l 2=0
ϕ ( s )=D( s)
2 2
s + ( l 1 +1 ) s +l 1+l 2=s +11 s+ 30
Therefore
( l1 +1 )=11⟹ l1=10
l 1 +l 2=30 ⟹l 2=20
Hence
L=
[][ ]
l1
=
10
l 2 20
69
Optimal quadratic Regulator
In optimal control, the controller design is based on a quadratic cost function (performance
index) which is given by:
∞
J=∫ ( x Qx+ u Ru ) dt
T T
(1)
0
u=−Kx
Where K=R−1 BT P
P can be obtained by solving the algebraic Ricatti equation which is given by:
T −1 T
A P+ PA+ Q−PB R B P=0
The objective in optimal control is to select K that minimizes the performance index J . Since the
plant is linear and the performance index is quadratic, the problem of determining K to minimize
J is called linear quadratic regulator (LQR).
Example 1
[ ] [ ][ ] [ ]
ẋ1
ẋ2
=
0 1 x1 0
+ u
0 0 x2 1
Solution
A=
[ ]
0 1
0 0
, B=
[] [ ]
0
1
, Q=
1 0
0 1
, R=1.69, P=
[ p1
p2
p2
p3 ]
T −1 T
A P+ PA+ Q−PB R B P=0
70
[ p1
][ ] [
p2 0 p
[0 1] 1
p2
]
[ ][ ][ ][ ] [ ] [ 00 00]
0 0 p1 p2 p 1 p2 0 1 1 0 p2 p3 1 p2 p3
+ + − =
1 0 p2 p3 p 2 p3 0 0 0 1 1.69
[] p2
[ p2 p3 ]
[ ][ ][ ] [00 00]
0 0 0 p1 1 0 p3
+ + − =
p1 p2 0 p2 0 1 1.69
[ ][ ][ ]
2
1 p1 0.59 p 2 0.59 p2 p 3
− =0 0
p 1 2 p 2+1 0.59 p2 p3 0.59 p3
2
0 0
[ ][ ]
2
1−0.59 p 2 p1−0.59 p2 p 3
=0 0
p 1−0.59 p2 p3 2 p2 +1−0.59 p 0 0 2
3
2 2
1−0.59 p2 =0 ⟹ p2 =1.69⟹ p2=1.3 (1)
Hence
P=
[ p1
p2
p2
p3
=
][
1.89 1.3
1.3 2.47 ]
K=R B P=
−1 T
[ 1.3
[ 0 1 ] 1.89 1.3
2.47 ] = [ 1.3 2.47 ]
=[ 0.77 1.46 ]
1.69 1.69
71
Example 2
da
−2 b=u1+ 2u 2
dt
db
−a=0
dt
∞
Design a linear quadratic regulator with the performance index J=∫ ( x Qx+ 2u ) dt . Where Q is
T 2
identity matrix.
Solution
Let
x 1=a
x 2=b } (2)
ẋ 1=ȧ
ẋ 2=ḃ } (3)
ẋ 1−2 x2 =u1+ 2u 2
ẋ 2−x 1=0
ẋ 2=x 1 (5)
[ ] [ ] [ ] [ ][ ]
ẋ1
ẋ2
=
0 2 x 1 1 2 u1
+
1 0 x 2 0 0 u2
72
A=
[ 01 20], T
A =
[ 02 10], B=
[ 10 20 ], T
B =
[ 12 00], Q=[ 10 01], R=2, P=
[ p1
p2
p2
p3 ]
T −1 T
A P+ PA+ Q−PB R B P=0
[ p1
] [ ][ ][
p2 1 2 1 0 p1 p2
]
[ ][ ][ ][ ] [ ] [ 00 00 ]
0 1 p1 p2 p 1 p2 0 2 1 0 p2 p3 0 0 2 0 p2 p3
+ + − =
2 0 p2 p3 p 2 p3 1 0 0 1 2
[ p 1 2 p 1 p1
][
p2
]
[ ][ ][ ] [ 00 00 ]
p2 p3 p 2 p1 1 0 p 2 2 p 2 2 p1 2 p2
+ 2 + − =
2 p1 2 p2 p 3 2 p 2 0 1 2
[ ][
2
5 p1 5 p1 p2
[ ]
2
]
2 p2 +1 p 3+ 2 p1 5 p1 p2 5 p2 0 0
− =
p 3+ 2 p1 4 p2 +1 2 0 0
[ ][ ]
2
2 p2 +1−2.5 p1 p3 +2 p1−2.5 p1 p 2
=0 0
p 3+ 2 p1 −2.5 p 1 p2 4 p2 +1−2.5 p
2
2
0 0
2
2 p 2+ 1−2.5 p1=0 (6)
From (8)
2
5 p2−8 p2−2=0
Therefore
Hence
p1=1.36 (10)
73
p3=2.5 ( 1.36 )( 1.82 )−2 ( 1.36 )=3.47
Hence
P=
[ p1
p2
p2
p3 ][
=
1.36 1.82
1.82 3.47 ]
[ ][
1 0 1.36 1.82 1.36 1.82
][ ]
−1 T
K=R B P=
2 0 1.82 3.47
2
=
2.72 3.64
2
=
0.68 0.91
1.36 1.82 [ ]
The control law is given by:
u=−Kx= [ 0.68
1.36 ][ ]
0.91 x 1
1.82 x 2
Recall: Steady state error ( e ss ) is the difference between input and output for a prescribed test
input as t → ∞
74
With state feedback controller, u=−Kx , sometimes we encounter the problem of steady-state
error i.e.
This problem can be overcome by using the configuration in the figure below:
A feedback path from the output has been added to form the error, e , which is fed forward to the
controlled plant via an integrator. The integrator increases the system type and reduces the
previous finite error to zero.
We will now derive the form of the state equations for the system in the above figure and then
use that form to design a controller. Thus, we will be able to design a system for zero steady-
state error for a step input as well as design the desired transient response.
An additional state variable, x N , has been added at the output of the leftmost integrator. The error
is the derivative of this variable.
ẋ= A x +B u (2)
y=C x (3)
ẋ N =−Cx+ r (4)
Equations (2), (3) and (4) can be written as augmented vectors and matrices. Hence
75
[ ][ ẋ
=
A 0 x
+
ẋ N −C 0 x N 0][ ] [ ] [ ]
B 0
u+ r
1
(5)
y= [ C 0 ]
[ ]
x
xN
(6)
But
u=−K x + K e x N =[−K K e]
[ ]
x
xN
(7)
[ ][
ẋ
=
A 0 x
+
ẋ N −C 0 x N 0
B
][ ] [ ]
[−K Ke ]
[ ][]
x 0
+ r
xN 1
[ ][
ẋ
=
A
ẋ N −C ]0 [ x ]+[−BK
0 x
N 0
BKe x
0 ][ ] [ ]
0
+ r
xN 1
[ ][
ẋ
ẋ N
=
A−BK
−C 0 ][ ] [ ]
B Ke x 0
+ r
xN 1
(8)
ϕ ( s )=|sI− Ă|=0
Where
Ă=
[ A−BK
−C
B Ke
0 ] (9)
Thus, the system type has been increased, and we can use the characteristic equation (9) to
design K and K e to yield the desired transient response. Realize, we now have an additional pole
to place. The effect on the transient response of any closed-loop zeros in the final design must
also be taken into consideration. One possible assumption is that the closed-loop zeros will be
the same as those of the open-loop plant. This assumption, which of course must be checked,
suggests placing higher-order poles at the closed-loop zero locations. Let us demonstrate with an
example.
Example 1
76
ẋ=
[0 1
−3 −5
0
x+ u
1 ] []
y= [ 1 0 ] x
a. Design a controller without integral control to yield a 10% overshoot and a settling time
of 0.5 second. Evaluate the steady-state error for a unit step input.
b. Repeat the design of Part a using integral control. Evaluate the steady-state error for a
unit step input.
Solution
4
T s= =0.5 ⟹ ζ ωn=8 (1)
ζ ωn
−ζπ
=ln ( 0.1 ) =−2.3
√1−ζ 2
Squaring both sides gives:
2 2
ζ π
=5.3 ⟹ ζ π =5.3 ( 1−ζ ) ⟹ ζ π + 5.3 ζ =5.3
2 2 2 2 2 2
2
1−ζ
Hence
ζ=
√ 2
5.3
π +5.3
=0.59 (2)
8 8
ω n= = =13.56
ζ 0.59
77
2
¿ s +16 s +183.9=0
¿|sI− A+ BK |=0
|[ ] [
¿
s 0
0 s
−
0 1 0
+ [ k k ] =0
−3 −5 1 1 2 ][] |
[| 1+3s
¿
−1
+
][
0 0
s+5 k 1 k 2
=0
]|
¿
| s −1 =0
k 1+ 3 s+5+ k 2 |
( s ) ( s+5+ k 2 )−(k 1 +3)(−1)=0
2
s +5 s +k 2 s +k 1 +3=0
2
s + ( 5+ k 2 ) s+ k 1 +3=0
ϕ ( s )=D( s)
Therefore
5+ k 2=16 ⟹ k 2=11
k 1+3=183.9 ⟹ k 1=180.9
K= [ 180.9 11 ]
[[ ]] [01 ]=0.995
−1
−1 0 1
e ( ∞ )=1+C ( A−BK ) B=1+ [ 1 0 ]
−183.9 −16
(sI− A)=
[ 0s 0s ]−[−30 −51 ]=[3s −1
s+5 ]
[ s−3+5
adj ( sI −A )=
1
s]
G ( s )=
Y ( s)
=
[ −3 s ][ 1]
[ 1 0 ] s +5 1 0
U (s) 2
s +5 s+ 3
¿
[ s+5 1 ] 0
2
[ 1]
s +5 s+3
1
¿ 2
s + 5 s+3
From the transfer function it can be seen that the system has no finite zero.
From
2
D ( s )=s +16 s+183.9=0
The desired closed loop poles are located at -8.0000 +10.9499i and -8.0000 -10.9499i.
79
Since the plant has no finite zeros, we assume no zeros for the closed-loop system. The
third pole is selected as -100, which has a real part greater than five times that of the
desired dominant second order poles. The desired third-order closed-loop system
characteristic equatio is:
2
(s+100)(s +16 s+183.9)=0
3 2 2
s +16 s +183.9 s +100 s +1600 s+ 18390=0
3 2
s +116 s +1783.9 s+18390=0 (3)
ϕ ( s )=|sI− Ă|=0
[
] [ ][] [ 01] K ]
0 1 −0 k k
Ă=
A−BK
−C [ B Ke
0
= −3 −5 1 1 2
−[ 1 0 ]
[ ]
0
e
[
[¿ −30 −51 ]−[ k0 k0 ] [ K0 ] = [−3−k
][ ][ ] ][ ]
0 1 0 0 1 0
1 2 e 1 −5−k 2 K e = −3−k 1 −5−k 2 K e
−[ 1 0 ] 0 − [1 0] 0 −1 0 0
|[ ] [ ]| | |
s 0 0 0 1 0 s −1 0
ϕ ( s )= 0 s 0 − −3−k 1 −5−k 2 K e = 3+ k 1 s+5+ k 2 −K e =0
0 0 s −1 0 0 1 0 s
ϕ ( s )=s |
s+5+ k 2 K e
0 s
−−1
1 s | |
3+k 1 −K e
+0
3+k 1 s +5+k 2
1 0
=0 | | |
ϕ ( s )=s ( s 2+5 s+ k 2 s−0 ) + ( 3 s+ k 1 s + K e ) +0=0
3 2
ϕ ( s )=s + ( 5+ k 2 ) s + ( 3+k 1¿ s+ K e ) =0 (4)
Hence
5+ k 2=116⟹ k 2 =111
3+ k 1=1783.9 ⟹ k 1=1780.9
80
K e =18390
Therefore
Substituting the controller gains in (8) gives the closed-loop integral-controlled system:
[ ][
ẋ
ẋ N
=
A−BK
−C 0 ][ ] [ ]
B Ke x 0
+ r
xN 1
(8)
[] [ [ ][ ] [18390
[]
]] [ ]
ẋ 1 0 1 − 0 0 0 x1 0
ẋ 2 = −3 −5 1780.9 111 x2 + 0 r
ẋ N − [1 0 ] 0 xN 1
[ ][ ][ ] [ ]
ẋ 1 0 1 0 x1 0
ẋ 2 = −1783.9 −116 18390 x 2 + 0 r
ẋ N −1 0 0 xN 1
[]
x1
[ ]
y= [ C 0 ] x = [ 1 0 0 ] x 2
xN
xN
In order to check our assumption for the zero (there is no finite zero), the closed-loop transfer
function can be found as:
18390
3 2
s + 116 s +1783.9 s +18390
Since the transfer function matches our design, we have the desired transient response.
[ ][]
−1
0 1 0 0
−1
e ( ∞ )=1+C ( A−BK ) B=1+ [ 1 0 0 ] −1783.9 −116 18390 0 =0
−1 0 0 1
Example 2
81
ẋ=
[0 1
−7 −9
0
x+ u
1 ] []
y= [ 4 1 ] x
Design an integral controller for the plant to yield a step response with 10% overshoot, a peak
time of 2 seconds, and zero steady-state error.
Solution
−ζπ
=ln ( 0.1 ) =−2.3
√1−ζ 2
Squaring both sides gives:
2 2
ζ π
=5.3 ⟹ ζ π =5.3 ( 1−ζ ) ⟹ ζ π + 5.3 ζ =5.3
2 2 2 2 2 2
2
1−ζ
Hence
ζ=
√ 2
5.3
π +5.3
=0.59
π
T p=
ωn √ 1−ζ 2
π π
ω n= = =1.95
T p √ 1−ζ 2
2 √ 1−0.592
82
Y ( s ) C [ adj ( sI− A ) ] B+ D|sI− A|
G ( s )= =
U (s) |sI− A|
adj ( sI −A )=
[ s−7+9 1s ]
|sI− A|=|s −1 |=s ( s+9 )−7 (−1 )=s + 9 s+7 2
7 s+9
G ( s )=
Y ( s)
=
[ −7 s ] [ 1]
[ 4 1 ] s+ 9 1 0
U (s) 2
s +9 s+7
¿
[ 4 s+29 s +4 ] 0
2
[ 1]
s +9 s+7
s +4
¿ 2
s + 9 s +3
From the transfer function it can be seen that the system has one finite zero located at -4.
Therefore adding a pole at - 4, which corresponds to the original system’s zero location, yields
the resulting desired characteristic equation as:
2
(s+ 4)( s +2.3 s +3.8)=0
3 2 2
s +2.3 s +3.8 s +4 s + 9.2 s+ 15.2=0
3 2
s +6.3 s +13 s +15.2=0 (1)
ϕ ( s )=|sI− Ă|=0
[
] [ ][] [ 01] K ]
0 1 −0 k k
Ă=
[ A−BK
−C
B Ke
0
= −7 −9 1 1 2
−[ 4 1 ]
[ ]
0
e
83
[
[¿ −70 −91 ]−[ k0 k0 ] [ K0 ] = [−7−k
][ ][ ] ][ ]
0 1 0 0 1 0
1 2 e 1 −9−k 2 K e = −7−k 1 −9−k 2 K e
−[ 4 1 ] 0 −[ 4 1] 0 −4 −1 0
|[ ] [ ]| | |
s 0 0 0 1 0 s −1 0
ϕ ( s )= 0 s 0 − −7−k 1 −9−k 2 K e = 7 +k 1 s+ 9+k 2 −K e =0
0 0 s −4 −1 0 4 1 s
ϕ ( s )=s |
s+ 9+k 2
1
Ke
s | |
−−1
7+ k 1 −K e
4 s
+0 | |
7+ k 1 s+ 9+k 2
4 1
=0 |
ϕ ( s )=s ( s 2+ 9 s+ k 2 s+ K e ) + ( 7 s+k 1 s+ 4 K e ) +0=0
3 2
ϕ ( s )=s + ( 9+k 2 ) s + ( 7+ k 1 + K e ¿ s +4 K e ) =0 (2)
Hence
9+ k 2=6.3 ⟹ k 2=−2.7
7+ k 1+ K e =13 ⟹ k 1=13−7−3.8=2.2
4 K e =15.2⟹ K e =3.8
Therefore
84