Recall that Newton's second law applied to a mass-spring system, as in §B.1.4, yields
which led to the differential equation obeyed by the mass-spring system:
Multiplying through by gives
Thus, Newton's second law and Hooke's law imply conservation of energy in the mass-spring system of Fig.B.2.