Exponential Fourier Series: Scope and Background Reading
Exponential Fourier Series: Scope and Background Reading
In [ ]: cd matlab
pwd
Trigonometric Fourier series uses integration of a periodic signal multiplied by sines and cosines at the
fundamental and harmonic frequencies. If performed by hand, this can a painstaking process. Even with
the simplifications made possible by exploiting waveform symmetries, there is still a need to integrate
cosine and sine terms, be aware of and able to exploit the tigonometrc identities, and the properties of
orthogonal functions before we can arrive at the simplified solutions. This is why I concentrated on the
properties and left the computation to a computer.
However, by exploiting the exponential function eat , we can derive a method for calculating the
coefficients of the harmonics that is much easier to calculate by hand and convert into an algorithm that
can be executed by computer.
The result is called the Exponential Fourier Series and we will develop it in this session.
The material in this presentation and notes is based on Chapter 7 (Starting at Section 7.8) of Steven T.
Karris, Signals and Systems: with Matlab Computation and Simulink Modelling, 5th Edition.
(http://site.ebrary.com/lib/swansea/docDetail.action?docID=10547416) from the Required Reading List.
Some clarificattion was needed and I used Chapter 4 of Benoit Boulet, Fundamentals of Signals and
Systems (https://ebookcentral.proquest.com/lib/swansea-ebooks/reader.action?
ppg=150&docID=3135971&tm=1518703383001) from the Recommended Reading List for this.
Agenda
Background
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 1 of 16
exp_fs1 15/03/2018, 16+19
First Hour
Second Hour
Line spectra
Power in periodic signals
Steady-State Response of an LTI System to a Periodic Signals
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 2 of 16
exp_fs1 15/03/2018, 16+19
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 3 of 16
exp_fs1 15/03/2018, 16+19
This is the case that helps us simplify the computation of sinusoidal Fourier series.
ejωt when ωt = 0
ejωt when ωt = π/2
ejωt when ωt = π
ejωt when ωt = 3π/2
ejωt when ωt = 2π
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 4 of 16
exp_fs1 15/03/2018, 16+19
∫0
f (t)e−st dt
is a complex exponential.
The consequences of a complex s have particular significance in the development of system stability
theories and in control systems analysis and design. Look out for them in EG-243.
ejωt + e−jωt
cos ωt =
2
and
ejωt −e−jωt
sin ωt =
j2
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 5 of 16
exp_fs1 15/03/2018, 16+19
We can use this result to convert the Trigonometric Fourier Series into an Exponential Fourier Series
which has only one integral term to solve per harmonic.
If we replace the cos and sin terms with their imaginary expontial equivalents:
( 2 j2 ) ( 2 j2 ) ( 2 j2 ) ( 2 j2 )
a2 b a1 b 1 a1 b a2 b
f (t) = ⋯ + − 2 e−j2Ω0 t + − 1 e−jΩ0 t + a0 + + 1 ejΩ0 t + + 2
2
New coefficents
The terms in parentheses are usually denoted as
2( j ) 2
1 b 1
C−k = ak − k = (ak + jbk )
2( j ) 2
1 b 1
Ck = ak + k = (ak −jbk )
1
C0 = a0
2
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 6 of 16
exp_fs1 15/03/2018, 16+19
or more compactly
n
Ck e−jkΩ0 t
∑
f (t) =
k= −n
Important
The Ck coefficents, except for C0 are complex and appear in conjugate pairs so
C−k = Ck∗
or
T
1
T ∫0
Ck = f (t)e−jkΩ0 t dt
These are much easier to derive and compute than the equivalent Trigonemetric Fourier Series
coefficients.
* The analysis that leads to this result is provided between pages 7-31 and 7-32 of the text book
(https://ebookcentral.proquest.com/lib/swansea-ebooks/reader.action?
ppg=243&docID=3384197&tm=1518704101461). It is not a difficult proof, but we are more interested in
the result.
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 7 of 16
exp_fs1 15/03/2018, 16+19
1
Ck + C−k = (ak −jbk + ak + jbk )
2
so
ak = Ck + C−k
Similarly
1
Ck −C−k = (ak −jbk −ak −jbk )
2
so
bk = j (Ck −C−k )
Thus we can easily go back to the Trigonetric Fourier series if we want to.
Even Functions
For even functions, all coefficients Ck are real.
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 8 of 16
exp_fs1 15/03/2018, 16+19
Proof
Recall
2( j ) 2
1 b 1
C−k = ak − k = (ak + jbk )
and
2( j ) 2
1 b 1
Ck = ak + k = (ak −jbk )
From knowledge of the trig. fourier series, even functions have no sine terms so the bk coefficients are 0.
Therefore both C−k and Ck are real.
Odd Functions
For odd functions, all coefficients Ck are imaginary.
By a similar argument, all odd functions have no cosine terms so the ak coefficients are 0. Therefore
both C−k and Ck are imaginary.
Half-wave symmetry
If there is half-wave symmetry, Ck = 0 for k even.
Proof
From Trigonometric Fourier Series, if there is half-wave symmetry, all even harnonics are zero, thus both
ak and bk are zero for k even. Hence C−k and Ck are also zero when k is even.
No symmetry
If there is no symmetry the Exponential Fourier Series of f (t) is complex.
Relation of C-k to Ck
C−k = Ck∗ always
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 9 of 16
exp_fs1 15/03/2018, 16+19
Example 1
Compute the Exponential Fourier Series for the square wave shown below assuming that ω = 1
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 10 of 16
exp_fs1 15/03/2018, 16+19
Hence
C0 = [?]
Coefficients Ck are [real/imaginary/complex]?
Subscripts k are [odd only/even only/both odd and even]?
What is the integral that needs to be solved for Ck ?
Solution
2π [∫0 ] 2π [ −jk ∣π ]
π 2π
1 1 A −jk(Ω0 t) ∣π −A −jk(Ω0 t) ∣2π
∫π
−jk(Ω0 t) −jk(Ω0 t)
Ae d(Ω0 t) + (−A)e d(Ω0 t) = e ∣ + e ∣
∣0 −jk
2π [ −jk ] 2jπk
1 A −jkπ A −j2kπ A
= ( e −1) + ( e −e−jkπ ) = ( 1 −e−jkπ + e−j2kπ −e−jkπ )
jk
A A
(e −2e−jkπ −1) = (e −1)
−j2kπ −jkπ 2
2jπk 2jπk
For n odd*, e−jkπ = −1. Therefore
Cn A A A 2A
(e −1) =
−jkπ 2
= (−1 −1)2 = (−2)2 =
n = odd 2jπk 2jπk 2jπk jπk
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 11 of 16
exp_fs1 15/03/2018, 16+19
Exponential Fourier series for the square wave with odd symmetry
From the definition of the exponential Fourier series
jπ ( ) jπ ∑ n e
2A 1 −j3Ω0 t −jΩ0 t jΩ 0 t 1 j3Ω0 t 2A 1 jkΩ0 t
f (t) = ⋯ − e −e + e + e + ⋯ =
3 3 n= odd
Note sign change in first two terms. This is due to the fact that C−k = Ck∗ .
jπ (
+ ⋯)
2A 1 −j3Ω0 t −jΩ0 t jΩ 0 t 1 j3Ω0 t
f (t) = ⋯ − e −e + e + e
3 3
gathering terms at each harmonic frequency gives
π ( ( ) 3( ) ) π (
4A ejΩ0 t −e−jΩ0 t 1 ej3Ω0 t −e−j3Ω0 t 4A 1
f (t) = ⋯+ + + ⋯ = sin Ω0 t + sin 3Ω0 t +
2j 2j 3
Example 2
Verify the result of Example 1 using Matlab.
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 12 of 16
exp_fs1 15/03/2018, 16+19
Solution
Solution: See efs_sqw.m (matlab/efs_sqw.m).
EFS_SQW
Calculates the Exponential Fourier for a Square Wave with Odd Symmetry.
Set up parameters
In [10]: syms t A;
tau = 1;
T0 = 2*pi; % w = 2*pi*f -> t = 2*pi/omega
k_vec = [-5:5];
Define f(t)
Compute EFS
Ck =
w =
-5 -4 -3 -2 -1 0 1 2 3 4 5
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 13 of 16
exp_fs1 15/03/2018, 16+19
In [14]: Xw = subs(Ck,A,1);
Plot
In [15]: subplot(211)
stem(w,abs(Xw), 'o-');
title('Exponential Fourier Series for Square Waveform with Odd Symm
etry')
xlabel('\Omega_0 (rad/sec)');
ylabel('|c_k|');
subplot(212)
stem(w,angle(Xw), 'o-');
xlabel('\Omega_0 (rad/sec)');
ylabel('\angle c_k [radians]');
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 14 of 16
exp_fs1 15/03/2018, 16+19
Next Time
Line spectra
Power in periodic signals
Steady-State Response of an LTI System to a Periodic Signals
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 15 of 16
exp_fs1 15/03/2018, 16+19
Hence
C0 = 0
Coefficients Ck are imaginary!
Subscripts k are odd only!
What is the integral that needs to be solved for Ck ?
2π [∫0 ]
2π π 2π
1 1
2π ∫0 ∫π
−jk(Ω0 t) −jk(Ω0 t)
Ck = f (Ω0 t)e d(Ω0 t) = Ae d(Ω0 t) + (−A)e−jk(Ω0 t) d(Ω0 t)
http://localhost:8890/nbconvert/html/week5/exp_fs1.ipynb?download=false Page 16 of 16