Lecture 8
Lecture 8
Engineering
Signals Theory
Fourier Series
of CT signals
Signals Theory
Dr. Ahmed Abdelhaleem
Fall 2022/23
2
E-mail: [email protected]
Outline
1) Time domain & Frequency domain
2) Trigonometric Fourier Series (TFS)
3) Exponentials Fourier Series (EFS)
4) Discrete amplitude and phase spectrum
5) Compact Fourier Series (CFS)
4 Time domain & Frequency domain
Time domain & Frequency domain
5
Time domain :
❑ Every point on the time domain plot represents
the amplitude at a particular time
Frequency domain:
Every point on a frequency spectrum
represents the power or amount of energy at
that frequency over a finite time window
Amplitudes, frequencies, and phases.
Time domain & Frequency domain
6
Signal is made up of
components at
various frequencies,
in which each
component is a
sinusoid.
By adding together
enough sinusoidal
signals, each with the
appropriate
amplitude, frequency,
and phase, any signal
can be constructed
Spectrum
7
1
𝑓0 =
𝑇0
Time- domain / frequency- domain
10
for sin wave
The frequency domain is more compact and useful when
we are dealing with more than one sine wave.
For example, shows three sine waves, each with different
amplitude and frequency. All can be represented by three
spikes in the frequency domain.
Time- domain / frequency- domain
11
for Composite Signals
A single- frequency sine wave is not useful in
communications;
we send a composite signal, a signal made of many sine
waves.
A composite signals is made up of many sine waves with
different frequencies, amplitudes, and phases.
Decomposition of Periodic signals gives a series of sine
wave signals with discrete frequencies;
If the composite signal is nonperiodic, the decomposition
gives a combination of sine waves with continuous
frequencies.
Time- domain / frequency- domain
12
for Composite Signals
Example 1 :
shows a periodic composite signal with :
The range of
frequencies
contained in a
composite signal is
its bandwidth.
the difference
between the
highest and the
lowest frequencies
contained in that
signal
B. W. = fh – fl.
Time- domain / frequency- domain
Bandwidth
15
Example 3:
If a periodic signal is decomposed into five sine waves with
frequencies of 100, 300, 500, 700, and 900 Hz, what is its
bandwidth? Draw the spectrum, assuming all components have a
maximum amplitude of 10 V.
Solution
Let fh be the highest frequency, fl the lowest frequency, and B the
bandwidth. Then
𝑇0
2
𝐵1 = න 𝑥(𝑡) sin 𝜔0 𝑡 𝑑𝑡
𝑇0
0
Approximating a periodic signal
25
with trigonometric functions
The best approximation of a square wave with unity
4
amplitude, is to choose 𝐵1 = .
𝜋
Approximating a periodic signal
26
with trigonometric functions
The square-wave signal x(t) and its three-frequency
approximation
1
ao =
To x(t )dt ao → the signal average or DC
value of x(t).
To
2
an =
To x(t ) cos(n t )dt
o an → the even coefficient (=0
if x(t) is odd signal)
To
2
bn =
To x(t ) sin(n t )dt
o bn → the odd coefficient (=0 if
To
x(t) is even signal)
Where
To
represents integration over any interval of length To.
Trigonometric Fourier Series
29
𝑇0
so 0 𝑥(𝑡) 2 𝑑𝑡 < ∞
Example 5:
Find the trigonometric Fourier series for the periodic
signal
𝑥 𝑡 = 3 𝑐𝑜𝑠 2𝑡 , 𝑡 ∈ 0,2𝜋
Solution
We first compute the integrals for the Fourier
coefficients, where 𝑇0 = 2𝜋
1 𝑇0
𝑎0 = න 𝑥 𝑡 𝑑𝑡
𝑇0 0
1 2𝜋
= න 3 𝑐𝑜𝑠 2𝑡 𝑑𝑡 = 0
2𝜋 0
Trigonometric Fourier Series
32
Example 5: Solution
2 𝑇0
𝑎𝑛 = න 𝑥 𝑡 cos 𝑛𝜔0 𝑡 𝑑𝑡
𝑇0 0
2𝜋 2𝜋
Where 𝜔0 = = =1
𝑇0 2𝜋
2𝜋
1
𝑎𝑛 = න 3 𝑐𝑜𝑠 2𝑡 cos 𝑛𝑡 𝑑𝑡 = 0, 𝑛≠2
𝜋 0
1 2𝜋
𝑎2 = න 3 𝑐𝑜𝑠 2𝑡 cos 2𝑡 𝑑𝑡
𝜋 0
1 2𝜋
= න 3 𝑐𝑜𝑠 2 2𝑡 𝑑𝑡 = 3
𝜋 0
Trigonometric Fourier Series
33
Example 5: Solution
1 2𝜋 3 3
𝑎2 = න 1 + 𝑐𝑜𝑠 4𝑡 𝑑𝑡 = 2𝜋 = 3
𝜋 0 2 2𝜋
2 𝑇0
𝑏𝑛 = න 𝑥 𝑡 sin 𝑛𝜔0 𝑡 𝑑𝑡
𝑇0 0
1 2𝜋
𝑏𝑛 = න 3 𝑐𝑜𝑠 2𝑡 sin 𝑛𝑡 𝑑𝑡 = 0, ∀𝑛
𝜋 0
Finally 𝑥 𝑡 = 𝑎0 + σ∞
𝑛=1 𝑎𝑛 𝑐𝑜𝑠 𝑛𝜔0 𝑡 + 𝑏𝑛 𝑠𝑖𝑛 𝑛𝜔0 𝑡
𝑥 𝑡 = 3 𝑐𝑜𝑠 2𝑡
Trigonometric Fourier Series
34
Example 6:
Find the trigonometric Fourier series for the periodic signal
𝑇𝑝
𝐴, |𝑡| ≤ 𝑇 𝑇
𝑥 𝑡 = 2 , − <𝑡≤
𝑇𝑝 2 2
0, |𝑡| >
2
Solution
Trigonometric Fourier Series
35
Example 6: Solution
It is an even function with period T. The function is a
pulse function with amplitude A, and pulse width Tp.
∞
Example 6: Solution
𝑇𝑝
𝑇
1 2 𝐴 2𝑝
𝑎0 = න 𝑇 𝐴 𝑑𝑡 = 𝑡 | 𝑇𝑝
𝑇 −𝑝 𝑇 −
2 2
𝑇𝑝
=𝐴
𝑇
The other terms follow from
2 𝑇0
𝑎𝑛 = න 𝑥 𝑡 cos 𝑛𝜔0 𝑡 𝑑𝑡
𝑇0 0
𝑇𝑝
2 2
= න 𝑇 𝐴 cos 𝑛𝜔0 𝑡 𝑑𝑡
𝑇 −𝑝
2
Trigonometric Fourier Series
37
Example 6: Solution
𝑇
2𝐴 sin 𝑛𝜔0 𝑡 2𝑝
𝑎𝑛 = | 𝑇𝑝
𝑇 𝑛𝜔0 −
2
2𝐴 𝑇𝑝 𝑇𝑝
= sin 𝑛𝜔0 − sin −𝑛𝜔0
𝑇𝑛𝜔0 2 2
Since sine is an odd function, sin(𝑎) − sin(−𝑎) = 2sin(𝑎) , and
using the fact that ω0=2π/T and
2𝐴 𝑇𝑝
𝑎𝑛 = sin 𝜋𝑛
𝜋𝑛 𝑇
Because x(t) is an even signal then bn =0
Trigonometric Fourier Series
38
Example 6: Solution
Consider the case when the duty cycle is 50% (this means that the
function is high 50% of the time, or Tp=T/2), A=1, and T=2. In this
case 𝒂𝟎 = 𝒂𝒗𝒆𝒓𝒂𝒈𝒆 = 𝟎. 𝟓 and for n≠0:
2 𝜋𝑛
𝑎𝑛 = sin
𝜋𝑛 2
For n=0,1,2,3,4,5 ,….→
𝑛−1
𝜋𝑛
sin = 0, 1,0, −1, 0, 1, … = ൝−1 2 , 𝑛 𝑜𝑑𝑑
2 0, 𝑛 𝑒𝑣𝑒𝑛
Then
2 𝑛−1
𝑎𝑛 = ቐ𝜋𝑛 −1
2 , 𝑛 𝑜𝑑𝑑
0, 𝑛 𝑒𝑣𝑒𝑛
39 Exponential Fourier Series
Exponential Fourier Series
40
𝑒 𝑗𝑛𝜔0𝑡 − 𝑒 −𝑗𝑛𝜔0𝑡
sin(𝑛𝜔0 𝑡) =
2𝑗
Exponential Fourier Series
42
So
𝑥 𝑡
∞
1 𝑗𝑛𝜔 𝑡 1 −𝑗𝑛𝜔 𝑡 1 𝑗𝑛𝜔 𝑡 1 −𝑗𝑛𝜔 𝑡
= 𝑎0 + 𝑎𝑛 𝑒 0 + 𝑒 0 + 𝑏𝑛 𝑒 0 − 𝑒 0
2 2 2𝑗 2𝑗
𝑛=1
∞
𝑎𝑛 𝑗𝑛𝜔 𝑡 𝑎𝑛 −𝑗𝑛𝜔 𝑡 𝑏𝑛 𝑗𝑛𝜔 𝑡 𝑏𝑛 −𝑗𝑛𝜔 𝑡
𝑥 𝑡 = 𝑎0 + 𝑒 0 + 𝑒 0 + 𝑒 0 − 𝑒 0
2 2 2𝑗 2𝑗
𝑛=1
∞
𝑎𝑛 𝑏𝑛 𝑗𝑛𝜔 𝑡 𝑎𝑛 𝑏𝑛 −𝑗𝑛𝜔 𝑡
𝑥 𝑡 = 𝑎0 + + 𝑒 0 + − 𝑒 0
2 2𝑗 2 2𝑗
𝑛=1
Exponential Fourier Series
43
Let
𝑎𝑛 𝑏𝑛 𝑎𝑛 − 𝑗𝑏𝑛
𝐶𝑛 = + =
2 2𝑗 2
𝑎𝑛 𝑏𝑛 𝑎𝑛 + 𝑗𝑏𝑛
𝐶−𝑛 = − =
2 2𝑗 2
𝐶0 = 𝑎0
Then
∞
𝑥 𝑡 = 𝐶𝑛 𝑒 𝑗𝑛𝜔0 𝑡
𝑛=−∞
x(t ) = n
c e jn0t
n = −
= ... + c −2 e − j 2 0 t
+ c −1e − j 0 t
+ c0 + c1e j 0 t
+ c 2 e j 2 0 t
+ ...
Exponential Fourier Series
45
1
𝐶𝑛 = න 𝑥 𝑡 𝑒 −𝑗𝑛𝜔0 𝑡 𝑑𝑡
𝑇0 𝑇0
𝑎𝑛 − 𝑗𝑏𝑛
, 𝑛>0
2
𝐶𝑛 = 𝑎0 , 𝑛=0
𝑎𝑛 + 𝑗𝑏𝑛
, 𝑛<0
2
Exponential Fourier Series
47
Because
2𝐶𝑛 = 𝑎𝑛 − 𝑗𝑏𝑛
Then
𝑎𝑛 = 𝑅𝑒{2𝐶𝑛 }
and
𝑏𝑛 = −𝐼𝑚{2𝐶𝑛 }
Exponential Fourier Series
48
Example: let
𝑥 𝑡 = 𝐴𝑒 𝑗𝜔𝑡
Then
Amplitude =A mz
Phase: Θ = ωt A ω radian per second
ω : Angular Velocity
rotation speed
◼+ : counterclockwise ez
-A A
-A
Phasor Representation
Exponential Fourier Series
49
Example: let
𝑥 𝑡 = 𝐴𝑒 𝑗𝜔𝑡
Then
= 2πf
Frequency: f (Hz)
Example: let
𝑥 𝑡 = 𝐴𝑒 −𝑗𝜔𝑡
Then
Amplitude =A A
Phase: Θ = -ωt
-ω : Angular Velocity
rotation speed
◼- : clockwise -f
Frequency: -f (Hz)
Frequency Domain Representation
Exponential Fourier Series
51
Example: for
𝑥 𝑡 = 𝐴 cos(𝜔0 𝑡)
𝐴 𝑗𝜔 𝑡 𝐴 −𝑗𝜔 𝑡
= 𝑒 0 + 𝑒 0
2 2
𝐴 𝐴
2 2
Note:
∞
𝑥 𝑡 = 𝐶𝑛 𝑒 𝑗𝑛𝜔0 𝑡
𝑛=−∞
𝐶𝑛 = 𝑎0 ,
2
, 𝑛>0
𝑛=0
𝑎𝑛 + 𝑗𝑏𝑛
53 , 𝑛<0
2
cn
c− 2 c2
c−1 c c1
c− n o cn
[nfo]
-nfo -2fo -fo fo 2fo nfo
Discrete magnitude and phase
spectrum
56
−n
−1
−2
Exponential Fourier Series
57
Example 7:
Compute the complex exponential Fourier series
coefficients for the given periodic signal, then
sketch the discrete magnitude and phase spectrum
A −T / 2 t T / 2
x(t ) = p(t − kTo ) where p(t ) =
k = −
0 elsewhere
Exponential Fourier Series
58
Example 7: solution
𝑇0
1 2
𝐶𝑛 = න 𝑥 𝑡 𝑒 −𝑗𝑛𝜔0 𝑡 𝑑𝑡
𝑇0 −𝑇0
2
𝑇
1 2
= න 𝐴 𝑒 −𝑗𝑛𝜔0 𝑡 𝑑𝑡
𝑇0 −𝑇
2
𝐴 𝑒 −𝑗𝑛𝜔0 𝑡 𝑇2
= | 𝑇
𝑇0 −𝑗𝑛𝜔0 −2
Exponential Fourier Series
59
Example 7: solution
𝑇 𝑇
−𝑗𝑛𝜔0 𝑗𝑛𝜔0
𝐴𝑒 −𝑒
2 2
𝐶𝑛 =
𝑇0 −𝑗𝑛𝜔0
𝑇 𝑇
𝑗𝑛𝜔0 2 −𝑗𝑛𝜔0 2
𝐴 𝑒 −𝑒
=
𝑛𝜔0 𝑇0 𝑗
𝐴 𝑇
= 2 sin 𝑛𝜔0
𝑛𝜔0 𝑇0 2
2𝜋
Here 𝜔0 =
𝑇0
𝐴 𝑇
𝐶𝑛 = sin 𝑛𝜋
𝑛𝜋 𝑇0
Exponential Fourier Series
60
Example 7: solution
𝐴 𝑇
𝐶𝑛 = sin 𝑛𝜋
𝑛𝜋 𝑇0
𝑇
𝑇 sin 𝑛𝜋
𝑇0
=𝐴
𝑇0 𝑛𝜋 𝑇
𝑇0
𝐴𝑇 𝑇
= sin𝑐 𝑛𝜋
𝑇0 𝑇0
So 𝐶𝑛 is pure real
𝐴𝑇 𝑇
𝐶𝑛 = sin𝑐 𝑛𝜋 + 𝑗 (0)
𝑇0 𝑇0
Exponential Fourier Series
61
Example 7: solution
Then, the discrete magnitude spectrum is given by the function
TA
cn = sin c(nT / To )
To
𝑇
𝐴𝑇 sin 𝑛𝜋 𝑇0
|𝐶𝑛 | =
𝑇0 𝑇
𝑛𝜋
𝑇0
n Cn
0 𝐴𝑇
𝑇0
1 …
Exponential Fourier Series
62
Example 7: solution
𝐴𝑇 𝑇
𝐶𝑛 = sin𝑐 𝑛𝜋 + 𝑗 (0)
𝑇0 𝑇0
The discrete phase spectrum
is given by
Im(cn ) 0
n = tan −1 = tan −1 = 0 OR 180o
Re( cn ) Re( cn )
−1 0
an = 0 OR 180o
Re( cn )
This is because cn is real, so θn
is 0 if cn is positive and
1 80o if cn is negative.
Exponential Fourier Series
63
Example 7: solution
for
𝑇=1
𝐴=1
𝑇0 = 2, 5, 10
1 𝑛𝜋
𝐶𝑛 = sin𝑐
𝑇0 𝑇0
Zero crossing
𝑛𝜋
= 𝑘𝜋
𝑇0
𝑛 = 𝑘𝑇0
Exponential Fourier Series
64
x(t ) = k − jo tk
* *
C e
k = −
P = x(t ) x(t ) dt = Ck Ck
* *
To k = −
2
= C
k = −
k This is called the Parseval’s Identity
Some useful Relations
65
0 n odd 0 n even
cos( n ) = n sin(n ) = n −1
2 (−1) 2 n even 2 (−1) 2 n odd