Skip to main content

State model of two-mass spring system, output x2

Short answer

Define states z₁=x₁, z₂=ẋ₁, z₃=x₂, z₄=ẋ₂. State equations: ż₁=z₂, ż₂=-(K₁+K₂)/M₁ z₁ + (K₂/M₁)z₃, ż₃=z₄, ż₄=(K₂/M₂)z₁ - (K₂/M₂)z₃ + (1/M₂)F. Output y=z₃.

Represent the mechanical system of figure 1 (wall – spring K1 – mass M1 – spring K2 – mass M2 with force F(t) on M2, no friction) with state equation and output equation, if output is x2(t) in the figure.

Let x1x_1 and x2x_2 be the displacements of M1M_1 and M2M_2 from their rest positions (positive to the right).

 |    K1    +----+   K2    +----+
 |--/\/\/---| M1 |--/\/\/--| M2 |--> F(t)
 |          +----+         +----+
 |           x1 ->          x2 ->

Equations of motion (no friction)

Mass M1M_1: spring K1K_1 exerts a restoring force K1x1K_1x_1, and spring K2K_2 exerts K2(x1−x2)K_2(x_1 - x_2):

M1x¨1+K1x1+K2(x1−x2)=0M_1\ddot{x}_1 + K_1x_1 + K_2(x_1 - x_2) = 0

Mass M2M_2:

M2x¨2+K2(x2−x1)=F(t)M_2\ddot{x}_2 + K_2(x_2 - x_1) = F(t)

State variables

z1=x1z_1 = x_1, z2=x˙1z_2 = \dot{x}_1, z3=x2z_3 = x_2, z4=x˙2z_4 = \dot{x}_2:

z˙1=z2z˙2=−K1+K2M1z1+K2M1z3z˙3=z4z˙4=K2M2z1−K2M2z3+1M2F(t)\begin{aligned} \dot{z}_1 &= z_2 \\ \dot{z}_2 &= -\frac{K_1 + K_2}{M_1}z_1 + \frac{K_2}{M_1}z_3 \\ \dot{z}_3 &= z_4 \\ \dot{z}_4 &= \frac{K_2}{M_2}z_1 - \frac{K_2}{M_2}z_3 + \frac{1}{M_2}F(t) \end{aligned}

State equation

[z˙1z˙2z˙3z˙4]=[0100−K1+K2M10K2M100001K2M20−K2M20][z1z2z3z4]+[0001M2]F(t)\begin{bmatrix} \dot{z}_1 \\ \dot{z}_2 \\ \dot{z}_3 \\ \dot{z}_4 \end{bmatrix} = \begin{bmatrix} 0 & 1 & 0 & 0 \\ -\dfrac{K_1+K_2}{M_1} & 0 & \dfrac{K_2}{M_1} & 0 \\ 0 & 0 & 0 & 1 \\ \dfrac{K_2}{M_2} & 0 & -\dfrac{K_2}{M_2} & 0 \end{bmatrix}\begin{bmatrix} z_1 \\ z_2 \\ z_3 \\ z_4 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ 0 \\ \dfrac{1}{M_2} \end{bmatrix}F(t)

Output equation

y=x2(t)=[0010][z1z2z3z4]y = x_2(t) = \begin{bmatrix} 0 & 0 & 1 & 0 \end{bmatrix}\begin{bmatrix} z_1 \\ z_2 \\ z_3 \\ z_4 \end{bmatrix}

With no damping, the eigenvalues of AA lie on the imaginary axis, so the system oscillates without decay (marginally stable).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Control Systems chapter 8 questions →