# Two mass spring system The equations of motion of the spring mass system with, m = 1

$\ddot{y_1} = -k_1y_1 + k_1(y_2-y_1)$

$\ddot{y_2} = -k(y_2-y_1) - ky_2$

My question is with the second term in the first equation. I don't understand why the second term is

$y_2 - y_1$

I know the spring force is in the opposite direction of displacement, and only displacement of the spring is taken into account. But, since the position is defined as zero at equilibrium position of each mass, I'm confused at the subtraction. Shouldn't they be added together since, stretching the system in the positive direction would stretch the string in the $y_1$ and $y_2$

## migrated from math.stackexchange.comJan 17 '16 at 10:25

This question came from our site for people studying math at any level and professionals in related fields.

The force in the middle spring is $k(y_2-y_1)$ because it is lengthened when $y_1\lt 0$ or $y_2 \gt 0$. A positive sign on that force indicates that $m_1$ is pulled down and $m_2$ is pulled up. When $m_2$ is pulled down, $y_2 \gt 0$ and there is a downward force on $m_1$, so it will cause an increase in $\ddot {y_1}$. It will also cause an upward force on $m_2$ for the same reason.
• I don't know any way other than being careful. You look at the direction the force is applied and make sure the sign of the acceleration is correct. When you pull $m_1$ down, the force on it is up, so the acceleration is negative, and so on. – Ross Millikan Jan 17 '16 at 21:44
• You are correct that you don't know from the start whether the middle spring is in tension or compression, but you should be able to see that its force is $k(y_2-y_1)$, then reason that if $y_2-y_1$ is positive the spring is in tension. That will get you the sign for both masses. If the middle spring is in tension, which means $y_2-y_1 \gt 0$ it produces a downward force on $m_1$, so adds to $\ddot y_1$ and produces an upward force on $m_2$, so subtracts from $\ddot y_2$ – Ross Millikan Jan 17 '16 at 23:35
• What makes the problem hard is we are using the wrong variables. If we define $x_1=y_1-y_2, x_2=y_1+y_2$ the equations decouple. The $x_1$ equation uses all three springs and the $x_2$ equation ignores the middle spring. These are the two modes of the system. – Ross Millikan Jan 17 '16 at 23:38