The spring-mass system seems like a bit of a toy for high school physics nerds.
The solution for the motion of a freely oscillating ( non-driven ), damped, spring-mass system is :
| (1) |
Here ω is an angular frequency in [ rad/s ], and a is a decay factor. This can also be written as a = 1/τ, where τ is called the decay time constant. The idea is that the system oscillates with anangular frequency of ω radians per second, while the amplitude decays by a factor of 1/e per τ  seconds. The derivation can be looked up in text­books. The velocity v is the time derivative of the position x :
| (2) |
TBW.