Fejér means of Fourier series
Derive Fejér Fourier averaging, explore its range-preserving square-wave reconstruction, and compare its RMS cost with ordinary truncation.
Fejér Means: Suppress Overshoot by Averaging Fourier Partial Sums
The Gibbs overshoot of a Fourier cutoff is not removed merely by keeping more harmonics. Fejér summation changes how the harmonics are weighted. It can preserve the range of a bounded real signal, at the cost of stronger smoothing.
Average Approximations, Not Samples
Let retain all Fourier harmonics with . Define
A coefficient of index n appears in N+1−|n| of these sums. Thus its weight is for |n|≤N, and zero beyond. This definition uses N+1 partial sums; some references index the mean by their number instead. State the convention before transferring a formula.
The Penn analysis notes on summability derive the positive convolution kernel behind these averages. In the convention here,
At multiples of 2π the removable limit is N+1. The kernel is nonnegative and its integral is 2π. Consequently, if a≤f≤b almost everywhere, then a≤sigma≤b: the reconstruction is a weighted average with nonnegative weights summing to one.
Compare a Square Wave
For away from its jumps, nonzero sine coefficients are at odd n. The ordinary sum uses those coefficients unchanged through N; the Fejér mean multiplies each by its triangular weight.
Both reconstructions are zero at the jump x=0. That is the midpoint of the one-sided limits, not the original choice of value at a single discontinuity. Fejér means converge uniformly for continuous periodic functions; a continuous finite trigonometric polynomial cannot converge uniformly to this discontinuous square wave. Away from jumps the reconstruction improves while the transition region narrows.
Interactive laboratory · explore the worked model
Fejér Means: Suppress Overshoot by Averaging Fourier Partial Sums — explore the model
An ideal periodic square wave takes values ±1. Compare its ordinary Fourier cutoff through harmonic N with the average of partial sums S₀ through Sₙ. This changes harmonic weights, not the underlying square wave.
Comparison: Low harmonic cutoff
- Ordinary sum at observation
- Fejér mean at observation
Change one parameter at a time and compare the complete curves.
Static example shown. Enable JavaScript to use the controls.
Normalized amplitude
Phase / π
┄ Ordinary partial sum━ Fejér mean
Both approximations take the midpoint at a jump. Fejér averaging rounds the transition more strongly.
Calculated result
- Ordinary sum at observation
- Fejér mean at observation
Whole-model comparison
- Ordinary whole-period RMS error
- Fejér whole-period RMS error
Order is not time
Changing N changes the approximation. No physical evolution, generator bandwidth or causal filter is being simulated.
Range versus RMS
Positive-kernel averaging preserves the target range, while the ordinary orthogonal projection minimizes squared error in this same Fourier subspace. Removing overshoot has a cost.
Keep the Error Criterion Visible
The Fourier decomposition lesson uses Parseval’s identity to distinguish RMS error from peak excursions. For this unit square wave, an approximation with retained sine coefficients cₙ has mean-square error
The ordinary cutoff chooses cₙ=bₙ and minimizes this error within the retained subspace. Fejér weights reduce coefficient magnitudes, so they cannot improve that same least-squares optimum. A range-preserving reconstruction and a minimum-RMS reconstruction solve different problems.
Applications and checks
Choose summation weights according to the quantity that matters: peak bounds, smoothness or whole-period error. Removing overshoot may be useful when a reconstructed command must respect a range, but it also changes amplitudes and transition width. The mathematical range guarantee applies to this exact positive-kernel average, not to arbitrary windows or a downstream dynamic system.
Independent averaging of partial sums and numerical convolution with the positive kernel verify the lab at twenty cases. Static controls expose the approximation tradeoff; N is not physical time, so an animation would be misleading. Sampling, aliasing, noise and causal implementation remain separate engineering questions.
Back to contents