Fourier Analysis of Common Switch Waveform

Rectangular Waveform with Arbitrary Duty Cycle

Before deriving the Fourier series, consider a simple periodic rectangular waveform. This waveform is one of the most important examples in power electronics because many switching waveforms can be approximated or directly represented by this form.

Let the waveform have:

  • Amplitude \(V\),
  • Switching period \(T_s\),
  • Duty cycle \(D\), where \(0\le D\le1\).
Unipolar Switch Waveform - (A unipolar waveform switches between zero and a positive voltage (0 and V), rather than alternating between positive and negative voltage levels.)
Figure 1. Unipolar Switch Waveform - (A unipolar waveform switches between zero and a positive voltage (0 and V), rather than alternating between positive and negative voltage levels.)

The duty cycle is defined as the fraction of each switching period during which the waveform remains at \(V\):

D=TonTsD=\frac{T_{\mathrm{on}}}{T_s}

Therefore, the ON-time is

Ton=DTsT_{\mathrm{on}}=DT_s

and the remaining OFF-time is

Toff=(1−D)TsT_{\mathrm{off}}=(1-D)T_s

We define the rectangular waveform over one period as follows:

v(t)={V,0≤t<DTs,0,DTs≤t<Tsv(t)= \begin{cases} V, & 0\leq t<DT_s,\\ 0, & DT_s\leq t<T_s \end{cases}

and the waveform repeats every switching period:

v(t+Ts)=v(t)v(t+T_s)=v(t)

Thus, the waveform has a value of \(V\) for a fraction \(D\) of every period and a value of zero for the remaining fraction \(1-D\).

Fundamental Period and Frequency

The fundamental period of the waveform is \( T_S \). Therefore, the fundamental frequency is \(f_s=1/T_s\), and the corresponding fundamental angular frequency is \(\omega_s=2\pi f_s=2\pi/T_s\).

The Fourier-series components occur at integer multiples of the fundamental frequency. Thus, the angular frequencies are \(\omega_s,2\omega_s,3\omega_s,\ldots\), or equivalently, the frequencies are \(f_s,2f_s,3f_s,\ldots\).

We can now derive the Fourier series from the general Fourier-series equations while keeping the duty cycle \(D\) arbitrary throughout the derivation.

Note that the rectangular waveform is periodic and discontinuous (piecewise-constant). During each switching period, the voltage remains at \(V\) for the ON-time \(DT_s\) and at zero for the remaining time \( (1-D)T_S \).

At \(t=DT_s\), the voltage changes instantaneously from \(V\) to zero. At the beginning of the next switching period, it returns to \(V\).

Thus, although the waveform is continuous between switching instants, it is discontinuous at the switching transitions.

Fourier Series Derivation

For the rectangular waveform, start from the general Fourier series:

f(t)=a02+∑n=1∞[ancos⁡(nωst)+bnsin⁡(nωst)]f(t)\equal\frac{a_0}{2} +\sum_{n=1}^{\infty} \left[ a_n\cos(n\omega_s t) + b_n\sin(n\omega_s t) \right]

with

ωs=2πTs\omega_s=\frac{2\pi}{T_s}

The Fourier coefficients are

a0=2T∫t0t0+Tf(t)dta_0= \frac{2}{T} \int_{t_0}^{t_0+T} f(t)\,dt
an=2T∫t0t0+Tf(t)cos⁡(nω0t)dt,n=1,2,3,…a_n= \frac{2}{T} \int_{t_0}^{t_0+T} f(t)\cos(n\omega_0t)\,dt, \qquad n=1,2,3,\ldots
bn=2T∫t0t0+Tf(t)sin⁡(nω0t)dt,n=1,2,3,…b_n= \frac{2}{T} \int_{t_0}^{t_0+T} f(t)\sin(n\omega_0t)\,dt, \qquad n=1,2,3,\ldots

Since the waveform is \(V\) only during \(0\leq t<DT_s\) and zero for the remainder of the period, the coefficient calculations reduce to the ON interval.

DC Coefficient

a0=2Ts∫0DTsVdta_0=\frac{2}{T_s}\int_0^{DT_s}V\,dt
a0=2VTs[t]0DTsa_0=\frac{2V}{T_s}\left[t\right]_0^{DT_s}
a0=2VTs(DTs)a_0=\frac{2V}{T_s}(DT_s)
a0=2VD\boxed{a_0=2VD}

Therefore,

a02=VD\boxed{\frac{a_0}{2}=VD}

Cosine Coefficient

an=2VTs∫0DTscos⁡(nωst)dta_n=\frac{2V}{T_s}\int_0^{DT_s}\cos(n\omega_s t)\,dt
an=2VTs[sin⁡(nωst)nωs]0DTsa_n= \frac{2V}{T_s} \left[ \frac{\sin(n\omega_s t)}{n\omega_s} \right]_0^{DT_s}
an=2VTssin⁡(nωsDTs)nωsa_n= \frac{2V}{T_s} \frac{\sin(n\omega_s DT_s)}{n\omega_s}

Using \(\omega_s=2\pi/T_s\),

an=2VTssin⁡(n2πTsDTs)n2πTsa_n= \frac{2V}{T_s} \frac{ \sin\left( n\frac{2\pi}{T_s}DT_s \right) }{ n\frac{2\pi}{T_s} }
an=Vnπsin⁡(2πnD)a_n= \frac{V}{n\pi}\sin(2\pi nD)

Sine Coefficient

bn=2VTs∫0DTssin⁡(nωst),dtb_n=\frac{2V}{T_s}\int_0^{DT_s}\sin(n\omega_s t),dt
bn=2VTs[−cos⁡(nωst)nωs]0DTsb_n= \frac{2V}{T_s} \left[ -\frac{\cos(n\omega_s t)}{n\omega_s} \right]_0^{DT_s}
bn=2VTs[−cos⁡(nωsDTs)nωs+1nωs]b_n= \frac{2V}{T_s} \left[ -\frac{\cos(n\omega_s DT_s)}{n\omega_s} + \frac{1}{n\omega_s} \right]
bn=2VTs1−cos⁡(nωsDTs)nωsb_n= \frac{2V}{T_s} \frac{ 1-\cos(n\omega_s DT_s) }{ n\omega_s }

Using \(\omega_s=2\pi/T_s\),

bn=Vnπ[1−cos⁡(2πnD)]b_n= \frac{V}{n\pi} \left[ 1-\cos(2\pi nD) \right]

Substituting \(a_0\), \(a_n\), and \(b_n\) into the Fourier-series expression gives

v(t)=VD+∑n=1∞[Vnπsin⁡(2πnD)cos⁡(nωst)+Vnπ(1−cos⁡(2πnD))sin⁡(nωst)]\boxed{ v(t)\equal VD + \sum_{n=1}^{\infty} \left[ \frac{V}{n\pi}\sin(2\pi nD)\cos(n\omega_s t) + \frac{V}{n\pi} \left(1-\cos(2\pi nD)\right) \sin(n\omega_s t) \right] }

The magnitude-phase form

v(t)=VD+∑n=1∞Cncos⁡(nωst−ϕn)v(t)=VD+\sum_{n=1}^{\infty}C_n\cos(n\omega_s t-\phi_n)

where

Cn=an2+bn2C_n=\sqrt{a_n^2+b_n^2}

Substituting \(a_n\) and \(b_n\),

Cn=[Vnπsin⁡(2πnD)]2+[Vnπ(1−cos⁡(2πnD))]2C_n= \sqrt{ \left[ \frac{V}{n\pi}\sin(2\pi nD) \right]^2 + \left[ \frac{V}{n\pi}(1-\cos(2\pi nD)) \right]^2 }

Factor out \(V/(n\pi)\):

Cn=Vnπsin2⁡(2πnD)+[1−cos⁡(2πnD)]2C_n= \frac{V}{n\pi} \sqrt{ \sin^2(2\pi nD) + \left[1-\cos(2\pi nD)\right]^2 }

Expand the square:

Cn=Vnπsin2⁡(2πnD)+1−2cos⁡(2πnD)+cos2⁡(2πnD)C_n= \frac{V}{n\pi} \sqrt{ \sin^2(2\pi nD) + 1 -2\cos(2\pi nD) + \cos^2(2\pi nD) }

Using \(\sin^2\theta+\cos^2\theta=1\),

Cn=Vnπ2−2cos⁡(2πnD)C_n= \frac{V}{n\pi} \sqrt{ 2-2\cos(2\pi nD) }

Using the identity \(1-\cos(2x)=2\sin^2x\),

2−2cos⁡(2πnD)=4sin2⁡(πnD)2-2\cos(2\pi nD)=4\sin^2(\pi nD)

Therefore,

Cn=2Vnπ|sin⁡(πnD)|\boxed{ C_n= \frac{2V}{n\pi} \left|\sin(\pi nD)\right| }

The absolute value is required because a magnitude is always non-negative.

The phase angle is

ϕn=atan2⁡(bn,an)\phi_n=\operatorname{atan2}(b_n,a_n)

so

ϕn=atan2⁡(1−cos⁡(2πnD),sin⁡(2πnD))\boxed{ \phi_n= \operatorname{atan2} \left( 1-\cos(2\pi nD), \sin(2\pi nD) \right) }

An equivalent and more compact phase expression can be obtained from the harmonic term itself:

ancos⁡(nωst)+bnsin⁡(nωst)a_n\cos(n\omega_s t)+b_n\sin(n\omega_s t)

Using the identities \(\sin(2x)=2\sin x\cos x\) and \(1-\cos(2x)=2\sin^2x\),

=2Vnπsin⁡(πnD)[cos⁡(πnD)cos⁡(nωst)+sin⁡(πnD)sin⁡(nωst)]= \frac{2V}{n\pi}\sin(\pi nD) \left[ \cos(\pi nD)\cos(n\omega_s t) + \sin(\pi nD)\sin(n\omega_s t) \right]

Using \(\cos(A-B)=\cos A\cos B+\sin A\sin B\),

=2Vnπsin⁡(πnD)cos⁡(nωst−πnD)= \frac{2V}{n\pi}\sin(\pi nD) \cos\left(n\omega_s t-\pi nD\right)

Therefore, a compact magnitude-phase representation is

v(t)=VD+∑n=1∞2Vnπsin⁡(πnD)cos⁡(nωst−πnD)\boxed{ v(t)= VD + \sum_{n=1}^{\infty} \frac{2V}{n\pi} \sin(\pi nD) \cos\left(n\omega_s t-\pi nD\right) }

Special Case D=0.5

For a 50% duty cycle as shown in Figure 2, substitute \(D=0.5\) directly into the general Fourier-series result.

Switch Waveform with 50% Duty Cycle
Figure 2. Switch Waveform with 50% Duty Cycle

The DC component becomes

a02=VD=V2\boxed{\frac{a_0}{2}=VD}=\frac{V}{2}

For the cosine coefficient,

an=Vnπsin⁡(2πnD)=Vnπsin⁡(nπ)=0a_n= \frac{V}{n\pi}\sin(2\pi nD) =\frac{V}{n\pi}\sin(n\pi)=0

For the sine coefficient,

bn=Vnπ[1−cos⁡(2πnD)]=Vnπ[1−cos⁡(nπ)]b_n= \frac{V}{n\pi} \left[ 1-\cos(2\pi nD) \right]=\frac{V}{n\pi}\left[1-\cos(n\pi)\right]

Since \(\cos(n\pi)=(-1)^n\),

bn=Vnπ[1−(−1)n]b_n=\frac{V}{n\pi}\left[1-(-1)^n\right]

Therefore,

bn={2Vnπ,n=1,3,5,… 0,n=2,4,6,…\boxed{ b_n= \begin{cases} \dfrac{2V}{n\pi}, & n=1,3,5,\ldots\ 0, & n=2,4,6,\ldots \end{cases} }

Thus, the Fourier series becomes

 v(t)=V2+2Vπ∑n=1n odd∞1nsin⁡(nωst) \ v(t)=\frac{V}{2} +\frac{2V}{\pi} \sum_{\substack{n=1\\n\text{ odd}}}^{\infty} \frac{1}{n}\sin(n\omega_s t)
v(t)=V2+2Vπ[sin⁡(ωst)+13sin⁡(3ωst)+15sin⁡(5ωst)+17sin⁡(7ωst)+⋯]\boxed{ v(t)= \frac{V}{2} + \frac{2V}{\pi} \left[ \sin(\omega_s t) + \frac{1}{3}\sin(3\omega_s t) + \frac{1}{5}\sin(5\omega_s t) + \frac{1}{7}\sin(7\omega_s t) +\cdots \right] }

So, for \(D=0.5\), the waveform contains a DC component of \(V/2\) and only odd harmonics.

Square Wave Reconstruction Using the First Three Nonzero Harmonics
Figure 3. Square Wave Reconstruction Using the First Three Nonzero Harmonics

Special Case D=0.5 in Magnitude-Phase Form

For \(D=0.5\), the general harmonic magnitude

Cn=2Vnπ|sin⁡(πnD)|=2Vnπ|sin⁡(nπ2)|C_n=\frac{2V}{n\pi}\left|\sin(\pi nD)\right| =\frac{2V}{n\pi}\left|\sin\left(\frac{n\pi}{2}\right)\right|

For even \(n\),

sin⁡(nπ2)=0\sin\left(\frac{n\pi}{2}\right)=0

So all even harmonics vanish.

For odd \(n=1,3,5,\ldots\),

|sin⁡(nπ2)|=1\left|\sin\left(\frac{n\pi}{2}\right)\right|=1

therefore

Cn=2Vnπ,n=1,3,5,…\boxed{ C_n= \frac{2V}{n\pi}, \qquad n=1,3,5,\ldots }

and

Cn=0,n=2,4,6,…\boxed{ C_n=0, \qquad n=2,4,6,\ldots }

For the 50% duty-cycle waveform, the non-zero harmonics can be written with a phase of \(90^\circ\) in cosine form:

v(t)=V2+2Vπcos⁡(ωst−90∘)+2V3πcos⁡(3ωst−90∘)+2V5πcos⁡(5ωst−90∘)+⋯\boxed{ v(t)= \frac{V}{2} + \frac{2V}{\pi}\cos(\omega_s t-90^\circ) + \frac{2V}{3\pi}\cos(3\omega_s t-90^\circ) + \frac{2V}{5\pi}\cos(5\omega_s t-90^\circ) +\cdots }

Equivalently,

v(t)=V2+∑n=1n odd∞2Vnπcos⁡(nωst−90∘) \boxed{ v(t)= \frac{V}{2} + \sum_{\substack{n=1\\n\ \mathrm{odd}}}^{\infty} \frac{2V}{n\pi} \cos\left(n\omega_s t-90^\circ\right) }

This is the magnitude-phase form of the 50% duty-cycle rectangular waveform.

Fourier Series Magnitude Spectrum of Square Wave - The magnitude spectrum illustrates the strength of each frequency component, showing which harmonics contribute most to the waveform.
Figure 4. Fourier Series Magnitude Spectrum of Square Wave - The magnitude spectrum illustrates the strength of each frequency component, showing which harmonics contribute most to the waveform.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top