Fourier Series
Spring 2024 EE220 Signals and Systems
Dr. Muhammad Rehan Chaudhry
Biomedical Engineering Department
UET Lahore Narowal Campus
April 15, 2024
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 1 / 59
The Fourier Series Representation - Synthesis and Analysis
Intuition behind the Fourier Series
You likely have many colorful pictures stored on your laptop or smartphone.
In a colored image, each pixel is composed of specific values for its red,
green, and blue components, often denoted as r, g, and b respectively.
When these components have their maximum value, the pixel appears white
on the screen, while at their minimum value, the pixel appears black.
Each of these colors can be thought of as analogous to exponential functions
in the Fourier series. When combining these three primary colors in varying
intensities, we can create a wide range of colors. This additive color mixing
is a fundamental principle in the RGB color model used in digital displays
and image processing.
The concept of combining different wavelengths of light to create colors can
be likened to the principle of combining complex exponential functions of
different frequencies in Fourier series to represent complex periodic signals.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 2 / 59
The Fourier Series Representation - Synthesis and Analysis
Intuition behind the Fourier Series
Figure: Color Wheel: Intersection Producing White
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 3 / 59
The Fourier Series Representation - Synthesis and Analysis
Intuition behind the Fourier Series
In linear algebra, basis vectors are a set of vectors in a vector space that
are linearly independent and span the entire space. This means that any
vector in the space can be expressed as a unique linear combination of the
basis vectors
Figure: Every vector a in three dimensions is a linear combination of the standard basis vectors î, ĵ and k̂.
1
https://en.wikipedia.org/wiki/Standard basis#/media/File:3D Vector.svg
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 4 / 59
The Fourier Series Representation - Synthesis and Analysis
Intuition behind the Fourier Series
The Fourier series is a way to represent a periodic function as an infinite
sum of complex exponentials. These complex exponentials can be thought
of as the “basis functions” for the space of periodic functions, because just
like basis vectors, they can be used to construct any function in that space.
Just like in linear algebra, where basis vectors are orthogonal to each other,
the basis functions in Fourier series are also orthogonal over one period.
This orthogonality property is crucial for decomposing a function into its
Fourier series representation.
Just as any vector in a vector space can be represented as a linear
combination of basis vectors in linear algebra, any periodic function can be
represented as a linear combination of the orthogonal basis functions (sine
and cosine waves) in Fourier series.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 5 / 59
The Fourier Series Representation - Synthesis and Analys is
Let’s consider a complex exponential, which is periodic with period T.
x(t) = ejωot
, T =
2π
ωo
(1)
Let’s consider signals x1(t) and x2(t), that are formed by adding complex
exponentials. Are they periodic? What is their fundamental period?
x1(t) = 2ejωot
+ 3ej2ωot
, (2)
Fundamental Period T1 =?
x2(t) = e−jωot
+ 2 + ejωot
+ 2ej2ωot
+ 3ej3ωot
, (3)
Fundamental Period T2 =?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 6 / 59
The Fourier Series Representation - Synthesis and Analysis
Let’s consider a signal x(t) that can be expressed as,
x(t) =
∞
X
k=−∞
akejkωot
, (4)
where k is an integer and we are summing over k from negative infinity to
positive infinity.
Is x(t) periodic?
What is the fundamental period?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 7 / 59
The Fourier Series Representation - Synthesis and Analysis
Let’s consider a signal x(t) that can be expressed as,
x(t) =
∞
X
k=−∞
akejkωot
, (4)
where k is an integer and we are summing over k from negative infinity to
positive infinity.
Is x(t) periodic?
What is the fundamental period?
Yes, x(t) is periodic.
Fundamental period is T = 2π
ωo
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 7 / 59
The Fourier Series Representation - Synthesis and Analysis
x(t) =
∞
X
k=−∞
akejkωot
(4)
−→ Equation (4) is the Fourier Series representation.
−→ Term corresponding to k = ±1 : fundamental / first harmonics
−→ Term corresponding to k = ±2 : Second harmonics
−→ Term corresponding to k = ±n : nth harmonics
Fourier claimed that any periodic signal can be written in the form
of equation (4). Really?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 8 / 59
The Fourier Series Representation - Synthesis and Analysis
Example(1) : x(t) = sinωot. Can we write this in the form of (4)
.
ejωot
= cosωot + jsinωot (i)
e−jωot
= cosωot − jsinωot (ii)
Adding (i) and (ii),
cosωot =
ejωot + e−jωot
2
Subtracting (i) and (ii),
sinωot =
ejωot − e−jωot
2j
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 9 / 59
The Fourier Series Representation - Synthesis and Analysis
Example(1) : x(t) = sinωot. Can we write this in the form of (4)
. So,
sinωot =
−1
2j
e−jωot
+
1
2j
ejωot
=
∞
X
k=−∞
akejkωot
with,
ak =





−1
2j , k = −1
1
2j , k = +1
0, otherwise
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 10 / 59
The Fourier Series Representation - Synthesis and Analysis
Example(2) : x(t) = 1 + sinωot + 2cosωot + cos(2ωot + π
4
).
Represent this as FS : (4).
x(t) = 1 +
ejωot − e−jωot
2j
+ 2(
ejωot + e−jωot
2
) +
ej(ωot+π
4
)
+ e−j(ωot+π
4
)
2
x(t) = 1 + ejωot
(1 +
1
2j
) + e−jωot
(1 −
1
2j
) +
1
2
ej π
4 ej2ωot
+
1
2
e−j π
4 e−j2ωot
x(t) =
∞
X
k=−∞
akejkωot
with ak =





















1, k = 0
1 + 1
2j , k = +1
1 − 1
2j , k = −1
1
2ej π
4 , k = +2
1
2e−j π
4 , k = −2
0, otherwise
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 11 / 59
The Fourier Series Representation - Synthesis and Analysis
Determining the FS coefficient {ak}
Assuming the FS representation of x(t) exists, meaning x(t) can be
written in the form
x(t) =
∞
X
k=−∞
akejkωot
, x(t) = x(t + T), T =
2π
ωo
Is there a way to obtain ak using mathematical analysis?
Let us multiply x(t) with e−jnωot and integrate over one period.
Z T
0
x(t)e−jnωot
dt (5)
=
Z T
0
(
∞
X
k=−∞
akejkωot
)e−jnωot
dt, replaced x(t) in (5) with (4).
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 12 / 59
The Fourier Series Representation - Synthesis and Analysis
Determining the FS coefficient {ak}
=
∞
X
k=−∞
ak
Z T
0
ej(k−n)ωot
dt (6)
solving the integral,
Z T
0
(ej(k−n)ωot
)dt =
1
j(k − n)ωo
ej(k−n)ωot
T
0
=
1
j(k − n)ωo
(ej(k−n)ωoT
− 1)
=
1
j(k − n)ωo
(ej(k−n)ωo
2π
ωo − 1)
=
1
j(k − n)ωo
(ej(k−n)2π
− 1) = 0 k ̸= n
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 13 / 59
The Fourier Series Representation - Synthesis and Analysis
Determining the FS coefficient {ak}
when k = n, then
Z T
0
(ej(k−n)ωot
)dt =
Z T
0
(1)dt = T
Therefore,
Z T
0
ej(k−n)ωot
dt =
(
T, k = n
0, k ̸= n
From(5),
Z T
0
x(t)e−jnωot
dt =
∞
X
k=−∞
ak
Z T
0
ej(k−n)ωot
dt
Z T
0
x(t)e−jnωot
dt = anT
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 14 / 59
The Fourier Series Representation - Synthesis and Analysis
Determining the FS coefficient {ak}
Z T
0
x(t)e−jnωot
dt = anT
=⇒ an =
1
T
Z T
0
x(t)e−jnωot
dt
In conclusion, if the FS representation of a periodic signal x(t) with period T = 2π
ωo
exists, then
x(t) =
∞
X
k=−∞
akejkωot
←− (Synthesis Equation)
ak =
1
T
Z T
0
x(t)e−jkωot
dt ≜
1
T
Z
T
x(t)e−jkωot
dt ←− (Analysis Equation)
{ak} ←− (Fourier Seies/ Spectral coefficients)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 15 / 59
The Fourier Series Examples
Example 1 : Square Wave
x(t) =
(
1, |t| < T1
0, T1 < |t| < T
2
x(t) is periodic with period T.
−T −T
2
−T1 0 T1 T
2
T
· · · · · ·
1
x(t)
t
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 16 / 59
The Fourier Series Examples
Example 1 : Square Wave
Solution:
−T −T
2
−T1 0 T1 T
2
T
T
· · · · · ·
1
x(t)
t
ak =
1
T
Z
T
x(t)e−jkωot
dt
ak =
1
T
Z T
2
−T
2
x(t)e−jkωot
dt =
1
T
Z T1
−T1
(1)e−jkωot
dt =
1
T
Z T1
−T1
e−jkωot
dt
=
1
T
1
−jkωo
e−jkωot
T1
−T1
=
1
T
1
−jkωo
(e−jkωoT1
− ejkωoT1
)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 17 / 59
The Fourier Series Examples
Example 1 : Square Wave
=
1
T
1
jkωo
(ejkωoT1
− e−jkωoT1
) =
1
T
2
kωo
(
ejkωoT1 − e−jkωoT1
2j
)
=
2sin(kωoT1)
kωoT
=
2sin(kωoT1)
kωo
2π
ωo
=
sin(kωoT1)
kπ
, k ∈ −∞, ..., −2, −1, 0, 1, 2, ..., ∞
x(t) =
∞
X
−∞
akeejkωot
ak =
sin(kωoT1)
kπ
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 18 / 59
The Fourier Series Examples
Example 1 : Square Wave
Let’s consider a square wave with T = 0.02 sec, and T1 = 0.005 sec.
−0.02 −0.01−0.005 0 0.005 0.01 0.02
· · · · · ·
1
x(t)
t(sec)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 19 / 59
The Fourier Series Examples (Example 1 : Square Wave)
ωo 2ωo
3ωo
4ωo 5ωo
6ωo
7ωo
−ωo
−2ωo
−3ωo
−4ωo
−5ωo
−6ωo
−7ωo
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 20 / 59
The Fourier Series Examples (Example 1 : Square Wave)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 21 / 59
The Fourier Series Examples (Example 1 : Square Wave)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 22 / 59
The Fourier Series Examples
Example 2 : x(t) is periodic with period T = 2.
x(t) = e−t
, −1 < t < 1
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 23 / 59
The Fourier Series Examples
Example 2 : x(t) is periodic with period T = 2.
x(t) = e−t
, −1 < t < 1
Solution:
ak =
1
T
Z
T
x(t)e−jkωot
dt
ak =
1
2
Z 1
−1
e−t
e−jkωot
dt =
1
2
Z 1
−1
e(−1+jkωo)t
dt
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 24 / 59
The Fourier Series Examples
Example 2 : x(t) is periodic with period T = 2.
x(t) = e−t
, −1 < t < 1
ak =
1
2
e(−1+jkωo)t
−(1 + jkωo)
+1
−1
=
1
2
e(1+jkωo) − e−(1+jkωo)
(1 + jkωo)
ωo =
2π
T
=
2π
2
= πrad/s
ak =
1
2
e1ejkπ − e−1e−jkπ
(1 + jkπ)
ak =
1
2
(−1)k
(1 + jkπ)
(e1
− e−1
)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 25 / 59
The Fourier Series Examples
Example 2 : x(t) is periodic with period T = 2.
x(t) = e−t
, −1 < t < 1
x(t)=
P∞
−∞ akejkω0t
ak= 1
2
(−1)k
(1+jkπ)
(e1−e−1)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 26 / 59
The Fourier Series Examples (Example 2 : Periodic
Exponential Signal)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 27 / 59
The Fourier Series Examples (Example 2 : Periodic
Exponential Signal)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 28 / 59
Gibb’s Phenomenon
The Gibbs phenomenon is a common occurrence in Fourier analysis.
It refers to the overshoot and oscillations that occur near jump
discontinuities of a function.
The phenomenon is observed when approximating a discontinuous
function using its Fourier series.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 29 / 59
Gibb’s Phenomenon : Mathematical Explanation
The Gibbs phenomenon arises due to the inability of the Fourier series
to accurately represent discontinuous functions.
Near a jump discontinuity, the Fourier series overshoots the function’s
value and produces oscillations that persist even as the number of
terms in the series increases.
The overshoot near the discontinuity is typically about 9% of the
height of the jump. The exact proportion is given by the
Wilbraham-Gibbs Constant.
1
π
Z π
0
sint
t
dt −
1
2
= 0.089489. . .
It may also be noted that as more number of terms in the series are
added, the frequency increases and the overshoots become sharper,
but the amplitude of the adjoining oscillation reduces, i.e., the error
between the original signal x(t) and the approximated signal in red
reduces except at edges as the n increases.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 30 / 59
Gibb’s Phenomenon : Implications
In biomedical signals (such as ECG, EEG, etc.) and images (such as MRI,
CT scans, etc.), Gibbs’ phenomenon can lead to:
Ringing artifacts: Oscillations near abrupt changes (e.g., edges,
boundaries) in the signal or image.
False features: Spurious oscillations that may be misinterpreted as
actual features.
Image quality degradation: The overshoots and oscillations can
affect the accuracy of measurements and diagnoses.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 31 / 59
Properties of FS
Linearity
x(t)
FS
←→ ak
y(t)
FS
←→ bk
both x(t) and y(t) have the same period T.
z(t) = Ax(t) + By(t)
z(t)
FS
←→ ck
ck =
1
T
Z
T
z(t)e−jkωot
dt =
1
T
Z
T
[Ax(t) + By(t)]e−jkωot
dt
ck =
A
T
Z
T
x(t)e−jkωot
dt +
B
T
Z
T
y(t)e−jkωot
dt
ck = Aak + Bbk
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 32 / 59
Properties of FS
Time Shifting
x(t)
FS
←→ ak
x(t − to)
FS
←→ bk =?
bk =
1
T
Z
T
x(t − to)e−jkωot
dt
Let τ = t − to =⇒ dt = dτ
t = 0 → τ = −to
t = T → τ = T − to
bk =
1
T
Z T−to
to
x(τ)e−jkωo(τ+to)
dτ =
e−jkωoto
T
Z T−to
to
x(τ)e−jkωoτ
dτ
bk = e−jkωoto
ak
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 33 / 59
Properties of FS
Time Shifting
x(t)
FS
←→ ak
x(t − to)
FS
←→ bk = e−jkωoto
ak
e−jkωoto represents the change in phase.
|bk| = |e−jkωoto
||ak|
|bk| = |ak|, ∵ |e−jkωoto
| = 1
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 34 / 59
Properties of FS
Time Reversal
x(t)
FS
←→ ak
x(−t)
FS
←→ bk =?
bk =
1
T
Z
T
x(−t)e−jkωot
dt
Let τ = −t =⇒ −dt = dτ
t = 0 → τ = 0
t = T → τ = −T
bk =
−1
T
Z −T
0
x(τ)ejkωoτ
dτ
=
1
T
Z 0
−T
x(τ)ejkωoτ
dτ
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 35 / 59
Properties of FS
Time Reversal
bk =
1
T
Z
T
x(τ)e−j(−k)ωoτ
dτ
bk = a−k
x(−t) =
∞
X
k=−∞
bkejkωot
=
∞
X
k=−∞
a−kejkωot
What if the signal is even?
if x(t) = x(−t)
x(t)
FS
←→ ak
x(−t)
FS
←→ a−k



=⇒ ak = a−k
The FS coefficients are symmetric, i.e.,ak = a−k.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 36 / 59
Properties of FS
Time Reversal
What if the signal is odd?
if x(t) = −x(−t)
x(t)
FS
←→ ak
x(−t)
FS
←→ a−k



=⇒ ak = −a−k
The FS coefficients are anti-symmetric, i.e.,ak = −a−k.
What can we say about a0?
a0 = −a0 =⇒ a0 = 0
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 37 / 59
Properties of FS
Time Scaling
x(t)
FS
←→ ak
x(αt) is periodic with a period T
α .
if x(t) =
∞
X
k=−∞
akejkωot
x(αt) =
∞
X
k=−∞
akejkωoαt
=
∞
X
k=−∞
akejk(αωo)t
With time scaling, FS coefficients do not change, but the frequency/ time
period does.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 38 / 59
Properties of FS
Conjugation
x(t)
FS
←→ ak
x∗
(t)
FS
←→ bk =?
bk =
1
T
Z
T
x∗
(t)e−jkωot
dt
=

1
T
Z
T
x∗
(t)e−jkωot
dt
∗∗
=

1
T
Z
T
x(t)ejkωot
dt
| {z }
a−k
∗
bk = (a−k)∗
= a∗
−k
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 39 / 59
Properties of FS
Conjugation
If x(t) is real. x(t) = x∗(t)
x(t)
FS
←→ ak
x∗
(t)
FS
←→ a∗
−k



=⇒ ak = a∗
−k
FS coefficients are conjugate symmetric. a0 = a∗
−0
=⇒ a0 = a∗
0 =⇒ a0 is real.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 40 / 59
Properties of FS
Conjugation
If x(t) is real and even.
Real: ak = a∗
−k (i)
Even: ak = a−k (ii)
=⇒ a∗
k = a−k (iii)
comparing (ii) and (iii): ak = a∗
k.
=⇒ ak is real.
If x(t) is real and even, then FS coefficients must be real.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 41 / 59
Properties of FS
Conjugation
If x(t) is real and odd.
Real: ak = a∗
−k (iv)
Odd: ak = −a−k (v)
comparing (iv) and (v): ak = −a∗
k.
=⇒ ak is imaginary. Real part of ak’s must be zero.
If x(t) is real and even, then FS coefficients must be purely imaginary.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 42 / 59
Properties of FS : Example
Determine the FS representation for x(t).
T = 4, ωo =
2π
T
=
π
2
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 43 / 59
Properties of FS : Example
Recall we have already solved a square wave signal provided above and it’s
FS representation was calculated to be:
g(t)
FS
←→ ak =
(sin(k π
2
)
kπ k ̸= 0
1
2 k = 0
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 44 / 59
Properties of FS : Example
By looking at the two signals we can write x(t) in terms of g(t) as,
x(t) = g(t − 1) −
1
2
g(t − 1)
FS
←→ ake−jk π
2
.1
y(t) =
1
2
FS
←→ ck =
(
1
2 k = 0
0 k ̸= 0
x(t) = g(t − 1) −
1
2
FS
←→ bk = ake−jk π
2
.1
− ck
bk =
(sink π
2
kπ ejk π
2 k ̸= 0
0 k = 0
bk =
(sink π
2
kπ (j)k k ̸= 0
0 k = 0
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 45 / 59
Properties of FS
Parseval’s Relation
Power in one time period =
1
T
Z
T
|x(t)|2
dt
x(t) =
∞
X
k=−∞
akejkωot
P =
1
T
Z
T
|x(t)|2
dt =
1
T
Z
T
x(t)x∗
(t)dt
=
1
T
Z
T
|x(t)|2
dt =
1
T
Z
T
 ∞
X
k=−∞
akejkωot
| {z }
x(t)
 ∞
X
m=−∞
a∗
me−jmωot
| {z }
x∗(t)

dt
=
1
T
∞
X
k=−∞
∞
X
m=−∞
Z
T
aka∗
mejkωot
e−jmωot
dt
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 46 / 59
Properties of FS
Parseval’s Relation
=
1
T
∞
X
k=−∞
∞
X
m=−∞
aka∗
m
Z
T
ej(k−m)ωot
dt
Z
T
ej(k−m)ωot
dt =
(
T, m = k
0, m ̸= k
=
1
T
∞
X
k=−∞
ak
 ∞
X
m=−∞
a∗
m
Z
T
ej(k−m)ωot
dt
| {z }
a∗
kT

=
1
T
∞
X
k=−∞
aka∗
kT =
∞
X
k=−∞
aka∗
k =
∞
X
k=−∞
|ak|2
1
T
Z
T
|x(t)|2
dt =
∞
X
k=−∞
|ak|2
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 47 / 59
Properties of FS
Example:
1 x(t) is real.
2 x(t) is periodic with period T = 4.
3 The FS coefficients ak are zero for |k|  1.
4 The signal with FS given by bk = a−kejk π
2 is odd.
5 1
4
R
T |x(t)|2dt = 1
2.
Determine x(t).
Solution:
Since ak = 0 for |k|  1, then only possible non-zero FS coefficients
are a−1, a0, a+1.
T = 4, ωo = 2π
4 = π
2 .
Using the synthesis expression : x(t) =
P+∞
k=−∞ akejkωot.
=⇒ x(t) = a−1e−j π
2
t
+ a0 + a+1ej π
2
t
(A)
Only need to determine a+1, a0, a+1.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 48 / 59
Properties of FS : Example
Since the signal is real. a+1 = a∗
−1, a0 is real.
The signal corresponding to bk is a shifted and flipped version of x(t)
and therefore must be real.Since, the signal is odd,
b0 = 0, ∵ bk = ejk π
2 a−k we have a0 = 0.
Since the signal is real and odd,bk’s are imaginary.
bk = ejk π
2 a−k =⇒ b1 = ej π
2 a−1 = ja−1
=⇒ b−1 = ej π
2 a+1 = −ja+1
=⇒ a−1 and a+1 must be real.
Since a−1 = a∗
+1 and a−1 and a+1 are real, a−1 = a+1
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 49 / 59
Properties of FS : Example
1
4
Z
4
|x(t)|2
dt =
1
2
=⇒ |a−1|2
+ 



0
|a0|2
+ |a+1|2
=
1
2
=⇒ |a1|2
=
1
4
=⇒ |a1| =
1
2
=⇒ x(t) = a+1ej π
2
t
+ a−1e−j π
2
t
=
1
2
ej π
2
t
+
1
2
e−j π
2
t
or = −
1
2
ej π
2
t
−
1
2
e−j π
2
t
x(t) = ±cos(
π
2
t)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 50 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
Complex Exponential : x(t) = sst
where, s = σ
|{z}
ℜ(s)
+j ω
|{z}
ℑ(s)
LTI
h(t)
y(t) =?
x(t) = est
y(t) =
Z ∞
−∞
h(τ)x(t − τ)dτ =
Z ∞
−∞
h(τ)es(t−τ)
dτ
= est
Z ∞
−∞
h(τ)e−sτ
dτ
| {z }
H(s)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 51 / 59
Fourier Series and LTI Systems
y(t) = est
Z ∞
−∞
h(τ)e−sτ
dτ
| {z }
H(s)
y(t) = est
H(s) where, H(s) =
Z ∞
−∞
h(τ)e−sτ
dτ
By looking at the y(t) we can say if the input to an LTI system is a
complex exponential then output is also a complex exponential multiplied
by H(s).
In linear algebra we have learned about eigen vectors and eigen values.
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 52 / 59
Fourier Series and LTI Systems
y(t) = est
Z ∞
−∞
h(τ)e−sτ
dτ
| {z }
H(s)
y(t) = est
H(s) where, H(s) =
Z ∞
−∞
h(τ)e−sτ
dτ
By looking at the y(t) we can say if the input to an LTI system is a
complex exponential then output is also a complex exponential multiplied
by H(s).
In linear algebra we have learned about eigen vectors and eigen values.
Ax̄ = λ
|{z}
Eigen value
x̄
|{z}
Eigen vector
We say that x(t) = est is an eigenfunction for an LTI system with a
corresponding eigenvalue H(s).
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 52 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
LTI
h(t)
y(t) =?
x(t) =
P∞
k=−∞ akejkωot
LTI
h(t)
x(t) = ejkωot y(t) =?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 53 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
LTI
h(t)
y(t) =?
x(t) =
P∞
k=−∞ akejkωot
LTI
h(t)
x(t) = ejkωot y(t) = ejkωotH(jkωo)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 54 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
LTI
h(t)
x(t) = ejkωot y(t) = ejkωotH(jkωo)
LTI
h(t)
x(t) = akejkωot y(t) =?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 55 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
LTI
h(t)
x(t) = ejkωot y(t) = ejkωotH(jkωo)
LTI
h(t)
x(t) = akejkωot y(t) = akejkωotH(jkωo)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 56 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
LTI
h(t)
x(t) = akejkωot y(t) = akejkωotH(jkωo)
LTI
h(t)
x(t) =
P∞
k=−∞ akejkωot y(t) =?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 57 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
LTI
h(t)
x(t) = akejkωot y(t) = akejkωotH(jkωo)
LTI
h(t)
x(t) =
P∞
k=−∞ akejkωot
y(t) =
P∞
k=−∞ akejkωotH(jkωo)
y(t) =
∞
X
k=−∞
akH(jkωo)ejkωot
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 58 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
y(t) =
∞
X
k=−∞
akH(jkωo)ejkωot
What can we say about the periodicity of y(t)?
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 59 / 59
Fourier Series and LTI Systems
Response of LTI Systems to Complex Exponentials
y(t) =
∞
X
k=−∞
akH(jkωo)ejkωot
What can we say about the periodicity of y(t)? Indeed y(t) is periodic
with period T = 2π
ωo
.
y(t) =
∞
X
k=−∞
akH(jkωo)
| {z }
FS coefficients bk
ejkωot
y(t) =
∞
X
k=−∞
bkejkωot
where bk = akH(jkωo)
Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 59 / 59

More Related Content

PPT
Lecture7 Signal and Systems
PPT
Ch4 (1)_fourier series, fourier transform
PPTX
Network analysis & synthesis Fourier Series
PDF
Fourier slide
PPT
Nt lecture skm-iiit-bh
PPT
Lecture6 Signal and Systems
PPTX
Fourier Analysis Fourier series representation.pptx
PDF
Chapter3 - Fourier Series Representation of Periodic Signals
Lecture7 Signal and Systems
Ch4 (1)_fourier series, fourier transform
Network analysis & synthesis Fourier Series
Fourier slide
Nt lecture skm-iiit-bh
Lecture6 Signal and Systems
Fourier Analysis Fourier series representation.pptx
Chapter3 - Fourier Series Representation of Periodic Signals

Similar to chapter3_fourier_series. on signal and system (20)

PDF
Find the compact trigonometric Fourier series for the periodic signal.pdf
PDF
Fourier_Series_april.pdf
PPT
fnCh4.ppt ENGINEERING MATHEMATICS
PPT
fourier-method-of-waveform-analysis msc physics
PPT
Fourier series and Fourier transform in po physics
PDF
DTS 01discrete-fourier-transform (1).pdf
PPTX
UNIT 1 _ Problems On Fourier Series.pptx
PDF
4. a Find the compact trigonometric Fourier series for the periodic s.pdf
PDF
Circuit Network Analysis - [Chapter3] Fourier Analysis
PDF
Ch1 representation of signal pg 130
PPTX
Fourier_series_Lec 1(how to find FS coeffiecients).pptx
PDF
Nss fourier
DOCX
Continous time fourier series and Examples
PPTX
Fourier Series for Continuous Time & Discrete Time Signals
PPTX
PS.pptx
PDF
Eece 301 note set 14 fourier transform
PPTX
The Fourier Series Representations .pptx
PDF
signals and systems chapter3-part3_signals and systems chapter3-part3.pdf
PPTX
Maths 3 engineering 2nd yearlecture_04.pptx
PPT
signals and system
Find the compact trigonometric Fourier series for the periodic signal.pdf
Fourier_Series_april.pdf
fnCh4.ppt ENGINEERING MATHEMATICS
fourier-method-of-waveform-analysis msc physics
Fourier series and Fourier transform in po physics
DTS 01discrete-fourier-transform (1).pdf
UNIT 1 _ Problems On Fourier Series.pptx
4. a Find the compact trigonometric Fourier series for the periodic s.pdf
Circuit Network Analysis - [Chapter3] Fourier Analysis
Ch1 representation of signal pg 130
Fourier_series_Lec 1(how to find FS coeffiecients).pptx
Nss fourier
Continous time fourier series and Examples
Fourier Series for Continuous Time & Discrete Time Signals
PS.pptx
Eece 301 note set 14 fourier transform
The Fourier Series Representations .pptx
signals and systems chapter3-part3_signals and systems chapter3-part3.pdf
Maths 3 engineering 2nd yearlecture_04.pptx
signals and system
Ad

Recently uploaded (20)

PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
Amdahl’s law is explained in the above power point presentations
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PPTX
CyberSecurity Mobile and Wireless Devices
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PPTX
Current and future trends in Computer Vision.pptx
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Management Information system : MIS-e-Business Systems.pptx
PPTX
introduction to high performance computing
PPTX
Module 8- Technological and Communication Skills.pptx
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
III.4.1.2_The_Space_Environment.p pdffdf
Amdahl’s law is explained in the above power point presentations
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
Exploratory_Data_Analysis_Fundamentals.pdf
Fundamentals of safety and accident prevention -final (1).pptx
CyberSecurity Mobile and Wireless Devices
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Information Storage and Retrieval Techniques Unit III
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
August -2025_Top10 Read_Articles_ijait.pdf
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Current and future trends in Computer Vision.pptx
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Management Information system : MIS-e-Business Systems.pptx
introduction to high performance computing
Module 8- Technological and Communication Skills.pptx
Ad

chapter3_fourier_series. on signal and system

  • 1. Fourier Series Spring 2024 EE220 Signals and Systems Dr. Muhammad Rehan Chaudhry Biomedical Engineering Department UET Lahore Narowal Campus April 15, 2024 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 1 / 59
  • 2. The Fourier Series Representation - Synthesis and Analysis Intuition behind the Fourier Series You likely have many colorful pictures stored on your laptop or smartphone. In a colored image, each pixel is composed of specific values for its red, green, and blue components, often denoted as r, g, and b respectively. When these components have their maximum value, the pixel appears white on the screen, while at their minimum value, the pixel appears black. Each of these colors can be thought of as analogous to exponential functions in the Fourier series. When combining these three primary colors in varying intensities, we can create a wide range of colors. This additive color mixing is a fundamental principle in the RGB color model used in digital displays and image processing. The concept of combining different wavelengths of light to create colors can be likened to the principle of combining complex exponential functions of different frequencies in Fourier series to represent complex periodic signals. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 2 / 59
  • 3. The Fourier Series Representation - Synthesis and Analysis Intuition behind the Fourier Series Figure: Color Wheel: Intersection Producing White Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 3 / 59
  • 4. The Fourier Series Representation - Synthesis and Analysis Intuition behind the Fourier Series In linear algebra, basis vectors are a set of vectors in a vector space that are linearly independent and span the entire space. This means that any vector in the space can be expressed as a unique linear combination of the basis vectors Figure: Every vector a in three dimensions is a linear combination of the standard basis vectors î, ĵ and k̂. 1 https://en.wikipedia.org/wiki/Standard basis#/media/File:3D Vector.svg Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 4 / 59
  • 5. The Fourier Series Representation - Synthesis and Analysis Intuition behind the Fourier Series The Fourier series is a way to represent a periodic function as an infinite sum of complex exponentials. These complex exponentials can be thought of as the “basis functions” for the space of periodic functions, because just like basis vectors, they can be used to construct any function in that space. Just like in linear algebra, where basis vectors are orthogonal to each other, the basis functions in Fourier series are also orthogonal over one period. This orthogonality property is crucial for decomposing a function into its Fourier series representation. Just as any vector in a vector space can be represented as a linear combination of basis vectors in linear algebra, any periodic function can be represented as a linear combination of the orthogonal basis functions (sine and cosine waves) in Fourier series. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 5 / 59
  • 6. The Fourier Series Representation - Synthesis and Analys is Let’s consider a complex exponential, which is periodic with period T. x(t) = ejωot , T = 2π ωo (1) Let’s consider signals x1(t) and x2(t), that are formed by adding complex exponentials. Are they periodic? What is their fundamental period? x1(t) = 2ejωot + 3ej2ωot , (2) Fundamental Period T1 =? x2(t) = e−jωot + 2 + ejωot + 2ej2ωot + 3ej3ωot , (3) Fundamental Period T2 =? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 6 / 59
  • 7. The Fourier Series Representation - Synthesis and Analysis Let’s consider a signal x(t) that can be expressed as, x(t) = ∞ X k=−∞ akejkωot , (4) where k is an integer and we are summing over k from negative infinity to positive infinity. Is x(t) periodic? What is the fundamental period? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 7 / 59
  • 8. The Fourier Series Representation - Synthesis and Analysis Let’s consider a signal x(t) that can be expressed as, x(t) = ∞ X k=−∞ akejkωot , (4) where k is an integer and we are summing over k from negative infinity to positive infinity. Is x(t) periodic? What is the fundamental period? Yes, x(t) is periodic. Fundamental period is T = 2π ωo Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 7 / 59
  • 9. The Fourier Series Representation - Synthesis and Analysis x(t) = ∞ X k=−∞ akejkωot (4) −→ Equation (4) is the Fourier Series representation. −→ Term corresponding to k = ±1 : fundamental / first harmonics −→ Term corresponding to k = ±2 : Second harmonics −→ Term corresponding to k = ±n : nth harmonics Fourier claimed that any periodic signal can be written in the form of equation (4). Really? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 8 / 59
  • 10. The Fourier Series Representation - Synthesis and Analysis Example(1) : x(t) = sinωot. Can we write this in the form of (4) . ejωot = cosωot + jsinωot (i) e−jωot = cosωot − jsinωot (ii) Adding (i) and (ii), cosωot = ejωot + e−jωot 2 Subtracting (i) and (ii), sinωot = ejωot − e−jωot 2j Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 9 / 59
  • 11. The Fourier Series Representation - Synthesis and Analysis Example(1) : x(t) = sinωot. Can we write this in the form of (4) . So, sinωot = −1 2j e−jωot + 1 2j ejωot = ∞ X k=−∞ akejkωot with, ak =      −1 2j , k = −1 1 2j , k = +1 0, otherwise Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 10 / 59
  • 12. The Fourier Series Representation - Synthesis and Analysis Example(2) : x(t) = 1 + sinωot + 2cosωot + cos(2ωot + π 4 ). Represent this as FS : (4). x(t) = 1 + ejωot − e−jωot 2j + 2( ejωot + e−jωot 2 ) + ej(ωot+π 4 ) + e−j(ωot+π 4 ) 2 x(t) = 1 + ejωot (1 + 1 2j ) + e−jωot (1 − 1 2j ) + 1 2 ej π 4 ej2ωot + 1 2 e−j π 4 e−j2ωot x(t) = ∞ X k=−∞ akejkωot with ak =                      1, k = 0 1 + 1 2j , k = +1 1 − 1 2j , k = −1 1 2ej π 4 , k = +2 1 2e−j π 4 , k = −2 0, otherwise Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 11 / 59
  • 13. The Fourier Series Representation - Synthesis and Analysis Determining the FS coefficient {ak} Assuming the FS representation of x(t) exists, meaning x(t) can be written in the form x(t) = ∞ X k=−∞ akejkωot , x(t) = x(t + T), T = 2π ωo Is there a way to obtain ak using mathematical analysis? Let us multiply x(t) with e−jnωot and integrate over one period. Z T 0 x(t)e−jnωot dt (5) = Z T 0 ( ∞ X k=−∞ akejkωot )e−jnωot dt, replaced x(t) in (5) with (4). Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 12 / 59
  • 14. The Fourier Series Representation - Synthesis and Analysis Determining the FS coefficient {ak} = ∞ X k=−∞ ak Z T 0 ej(k−n)ωot dt (6) solving the integral, Z T 0 (ej(k−n)ωot )dt = 1 j(k − n)ωo ej(k−n)ωot T 0 = 1 j(k − n)ωo (ej(k−n)ωoT − 1) = 1 j(k − n)ωo (ej(k−n)ωo 2π ωo − 1) = 1 j(k − n)ωo (ej(k−n)2π − 1) = 0 k ̸= n Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 13 / 59
  • 15. The Fourier Series Representation - Synthesis and Analysis Determining the FS coefficient {ak} when k = n, then Z T 0 (ej(k−n)ωot )dt = Z T 0 (1)dt = T Therefore, Z T 0 ej(k−n)ωot dt = ( T, k = n 0, k ̸= n From(5), Z T 0 x(t)e−jnωot dt = ∞ X k=−∞ ak Z T 0 ej(k−n)ωot dt Z T 0 x(t)e−jnωot dt = anT Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 14 / 59
  • 16. The Fourier Series Representation - Synthesis and Analysis Determining the FS coefficient {ak} Z T 0 x(t)e−jnωot dt = anT =⇒ an = 1 T Z T 0 x(t)e−jnωot dt In conclusion, if the FS representation of a periodic signal x(t) with period T = 2π ωo exists, then x(t) = ∞ X k=−∞ akejkωot ←− (Synthesis Equation) ak = 1 T Z T 0 x(t)e−jkωot dt ≜ 1 T Z T x(t)e−jkωot dt ←− (Analysis Equation) {ak} ←− (Fourier Seies/ Spectral coefficients) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 15 / 59
  • 17. The Fourier Series Examples Example 1 : Square Wave x(t) = ( 1, |t| < T1 0, T1 < |t| < T 2 x(t) is periodic with period T. −T −T 2 −T1 0 T1 T 2 T · · · · · · 1 x(t) t Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 16 / 59
  • 18. The Fourier Series Examples Example 1 : Square Wave Solution: −T −T 2 −T1 0 T1 T 2 T T · · · · · · 1 x(t) t ak = 1 T Z T x(t)e−jkωot dt ak = 1 T Z T 2 −T 2 x(t)e−jkωot dt = 1 T Z T1 −T1 (1)e−jkωot dt = 1 T Z T1 −T1 e−jkωot dt = 1 T 1 −jkωo e−jkωot T1 −T1 = 1 T 1 −jkωo (e−jkωoT1 − ejkωoT1 ) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 17 / 59
  • 19. The Fourier Series Examples Example 1 : Square Wave = 1 T 1 jkωo (ejkωoT1 − e−jkωoT1 ) = 1 T 2 kωo ( ejkωoT1 − e−jkωoT1 2j ) = 2sin(kωoT1) kωoT = 2sin(kωoT1) kωo 2π ωo = sin(kωoT1) kπ , k ∈ −∞, ..., −2, −1, 0, 1, 2, ..., ∞ x(t) = ∞ X −∞ akeejkωot ak = sin(kωoT1) kπ Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 18 / 59
  • 20. The Fourier Series Examples Example 1 : Square Wave Let’s consider a square wave with T = 0.02 sec, and T1 = 0.005 sec. −0.02 −0.01−0.005 0 0.005 0.01 0.02 · · · · · · 1 x(t) t(sec) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 19 / 59
  • 21. The Fourier Series Examples (Example 1 : Square Wave) ωo 2ωo 3ωo 4ωo 5ωo 6ωo 7ωo −ωo −2ωo −3ωo −4ωo −5ωo −6ωo −7ωo Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 20 / 59
  • 22. The Fourier Series Examples (Example 1 : Square Wave) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 21 / 59
  • 23. The Fourier Series Examples (Example 1 : Square Wave) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 22 / 59
  • 24. The Fourier Series Examples Example 2 : x(t) is periodic with period T = 2. x(t) = e−t , −1 < t < 1 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 23 / 59
  • 25. The Fourier Series Examples Example 2 : x(t) is periodic with period T = 2. x(t) = e−t , −1 < t < 1 Solution: ak = 1 T Z T x(t)e−jkωot dt ak = 1 2 Z 1 −1 e−t e−jkωot dt = 1 2 Z 1 −1 e(−1+jkωo)t dt Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 24 / 59
  • 26. The Fourier Series Examples Example 2 : x(t) is periodic with period T = 2. x(t) = e−t , −1 < t < 1 ak = 1 2 e(−1+jkωo)t −(1 + jkωo) +1 −1 = 1 2 e(1+jkωo) − e−(1+jkωo) (1 + jkωo) ωo = 2π T = 2π 2 = πrad/s ak = 1 2 e1ejkπ − e−1e−jkπ (1 + jkπ) ak = 1 2 (−1)k (1 + jkπ) (e1 − e−1 ) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 25 / 59
  • 27. The Fourier Series Examples Example 2 : x(t) is periodic with period T = 2. x(t) = e−t , −1 < t < 1 x(t)= P∞ −∞ akejkω0t ak= 1 2 (−1)k (1+jkπ) (e1−e−1) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 26 / 59
  • 28. The Fourier Series Examples (Example 2 : Periodic Exponential Signal) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 27 / 59
  • 29. The Fourier Series Examples (Example 2 : Periodic Exponential Signal) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 28 / 59
  • 30. Gibb’s Phenomenon The Gibbs phenomenon is a common occurrence in Fourier analysis. It refers to the overshoot and oscillations that occur near jump discontinuities of a function. The phenomenon is observed when approximating a discontinuous function using its Fourier series. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 29 / 59
  • 31. Gibb’s Phenomenon : Mathematical Explanation The Gibbs phenomenon arises due to the inability of the Fourier series to accurately represent discontinuous functions. Near a jump discontinuity, the Fourier series overshoots the function’s value and produces oscillations that persist even as the number of terms in the series increases. The overshoot near the discontinuity is typically about 9% of the height of the jump. The exact proportion is given by the Wilbraham-Gibbs Constant. 1 π Z π 0 sint t dt − 1 2 = 0.089489. . . It may also be noted that as more number of terms in the series are added, the frequency increases and the overshoots become sharper, but the amplitude of the adjoining oscillation reduces, i.e., the error between the original signal x(t) and the approximated signal in red reduces except at edges as the n increases. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 30 / 59
  • 32. Gibb’s Phenomenon : Implications In biomedical signals (such as ECG, EEG, etc.) and images (such as MRI, CT scans, etc.), Gibbs’ phenomenon can lead to: Ringing artifacts: Oscillations near abrupt changes (e.g., edges, boundaries) in the signal or image. False features: Spurious oscillations that may be misinterpreted as actual features. Image quality degradation: The overshoots and oscillations can affect the accuracy of measurements and diagnoses. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 31 / 59
  • 33. Properties of FS Linearity x(t) FS ←→ ak y(t) FS ←→ bk both x(t) and y(t) have the same period T. z(t) = Ax(t) + By(t) z(t) FS ←→ ck ck = 1 T Z T z(t)e−jkωot dt = 1 T Z T [Ax(t) + By(t)]e−jkωot dt ck = A T Z T x(t)e−jkωot dt + B T Z T y(t)e−jkωot dt ck = Aak + Bbk Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 32 / 59
  • 34. Properties of FS Time Shifting x(t) FS ←→ ak x(t − to) FS ←→ bk =? bk = 1 T Z T x(t − to)e−jkωot dt Let τ = t − to =⇒ dt = dτ t = 0 → τ = −to t = T → τ = T − to bk = 1 T Z T−to to x(τ)e−jkωo(τ+to) dτ = e−jkωoto T Z T−to to x(τ)e−jkωoτ dτ bk = e−jkωoto ak Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 33 / 59
  • 35. Properties of FS Time Shifting x(t) FS ←→ ak x(t − to) FS ←→ bk = e−jkωoto ak e−jkωoto represents the change in phase. |bk| = |e−jkωoto ||ak| |bk| = |ak|, ∵ |e−jkωoto | = 1 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 34 / 59
  • 36. Properties of FS Time Reversal x(t) FS ←→ ak x(−t) FS ←→ bk =? bk = 1 T Z T x(−t)e−jkωot dt Let τ = −t =⇒ −dt = dτ t = 0 → τ = 0 t = T → τ = −T bk = −1 T Z −T 0 x(τ)ejkωoτ dτ = 1 T Z 0 −T x(τ)ejkωoτ dτ Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 35 / 59
  • 37. Properties of FS Time Reversal bk = 1 T Z T x(τ)e−j(−k)ωoτ dτ bk = a−k x(−t) = ∞ X k=−∞ bkejkωot = ∞ X k=−∞ a−kejkωot What if the signal is even? if x(t) = x(−t) x(t) FS ←→ ak x(−t) FS ←→ a−k    =⇒ ak = a−k The FS coefficients are symmetric, i.e.,ak = a−k. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 36 / 59
  • 38. Properties of FS Time Reversal What if the signal is odd? if x(t) = −x(−t) x(t) FS ←→ ak x(−t) FS ←→ a−k    =⇒ ak = −a−k The FS coefficients are anti-symmetric, i.e.,ak = −a−k. What can we say about a0? a0 = −a0 =⇒ a0 = 0 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 37 / 59
  • 39. Properties of FS Time Scaling x(t) FS ←→ ak x(αt) is periodic with a period T α . if x(t) = ∞ X k=−∞ akejkωot x(αt) = ∞ X k=−∞ akejkωoαt = ∞ X k=−∞ akejk(αωo)t With time scaling, FS coefficients do not change, but the frequency/ time period does. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 38 / 59
  • 40. Properties of FS Conjugation x(t) FS ←→ ak x∗ (t) FS ←→ bk =? bk = 1 T Z T x∗ (t)e−jkωot dt = 1 T Z T x∗ (t)e−jkωot dt ∗∗ = 1 T Z T x(t)ejkωot dt | {z } a−k ∗ bk = (a−k)∗ = a∗ −k Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 39 / 59
  • 41. Properties of FS Conjugation If x(t) is real. x(t) = x∗(t) x(t) FS ←→ ak x∗ (t) FS ←→ a∗ −k    =⇒ ak = a∗ −k FS coefficients are conjugate symmetric. a0 = a∗ −0 =⇒ a0 = a∗ 0 =⇒ a0 is real. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 40 / 59
  • 42. Properties of FS Conjugation If x(t) is real and even. Real: ak = a∗ −k (i) Even: ak = a−k (ii) =⇒ a∗ k = a−k (iii) comparing (ii) and (iii): ak = a∗ k. =⇒ ak is real. If x(t) is real and even, then FS coefficients must be real. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 41 / 59
  • 43. Properties of FS Conjugation If x(t) is real and odd. Real: ak = a∗ −k (iv) Odd: ak = −a−k (v) comparing (iv) and (v): ak = −a∗ k. =⇒ ak is imaginary. Real part of ak’s must be zero. If x(t) is real and even, then FS coefficients must be purely imaginary. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 42 / 59
  • 44. Properties of FS : Example Determine the FS representation for x(t). T = 4, ωo = 2π T = π 2 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 43 / 59
  • 45. Properties of FS : Example Recall we have already solved a square wave signal provided above and it’s FS representation was calculated to be: g(t) FS ←→ ak = (sin(k π 2 ) kπ k ̸= 0 1 2 k = 0 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 44 / 59
  • 46. Properties of FS : Example By looking at the two signals we can write x(t) in terms of g(t) as, x(t) = g(t − 1) − 1 2 g(t − 1) FS ←→ ake−jk π 2 .1 y(t) = 1 2 FS ←→ ck = ( 1 2 k = 0 0 k ̸= 0 x(t) = g(t − 1) − 1 2 FS ←→ bk = ake−jk π 2 .1 − ck bk = (sink π 2 kπ ejk π 2 k ̸= 0 0 k = 0 bk = (sink π 2 kπ (j)k k ̸= 0 0 k = 0 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 45 / 59
  • 47. Properties of FS Parseval’s Relation Power in one time period = 1 T Z T |x(t)|2 dt x(t) = ∞ X k=−∞ akejkωot P = 1 T Z T |x(t)|2 dt = 1 T Z T x(t)x∗ (t)dt = 1 T Z T |x(t)|2 dt = 1 T Z T ∞ X k=−∞ akejkωot | {z } x(t) ∞ X m=−∞ a∗ me−jmωot | {z } x∗(t) dt = 1 T ∞ X k=−∞ ∞ X m=−∞ Z T aka∗ mejkωot e−jmωot dt Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 46 / 59
  • 48. Properties of FS Parseval’s Relation = 1 T ∞ X k=−∞ ∞ X m=−∞ aka∗ m Z T ej(k−m)ωot dt Z T ej(k−m)ωot dt = ( T, m = k 0, m ̸= k = 1 T ∞ X k=−∞ ak ∞ X m=−∞ a∗ m Z T ej(k−m)ωot dt | {z } a∗ kT = 1 T ∞ X k=−∞ aka∗ kT = ∞ X k=−∞ aka∗ k = ∞ X k=−∞ |ak|2 1 T Z T |x(t)|2 dt = ∞ X k=−∞ |ak|2 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 47 / 59
  • 49. Properties of FS Example: 1 x(t) is real. 2 x(t) is periodic with period T = 4. 3 The FS coefficients ak are zero for |k| 1. 4 The signal with FS given by bk = a−kejk π 2 is odd. 5 1 4 R T |x(t)|2dt = 1 2. Determine x(t). Solution: Since ak = 0 for |k| 1, then only possible non-zero FS coefficients are a−1, a0, a+1. T = 4, ωo = 2π 4 = π 2 . Using the synthesis expression : x(t) = P+∞ k=−∞ akejkωot. =⇒ x(t) = a−1e−j π 2 t + a0 + a+1ej π 2 t (A) Only need to determine a+1, a0, a+1. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 48 / 59
  • 50. Properties of FS : Example Since the signal is real. a+1 = a∗ −1, a0 is real. The signal corresponding to bk is a shifted and flipped version of x(t) and therefore must be real.Since, the signal is odd, b0 = 0, ∵ bk = ejk π 2 a−k we have a0 = 0. Since the signal is real and odd,bk’s are imaginary. bk = ejk π 2 a−k =⇒ b1 = ej π 2 a−1 = ja−1 =⇒ b−1 = ej π 2 a+1 = −ja+1 =⇒ a−1 and a+1 must be real. Since a−1 = a∗ +1 and a−1 and a+1 are real, a−1 = a+1 Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 49 / 59
  • 51. Properties of FS : Example 1 4 Z 4 |x(t)|2 dt = 1 2 =⇒ |a−1|2 + 0 |a0|2 + |a+1|2 = 1 2 =⇒ |a1|2 = 1 4 =⇒ |a1| = 1 2 =⇒ x(t) = a+1ej π 2 t + a−1e−j π 2 t = 1 2 ej π 2 t + 1 2 e−j π 2 t or = − 1 2 ej π 2 t − 1 2 e−j π 2 t x(t) = ±cos( π 2 t) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 50 / 59
  • 52. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials Complex Exponential : x(t) = sst where, s = σ |{z} ℜ(s) +j ω |{z} ℑ(s) LTI h(t) y(t) =? x(t) = est y(t) = Z ∞ −∞ h(τ)x(t − τ)dτ = Z ∞ −∞ h(τ)es(t−τ) dτ = est Z ∞ −∞ h(τ)e−sτ dτ | {z } H(s) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 51 / 59
  • 53. Fourier Series and LTI Systems y(t) = est Z ∞ −∞ h(τ)e−sτ dτ | {z } H(s) y(t) = est H(s) where, H(s) = Z ∞ −∞ h(τ)e−sτ dτ By looking at the y(t) we can say if the input to an LTI system is a complex exponential then output is also a complex exponential multiplied by H(s). In linear algebra we have learned about eigen vectors and eigen values. Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 52 / 59
  • 54. Fourier Series and LTI Systems y(t) = est Z ∞ −∞ h(τ)e−sτ dτ | {z } H(s) y(t) = est H(s) where, H(s) = Z ∞ −∞ h(τ)e−sτ dτ By looking at the y(t) we can say if the input to an LTI system is a complex exponential then output is also a complex exponential multiplied by H(s). In linear algebra we have learned about eigen vectors and eigen values. Ax̄ = λ |{z} Eigen value x̄ |{z} Eigen vector We say that x(t) = est is an eigenfunction for an LTI system with a corresponding eigenvalue H(s). Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 52 / 59
  • 55. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials LTI h(t) y(t) =? x(t) = P∞ k=−∞ akejkωot LTI h(t) x(t) = ejkωot y(t) =? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 53 / 59
  • 56. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials LTI h(t) y(t) =? x(t) = P∞ k=−∞ akejkωot LTI h(t) x(t) = ejkωot y(t) = ejkωotH(jkωo) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 54 / 59
  • 57. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials LTI h(t) x(t) = ejkωot y(t) = ejkωotH(jkωo) LTI h(t) x(t) = akejkωot y(t) =? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 55 / 59
  • 58. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials LTI h(t) x(t) = ejkωot y(t) = ejkωotH(jkωo) LTI h(t) x(t) = akejkωot y(t) = akejkωotH(jkωo) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 56 / 59
  • 59. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials LTI h(t) x(t) = akejkωot y(t) = akejkωotH(jkωo) LTI h(t) x(t) = P∞ k=−∞ akejkωot y(t) =? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 57 / 59
  • 60. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials LTI h(t) x(t) = akejkωot y(t) = akejkωotH(jkωo) LTI h(t) x(t) = P∞ k=−∞ akejkωot y(t) = P∞ k=−∞ akejkωotH(jkωo) y(t) = ∞ X k=−∞ akH(jkωo)ejkωot Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 58 / 59
  • 61. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials y(t) = ∞ X k=−∞ akH(jkωo)ejkωot What can we say about the periodicity of y(t)? Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 59 / 59
  • 62. Fourier Series and LTI Systems Response of LTI Systems to Complex Exponentials y(t) = ∞ X k=−∞ akH(jkωo)ejkωot What can we say about the periodicity of y(t)? Indeed y(t) is periodic with period T = 2π ωo . y(t) = ∞ X k=−∞ akH(jkωo) | {z } FS coefficients bk ejkωot y(t) = ∞ X k=−∞ bkejkωot where bk = akH(jkωo) Dr. Muhammad Rehan Chaudhry Fourier Series Spring 2024 EE220 Signals and Systems 59 / 59