harmonics.in Menu

Harmonics of square, triangle and sawtooth waves

Add the harmonics one at a time and watch the wave form. Square and triangle waves hold only odd harmonics; a sawtooth holds them all.

The drawing

Wave
123456789
Above: two periods of the wave summed up to that harmonic. Below: the size of each harmonic, the fundamental being 1.

THD of this sum: 42.9%. Of the ideal wave: 48.3%.

Which harmonics does each wave hold?

Ideal waves, sizes against the fundamental; THD worked out here
WaveHoldsSize of the nthTHD
Squareodd only1/n48.3% source source
Triangleodd, signs alternating1/n²12.1% source source
Sawtootheven and odd1/n80.3% source source