IC8451 UNIT 5 Concept of State Variables
IC8451 UNIT 5 Concept of State Variables
Let us consider a multi input & multi output (MIMO) system is having
m inputs: u1(t), u2(t), ……., um(t)
p number of outputs: y1(t), y2(t), ……., yp(t)
n number of state variables: x1(t), x2(t), ……., xn(t)
The different variables may be represented by the vectors (column matrix) as shown
below:
Input vector
𝑢1(𝑡)
𝑢2(𝑡)
𝑈(𝑡) = [ ]
⋮
𝑢𝑚 (𝑡)
Output vector
𝑦1(𝑡)
𝑦2(𝑡)
𝑌( 𝑡) = [ ⋮ ]
𝑦𝑝(𝑡)
State variable vector
𝑥1(𝑡)
𝑥2(𝑡)
𝑋(𝑡) = [ ]
⋮
𝑥𝑛(𝑡)
State vector:
If n state variables are needed to completely describe the behaviour of a given system,
then these n state variables can be considered the n components of a vector X. Such a
vector is called a state vector.
State space:
The n-dimensional space whose co-ordinate axes consists of the x1 axis, x2 axis………..
xn axis, where x1, x2, , xn are state variables is called a state space.
𝑥2 0 0 1 0 ⋮ 0 𝑥2 0
𝑥3 0 0 0 1 ⋮ 0 𝑥3 0 𝑢
= +
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
𝑥̇𝑛−1 0 0 0 0 ⋮ 1 𝑥𝑛−1 0
[ 𝑥𝑛 ]
OBSERVABLE CANONICAL FORM
The observable canonical form of the state-space representation of this system is given
by
𝑥1 0 0 0 ⋮ 0 −𝑎𝑛 𝑥1 𝑏𝑛 − 𝑎𝑛𝑏0
𝑥2 1 0 0 ⋮ 0 −𝑎𝑛−1 𝑥2
1 0 ⋮ 0
⋮ ⋮ ⋮ ⋮ −𝑎𝑛−2 𝑥3
𝑥3 0 + 𝑢
⋮ = ⋮ 0 0 ⋮ 0 ⋮ ⋮
0 0 ⋮ 1 𝑛−1 − 𝑎𝑛−1𝑏 0
𝑏𝑛−2 − 𝑎𝑛−2𝑏0
𝑥̇𝑛−1 0 −𝑎2 𝑥𝑛−1 ⋮
𝑏2 − 𝑎2𝑏0
[ 𝑥𝑛̇ ] [0 −𝑎1 ] [ 𝑥𝑛 ] [ 𝑏1 − 𝑎1𝑏0 ]
𝑥1
𝑥2
𝑦 = [0 0 0 ⋯ 0 1] 𝑥3 +𝑏𝑢
⋮ 0
𝑥𝑛−1
[ 𝑥𝑛 ]
The diagonal canonical form of the state-space representation of this system is given by
𝑥1 −𝑝1 0 0 0 ⋮ 0 𝑥1 1
𝑥2 0 −𝑝2 0 0 ⋮ 0 𝑥2 1
𝑥3 0 −𝑝3 0 ⋮ 0 𝑥3 1 𝑢
=0 +
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
𝑥̇𝑛−1 0 0 0 0 ⋮ 0 𝑥𝑛−1 1
[ 𝑥𝑛̇ ] [ 0 0 0 0 ⋮ −𝑝𝑛] [ 𝑥𝑛 ] [ 1]
𝑥1
𝑥2
𝑦 = [𝑐 𝑐 𝑐 ⋯ 𝑐𝑛−1 𝑐𝑛] 𝑥3 +𝑏𝑢
1 2 3 0
⋮
𝑥𝑛−1
[ 𝑥𝑛 ]
𝑥2 𝑥2 0
𝑥3 0 1 0 0 ⋮ 0 𝑥3 0 𝑢
= 0 +
0 1 0 ⋮ 0
⋮ 0 0 0 1 ⋮ 0 ⋮ ⋮
𝑥̇𝑛−1 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ 𝑥𝑛−1 0
0 0 0 0 ⋮ 1
[ 𝑥𝑛̇ ] [−𝑎𝑛 −𝑎𝑛−1 −𝑎𝑛−2 −𝑎𝑛−3 ⋮ −𝑎1] [ 𝑥𝑛 ] [𝑏]
𝑋̇ = 𝐴𝑋 + 𝐵𝑈
Download Binils Android App in Playstore Download Photoplex App
www.binils.com for Anna University | Polytechnic and Schools
𝑥𝑛−1
[ 𝑥𝑛 ]
𝑌 = 𝐶𝑋
METHOD 2
Consider the following nth order linear differential equation relating the output y(t) to the
input u(t) of a system,
𝑦̇ 𝑛 + 𝑎1𝑦̇ 𝑛−1 + 𝑎2𝑦̇𝑛−2 + ⋯ + 𝑎𝑛−2𝑦̈ + 𝑎𝑛−1𝑦̇ + 𝑎𝑛𝑦 = 𝑏𝑢
Let n = m = 3
𝑦⃛ + 𝑎1𝑦̈ + 𝑎2 𝑦̇ + 𝑎3 𝑦 = 𝑏0 𝑢
⃛ + 𝑏1 𝑢̈ + 𝑏2 𝑢̇ + 𝑏3 𝑢
On taking Laplace transform with zero initial conditions, we get,
𝑠3𝑌(𝑠) + 𝑎1𝑠2𝑌(𝑠) + 𝑎2𝑠𝑌(𝑠) + 𝑎3𝑌(𝑠)
= 𝑏0𝑠3𝑈(𝑠) + 𝑏1𝑠2𝑈(𝑠) + 𝑏2𝑠𝑈(𝑠) + 𝑏3𝑈(𝑠) [𝑠3 + 𝑎1𝑠2
+ 𝑎2𝑠 + 𝑎3]𝑌(𝑠) = [𝑏0𝑠3 + 𝑏1𝑠2 + 𝑏2𝑠 + 𝑏3]𝑈(𝑠)
𝑏 𝑏 𝑏 𝑏1 𝑏2 𝑏3
3 2 𝑠3[𝑏 + 1 + 2 + 3] [𝑏 + + + ]
𝑌(𝑠) = [𝑏0𝑠 + 𝑏1𝑠 + 𝑏2𝑠 + 𝑏3] = 0 𝑠 𝑠2 𝑠3 = 0 𝑠 𝑠2 𝑠3
𝑎 𝑎 𝑎 𝑎 𝑎 𝑎
𝑈(𝑠) [𝑠3 + 𝑎1𝑠2 + 𝑎2𝑠 + 𝑎3] 𝑠3[1 + 1 + 2 + 3] 1 − [− 1 − 2 − 3]
𝑠 𝑠2 𝑠3 𝑠 𝑠2 𝑠3
From Mason’s gain formula, the transfer function of the system is given by,
1
𝑇(𝑠) = ∑ 𝑃𝐾 ∆𝐾
∆
𝐾
where, PK – path gain of Kth forward path
Δ = 1 – (sum of loop gain of all individual loops) + (sum of gain products of all
possible combinations of two non-touching loops) – ……..
ΔK = Δ for that part of the graph which is not touching Kth forward path
The transfer function of the system with four forward paths and three feedback loops
(touching each other) is given by,
𝑃1 + 𝑃2 + 𝑃3 + 𝑃4
𝑇(𝑠) =
1 − (𝑃11 + 𝑃12 + 𝑃13)
Download Binils Android App in Playstore Download Photoplex App
www.binils.com for Anna University | Polytechnic and Schools
𝑥3 −𝑎3 0 0 1 ⋮ 0 𝑥3 𝑏3 − 𝑎3𝑏0 𝑢
= +
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
−𝑎𝑛−1 0 0 0 ⋮ 1 𝑥𝑛−1
𝑥̇𝑛−1 [ 𝑏𝑛−1 − 𝑎𝑛−1𝑏0 [
𝑥𝑛̇ ] [ −𝑎𝑛 0 0 0 ⋮ 0] [ 𝑥𝑛 ] 𝑏𝑛 − 𝑎𝑛𝑏0 ]
𝑋̇ = 𝐴𝑋 + 𝐵𝑈
𝑥1
𝑥2
𝑦 = [1 0 0 ⋯ 0 0] 𝑥3 +𝑏𝑢
⋮ 0
𝑥𝑛−1
[ 𝑥𝑛 ]
𝑌 = 𝐶𝑋 + 𝐷𝑈
METHOD 3
Consider the following nth order linear differential equation relating the output y(t) to the
input u(t) of a system,
𝑦̇ 𝑛 + 𝑎1𝑦̇ 𝑛−1 + 𝑎2𝑦̇𝑛−2 + ⋯ + 𝑎𝑛−2𝑦̈ + 𝑎𝑛−1𝑦̇ + 𝑎𝑛𝑦 = 𝑏𝑢
Let n = m = 3
𝑦⃛ + 𝑎1𝑦̈ + 𝑎2 𝑦̇ + 𝑎3 𝑦 = 𝑏0 𝑢
⃛ + 𝑏1 𝑢̈ + 𝑏2 𝑢̇ + 𝑏3 𝑢
On taking Laplace transform with zero initial conditions, we get,
𝑠3𝑌(𝑠) + 𝑎1𝑠2𝑌(𝑠) + 𝑎2𝑠𝑌(𝑠) + 𝑎3𝑌(𝑠)
= 𝑏0𝑠3𝑈(𝑠) + 𝑏1𝑠2𝑈(𝑠) + 𝑏2𝑠𝑈(𝑠) + 𝑏3𝑈(𝑠) [𝑠3 + 𝑎1𝑠2
+ 𝑎2𝑠 + 𝑎3]𝑌(𝑠) = [𝑏0𝑠3 + 𝑏1𝑠2 + 𝑏2𝑠 + 𝑏3]𝑈(𝑠)
𝑌(𝑠) [𝑏0𝑠3 + 𝑏1𝑠2 + 𝑏2𝑠 + 𝑏3] [𝑠3 +
=
𝑈(𝑠) 𝑎 1 𝑠 2 + 𝑎2𝑠 + 𝑎3]
Let,
Download Binils Android App in Playstore Download Photoplex App
www.binils.com for Anna University | Polytechnic and Schools
𝑌(𝑠) 𝑋1(𝑠)
𝑌(𝑠) .
= 𝑋 (𝑠) 𝑈(𝑠)
𝑈(𝑠) 1
𝑋1(𝑠) 1
=
𝑈(𝑠) [𝑠3 + 𝑎 2
1 𝑠 + 𝑎2 𝑠 + 𝑎3]
𝑌(𝑠) 𝑠3 + 𝑏1 𝑠2 + 𝑏2
= [𝑏0 𝑠 + 𝑏3]
𝑋1(𝑠)
State Equation
𝑥2 𝑥2 0
𝑥3 0 1 0 0 ⋮ 0 𝑥3 0 𝑢
= 0 +
0 1 0 ⋮ 0
⋮ 0 0 0 1 ⋮ 0 ⋮ ⋮
𝑥̇𝑛−1 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ 𝑥𝑛−1 0
0 0 0 0 ⋮ 1
[ 𝑥𝑛̇ ] [−𝑎𝑛 −𝑎𝑛−1 −𝑎𝑛−2 −𝑎𝑛−3 ⋮ −𝑎1] [ 𝑥𝑛 ] [1]
𝑋̇ = 𝐴𝑋 + 𝐵𝑈
This form of matrix A is known as Bush form (or) Companion form.
𝑥1
𝑥2
⋮
𝑦 = [𝑏𝑛 − 𝑎𝑛𝑏0 𝑏𝑛−1 − 𝑎𝑛−1𝑏0 ⋯ ⋯ 𝑏2 − 𝑎2𝑏0 𝑏1 − 𝑎1𝑏0] ⋮ + 𝑏0𝑢
𝑥𝑛−1
[ 𝑥𝑛 ]
𝑌 = 𝐶𝑋
where, C1, C2, C3, ….., Cn are residues and λ1, λ2, λ3, ….., λn are roots of denominator
polynomial (or poles of the system).
𝑌(𝑠) 𝐶1/𝑠 𝐶2/𝑠 𝐶𝑛/𝑠
= 𝑏0 + + + ⋯+
𝑈(𝑠) 1+𝜆 1 /𝑠 1 + 𝜆2 /𝑠 1 + 𝜆𝑛 /𝑠
𝐶1/𝑠 𝐶2/𝑠 𝐶𝑛/𝑠
𝑌(𝑠) = 𝑏0𝑈(𝑠) + 𝑈(𝑠) + 𝑈(𝑠) + ⋯ + 𝑈(𝑠)
1+𝜆 1 /𝑠 1 + 𝜆2 /𝑠 1 + 𝜆𝑛 /𝑠
𝑥2 0 −𝜆2 0 0 ⋮ 0 𝑥2 1
𝑥3 0 −𝜆3 0 ⋮ 0 𝑥3 1 𝑢
=0 +
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
𝑥̇𝑛−1 0 0 0 0 ⋮ 0 𝑥𝑛−1 1
[ 𝑥𝑛̇ ] [ 0 0 0 0 ⋮ −𝜆𝑛] [ 𝑥𝑛 ] [ 1]
𝑥1
𝑥2
𝑦 = [𝐶 𝐶 𝐶 ⋯ 𝐶 𝐶] 𝑥3 +𝑏𝑢
1 2 3 𝑛−1 𝑛 0
⋮
𝑥𝑛−1
[ 𝑥𝑛 ]
𝑍̇ = 𝐽𝑍 + 𝐵̃ 𝑈
𝑌 = 𝐶̃𝑍 + 𝐷𝑈
where,
𝐽 = 𝑀−1𝐴𝑀; 𝐵̃ = 𝑀−1𝐵; 𝐶̃ = 𝐶𝑀