A14 · Lesson 41 · Pointwise convergence of Fourier series
The Dirichlet kernel, what happens at a jump, and why the overshoot never goes away
Lesson 40 showed that a Fourier series converges in the mean-square sense, the energy of the error going to zero. An engineer looking at a reconstructed square wave on a scope sees something more specific: the series settles to the right value at most points, hits the midpoint exactly at each jump, and overshoots by about 9% on either side of the jump no matter how many terms are kept. All three facts come from one function, the Dirichlet kernel, that every partial sum convolves the signal with.
- The curve is the partial sum of the Fourier series of a ±1 square wave, using harmonics up to . The dashed line is the limit of its overshoot, .
- More terms squeeze the ripple closer to the jump, but its peak never drops below that line.
Predict
The Fourier series of a ±1 square wave is evaluated exactly at a jump, where the wave switches from −1 to +1. What value does the series converge to there?
- At every jump of a piecewise smooth function, the Fourier series converges to the midpoint of the jump, . For the square wave every partial sum is a sum of sines, which are all zero at the jump, so it's 0 exactly, not just in the limit.
Name it
Partial sums as convolution
With , the partial sum can be rewritten as
The Dirichlet kernel has height at , area , and oscillating side lobes that take negative values. That last fact causes all the trouble.
Dirichlet's theorem
If is piecewise smooth (finitely many jumps, with one-sided derivatives everywhere), then at every
so to where is continuous and to the midpoint at a jump. The proof splits the integral near , where the kernel's peak picks out the two one-sided values, and away from it, where the Riemann-Lebesgue lemma, that as for integrable , kills the rest.
The Gibbs phenomenon
Near a jump of size , overshoots by about on each side, at a distance of about from the jump. The overshoot narrows as grows but its height approaches
So convergence near a jump isn't uniform: the maximum error never falls below 9% of the jump. Lesson 42's Fejér means, built from a kernel that's never negative, remove the overshoot.
Continuity isn't enough
There are continuous functions whose Fourier series diverge at a point. Smoothness, not mere continuity, is what Dirichlet's theorem needs; the more derivatives has, the faster and the faster converges.
Worked example
Show that the Dirichlet kernel has height at and area over one period.
Show the solution
- Height at t = 0. Every term is 1 there, and there are of them:
- Integrate term by term. Over , for and for , so for every
- As N grows. The kernel gets taller and narrower with the same area, but it never becomes positive everywhere: its side lobes swing negative by an amount that doesn't shrink relative to the peak.
Answer , and its area over one period is for every N.
Worked example
A ±1 square wave's partial sums overshoot near the jump. What peak do they approach, and how far from the jump does it sit for ?
Show the solution
- Size of the overshoot. The jump is , so the overshoot approaches
- The peak. That's a peak of 1.179, which is .
- Where it sits. About from the jump: or 1% of a period.
- More terms. A thousand terms move it ten times closer but leave it just as tall, which is why a band-limited square wave on a scope always shows those spikes.
Answer the peak approaches 1.179, and for it sits about 0.063 radians from the jump.
Worked example
The sawtooth on , repeated, has . What does the series give at , and what is the peak of its partial sums near there for large ?
Show the solution
- The value at π. Every , so the series gives 0: the midpoint of the jump from down to .
- The overshoot. The jump is , so the partial sums overshoot to about just inside the jump.
- Compare. That's again about 9% of the jump above the function's largest value, .
Answer the series gives 0 at , and the partial sums peak near 3.704 just inside the jump.
Check
A piecewise smooth function jumps from 0 to 3 at a point. What does its Fourier series converge to there?
Check
A signal jumps by 2 at a point, its value just after the jump being 1. Approximately what peak do its Fourier partial sums approach just after the jump, for large ?
Check
What is the height of the Dirichlet kernel at ?
Check
For the ±1 square wave's partial sum , evaluate it on x = np.linspace(1e-4, 4 / N, 4000) for N = 200 and set peak to its largest value and where to the where that happens. Set ratio to where * N, which should be close to , and gibbs to , with by Simpson's rule on 2000 intervals.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Where is the first zero of the Dirichlet kernel to the right of ?
Check
Why do Fourier partial sums overshoot a jump while Fejér means (averages of the partial sums) don't?
Explain why
A band-limited reconstruction of a square wave always shows spikes near each edge, and adding bandwidth makes them narrower but not shorter. Explain why, using the kernel.
Keeping harmonics up to is the same as convolving the square wave with the Dirichlet kernel , a peak with oscillating side lobes, some negative. Near an edge the convolution integrates the kernel against a step, so its value is the area of the kernel up to some point, a running integral that overshoots its final value because the first negative lobe comes after the first positive one. Making larger squeezes the kernel horizontally while keeping its shape, so the overshoot moves closer to the edge but its height, set by the kernel's shape, stays at about 9% of the jump. Only changing the weights, as Fejér's or another taper does, removes it.
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.