  The Fourier series method is used to solve the homogeneous equation governing the motion of the harmonic oscillator. It is shown that the general solution to the problem can be found in a surprisingly simple way for the case of the simple harmonic oscillator. It is also shown that the damped harmonic oscillator is susceptible to the analysis. 
Harmonic oscillator: an analysis via Fourier series