This is the motion of a simple harmonic oscillator. It is governed by the equation mẍ + γẋ + kx = 0.
Adjust the slider below to tune the value of the damping coefficient γ. Notice the different regimes of behavior!