 However, if the mass is displaced from the equilibrium position, the spring exerts a restoring elastic force that obeys Hooke's law.Mathematically, the restoring force is given by
where is the restoring elastic force exerted by the spring (in SI units