I'm working through a Differential Equations book and came across a question that puzzles me:
"Consider a spring-mass system where there are two masses connected in series by springs, with each spring having a different constant ($k_1$ and $k_2$)" (set up like this):
|<><>($m_1$)<><>($m_2$)
Where $m_1$ and $m_2$ are the masses, and $k_1$ and $k_2$ would be the spring constants. The position of each mass is given by $x_1$ and $x_2$.
It asks to show that (using $F=ma$) the system can be described by this pair of DEs: \begin{align} m_1\ddot{x}_1 &= -(k_1+k_2)x_1 + k_2x_2\\ m_2\ddot{x}_2 &= k_2x_1 - k_2x_2 \end{align}
and then reduce these to a single equation for the position of mass 2 ($x_2$).
Any suggestions on how to get these equations? Been a while since my Physics days but I think it's primarily a mathematics question. Thanks in advance
To get to your first to equation, we need to examine the free body diagram for each mass. For mass one, when we displace it by $x_1$ (to the right), $k_1$ acts in the opposite direction. As this is occurring, $m_1$ is pushing into spring $k_2$ which causes $k_2$ to push back against $m_1$. Since $k_2$ is pushing against $m_1$, it is also pushing against $m_2$ in the opposite direction (to the right) by $x_2$. That is, $$ m_1\ddot{x}_1 = -k_1x_1 - k_2x_1 + k_2x_2 = -(k_1 + k_2)x_1 + k_2x_2 $$ Now when we displace $m_2$ by $x_2$ (to the right), we have $k_2$ pulling back and then pulling (to the right) $m_1$ by $x_1$ so $$ m_2\ddot{x}_2 = -k_2x_2 + k_2x_1 $$
For the next part, do you not have initial conditions or is there a forcing $f(t)$? If not, we can only go to as far as I have gotten.
What I would do next is take the Laplace Transform of both DE (under assumptions of zero IC). $$ F(s) = \int_0^{\infty}f(t)e^{-st}dt $$ The Laplace transform of both are \begin{align} m_1s^2X_1(s) &= -(k_1 + k_2)X_1(s) + k_2X_2(s)\tag{1}\\ m_2s^2X_2(s) &= -k_2X_2(s) + k_2X_1(s)\tag{2} \end{align}
If we have IC or a forcing function $f(t)$ we could continue in such a manner. We can solve equation (1) for $X_1(s) = \frac{k_2X_2(s)}{m_1s^2 + k_1 + k_2}$ which can then plug into equation (2). $$ m_2s^2X(s) = -k_2X(s) + \frac{k_2^2}{m_1s^2 + k_1 + k_2}X(s)\tag{3} $$ Now, we need IC or $f(t)$.
With zero initial conditions and no driving force, we can solve equation (3) as is; that is, $$ X_2(s)\bigg[m_2s^2 + k_2 - \frac{k_2^2}{m_1s^2 + k_1 + k_2}\bigg] = 0\tag{4} $$ Then we have $X_2(s) = 0\Rightarrow\mathcal{L}^{-1}(X_2(s)) = \mathcal{L}^{-1}(0)$ which is $$ x_2(t) = 0 $$