A trapezoidal wave can be decomposed into the superposition of odd sine harmonics, with spectral decay rate between that of the square wave and triangle wave.
Trapezoidal wave parameters: rising/falling edges each occupy 20% of the half-period (\(0.1\,\text{s}\)), flat top occupies 60% (\(0.3\,\text{s}\)), amplitude \(\pm1\).
The charts below show the fundamental wave, and the process of progressively adding 3rd, 5th, 7th, 11th, 33rd, and 55th harmonics to approximate a trapezoidal wave.
Fourier series of a periodic trapezoidal wave (amplitude \(\pm1\), rise time \(\tau_r\), flat top time \(\tau_p\), fall time \(\tau_f\)) contains only odd sine terms:
Coefficients \(b_n\) decay as \(n^2\) (when rise/fall edges are non-zero), converging faster than the square wave. This demo uses numerical integration to precisely compute each harmonic coefficient.
Parameters: period \(T=1\,\text{s}\), rising edge length \(0.1\,\text{s}\), flat top length \(0.3\,\text{s}\), falling edge length \(0.1\,\text{s}\).
Rise/fall edges 0.1s each, flat top 0.3s, symmetric trapezoid
\(f_1(t)=b_1\sin(\omega t)\), dominant frequency component
Flat top outline begins to appear, rise/fall segments curve
Flat top ripples decrease, rise/fall edges steepen
Further approximation, flatter flat top region
Flat top ripples essentially disappear, rising edge straighter
The trapezoidal wave is nearly reproduced; higher-order terms contribute very little
With many higher-order terms, the waveform nearly coincides with the ideal trapezoidal wave