Suppose is a complex-valued signal with period , a positive integer. (We are using complex-valued signals rather than real-valued ones because the mathematics will turn out simpler.) The values of for (one period) determine for all integer values of .
Suppose further that can be written as a sum of sinusoids of frequency , , , , . These are the partials, starting with the zeroth, for a signal of period . We stop after the th partial because the next one would have frequency , equivalent to frequency , which is already on the list.
Given the values of , we wish to find the complex amplitudes of the partials. Suppose we want the th partial, where . The frequency of the partial is . We can get its amplitude by modulating downward radians per sample in frequency, so that the th partial is modulated to frequency zero. Then we pass the signal through a low-pass filter with such a low cutoff frequency that nothing but the zero-frequency partial remains. Such a filter will essentially average the samples of its periodic input. In summary, to measure a sinusoidal component of a periodic signal, modulate it down to DC and then average over one period.
Let be the unit-magnitude complex number with argument (the
fundamental frequency of a signal with period ):