A square wave has jumps, yet its Fourier series is built from perfectly smooth sines. Something has to give at the jumps. The series makes a fair compromise there and picks the midpoint of the jump, but near the jump the partial sums overshoot by a fixed amount no matter how many terms you take. Knowing when the series converges, and how, tells you how far to trust a truncated Fourier series.
Key terms
Piecewise smooth periodic functions
Definition A function with period is piecewise (piecewise smooth) if there is a partition such that on each open piece the function is continuously differentiable, and and restricted to that piece extend to continuous functions on the closed interval . The values of at the finitely many partition points do not matter.
In plain words Cut one period into finitely many pieces. On each piece the graph is a smooth curve that stays smooth right up to both ends, with no infinite slopes and no wild oscillation.
Example The square wave and the sawtooth on , repeated with period , are piecewise . The function on is not, because its derivative becomes unbounded as .
One-sided limits of the function and its derivative
Definition At each point write
and similarly and for the one-sided limits of . For a piecewise function all four limits exist and are finite at every . The function is continuous at exactly when , and at a jump the jump size is .
In plain words Approach the point from the right and from the left, and record where the function and its slope are heading. For a piecewise smooth function both sides always give finite answers.
Example For the sawtooth at , the left limit is . To the right of the graph has restarted, for small , so . The jump size is . The derivative is on both sides, so .
Convergence to the midpoint
Definition Let be -periodic and piecewise . Then for every real its Fourier series converges, and
In particular the series converges to at every point where is continuous.
In plain words Where the graph is unbroken the series gives the right value. At a jump it gives the average of the two sides, whatever value happens to have there.
Example The sawtooth has Fourier series
At every term is , and indeed the midpoint is . At , where is continuous, the series gives
Periodic extension and the endpoints
Definition A function given only on one interval of length , say on , is turned into a -periodic function by its periodic extension, for and every integer . The Fourier series of is the Fourier series of . At it converges, for piecewise data, to
If , the extension has a jump at even when is smooth on the open interval.
In plain words The series always treats your function as repeating. If the right end does not meet the left end, the repetition creates a jump there, and the series picks its midpoint.
Example For on the ends match, since , so the extension is continuous and the series equals at . Put into the Fourier series of and use . This gives
Gibbs phenomenon
Definition Let be piecewise with a jump of size at . Then the partial sums overshoot the jump near , and the overshoot does not shrink as . The largest value of just to the right of an upward jump tends to
and there is a matching undershoot on the other side. The overshoot moves closer to as grows, but its height stays near percent of the jump.
In plain words Next to a jump the partial sums always poke out beyond the function by about percent of the jump. More terms make the spike narrower, not shorter.
Example The square wave jumps from to at , so . The peak of just right of sits at for odd .
| Peak of | |
|---|---|
| limit |
The overshoot stays near .
Pointwise versus uniform behavior
Definition Let be -periodic and piecewise .
- If is continuous on all of , so that no jumps occur even at after periodic extension, then its Fourier series converges to absolutely and uniformly on .
- If has a jump at , the convergence is pointwise but not uniform on any interval containing . The partial sums are continuous, and a uniform limit of continuous functions would be continuous.
In plain words A continuous, piecewise smooth periodic function is matched everywhere at once. A function with a jump is matched only point by point, and the Gibbs overshoot keeps the worst error from shrinking.
Example For on the extension is continuous, and the coefficients satisfy . By the Weierstrass M-test the series converges uniformly. For the square wave the worst error stays above for every large , because of the overshoot, so the convergence is not uniform.
Check yourself
- To what value does the Fourier series of the square wave converge at ?
Show the answer
There the wave jumps from to , so the series converges to the midpoint . Every term is indeed .
- Let on , extended with period . What is the sum of its Fourier series at ?
Show the answer
The extension jumps at from to , so the sum is the midpoint
- Evaluate the Fourier series of at to find .
Show the answer
The extension is continuous at , so the series equals there and
Hence