is the infinite series cut off after its first three terms1. It is a function for watching how adding a few smooth sine waves brings out an angular, discontinuous waveform.
The domain is all real numbers. Each term is odd, so the sum is odd and has point symmetry about the origin. The period is , and at and every term vanishes, so .
The limit of the full sum is the following line on .
Across the value jumps from to , and that repeats every . At the jump itself, however, the series converges to , the average of the two sides. Here is the fact that summing continuous functions can converge pointwise to something discontinuous.
With only three terms the approach to the line is still crude. Even so, the skeleton of a sawtooth is already visible: the value falls broadly as runs from to . Adding terms hugs the line more closely and steepens the rise at the jump.
A partial sum swells past the limit near a jump. With these three terms the largest excess appears at .
| Quantity | Value |
|---|---|
| Maximum of the three-term sum at | |
| The limit at the same point | |
| Relative overshoot | about |
Adding terms does not remove that swelling; it narrows in width, its height staying at about of the jump. This is the Gibbs phenomenon, the sign that a Fourier series does not converge uniformly2. It is also the cause of the ringing seen around sharp changes in digital signal processing.
The derivative is . Extended to infinitely many terms, does not converge in the ordinary sense and has meaning only as a distribution containing a Dirac delta. That corresponds to the fact that differentiating a sawtooth gives a constant slope together with an impulse at each jump.
A Fourier series is the tool for writing any periodic function as a superposition of sine waves.
The first step is exactly this question: what happens if one stops after finitely many terms.