Control System PPK
Control System PPK
1. Introduction
The analysis and performance of control systems as given in earlier
chapters is based on transfer function and graphical approach such as
Bode, Nyquist and root locus plot. The mathematical model of the control
system being obtained in frequency domain.
State space analysis is an excellent method for the design and analysis of
control systems. The conventional and old method for the design and
analysis of control systems is the transfer function method.
Table 1 summarizes the comparison of the transfer function model and state
variable model.
Table 1. Transfer function model versus state variable model
2. Basic Concepts
State Variables: The smallest set of variables which determine the state of a
dynamic system are called state variables. It is not necessary that the state
variables be physically measurable or observable quantities. The knowledge
of voltage across the capacitor at t=0, forms a state variable. Likewise, initial
current through an inductor is also treated as a state variable.
State: The state of a dynamic system is the smallest set of variables such
that the knowledge of these variables at time t=t0 (Initial condition), together
with the knowledge of input for t≥ t0 , completely determines the behaviour
of the system for any time 𝑡≥ t0 . In other words, a compact and concise
representation of the past history of the system is known as the state of the
system.
3. State Model
The state model of a dynamic system consists of three variables such as
input variables, output variables and state variables.
u1 y1
u2 y2
MIMO
Input Variables Output Variables
Control System
yp
um
State Variables
x1 x2 xn
The state model consists of two equations such as state equation and output
equation.
D(t)
A(t)
dx1
= a11 x1 + a12 x2 + + a1n xn + b11u1 + b12u2 + + b1mum
dt
dx2
= a21 x1 + a22 x2 + + a2 n xn + b21u1 + b22u2 + + b2 mum
dt ………………(1)
dxn
= an1 x1 + an 2 x2 + + ann xn + bn1u1 + bn 2u2 + + bnmum
dt
Equation (3) represents the dynamic equation or state equation. Equation (5)
is called the output equation. Equations (3) and (5) represent state model.
Example 1:
Write the state equation for the network shown in Fig 3.
4 vc1 2H vc 2
iL
+ 0.25 F
vi 0.5 F 1 is
-
Define the state variables as current through the inductor and voltage
across the capacitors. Write two node equations containing capacitors and a
loop equation containing the inductor. The state variables are vc1, vc2 , and iL .
dvc1 v −v
0.25 + iL + c1 i = 0 vc = −vc1 − 4iL + vi
dt 4
dvc 2 v
0.5 − iL + c 2 − is = 0 vc 2 = 2iL − 2vc 2 + 2is
dt 1
diL
2 + vc 2 − vc1 = 0 iL = 0.5vc1 − 0.5vc 2
dt
or
vc1 −1 0 −4 vc1 1 0
v = 0 v
c2 −2 2 vc 2 + 0 2 i
iL 0.5 −0.5 0 iL 0 0 s
i
Consider following nth order LTI system relating the output y(t) to the input
u(t).
The phase variables are defined as those particular state variables which are
obtained from one of the system variables & its (n-1) derivatives. Often the
variables used are the system output & the remaining state variables are
then derivatives of the output.
x1 = y
dy dx
x2 = =
dt dt
dy dx2
x3 = = ………………………(7)
dt dt
dxn −1
xn = y n −1 =
dt
Where
0 1 0 0 0
x1 0 0
x 0 1 0
X = 2 , A = , B=
0 0 0 1 0
n n1
x
− an − an −1 − an − 2 − a1 nn b
Y (t) = CX(t)
Where C = 1 0 01n
The matrix A is called matrix in phase variable form. Such form of matrix A
is also called Bush form or Companion form. Matrix A has following
properties
(i) Upper off diagonal elements (i.e. row parallel to the principal
diagonal) contain all 1.
(ii) All other elements are zeros except last row.
(iii) Last row elements are the negative of the coefficients in the original
differential equation.
Consider the dynamics of a system which can be written by the following nth
order differential equation
y n + a1 y n−1 + a2 y n−2 + + an−1 y + an y = b0u n + b1u n−1 + b2u n−2 + + bn−1u + bnu …………(9)
Where u is the input and y is the output. This equation can also be written
as
Y(s) b0 s n + b1s n −1 + + bn −1s + bn
= ……………………………………..(10)
U (s) s n + a1s n −1 + + an −1s1 + an
x1 0 1 0 0 x1 0
x
2 0 0 1 0 x2 0
= + u ………………….(11)
xn −1 0 0 0 1 xn −1 0
x − an − an −1 − an − 2 − a1 xn 1
n
x1
x
y = (bn − anb0 ) (bn −1 − an −1b0 ) (b1 − a1b0 ) 2 + b0u …………………(12)
xn
This form of representation is also called first companion form. The CCF is
important in discussing the pole-placement approach to the control system
design.
x1 0 0 0 − an x1 bn − anb0
x
2 1 0 0 − an −1 x2 bn −1 − an −1b0
x3 = 0 1 0 − an − 2 x3 + bn − 2 − an − 2b0 u …………………..(13)
x 0
n 0 1 − a1 xn b1 − a1b0
x1
x
2
y = 0 0 0 1 x3 + b0u ………………………..(14)
x
n
x1 − p1 0 0 x1 1
x 0 − p2 0 x2 1
2 = + u …………………………….(16)
xn 0 0 − pn xn 1
x1
x
y = K1 K2 K n 2 + b0u
xn
……………………………………(17)
Note: Matrix A is a diagonal matrix and diagonal elements are poles. C matrix
contains the residue of the poles.
Y (s) K1 K2 K3 K4 Kn
= b0 + + + + + + ………….(19)
( s + p1 ) ( s + p1 ) ( s + p1 ) ( s + p4 ) ( s + pn )
3 2
U (s)
− p1 1 0 0 0
x1 0 − p1 1 x 0
1
x
2 0 0 − p1 0 0 x2 0
x3 =
x3 + 1 u ……………………….(20)
0 0 − p4 0
x
n xn 1
0 − pn
0 0 0
x1
x
y = K1 K2 K n 2 + b0u
………………………………(20a)
xn
Example 2:
Obtain the state equation in phase variable form for the following differential
equation.
d3y d2y dy
2 3 + 4 2 + 6 + 8 y = 10u (t )
dt dt dt
Solution:
The differential equation is third order, thus there are three state variables
as follows
x1 = y, x2 = y, x3 = y
Or in matrix form
x1 0 1 0 x1 0
x = 0 0 1 x + 0 5u (t )
2 2
x3 −4 −3 −2 x3 1
x1
y = 1 0 0 x2
x3
Simulation Diagram
Equation (8) indicates that state variables are determined by integrating the
corresponding state equation. A diagram known as the simulation diagram
can be constructed to model the given differential equations. The basic
element of the simulation diagram is the integrator. The first equation in (8)
is
x1 = x2
Integrating, we have
x1 = x2 dx
x2 (t ) 1 x1 (t ) s −1
x2 (t ) x1 (t )
s
(b)
(a)
5u (t ) x3 1 x3 1 x2 1 x1 y 1 s −1 s −1 s −1 1
1 5u (t ) y
- s s s x3 -2 x3 x2 x1
- -
2 OR -3
3 -4
4
(a) (b)
where the numerator degree is lower than that of the denominator. The
above transfer function is decomposed into two blocks as shown in Fig 6.
U (s) 1 W (s) Y ( s)
b2 s 2 + b1s + b0
s + a2 s + a1s + a0
3 2
U ( s)
W ( s) = and Y (s) = b2 s 2W (s) + b1sW (s) + b0W (s)
s + a2 s 2 + a1s + a0
3
or
b2
b1
+ +
u (t ) w 1 w 1 w 1 w + y
x1 b0
- s x3 s x2 s
- -
a2
a1
a0
b2
b1
−1
u (t )
1 w s −1 w s −1 w s w b0 1 y
−a2 x3 x2 x1
−a1
−a0
x1 = x2
x2 = x3
x3 = −a0 x1 − a1 x2 − a0 x1 + u (t )
y = b0 x1 + b1x2 + b3 x3
or in matrix form
x1 0 1 0 x1 0
x = 0 0 1 x2 + 0 u (t ) ………………. (20c)
2
x3 −a0 −a1 −a2 x3 1
x1
y = 1 0 0 x2
x3
It is important to note that the Mason’s gain formula can be applied to the
simulation diagram in Fig. 8 to obtain the original transfer function. Indeed
of Mason’s gain formula is the characteristic equation. Also, the
determinant of sI − A matrix in (20c), results in the characteristics equation.
Keep in mind that there is not a unique state space representation for a
given transfer function.
Example 3:
Draw the simulation diagram and find the state-space representation for the
following transfer function
Y ( s) s2 + 7s + 2
G ( s) = = 3
U ( s ) s + 9 s 2 + 26 s + 24
Solution:
U ( s) 1 W (s) 2 Y (s)
s + 7s + 2
s 3 + 9 s 2 + 26s + 24
s3W (s) = −9s2W (s) − 26sW (s) − 24W (s) + U (s) & Y (s) = s 2W ( s) + 7sW ( s) + 2W ( s)
or in time-domain
1
7
1 w s −1 w s −1 w s −1 w 2 1 y
u (t )
−9 x3 x2 x1
−26
−24
x1 = x2
x2 = x3
x3 = −24 x1 − 26 x2 − 9 x1 + u (t )
y = 2 x1 + 7 x2 + x3
or in matrix form
x1 0 1 0 x1 0
x = 0 0 1 x2 + 0 u (t )
2
x3 −24 −26 −9 x3 1
x1
y = 2 7 1 x2
x3
d 2 c(t) dc(t)
5 2
+6 + 8c(t) = r(t)
dt dt
Write down it’s state equation, output equation and transfer function. Initial
conditions are zero
Solution:
Let
c(t) = x1
dc(t)
= x2
dt
x1 = x2 …………………………………………………(21)
8 6 1
x2 = − x1 − x2 + u (t) ……………………………………………………(22)
5 5 5
0 1 0
x1 x1
x = 8 6 + 1 u
2 − − x2
5 5 5
x1
C = 1 0
x2
5s 2C (s) + 6sC(s) + 8C(s) = U(s)
C (s) 1
= 2
U (s) 5s + 6 s + 8
Y(s) 2s 2 + 3s + 1
=
Example 5: Consider the system given by U(s) s3 + 5s 2 + 6s + 7 . Obtain state
space representation in the controllable canonical form and observable
canonical form.
Solution:
Comparing the given transfer function with equation (10), we get b0=0, b1=2,
b2=3, b3=1, a1=5, a2=6, a3=7.
Using equations (11) & (12), the state space representation in controllable
canonical form is given by
x1 0 1 0 x1 0
x = 0 0 1 x2 + 0 u
2
x3 − a3 − a2 − a1 x3 1
x1
y = b3 − a3b0 b2 − a2b0 b1 − a1b0 x2 + b0u
x3
Thus, the state model in controllable canonical form for the given transfer
function is
x1 0 1 0 x1 0
x = 0 0 1 x2 + 0 u
2
x3 −7 −6 −5 x3 1
x1
y = 1 3 2 x2
x3
Using equations (13) & (14), the state space representation in observable
canonical form is given by
x1 0 0 − a3 x1 b3 − a3b0
x = 1 0 − a x + b − a b u
2 2 2 2 2 0
x3 0 1 − a1 x3 b1 − a1b0
x1
y = 0 0 1 x2 + b0u
x3
Thus, the state model in observable canonical form for the given transfer
function is
x1 0 0 −7 x1 1
x = 1 0 −6 x + 3 u
2 2
x3 0 1 −5 x3 2
x1
y = 0 0 1 x2
x3
Example 6:
Obtain a state model of the system described by the transfer function given
below by diagonal canonical form
Y (s) s3 + 7 s 2 + 12s + 8
=
U (s) s 3 + 6s 2 + 11s + 6
Solution:
Y (s) s2 + s + 2
= 1+
U (s) ( s + 1)( s + 2 )( s + 3)
This transfer function can also be written in partial fraction expansion form
as
Y (s) 1 4 4
= 1+ − +
U (s) s +1 s + 2 s + 3
Compare the above transfer function with equation (15), we get b0=1, K1=1,
K2=-4, K3=4, p1=1, p2=2 and p3=3.
Using equations (16) & (17), the state space representation in diagonal
canonical form is given by
x1 − p1 0 0 x1 1
x = 0 − p2 0 x2 + 1 u
2
x3 0 0 − p3 x3 1
x1
y = K1 K2 K 3 x2 + b0u
x3
Thus, the state model in diagonal canonical form for the given transfer
function is
x1 −1 0 0 x1 1
x = 0 −2 0 x + 1 u
2 2
x3 0 0 −3 x3 1
x1
y = 1 −4 4 x2 + u
x3
Example 7:
Obtain a state model of the system described by the transfer function given
below by Jordan canonical form
Y (s) 2s 2 + 6s + 5
= 3
U (s) s + 4s 2 + 5s + 2
Solution:
The given transfer function can be written in partial fraction expansion form
as
Y (s) 2s 2 + 6s + 5 2s 2 + 6s + 5
= 3 =
U (s) s + 4s 2 + 5s + 2 ( s + 1)2 ( s + 2 )
1 1 1
= + +
( s + 1) s +1 s + 2
2
Comparing this transfer function with equation (19), we get b0=0, K1=1,
K2=1, K3=1, p1=p2=1 and p3=2.
Using equations (20) & (21), the state space representation in Jordan
canonical form is given by
x1 − p1 1 0 x1 0
x = 0 − p1 0 x2 + 1 u
2
x3 0 0 − p3 x3 1
x1
y = K1 K2 K 3 x2 + b0u
x3
Thus, the state model in Jordan canonical form for the given transfer
function is
x1 −1 1 0 x1 0
x = 0 −1 0 x + 1 u
2 2
x3 0 0 −2 x3 1
x1
y = 1 1 1 x2
x3
are called as the eigen values of matrix A. Also, the roots of the
characteristic equation of the system in terms of s
sI − A = 0
s n + a1s n −1 + a2 s n −2 + + an = 0
are same as the poles of the closed loop transfer function. Hence, eigen
values are the closed loop poles of the system.
Some important properties related to eigen values are given below-
1. Any square matrix A and its transpose AT have the same eigen values.
2. Sum of eigen values of any matrix A is equal to the trace of the matrix A.
3. Product of the eigen values of any matrix A is equal to the determinant of
the matrix A.
4. If we multiply a scalar quantity to matrix A then the eigen values are also
get multiplied by the same value of scalar.
5. If we inverse the given matrix A then its eigen values are also get inverses.
6. If all the elements of the matrix are real then the eigen values
corresponding to that matrix are either real or exists in complex conjugate
pair.
Any non-zero vector 𝑚𝑖 that satisfies the matrix equation (𝜆𝑖𝐼−𝐴) 𝑚𝑖=0 is
called the eigen vector of A associated with the eigen value 𝜆𝑖,. Where 𝜆𝑖, i =
1, 2, 3, ……..n denotes the ith eigen values of A.
This eigen vector may be obtained by taking co-factors of matrix (𝜆𝑖𝐼−𝐴) along
any row & transposing that row of co-factors.
Ck 1
C
Therefore Mi= Eigen vector for i = where k=1,2,…n
k2
Ckn
Note: If the cofactors along a particular row gives null solution i.e. all elements
of corresponding eigen vectors are zero then cofactors along any other row
must be obtained. Otherwise inverse of modal matrix M cannot exist.
1 1 1
2 n
1
Vander Monde matrix, V = 1 2
22 n2 …………….(24)
1n −1 2n −1 nn −1
1 1 1 1 0 0
2 r r +1 1 0
1
12
22 r2 r2+1 2r +1 1
V = 13 23 r3 r3+1 3 2
r +1 3r +1 ……………….(25)
n −1 d rn+−11 1 d 2 rn+−11
1 2n −1 rn −1 rn+−11
d r +1 2! d r2+1
Note: The generalised eigen vectors are the eigen vectors corresponding to
repeated eigen values. If out of n eigen values of matrix A, r are distinct, the
r eigen values can be determined in the usual manner by finding the
cofactors along any row of j I − A , where i denotes the ith didtinct eigen
values, i=1, 2, …, r. If the remaining (n-r) eigen values are repeated, then the
jth eigen vector can be determined by taking cofactors along any row of
j I − A . The remaining generalized eigenvectors can be determined by
taking the derivatives of the cofactors forming the jth eigen vector j I − A as
given below.
M = M1 M2 M3 Mr
1 dC j1 1 d 2 C j1 1 d r −1C j1
2 r −1
1! d j 2! d j ( r − 1) ! d j
C j1 1 dC j 2 d 2C r −1
C 1 j2 1 d C j2
= 1! d j 2! d j2 ( r − 1) ! d jr −1
j2
C jn 1 dC jn 2 r −1
1 d C jn 1 d C jn
1! d j 2! d j2
( r − 1) ! d jr −1
Where matrix M is called modal matrix which has been obtained by placing
all the eigen vectors one after the other.
6.3 Diagonalisation
The techniques used for transforming a general state model into a canonical
form or diagonal form are generally known as diagonalisation techniques.
Consider an nth order MIMO state model in which matrix A is not diagonal.
x = Ax + Bu
……………………………………(26)
y = Cx + Du
x = Mz ………………………………….(27)
z = M −1 AMz + M −1 Bu
……………………………………(28)
y = CMz + Du
The equation (28) results a canonical state model in which M −1 AM is a
diagonal matrix and matrix M is called diagonalising matrix or modal matrix.
Equation (28) can also be written as
z = z + Bu
…………………………………………(29)
y = Cz + Du
B = M −1B
and C = CM
Example 8:
Diagonalize the system matrix given below.
0 1 −1
A = −6 −11 6
−6 −11 5
Solution:
The eigen values of the system matrix A are the roots of the characteristic
equation
1 0 0 0 1 −1
I − A = 0 1 0 − −6 −11 6 = 0
0 0 1 −6 −11 5
−1 1
6 + 11 −6 = 0
6 11 −5
3 + 6 2 + 11 + 6 = 0
( + 1)( + 2 )( + 3) = 0
− 1 −1 1 C11 6 1
For 1 , 1 I − A = 6 10 −6 , M 1 = C12 = 0 = 0
6 11 −6 C13 6 1
−2 −1 1 C11 3 1
For 2 , 2 I − A = 6 9 −6 , M 2 = C12 = 6 = 2
6 11 −7 C13 12 4
−3 −1 1 C11 2 1
For 3 , 3 I − A = 6 8 −6 , M 3 = C12 = 12 = 6
6 11 −8 C13 18 9
1 1 1
Therefore, M = M 1 M2 M 3 = 0 2 6
1 4 9
3 2.5 −2
Adj M
M −1
= = −3 −4 3
M
1 1.5 −1
3 2.5 −2 0 1 −1 1 1 1
= M AM = −3 −4 3 −6 −11 6 0 2 6
−1
1 1.5 −1 −6 −11 5 1 4 9
−1 0 0
= 0 −2 0
0 0 −3
Example 9:
Reduce the system matrix A to diagonal matrix
0 1 0
A = 0 0 1
−6 −11 −6
Solution:
Since the matrix A is in companion form and has distinct eigen values, the
modal matrix M can be written directly in Vander Monde form as
1 1 1 1 1 1
M = 1 2 3 = −1 −2 −3
12 22 32 1 4 9
6 5 1
Adj M
= −6 −8 −2
−1 1
M =
M 2
2 3 1
6 5 1 0 1 0 1 1 1
1
−1
= M AM = −6 −8 −2 0 0 1 −1 −2 −3
2
2 3 1 −6 −11 −6 1 4 9
−1 0 0
= 0 −2 0
0 0 −3
Example 10:
Reduce the system matrix A to diagonal matrix
0 1 0
A = 0 0 1
−2 −5 −4
Solution:
Since the system matrix A is in companion form and the two eigen values
repeated, the modal matrix M can be obtained directly from modified Vander
Monde form as
d (1)
1 1
d 1 1 0 1 1 0 1
d 1
M = 1 2 = 1 1 2 = −1 1 −2
d 1 2
1 21 22 1 −2 4
d 12
12 2
2
d 1
0 −2 −1
Adj M
M −1
= = 2 3 1
M
1 2 1
0 −2 −1 0 1 0 1 0 1
= M −1 AM = 2 3 1 0 0 1 −1 1 −2
1 2 1 −2 −5 −4 1 −2 4
−1 1 0
= 0 −1 0
0 0 −2
Example 11:
Obtain the state model for the following transfer function
Y (s) s 2 + 3s + 9
=
U ( s ) 5s 5 + 8s 4 + 24s 3 + 34s 2 + 23s + 6
Solution:
Y (s) s 2 + 3s + 9
=
U ( s ) 5s 5 + 8s 4 + 24s 3 + 34s 2 + 23s + 6
3.5 − 4.75 5.875 7 1.125
Y (s) = + + − +
( s + 1)3 ( s + 1) 2 s + 1 s + 2 s + 3
x1 − 1 1 0 0 0 x1 0
x 0 − 1 1 0 0 x 2 0
2
x3 = 0 0 −1 0 0 x3 + 1u (t )
x 4 0 0 0 − 2 0 x 4 1
x5 0 0 0 0 − 3 x5 1
x1
x
2
y (t ) = 3.5 − 4.75 5.875 − 7 1.125 x3
x4
x5
x = Ax + Bu …………………………………………..(30)
and y = Cx + Du …………………………………………..(31)
Taking Laplace transform on both sides of equations (30) and (31), we get
The initial conditions are considered as zero i.e. x(0)=0, as transfer function
to be determined. Therefore,
Y(s) = C sI − A B + D U (s)
−1
Y (s)
= C sI − A B + D
−1
…………………………………………(34)
U (s)
Y (s)
= C sI − A B
−1
………………………………………..(35)
U (s)
We know that
dx(t)
= Ax(t) + Bu(t) …………………………………….(36)
dt
= (s) x(0)
(s) = sI − A
−1
Taking the inverse Laplace transform on both sides of equation (38) yields
(t) = e At ………………………………………(42)
A2 t 2 A3 t 3 n
Ai t i
e At = I + At + + + = ………….(43)
2! 3! i =0 i!
Put t=0,
(0) = e A (0) = e0 = I
(ii) (−t ) = −1 ( t )
( t ) = e At
( t ) e − At = e At e − At
−1 ( t ) ( t ) e − At = −1 ( t ) I
Ie − At = −1 ( t ) I
e − At = −1 ( t )
(−t ) = −1 ( t ) = e − At
(iii) ( t1 + t2 ) = ( t1 ) ( t2 ) = ( t2 ) ( t1 )
( t1 + t2 ) = e A(t +t )
1 2
= e At1 e At2 = ( t1 ) ( t2 ) = ( t2 ) ( t1 )
(iv) ( t2 − t1 ) ( t1 − t0 ) = ( t2 − t0 )
( t2 − t1 ) ( t1 − t0 ) = e A(t −t )e A(t −t )
2 1 1 0
A ( t2 −t0 )
=e
= ( t 2 − t0 )
( t ) = e At e At
K
e At (K terms)
( t ) = e KAt = ( Kt )
K
( t ) = ( −t )
−1
(vi)
( −t ) = e− At
−1 −1
( −t ) = e − At
= e At = ( t )
Note:
State transition matrix represents the free response of the system as it satisfies the
homogeneous state equation. In other words, it governs the response that is excited
by the initial conditions only. This matrix is dependent only upon the state matrix
A. The state-transition matrix is completely defined as the transition of the states
from the initial time t = 0 to any time t when the inputs are zero.
8.2 Solution of Non-homogeneous state equation
(i) Zero input response (ZIR) wherein only initial conditions are
considered and input function given by u is zero.
(ii) Zero state response (ZSR) wherein only input function u is
considered and initial conditions are zero.
dx(t)
= Ax ( t ) + Bu ( t ) ………………………………(44)
dt
sX ( s ) − x(0) = AX ( s ) + BU ( s )
X (s) sI − A = x(0) + BU ( s )
X ( s ) = sI − A x(0) + sI − A BU ( s )
−1 −1
X ( s ) = ( s ) x(0) + ( s ) BU ( s ) ……………………………………..(45)
x ( t ) = ( t ) x ( 0 ) + L−1 ( s ) BU ( s ) …………………………………….(46)
The equation (46) represents the time response of the state equation (44).
The first term on the RHS of equation (46) is zero input response and the
second term is zero state response.
Example 12:
A system is described by the following state-space equations
x1 0 1 x1 0
x = −6 −5 x + 1 u (t )
2 2
x
y = [8 1] 1
x2
Obtain the system transfer function
Solution:
s + 5 1
s −1 6 s
[ SI − A] = ( s) = [ SI − A]−1 = 2
6 s + 5 s + 5s + 6
s + 5 1 0 1
6 [8 1]
G( s) = C[ SI − A]−1 B = [8 1] 2
s 1
= 2 s = 8 + s
s + 5s + 6 s + 5s + 6 s 2 + 5s + 6
Therefore
s +8
G( s) =
s 2 + 5s + 6
Example 13:
Determine the time response of a system given below:
x1 0 1 x1
x = −2 −3 x
2 2
x(0) = 1 1
T
x1
and y = 1 −1
x2
Solution:
s −1
sI − A =
2 s + 3
( s ) = sI − A
−1
−1
s −1
=
2 s + 3
s −1
Adj
(s) = 2 s + 3
s −1
2 s+3
s + 3 1 s + 3 1
−2 s 2
= s + 3s + 2 s + 3s + 2
= 2
2
s + 3s + 2 −2 s
s 2 + 3s + 2 s + 3s + 2
2
s+3 1
( s + 1)( s + 2 ) ( s + 1)( s + 2 )
(s) =
−2 s
( s + 1)( s + 2 ) ( s + 1)( s + 2 )
2 1 1 1
s +1 − s + 2 −
s +1 s + 2
(s) =
−2 + 2 −1
+
2
s + 1 s + 2 s + 1 s + 2
( t ) = L−1 ( s )
2 1 1 1
− +
s +1 s + 2 s +1 s + 2
= L−1
−2 + 2 −1
+
2
s + 1 s + 2 s + 1 s + 2
2e −t − e −2t e −t + e −2t
= −t −2 t
−2e + 2e −e −t + 2e −2t
x (t ) = (t ) x ( 0)
x1 2e −t − e −2t e −t + e −2t 1
= −t −2 t
x2 −2e + 2e −e −t + 2e −2t 1
x1 = 2e− t − e−2t + e − t + e −2t = 3e − t
x2 = −2e −t + 2e −2t − e −t + 2e −2t = −3e −t + 4e −2t
x1
y = 1 −1
x2
= x1 − x2
= 3e − t − ( −3e − t + 4e −2t )
y = 6e − t − 4e −2t
Consider nth order multi input LTI system with m dimensional control vector
x = Ax + Bu
is n.
9.2 Observability
Consider nth order multi input LTI system with m dimensional output vector
x = Ax + Bu
y = Cx
Qo = C T (A ) (A ) C T
2 n −1
AT C T T
CT T
is n.
CT=Transpose of matrix C
Example 14:
Consider the system shown below
x1 −4 −1 x1 1
x = 3 −1 x + 1 u
2 2
x1
y = 1 0
x2
Obtain the transfer function of the system and the state transition matrix.
Solution:
Y (s)
= C (s) B+ D = C (s) B
U (s) [ D = 0]
−1
s 0 −4 −1
( s ) = sI − A
−1
= −
0 s 3 −1
−1
s + 4 1
=
−3 s + 1
s +1 −1
s 2 + 5s + 7 s 2 + 5s + 7
=
3 s+4
s 2 + 5s + 7 s 2 + 5s + 7
Y (s)
= C (s) B
U (s)
s +1 −1
s 2 + 5s + 7 s 2 + 5s + 7 1
= 1 0
3 s + 4 1
s 2 + 5s + 7 s 2 + 5s + 7
s
s 2 + 5s + 7 s
= 1 0 = 2
s + 7 s + 5s + 7
s 2 + 5s + 7
( t ) = L−1 sI − A
−1
s +1 −1
s 2 + 5s + 7 s + 5s + 7
2
= L−1
3 s+4
s 2 + 5s + 7 s 2 + 5s + 7
−2.5t 2 −2.5t
e cos 23 t − 3e −2.5t sin 2
3
t − e sin 2
3
t
= 3
2 3e −2.5t sin 23 t e −2.5 t
cos 2 t + 3e
3 −2.5 t 3
sin 2 t
Note: To check the answer, put t=0, ( t ) should be identity matrix i.e.
1 0
( 0) =
0 1
Example 15:
Solution:
x1 0 1 x1
x = −2 −3 x
2 2
( s ) = sI − A
−1
−1
s −1
=
2 s + 3
s+3 1
s 2 + 3s + 2 s + 3s + 2
2
=
−2 s
s + 3s + 2
2
s + 3s + 2
2
( t ) = L−1 ( s )
2e−1.5t cosh 12 t + 3e−1.5t sinh 12 t 2e −1.5t sinh 12 t
=
−4e−1.5t sinh 12 t 2e −1.5t
cosh 12 t − 3e −1.5t
sinh 12 t
Example 16:
Check the controllability and observability for the following system
0 1 1
x= x + u
−1 −2 −1
y = 1 1 x
Solution:
For controllability:
0 1
A=
−1 −2
1
B=
−1
0 1 1 −1
AB = =
−1 −2 −1 1
1 −1
Qc = B AB =
−1 1
Qc = 0
For observability:
1
CT =
1
0 −1 1 −1
AT C T = =
1 −2 1 −1
1 −1
Qo = C T AT C T
1 −1
Qo = 0
Example 17:
Check the controllability and observability of the system described by
−3 1 1 0 1
x = −1 0 1 x + 0 0 u
0 0 1 2 1
0 0 1
y=
1 0
x
1
Solution:
Controllability:
0 1
B = 0 0
2 1
−3 1 1 0 1 2 −2
AB = −1 0 1 0 0 = 2 0
0 0 1 2 1 2 1
−3 1 1 2 −2 −2 −5
A B = −1 0
2
1 2 0 = 0 3
0 0 1 2 1 0 1
Qc = B AB A2 B
0 1 2 −2 −2 −5
Qc = 0 0 2 0 0 3
2 1 2 1 2 1
0 1 2
Now, the required matrix as 0 0 2 and its determinant is 4 (non-zero).
2 1 2
Since the determinant of the matrix is not zero, the system is controllable
and the rank is 3.
Observability:
−3 1 1
A = −1 0 1
0 0 1
−3 −1 0
A = 1 0 0
T
1 1 1
0 0 1
C=
1 1 0
0 1
C = 0
T
1
1 0
−3 −1 0 0 1 0 −4
A C = 1 0 0 0 1 = 0 1
T T
1 1 1 1 0 1 2
(A ) C T = AT ( AT C T )
T 2
−3 −1 0 0 −4 0 11
= 1 0 0 0 1 = 0 −4
1 1 1 1 2 1 −1
Qo = C T (A )
C T
2
AT C T T
0 1 0 −4 0 11
= 0 1 0 1 0 −4
1 0 1 2 1 −1
−4 0 11
Matrix 1 0 −4 has been chosen. Its determinant is -5.
2 1 −1
Note:
(i) The system is controllable if the input matrix B contains any non-
zero element
(ii) The system is observable if the output matrix C contains any non-
zero element.
REVIEW QUESTIONS
Q.1 Obtain the solution of a state model and hence define state transition
matrix
Q.2 What is state transition matrix? State the properties of state transition
matrix.
Q.4 Derive the expression for transfer function from state model.
Q.5 Explain the Laplace transform method for finding the state transition
matrix
equation
Q.7 Define controllability and observability. Explain both terms with the