Show that for a particle in linear SHM, the average kinetic energy over a period of oscillation equals the average potential energy over the same period.

Suppose a particle of mass m executes SHM of period T. The displacement of the particle at any instant t is given by