FIR Filter Design by Windowing and the Gibbs Phenomenon
April 11, 2026 · Luciano Muratore
Expanding our study of LTI systems, we now address the practical challenge of implementing ideal filters. While the theoretical models provide perfect frequency separation, their realization in finite-time systems introduces unique mathematical artifacts, most notably the Gibbs phenomenon.
1. The Ideal Lowpass Filter and its Impulse Response
An ideal lowpass filter has a rectangular frequency response, , which is for frequencies below a cutoff and otherwise. The impulse response is calculated via the inverse DTFT:
The Implementation Challenge: The resulting impulse response is infinite in duration (non-causal and not absolutely summable). Therefore, it cannot be directly implemented as a Finite Impulse Response (FIR) filter.
2. FIR Approximation by Truncation
To create a practical filter, we can truncate the infinite impulse response to a finite number of samples[cite: 13]. We define a -tap FIR filter coefficients as:
This approach is not just intuitive; it satisfies a precise mathematical criterion by minimizing the mean-square error () between the ideal and the approximated frequency responses:
By Parseval’s theorem, this is equivalent to minimizing the energy of the difference in the time domain: .
3. Why the Gibbs Phenomenon Persists
Truncating the impulse response (which is equivalent to multiplying by a rectangular window) leads to the Gibbs phenomenon—oscillations near the points of discontinuity in the frequency response.
vs. Uniform Convergence
The FIR approximation works within the Hilbert space . While the approximation converges to the ideal filter in the sense (the total energy of the error goes to zero as increases), it does not converge uniformly:
- Energy Reduction: as .
- Persistent Peak Error: The maximum error near the jump discontinuity remains constant at approximately (about 9%), regardless of how large becomes.
4. Consequence for Filter Design
Because the sequence cannot converge uniformly to , the “ripples” near the cutoff frequency do not vanish with increasing filter length; they simply crowd closer to the discontinuity.
Gibbs persists because truncation yields convergence rather than the uniform convergence required to eliminate these oscillations. To mitigate this in practical DSP, alternative windowing functions (like Hamming or Kaiser windows) are used to trade off main-lobe width for reduced side-lobe ripples.