Given , T= s
amplitude, x= 0.5 m
mass , m = 10g=0.01kg ,as we know that:
The maximum force is obtained at the maximum displacement i.e . amplitude
The negative value of force shows the attractive nature.
(as)
Thus total energy of the oscillator remains constant as displacement is regained after every half cycle.
no energy is dissipated then all the potential energy becomes kinetic and vice versa.
Figure below shows the variation of kinetic energy and potential energy of harmonic oscillator with time where phase φ is set to zero for simplicity