For a mass m attached to a spring with spring constant k
The force is proportional to the displacement.
Assume there is a damping force which is proportional to the velocity
The above equation can be rewrite as
Do you notice the similarity between equation for spring and pendulum set?