3.6 Fourier Series Representation of Discrete-Time Periodic Signals
Imron Rosyadi
Fourier Series Representation of Discrete-Time Periodic Signals
Introduction: Discrete-Time Periodic Signals
Discrete-time (DT) signals \(x[n]\) are periodic with period \(N\) if \(x[n] = x[n+N]\).
The fundamental period \(N\) is the smallest positive integer for which this holds.
The fundamental frequency is \(\omega_0 = 2\pi/N\).
Note
Key Difference from Continuous-Time (CT): The Fourier series representation for discrete-time signals is a finite series, unlike the infinite series required for continuous-time signals. This simplifies convergence issues significantly.
Harmonically Related Complex Exponentials
The set of all discrete-time complex exponential signals periodic with period \(N\) is given by:
\[ \phi_k[n] = e^{j k \omega_0 n} = e^{j k(2\pi/N)n}, \quad k = 0, \pm 1, \pm 2, \ldots \]
There are only \(N\) distinct signals in this set. This is because discrete-time complex exponentials differing by a multiple of \(2\pi\) in frequency are identical.
\[ \phi_k[n] = \phi_{k+rN}[n] \]
This means \(e^{j k(2\pi/N)n}\) and \(e^{j (k+N)(2\pi/N)n}\) are the same sequence.
Demonstrating Distinct Exponentials
Let’s visualize how \(\phi_k[n]\) repeats for \(k\) and \(k+N\). Consider \(N=5\). We expect \(\phi_0[n] = \phi_5[n]\), \(\phi_1[n] = \phi_6[n]\), etc.
Demonstrating Distinct Exponentials (cont.)
The plots show the real and imaginary parts of \(\phi_k[n]\) for \(k=1\) and \(k=1+N\) (with \(N=5\)). Observe that the two plots are identical, confirming that \(\phi_k[n] = \phi_{k+N}[n]\).
Tip
Interactive Element: Feel free to change \(N_{val}\) and \(k\) (by modifying the get_phi_k calls) in the Python code to explore this property further! For example, try \(k=0\) and \(k=N_{val}\).
Discrete-Time Fourier Series (DTFS) Synthesis
A periodic discrete-time signal \(x[n]\) can be represented as a linear combination of these harmonically related complex exponentials.
The notation \(\sum_{k=\langle N\rangle}\) indicates summation over any set of \(N\) successive integers for \(k\). Common choices include \(k=0, 1, \ldots, N-1\) or \(k=- (N-1)/2, \ldots, (N-1)/2\) (for odd \(N\)).
The coefficients \(a_k\) are called the Fourier series coefficients.
Determination of DTFS Coefficients (1/2)
Given \(x[n]\) periodic with fundamental period \(N\), we want to find \(a_k\).
We can solve a system of \(N\) linear equations, but a more direct method exists.
The key identity (similar to orthogonality in CT):
\[ \sum_{n=\langle N\rangle} e^{j k(2\pi/N)n} = \begin{cases} N, & k = 0, \pm N, \pm 2N, \ldots \\ 0, & \text{otherwise} \end{cases} \]
This identity is crucial for isolating each \(a_k\).
Interactive Identity Verification
Let’s verify the summation identity: \(\sum_{n=\langle N\rangle} e^{j k(2\pi/N)n}\).
Tip
Experiment:
Change N_period and k_val in the code above and run it. Observe the sum. What happens when k_val is a multiple of N_period? What happens otherwise?
Determination of DTFS Coefficients (2/2)
To derive \(a_k\):
Multiply the synthesis equation by \(e^{-j r(2\pi/N)n}\).
The inner sum is \(N\) if \(k-r\) is a multiple of \(N\) (i.e., \(k=r\) within the \(\langle N \rangle\) range), and \(0\) otherwise. This simplifies to \(N a_r\), leading to:
The Fourier series coefficients \(a_k\) are periodic with period \(N\): \(a_k = a_{k+N}\). This is a direct consequence of the periodicity of \(\phi_k[n]\).
Example 3.10: Discrete-Time Sine Wave
Consider the signal \(x[n] = \sin(\omega_0 n)\). This signal is periodic only if \(2\pi/\omega_0\) is an integer (or ratio of integers). If \(\omega_0 = 2\pi/N\), then \(x[n]\) is periodic with fundamental period \(N\).
Property for Real Signals: For a real signal \(x[n]\), the Fourier coefficients exhibit conjugate symmetry: \(a_{-k} = a_k^*\). Verify this for the calculated coefficients!
Example 3.11: Coefficients Visualization
Visualizing the real, imaginary, magnitude, and phase of the coefficients for \(N=10\).
Example 3.12: Discrete-Time Periodic Square Wave
Consider a discrete-time periodic square wave \(x[n]\) with period \(N\).
It is defined as \(x[n]=1\) for \(-N_1 \leq n \leq N_1\), and \(x[n]=0\) otherwise within one period.
The analysis equation is: \[ a_k = \frac{1}{N} \sum_{n=\langle N\rangle} x[n] e^{-j k(2\pi/N)n} \]
Choosing the summation range from \(-N_1\) to \(N_1\):