Professional Documents
Culture Documents
State Variables
Examples
Example 3.1
2. Draw FBD for each independent mass and junction point that can move with
an unknown motion.
𝑥
𝑞= 𝑢 = 𝑓𝑎 (𝑡)
𝑣
𝑥ሶ = 𝑣
𝑀𝑣ሶ + 𝐵𝑣 + 𝐾𝑥 = 𝑓𝑎 (𝑡)
Example 3.1
4. Manipulate the equations in state-variable form.
𝑥 𝑢 = 𝑓𝑎 (𝑡)
𝑞=
𝑣
• Equations from the state variables
𝑥ሶ = 𝑣
𝑓𝐾 = 𝐾𝑥
𝐵 𝐾 1
• the acceleration of the mass 𝑀 𝑎𝑀 = 𝑣ሶ = − 𝑣 − 𝑥 + 𝑓𝑎 (𝑡)
𝑀 𝑀 𝑀
Example 3.2
EX 3.2
Video solution
• Find the state-variable model for this system. attached
𝐾1 𝑥1 𝐵 𝑣1 − 𝑣2 𝑓𝑎 (𝑡)
𝑀1 𝐵 𝑣2 − 𝑣1
𝑀1 𝑣ሶ 1 𝐾2 𝑥1 − 𝑥2 𝑀2 𝑣ሶ 2
𝑀2
𝐾2 𝑥2 − 𝑥1
𝑀1 𝑣ሶ 1 + 𝐵 𝑣1 − 𝑣2 + 𝐾1 𝑥1 + 𝐾2 𝑥1 − 𝑥2 = 0
𝑀2 𝑣ሶ 2 + 𝐵 𝑣2 − 𝑣1 + 𝐾2 𝑥2 − 𝑥1 = 𝑓𝑎 (𝑡)
𝑥ሶ 1 = 𝑣1
• Extra equations using just the state variables 𝑥ሶ 2 = 𝑣2
Example 3.2
• The state variables and the inputs
𝑥1
𝑣1
𝑞= 𝑥2 𝑢 = 𝑓𝑎 (𝑡)
𝑣2
𝑓𝐾2 = 𝐾2 (𝑥2 − 𝑥1 )
𝑥𝑟 = 𝑥1 − 𝑥2
𝑣𝑟 = 𝑣1 − 𝑣2
𝑥2
𝑥1 𝑥𝑟
𝑀2
𝑀1
Example 3.3
• The state variables and the inputs
𝑥1
𝑣1 𝑥𝑟 = 𝑥1 − 𝑥2
𝑞= 𝑥𝑟 𝑢 = 𝑓𝑎 (𝑡)
𝑣𝑟 = 𝑣1 − 𝑣2
𝑣𝑟
𝑓𝐾2 = 𝐾2 𝑥2 − 𝑥1
= −𝐾2 𝑥𝑟
• the velocity the masses 𝑣1 and 𝑣2 , and
𝑣1
𝑣2 = 𝑣1 − 𝑣𝑟
𝑚 𝑇 = 𝑀1 𝑣1 + 𝑀2 𝑣2 = 𝑀1 𝑣1 + 𝑀2 𝑣1 − 𝑣𝑟
Example 3.7
• Find the state-variable model for this system.
• The input is the force 𝑓𝑎(𝑡) and the output is the displacement 𝑥2 of the
massless junction A.
EX 3.7
Video solution
attached
Example 3.7
• Inspect the FBD at the mass M and the node A
𝑥1
𝑞 = 𝑣1
𝑥2
𝑥1
𝑥2
𝑓𝑎 (𝑡) 𝐵1 𝑣1 𝐵2 𝑥ሶ 2
𝑀𝑣ሶ 1
𝑀 𝐾2 𝑥2 𝐴
𝐾1 𝑥1 − 𝑥2 𝐾1 𝑥2 − 𝑥1
𝑓𝑎 (𝑡) 𝐵1 𝑣1 𝐵2 𝑥ሶ 2
𝑀𝑣ሶ 1
𝑀 𝐾2 𝑥2 𝐴
𝐾1 𝑥1 − 𝑥2 𝐾1 𝑥2 − 𝑥1
𝑀𝑣ሶ 1 + 𝐵1 𝑣1 + 𝐾1 𝑥1 − 𝑥2 = 𝑓𝑎 𝑡
𝐵2 𝑣2 + 𝐾1 𝑥2 − 𝑥1 + 𝐾2 𝑥2 = 0
𝑥1 𝑥ሶ 1 = 𝑣1
𝑢 = 𝑓𝑎 (𝑡) 𝐵1 𝐾1 1
𝑞 = 𝑣1 𝑣ሶ 1 = − 𝑣1 − 𝑥1 − 𝑥2 + 𝑓𝑎 𝑡 𝑦 = 𝑥2
𝑥2 𝑀 𝑀 𝑀
𝐾1 𝐾2
𝑥ሶ 2 = − 𝑥2 − 𝑥1 − 𝑥2
𝐵2 𝐵2
Example 3.7
• What if 𝐵2 is removed
𝑥1 𝑥2
𝑓𝑎 (𝑡) 𝐵1 𝑣1 𝐵2 𝑥ሶ 2
𝑀𝑣ሶ 1
𝑀 𝐾2 𝑥2 𝐴
𝐾1 𝑥1 − 𝑥2 𝐾1 𝑥2 − 𝑥1
𝑀𝑣ሶ 1 + 𝐵1 𝑣1 + 𝐾1 𝑥1 − 𝑥2 = 𝑓𝑎 𝑡
𝐵2 𝑣2 + 𝐾1 𝑥2 − 𝑥1 + 𝐾2 𝑥2 = 0
• From the second equation, this will give an algebraic relation between 𝑥1 and 𝑥2 . This
means that the are NOT independent, and hence can NOT both be state variables.
𝐾1 𝑥2 − 𝑥1 + 𝐾2 𝑥2 = 0
𝐾1 + 𝐾2
𝑥1 = 𝑥2
𝐾1
Example 3.7
• From the FBD equations
𝑥2
𝑥1
𝑓𝑎 (𝑡) 𝐵1 𝑣1 𝐵2 𝑥ሶ 2
𝑀𝑣ሶ 1
𝑀 𝐾2 𝑥2 𝐴
𝐾1 𝑥1 − 𝑥2 𝐾1 𝑥2 − 𝑥1
𝑀𝑣ሶ 1 + 𝐵1 𝑣1 + 𝐾1 𝑥1 − 𝑥2 = 𝑓𝑎 𝑡
𝐾1 𝑥2 − 𝑥1 + 𝐾2 𝑥2 = 0
• It is also desirable to avoid input derivatives on the right side of the output
equations, if possible, although this is not always possible.
Example 3.8
• Find the state-variable model for this system. The input to the system is the
displacement 𝑥2(𝑡).The output of interest are the displacement and velocity of M1.
EX 3.8
Video solution
attached
• 𝑥2(𝑡) is a known input. There must be a force F that is causing the motion of 𝑀2 .
𝑥1 𝑥2 (𝑡)
𝐵 𝑣1 − 𝑥ሶ 2 (𝑡) 𝐾1 𝑥1 𝐹 𝐵 𝑥ሶ 2 𝑡 − 𝑣1
𝑀𝑣ሶ 1
𝑀1 𝑀2 𝑥ሷ 2 (𝑡) 𝑀2
𝐾2 𝑥1 − 𝑥2 (𝑡) 𝐾2 𝑥2 (𝑡) − 𝑥1
Example 3.8
• The FBD equation, second FBD can be used to solve for the unknown force 𝐹
𝑥1 𝑥2 (𝑡)
𝐵 𝑣1 − 𝑥ሶ 2 (𝑡) 𝐾1 𝑥1 𝐹 𝐵 𝑥ሶ 2 𝑡 − 𝑣1
𝑀𝑣ሶ 1
𝑀1 𝑀2 𝑥ሷ 2 (𝑡) 𝑀2
𝐾2 𝑥1 − 𝑥2 (𝑡) 𝐾2 𝑥2 (𝑡) − 𝑥1
𝑥1 𝑥ሶ 1 = 𝑣1
𝑞= 𝑣 𝑢 = 𝑥2 (𝑡) 𝐵 𝐾1 + 𝐾2 𝐾2 𝐵
1 𝑣ሶ 1 = − 𝑣1 − 𝑥1 + 𝑥2 (𝑡) + 𝑥ሶ 2 (𝑡)
𝑀 𝑀 𝑀 𝑀
𝑥1 𝑥ሶ 1 = 𝑣1
𝑞= 𝑣 𝑢 = 𝑥2 (𝑡) 𝐵 𝐾1 + 𝐾2 𝐾2 𝐵
1 𝑣ሶ 1 = − 𝑣1 − 𝑥1 + 𝑥2 (𝑡) + 𝑥ሶ 2 (𝑡)
𝑀 𝑀 𝑀 𝑀
𝐵 𝐵
𝑥1 𝑤1 = 𝑣1 − 𝑥2 (𝑡) 𝑥ሶ 1 = 𝑣1 = 𝑤1 + 𝑥2 (𝑡)
𝑞= 𝑤 𝑀 𝑀
1 𝐵 𝐵 𝐵 𝐾1 + 𝐾2 𝐾2
𝑤ሶ 1 = 𝑣ሶ 1 − 𝑥ሶ 2 (𝑡) 𝑤ሶ 1 = − 𝑤1 + 𝑥2 (𝑡) − 𝑥1 + 𝑥2 (𝑡)
𝑀 𝑀 𝑀 𝑀 𝑀