Find the total energy of the particle executing linear SHM and show graphically the variation of P.E and K.E with respect to position.