Hookes law for restoring force of a spring