A particle of amplitude A executes simple harmonic motion.
(i) Show that if its kinetic energy is n times its potential energy at some instant, the magnitude of displacement from the mean position is x=n+1A.
(ii) Hence, find the displacement as a fraction of A when the kinetic energy is three times the potential energy.