[ Demos ] [ EECS 20 Home ] [ Corresponding lecture ]

The Frequency Content of Various Waveforms

In this demonstration, you witness the construction of non-sinusoidal waveform from sinusoidal components. The control panel looks like this:

[control panel]

The buttons turn on and off the individual frequency components. The "0" button controls the constant term. The "1" button controls the fundamental frequency. The "2" button controls the first harmonic (at twice the frequency of the fundamental). Here is an image of a triangle wave (in red) and its fundamental component (in blue):

[signal display]

Here is an image of a sawtooth wave (in red) and the sum of its first four frequency components (numbers 0 through 3):

[signal display]

Here is an image of a square wave (in red) and the sum of its first 10 frequency components (numbers 0 through 9):

[signal display]

Each of the frequency components has a different amplitude. If we plot the amplitude of each frequency component as a function of frequency, we get something like this for the square wave:

[signal display]

Notice that not all 10 frequency components are present; some have zero amplitude. In particular, the one with zero frequency (the constant term) is absent. Frequency number "1" (the fundamental) is present, and has large amplitude. Frequency number "2" (the first harmonic) is absent. Frequency number "3" is present, and has an amplitude about 1/3 of the fundamental. The other frequency components have decreasing amplitudes. After frequency component number "9", there are no more just because we have turned them off.

Observations

The waveforms that had richer sound in the previous demonstration had larger components at higher frequencies.
Copyright © 1996, The Regents of the University of California. All rights reserved.
Last updated: 96/01/28, comments to: eal@eecs.berkeley.edu