In the absence of damping the motion of a spring-mass system satisfies the
initial value
problem
$$
m u^{\prime \prime}+k u=0, \quad u(0)=a, \quad u^{\prime}(0)=b
$$
(a) Show that the kinetic energy initially imparted to the mass is \(m b^{2} /
2\) and that the
potential energy initially stored in the spring is \(k a^{2} / 2,\) so that
initially the total energy in the system is \(\left(k a^{2}+m b^{2}\right) /
2\).
(b) Solve the given initial value problem.
(c) Using the solution in part (b), determine the total energy in the system
at any time \(t .\) Your result should confirm the principle of conservation of
energy for this system.