Signals and Systems

5.1 Discrete-Time Fourier Transform (DTFT)

Imron Rosyadi

Discrete-Time Fourier Transform (DTFT)

Representation of Aperiodic Signals in Discrete Time

Why DTFT? Connecting Time and Frequency

  • Signals & Systems: Understanding how signals behave in both time and frequency domains is critical.
  • Aperiodic Signals: Unlike periodic signals, aperiodic signals don’t repeat. How do we analyze their frequency content?
  • Analogy to Continuous Time: Recall the Continuous-Time Fourier Transform (CTFT) for aperiodic continuous-time signals. We’ll follow a similar path for discrete-time signals.
  • From DTFS to DTFT: The DTFT can be derived from the Discrete-Time Fourier Series (DTFS) by extending the period to infinity.

Developing the DTFT: From Periodic to Aperiodic

To understand the DTFT, we start with a finite-duration aperiodic sequence \(x[n]\).

1. Finite-Duration Aperiodic Signal \(x[n]\)

  • \(x[n]=0\) outside a range \(-N_1 \leq n \leq N_2\).
  • This is the signal we want to analyze.

Figure 5.1(a): Finite-duration signal $x[n]

2. Construct a Periodic Signal \(\tilde{x}[n]\)

  • Create \(\tilde{x}[n]\) such that \(x[n]\) is one period of \(\tilde{x}[n]\).
  • As period \(N \rightarrow \infty\), \(\tilde{x}[n]\) becomes identical to \(x[n]\) over an increasingly large interval.

Figure 5.1(b): Periodic signal \(\tilde{x}[n]\)

The Discrete-Time Fourier Series (DTFS)

The periodic signal \(\tilde{x}[n]\) can be represented by its Discrete-Time Fourier Series (DTFS):

\[ \tilde{x}[n]=\sum_{k=\langle N\rangle} a_{k} e^{j k(2 \pi / N) n} \quad \text{(Eq. 5.1)} \]

where the Fourier series coefficients \(a_k\) are given by:

\[ a_{k}=\frac{1}{N} \sum_{n=\langle N\rangle} \tilde{x}[n] e^{-j k(2 \pi / N) n} \quad \text{(Eq. 5.2)} \]

  • The summation \(\sum_{k=\langle N\rangle}\) or \(\sum_{n=\langle N\rangle}\) denotes a sum over any \(N\) consecutive values of \(k\) or \(n\), respectively.
  • \(\omega_0 = 2\pi/N\) is the fundamental frequency.

Connecting DTFS Coefficients to the Aperiodic Signal

Since \(\tilde{x}[n] = x[n]\) over one period (which includes \(-N_1 \leq n \leq N_2\)), we can replace \(\tilde{x}[n]\) with \(x[n]\) in the summation for \(a_k\):

\[ a_{k}=\frac{1}{N} \sum_{n=-N_{1}}^{N_{2}} x[n] e^{-j k(2 \pi / N) n}=\frac{1}{N} \sum_{n=-\infty}^{+\infty} x[n] e^{-j k(2 \pi / N) n} \quad \text{(Eq. 5.3)} \]

We define a new function, the Discrete-Time Fourier Transform (DTFT) of \(x[n]\):

\[ X\left(e^{j \omega}\right)=\sum_{n=-\infty}^{+\infty} x[n] e^{-j \omega n} \quad \text{(Eq. 5.4)} \]

Now, we can see that the Fourier coefficients \(a_k\) are simply samples of \(X(e^{j\omega})\):

\[ a_{k}=\frac{1}{N} X\left(e^{j k \omega_{0}}\right) \quad \text{(Eq. 5.5)} \]

From Summation to Integration: The DTFT Pair

Substitute \(a_k\) back into the DTFS synthesis equation for \(\tilde{x}[n]\):

\[ \tilde{x}[n]=\sum_{k=\langle N\rangle} \frac{1}{N} X\left(e^{j k \omega_{0}}\right) e^{j k \omega_{0} n} \quad \text{(Eq. 5.6)} \]

Since \(1/N = \omega_0 / 2\pi\):

\[ \tilde{x}[n]=\frac{1}{2 \pi} \sum_{k=\langle N\rangle} X\left(e^{j k \omega_{0}}\right) e^{j k \omega_{0} n} \omega_{0} \quad \text{(Eq. 5.7)} \]

As \(N \rightarrow \infty\):

  • \(\omega_0 = 2\pi/N \rightarrow 0\) (samples become infinitely close).
  • The summation becomes an integral.
  • \(\tilde{x}[n] \rightarrow x[n]\).

Figure 5.2: Graphical interpretation of Eq. 5.7, showing the Riemann sum.

The Discrete-Time Fourier Transform (DTFT) Pair

The result of this limiting process gives us the DTFT pair:

Analysis Equation (Forward DTFT):

(From time domain \(x[n]\) to frequency domain \(X(e^{j\omega})\))

\[ X\left(e^{j \omega}\right) =\sum_{n=-\infty}^{+\infty} x[n] e^{-j \omega n} \quad \text{(Eq. 5.9)} \]

  • \(X(e^{j\omega})\) is the spectrum of \(x[n]\).
  • It shows how \(x[n]\) is composed of complex exponentials at different frequencies.

Synthesis Equation (Inverse DTFT):

(From frequency domain \(X(e^{j\omega})\) to time domain \(x[n]\))

\[ x[n] =\frac{1}{2 \pi} \int_{2 \pi} X\left(e^{j \omega}\right) e^{j \omega n} d \omega \quad \text{(Eq. 5.8)} \]

  • Integrates over any interval of length \(2\pi\).
  • Reconstructs \(x[n]\) as a linear combination of complex exponentials.

Important

Key Differences from CTFT:

  1. Periodicity: \(X(e^{j\omega})\) is always periodic in \(\omega\) with period \(2\pi\).
  2. Integration Interval: The integral in the synthesis equation is over a finite interval of length \(2\pi\).

These stem from the periodicity of discrete-time complex exponentials \(e^{j\omega n}\) in \(\omega\).

Frequency Interpretation in Discrete Time

The periodicity of \(X(e^{j\omega})\) with period \(2\pi\) has important implications for interpreting frequencies:

Low Frequencies:

  • Values of \(\omega\) near \(0, \pm 2\pi, \pm 4\pi, \ldots\)
  • Correspond to slowly varying signals.
  • Example: \(x_1[n]\) in Figure 5.3(a) with its spectrum \(X_1(e^{j\omega})\) in Figure 5.3(b).

Figure 5.3(a): Slowly varying signal \(x_1[n]\)

Figure 5.3(b): Spectrum \(X_1(e^{j\omega})\) concentrated near \(0, \pm 2\pi, \dots\)

High Frequencies:

  • Values of \(\omega\) near \(\pm \pi, \pm 3\pi, \ldots\)
  • Correspond to rapidly varying, alternating signals.
  • Example: \(x_2[n]\) in Figure 5.3(c) with its spectrum \(X_2(e^{j\omega})\) in Figure 5.3(d).

Figure 5.3(c): Rapidly varying signal \(x_2[n]\)

Figure 5.3(d): Spectrum \(X_2(e^{j\omega})\) concentrated near \(\pm \pi, \dots\)

Example 5.1: Real Exponential Sequence

Consider the causal real exponential sequence:

\[ x[n]=a^{n} u[n], \quad|a|<1 \]

Using the DTFT analysis equation (Eq. 5.9):

\[ \begin{aligned} X\left(e^{j \omega}\right) & =\sum_{n=-\infty}^{+\infty} a^{n} u[n] e^{-j \omega n} \\ & =\sum_{n=0}^{\infty}\left(a e^{-j \omega}\right)^{n} \end{aligned} \]

This is a geometric series. For convergence, we require \(|a e^{-j\omega}| < 1\), which simplifies to \(|a|<1\).

\[ X\left(e^{j \omega}\right) = \frac{1}{1-a e^{-j \omega}} \]

Interactive Plot: Example 5.1 Spectrum

Explore the magnitude and phase spectrum of \(x[n] = a^n u[n]\) for different values of \(a\).

Example 5.2: Two-Sided Exponential Sequence

Consider the two-sided exponential sequence:

\[ x[n]=a^{|n|}, \quad|a|<1 \]

This signal is symmetric around \(n=0\).

Using the DTFT analysis equation (Eq. 5.9):

\[ \begin{aligned} X\left(e^{j \omega}\right) & =\sum_{n=-\infty}^{+\infty} a^{|n|} e^{-j \omega n} \\ & =\sum_{n=0}^{\infty} a^{n} e^{-j \omega n}+\sum_{n=-\infty}^{-1} a^{-n} e^{-j \omega n} \end{aligned} \]

By substituting \(m=-n\) in the second sum, and evaluating both geometric series:

\[ X\left(e^{j \omega}\right) = \frac{1}{1-a e^{-j \omega}}+\frac{a e^{j \omega}}{1-a e^{j \omega}} = \frac{1-a^{2}}{1-2 a \cos \omega+a^{2}} \]

In this case, \(X(e^{j\omega})\) is purely real.

Figure 5.5(a): Signal \(x[n]=a^{|n|}\) for \(0<a<1\).

Interactive Plot: Example 5.2 Spectrum

Observe the real-valued spectrum of \(x[n] = a^{|n|}\) for \(0 < a < 1\).

Example 5.3: Rectangular Pulse

Consider the rectangular pulse sequence:

\[ x[n]= \begin{cases}1, & |n| \leq N_{1} \\ 0, & |n|>N_{1}\end{cases} \]

This means \(x[n]=1\) for \(n = -N_1, \ldots, 0, \ldots, N_1\).

The DTFT is:

\[ X\left(e^{j \omega}\right)=\sum_{n=-N_{1}}^{N_{1}} e^{-j \omega n} \quad \text{(Eq. 5.11)} \]

This is a finite geometric series.

Using the formula for a finite geometric series, we get:

\[ X\left(e^{j \omega}\right)=\frac{\sin \omega\left(N_{1}+\frac{1}{2}\right)}{\sin (\omega / 2)} \quad \text{(Eq. 5.12)} \]

This function is the discrete-time counterpart of the continuous-time sinc function.

Figure 5.6(a): Rectangular pulse for \(N_1=2\).

Interactive Plot: Example 5.3 Spectrum

Visualize the spectrum of a rectangular pulse \(x[n]\) for different pulse widths \(N_1\).

Convergence Issues

For the DTFT analysis equation (Eq. 5.9) to converge, \(x[n]\) must satisfy certain conditions:

1. Absolute Summability:

\[ \sum_{n=-\infty}^{+\infty}|x[n]|<\infty \quad \text{(Eq. 5.13)} \]

  • This is the strongest condition and guarantees uniform convergence of \(X(e^{j\omega})\).

2. Finite Energy:

\[ \sum_{n=-\infty}^{+\infty}|x[n]|^{2}<\infty \quad \text{(Eq. 5.14)} \]

  • If \(x[n]\) has finite energy, the DTFT converges in a mean-square sense (Plancherel’s theorem).

Note

Synthesis Equation Convergence:

The synthesis equation (Eq. 5.8) generally has no convergence issues because the integral is over a finite interval of length \(2\pi\).

This is a key difference from the CTFT, where reconstruction can exhibit Gibbs phenomenon.

Example 5.4: Unit Impulse Signal

Consider the unit impulse:

\[ x[n]=\delta[n] \]

Using the DTFT analysis equation:

\[ X\left(e^{j \omega}\right)=\sum_{n=-\infty}^{+\infty} \delta[n] e^{-j \omega n} = e^{-j \omega (0)} = 1 \]

The DTFT of a unit impulse is \(1\), meaning it contains equal contributions at all frequencies.

Now, let’s approximate \(\delta[n]\) using the inverse DTFT over a limited frequency range \([-W, W]\):

\[ \hat{x}[n]=\frac{1}{2 \pi} \int_{-W}^{W} e^{j \omega n} d \omega = \frac{\sin W n}{\pi n} \quad \text{(Eq. 5.16)} \]

  • As \(W \rightarrow \pi\), \(\hat{x}[n]\) approaches \(\delta[n]\).
  • Unlike CTFT, no Gibbs phenomenon for \(W=\pi\).

Interactive Plot: Example 5.4 Impulse Reconstruction

Observe how the approximation \(\hat{x}[n]\) approaches \(\delta[n]\) as the integration bandwidth \(W\) increases.

Summary & ECE Applications

Key Takeaways:

  • The DTFT extends Fourier analysis to aperiodic discrete-time signals.
  • DTFT Pair:
    • Analysis: \(X\left(e^{j \omega}\right) =\sum_{n=-\infty}^{+\infty} x[n] e^{-j \omega n}\)
    • Synthesis: \(x[n] =\frac{1}{2 \pi} \int_{2 \pi} X\left(e^{j \omega}\right) e^{j \omega n} d \omega\)
  • Periodicity: \(X(e^{j\omega})\) is always periodic with period \(2\pi\).
  • Frequency Interpretation: Low frequencies near \(0, \pm 2\pi, \ldots\); High frequencies near \(\pm \pi, \pm 3\pi, \ldots\).
  • Convergence conditions for analysis (absolute summability/finite energy) differ from synthesis (always converges).

Tip

Applications in ECE:

  • Digital Filter Design: DTFT is essential for understanding and designing digital filters (e.g., FIR, IIR) by analyzing their frequency response.
  • Spectral Analysis: Analyzing the frequency content of discrete-time signals (e.g., speech, audio, biomedical signals).
  • System Analysis: Characterizing the input-output behavior of discrete-time LTI systems using frequency response.
  • Communication Systems: Modulation, demodulation, and channel equalization in digital communication.