Unit 3 - Notes

ECE220

Unit 3: Fourier series representation of periodic signals

1. Introduction

1.1 Overview

In the analysis of Linear Time-Invariant (LTI) systems, signals are often complex. To simplify analysis, it is beneficial to decompose signals into basic building blocks. For LTI systems, complex exponentials () are eigenfunctions, meaning the output of the system is a scaled version of the input.

Fourier Series provides the mathematical framework to represent any periodic signal as an infinite sum of harmonically related sinusoidal components (or complex exponentials).

1.2 Fundamental Definitions

  • Periodic Signal: A continuous-time signal is periodic if there exists a positive value such that:
  • Fundamental Period (): The smallest positive value of for which the equation holds.
  • Fundamental Frequency:
    • (radians per second)
    • (Hertz)

2. Fourier Series Representation of Continuous Time Periodic Signals

There are three primary forms of the Fourier Series representation.

2.1 Trigonometric Fourier Series

Any periodic signal satisfying the Dirichlet conditions can be expanded as:

Evaluation of Coefficients:

  1. DC Component (): Represents the average value of the signal over one period.
  2. Cosine Coefficients ():
  3. Sine Coefficients ():

Note: denotes integration over any interval of length (e.g., to or $0$ to ).

2.2 Compact Trigonometric (Polar) Form

By combining sine and cosine terms, the series can be expressed using only cosines with phase angles:

Relationships:

  • Amplitude:
  • Phase:

2.3 Exponential Fourier Series (Most Common)

Using Euler’s identity (), the series becomes more compact mathematically. This is the standard form used in Signal Processing.

Synthesis Equation (Reconstruction):

Analysis Equation (Finding Coefficients):

Relationship to Trigonometric Coefficients:

  • (Magnitude Spectrum)

3. Convergence of the Fourier Series

The Fourier Series approximation does not converge to the original signal for every signal. The signal must behave "reasonably." The sufficient conditions for convergence are known as the Dirichlet Conditions.

3.1 The Dirichlet Conditions

A periodic signal has a convergent Fourier series representation if:

  1. Absolutely Integrable: Over any period , the signal must be absolutely integrable.

    Example of failure: over .
  2. Finite Variations: In any finite time interval, must have a finite number of maxima and minima.
    Example of failure: near .
  3. Finite Discontinuities: In any finite time interval, must have a finite number of discontinuities, and each discontinuity must be finite in amplitude.

3.2 Convergence at Discontinuities

If has a discontinuity at , the Fourier Series converges to the average of the limits from the left and the right:

3.3 Gibbs Phenomenon

When approximating a signal with discontinuities (like a Square Wave) using a finite number of terms (), oscillations occur near the discontinuity. As :

  • The ripples become narrower.
  • The amplitude of the overshoot does not decrease; it remains approximately 9% larger than the jump size.
  • This is known as the Gibbs Phenomenon.

4. Properties of Continuous Time Fourier Series

Let and be periodic signals with period and fundamental frequency . Let their Fourier Series coefficients be and respectively.

Property Time Domain Signal Fourier Series Coefficients (Frequency Domain)
Linearity
Time Shifting
Frequency Shifting
Time Reversal
Time Scaling Coefficients remain , but fundamental freq becomes .
Multiplication (Discrete Convolution)
Conjugation
Differentiation
Integration (if )

4.1 Parseval’s Theorem (Power Relation)

The average power of a periodic signal is the sum of the average powers of its harmonic components.

4.2 Symmetry Properties

  • Even Symmetry: If , the coefficients are purely real and even (). In Trig form, .
  • Odd Symmetry: If , the coefficients are purely imaginary and odd (). In Trig form, .
  • Half-Wave Symmetry: If , the series contains only odd harmonics ( for even ).

5. Software Simulation of Frequency Spectrum of Periodic Signals

The frequency spectrum visualizes the content of the signal. It consists of:

  1. Magnitude Spectrum: Plot of vs. .
  2. Phase Spectrum: Plot of vs. .

5.1 Python Simulation Example (Square Wave)

Below is a Python script using numpy and matplotlib to generate the spectrum of a Square Wave.

Theoretical Expectation:
For a Square wave of amplitude 1 defined from to :

  • for odd .
  • for even (except potentially DC depending on offset).

PYTHON
import numpy as np
import matplotlib.pyplot as plt

def square_wave_spectrum(n_harmonics):
    """
    Simulates the Line Spectrum of a Square Wave
    x(t) = 1 for 0 < t < T/2, -1 for T/2 < t < T
    """
    
    # Harmonics indices (k)
    # We include negative and positive frequencies for exponential series
    k = np.arange(-n_harmonics, n_harmonics + 1)
    
    # Initialize coefficients array
    Ck = np.zeros(len(k), dtype=complex)
    
    # Calculate Coefficients for Square Wave
    # Formula: C_k = -2j / (k*pi) for odd k, 0 for even k, 0 for k=0 (if zero mean)
    for i, val in enumerate(k):
        if val == 0:
            Ck[i] = 0 # DC component is 0 for symmetric square wave
        elif val % 2 != 0: # Odd harmonics only
            Ck[i] = -2j / (np.pi * val)
        else:
            Ck[i] = 0
            
    # Magnitude and Phase
    magnitude = np.abs(Ck)
    phase = np.angle(Ck)
    
    # Plotting
    plt.figure(figsize=(12, 6))
    
    # Magnitude Spectrum
    plt.subplot(1, 2, 1)
    plt.stem(k, magnitude, basefmt=" ")
    plt.title('Magnitude Spectrum |C_k|')
    plt.xlabel('Harmonic index k')
    plt.ylabel('Amplitude')
    plt.grid(True)
    
    # Phase Spectrum
    plt.subplot(1, 2, 2)
    plt.stem(k, phase, basefmt=" ")
    plt.title('Phase Spectrum < C_k')
    plt.xlabel('Harmonic index k')
    plt.ylabel('Phase (radians)')
    plt.grid(True)
    
    plt.tight_layout()
    plt.show()

# Run simulation for 10 harmonics
square_wave_spectrum(10)

5.2 Observations from Simulation

  1. Discrete Nature: The spectrum of a periodic signal is a Line Spectrum (discrete spikes), not a continuous curve.
  2. Spacing: The lines are spaced by . As the period increases, decreases, and the spectral lines get closer together.
  3. Decay: The magnitude of coefficients decreases as increases ( for square wave). This confirms that high-frequency components contribute less to the signal's shape but are crucial for sharp transitions (edges).