This is the most general form of Fourier transform.
The first one is the forward transform, and the second one is the inverse transform.
The discrete time function can be considered as a sequence of samples of continuous time function. The time interval between two consecutive samples and is , where is the sampling rate, which is also the period of the spectrum in the frequency domain.
The discrete time function can be written as
and its transform is:
We can verify that the spectrum is indeed periodic:
This is the Fourier series expansion of periodic
functions. The time period is , and the interval between two
consecutive frequency components is , and its transform is:
The discrete spectrum can also be represented as:
We can verify that the time function is indeed periodic:
This is the discrete Fourier transform (DFT).
The DFT can be redefined as
where .
We can easily verify that the time function and its spectrum are indeed periodic: and .
Note that there are alternative ways for arranging the constant coefficients. For example, one could define the forward transform without the coefficient , and have as the coefficient for the inverse transform.