A sawtooth wave can be decomposed into the superposition of all sine harmonics (both odd and even, with alternating signs): \(f(t) = \frac{2}{\pi}\left(\sin\omega t - \frac{1}{2}\sin 2\omega t + \frac{1}{3}\sin 3\omega t - \frac{1}{4}\sin 4\omega t + \cdots\right)\)
The charts below show the fundamental wave, and the process of progressively adding 2nd, 3rd, 5th, 10th, 20th, and 50th harmonics to approximate a sawtooth wave.
Fourier series of a periodic sawtooth wave (amplitude \(\pm1\), angular frequency \(\omega=2\pi f\)):
• Fundamental component: \(\frac{2}{\pi}\sin(\omega t) \approx 0.637\sin(\omega t)\)
• 2nd harmonic: \(-\frac{2}{2\pi}\sin(2\omega t) \approx -0.318\sin(2\omega t)\)
• 3rd harmonic: \(\frac{2}{3\pi}\sin(3\omega t) \approx 0.212\sin(3\omega t)\)
• 4th harmonic: \(-\frac{2}{4\pi}\sin(4\omega t) \approx -0.159\sin(4\omega t)\)
• Coefficients decay as \(\frac{2}{n\pi}\), with alternating signs (+, -, +, -...).
Unlike the square wave, the sawtooth wave contains all harmonics (odd + even), with alternating coefficient signs. As harmonics increase, the synthesized waveform approaches the ideal sawtooth wave, but Gibbs phenomenon (~9% overshoot) appears at discontinuities.
Ideal sawtooth wave, linear rise, instantaneous jump back to -1
\(f_1(t)=\frac{2}{\pi}\sin(\omega t)\), a single sine wave
Waveform begins to tilt, showing asymmetric outline
Sawtooth outline more pronounced, rising edge approaches straight line
Falling edge steepens, sawtooth shape gradually becomes clear
Rising edge nearly straight, falling edge steep, Gibbs overshoot appears
Waveform edges steeper, top ripple refined, approaching ideal sawtooth wave
Higher-order harmonics closely reproduce the waveform; only fine ripples and Gibbs overshoot remain