A 20 g particle is oscillating simple harmonically with a period of 2 second and maximum kinetic energy 2 J. The total mechanical energy of the particle is zero. Write the following —
(a) Amplitude of oscillation
(b) Potential energy as a function of displacement x relative to mean position.