This is a classical example of a second order ordinary differential equations:

damper-spring-mass