Discrete Fourier transform DFT
If
or
is known analytically or numerically, the above integrals can be evaluated using the integration techniques. In practice, the signal
is measured at just a finite number
of times
, and these are what we must use to approximate the transform. The resultant discrete Fourier transform is an approximation both because the signal is not known for all times and because we integrate numerically. The DFT algorithm results from evaluating the integral not from
and
but rather from time
to time
over which the signal is measured, and by using
the trapezoid rule for the integration:

To keep the final notation more symmetric, the step size
is factored from the transform
and a discrete function
is defined:

With this same care in accounting, and with
, we invert the
's:
