KE and total energy of a simple harmonic oscillator with displacement.