Fourier Series for Periodic Signals
Fourier series represent periodic signals as weighted sums of harmonically related complex exponentials. The idea is powerful because complex exponentials are eigenfunctions of LTI systems: when a sinusoidal component passes through an LTI system, only its amplitude and phase change. A periodic signal can therefore be analyzed component by component in frequency.
Continuous-time and discrete-time Fourier series share the same conceptual structure, but their details differ. Continuous-time periodic signals generally require infinitely many harmonics. Discrete-time periodic sequences have only finitely many distinct harmonics over one period because discrete-time frequency repeats every .
Definitions
For a continuous-time periodic signal with fundamental period and fundamental angular frequency
the complex exponential Fourier series is
The coefficients are
where means integration over any complete period.
For a discrete-time periodic sequence with fundamental period , the discrete-time Fourier series is
The coefficients are
The coefficient sequence is periodic in with period :
For real continuous-time signals, the coefficients satisfy conjugate symmetry:
For real discrete-time periodic sequences,
with indices interpreted modulo .
The trigonometric continuous-time series is
The complex form is usually cleaner for system analysis, while the trigonometric form is sometimes easier to read physically.
Key results
The orthogonality of complex exponentials over one period is the key identity. In continuous time,
In discrete time,
These identities isolate a single coefficient when the signal is multiplied by a conjugate harmonic and averaged over one period.
Parseval's relation connects time-domain average power to coefficient magnitudes. For continuous time,
For discrete time,
If a periodic signal is the input to an LTI system with frequency response , then
produces
For discrete time, the factor is . This result is one reason Fourier series appears immediately after LTI systems.
At jump discontinuities, the Fourier series converges to the midpoint of the left and right limits under standard Dirichlet conditions:
Near jumps, partial sums show overshoot known as the Gibbs phenomenon. Increasing the number of harmonics narrows the oscillatory region but does not remove the limiting overshoot.
Coefficient patterns reveal signal structure. A real and even continuous-time signal has real and even coefficients. A real and odd signal has purely imaginary, odd-symmetric coefficients in the complex form. Half-wave symmetry often removes even harmonics. These facts are not just shortcuts; they are checks on whether the coefficient signs and factors are plausible.
The DC coefficient is the average value over one period. In continuous time,
In discrete time,
If a waveform spends equal positive and negative area over a period, should be zero. If the signal is always nonnegative, a negative is a warning sign.
Fourier series also separates waveform smoothness from spectral decay. Signals with jumps have coefficients that decay slowly, typically like . Signals with more smooth derivatives have faster coefficient decay. This is why sharp edges require many harmonics to approximate accurately.
Visual
| Feature | CT Fourier series | DT Fourier series |
|---|---|---|
| Signal type | periodic | periodic |
| Fundamental frequency | ||
| Synthesis | ||
| Analysis | ||
| Number of distinct harmonics | countably infinite | |
| Power relation |
Worked example 1: CTFS coefficients of a square wave
Problem: Let be periodic with period and
Find the complex Fourier series coefficients.
Method:
- The fundamental frequency is
- Use the coefficient formula:
- Split the integral:
- For ,
Therefore
- Since ,
The two terms are equal, so
- For even , . For odd , :
- The DC coefficient is
Checked answer: The signal is odd, so coefficients are purely imaginary and odd-symmetric, which agrees with for odd and zero otherwise.
Worked example 2: DTFS coefficients of a period-4 sequence
Problem: A periodic sequence has one period
Find its DTFS coefficients.
Method:
- The period is , so
- Simplify the frequency factor:
- Compute each coefficient.
For :
For :
Use and :
For :
For :
Use and :
Checked answer:
Because is real, , as expected.
Code
import numpy as np
x = np.array([1, 2, 1, 0], dtype=complex)
N = len(x)
n = np.arange(N)
k = np.arange(N)
W = np.exp(-1j * 2 * np.pi / N * np.outer(k, n))
a = (W @ x) / N
print("DTFS coefficients:")
for idx, coeff in enumerate(a):
print(idx, np.round(coeff, 6))
x_rebuilt = np.exp(1j * 2 * np.pi / N * np.outer(n, k)) @ a
print("reconstruction:", np.round(x_rebuilt.real, 6))
Common pitfalls
- Using Fourier transform formulas for a periodic signal without recognizing the spectrum is made of lines.
- Forgetting the or factor in the analysis equation.
- Summing DTFS over infinitely many distinct harmonics. Only harmonics are distinct for period .
- Assuming the Fourier series equals the original value exactly at a jump. It converges to the midpoint under standard conditions.
- Losing conjugate symmetry checks for real signals; they are useful for catching sign errors.