Signals and Systems

CT vs. DT Fourier Series: A Comparative Recap

Imron Rosyadi

CT vs. DT Fourier Series: A Comparative Recap

Understanding the Core Differences

Continuous-Time Fourier Series (CTFS) Recap

For a periodic CT signal \(x(t)\) with fundamental period \(T_0\) and fundamental frequency \(\omega_0 = 2\pi/T_0\).

Synthesis Equation:

(Reconstruction from coefficients)

\[ x(t) = \sum_{k=-\infty}^{\infty} a_k e^{j k \omega_0 t} \]

Analysis Equation:

(Calculation of coefficients)

\[ a_k = \frac{1}{T_0} \int_{T_0} x(t) e^{-j k \omega_0 t} dt \]

Note

Key Characteristics:

  • Infinite series: Requires summing an infinite number of terms.
  • Convergence issues: Partial sums may not perfectly reconstruct \(x(t)\), especially at discontinuities.
  • Gibbs phenomenon: Overshoots/undershoots near discontinuities in partial sums.

Discrete-Time Fourier Series (DTFS) Recap

For a periodic DT signal \(x[n]\) with fundamental period \(N\) and fundamental frequency \(\omega_0 = 2\pi/N\).

Synthesis Equation:

(Reconstruction from coefficients)

\[ x[n] = \sum_{k=\langle N\rangle} a_k e^{j k \omega_0 n} = \sum_{k=\langle N\rangle} a_k e^{j k(2\pi/N)n} \]

Analysis Equation:

(Calculation of coefficients)

\[ a_k = \frac{1}{N} \sum_{n=\langle N\rangle} x[n] e^{-j k \omega_0 n} = \frac{1}{N} \sum_{n=\langle N\rangle} x[n] e^{-j k(2\pi/N)n} \]

Note

Key Characteristics:

  • Finite series: Sums only \(N\) distinct terms.
  • No convergence issues: The finite sum perfectly reconstructs \(x[n]\).
  • No Gibbs phenomenon: Exact reconstruction with all \(N\) terms.
  • Coefficients are periodic: \(a_k = a_{k+N}\).

CTFS vs. DTFS: A Side-by-Side Comparison

Continuous-Time Fourier Series (CTFS)

  • Signal: \(x(t)\) (continuous-time)
  • Period: \(T_0\)
  • Fundamental Freq: \(\omega_0 = 2\pi/T_0\)
  • Series Type: Infinite sum \[ x(t) = \sum_{k=-\infty}^{\infty} a_k e^{j k \omega_0 t} \]
  • Coefficient Calculation: Integral \[ a_k = \frac{1}{T_0} \int_{T_0} x(t) e^{-j k \omega_0 t} dt \]
  • Convergence: Requires conditions, partial sums approximate \(x(t)\).
  • Gibbs Phenomenon: Present at discontinuities for partial sums.
  • Coefficients periodicity: \(a_k\) are generally not periodic.

Discrete-Time Fourier Series (DTFS)

  • Signal: \(x[n]\) (discrete-time)
  • Period: \(N\)
  • Fundamental Freq: \(\omega_0 = 2\pi/N\)
  • Series Type: Finite sum (N terms) \[ x[n] = \sum_{k=\langle N\rangle} a_k e^{j k(2\pi/N)n} \]
  • Coefficient Calculation: Summation \[ a_k = \frac{1}{N} \sum_{n=\langle N\rangle} x[n] e^{-j k(2\pi/N)n} \]
  • Convergence: Always exact with \(N\) terms.
  • Gibbs Phenomenon: Not present.
  • Coefficients periodicity: \(a_k\) are periodic with period \(N\).

Example: Periodic Square Wave (CTFS)

Consider a CT periodic square wave \(x(t)\) with period \(T_0\), amplitude \(A=1\), and pulse width \(T_1\).

Let \(T_0=1\) and \(T_1=0.5\).

The Fourier series coefficients are given by:

\[ a_k = \frac{A T_1}{T_0} \text{sinc}\left(k \frac{T_1}{T_0}\right) = \frac{A T_1}{T_0} \frac{\sin(\pi k T_1/T_0)}{\pi k T_1/T_0} \]

For \(k=0\), \(a_0 = \frac{A T_1}{T_0}\).

CTFS: Square Wave Visualization

Here we visualize the CT square wave and its Fourier coefficients.

Example: Periodic Square Wave (DTFS)

Consider a DT periodic square wave \(x[n]\) with period \(N\), amplitude \(A=1\), and pulse width \(P\).

Let \(N=10\) and \(P=5\) (i.e., \(2N_1+1=5 \implies N_1=2\)).

The Fourier series coefficients are given by:

\[ a_k = \frac{A}{N} \frac{\sin(\pi k P/N)}{\sin(\pi k/N)}, \quad k \neq 0, \pm N, \pm 2N, \ldots \]

For \(k=0, \pm N, \ldots\):

\[ a_k = \frac{A P}{N} \]

DTFS: Square Wave Visualization

Here we visualize the DT square wave and its Fourier coefficients.

Visual Comparison: CTFS vs. DTFS Coefficients

CTFS Coefficients (k continuous envelope)

DTFS Coefficients (k sampled points)

Reconstruction & Gibbs Phenomenon (CTFS)

Using only a finite number of terms to reconstruct a CT square wave will show the Gibbs phenomenon.

Reconstruction & No Gibbs Phenomenon (DTFS)

Using all \(N\) terms perfectly reconstructs a DT periodic square wave.

Conclusion and Key Takeaways

CTFS: The Infinite Spectroscope

  • Infinite number of harmonic components.
  • Continuous spectrum envelope (sinc for square wave).
  • Approximation when using finite terms.
  • Gibbs phenomenon at discontinuities.
  • Used for analyzing analog signals in continuous systems.

DTFS: The Finite Spectrum Analyzer

  • Finite number (\(N\)) of distinct harmonic components.
  • Discrete spectrum (sampled sinc for square wave), which is periodic.
  • Exact reconstruction with all \(N\) terms.
  • No Gibbs phenomenon.
  • Used for analyzing sampled signals and discrete systems.

Tip

Analogy:

Think of CTFS as trying to describe a smooth painting with an infinite palette of colors, while DTFS is like describing a pixelated image with a finite, repeating set of colors.