Hello I am having trouble trying to find the correct model for this coupled spring system. The scenario is the following we have: Ceiling - Spring - Mass(1) - Spring(2) - Mass(2) - Spring (3) - Mass(3) End.
I came up with the following system of differential equations in the 2nd order to model this problem.
$x_1^{''}=[-k_1x_1-k_2(x_2-x_1)-k_3(x_3-x_2)]/m_1$
$x_2^{''}=[-k_2(x_2-x_1)-k_3(x_3-x_2)]/m_2$
$x_3^{''}=-k_3(x_3-x_2)/m_3$
Is this the correct model? Afterwards I am trying to linearize these equations into 6 differential equations that I can input in matlab and plot the position of each spring.
So I linearized them and obtained the following:
$y_1^{'}=y_2$
$y_2^{'}=(-k_1y_1-k_2(y_3-y_1)-k_3(y_5-y_3)/m_1$
$y_3^{'}=y_4$
$y_4^{'}=(-k_2(y_3-y_1)-k_3(y_5-y_3)/m_2$
$y_5^{'}=y_6$
$y_6^{'}=(-k_3(y_5-y_3))/m_3$
I am not sure if this is correct or not. When I plot them in matlab I dont get a sinusoidal wave. A big plus if you guys can tell me how I could animate this system in matlab so that I can see the change in position in all three of the springs.