DFT properties

Screencast video [⯈]



In this section we will discuss the main DFT properties. We will see that most of these properties look similar to the properties of other Fourier transforms however there are some important differences which are caused by the fact that the DFT is a periodic, or circular, operation.



Circular shift

As one of the first consequences of the periodic behavior we need to pay special attention to the shift operation.

Comparison shift and circular shift.
Comparison shift and circular shift.

The two figures at the left hand side of Fig. 1 show a signals x[n] and its shifted version x[n1] which has been shifted over one sample to the right. More specifically the red sample at index n=0 moves to index n=1 and the blue sample at index n=3 moves to index n=4. The two figures at the right hand side of Fig. 1 shows the Periodic Extended signal xp[n], with period N=4 samples, and its shifted version xp[n1]. From these figures it is clear that xp[n1] and x[n1] are not the same. More specifically for xp[n1] the blue sample at index n=3 is moved out the FP at the right hand side while it enters again at the left hand side at index n=0. This circular, or periodic, behavior can be represented by using modulo counting as follows: The samples denoted by xp[(n1)modN] represent the samples in the FP of xp[n] which has been shifted over one sample.

For the proof of the circular shift property, we need an explicit expression for this modulo representation, which can be derived as follows:

Fig. 2 represents the time index axis n which ranges from until +. One interval of the periodic extended signal xp[n] consists of N samples and the indices of the FP range from 0 until N1. Now we shift xp[n] over n0 samples, in which we assume for simplicity n00.

Circular shift as modulo counting.
Circular shift as modulo counting.

An explicit expression for the indices of the samples of xp[nn0] within the FP can be found as follows:

As a first step we can represent the shifted sample at index n0 within the FP by adding λ times N, with λN. Then we must try to map N consecutive samples into the FP. The samples in the red area map into the red area at the right hand side of the FP. In this range the samples are indexed by nn0+λN, as denoted in the following equation: xp[(nn0)mod(N)]={xp[nn0+λN]index xp[nn0+λNN]index  In order to map the other samples, indicated in the blue area, inside the FP, an extra N samples must be subtract, as denoted in the equation above.

The circular shift property states that a circular shift in time domain results in a multiplication with a complex exponent in frequency domain: xp[nn0]ej2πNkn0Xp[k]

Proof of circular shift property


The DFT of the shifted samples xp[nn0] is denoted as: Y[k]=n=0N1xp[nn0]ej2πNkn. Now we can use the indexing as discussed above: Split the indices in a red and blue part. The red part contains the samples which are at the right end side of the FP and the blue part contains samples that are shifted outside the FP at the right end side and entering the FP again at the left end side: Y[k]=xp[nn0+λN]ej2πNkn+xp[nn0+λNN]ej2πNkn Substitute a new index m and replace the index n with this new index in the complex exponent of both summations: Y[k]=mxp[m]ej2πNk(m+n0λN)+mxp[m]ej2πNk(m+n0λN+N) The complex exponent with index n0 can be taken outside brackets: Y[k]=(mxp[m]ej2πNkmej2πNkλN+mxp[m]ej2πNkmej2πNk(λ1)N)ej2πNkn0=(mxp[m]ej2πNkm+mxp[m]ej2πNkm)ej2πNkn0 The resulting two summations are the same but each of the indices run over a different part of the FP. When concatenating these two summations the result between brackets writes as the DFT result Xp[k], which end the proof: Y[k]=(m FPxp[m]ej2πNkm)ej2πNkn0=Xp[k]ej2πNkn0 Try to prove yourself that, in a similar way, it can be shown that a circular shift in frequency domain results in a multiplication with a complex exponent in time domain: ej2πNnk0xp[n]Xp[kk0]

Example


The values within the FI of the 5-point DFT of xp[n] are: Xp[k]={5for k=06for k=11for k=22for k=39for k=4 A new signal is defined as yp[n]=W52nxp[n], with twiddle factor W5=ej2π5. Calculate within the Fundamental Interval the values of Yp[k] which is the 5-point DFT of this new signal yp[n].
According to the shift property we obtain: yp[n]=ej2π52nxp[n]Yp[k]=Xp[k+2]] resulting into the following values with the FI: Yp[k]={Xp[2]=1for k=0Xp[3]=2for k=1Xp[4]=9for k=2Xp[0]=5for k=3Xp[1]=6for k=4



Circular convolution

The circular convolution, indicated by the symbol , between the two periodic extended signals xp[n] and hp[n], both with an FP of N samples, is defined as follows: xp[n]hp[n]=i=0N1xp[i]hp[ni]=i=0N1xp[ni]hp[i] The different steps of the circular procedure are as follows:

  1. Eventually pad zeros in order to make the period of both periodic extended signals xp[n] and hp[n] the same.
  2. Plot one of the signals, e.g. hp[n], as function of another index, e.g. hp[i].
  3. Flip hp[i] to obtain hp[i].
  4. For n=0,1,,N1: Calculate y_p[n]=i=0N1xp[i]hp[ni].
As an example the circular convolution result yp[n]=xp[n]hp[n] is depicted in Fig. 3.
Circular convolution.
Circular convolution.

Within the FP these Periodic Extended signals are defined as: xp[n]=δ[n]+δ[n1]+δ[n2]+12δ[n3]hp[n]=δ[n]+34δ[n1]+12δ[n2]+14δ[n3] resulting in: yp[n]=xp[n]hp[n]=178δ[n]+188δ[n1]+198δ[n2]+168δ[n3]

Example


Compute yp[n]=xp[n]hp[n] with xp[n]=δ[nmod(4)]+2δ[(n1)mod(4)]+δ[(n2)mod(4)]δ[(n3)mod(4)]hp[n]=13δ[(n1)mod(4)]13δ[(n2)mod(4)]+13δ[(n3)mod(4)]
A matlab animation is to be added.

As in the FTD case it can be shown that for the DFT a circular convolution in time domain is equivalent to a circular multiplication in frequency domain: xp[n]hp[n]Xp[k]Hp[k]

Proof of circular convolution property


For the proof of this property we first apply the DFT operation to the circular convolution and then switch the order of the two summations: Y[k]=DFT{xp[n]hp[n]}=n=0N1(i=0N1xp[i]hp[ni])ej(2π/N)kn=i=0N1xp[i]{n=0N1hp[ni]ej(2π/N)kn} In between brackets we recognize the DFT of hp[n] which has been shifted in time domain. As shown in the previous subsection the time domain shift results in a multiplication with a complex exponent in frequency domain: Y[k]=i=0N1xp[i]{Hp[k]ej(2π/N)ki} Moving the complex exponent forward finalizes the proof: Y[k]=(i=0N1xp[i]ej(2π/N)ki)Hp[k]=Xp[k]Hp[k] Try to prove yourself that, in a similar way, that a circular convolution in frequency domain is equivalent to a multiplication in time domain: xp[n]hp[n]Xp[k]Hp[k]

Example


Given the same 4-point periodic extended signals as in the previous example: xp[n]=δ[nmod(4)]+2δ[(n1)mod(4)]+δ[(n2)mod(4)]δ[(n3)mod(4)]hp[n]=13δ[(n1)mod(4)]13δ[(n2)mod(4)]+13δ[(n3)mod(4)] Furthermore we have the following 4-point DFT's: Xp[k]xp[n] and Hp[k]hp[n]. Calculate Yp[k]=Xp[k]Hp[k]
From the circular convolution property it follows that Yp[k]=Xp[k]Hp[k]yp[n]=xp[n]hp[n] From the previous example we have yp[n]=xp[n]hp[n]=δ[(n1)mod(4)]. Thus the answer equals the 4-point DFT of yp[n]: Yp[k]=DFT{δ[(n1)mod(4)]}=ej2π4k. Another way to find the solution is to write out the product of the two 4-point DFT's: Xp[k]=1+2ej2π4k+ej2π42kej2π43kHp[k]=13{ej2π4kej2π42k+ej2π43k} resulting in Yp[k]=Xp[k]Hp[k]=ej2π4k.



Complex conjugation

The periodic behavior of the DFT operation leads to a special result of the complex conjugation operation: xp[n]Xp[Nk]

Proof of complex conjugation property


In the first step of the proof we apply the DFT operation to the complex conjugated samples and take the complex operation outside the brackets and multiply with 1: Y[k]=n=0N1xp[n]ej2πNkn=(n=0N1xp[n]ej2πNkn)=(n=0N1xp[n]ej2πNkn1) The number 1 can be expressed as complex exponent ej2πNNn: Y[k]=(n=0N1xp[n]ej2πNknej2πNNn) Combining the two exponents finalizes the proof: (n=0N1xp[n]ej2πN(Nk)n)=Xp[Nk] As a result of this property we can derive the following property when signal x[n] is real: x[n] real Xp[k]=Xp[Nk]. Thus when x[n] is real we only need to calculate half of the DFT components, the other half can by obtained from the resulting symmetry property. More specifically the range of DFT coefficients that we need to calculate for a real signal is as follows:
  • 0k(N1)/2, for N odd
  • 0kN/2, for N even
Note that for N even the coefficient Xp[N/2]=Xp[N/2]. In other words Xp[N/2] is a real number.

Example


The even samples of the 9-point DFT Xp[k] of a real signal xp[n] are given as follows: Xp[0]=1 ; Xp[2]=52j ; Xp[4]=3ejπ10 ; Xp[6]=7 ; Xp[8]=2+5j Calculate the odd values of Xp[k].
Signal xp[n] is real thus we have Xp[k]=X[Nk] which results in this case, with N=9, in: Xp[1]=Xp[8]=25j ; Xp[3]=Xp[6]=7 ; Xp[5]=Xp[4]=3ejπ10 ; Xp[7]=Xp[2]=5+2j

Example


Given the N-point DFT Xp[k]=ejθ0δ[(k1)mod(N)]+ejθ0δ[(k(N1))mod(N)] in which θ0 is some fixed value. Calculate xp[n] the N-point IDFT. The answer should be a formula for xp[n] in terms of n and N. Is xp[n] a real valued signal? If so simplify the resulting formula in such a way that it does not contain j=1.
The resulting signal xp[n] will be real since Xp[k]=Xp[Nk] and can be expressed as follows: xp[n]=ejθ0ej2πNn+ejθ0ej2πN(N1)n=ejθ0ej2πNn+ejθ0ej2πNn=2cos(2πNn+θ0)



Preserve energy (Parceval)

n=0N1|xp[n]|2=1Nk=0N1|Xp[k]|2

Proof of Parceval property


Parceval has shown that the Fourier transform preserves energy. Here we will show that this property also holds for the DFT. First we write out according to the DFT definition the term Xp[k]: Y[k]=1Nk=0N1Xp[k]Xp[k]=1Nk=0N1Xp[k](n=0N1xp[n]ej2πNkn) Then bring the complex conjugation operation inside the brackets, change the order of the summations and combine the factor 1N before the second summation: Y[k]=1Nk=0N1Xp[k](n=0N1xp[n]ej2πNkn)=n=0N1xp[n]{1Nk=0N1Xp[k]ej2πNkn} The second summation represents the Inverse DFT operation resulting in xp[n] which finalizes the proof: Y[k]=n=0N1xp[n]{xp[n]}=n=0N1|xp[n]|2 Note that it seems as if there is a difference of a factor 1N between the energy in time- and frequency domain. However this is the result of the way that the DFT and Inverse DFT operations have been defined.

Example


Show the Parceval relation for the 4-point Periodic Extended signal xp[n]=δ[nmod(4)]+δ[(n1)mod(4)]+δ[(n2)mod(4)]+δ[(n3)mod(4)].
First we calculate the 4-point DFT: Xp[k]=n=03xp[n]ej2π4kn=n=03ej2π4kn=4δ[kmod(4)] The energy in time- and frequency domain can be calculated as follows: Time:n=03|xp[n]|2=(12+12+12+12)=4Frequency:14k=03|Xp[k]|2=14(42)=4 which proves that the Parceval relation is indeed correct.