A1442 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 1−kN+1.
  • 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?

Name it

Partial sums as convolutions

The N-th Fourier partial sum is SNf=f*DN with the Dirichlet kernel DN(x)=∑|k|≤Nejkx=sin⁡(N+12)xsin⁡x2. It has height 2N+1 at 0 and oscillating side lobes of both signs. Its absolute integral, the Lebesgue constant LN=12π∫|DN|, grows like 4π2ln⁡N: that unbounded growth is why partial sums can misbehave.

Fejér means

Average the first N partial sums: σN=S0+⋯+SN−1N. Then σNf=f*FN with the Fejér kernel

FN(x)=1N(sin⁡(Nx/2)sin⁡(x/2))2≥0,

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, σN multiplies harmonic k by 1−|k|N: a triangular taper.

Fejér's theorem: for continuous periodic f, σNf→f uniformly.

Approximate identities

A family of kernels Kn≥0 with ∫Kn=1 whose mass concentrates near 0 (for each δ, ∫|x|>δKn→0) gives Kn*f→f 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
  1. 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.
  2. The Fejér mean. σ50 weights harmonic k by 1−k50. It peaks at 0.987 and never exceeds 1.
  3. The price. At the jump itself, the Fejér mean rises from −1 to 1 over a width of about 2πN, roughly twice as slowly as the partial sum.
  4. 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 L1, L10 and L100.

Show the solution
  1. Integrate numerically. Integrating |DN| gives 1.436, 2.223 and 3.139.
  2. Compare with the growth law. They grow like 4π2ln⁡N+1.27 which gives 2.20 and 3.14 for N = 10 and 100.
  3. What LN measures. LN is the operator norm of SN on continuous functions with the sup norm (lesson 38): a partial sum can be up to LN times larger than the function.
  4. The consequence. Since LN→∞, the uniform boundedness principle implies that some continuous function has a Fourier series that diverges at a point.
  5. Fejér's operator. It has norm exactly 1, because its kernel is positive.

Answer L1=1.436, L10=2.223 and L100=3.139.

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
  1. The weights. With N = 5, harmonic k gets 1−k5: 1, 0.8, 0.6, 0.4, 0.2 for k = 0 to 4, and harmonics from 5 on get 0.
  2. 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.
  3. 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 1x2 instead of 1x.

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 σ10 multiplies harmonic k = 3 by what factor?

Check

The kernels at x = 0, for N = 20.

(a)

What is DN(0)?

(b)

What is FN(0)?

Check

Estimate the Lebesgue constant LN for N = 100.

Check

f(x) = cos(2x). What is σ5f at x = 0.5?

Check

Convolve f(x)=x2 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 gs of standard deviation s.

Step 1

What is (gs*x2)(x)?

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°.

Check

Compute the Lebesgue constant L10=1π∫0π|sin⁡10.5xsin⁡(x/2)|dx with a Riemann sum on 400 001 points of [10−6,π]. 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?

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.