Draw a potential energy diagram, U vs. x, and analyze the motion of a mass m resting on a…

Draw a potential energy diagram, U vs. x,
and analyze the motion of a mass m resting on a frictionless horizontal table
and connected to a horizontal spring with stiffness constant k. The mass is
pulled a distance to the right so that the spring is stretched a distance x0
initially, and then the mass is released from rest.