Give the expression for total energy in S.H.M. & dimensional formula