Salta al contenuto
Note per Studenti Properties of the Discrete Fourier Transform Report

Properties of the Discrete Fourier Transform

In questa pagina 6

For the definition of the transform see Discrete Fourier TransformHeuristic derivation of the discrete Fourier transform for N-periodic discrete-time signals: complex exponentials with period N, the finite basis of N modes obtained from the difference equation x(k)-x(k-N)=0, orthogonality, the coefficient formula and the definition of the DFT with its periodicity and matrix form.Discrete Fourier Transform →. Here the DFT is used in the form of the lecture: for x(k):Z→Cx(k) : \mathbb{Z} \to \mathbb{C} periodic of period NN,

X(n)=1N∑k=0N−1x(k) e−j2πnNk.X(n) = \frac{1}{N} \sum_{k=0}^{N-1} x(k)\, e^{-j\frac{2\pi n}{N} k}.

The four Fourier tools so far

PERIODIC APERIODIC
CONT. TIME Fourier series: an=1T∫[T]x(t) e−jω0nt dta_n = \frac{1}{T}\int_{[T]} x(t)\, e^{-j\omega_0 n t}\, dt Fourier transform: X(jω)=∫−∞+∞x(t) e−jωt dtX(j\omega) = \int_{-\infty}^{+\infty} x(t)\, e^{-j\omega t}\, dt
DISC. TIME Discrete Fourier Transform (DFT), i.e. the discrete-time Fourier series: X(n)=1N∑k=0N−1x(k) e−j2πnNkX(n) = \frac{1}{N}\sum_{k=0}^{N-1} x(k)\, e^{-j\frac{2\pi n}{N}k} Discrete-time Fourier transform (DTFT), seen later

The DFT is the discrete-time analogue of the Fourier series; the discrete-time aperiodic case is the DTFT.

Inverse DFT (IDFT)

Definition (IDFT). Let x(k):Z→Cx(k) : \mathbb{Z} \to \mathbb{C} be periodic of period NN, with DFT X(n)X(n). The IDFT is defined as

x(k)=∑n=0N−1X(n) ej2πnNk\boxed{x(k) = \sum_{n=0}^{N-1} X(n)\, e^{j\frac{2\pi n}{N} k}}

Note the normalization: the factor 1N\frac{1}{N} sits in the DFT, not in the IDFT.

Properties

Below FD[⋅]\mathcal{F}_D[\cdot] denotes the DFT.

Translation (in time)

For a shift M∈ZM \in \mathbb{Z}:

FD[x(k+M)]=ej2πMNn X(n).\mathcal{F}_D[x(k+M)] = e^{j\frac{2\pi M}{N} n}\, X(n).

Modulation

FD ⁣[x(k) ej2πMNk]=X(n−M).\mathcal{F}_D\!\left[x(k)\, e^{j\frac{2\pi M}{N} k}\right] = X(n - M).

Multiplying by a complex exponential in time shifts the DFT; shifting in time multiplies the DFT by an exponential.

Product and convolution

Product:

FD[v(k) w(k)]=V⋆NW (n),\mathcal{F}_D[v(k)\, w(k)] = V \star_N W\,(n),

where ⋆N\star_N is the cyclic (periodic) convolution. Convolution:

FD[v⋆Nw (k)]=N V(n) W(n).\mathcal{F}_D[v \star_N w\,(k)] = N\, V(n)\, W(n).

The cyclic convolution, as used in the proof below, is (v⋆Nw)(k)=∑ℓ=0N−1v(ℓ) w(k−ℓ)(v \star_N w)(k) = \sum_{\ell=0}^{N-1} v(\ell)\, w(k-\ell).

Proof of the convolution property.

FD[v⋆Nw (k)]=1N∑k=0N−1(∑ℓ=0N−1v(ℓ) w(k−ℓ))e−j2πnNk.\mathcal{F}_D[v \star_N w\,(k)] = \frac{1}{N}\sum_{k=0}^{N-1}\left( \sum_{\ell=0}^{N-1} v(\ell)\, w(k-\ell) \right) e^{-j\frac{2\pi n}{N} k}.

Trick: k=k−ℓ+ℓk = k - \ell + \ell, so that e−j2πnNk=e−j2πnN(k−ℓ) e−j2πnNℓe^{-j\frac{2\pi n}{N}k} = e^{-j\frac{2\pi n}{N}(k-\ell)}\, e^{-j\frac{2\pi n}{N}\ell}:

=1N∑k=0N−1(∑ℓ=0N−1v(ℓ) w(k−ℓ))e−j2πnN(k−ℓ) e−j2πnNℓ= \frac{1}{N}\sum_{k=0}^{N-1}\left( \sum_{\ell=0}^{N-1} v(\ell)\, w(k-\ell) \right) e^{-j\frac{2\pi n}{N}(k-\ell)}\, e^{-j\frac{2\pi n}{N}\ell}

=1N(∑ℓ=0N−1v(ℓ) e−j2πnNℓ)⏟(2)(∑k=0N−1w(k−ℓ) e−j2πnN(k−ℓ))⏟(1).= \frac{1}{N}\underbrace{\left( \sum_{\ell=0}^{N-1} v(\ell)\, e^{-j\frac{2\pi n}{N}\ell} \right)}_{(2)} \underbrace{\left( \sum_{k=0}^{N-1} w(k-\ell)\, e^{-j\frac{2\pi n}{N}(k-\ell)} \right)}_{(1)}.

Term (1): set i:=k−ℓi := k - \ell. Then k=0⇒i=−ℓk = 0 \Rightarrow i = -\ell and k=N−1⇒i=N−1−ℓk = N-1 \Rightarrow i = N-1-\ell, so

∑i=−ℓN−1−ℓw(i) e−j2πnNi=N W(n).\sum_{i=-\ell}^{N-1-\ell} w(i)\, e^{-j\frac{2\pi n}{N} i} = N\, W(n).

These are NN consecutive terms of an NN-periodic summand, so it does not matter that the sum does not start from i=0i = 0 and end at i=N−1i = N-1.

Term (2): by a similar reasoning the result is N⋅V(n)N \cdot V(n).

Therefore

FD[v⋆Nw (k)]=1N (N V(n)) (N W(n))=N V(n) W(n),\mathcal{F}_D[v \star_N w\,(k)] = \frac{1}{N}\,\big(N\, V(n)\big)\,\big(N\, W(n)\big) = N\, V(n)\, W(n),

that is, the factor 1N\frac{1}{N} in front cancels one of the two factors NN. ■\blacksquare

Parseval relation

∑k=0N−1∣x(k)∣2=N∑n=0N−1∣X(n)∣2\boxed{\sum_{k=0}^{N-1} |x(k)|^2 = N \sum_{n=0}^{N-1} |X(n)|^2}

Useful to compute the energy of xx over one period [N][N]. More generally:

∑k=0N−1x1(k) x2(k)‾=N∑n=0N−1X1(n) X2(n)‾.\sum_{k=0}^{N-1} x_1(k)\, \overline{x_2(k)} = N \sum_{n=0}^{N-1} X_1(n)\, \overline{X_2(n)}.

Example: periodic rectangular pulse train

Let

x(k)=repN ⁣[rect ⁣(k2N1)],x(k) = \mathrm{rep}_N\!\left[\mathrm{rect}\!\left(\frac{k}{2N_1}\right)\right],

the NN-periodic repetition of a rectangular pulse equal to 11 for k=−N1,…,N1k = -N_1, \dots, N_1 and 00 elsewhere in the period.

 x(k)
  |   o o   o o       o o o o o o o       o o   o o
  |                                                      (value 1 on the pulse,
 -+---o-o---o-o---o---o-o-o-o-o-o-o---o---o-o---o-o--> k   0 outside)
       -N1                 N1
        <---------------- N ---------------->

Compute the DFT:

X(n)=1N∑k=−N1N11⋅e−j2πnNk.X(n) = \frac{1}{N}\sum_{k=-N_1}^{N_1} 1 \cdot e^{-j\frac{2\pi n}{N}k}.

Change of variable m=k+N1m = k + N_1 (k=−N1⇒m=0k = -N_1 \Rightarrow m = 0, k=N1⇒m=2N1k = N_1 \Rightarrow m = 2N_1):

X(n)=1N∑m=02N1e−j2πnN(m−N1)=1N ej2πnNN1∑m=02N1e−j2πnNm.X(n) = \frac{1}{N}\sum_{m=0}^{2N_1} e^{-j\frac{2\pi n}{N}(m - N_1)} = \frac{1}{N}\, e^{j\frac{2\pi n}{N}N_1} \sum_{m=0}^{2N_1} e^{-j\frac{2\pi n}{N}m}.

Geometric sum with ratio e−j2πnNe^{-j\frac{2\pi n}{N}} and 2N1+12N_1 + 1 terms:

X(n)=1N ej2πnNN1  1−e−j2πnN(2N1+1)1−e−j2πnN.X(n) = \frac{1}{N}\, e^{j\frac{2\pi n}{N}N_1}\; \frac{1 - e^{-j\frac{2\pi n}{N}(2N_1+1)}}{1 - e^{-j\frac{2\pi n}{N}}}.

(In the handwritten page the upper limit of the sum over mm in the intermediate line looks like N1N_1; the change of variable and the next line require 2N12N_1, which is what is written here.)

Trick: 1=e−j2πnN12 ej2πnN121 = e^{-j\frac{2\pi n}{N}\frac{1}{2}}\, e^{j\frac{2\pi n}{N}\frac{1}{2}}. It is used to construct the common factor e−j2πnN12e^{-j\frac{2\pi n}{N}\frac{1}{2}} in numerator and denominator; after simplifying,

X(n)=1N ej2πnN(N1+12)−e−j2πnN(N1+12)ej2πnN12−e−j2πnN12=1N sin⁡ ⁣((N1+12)2πnN)sin⁡ ⁣(2πn2N),X(n) = \frac{1}{N}\,\frac{e^{j\frac{2\pi n}{N}(N_1 + \frac{1}{2})} - e^{-j\frac{2\pi n}{N}(N_1+\frac{1}{2})}}{e^{j\frac{2\pi n}{N}\frac{1}{2}} - e^{-j\frac{2\pi n}{N}\frac{1}{2}}} = \frac{1}{N}\,\frac{\sin\!\left(\left(N_1 + \frac{1}{2}\right)\frac{2\pi n}{N}\right)}{\sin\!\left(\frac{2\pi n}{2N}\right)},

where the last step is Euler's formula for the sine.

Note that X(n)=X(n+N)X(n) = X(n+N): the DFT is itself NN-periodic, so the DFT is quite different from the Fourier transform in terms of periodicity.

Dirichlet kernel

Definition (Dirichlet kernel). DN1(θ):R→RD_{N_1}(\theta) : \mathbb{R} \to \mathbb{R} is the Dirichlet kernel of order N1∈NN_1 \in \mathbb{N}:

DN1(θ):=∑k=−N1N1ejkθ=sin⁡ ⁣((N1+12)θ)sin⁡ ⁣(θ2)\boxed{D_{N_1}(\theta) := \sum_{k=-N_1}^{N_1} e^{jk\theta} = \frac{\sin\!\left(\left(N_1 + \frac{1}{2}\right)\theta\right)}{\sin\!\left(\frac{\theta}{2}\right)}}

It is 2π2\pi-periodic. In the example above,

X(n)=1N DN1 ⁣(2πnN).X(n) = \frac{1}{N}\, D_{N_1}\!\left(\frac{2\pi n}{N}\right).

Fact (one more way to construct the Dirac impulse). Consider the continuous-time signal dN1(t):=DN1(t)⋅rect ⁣(t2π)d_{N_1}(t) := D_{N_1}(t)\cdot \mathrm{rect}\!\left(\frac{t}{2\pi}\right). Then lim⁡N1→+∞dN1(t)\lim_{N_1 \to +\infty} d_{N_1}(t) converges in distribution to δ(t)\delta(t).

Versione ripasso

  • Four tools: Fourier series (cont., periodic), Fourier transform (cont., aperiodic), DFT (disc., periodic), DTFT (disc., aperiodic, later). See Discrete Fourier TransformHeuristic derivation of the discrete Fourier transform for N-periodic discrete-time signals: complex exponentials with period N, the finite basis of N modes obtained from the difference equation x(k)-x(k-N)=0, orthogonality, the coefficient formula and the definition of the DFT with its periodicity and matrix form.Discrete Fourier Transform →.
  • DFT: X(n)=1N∑k=0N−1x(k)e−j2πnNkX(n) = \frac{1}{N}\sum_{k=0}^{N-1} x(k) e^{-j\frac{2\pi n}{N}k}. IDFT: x(k)=∑n=0N−1X(n)ej2πnNkx(k) = \sum_{n=0}^{N-1} X(n) e^{j\frac{2\pi n}{N}k} (the 1N\frac{1}{N} is only in the DFT).
  • Translation: FD[x(k+M)]=ej2πMNnX(n)\mathcal{F}_D[x(k+M)] = e^{j\frac{2\pi M}{N}n} X(n).
  • Modulation: FD[x(k)ej2πMNk]=X(n−M)\mathcal{F}_D[x(k) e^{j\frac{2\pi M}{N}k}] = X(n-M).
  • Product: FD[vw]=V⋆NW\mathcal{F}_D[v w] = V \star_N W. Cyclic convolution: (v⋆Nw)(k)=∑ℓ=0N−1v(ℓ)w(k−ℓ)(v\star_N w)(k) = \sum_{\ell=0}^{N-1} v(\ell) w(k-\ell) and FD[v⋆Nw]=N V(n)W(n)\mathcal{F}_D[v \star_N w] = N\, V(n) W(n).
  • Proof idea: insert k=(k−ℓ)+ℓk = (k-\ell) + \ell in the exponential, split into two sums; the one in i=k−ℓi = k-\ell gives NW(n)N W(n) (any NN consecutive terms of a periodic summand), the other gives NV(n)N V(n), and the prefactor 1N\frac{1}{N} cancels one NN.
  • Parseval: ∑k=0N−1∣x(k)∣2=N∑n=0N−1∣X(n)∣2\sum_{k=0}^{N-1}|x(k)|^2 = N\sum_{n=0}^{N-1}|X(n)|^2; general form ∑x1x2‾=N∑X1X2‾\sum x_1\overline{x_2} = N\sum X_1\overline{X_2}.
  • Pulse train x(k)=repN[rect(k/2N1)]x(k) = \mathrm{rep}_N[\mathrm{rect}(k/2N_1)]: X(n)=1Nsin⁡((N1+12)2πnN)sin⁡(2πn2N)=1NDN1(2πnN)X(n) = \frac{1}{N}\frac{\sin((N_1+\frac{1}{2})\frac{2\pi n}{N})}{\sin(\frac{2\pi n}{2N})} = \frac{1}{N}D_{N_1}(\frac{2\pi n}{N}), and X(n)=X(n+N)X(n) = X(n+N).
  • Dirichlet kernel: DN1(θ)=∑k=−N1N1ejkθ=sin⁡((N1+12)θ)sin⁡(θ/2)D_{N_1}(\theta) = \sum_{k=-N_1}^{N_1} e^{jk\theta} = \frac{\sin((N_1+\frac{1}{2})\theta)}{\sin(\theta/2)}, 2π2\pi-periodic; DN1(t) rect(t/2π)→δ(t)D_{N_1}(t)\,\mathrm{rect}(t/2\pi) \to \delta(t) in distribution as N1→+∞N_1 \to +\infty.
  • Typical mistakes: wrong normalization (the 1N\frac{1}{N} is in the DFT, so Parseval and convolution carry a factor NN); using the ordinary convolution instead of the cyclic one; forgetting that the DFT is NN-periodic in nn.