A jack-in-the-box is actually a system that consists of an object attached to the top of a vertical spring (Fig.)
a. Sketch the energy graph for the potential energy and the total energy of the spring-object system as a function of compression distance x from x = -xmax to x =0. Where -xmax is the maximum amount of compression of the spring. Ignore the change in gravitational potential energy.
b. Sketch the kinetic energy of the system between these points-the two distances in part (a)-on the same graph (using a different color).