2.7  Advanced: Summary of equations for DFT / FFT Usage

The DFT resolution in radians is ΔΩ = 2πN. Using ω = ΩFs, one can note that the continuous-time angular frequency ω = 2πFs rad/s corresponds to the angle Ω = 2π rad. Hence, the DFT frequency spacing is

Δf = Fs N .
(2.37)

For example, assuming Fs = 100 Hz, a DFT of N = 256 points has a resolution of Δf = 0.3906 Hz. In radians, this resolution corresponds to ΔΩ = 2π256 0.0245 rad.

Note that Δf can also be written as Δf = FsN = 1(NTs), where NTs is the total duration Ttotal of the signal being analyzed, such that

Δf = 1 Ttotal.
(2.38)

Hence, a spectral analysis with resolution of at least Δf Hz requires a data record of length

Ttotal 1 Δf.
(2.39)

The following example illustrates the interpretation in Hz of a DFT result. The DFT performs a sampling operation on the frequency domain Ω according Eq. (2.35). As illustrated in Figure 2.7, a DFT with N = 3 points (or 3-DFT) uses three basis functions ejΩ with the angles Ω = 0,2π3,4π3 rad, i. e., a counter-clockwise rotation using a step of Δw = 2π3. These angles correspond to k = 0,1,2, respectively, as indicated by Eq. (2.11). Note that in Figure 2.7, incrementing k corresponds to a clockwise rotation, given that Eq. (2.17) defines the twiddle factor with a negative exponent.

The three angles of a 3-DFT correspond to 0,Fs3,Fs3 Hz, respectively, as indicated by ω = ΩFs or directly observing that the DFT uses a grid of Δf = FsN. For N = 4, the four angles correspond to the frequencies 0,Fs4,Fs2,Fs4 Hz. The angle corresponding to k = 0 is always 0 rad, which is called DC because corresponds to 0 Hz. Note that for k > N2 the DFT values correspond to negative frequencies. The angular frequency corresponding to the k-th angle is

Ωk = kΔΩ = k2π N ,
(2.40)

which corresponds to the regular (linear) frequency

fk = kΔf = kFs N .
(2.41)

The values representing the largest frequency when N is even is

k = N2,
(2.42)

which corresponds to π rad and Fs2 Hz. When N is odd, the value at

k = (N 1)2
(2.43)

is the one representing the largest frequency Fs(N 1)(2N) Hz. Table 2.6 summarizes some equations typically used with FFT algorithms.

Table 2.6: Summary of equations useful for signal processing with FFT.
Expression Reference Comment
Δf = FsN Eq. (2.37) Frequency spacing (Hz)
Δf = 1Ttotal Eq. (2.38) Dependence on signal duration (Hz)
ΔΩ = (2π)N Eq. (2.64) Frequency spacing (rad)
fk = k Δf Eq. (2.41) Frequency of k-th tone (Hz)
Ωk = k ΔΩ Eq. (2.40) Frequency of k-th tone (rad)
Fs2 Eq. (2.42) Highest frequency (Hz) for even N
Fs(N 1)(2N) Eq. (2.43) Highest frequency (Hz) for odd N

2.7.1  Advanced: Three normalization options for DFT / FFT pairs

As discussed, the following three transforms differ only on the normalization factor: DFT, unitary DFT and DTFS. Generalizing Eq. (2.20) and Eq. (2.21), the “core” DFT transform equations can be written as follows:

X[k] = α n=0N1x[n] (W N) nk
(2.44)

and

x[n] = β k=0N1X[k] (W N) nk.
(2.45)

As indicated in Eq. (2.25), the only requirement to have a valid pair is that

αβ = 1 N.
(2.46)

In summary, the three popular options for choosing α and β:

The next two sections present the Laplace and Z transforms.14 Both have two parameters that identifies each basis functions, in contrast to Fourier equations that have only the frequency. This extra degree of freedom, represented by sets of basis functions that are more powerful than the ones used in Fourier analysis, has the advantage of allowing the representation of a larger class of signals (and systems). A disadvantage is that the inverse transform is defined as a contour integration in the complex plane, which is an area of complex analysis that is out of the scope of this text. But it is rarely necessary to calculate the inverse transform using complex analysis. The Laplace and Z inverse transforms will be calculated here only by an alternative method called partial fraction expansion, which is discussed in the Appendix, Section A.10.

The Laplace and Z transforms are widely used to represent the action of linear and time-invariant systems, as will be detailed in Chapter 3. The Laplace transform has a number of properties that make it useful for analyzing linear systems. The most prominent advantage is that differentiation and integration become multiplication and division, respectively, by s. For example, this converts differential equations into polynomial equations, which are much easier to solve and, once solved, the inverse Laplace transform can provide the time domain formula. Similarly, Z transforms are useful to analyze discrete-time systems.