Skip to content

Chapter 3: Fourier Series

Introduction

The Fourier series represents periodic signals as a sum of harmonically related sinusoids or complex exponentials.

Periodic Signals

Definition: Periodic Signal

A signal x(t) is periodic with period T0 if:

x(t+T0)=x(t)for all t

The fundamental frequency is f0=1/T0 and the fundamental angular frequency is ω0=2π/T0.

Complex Exponential Fourier Series

Theorem: Fourier Series Representation

A periodic signal x(t) with period T0 can be represented as:

x(t)=k=+ckejkω0t

where the Fourier coefficients are:

ck=1T0T0x(t)ejkω0tdt

Properties of Fourier Coefficients

Proposition: Symmetry Properties

For a real signal x(t):

  • ck=ck (conjugate symmetry)
  • |ck|=|ck| (even magnitude spectrum)
  • ck=ck (odd phase spectrum)

Representation: Line Spectra

The Fourier series representation can be visualized using line spectra, which show the magnitude and phase of each harmonic component.

Definition: Line Spectra

For a periodic signal with Fourier coefficients ck, we define:

  1. Magnitude Spectrum (or Amplitude Spectrum): A plot of |ck| versus k
  2. Phase Spectrum: A plot of ck versus k

The line spectra are discrete, with non-zero values only at integer multiples of the fundamental frequency ω0.

Properties:

For real signals x(t):

  • The magnitude spectrum is even: |ck|=|ck|
  • The phase spectrum is odd: ck=ck
  • Only the positive frequencies (k ≥ 0) need to be displayed due to symmetry

Interpretation:

  • Each line at frequency kω0 represents a harmonic component
  • The height of each line indicates the amplitude of that harmonic
  • The DC component c0 represents the average value of the signal
  • Higher harmonics contribute to the fine details and sharp transitions in the signal
  • The rate of decay of |ck| as k indicates the smoothness of the signal:
    • Discontinuities → slow decay (e.g., |ck|1/k)
    • Continuous but non-smooth → faster decay (e.g., |ck|1/k2)
    • Smooth signals → rapid decay (e.g., exponential)

Example Visualization:

Line spectra example showing magnitude and phase

The figure illustrates line spectra for a periodic signal composed of a DC component and three harmonics. The magnitude spectrum (middle) shows the even symmetry property: |ck|=|ck|. The phase spectrum (bottom) shows the odd symmetry property: ck=ck. The DC component at k = 0 represents the average value of the signal. Notice that the spectrum is discrete, with non-zero values only at integer multiples of the fundamental frequency.

Trigonometric Fourier Series

Definition: Trigonometric Form

For real signals, the Fourier series can be written as:

x(t)=a0+k=1[akcos(kω0t)+bksin(kω0t)]

where:

a0=1T0T0x(t)dtak=2T0T0x(t)cos(kω0t)dtbk=2T0T0x(t)sin(kω0t)dt

Relationship Between Forms

c0=a0,ck=akjbk2,ck=ak+jbk2

Parseval's Theorem

Theorem: Parseval's Theorem for Fourier Series

The average power of a periodic signal equals the sum of powers in each harmonic:

P=1T0T0|x(t)|2dt=k=+|ck|2

Properties of Fourier Series

PropertyTime DomainFrequency Domain
Linearityax(t)+by(t)ack(x)+bck(y)
Time Shiftx(tt0)ckejkω0t0
Frequency Shiftx(t)ejmω0tckm
Time Reversalx(t)ck
Differentiationdx(t)dtjkω0ck
Convolutionx(t)y(t)T0ck(x)ck(y)

Convergence

Definition: Dirichlet Conditions

A periodic signal x(t) has a convergent Fourier series if:

  1. x(t) is absolutely integrable over one period
  2. x(t) has a finite number of maxima and minima in one period
  3. x(t) has a finite number of discontinuities in one period

Examples

Example 1: Square Wave

Consider a square wave with amplitude A and period T0:

x(t)={A,0<t<T0/2A,T0/2<t<T0

The Fourier coefficients are given by :

ck={0k even2Ajkπk odd

This gives the series:

x(t)=4Aπ[sin(ω0t)+13sin(3ω0t)+15sin(5ω0t)+]
Demonstration

Computing the Fourier coefficients:

We compute ck=1T00T0x(t)ejkω0tdt.

For k=0:

c0=1T0[0T0/2Adt+T0/2T0(A)dt]=1T0[AT02AT02]=0

For k0, split the integral:

ck=1T0[A0T0/2ejkω0tdtAT0/2T0ejkω0tdt]

Evaluate each integral using ejkω0tdt=ejkω0tjkω0:

0T0/2ejkω0tdt=1jkω0[ejkω0T0/21]=1jkω0[1ejkπ]T0/2T0ejkω0tdt=1jkω0[ejkω0T0ejkω0T0/2]=1jkω0[ejkπ1]

where we used ω0T0=2π and ej2πk=1.

Substituting back:

ck=AT01jkω0[1ejkπejkπ+1]=2Ajkω0T0(1ejkπ)

Since ω0T0=2π:

ck=Ajkπ(1ejkπ)

Now, ejkπ=cos(kπ)=(1)k (since sin(kπ)=0), therefore:

1ejkπ=1(1)k={0k even2k odd

Thus:

ck={0k even or k=02Ajkπk odd

Deriving the trigonometric series:

For odd k, we have ck=2Ajkπ=j2Akπ and by conjugate symmetry, ck=j2Akπ.

The contribution from harmonics ±k is:

ckejkω0t+ckejkω0t=j2Akπejkω0t+j2Akπejkω0t=j2Akπ(ejkω0tejkω0t)=j2Akπ(2jsin(kω0t))=4Akπsin(kω0t)

Summing over odd k=1,3,5, gives:

x(t)=4Aπ[sin(ω0t)+13sin(3ω0t)+15sin(5ω0t)+]

Visualization:

Square wave reconstruction with different numbers of harmonics

The figure above shows how the Fourier series approximation improves as more harmonics are added. Notice the Gibbs phenomenon at the discontinuities - the overshoots persist even with many harmonics.

Square wave magnitude and phase spectrum

The magnitude spectrum shows that only odd harmonics are present, with magnitude decaying as 1/k. The phase spectrum shows that all coefficients have phase ±π/2.

Example 2: Sawtooth Wave

Consider a sawtooth wave increasing linearly from A to A over one period T0, centered at t=0:

x(t)=2AT0t,T02<t<T02

The Fourier coefficients are given by :

ck=1T00T0x(t)ejkω0tdt

This gives the series:

x(t)=2Aπk=1(1)k+1ksin(kω0t)
Demonstration

Computing the Fourier coefficients:

We have x(t)=2AT0t for T02<t<T02.

Observation: Since x(t) is an odd function (x(t)=x(t)), we expect ck to be purely imaginary.

For k=0:

c0=1T0T0/2T0/22AT0tdt=2AT02[t22]T0/2T0/2=AT02[T024T024]=0

For k0:

ck=1T0T0/2T0/22AT0tejkω0tdt=2AT02T0/2T0/2tejkω0tdt

Use integration by parts with u=t and dv=ejkω0tdt:

T0/2T0/2tejkω0tdt=[tejkω0tjkω0]T0/2T0/2T0/2T0/2ejkω0tjkω0dt

Evaluating the first term:

[tejkω0tjkω0]T0/2T0/2=T0/2ejkπjkω0(T0/2)ejkπjkω0

Since ejkπ=ejkπ=(1)k:

=(1)kjkω0(T02+T02)=(1)kT0jkω0

Evaluating the second term:

T0/2T0/2ejkω0tjkω0dt=1jkω0[ejkω0tjkω0]T0/2T0/2=1(jkω0)2[ejkπejkπ]=0

(since ejkπ=ejkπ=(1)k).

Therefore:

ck=2AT02(1)kT0jkω0=2A(1)kjkω0T0

Since ω0T0=2π:

ck=A(1)kjkπ=A(1)k+1jkπ

Deriving the trigonometric series:

For the real signal with odd symmetry, we have ck=A(1)k+1jkπ (purely imaginary).

By conjugate symmetry, ck=ck=A(1)k+1jkπ.

The contribution from harmonics ±k is:

ckejkω0t+ckejkω0t=A(1)k+1jkπejkω0tA(1)k+1jkπejkω0t=A(1)k+1jkπ(ejkω0tejkω0t)=A(1)k+1jkπ2jsin(kω0t)=2A(1)k+1kπsin(kω0t)

Summing over all k=1,2,3, gives:

x(t)=2Aπk=1(1)k+1ksin(kω0t)=2Aπ[sin(ω0t)12sin(2ω0t)+13sin(3ω0t)14sin(4ω0t)+]

Visualization:

Sawtooth wave reconstruction with different numbers of harmonics

The figure shows the Fourier series reconstruction of the sawtooth wave. The convergence is smoother compared to the square wave since the sawtooth has no discontinuities, only a discontinuity in the derivative.

Sawtooth wave magnitude and phase spectrum

The magnitude spectrum shows all harmonics (both even and odd) are present, decaying as 1/k. The phase spectrum shows alternating phases of ±π/2, corresponding to the alternating sign in the series coefficients.

Example 3: Pulse train with duty cycle α

Consider a periodic pulse train of period T0, amplitude A, and duty cycle (0<α<1):

x(t)={A0<t<αT00αT0<t<T0

The Fourier coefficients are given by :

ck={Ajk2π(1ejk2πα),k0Aα,k=0

Thus the complex Fourier series:

x(t)=Aα+k0Ajk2π(1ejk2πα)ejkω0t
Demonstration

Computing the Fourier coefficients:

We compute ck=1T00T0x(t)ejkω0tdt.

For k=0:

c0=1T00αT0Adt=AT0αT0=Aα

This is the DC component (average value) of the signal.

For k0:

ck=1T00αT0Aejkω0tdt=AT00αT0ejkω0tdt

Evaluate the integral:

0αT0ejkω0tdt=[ejkω0tjkω0]0αT0=1jkω0(ejkω0αT01)=1jkω0(1ejkω0αT0)

Since ω0T0=2π, we have kω0αT0=k2πα:

ck=AT01jkω0(1ejk2πα)=Ajkω0T0(1ejk2πα)

Since ω0T0=2π:

ck=Ajk2π(1ejk2πα)

Alternative form using the sinc function:

We can rewrite the coefficient using Euler's formula. Note that:

1ejk2πα=1cos(k2πα)+jsin(k2πα)

We can also express this as:

ck=Ajk2π2ejkπα(ejkπαejkπα)/2=Aαkπαejkπαsin(kπα)=Aαsinc(kα)ejkπα

where sinc(x)=sin(πx)πx.

Summary of results:

ck={Aαk=0Ajk2π(1ejk2πα)k0

The complex Fourier series is:

x(t)=Aα+k0Ajk2π(1ejk2πα)ejkω0t

Visualization:

Pulse train reconstruction with different numbers of harmonics

The figure shows the Fourier series reconstruction of a pulse train with 25% duty cycle (α = 0.25). As more harmonics are added, the reconstruction improves, with the Gibbs phenomenon visible at the discontinuities (similar to the square wave). The DC component c₀ = Aα = 0.25A gives the average value.

Pulse train magnitude and phase spectrum

The magnitude and phase spectra for a 25% duty cycle pulse train. Notice that all harmonics are present (unlike the square wave which has only odd harmonics). The DC component c₀ = 0.25A is visible at k = 0. The narrow pulse (25% duty cycle) requires more harmonics for accurate reconstruction.

Pulse train magnitude spectrum with sinc envelope

The magnitude spectrum follows a sinc envelope, as predicted by the analytical formula |c_k| = Aα|sinc(kα)|. The zeros of the sinc function occur at integer multiples of 1/α, which for α = 0.25 means zeros at k = ±4, ±8, ±12, etc. This is characteristic of rectangular pulses: narrower pulses (smaller α) have a wider sinc envelope, requiring more harmonics for accurate reconstruction.