Search the atlas

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 SmS_m retain all Fourier harmonics with ∣n∣≤m|n|\le m. Define

σN=1N+1∑m=0NSm.\sigma_N=\frac1{N+1}\sum_{m=0}^{N}S_m.

A coefficient of index n appears in N+1−|n| of these sums. Thus its weight is 1−∣n∣/(N+1)1-|n|/(N+1) 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,

σN(x)=12π∫−ππf(x−u)FN(u) du,\sigma_N(x)=\frac1{2\pi}\int_{-\pi}^{\pi}f(x-u)F_N(u)\,du, FN(u)=sin⁡2((N+1)u/2)(N+1)sin⁡2(u/2).F_N(u)=\frac{\sin^2((N+1)u/2)}{(N+1)\sin^2(u/2)}.

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 f(x)=sign⁡(sin⁡x)f(x)=\operatorname{sign}(\sin x) away from its jumps, nonzero sine coefficients are bn=4/(πn)b_n=4/(\pi n) 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.

Load a comparison

Comparison: Low harmonic cutoff

Adjust the model
Ordinary sum at observation
1.13861
Fejér mean at observation
0.67276

Change one parameter at a time and compare the complete curves.

Static example shown. Enable JavaScript to use the controls.

Positive averaging removes excursions beyond the target range

Normalized amplitude

-1.4-0.700.71.4-1-0.500.51

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
1.13861
Fejér mean at observation
0.67276

Whole-model comparison

Ordinary whole-period RMS error
0.22450
Fejér whole-period RMS error
0.31790
σN=(S0+⋯+SN)/(N+1)\sigma_N=(S_0+\cdots+S_N)/(N+1)σN=∑∣n∣≤N(1−∣n∣/(N+1))f^neinx\sigma_N=\sum_{|n|\le N}(1-|n|/(N+1))\widehat f_n e^{inx}FN(u)=sin⁡2((N+1)u/2)(N+1)sin⁡2(u/2)≥0F_N(u)=\frac{\sin^2((N+1)u/2)}{(N+1)\sin^2(u/2)}\ge0

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

E2=1−∑bncn+12∑cn2.E^2=1-\sum b_nc_n+\frac12\sum c_n^2.

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