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. Keeping the convention of
Chapters 7 and 8, upper-case variables such as ``
"
denote complex numbers and lower case ones like ``
"
denote real ones.) Because of the period
, the
values of
for
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 short, to measure a sinusoidal component of a periodic signal,
modulate it down to DC and then average over one period.
Let
be the fundamental frequency
for the period
, and let
be the
unit-magnitude complex number with argument
: