MCT 3 DFT Ver2
MCT 3 DFT Ver2
Fourier transform
▪ Time continuously = 2 f
F ( j ) = f (t ) e
− jt
dt
−
▪ Frequency continuously
▪ Time discrete k = k =
Fd ( j ) =
k =−
f (k Ts ) e − j k Ts =
k =−
f ( k ) e − j k fs = 1
Ts
▪ Frequency continuously
f =0 fs
Real-Part
root of unity t = N Ts
▪ They’re vertices of a regular polygon inscribed in the unit circle of the complex plane, with one vertex
at (1,0)
j 2
−
WN = e N
j j
−j −j
T0 0
x ( t ) → x ( kT ) → xk
dt → T
t → kT
T0 → NT
→
© PFH Private Hochschule Göttingen 9
The discrete Fourier transform
Relationship to the complex Fourier coefficients
x ( t ) → x ( kT ) → xk
dt → T
t → kT
T0 → NT
→
T0 2
1 −j nt
cn = x (t ) e dt
T0
T0 0
2 nk N −1 nk
N −1 N −1 − j 2
X d (n) = xk e
−j nk T 1 − j 2
x
1
cn =
NT
x
k =0
k e NT
T cn =
N k =0
k e N
k =0
N
x ( t ) → x ( kT ) → xk
dt → T
t → kT
T0 → NT
→
N −1 nk N −1 nk
− j 2
X d (n) = xk e
1 − j 2
cn =
N
x
k =0
k e N N
k =0
1
cn = X d (n)
N
© PFH Private Hochschule Göttingen 11
The discrete Fourier transform
Properties of the DFT
DFT a x1 ( k ) + b x2 ( k ) = a X 1 ( n ) + b X 2 ( n )
▪ Linearity
j 2 n
DFT x ( n + l ) = X ( n ) e
− l
▪ Time shift
N
▪ Convolution DFT x1 ( k ) x2 ( k ) = X 1 ( n ) X 2 ( n )
▪ Multiplication DFT x1 ( k ) x2 ( k ) = X 1 ( n ) X 2 ( n )
1 N −1
▪ Inverse DFT IDFT X ( n ) = x ( k ) = X ( n ) e j 2 kn / N
N n =0
➢ Leakage effect
➢ Effect of windowing
© PFH Private Hochschule Göttingen 14
The discrete Fourier transform
Periodicity in the frequency domain
0 1 2 3 4 5 6 7 8
discrete time k discrete frequencies n
© PFH Private Hochschule Göttingen 15
The discrete Fourier transform
Periodicity in the time domain
Since the 2π-periodic e-function also occurs in a comparable way in the
inverse transformation, the time signal is also periodic in the DFT, in contrast to
the time-discrete Fourier transformation
1 N −1
F X ( n ) = x ( k ) = X ( n ) e j 2 kn / N
−1
x(k ) = x(k + N ) = x(k + 2 N ) =
N n =0
spectrum X ( n ) discrete time signal x ( k )
N =9
N =9
redundant redundant
redundant redundant
n: N −N N N
2 N 2 2 2
f: fs fs − fs fs fs
2 2 2 2
: 2 −
1 2 5
f = fs f = fs f = fs
32 32 32
X (0) 1 1 1 1 x(0)
1 WN1 WN2 WNN −1
X (1) x(1)
X (2) = 1 WN2 WN4 WN2( N −1) x(2)
X ( N − 1) ( N −1)2 x( N − 1)
1 WNN −1 WN2( N −1) WN
1
X d (n) = xk ( −1) = x0 ( −1) + x1 ( −1) = x0 + x1 ( −1)
nk n 0 n1 n
k =0
X d (0) = x0 + x1 ( −1) = x0 + x1
0
X d (1) = x0 + x1 ( −1) = x0 − x1
1
3
X d (n) = xk ( − j ) = x0 ( − j ) + x1 ( − j ) + x2 ( − j ) + x3 ( − j )
nk n 0 n1 n2 n3
k =0
3
X d (n) = xk ( − j ) = x0 + x1 ( − j ) + x2 ( −1) + x3 j n
nk n n
k =0
X d (0) = x0 + x1 + x2 + x3
X d (1) = x0 − jx1 − x2 + jx3
X d (2) = x0 − x1 + x2 − x3
X d (3) = x0 + jx1 − x2 − jx3
© PFH Private Hochschule Göttingen 22
The discrete Fourier transform
Hints for the calculation
X d (0) = x0 + x1 + x2 + x3
X d (1) = x0 − jx1 − x2 + jx3
X d (2) = x0 − x1 + x2 − x3
X d (3) = x0 + jx1 − x2 − jx3
X d (0) 1 1 1 1 x0
X (1) 1 − j −1 j x
d = 1
X d (2) 1 −1 1 −1 x2
d
X (3) 1 j −1 −1 x3
© PFH Private Hochschule Göttingen 23
The discrete Fourier transform
Hints for the calculation
X d (0) 1 1 1 1 x0
X (1) 1 − j −1 j x
d = 1
X d (2) 1 −1 1 −1 x2
X d (3) 1 j −1 −1 x3
X d (0) = ( x0 + x2 ) + ( x1 + x3 )
X d (1) = ( x0 − x2 ) − j ( x1 − x3 )
X d (2) = ( x0 + x2 ) − ( x1 + x3 )
X d (3) = ( x0 − x2 ) + j ( x1 − x3 )
p p + q X d (0) = ( x0 + x2 ) + ( x1 + x3 )
X d (1) = ( x0 − x2 ) − j ( x1 − x3 )
X d (2) = ( x0 + x2 ) − ( x1 + x3 )
q X d (3) = ( x0 − x2 ) + j ( x1 − x3 )
x0 x0 + x2 X d ( 0)
1 X d (0) = ( x0 + x2 ) + ( x1 + x3 )
x2 x0 − x2 X d (1) X d (1) = ( x0 − x2 ) − j ( x1 − x3 )
−1 −j
X d (2) = ( x0 + x2 ) − ( x1 + x3 )
x1 x1 + x3 X d ( 2) X d (3) = ( x0 − x2 ) + j ( x1 − x3 )
1
x3 x1 − x3 X d ( 3)
−1 j
W8 = e
−
j 2
8
=e
−
j
4
=
(1 − j )
2
i 0 1 2 3 4 5 6 7
ni 0 4 2 6 1 5 3 7
i base 2 000 001 010 011 100 101 110 111
ni base 2 000 100 010 110 001 101 011 111
X d ( 0 ) 1 0 0 0 W0 0 0 0 1 0 W 0 0 0 0 0 0 1 W 0 0 0 0 0 0 0 x0
X d (1) 0 1 0 0 0 W1 0 0 0 1 0 W 2 0 0 0 0 1 W 4 0 0 0 0 0 0 x4
X d ( 2 ) 0 0 1 0 0 0 W 2 0 1 0 W 4 0 0 0 0 0 0 0 1 W0 0 0 0 0 x2
X d ( 3) = 0 0 0 1 0 0 0 W 3 0 1 0 W 6
0 0 0 0 0 0
1 W4 0 0 0 0 x6
X ( 4 ) 1 0 0 0 W4 0 0 0 0 0 0 0 1 0 W 0 0 0 0 0 0 1 W0 0 0 x1
d
X d ( 5 ) 0 0 0 0 0 1 0 W 2 0 0 0 0 x5
5
1 0 0 0 W 0 0 0 0 0 1 W4
X ( 6 ) 0 0 1 0 0 0 W 6
0 0 0 0 0 1 0 W 4 0 0 0 0 0 0 0 1 W 0 x3
d
X d ( 7 ) 0 0 0 1 0 0 0 W 7 0 0 0 0 0 1 0 W 6 0 0 0 0 0 0 1 W 4 x7
Observation:
▪ Doubling the number of values N = 20 → 40 doubles the frequency resolution.
▪ The DFT with N = 20 also delivers identical results to a DFT with N = 40 at the identical
frequency points (every 2nd point).
Remarks:
N = 20
▪ The phase of X(n) must not be ignored.
N = 40
The phase can also be interesting at times.
However, we will concentrate here on the
analysis of the amplitude response, as this is the
more important variable in most applications. The values of the DFT for N = 20
and N = 40 are identical!
discrete frequency n
M T0 = N Ts
▪ If the time signal contains exactly an integer multiple of periods of the oscillation, then the DFT also
reproduces the spectrum exactly
▪ All of the energy is concentrated in one spectral line
▪ This spectral line represents the exact right frequency
▪ Due to the linearity property of the DFT, this also applies to any number of additively superimposed
oscillations
x(k ) = 2 cos(2 f 2 k ) + cos(2 f3 k )
2
f2 = fs
32 redundant
5
f3 = fs
32
▪ However, it is often not possible to choose N in such a way that all oscillations only occur with
complete periods, because:
▪ The periods of the oscillations of interest are not exactly known
▪ There are many vibrations of different frequencies to be analyzed, and it is therefore difficult to find a
suitable N that satisfies the condition for all vibration-frequencies of interest at the same time
▪ The result when the condition is violated
discrete frequency n
© PFH Private Hochschule Göttingen 41
discrete time k
The Fourier transform
Example: Fourier transform of a non periodic signal
f (t )
A A for − T t T
f (t ) = 2 2
0 otherwise
− 𝑇ൗ2 𝑇ൗ
2
t
T
2
F ( j ) = f ( t ) e − jt
dt = A e − jt dt
− −T
2
T 2
( e jT 2 − e − jT 2 )
A − jt A
=− e =
j −T 2
j
F ( j ) = A
j 2 sin T ( )
2 = A (
sin T
2 )
j
2
F ( j ) = A T
sin T ( 2 )
T
2
© PFH Private Hochschule Göttingen 42
The Fourier transform
Example: Fourier transform of a non periodic signal
/2
t - / 2 F ( ) = f ( t ) e − jt dt = 1e
− j 2 f t
dt
0 für
−
− /2
f (t ) = 1 für - / 2 t / 2 /2
0 1 − jt 2 e j /2 − e − j /2
für t / 2 =− e =
j − /2
2j
F ( ) =
(
sin
2 )
▪ The narrower the rectangle is in the time 2
domain, the wider the sinc-function (sine-
cardinal) is in the frequency domain (i.e. sin ( f )
the further apart the zeros are) F ( f ) = sinc-function
f
© PFH Private Hochschule Göttingen 43
The Fourier transform
Example: Fourier transform of a non periodic signal
0 t -
für
sin ( 2 f )
f (t ) = A für - t F ( f ) = 2 A
0 2 f
für t
0 t -2
für
sin ( 4 f )
f (t ) = A für -2 t 2 F ( f ) = 4 A
0 4 f
für t 2
0 t -4
für
sin ( 8 f )
f (t ) = A für -4 t 4 F ( f ) = 8 A
0 8 f
für t 4
© PFH Private Hochschule Göttingen 44
The Fourier transform
Leackage effect and windowing
sin ( Ln / N ) − j ( L −1)n / N
W (n) = e
sin ( n N )
sin ( Ln / N )
W (n) =
sin ( n N )
© PFH Private Hochschule Göttingen 45
The Fourier transform
Leackage effect and windowing
Time signal Spectrum of the time function
Time window
▪ So every finite time signal results (in thought) from a multiplication of an infinite
periodically continued signal with a rectangular window
▪ The rectangular shape leads to discontinuities, i.e. a sudden signal change that induces
high frequencies
▪ The errors caused by rectangular windowing (leakage effect) are therefore particularly
large
▪ Instead of an implicitly existing rectangular window that drops off abruptly, a window
with a smoother transition can be selected
▪ Many alternatives have been proposed as windows
▪ The following windows are common: Hanning, Hamming, Blackman, Kaiser, Bartlett,
Gauss
▪ All of these windows are relatively similar and all reduce the leakage effect. However,
due to the gentle fall, they distort the values of the time signal at the edge (beginning
and end)
© PFH Private Hochschule Göttingen 47
Leakage effect and windowing
Rectangular
Rectangular
w(n) = 1 (
w ( n ) = 0,5 − 0,5 cos 2 n
N ) (
w ( n ) = 0,54 − 0, 46 cos 2 n
N )
2n
N
w(n) =
0n N
2 (
w ( n ) = 0, 42 − 0,5 cos 2 n
N ) + 0, 08 cos ( 4 n N )
2 − n N N nN
2
© PFH Private Hochschule Göttingen 49
Application of the FFT
1
W= − x 2
( t ) dt = − x ( t ) x ( t ) dt = − x (t ) 2 X ( j ) e
jt
d dt
−
1
1
W= X ( j ) x ( t ) e jt dt d = X ( j ) X * ( j ) d
2 − − 2 −
1
X ( j ) d
2
W=
2 −
x2 ( k ) = X (n)
2
−
k =0 N n =0
X ( j ) 2 = V = V s = V As V = Ws 1
2 2
Hz 2 Hz Hz A Hz
© PFH Private Hochschule Göttingen 58