A chain of masses attached to vertical springs and coupled by elastic links. The blue curve shows the displacements, the red points represent the masses, the orange arrows show the resultant elastic forces, and the green arrows show the velocities.
m · l″i = -r · li + e[(li-1 - li) + (li+1 - li)].