Lecture 3&4
Lecture 3&4
PRESENTED BY
The state space representation of the system defined by equation (1.17) and (1.18) can be presented
in controllable canonical form, observable canonical form and diagonal canonical form
𝑥ሶ1 0 1 0 . . . 0 𝑥1 0
𝑥ሶ 2 0 0 1 . . . 0 𝑥2 0
. . . . . . .
= . + 𝑢 (1.19)
. . . . . .
𝑥ሶ 𝑛−1 0 0 0 . . . 1 𝑥𝑛−1 0
𝑥ሶ 𝑛 −𝑎𝑛 −𝑎𝑛−1 −𝑎𝑛−2 . . . −𝑎1 𝑥𝑛 1
and 𝑥1
𝑥2
𝑦 = 𝑏𝑛 − 𝑎𝑛 𝑏0 𝑏𝑛−1 − 𝑎𝑛−1 𝑏0 . . . 𝑏1 − 𝑎1 𝑏0 . + 𝑏0 𝑢 (1.20)
.
𝑥𝑛
The controllable canonical form is useful in the design of control systems using the pole-placement
approach.
𝑥ሶ1 0 0 . . . 0 −𝑎𝑛 𝑥1 𝑏𝑛 − 𝑎𝑛 𝑏0
𝑥ሶ 2 1 0 . . . 0 −𝑎𝑛−1 𝑥2 𝑏𝑛−1 − 𝑎𝑛−1 𝑏0
. . . . . . .
= . + 𝑢 (1.21)
. . . . . .
𝑥ሶ 𝑛−1 0 0 . . . 0 −𝑎2 𝑥𝑛−1 𝑏2 − 𝑎2 𝑏0
𝑥ሶ 𝑛 0 0 . . . 1 −𝑎1 𝑥𝑛 𝑏1 − 𝑎1 𝑏0
and 𝑥1
𝑥2
.
𝑦= 0 0 . . . 0 1 . + 𝑏0 𝑢 (1.22)
𝑥𝑛−1
𝑥𝑛
STATE SPACE REPRESENTATION Lecture Notes by Dr. Linus. A. Aloo
1.0 STATE VARIABLE METHODS
1. 5. State Equations from Transfer Functions
Diagonal canonical form
This form is also known as canonical variable form or normal form. The system matrix A in this case is obtained as a diagonal matrix.
If the denominator polynomial has distinct roots then the transfer function can be written as
𝑐1 𝑐2 𝑐𝑛−1 𝑐𝑛
= 𝑏0 + + ...+ + (1.24)
(𝑠 + 𝑝1 ) (𝑠 + 𝑝2 ) (𝑠 + 𝑝𝑛−1 ) (𝑠 + 𝑝𝑛 )
The diagonal canonical form of the state space representation of the system is given by
𝑥ሶ 1 −𝑝1 0 . . . 0 0 𝑥1 1
𝑥ሶ 2 0 −𝑝1 . . . 0 0 𝑥2 1
. . . . . . .
= . + 𝑢 (1.25)
. . . . . .
𝑥ሶ 𝑛−1 0 0 . . . −𝑝𝑛−1 0 𝑥𝑛−1 1
𝑥ሶ 𝑛 0 0 . . . 0 −𝑝𝑛 𝑥 𝑛 1
and 𝑥1
𝑥2
.
𝑦 = 𝑐1 𝑐2 . . . 𝑐𝑛−1 𝑐𝑛
. + 𝑏0 𝑢 (1.26)
𝑥𝑛−1
𝑥𝑛
STATE SPACE REPRESENTATION Lecture Notes by Dr. Linus. A. Aloo
1.0 STATE VARIABLE METHODS
1. 5. State Equations from Transfer Functions
Example 1.4: Obtain the state space representation of the following system in controllable canonical form
(CCF).
𝑦ഺ + 2𝑦ሷ + 3𝑦ሶ + 6y = 𝑢ሷ − 𝑢ሶ + 2u
Solution
In the given differential equation,
𝑎1 = 2, 𝑎2 = 3, 𝑎3 = 6 and 𝑏0 = 0, 𝑏1 = 1, 𝑏2 = −1
and 𝑏3 = 2. Subtituting in eqns. (1.30) and (1.31), we get
𝑥ሶ 1 0 1 0 𝑥1 0
𝑥ሶ 2 = 0 0 1 𝑥2 + 0 𝑢
𝑥ሶ 3 −6 −3 −2 𝑥3 1
𝑥1
y= 2 −1 1 𝑥2
𝑥3
𝑥
𝑦 = 𝑏2 − 𝑎2 𝑏0 𝑏1 − 𝑎1 𝑏0 𝑥1 + 𝑏0 𝑢
2
𝑥1
= 3 1 𝑥
2
0 −2 𝑥1 3
= 𝑥 + 𝑢
1 −3 2 1
𝑥1
𝑦 = 0 1 𝑥 + 𝑏0 𝑢
2
𝑥1
= 0 1 𝑥
2
𝑠+3 𝑠+3 𝑐1 𝑐2
= = +
𝑠 2 + 3𝑠 + 2 (𝑠 + 1)(𝑠 + 2) (𝑠 + 1) (𝑠 + 2)
𝑏0 = 0 𝑐1 = 2 𝑐2 = −1 𝑝1 = 1 𝑝2 = 2
𝑥ሶ 1 −𝑝1 0 𝑥1 1
= + 𝑢
𝑥ሶ 2 0 −𝑝2 𝑥2 1
−1 0 𝑥1 1
= + 𝑢
0 −2 𝑥2 1
𝑥1
𝑦 = 𝑐1 𝑐2
𝑥2 + 𝑏0 𝑢
𝑥1
= 2 −1 𝑥
2
𝑛!
𝑠 𝑛+1 𝑡 𝑛 , 𝑛 = 1,2,3 … . .
1 𝑒 𝑎𝑡
𝑠−𝑎
𝑎 sin 𝑎𝑡
𝑠 2 + 𝑎2
𝑠 cos 𝑎𝑡
𝑠2 + 𝑎2
𝑎 sinh 𝑎𝑡
𝑠2 − 𝑎2
𝑠 cosh 𝑎𝑡
𝑠2 − 𝑎2
𝑥ሶ 𝑡 = 𝑎𝑥 𝑡 (1.29)
Equation (1.29) can be solved using the Laplace transform method or the power series
method.
Solution by Laplace Transform Method
Using Laplace transform of the homogeneous equation (1.29)
1
𝑠𝑋 𝑠 − 𝑋 0 = 𝑎𝑋(𝑠) → 𝑋 𝑠 = X(0)
𝑠−𝑎
𝑠𝑋 𝑠 − 𝑋 0 = 𝐴𝑋(𝑠)
𝑋 𝑠 = 𝑠𝐼 − 𝐴 −1 𝑋(0)
𝑥 𝑡 = ℒ −1 𝑠𝐼 − 𝐴 −1 𝑥 0 (1.31)
𝑥 𝑡 = 𝑒 𝐴𝑡 𝑥 0 (1.32)
Where 𝑒 𝐴𝑡 = ℒ −1 𝑠𝐼 − 𝐴 −1
𝑒 𝐀𝑡 is called the state transition matrix and contains all information about the free motions of the
system described by (1.30).
𝚽 t = 𝑒 𝐀𝑡 = ℒ −1 𝑠𝐈 − 𝐀 −1
xሶ t = 𝐀x t + 𝐁u t (1.33)
where : 𝐱 = 𝑛 −vector,𝐮 = 𝑟 −vector, 𝐀 = 𝑛 × 𝑛 −constant matrix, 𝐁 = 𝑛 × 𝑟 −constant matrix
𝑡
𝑥 𝑡 = 𝚽 t 𝑥 0 + න 𝚽 (𝑡 − 𝜏) 𝐵𝑢 𝜏 𝑑𝜏 (1.34b)
0
where 𝚽 t = 𝑒 𝐴𝑡
Extending the same approach to the solution of homogeneous scalar equation yields
𝑡
𝑥 𝑡 = 𝑒 𝑎𝑡 𝑥 0 + 0 𝑒 𝑎(𝑡−𝜏) 𝐵𝑢 𝜏 𝑑𝜏 (1.35)
The solution of 𝑥(𝑡) is the sum of a term consisting of the transition of the initial state and a
term arising from the input vector.
𝑠𝑋 𝑠 − 𝑋 0 = 𝐴𝑋 𝑠 + 𝐵𝑈(𝑠) → 𝑠𝐼 − 𝐴 𝑋 𝑠 = 𝑋 0 + 𝐵𝑈(𝑠)
−1
Pre-multiplying both sides of this last equation by 𝑠𝐼 − 𝐴 , gives
−1 −1
𝑋 𝑠 = 𝑠𝐼 − 𝐴 𝑋 0 + 𝑠𝐼 − 𝐴 𝐵𝑈(𝑠) → 𝑋 𝑠 = ℒ[𝑒 𝐴𝑡 ]𝑋 0 + ℒ[𝑒 𝐴𝑡 ]𝐵𝑈(𝑠)
Taking the inverse Laplace transform of the last equation using the convolution integral results in
𝑡
𝑥 𝑡 = 𝑒 𝐴𝑡 𝑥 0 + 0 𝑒 𝐴(𝑡−𝜏) 𝐵𝑢 𝜏 𝑑𝜏 (1.37)
(i) Assuming 𝑢 𝑡 = 0, that’s, the system is homogeneous, obtain the state transition matrix Φ(t) and
also the inverse of the state-transition matrix 𝚽−1 t
(ii) Assuming the system is non-homogeneous, i.e. that 𝑢(𝑡) is a unit step function occurring at 𝑡 = 0, or
𝑢 𝑡 = 1(𝑡), obtain the time response of the following system.
Solution
For the given system, the state equation is
0 1
𝐀=
−2 −3
The state transition matrix 𝚽 t is given by
𝚽 t = 𝑒 𝐴𝑡 = ℒ −1 [ 𝑠𝐈 − 𝐀 −1 ]
Since
𝑠 0 0 1 𝑠 −1
𝑠𝐈 − 𝐀 = − =
0 𝑠 −2 −3 2 𝑠+3
𝑠+3 1 2 1 1 1
(𝑠 + 1)(𝑠 + 2) (𝑠 + 1)(𝑠 + 2) − −
= = 𝑠+1 𝑠+2 𝑠+1 𝑠+2
−2 𝑠 −2 2 −1 2
+ +
(𝑠 + 1)(𝑠 + 2) (𝑠 + 1)(𝑠 + 2) 𝑠+1 𝑠+2 𝑠+1 𝑠+2
2 1 1 1
− −
𝑠+1 𝑠+2 𝑠+1 𝑠+2
Hence, 𝚽 t = 𝑒 𝐴𝑡 = ℒ −1 [ 𝑠𝐈 − 𝐀 −1 ] = ℒ −1
−2 2 −1 2
+ +
𝑠+1 𝑠+2 𝑠+1 𝑠+2
2𝑒 −𝑡 − 𝑒 −2𝑡 𝑒 −𝑡 − 𝑒 −2𝑡
=
−2𝑒 −𝑡 + 2𝑒 −2𝑡 −𝑒 −𝑡 + 2𝑒 −2𝑡
Noting that 𝚽−1 t = 𝚽 −t = 𝑒 −𝐴𝑡 , we obtain the inverse of the state-transition matrix as
follows:
2𝑒 𝑡 − 𝑒 2𝑡 𝑒 𝑡 − 𝑒 2𝑡
𝚽 −1 t = 𝚽 −t = 𝑒 −𝐴𝑡 =
−2𝑒 𝑡 + 2𝑒 2𝑡 −𝑒 𝑡 + 2𝑒 2𝑡
STATE SPACE REPRESENTATION Lecture Notes by Dr. Linus. A. Aloo
1.0 STATE VARIABLE METHODS
1.8 Solution of State Equation
Example 1.7: Solution Cont’
ii) For this system,
0 1 0
𝐴= ,𝐵 =
−2 −3 1
This problem can be solved using the Convolution Integral Method or Laplace transform method.
We shall use the Convolution Integral Method , though it’s longer than the other.
The response to the unit-step input is obtained using the relationship:
𝑡
𝑥 𝑡 = 𝑒 𝐴𝑡 𝑥 0 + 0 𝑒 𝐴(𝑡−𝜏) 𝐵𝑢 𝜏 𝑑𝜏
2𝑒 −𝑡 − 𝑒 −2𝑡 𝑒 −𝑡 − 𝑒 −2𝑡
𝚽 t = 𝑒 𝐴𝑡 =
−2𝑒 −𝑡 + 2𝑒 −2𝑡 −𝑒 −𝑡 + 2𝑒 −2𝑡
1 1
𝑥1 𝑡 2𝑒 −𝑡− 𝑒 −2𝑡 𝑒 −𝑡− 2𝑒 −2𝑡 𝑥1 (0) − 𝑒 −𝑡 + 𝑒 −2𝑡
= + 2 2
𝑥2 𝑡 −2𝑒 −𝑡 + 2𝑒 −2𝑡 −𝑒 −𝑡 + 2𝑒 −2𝑡 𝑥2 (0) 𝑒 −𝑡 − 𝑒 −2𝑡