Let’s say we have two objects, m1 and m2, connected by two springs as shown in the above figure. Let the distance from the equilibrium point to object m1 be x1, and to object m2 be x2. The restoring force exerted by a spring on an object is the product of the spring constant and the stretch (or compression) of the spring, so the force exerted by spring 1 on object 1 is −k1x1. Since spring 2 is compressed, it pushes object 1 to the left, so the force exerted by spring 2 on object 1 is −k2(x1−x2). Therefore, the equation of motion for object 1 is as follows:
Object 2 is pulled to the left by the extension of spring 2, so the force exerted by spring 2 on object 2 is −k2(x2−x1). Therefore, the equation of motion for object 2 is as follows:
Object m1 is acted upon by both spring 1 and spring 2. Calculating as before, these forces are respectively −k1x1 and −k2(x1−x2). Therefore, the equation of motion for object 1 remains the same.
x1¨+m1k1+k2x1−m1k2x2=0
Object m2 is acted upon by both spring 2 and spring 3. These forces are respectively −k2(x2−x1) and −k3x2. Therefore, the equation of motion for object 2 is as follows: