A triangle wave can be decomposed into the superposition of odd sine harmonics (coefficients decay as \(n^2\)):
\(f(t) = \frac{8}{\pi^2}\left(\sin\omega t - \frac{1}{9}\sin 3\omega t + \frac{1}{25}\sin 5\omega t - \frac{1}{49}\sin 7\omega t + \cdots\right)\)
The charts below show the fundamental wave, and the process of progressively adding 3rd, 5th, 7th, 11th, 33rd, and 55th harmonics to approximate a triangle wave.
Fourier series of a periodic triangle wave (amplitude \(\pm1\), peak-to-peak 2, angular frequency \(\omega=2\pi f\)):
• Fundamental component: \(\frac{8}{\pi^2}\sin(\omega t)\) ≈ \(0.8106\sin(\omega t)\)
• 3rd harmonic: \(-\frac{8}{9\pi^2}\sin(3\omega t)\) ≈ \(-0.09007\sin(3\omega t)\)
• 5th harmonic: \(\frac{8}{25\pi^2}\sin(5\omega t)\) ≈ \(0.03242\sin(5\omega t)\)
• 7th harmonic: \(-\frac{8}{49\pi^2}\sin(7\omega t)\) ≈ \(-0.01654\sin(7\omega t)\)
As harmonics increase, the synthesized waveform approaches the ideal triangle wave. Since coefficients decay as \(1/n^2\), convergence is faster than for the square wave, and the Gibbs phenomenon is less pronounced.
Ideal triangle wave, symmetric linear rise/fall, peak-to-peak 2V
\(f_1(t)=\frac{8}{\pi^2}\sin(\omega t)\), a single sine wave
Top begins to flatten, rise/fall segments curve
Closer to triangle wave, straight segments approach linearity
Further approximation, flat top, improved linearity of rising edge
Rising edge straighter, top ripple extremely fine
The triangle wave is nearly reproduced; higher-order terms contribute very little
With many higher-order terms, the waveform nearly coincides with the ideal triangle wave