Works in the same way as the superposition principle.
Whatever waveform you have, it can be represented as a
Fourier Series.
The fundamental frequency is and when k > 1, these
1
are the harmonics.
The shape of the waveform is dependent on the
coefficients and .
Here are some typical wave forms,
12