In general a discrete time signal x[n] can have an infinite amount of samples from which the sampling index n ranges from −∞ to +∞, as depicted at the left hand side of Fig. 1. However when using the N-point DFT, we select N samples of x[n], typically ranging from time index n=0 until n=N−1. The frequency indices k of the DFT resulting samples X[k] also range from k=0 until k=N−1.
Both DFT and the Inverse DFT are periodic, or circular, operations. This periodic behavior can be shown for the Inverse DFT operation as follows:
\
When increasing the index n with λ×N, in which λ is a positive or negative integer, the Inverse DFT equation changes as follows:
x[n+λN]=1NN−1∑k=0X[k]ej2πNk(n+λN)=1NN−1∑k=0X[k]ej2πNkn⋅ej2πNkλN
The last complex exponent is equal to one for all values of index k and the result is equal to x[n]:
x[n+λN]=1NN−1∑k=0X[k]ej2πNkn⋅ej2πkλ=1NN−1∑k=0X[k]ej2πNkn⋅1=x[n]
This implies that the Inverse DFT results in a periodic signal, denoted by xp[n], which has a period of N samples.
This periodic signal xp[n] can be constructed from the original signal x[n] by first selecting the N signal samples that are used in the DFT operation and then periodically repeat these samples. This Periodic Extension, abbreviated as PE, is depicted at the right hand side of Fig. 1. Obviously only one period of this period extended signal xp[n] is of importance.
Typically we use the N samples ranging from index n=0 until n=N−1 which is the so called Fundamental Period, abbreviated by FP.
Example of Periodic Extension (PE).
In a similar way it can be shown that the DFT samples X[k] are periodic:
X[k+λN]=N−1∑n=0x[n]e−j2πN(k+λN)n=N−1∑n=0x[n]e−j2πNkn=X[k]⇒Xp[k].
As a result of this periodic behavior we can redefine the DFT and IDFT operations in terms of
the periodic extended notations as follows:
DFT: Xp[k]=N−1∑n=0xp[n]e−j2πNkn∀kIDFT: xp[n]=1NN−1∑k=0Xp[k]ej2πNkn∀n
In this definition the indices n and k range from −∞ to +∞. However we only need one period which is typically chosen in the index range from 0 until N−1. In time domain this range of N samples is the FP, representing the original N signal samples of x[n] which have been used for the DFT operation. In frequency domain this range of N samples is the FI, which represents relative frequencies θ in the range 0 until 2π.
Note: To simplify the notation, we will sometimes omit the sub-index p in the sequel if it is clear that we are dealing with a periodic extended signal.
Example
Give an expression for the 4-point periodic extended signal xp[n] of x[n]=δ[n−1] and calculate the 4-point DFT.
The periodic extended signal writes as xp[n]=δ[(n−1)mod(4)]. Some values are:
xp[−4]=δ[(−5)mod(4)]=0 ; xp[−3]=δ[(−4)mod(4)]=1xp[−2]=δ[(−3)mod(4)]=0 ; xp[−1]=δ[(−2)mod(4)]=0xp[0]=δ[(−1)mod(4)]=0 ; xp[1]=δ[(0)mod(4)]=1xp[2]=δ[(1)mod(4)]=0 ; xp[3]=δ[(2)mod(4)]=0xp[4]=δ[(3)mod(4)]=0 ; xp[5]=δ[(4)mod(4)]=1xp[6]=δ[(5)mod(4)]=0 ; xp[7]=δ[(6)mod(4)]=0
The 4-point DFT writes as:
Xp[k]=3∑n=0xp[n]e−j2π4kn=e−j2π4k=(−j)k
Some values are:
Xp[−4]=1 ; Xp[−3]=−j ; Xp[−2]=−1 ; Xp[−1]=jXp[0]=1 ; Xp[1]=−j ; Xp[2]=−1 ; Xp[3]=jXp[4]=1 ; Xp[5]=−j ; Xp[6]=−1 ; Xp[7]=j
Basic DFT summation or orthogonality property
In order to understand how the DFT equations can extract frequencies of a signal, we will see that the complex exponent WN=ej2πN, the so called twiddle factor, plays a very important role. This can be shown by evaluating the following summation:
S[k]=N−1∑n=0{WkN}n=N−1∑n=0{ej2πNk}n
which adds ,for each index k, N terms of a discrete time phasor with relative frequency θ=k⋅2πN.
For this evaluation we shown that S[k] is periodic with period N. With λ a positive or negative integer this can be proven as follows:
S[k+λ⋅N]=N−1∑n=0{ej2πN(k+λ⋅N)}n=N−1∑n=0{ej2πNk⋅ej2πNλ⋅N}n={ej2πNk⋅ej2πλ}n={ej2πNk⋅1}n=S[k]
Because of this periodic behavior, we only need to evaluate S[k] for one period, e.g. for k=0,1,⋯,N−1. For k=0 the result is:
S[k]|k=0=N−1∑n=0{ej2πN0}n=N−1∑n=0{1}n=N
To evaluate S[k] for k≠0 we use the following general geometric series:
N−1∑n=0an=1−aN1−a
which results into the following:
S[k]|k≠0=N−1∑n=0{ej2πNk}n=1−ej2πNkN1−ej2πNk=1−ej2πk1−ej2πNk=1−11−ej2πNk=0
This leads to the following basic DFT summation or orthogonality property:
S[k]=N−1∑n=0{WkN}n=N−1∑n=0{ej2πNk}n=Nδ[k mod(N)]
Thus, the summation S[k] is always equal to zero, except for the cases that the index k is an N-fold, thus for k equal to 0 or ±N or ±2N or etc. which can be described by the given delta function in which the index contains the modulo(N) operation.
Example
Calculate the values of S[k] for N=4 and k=−1,0,1,2,3,4 explicitly.
Give a mathematical expression in terms of a delta pulse of A[k]=∑7n=0ej2π4⋅n⋅k and calculate A[k] for for k=−8,−7,⋯,14,15.
A[k]=7∑n=0ej2π4⋅n⋅k=7∑n=0{ej2π82k}n=8⋅δ[2kmod(8)]
Explicit evaluation of A[k] are as follows:
A[−8]=8 ; A[−7]=0 ; A[−6]=0 ; A[−5]=0 ; A[−4]=8 ; A[−3]=0 ; A[−2]=0 ; A[−1]=0 ; A[0]=8 ; A[1]=0 ; A[2]=0 ; A[3]=0 ; A[4]=8 ; A[5]=0 ; A[6]=0 ; A[7]=0 ; A[8]=8 ; A[9]=0 ; A[10]=0 ; A[11]=0 ; A[12]=8 ; A[13]=0 ; A[14]=0 ; A[15]=0 ;
From these values it follows that we can write the result as follows:
A[k]=8δ[kmod(4)].
How the DFT extracts a frequency
In this subsection we will show by an example, that the basic DFT summation property is used in the DFT algorithm to find the relative frequencies which are ‘hidden’ in the signal samples
x[n] for n=0,1,⋯,N−1. In this example we use a DFT of length N=4, so for each resulting DFT index k the result of the DFT operation describes how much of the relative frequency k×2π4 is contained in the signal samples x[n] in the range n=0 until n=3.
In order to show how this works we use again the same sinusoidal example as before, namely x[n]=cos(π2n):
X[k]=3∑n=0x[n]e−j2π4kn=3∑n=0cos(π2n)e−jπ2kn
By using Euler, we can split the cosine into two discrete-time phasors, split the summation into two separate summations and combine in each of these summations the complex exponents:
Now we can use for each of these individual summations the previous described basic DFT summation property. The first summation will always result into zero except for the case when the DFT frequency index k−1 is a 4-fold, thus for k=1 or k=5 or k=−3 etc. Mathematically this can be described by a delta function from which the index contains a modulo-4 operation as given in the first part of the following result:
X[k]=12⋅4δ[(k−1) mod(4)]+12⋅4δ[(k+1) mod(4)]
The second summation will always result into zero except for the case when the DFT frequency index k+1 is a 4-fold, thus for k=−1 or k=−5 or k=3 etc. which also results in a delta function.
In the FI, which ranges from frequency index k=0 until k=3 in this case, this leads to the same two delta pulses as we have found before, namely:
⇒In FI: X[k]=2δ[k−1]+2δ[k−3]
This example shows how the basic DFT summation property is used in the DFT algorithm to extract the frequency components of the N signal samples x[n].
Example
Calculate a trigonometric expression for the 16 point IDFT xp[n] of Xp[k] which is defined as:
Xp[k]=2δ[(k−1)mod(16)]+δ[(k−3)mod(16)]+δ[(k−13)mod(16)]+2δ[(k−15)mod(16)]