Salta al contenuto
Note per Studenti Discrete-Time Fourier Transform Report

Discrete-Time Fourier Transform

In questa pagina 8

Motivation: filling the last cell of the table

The four Fourier tools: Fourier series (continuous, periodic), Fourier transform (continuous, aperiodic), DFT (discrete, periodic, 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 →) and, missing so far, the one for discrete-time aperiodic signals: the DTFT.

For the Fourier transform the procedure was: start from an aperiodic x(t)x(t), take its periodic repetition repT[x(t)]=x~(t)\mathrm{rep}_T[x(t)]=\tilde x(t), compute the Fourier series of x~\tilde x, and study the series as T→+∞T\to+\infty. The DTFT is obtained in the same way.

Start from an aperiodic signal x(k)x(k), k∈Zk\in\mathbb{Z}, which for now is assumed to have finite duration: bounded support [−N1,N1][-N_1,N_1] (the restriction is removed later). Example with N1=2N_1=2: samples are non-zero only for k∈{−2,…,2}k\in\{-2,\dots,2\}.

Take its periodic repetition of period NN: x~(k)=repN[x(k)]\tilde x(k)=\mathrm{rep}_N[x(k)] (the sketch in the notes uses N=7N=7, with N≥2N1+1N\ge 2N_1+1 so that the copies do not overlap).

Idea: as for the Fourier transform, study x~(k)\tilde x(k) with the DFT and let N→+∞N\to+\infty to analyze x(k)x(k).

The envelope function

The DFT of x~\tilde x equals the DFT XX of xx (same coefficients, since the support is bounded):

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

More importantly, because x(k)=0x(k)=0 outside the support, the sum can be extended to all integers:

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

This suggests defining an envelope function

X(ejθ):=∑k=−∞+∞x(k) e−jθk,X(e^{j\theta}) := \sum_{k=-\infty}^{+\infty}x(k)\,e^{-j\theta k},

which will informally be the DTFT of x(k)x(k). Here θ∈R\theta\in\mathbb{R} is a continuous variable replacing the quantized frequencies 2πnN\frac{2\pi n}{N} (exactly as was done for the Dirichlet kernel). One can restrict to θ∈ ]−π,π]\theta\in\,]-\pi,\pi] or θ∈[0,2π[\theta\in[0,2\pi[, since X(ejθ)X(e^{j\theta}) is 2π2\pi-periodic.

Two observations:

  1. X(n)=1N X(ejθ)∣θ=2πnNX(n)=\frac1N\,X(e^{j\theta})\big|_{\theta=\frac{2\pi n}{N}}: the DFT is the DTFT sampled at multiples of 2πN\frac{2\pi}{N} (and divided by NN). This strong relationship is why the same symbol X(⋅)X(\cdot) is used for both.
  2. X(ejθ)X(e^{j\theta}) is periodic of period 2π2\pi: X(ej(θ+2π))=∑kx(k) e−jθk e−j2πk⏟=1, ∀k∈Z=X(ejθ).X(e^{j(\theta+2\pi)})=\sum_{k}x(k)\,e^{-j\theta k}\,\underbrace{e^{-j2\pi k}}_{=1,\ \forall k\in\mathbb{Z}}=X(e^{j\theta}).

Intuitive derivation of the inverse transform

Use the IDFT of x~\tilde x and observation 1:

x~(k)=∑n=0N−1X(n) ej2πnNk=∑n=0N−11NX ⁣(ej2πnN)ej2πnNk=∑n=0N−112πX ⁣(ej2πnN)ej2πnNk⏟height of the rectangles⋅2πN⏟width of the rectangles.\tilde x(k)=\sum_{n=0}^{N-1}X(n)\,e^{j\frac{2\pi n}{N}k} =\sum_{n=0}^{N-1}\frac1N X\!\left(e^{j\frac{2\pi n}{N}}\right)e^{j\frac{2\pi n}{N}k} =\sum_{n=0}^{N-1}\underbrace{\frac1{2\pi}X\!\left(e^{j\frac{2\pi n}{N}}\right)e^{j\frac{2\pi n}{N}k}}_{\text{height of the rectangles}}\cdot\underbrace{\frac{2\pi}{N}}_{\text{width of the rectangles}} .

This is a Riemann sum: rectangles of width 2πN\frac{2\pi}{N} under the envelope 12πX(ejθ)ejθk\frac1{2\pi}X(e^{j\theta})e^{j\theta k}, sampled at θ=0,2πN,4πN,…\theta=0,\frac{2\pi}{N},\frac{4\pi}{N},\dots up to 2π2\pi.

Now let N→+∞N\to+\infty. Then x~(k)=repN[x(k)]→x(k)\tilde x(k)=\mathrm{rep}_N[x(k)]\to x(k) (aperiodic), and:

  • 2πN⇒\frac{2\pi}{N}\Rightarrow infinitesimal dθd\theta;
  • 2πnN⇒θ∈[0,2π[\frac{2\pi n}{N}\Rightarrow\theta\in[0,2\pi[ (or ]−π,π]]-\pi,\pi]);
  • ∑n=0N−1⇒∫02π\sum_{n=0}^{N-1}\Rightarrow\int_0^{2\pi} (or ∫−ππ\int_{-\pi}^{\pi}).

Therefore (implicit, informal definition obtained by the "envelope argument")

x(k)=lim⁡N→+∞x~(k)=12π∫[2π]X(ejθ) ejθk dθ.x(k)=\lim_{N\to+\infty}\tilde x(k)=\frac1{2\pi}\int_{[2\pi]}X(e^{j\theta})\,e^{j\theta k}\,d\theta .

Definitions

DTFT. Given an aperiodic x(k)x(k), k∈Zk\in\mathbb{Z}, its DTFT is

X(ejθ):=∑k=−∞+∞x(k) e−jθk,X(ejθ)=FDT[x(k)].X(e^{j\theta}):=\sum_{k=-\infty}^{+\infty}x(k)\,e^{-j\theta k},\qquad X(e^{j\theta})=\mathcal{F}_{DT}[x(k)].

It is 2π2\pi-periodic.

IDTFT.

x^(k)=12π∫[2π]X(ejθ) ejθk dθ.\hat x(k)=\frac1{2\pi}\int_{[2\pi]}X(e^{j\theta})\,e^{j\theta k}\,d\theta .

(x^(k)\hat x(k) is, in a sense, the Fourier coefficient of the 2π2\pi-periodic function X(ejθ)X(e^{j\theta}).) The IDTFT is defined this way by exploiting the implicit definition obtained from the envelope argument.

Differences between the IDTFT and the inverse Fourier transform:

  • the integration is over an interval of length 2π2\pi, not over (−∞,+∞)(-\infty,+\infty);
  • the notation X(ejθ)X(e^{j\theta}) differs from X(jω)X(j\omega).

Careful with high and low frequencies. ∣X(ejθ)∣|X(e^{j\theta})| repeats with period 2π2\pi. Low frequencies are the neighbourhoods of the even multiples of π\pi (…,−4π,−2π,0,2π,4π,…\dots,-4\pi,-2\pi,0,2\pi,4\pi,\dots); high frequencies are the neighbourhoods of the odd multiples of π\pi (…,−3π,−π,π,3π,…\dots,-3\pi,-\pi,\pi,3\pi,\dots).

|X(e^{j theta})|
  ^
  |  *      .      *      .      *      .      *
  | low    high   low    high   low    high   low
--+--+------+------+------+------+------+------+--> theta
 -4pi  -3pi  -2pi   -pi    0     pi    2pi    3pi

Convergence (brief)

Sufficient condition for the DTFT to exist and be finite for every θ∈[0,2π[\theta\in[0,2\pi[: x∈ℓ1x\in\ell^1, i.e. ∑n=−∞+∞∣x(n)∣<+∞\sum_{n=-\infty}^{+\infty}|x(n)|<+\infty.

Proof: by the triangle inequality, ∣X(ejθ)∣=∣∑n=−∞+∞x(n) e−jθn∣≤∑n=−∞+∞∣x(n)∣<+∞. ■|X(e^{j\theta})|=\left|\sum_{n=-\infty}^{+\infty}x(n)\,e^{-j\theta n}\right|\le\sum_{n=-\infty}^{+\infty}|x(n)|<+\infty. \ \blacksquare

Relationship between Fourier series and DTFT

Domain and codomain of the four transforms: the Fourier transform F\mathcal{F} maps aperiodic continuous signals to aperiodic continuous ones; the DFT FD\mathcal{F}_D maps periodic discrete signals to periodic discrete ones; the Fourier series FS\mathcal{F}_S maps continuous periodic signals into discrete aperiodic sequences (the coefficients); the DTFT FDT\mathcal{F}_{DT} maps discrete aperiodic signals into continuous periodic functions.

Under appropriate regularity assumptions on the signal xx:

FS∘FDT=R=FDT∘FS,\mathcal{F}_S\circ\mathcal{F}_{DT}=R=\mathcal{F}_{DT}\circ\mathcal{F}_S,

where RR is time reversal. Diagrammatically:

x(k)   --F_DT-->   X(e^{j theta})   --F_S-->   x(-k)
discrete           continuous                  discrete
aperiodic          2pi-periodic                aperiodic

x(t)   --F_S-->    X(w0,n) = a_n   --F_DT-->  x(-t)
continuous         discrete                    continuous
T-periodic         aperiodic                   T-periodic       (w0 = 2pi/T)

Properties of the DTFT

Translation in time (M∈ZM\in\mathbb{Z}): FDT[x(k+M)]=ejθMX(ejθ)\mathcal{F}_{DT}[x(k+M)]=e^{j\theta M}X(e^{j\theta}).

Modulation (θ0∈R\theta_0\in\mathbb{R}): FDT[ejθ0kx(k)]=X(ej(θ−θ0))\mathcal{F}_{DT}[e^{j\theta_0k}x(k)]=X(e^{j(\theta-\theta_0)}).

Multiplication by kk: FDT[k x(k)]=j ddθX(ejθ)\mathcal{F}_{DT}[k\,x(k)]=j\,\dfrac{d}{d\theta}X(e^{j\theta}).

Convolution and product (for v(k),w(k)∈ℓ1v(k),w(k)\in\ell^1):

  • FDT[v∗w]=V(ejθ) W(ejθ)\mathcal{F}_{DT}[v*w]=V(e^{j\theta})\,W(e^{j\theta});
  • FDT[v(k) w(k)]=12π V(ejθ)∗2πW(ejθ)\mathcal{F}_{DT}[v(k)\,w(k)]=\dfrac1{2\pi}\,V(e^{j\theta})*_{2\pi}W(e^{j\theta}) (convolution over one period of length 2π2\pi).

Parseval's relation (for x,x1,x2∈ℓ2x,x_1,x_2\in\ell^2):

∑n=−∞+∞∣x(n)∣2=12π∫[2π]∣X(ejθ)∣2 dθ,∑n=−∞+∞x1(n)x2(n)‾=12π∫[2π]X1(ejθ)X2(ejθ)‾ dθ.\sum_{n=-\infty}^{+\infty}|x(n)|^2=\frac1{2\pi}\int_{[2\pi]}|X(e^{j\theta})|^2\,d\theta,\qquad \sum_{n=-\infty}^{+\infty}x_1(n)\overline{x_2(n)}=\frac1{2\pi}\int_{[2\pi]}X_1(e^{j\theta})\overline{X_2(e^{j\theta})}\,d\theta .

Symmetries: the same as for the Fourier transform.

Examples of DTFT / IDTFT computation

Example 1: DTFT of a discrete rectangle

x(k)=rect ⁣(k2N1)x(k)=\mathrm{rect}\!\left(\frac{k}{2N_1}\right), equal to 11 for k=−N1,…,N1k=-N_1,\dots,N_1 and 00 otherwise.

X(ejθ)=∑k=−N1N1e−jθk=∑i=02N1e−jθ(i−N1)  (i=k+N1)=ejθN1∑i=02N1(e−jθ)i.X(e^{j\theta})=\sum_{k=-N_1}^{N_1}e^{-j\theta k}=\sum_{i=0}^{2N_1}e^{-j\theta(i-N_1)}\ \ (i=k+N_1)=e^{j\theta N_1}\sum_{i=0}^{2N_1}\left(e^{-j\theta}\right)^i .

Geometric sum ∑i=0Nqi=1−qN+11−q\sum_{i=0}^{N}q^i=\frac{1-q^{N+1}}{1-q}:

=ejθN1 1−e−jθ(2N1+1)1−e−jθ=ejθ(N1+12)−e−jθ(N1+12)ejθ2−e−jθ2=sin⁡ ⁣((N1+12)θ)sin⁡ ⁣(θ2)=DN1(θ),=e^{j\theta N_1}\,\frac{1-e^{-j\theta(2N_1+1)}}{1-e^{-j\theta}} =\frac{e^{j\theta\left(N_1+\frac12\right)}-e^{-j\theta\left(N_1+\frac12\right)}}{e^{j\frac\theta2}-e^{-j\frac\theta2}} =\frac{\sin\!\left(\left(N_1+\frac12\right)\theta\right)}{\sin\!\left(\frac\theta2\right)}=D_{N_1}(\theta),

where the middle step multiplies and divides by e−jθ/2ejθ/2=1e^{-j\theta/2}e^{j\theta/2}=1 (same trick as in 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 →). It is the Dirichlet kernel, a result similar to the DFT of repN[rect(k2N1)]\mathrm{rep}_N[\mathrm{rect}(\frac{k}{2N_1})].

Example 2: causal exponential

x(k)=ak 1(k)x(k)=a^k\,\mathbb{1}(k) with ∣a∣<1|a|<1.

X(ejθ)=∑k=0+∞(a e−jθ)k=11−a e−jθ=ejθejθ−a,X(e^{j\theta})=\sum_{k=0}^{+\infty}\left(a\,e^{-j\theta}\right)^k=\frac1{1-a\,e^{-j\theta}}=\frac{e^{j\theta}}{e^{j\theta}-a},

using the geometric series ∑i=0+∞qi=11−q\sum_{i=0}^{+\infty}q^i=\frac1{1-q} for q≠0q\ne0, ∣q∣<1|q|<1 (here ∣ae−jθ∣=∣a∣<1|a e^{-j\theta}|=|a|<1).

Example 3: inverse DTFT of a rectangle in frequency

Compute FDT−1 ⁣[rect ⁣(θπ)]\mathcal{F}_{DT}^{-1}\!\left[\mathrm{rect}\!\left(\frac\theta\pi\right)\right] over θ∈[−π,π]\theta\in[-\pi,\pi]: the function equals 11 for ∣θ∣<π2|\theta|<\frac\pi2 and 00 for π2<∣θ∣≤π\frac\pi2<|\theta|\le\pi.

x(k)=12π∫−π/2π/2ejθk dθ.x(k)=\frac1{2\pi}\int_{-\pi/2}^{\pi/2}e^{j\theta k}\,d\theta .

  • For k≠0k\ne0: x(k)=12π ejθkjk∣−π/2π/2=1πk ejπ2k−e−jπ2k2j=1πksin⁡ ⁣(π2k)x(k)=\frac1{2\pi}\,\frac{e^{j\theta k}}{jk}\Big|_{-\pi/2}^{\pi/2}=\frac1{\pi k}\,\frac{e^{j\frac\pi2k}-e^{-j\frac\pi2k}}{2j}=\frac{1}{\pi k}\sin\!\left(\frac\pi2k\right).
  • For k=0k=0: x(0)=12π∫−π/2π/2dθ=π2π=12x(0)=\frac1{2\pi}\int_{-\pi/2}^{\pi/2}d\theta=\frac{\pi}{2\pi}=\frac12.

Together: x(k)=12 sinc ⁣(k2)x(k)=\frac12\,\mathrm{sinc}\!\left(\frac k2\right), with sinc(t)=sin⁡(πt)πt\mathrm{sinc}(t)=\frac{\sin(\pi t)}{\pi t}.

Versione ripasso

  • Construction: periodic repetition x~=repN[x]\tilde x=\mathrm{rep}_N[x] of a finite-support xx, its DFT X(n)=1N∑k=−∞+∞x(k)e−j2πnNkX(n)=\frac1N\sum_{k=-\infty}^{+\infty}x(k)e^{-j\frac{2\pi n}{N}k}, then N→∞N\to\infty (envelope argument / Riemann sum with width 2πN\frac{2\pi}{N}).
  • DTFT: X(ejθ)=∑k=−∞+∞x(k) e−jθkX(e^{j\theta})=\sum_{k=-\infty}^{+\infty}x(k)\,e^{-j\theta k}, always 2π2\pi-periodic. DFT = DTFT sampled: X(n)=1NX(ejθ)∣θ=2πn/NX(n)=\frac1N X(e^{j\theta})|_{\theta=2\pi n/N}.
  • IDTFT: x(k)=12π∫[2π]X(ejθ)ejθkdθx(k)=\frac1{2\pi}\int_{[2\pi]}X(e^{j\theta})e^{j\theta k}d\theta. Low frequencies: near 0,±2π,…0,\pm2\pi,\dots; high frequencies: near ±π,±3π,…\pm\pi,\pm3\pi,\dots.
  • Existence: x∈ℓ1x\in\ell^1 is sufficient (∣X∣≤∑∣x(n)∣|X|\le\sum|x(n)|).
  • Duality: FS∘FDT=R=FDT∘FS\mathcal{F}_S\circ\mathcal{F}_{DT}=R=\mathcal{F}_{DT}\circ\mathcal{F}_S (RR = time reversal).
  • Properties: shift FDT[x(k+M)]=ejθMX\mathcal{F}_{DT}[x(k+M)]=e^{j\theta M}X; modulation FDT[ejθ0kx]=X(ej(θ−θ0))\mathcal{F}_{DT}[e^{j\theta_0k}x]=X(e^{j(\theta-\theta_0)}); FDT[kx]=jddθX\mathcal{F}_{DT}[kx]=j\frac{d}{d\theta}X; v∗w↦VWv*w\mapsto VW; vw↦12πV∗2πWvw\mapsto\frac1{2\pi}V*_{2\pi}W; Parseval ∑∣x∣2=12π∫[2π]∣X∣2dθ\sum|x|^2=\frac1{2\pi}\int_{[2\pi]}|X|^2d\theta. Symmetries as for the Fourier transform.
  • Pairs: rect(k2N1)↦DN1(θ)=sin⁡((N1+12)θ)sin⁡(θ/2)\mathrm{rect}(\frac k{2N_1})\mapsto D_{N_1}(\theta)=\frac{\sin((N_1+\frac12)\theta)}{\sin(\theta/2)}; ak1(k)↦11−ae−jθa^k\mathbb{1}(k)\mapsto\frac1{1-ae^{-j\theta}} (∣a∣<1|a|<1); rect(θπ)↦12sinc(k2)\mathrm{rect}(\frac\theta\pi)\mapsto\frac12\mathrm{sinc}(\frac k2).
  • Typical mistakes: integrating over (−∞,∞)(-\infty,\infty) instead of one period 2π2\pi in the inverse; forgetting the periodicity in θ\theta; mixing up the notation X(ejθ)X(e^{j\theta}) (discrete time) with X(jω)X(j\omega) (continuous time); using the geometric series without checking ∣q∣<1|q|<1.

Teoria collegata