A14 · Lesson 42 · Fejér summation
Averaging partial sums to tame the Gibbs overshoot
Lesson 40 showed that the partial sums of a Fourier series overshoot near a jump by about 9%, however many terms you keep, and there are even continuous functions whose Fourier series diverge at a point. Fejér found a simple cure: average the first N partial sums. The averages converge uniformly to every continuous periodic function, and they never overshoot. In signal processing this is the triangular (Bartlett) window: tapering the high coefficients instead of chopping them off. The idea behind it, convolving with a positive kernel that concentrates at a point, is called an approximate identity.
- The square wave is ±1. The first curve is its Fourier partial sum through harmonic N; the second is the Fejér mean, which multiplies harmonic k by .
- The partial sum overshoots to about 1.18 (9% of the jump of 2) next to the jump, however large N gets. The Fejér mean stays below 1.
- The price: near the jump the Fejér mean rises more slowly. Tapering trades sharpness for freedom from ringing, the same trade as windowing in spectral analysis.
Predict
The Fejér mean of a function that stays between −1 and 1: can it ever exceed 1?
No. The Fejér mean is the convolution of f with the Fejér kernel, which is nonnegative and integrates to 1, so it's a weighted average of f's values and stays within f's range. The Dirichlet kernel behind the plain partial sums has negative lobes, which is what allows the overshoot.
Name it
Partial sums as convolutions
The N-th Fourier partial sum is with the Dirichlet kernel . It has height at 0 and oscillating side lobes of both signs. Its absolute integral, the Lebesgue constant , grows like : that unbounded growth is why partial sums can misbehave.
Fejér means
Average the first N partial sums: . Then with the Fejér kernel
which integrates to 1 (over a period, divided by 2π), has height N at 0, and concentrates near 0 as N grows. In terms of coefficients, multiplies harmonic k by : a triangular taper.
Fejér's theorem: for continuous periodic f, uniformly.
Approximate identities
A family of kernels with whose mass concentrates near 0 (for each δ, ) gives at every point of continuity, uniformly for uniformly continuous f. Fejér kernels, Gaussians of shrinking width (the heat kernel), and the Poisson kernel are all approximate identities. They're how smooth functions approximate rough ones, and how a sampling or measurement process blurs a signal.
Worked example
Compare the largest values of the partial sum and the Fejér mean of the ±1 square wave, using harmonics up to 49 and 50 respectively.
Show the solution
- The partial sum. Through harmonic 49 it peaks at 1.179 just right of the jump: the Gibbs overshoot, 9% of the jump of 2.
- The Fejér mean. weights harmonic k by . It peaks at 0.987 and never exceeds 1.
- The price. At the jump itself, the Fejér mean rises from −1 to 1 over a width of about , roughly twice as slowly as the partial sum.
- In spectrum analysis. The same taper suppresses side lobes at the cost of a wider main lobe.
Answer the partial sum peaks at 1.179, and the Fejér mean at 0.987.
Worked example
Compute the Lebesgue constants , and .
Show the solution
- Integrate numerically. Integrating gives 1.436, 2.223 and 3.139.
- Compare with the growth law. They grow like which gives 2.20 and 3.14 for N = 10 and 100.
- What measures. is the operator norm of on continuous functions with the sup norm (lesson 38): a partial sum can be up to times larger than the function.
- The consequence. Since , the uniform boundedness principle implies that some continuous function has a Fourier series that diverges at a point.
- Fejér's operator. It has norm exactly 1, because its kernel is positive.
Answer , and .
Worked example
A signal's spectrum is estimated from its first five harmonics. What weights does the Fejér (triangular) taper apply?
Show the solution
- The weights. With N = 5, harmonic k gets : 1, 0.8, 0.6, 0.4, 0.2 for k = 0 to 4, and harmonics from 5 on get 0.
- Compare with the abrupt cutoff. Against the abrupt cutoff (all weights 1, then 0), the taper reduces the ripple near sharp features in the reconstruction.
- Its name and transform. It's the Bartlett window of spectral analysis, and the Fejér kernel is its transform: positive everywhere, with side lobes falling as instead of .
Answer the weights are 1, 0.8, 0.6, 0.4 and 0.2 for harmonics 0 to 4, and 0 from harmonic 5 on.
Check
The Fejér mean multiplies harmonic k = 3 by what factor?
Check
The kernels at x = 0, for N = 20.
(a)
What is ?
(b)
What is ?
Check
Estimate the Lebesgue constant for N = 100.
Check
f(x) = cos(2x). What is at x = 0.5?
Check
Convolve with a Gaussian of standard deviation 0.2. What is the result at x = 1?
Check
Why does the Fejér mean never overshoot the range of the function?
Check
Convolve with a Gaussian approximate identity of standard deviation s.
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
And ? (A Gaussian's fourth moment is .)
Check
Compute the Lebesgue constant with a Riemann sum on 400 001 points of . Set L10.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does averaging the partial sums of a Fourier series fix convergence?
Each partial sum convolves the function with the Dirichlet kernel, which has large negative side lobes; their total absolute area grows like ln N, so the partial sums can amplify features and overshoot near jumps. Averaging the first N partial sums averages their kernels, and the oscillating lobes largely cancel, leaving the Fejér kernel, which is the square of a sine ratio and therefore never negative. A nonnegative kernel that integrates to 1 and concentrates near 0 produces local weighted averages of the function, which converge to it wherever it's continuous and can't stray outside its range.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.