In: Physics
When an instrument produces sound (as a result of a standing wave condition) it not only produces a frequency fo but many other frequencies which are integral multiples of this fundamental frequency fo. These are called harmonics of the fundamental frequency.
fn = nfo
Sound produced by the these frequencies can be represented in time-domain as a sum of series of sine and cosine functions:
where, ao, an and bn are the amplitudes of the nth harmonic.
If a guitar and a trumpet play the same note (same fundamental frequency fo), they would have the same higher harmonics. However, the amplitudes of these harmonics will be different which qualitatively means that the energy in each harmonic is different for the two instruments (in musical terms, the two instruments have different 'timbres'). This implies that the Fourier spectrum will look quite different for the same note played on a guitar and a trumpet: both would have the same frequencies in its Fourier spectrum but the amplitudes for them would be different for the two instruments.