Professional Documents
Culture Documents
In this chapter we will analyze techniques which allow the representation of signals in the
frequency domain rather than in the time domain. This helps to identify what frequencies are
present in a signal.
To switch between a signal y(t ) in the time domain to its frequency domain representation
y( f ) we will study two particular techniques:
∫ y(t) dt
t
≤ M where M < ∞
2) Within one period, y(t ) has a finite number of discontinuities, maxima and minima
i. Trigonometric Representation
Note that wo = 2p f o =
2p where is the fundamental frequency in Hz and is the
fo To
To
fundamental period.
The coefficients ao , ak and bk can be computed as shown:
1
ao =
To ò y(t )dt
To
(2)
2 (3)
ak =
To ò
To
y (t ) cos(kwot )dt k = 1, 2, !
2 (4)
bk =
To ò
To
y (t ) sin(kwot )dt k = 1, 2, !
!! !! % !! % !!
! 𝑦(𝑡)𝑑𝑡 = ! 𝑎# 𝑑𝑡 + * 𝑎$ ! cos (𝑘𝜔# 𝑡)𝑑𝑡 + * 𝑏$ ! sin (𝑘𝜔# 𝑡)𝑑𝑡
" " $&' " $&' "
!
= [𝑎# 𝑡]"! = 𝑎# 𝑇#
' !
𝑎# = ! ∫" ! 𝑦(𝑡)𝑑𝑡
!
Note that ao represents the mean of the signal over one period. Hence ao gives the dc value.
Multiply (1) on both sides by cos (𝑛𝜔# 𝑡) and integrate over one period:
"!
! 𝑦(𝑡) cos(𝑛𝜔! 𝑡) 𝑑𝑡
#
"! % "!
= ! 𝑎! cos(𝑛𝜔! 𝑡) 𝑑𝑡 + / ! 𝑎$ cos(𝑘𝜔! 𝑡) cos(𝑛𝜔! 𝑡) 𝑑𝑡
# $&' #
% "!
+ / ! b( sin (𝑘𝜔! 𝑡) cos(𝑛𝜔! 𝑡) 𝑑𝑡
$&' #
T ì0 m¹n
ï
ò0 cos(mt ) cos(nt )dt = í T m=n
ïî 2
T ì0 m¹n
ï
ò0 sin(mt ) sin(nt )dt = í T m=n
ïî 2
To
To
ò y(t ) cos(nw t )dt = a
0
o k
2
To
2
\ ak =
To ò y(t ) cos(nw t )dt
o
o n = 1, 2, !
Multiply (1) on both sides by sin (𝑛𝜔# 𝑡) and integrate over 1 period:
"!
! 𝑦(𝑡) sin(𝑛𝜔! 𝑡) 𝑑𝑡
#
"! % "!
= ! 𝑎! sin(𝑛𝜔! 𝑡) 𝑑𝑡 + / ! 𝑎$ cos(𝑘𝜔! 𝑡) sin(𝑛𝜔! 𝑡) 𝑑𝑡
# $&' #
% "!
𝑇𝑜
+ / ! b( sin (𝑘𝜔! 𝑡) sin(𝑛𝜔! 𝑡) 𝑑𝑡 = 𝑏𝑘
2
$&' #
2 !!
𝑏$ = ! 𝑦(𝑡) sin(𝑛𝜔# 𝑡) 𝑑𝑡 𝑛 = 1,2, …
𝑇# "
Depending on the nature of the signal 𝑦(𝑡), some knowledge on the values of 𝑎$ and 𝑏$ can be
obtained. Specifically:
Case 1:
𝑦(𝑡) = 𝑦(−𝑡)
* !
then 𝑏$ = ! ∫" ! 𝑦(𝑡) sin(𝑘𝜔# 𝑡) 𝑑𝑡
!
Since the area over 1 period of an odd function is 0, when 𝑦(𝑡) is even:
𝑏$ = 0
!
4 *
𝑎$ = ! 𝑦(𝑡) cos(𝑘𝜔# 𝑡) 𝑑𝑡
𝑇# "
Case 2:
𝑦(−𝑡) = −𝑦(𝑡)
* !!
then 𝑎$ = ∫ 𝑦(𝑡) cos(𝑘𝜔# 𝑡) 𝑑𝑡
!! "
Since the area over 1 period of an odd function is 0, when 𝑦(𝑡) is odd:
𝑎$ = 0
!
4 *
𝑏$ = ! 𝑦(𝑡) sin(𝑘𝜔# 𝑡) 𝑑𝑡
𝑇# "
a) Find the Trigonometric Fourier series representation of the pulse train 𝑦(𝑡) shown in
the figure below.
b) Show that the result can be expressed as:
%
1 $+' 2
𝑦(𝑡) = + *(−1) * @ B cos (𝑘𝜋𝑡)
2 𝑘𝜋
$&'
Solution:
Dynamic Systems and Signals I 5
Lecturer: Dr. Tracey Camilleri
Dynamic Systems and Signals I 6
Lecturer: Dr. Tracey Camilleri
Dynamic Systems and Signals I 7
Lecturer: Dr. Tracey Camilleri
Cosine Representation
The Fourier Series can also be represented in Cosine form as follows:
¥
y (t ) = ao + åA
k =1
k cos(kwot + q k ) -¥ < t < ¥ (5)
where Ak = ak2 + bk2 k = 1, 2, ! (6)
æ bk ö (7)
and q k = tan -1 ç - ÷
è ak ø
Hence bk A sin q k
=- k
ak Ak cos q k
bk
= - tan q k
ak
æ bk ö
\ qk = tan -1 ç - ÷
è ak ø
\ Ak = ak2 + bk2
Consider the pulse train signal given in Example 1. Find its Cosine Fourier series representation.
Solution:
Dynamic Systems and Signals I 9
Lecturer: Dr. Tracey Camilleri
Exponential Representation
In this case the periodic signal y (t ) can be represented as:
¥
y (t ) = åce
k = -¥
k
jk wo t
-¥<t <¥ (8)
1
ò y(t )e
- jk wo t (9)
where ck = dt
To To
1 jkwot
We can define:
cos(kwot ) =
2
e + e - jkwot ( )
1
sin(kwot ) =
2j
e jkwot - e - jkwot ( )
Substituting in the Trigonometric representation (Equation (1)):
1 ¥ 1 ¥
y (t ) = ao + å
2 k =1
(
ak e jkwot + e - jkwot +
2j
) å b (e
k =1
k
jk wo t
- e - jkwot )
1 ¥ ìé 1 ù jkw t é 1 ù - jkw t ü
= a0 + å í ê ak + bk ú e o + ê ak - bk ú e o ý
2 k =1 î ë j û j û
ë þ
¥
1
{
= a0 + å [ ak - jbk ] e jkwot + [ ak + jbk ] e - jkwot
2 k =1
} (i)
ak - jbk
Let ck =
2
Then 1é2 2 ù
ck = ê
2 êë To ò y (t ) cos(kwot )dt - j
To ò y (t ) sin(k wot )dt ú
úû
To To
1
=
To ò y(t ) [ cos(kw t ) - o j sin(kwot ) ] dt
To
1
ò y(t )e
- jk wo t
ck = dt
To To
1
ò y(t )e
jk wo t
= dt
To To
1
ò y(t )e
- j ( - k )wo t
= dt
To To
= c- k
Hence ck and c- k are complex conjugates of each other.
From (i):
¥
y (t ) = c0 + å {c e
k =1
k
jk wo t
+ c- k e - jkwot }
¥ -¥
= c0 + å ck e jkwot + å ck e jkwot
k =1 k = -1
-¥
y (t ) = åce
k = -¥
k
jk wo t
-¥<t <¥
ck can be complex and hence has both magnitude ck and phase Ðck .
ak - jbk
Consider ck = ,
2
1 2 1
Then ck = ak + bk2 = Ak
2 2
Therefore, the magnitude of the exponential Fourier co-efficients are half those of the
Trigonometric or Cosine representation (except the dc component which remains
unchanged).
Find the Exponential Fourier series representation of the previous pulse train signal given in
Example 1.
Solution:
∞
y(t) = ao + ∑ Ak cos(kω ot + φk )
k=1
where: ao ≡ dc value
If we look at the frequencies present in the signal y(t ) we have ω o , 2ω o , 3ω o etc. There
frequencies are called harmonics. The 1st harmonic is ω o , the 2nd harmonic is 2ω o etc. The first
harmonic frequency ω o is generally referred to as the fundamental frequency.
The characteristics of a signal can be studied in terms of frequencies, amplitudes and phases.
Specifically the amplitudes A1 , A2 etc specify the relative weights of the frequency components
making up the signal and these weights determine the ‘shape’ of the signal. For example consider
a continuous time signal:
⎛ π⎞ ⎛ π⎞
y(t) = A1 cos(t) + A2 cos ⎜ 4t + ⎟ + A3 cos ⎜ 8t + ⎟
⎝ 3⎠ ⎝ 2⎠
The frequencies in this case are 1, 4 and 8 rad/s; the amplitudes are A1 , A2 and A3 and the phases
π π
are 0, and . Consider the following two cases:
3 2
Case 1: A1 = 0.5, A2 = 1, A3 = 0
In this case the weight of the 4 rad/s frequency is twice as large as that of the 1 rad/s frequency
and the signal y(t ) looks as shown below:
In this case the weight of the 4 rad/s frequency is half that of the 1 rad/s frequency and the signal
y(t ) looks as shown below:
Recall that in a periodic signal, every frequency is a multiple of ω o . Therefore the ratio of any two
frequencies must be a rational number, in which case frequencies are said to be harmonically
related. The fundamental frequency ω o is the largest common factor of all the frequencies in the
series.
Example 4:
1 2 7
𝑥(𝑡) = 3 + 5 cos @ 𝑡 + 𝜃' B + 2 cos @ 𝑡 + 𝜃* B + 5 cos @ 𝑡 + 𝜃, B
2 3 6
Solution:
Dynamic Systems and Signals I 14
Lecturer: Dr. Tracey Camilleri
Let us consider a very simple periodic signal whose cosine Fourier series representation is
given by:
y(t) = ao + A cos(kω ot + φ )
The amplitude and phase spectra for this signal would be the following:
Ak ϕk
A
ao ϕ
$k $k
$o $o
1
ao + A cos(ω ot + φ ) = ao + A ⎡⎣ e j (ω ot+φ ) + e− j (ω ot+φ ) ⎤⎦
2
A A
= ao + e jω ot e jφ + e− jω ot e− jφ
2 2
A jω ot jφ A j (−ω o )t j (−φ )
= ao + e e + e e
2 2
A A
= ao + e jφ e jω ot + e j (−φ )e j (−ω o )t
2 2
The magnitude and phase spectra for the exponential representation are now given by:
Ak ϕk
ao
ϕ
A
౼
2
(#o
#k #k
(#o #o #o
-ϕ
The complex exponential form allows the magnitude and phase spectra to be calculated easilty
but it introduces negative frequencies which were not present in the cosine representation. Of
course, negative frequencies don’t really exist and since the magnitude spectrum is an even
function, the part of the graph showing negative frequencies contains no information. Hence what
we are plotting is a mathematical artifact.
Since the spectra for the exponential representation contains both positive and negative
frequencies, they are are called two-sided spectra. For a similar reasoning, the spectra for the
cosine representation are called one-sided spectra.
From the two-sided spectra shown above, one can conclude that the magnitude spectrum has even
symmetry with the amplitudes being half those of the cosine representation. This is not the case
for the dc value which in both cases remains the same ( co = ao ).
The phase spectrum, on the other hand, has odd symmetry. At positive frequencies the phase values
are similar to those of the single-sided phase spectrum while at negative frequencies the phase
values are of opposite sign.
Plot the Fourier series coefficients, magnitude and phase spectra for the previous pulse train
signal by considering its trigonometric representation.
Solution:
Dynamic Systems and Signals I 17
Lecturer: Dr. Tracey Camilleri
Example 6:
Once again plot the Fourier series coefficients, magnitude and phase spectra for the previous
pulse train signal, this time considering its exponential representation.
Solution:
Dynamic Systems and Signals I 18
Lecturer: Dr. Tracey Camilleri
Gibbs Phenomenon
Consider the pulse train signal whose trigonometric representation of the Fourier series is given
by:
1 ∞ k−1
⎛ 2 ⎞
y(t) = + ∑ (−1) 2 ⎜ ⎟ cos ( kπ t )
2 k=1 ⎝ kπ ⎠
k odd
In practice we limit the summation up to N, giving yN (t) , and we assume that this is a good
approximation of y(t ) . Specifically yN (t) should converge to y(t ) as N → ∞ .
⎛ 2 ⎞
k−1
1 N
yN (t) = + ∑ (−1) 2 ⎜ ⎟ cos ( kπ t )
2 k=1 ⎝ kπ ⎠
k odd
In the first plot, y3 (t) consists only of the dc component, the first harmonic and the third
harmonic. However the reconstructed signal still carries resemblance with the true signal (shown
in black). As N is increased, the reconstructed signal becomes a better approximation of the true
signal. Josiah Williard Gibbs however notices that even with N very large, at discontinuities within
the signal, an overshoot occurs which has a magnitude of approximately 9% of the discontinuity.
This overshoot does not decrease as N is increased. This is known as Gibbs phenomenon and it
results because a discontinuity cannot be constructed using continuous signals.
T
2
1
Pav = ∫ y (t) dt
2
T T
−
2
This information is also present in the signal’s Fourier series. In particular, given the exponential
representation:
∞
y(t) = ∑ce k
jkω ot
k=−∞
Parseval’s theorem states that the average power of the signal y(t ) is given by:
∑c
2
Pav = k
k=−∞