Lession-4 DFT Algorithm PDF
Lession-4 DFT Algorithm PDF
❖ For evaluating the spectrum of simple signals the Fourier transform formula is quite
useful. For more complex signals, using the Fourier transform formula becomes
difficult.
❖ The Fourier transform of any discrete time signal results in a specrum which is a
continuous function of ω. This function is “bounded” within a range of 2 π as, - π<
ω < + π.
❖ Graph of any continuous function may be approximated using a finite number of
“sample points”. N-point discrete time Fourier transform (dtft) algorithm employs
this very principle.
❖ For this purpose, any number of points can be chosen. In the following example, we
chose n = number of sample values of the given signal.
❖ The entire range of frequencies -π<ω<+π is equally divided into “n” discrete
values “ωk” and the Fourier transform formula is calculated at these frequencies.
❖ The approximate spectrum of the signal is the plot of these discrete points of the
actual spectrum.
❖ A more accurate approximation can be had if we chose more member of discrete
frequency components. In other words, we could calculate the Fourier transform at
more points, but, as it is , the calculation is quite long as we find out in the following
exercise. An exercise with more points can be carried out by adding some 0s behind
the given points of the signal to artificially increase “n” , so that the frequency range
of 2π can be divided into more number of discrete frequency values. Such an
exercise would involve an increased number of calculation steps. Hence such
exercise is tackled by “fft algorithms”.
❖ In this exercise we explain the simpler “dft algorithm”.
EXAMPLE : ---
CONSIDER THE x (n) AS --
CALCULATION STEPS
GIVEN,
𝟐 𝝅 .𝟐
2. AT k = 2 ,WE DEFINE THE SPECTRAL COMPONENT X(2) AT ω 2 = = 𝟐𝝅⁄𝟑
𝟔
N = 0 𝝎𝒌 𝒏 = 𝟎 & 𝐞 −𝐣 𝝎𝒌 𝒏 = 1 : ∴ x(0) 𝒆−𝐣 𝝎𝒌 𝟎 = ( -2).1 = -2 + j 0
𝟐 𝝅 𝟐.𝟏 𝝅
N = 1 𝝎𝒌 𝒏 = 𝟔 = 𝟐𝝅⁄𝟑 & 𝐱(𝟏). 𝐞 −𝐣𝟐 ⁄𝟑 =(1).(-0.5 – j 0.866)
= -0.5 – j 0.866
𝟐 𝝅 𝟐.𝟐 𝟒𝝅 −𝐣 𝟒𝝅⁄𝟑
N = 2 𝝎𝒌 𝒏 = 𝟔 = ⁄𝟑 & 𝐱(𝟐). 𝐞 =(2).(-0.5 + j 0.866 )
= -1 + j 1.73
𝟐 𝝅 𝟐.𝟑 −𝐣 𝟐𝛑
N = 3 𝝎𝒌 𝒏 = 𝟔 = 𝟐𝛑 & 𝐱(𝟑). 𝐞 =(2). 1 + j 0 = 2 + j 0
𝟐 𝝅 𝟐.𝟒 𝝅
N = 4 𝝎𝒌 𝒏 = 𝟔 = 𝟖𝝅⁄𝟑 & 𝐱(𝟒). 𝐞 −𝐣 𝟖 ⁄𝟑 =(-3).( -0.5 - j 0.866 )
= 1.5 + j 2.6
𝟐 𝝅 𝟐.𝟓 𝟏𝟎𝝅 −𝐣 𝟏𝟎𝝅⁄𝟑
N = 5 𝝎𝒌 𝒏 = 𝟔 = ⁄𝟑 & 𝐱(𝟓). 𝐞 =(1).(- 0.5 + j 0.866)
= - 0.5 + j 0.866
𝟐 𝝅 .𝟑
3. AT k = 3 ,WE DEFINE THE SPECTRAL COMPONENT X(3) AT ω 3 = 𝟔 = 𝝅
N = 0 𝝎𝒌 𝒏 = 𝟎 & 𝐞 −𝐣 𝝎𝒌 𝒏 = 1 : ∴ x(0) 𝒆−𝐣 𝝎𝒌 𝟎 =( -2).1 +j 0 = -2 + j 0
𝟐 𝝅 𝟑.𝟏
n=1 𝝎𝒌 𝒏 = = 𝛑 & 𝐱 (𝟏). 𝐞 −𝐣𝛑 = (1). (- 1 –j 0) = - 1 – j 0
𝟔
𝟐 𝝅 𝟑.𝟐
n=2 𝝎𝒌 𝒏 = = 𝟐𝛑 & 𝐱(𝟐). 𝐞 −𝐣 𝟐𝛑 =(2).( 1 + j0) = 2 + j 0
𝟔
𝟐 𝝅 𝟑.𝟑
n=3 𝝎𝒌 𝒏 = = 𝟑𝛑 & 𝐱(𝟑). 𝐞 −𝐣 𝟑𝛑 =(2).(-1 –j 0 ) = -2 – j 0
𝟔
𝟐 𝝅 𝟑.𝟒
n=4 𝝎𝒌 𝒏 = = 𝟒𝛑 & 𝐱(𝟒). 𝐞 −𝐣 𝟒𝛑 = (-3).(1 + j 0) = -3 + j 0
𝟔
𝟐 𝝅 𝟑.𝟓
n = 5 𝝎𝒌 𝒏 = = 𝟓𝛑 &𝐱(𝟓). 𝐞 −𝐣 𝟓𝛑 =(1). (- 1 – j 0) = -1 - j 0
𝟔
𝟐 𝝅 .𝟒
4. AT k = 4 ,WE DEFINE THE SPECTRAL COMPONENT X(2) AT ω 4 = 𝟔 = 𝟒𝝅⁄𝟑
n = 0 𝝎𝒌 𝒏 = 𝟎 & 𝐞 −𝐣 𝝎𝒌 𝒏 = 1 : ∴ x(0) 𝒆−𝐣 𝝎𝒌 𝟎 =( -2).1 +j 0 = -2 + j 0
𝟐 𝝅 𝟒.𝟏 𝝅
n = 1 𝝎𝒌 𝒏 = 𝟔 = 𝟒𝝅⁄𝟑 & 𝐱(𝟏). 𝐞 −𝐣𝟒 ⁄𝟑 =(1).( -0.5 + j 0.866)
= - 0.5 + j 0.866
𝟐 𝝅 𝟒.𝟐 𝝅
n = 2 𝝎𝒌 𝒏 = 𝟔 = 𝟖𝝅⁄𝟑 &𝐱(𝟐). 𝐞 −𝐣 𝟖 ⁄𝟑
=(2).( -0.5 - j 0.866)
= -1 – j 1.73
𝟐 𝝅 𝟒.𝟑 −𝐣 𝟒𝛑
n = 3 𝝎𝒌 𝒏 = 𝟔 = 𝟒𝛑 & 𝐱(𝟑). 𝐞 =(2).(1 + j 0 ) = 2 + j 0
𝟐 𝝅 𝟒.𝟒 𝝅
n = 4 𝝎𝒌 𝒏 = 𝟔 = 𝟏𝟔𝝅⁄𝟑 &𝐱(𝟒). 𝐞 −𝐣 𝟏𝟔 ⁄𝟑 =(-3).( -0.5 + j0.866)
= 1.5 – j 2.6
𝟐 𝝅 𝟒.𝟓 𝝅⁄
n = 5 𝝎𝒌 𝒏 = = 𝟐𝟎𝝅⁄𝟑 &𝐱(𝟓). 𝐞 −𝐣 𝟐𝟎 𝟑=(1).(- 0.5 - j 0.866)
𝟔
= - 0.5 - j 0.866
X (4) =(-2 + j 0 )+( - 0.5 + j 0.866)+( -1 – j 1.73)+( 2 + j 0) +
(1.5 – j 2.6)+( - 0.5 - j 0.866 ) = -0.5 – j 4.33
IN POLAR FORM
X (4) = 4.6 ∠+83.4 0
THIS SPECTRAL COMPONENT HAS AN “AMPLITUDE” X(3) = 4.6 V AND IS
ASSOCOATED WITH A PHASE ANGLE OF +83.4 0 AND THIS OCCURS AT THE
FREQUENCY OF ω 4 =𝟒𝝅⁄𝟑
𝟐 𝝅 .𝟓
5. AT k = 5 ,WE DEFINE THE SPECTRAL COMPONENT X(2) AT ω 5 = = 𝟓𝝅⁄𝟑
𝟔
𝟐 𝝅 𝟓.𝟏 𝝅⁄
n=1 𝝎𝒌 𝒏 = = 𝟓𝝅⁄𝟑 &𝐱(𝟏). 𝐞 −𝐣𝟓 =( 1).( 0.5 + j 0.866 )
𝟑
𝟔
= 0.5 + j 0.866
𝟐 𝝅 𝟓.𝟐 𝝅
n=2 𝝎𝒌 𝒏 = = 𝟏𝟎𝝅⁄𝟑 &𝐱(𝟐). 𝐞 −𝐣 𝟏𝟎 ⁄𝟑 =(2).(- 0.5 + j 0.866)
𝟔
= - 1 + j 1.73
𝟐 𝝅 𝟓.𝟑 𝟏𝟓𝝅⁄
n=3 𝝎𝒌 𝒏 = = 𝟏𝟓𝝅⁄𝟑 &𝐱(𝟑). 𝐞 −𝐣 𝟑 =(2).(- 1 +j 0 )
𝟔
= -2 + j 0
𝟐 𝝅 𝟓.𝟒 −𝐣 𝟐𝟎𝝅⁄𝟑
n = 4 𝝎𝒌 𝒏 = 𝟔 = 𝟐𝟎𝝅⁄𝟑 &𝐱(𝟒). 𝐞 =(-3).(-0.5 - j 0.866)
= 1.5 + j 2.6
𝟐 𝝅 𝟓.𝟓 𝟐𝟓𝝅 −𝐣 𝟐𝟓𝝅⁄𝟑
n = 5 𝝎𝒌 𝒏 = 𝟔 = ⁄𝟑 &𝐱(𝟓). 𝐞 =(1) .( 0.5 - j 0.866)
= 0.5 - j 0.866