At what displacement, (i) the P.E. of a simple harmonic oscillator is maximum, (ii) the K.E. is maximum?

The P.E. of a particle executing S.H.M. is given by: