Introduction To State Space Modeling Analysis-1
Introduction To State Space Modeling Analysis-1
• State Variable: The state variables of a dynamic system are the smallest
set of variables that determine the state of the dynamic system.
dx
x2 dt
Velocity State (t=t1)
State (t=t1)
State
Vector
x1 Position
x
5
State Space Equations
• In state-space analysis we are concerned with three types of
variables that are involved in the modeling of dynamic systems:
input variables, output variables, and state variables.
𝑥
˙ 1 ( 𝑡 )= 𝑓 1 ( 𝑥1 , 𝑥2 , ⋯ , 𝑥 𝑛 ; 𝑢 1 , 𝑢2 , ⋯ , 𝑢𝑟 ; 𝑡 )
𝑥
˙ 2 ( 𝑡 )= 𝑓 2 ( 𝑥1 , 𝑥2 , ⋯ , 𝑥 𝑛 ; 𝑢 1 , 𝑢2 , ⋯ , 𝑢𝑟 ; 𝑡 )
𝑥
˙ 𝑛 ( 𝑡 )= 𝑓 𝑛 ( 𝑥 1 , 𝑥 2 , ⋯ , 𝑥 𝑛 ; 𝑢1 , 𝑢2 , ⋯ ,𝑢 𝑟 ;𝑡 )
State Space Equations
•• The
outputs of the system may be given as.
𝑦 1 ( 𝑡 ) = 𝑔1 ( 𝑥 1 , 𝑥 2 , ⋯ , 𝑥𝑛 ; 𝑢1 ,𝑢 2 , ⋯ ,𝑢 𝑟 ; 𝑡 )
𝑦 2 ( 𝑡 ) = 𝑔2 ( 𝑥 1 , 𝑥 2 , ⋯ , 𝑥𝑛 ; 𝑢1 ,𝑢 2 , ⋯ ,𝑢 𝑟 ; 𝑡 )
𝑦 𝑚 ( 𝑡 ) = 𝑔 𝑚 ( 𝑥1 , 𝑥2 , ⋯ , 𝑥 𝑛 ; 𝑢 1 , 𝑢2 , ⋯ , 𝑢𝑟 ; 𝑡 )
• If we define
𝑥1 𝑓 1 ( 𝑥 1 , 𝑥 2 , ⋯ , 𝑥 𝑛 ; 𝑢1 ,𝑢2 , ⋯ ,𝑢 𝑟 ; 𝑡 )
[ ]
[]𝑥
𝒙 ( 𝑡 )= 2
⋮
𝑥𝑛
𝒇 ( 𝒙 ,𝒖 , 𝑡 )= 𝑓 2 ( 𝑥 1 , 𝑥 2 , ⋯ , 𝑥 𝑛 ; 𝑢1 ,𝑢2 , ⋯ ,𝑢 𝑟 ; 𝑡 )
⋮
𝑓 𝑛 ( 𝑥 1 , 𝑥 2 , ⋯ , 𝑥𝑛 ; 𝑢1 ,𝑢 2 , ⋯ ,𝑢 𝑟 ; 𝑡 ) 𝑢1
𝑦1 𝑔 1 ( 𝑥1 , 𝑥2 , ⋯ , 𝑥 𝑛 ; 𝑢1 , 𝑢2 , ⋯ , 𝑢𝑟 ; 𝑡 )
[]
𝑢
𝒖 (𝑡)= 2
⋮
𝑢𝑟
𝒚 ( 𝑡 )=
[]
𝑦2
⋮
𝑦𝑚
𝒈 ( 𝒙 , 𝒖 ,𝑡 )=
[
𝑔2 ( 𝑥1 , 𝑥2 , ⋯ , 𝑥 𝑛 ;𝑢 1 , 𝑢2 , ⋯ , 𝑢𝑟 ; 𝑡 )
⋮
𝑔 𝑚 ( 𝑥1 , 𝑥2 , ⋯ , 𝑥 𝑛 ; 𝑢 1 , 𝑢2 , ⋯ , 𝑢𝑟 ; 𝑡 )
]
State Space Modelling
𝒙˙ ( 𝑡 )=𝒇 ( 𝒙 ,𝒖 , 𝑡 ) State Equation
𝒚 ( 𝑡 )=𝒈 ( 𝒙 , 𝒖 , 𝑡 ) Output Equation
B C
A
Example-1
• Consider the mechanical system shown in figure. We assume that the
system is linear. The external force u(t) is the input to the system, and the
displacement y(t) of the mass is the output. The displacement y(t) is
measured from the equilibrium position in the absence of the external force.
This system is a single-input, single-output system.
𝑚
𝑦
¨ (𝑡 )+𝑏 𝑦˙ (𝑡 )+ 𝑘𝑦 (𝑡 )=𝑢(𝑡 )
• This system is of second order. This means that the
system involves two integrators. Let us define state
variables and as
𝑥 ( 𝑡 )= 𝑦 (𝑡 )
1
𝑥 ( 𝑡 )= 𝑦˙ (𝑡 )
2
Example-1
𝑥 ( 𝑡 )= 𝑦 (𝑡 ) 𝑥 ( 𝑡 )= 𝑦˙ (𝑡 ) 𝑚 𝑦¨ (𝑡 )+𝑏 𝑦˙ (𝑡 )+ 𝑘𝑦 (𝑡 )=𝑢(𝑡 )
1 2
• Then we obtain
𝑥
˙ ( 𝑡 )=𝑥 2 (𝑡 )
1
𝑏 𝑘 1
𝑥˙ 2 ( 𝑡 )=− 𝑦˙ ( 𝑡 ) − 𝑦 ( 𝑡 ) + 𝑢(𝑡 )
𝑚 𝑚 𝑚
• Or
𝑥
˙ ( 𝑡 )=𝑥 2 (𝑡 )
1
𝑏 𝑘 1
𝑥˙ 2 ( 𝑡 )=− 𝑥 2 ( 𝑡 ) − 𝑥 1 ( 𝑡 ) + 𝑢(𝑡 )
𝑚 𝑚 𝑚
• The output equation is
𝑦 ( 𝑡 ) =𝑥 (𝑡)
1
Example-1
𝑥
𝑏 𝑘 1
˙
1 ( 𝑡 )=𝑥 2 (𝑡 ) 𝑥˙ 2 ( 𝑡 )=− 𝑥 2 ( 𝑡 ) − 𝑥 1 ( 𝑡 ) + 𝑢(𝑡 ) 𝑦 ( 𝑡 )=𝑥 1 ( 𝑡 )
𝑚 𝑚 𝑚
• In a vector-matrix form,
x 1 (t ) 0 1 x (t ) 0
x (t ) k b 1 1 u (t )
x2 (t )
2 m m m
x1 (t )
y ( t ) 1 0
x
2 ( t )