Ch.3.1 Introduction To State Variables
Ch.3.1 Introduction To State Variables
Ch.3.1 Introduction To State Variables
State Variables
Introduction to State Variables
Review from Chapter 2 / Motivation
Parameters Input
𝑀𝑥ሷ 𝑡 + 𝐵𝑥ሶ 𝑡 + 𝐾𝑥 𝑡 = 𝑓𝑎 𝑡
Variable
𝑡 = 𝑡0
𝑓 𝑡 𝑀𝑥ሷ 𝑡 + 𝐵𝑥ሶ 𝑡 + 𝐾𝑥 𝑡 = 𝑓𝑎 𝑡
t
𝑞 𝑡 < 𝑡0 𝑞 𝑡0 𝑞 𝑡 > 𝑡0
• This set of state variables must completely describe the effect of the
past history of the system on its response in the future.
State-Variables Properties
𝒒 𝑡 = 𝑞1 𝑡 … 𝑞𝑖 𝑡
• State variables must be independent,
• It must be impossible to express any state variable as an algebraic function of the
remaining state variables and the inputs.
𝑀𝑥ሷ 𝑡 + 𝐵𝑥ሶ 𝑡 + 𝐾𝑥 𝑡 = 𝑓𝑎 𝑡
• State variables are not unique,
• For the same problem we could choose many different sets of state variables.
Node / Node /
Junction Junction
x1 x2
𝑥1
• If we choose the state variable 𝒒 𝑡 = 𝑣 , you can not determine 𝑥2 and 𝑣2?
1
State-Variable Equations
𝑀𝑥ሷ 𝑡 + 𝐵𝑥ሶ 𝑡 + 𝐾𝑥 𝑡 = 𝑓𝑎 𝑡
Variable Input
• State variables: 𝒒 𝑡 = 𝑞1 𝑡 𝑞2 𝑡 𝑞3 𝑡
• Inputs: 𝒖 𝑡 = 𝑢1 𝑡 𝑢2 𝑡
• Model:
No derivatives
𝑞ሶ 1 = 𝑎11 𝑞1 + 𝑎12 𝑞2 + 𝑎13 𝑞3 + 𝑏11 𝑢1 + 𝑏12 𝑢2
𝑞ሶ 2 = 𝑎21 𝑞1 + 𝑎22 𝑞2 + 𝑎23 𝑞3 + 𝑏21 𝑢1 + 𝑏22 𝑢2
𝑞ሶ 3 = 𝑎31 𝑞1 + 𝑎32 𝑞2 + 𝑎33 𝑞3 + 𝑏31 𝑢1 + 𝑏32 𝑢2
State-Variable Equations
• State variables, qi, are solved as a group at each time step and we don’t solve them independently. Solve the
differential equations simultaneously.
𝑡 = 𝑡0 𝑓 𝑡
t
𝑞 𝑡 < 𝑡0 𝑞 𝑡0 𝑞 𝑡 > 𝑡0
State-Variable Equations
• After solving the model, one can solve for the 𝑞’s for all time.
𝑡 = 𝑡0
𝑓 𝑡
t
𝑞 𝑡 < 𝑡0 𝑞 𝑡0 𝑞 𝑡 > 𝑡0
• It is not uncommon to have some of the output variables, yi, to be identical to the state variables.
State-Variable Equations
• The general approach for deriving the mathematical model in state-variable form includes:
2. Draw FBD for each independent mass and junction point that can move with an unknown motion.
3. Sum the forces on each FBD to obtain a set of differential equations. Add equations of the state variables.
5. Express the output variables as algebraic functions of the state variables, the inputs and possibly time.