The graphical representation of a simple harmonic oscillator with kinetic energy K, potential energy U and total energy Etotal with the change in displacement y is as shown in the figure. It is clear that displacement-potential energy curve is parabola.

Fig: Energy of simple harmonic oscillator
Again by studying Graph it is a clear that during motion the sum of potential and kinetic energy is total energy and it is uniform. If at any displacement y the value of kinetic energy is equal to the potential energy then;
Kinetic energy = Potential energy

where kinetic energy and potential energy are same.
Where as, total energy is not uniform due to the frictional forces. Generally, the total energy of the particle reduces slowly as a result of which the amplitude also decreases.