Skip to content

Fourier series of switched waveforms

  • Split a periodic waveform into its dc component and its harmonics.
  • Compute the harmonic amplitudes and the rms value of a rectangular pulse train, the waveform at a converter’s switch node.
  • Explain why a low-pass filter recovers the dc component of the switch-node voltage.

A periodic signal is the sum of its average value, the dc component, and sinusoids at integer multiples of its fundamental frequency, the harmonics [Alexander & Sadiku 2017, Ch. 17]. The amplitudes of the harmonics, plotted against frequency, form the signal’s amplitude spectrum [Alexander & Sadiku 2017, Ch. 17].

The switch node of a buck converter carries a pulse train: the input voltage for the fraction DD of every period and zero for the rest [Erickson & Maksimović 2020, Ch. 2]. Its dc component is its average (average switch-node voltage), and its harmonics have the amplitudes

ah=2Vpk∣sin⁡(πhD)∣πha_h = \frac{2 V_\mathrm{pk} \left|{\sin{\left(\pi h D \right)}}\right|}{\pi h}
aha_h
amplitude of harmonic h
DD
duty ratio
VpkV_\mathrm{pk}
pulse amplitude
hh
harmonic order
Amplitude of the h-th harmonic of a rectangular pulse train✓ verified by 8 tests
Assumptions, convention and source
Assumptions
  • ideal rectangular pulse train between 0 and V_pk with duty ratio D
  • periodic steady state
Notes
the dc component is DVpkD V_\mathrm{pk}; the harmonic amplitudes fall as 1/h1/h and vanish where hDh D is an integer
Source
Alexander & Sadiku 2017, Ch. 17 (The Fourier Series)
Derivation
step-by-step sympy derivation
Equation id
fourier.pulse.harm · equations.yaml entry

The amplitudes fall in inverse proportion to the harmonic order, and a harmonic vanishes whenever hDh D is an integer: at D=0.5D = 0.5 all the even harmonics are missing.

The rms value is the square root of the mean of the square over one period [Alexander & Sadiku 2017, Ch. 11]. For the pulse train only the pulse contributes to that mean:

Vrms=VpkDV_\mathrm{rms} = V_\mathrm{pk} \sqrt{D}
VrmsV_\mathrm{rms}
rms voltage
DD
duty ratio
VpkV_\mathrm{pk}
pulse amplitude
RMS value of a rectangular pulse train✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • ideal rectangular pulse train between 0 and V_pk with duty ratio D
Source
Alexander & Sadiku 2017, Ch. 11 (AC Power Analysis)
Derivation
step-by-step sympy derivation
Equation id
fourier.pulse.rms · equations.yaml entry

The loss in a resistance depends on the rms value of its current, not on the average (conduction loss), and for a narrow pulse the rms value is much larger than the average.

A buck converter’s L-C filter passes the dc component of the switch-node voltage and attenuates its harmonics, the lowest of which lies at the switching frequency. What remains at the output is the average, DVgD V_g, plus a small ripple [Erickson & Maksimović 2020, Ch. 2].

An example pulse train, as found at the switch node of a buck converter:

Rectangular pulse-train example
SymbolValueHow it is obtained
VpkV_\mathrm{pk} pulse amplitude12 Vgiven
DD duty ratio0.25given
hh harmonic order1given
⟨vs⟩\langle v_s \rangle average switch-node voltage3 VDC component of the switch-node voltage (buck)
aha_h amplitude of harmonic h5.4 VAmplitude of the h-th harmonic of a rectangular pulse train
VrmsV_\mathrm{rms} rms voltage6 VRMS value of a rectangular pulse train

The pulse train’s dc component is 3 V, and its fundamental has an amplitude of 5.4 V, larger than the dc component itself at this duty ratio. Its rms value is 6 V.

▶ Open in the equation explorer: Amplitude of the h-th harmonic of a rectangular pulse train
Preset from the example pulse-train

Sweep DD: the fundamental is largest at D=0.5D = 0.5. Then set hh to 2 and sweep again: the second harmonic vanishes at D=0.5D = 0.5 and is largest at 0.25 and 0.75.

On a buck evaluation board, measure the switch-node voltage with a differential probe, or a probe with a short ground connection, and use the oscilloscope’s FFT function. Read the dc value and the amplitudes of the first few harmonics, and compare them with the equations at the measured duty ratio and input voltage. Check whether the oscilloscope displays each harmonic’s peak amplitude or its rms value, which is smaller by a factor of 2\sqrt{2}.

  • The harmonics do not stop at the switching frequency. Those of an ideal pulse train fall only as 1/h1/h, so they extend far above the switching frequency; this matters for filters, interference and sampling.
  • Average and rms are different. Two currents with the same average can have very different rms values, and resistive losses follow the rms value [Alexander & Sadiku 2017, Ch. 11].
  • The rms value of a sinusoid is its amplitude divided by 2\sqrt{2}; that of a pulse train is not. Use the rms value of the actual waveform [Alexander & Sadiku 2017, Ch. 11].
  • Lecture notes 6.003 Lecture Notes — D. Freeman, MIT OpenCourseWare · retrieved 2026-09-23
    Lecture slides: the Laplace transform (lecture 6), frequency response and Bode plots (lectures 9 and 11), Fourier series (lecture 15).
  • Course 6.003 Signals and Systems (Fall 2011) — D. Freeman, MIT OpenCourseWare · retrieved 2026-09-23
    Signals and systems with video lectures: Laplace transform, frequency response, Bode plots and Fourier series.
  1. A pulse train switches between 00 and 10 V10\,\mathrm{V} with D=0.3D = 0.3. What is its dc component?

    1. 0.3 V0.3\,\mathrm{V}
    2. 3 V3\,\mathrm{V}
    3. 5 V5\,\mathrm{V}
    4. 7 V7\,\mathrm{V}
    Answer and explanation

    Correct answer: B The dc component is the average: the pulse height times the fraction of the period it lasts.

  2. What is the rms value of a pulse train between 00 and 10 V10\,\mathrm{V} at D=0.25D = 0.25?

    1. 2.5 V2.5\,\mathrm{V}
    2. 5 V5\,\mathrm{V}
    3. 7.07 V7.07\,\mathrm{V}
    4. 10 V10\,\mathrm{V}
    Answer and explanation

    Correct answer: B The mean square is 0.25×100 V20.25 \times 100\,\mathrm{V^2}, and its square root is 5 V5\,\mathrm{V}, twice the average.

  3. At D=0.5D = 0.5, which harmonics of a rectangular pulse train are missing?

    1. None
    2. The odd harmonics
    3. The even harmonics
    4. All harmonics above the third
    Answer and explanation

    Correct answer: C A harmonic vanishes where hDh D is an integer; at D=0.5D = 0.5 that is every even hh.

  4. Apart from the zeros, how do the harmonic amplitudes of a rectangular pulse train fall with the harmonic order hh?

    1. As 1/h1/h
    2. As 1/h21/h^2
    3. Exponentially
    4. They do not fall
    Answer and explanation

    Correct answer: A The amplitude is 2Vpk∣sin⁡(πhD)∣/(πh)2 V_\mathrm{pk} |\sin(\pi h D)|/(\pi h): the envelope falls as 1/h1/h.

  5. What is the amplitude of the fundamental of a pulse train between 00 and 12 V12\,\mathrm{V} at D=0.5D = 0.5?

    1. 6 V6\,\mathrm{V}
    2. 7.64 V7.64\,\mathrm{V}
    3. 12 V12\,\mathrm{V}
    4. 3.82 V3.82\,\mathrm{V}
    Answer and explanation

    Correct answer: B With h=1h = 1 and D=0.5D = 0.5 the sine term is 1, so the amplitude is 2×12/π2 \times 12/\pi.

  6. Why does a buck converter's output equal the average of its switch-node voltage?

    1. The L-C filter passes the dc component and strongly attenuates the harmonics, the lowest of which is at the switching frequency
    2. The switch-node voltage has no harmonics
    3. The diode removes the harmonics
    4. The load resistor averages the voltage
    Answer and explanation

    Correct answer: A The output keeps the dc component and a small residue of the harmonics: the ripple.

The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.