Unit 3.2: Exponential Fourier Series#

Colophon#

An annotatable worksheet for this presentation is available as Worksheet 3.

This section builds on our study of Unit 3.1: Trigonometric Fourier Series.

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 trigonometrc 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 converted into an algorithm that can be executed by computer.

The result is called the Exponential Fourier Series.

Agenda#

  • Exponents and Euler’s Equation

  • The Exponential Fourier series

  • Symmetry in Exponential Fourier Series

  • Example

The Exponential Function eat#

  • You should already be familiar with eat because it appears in the solution of differential equations.

  • It is also a function that appears in the definition of the Laplace and Inverse Laplace Transform.

  • It pops up again and again in tables and properies of the Laplace Transform.

Case when a is real.#

When a is real the function eat will take one of the two forms illustrated below:

clear all
setappdata(0, "MKernel_plot_format", 'svg')
%% The decaying exponential
t=linspace(-1,2,1000);
figure
plot(t,exp(t),t,exp(0.*t),t,exp(-t))
axis([-1,2,-1,8])
title('exp(at) -- a real')
xlabel('t (s)')
ylabel('exp(t) and exp(-t)')
legend('exp(t)','exp(0)','exp(-t)')
grid
hold off

You can regenerate this image generated with this Matlab script: expon.m.

  • When a<0 the response is a decaying exponential (red line in plot)

  • When a=0 eat=1 – essentially a model of DC

  • When a>0 the response is an unbounded increasing exponential (blue line in plot)

Case when a is imaginary#

This is the case that helps us to simplify the computation of sinusoidal Fourier series.

It was Leonhard Euler who discovered the formula visualized above.

Some important values of ωt#

These are useful when simplifying expressions that result from integrating functions that involve the imaginary exponential

Give the following:

  • 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π

Case where a is complex#

We shall not say much about this case except to note that the Laplace transform equation includes such a number. The variable s in the Laplace Transform

0f(t)estdt

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.

Two Other Important Properties#

By use of trig. identities, it is relatively straight forward to show that:

cosωt=ejωt+ejωt2

and

sinωt=ejωtejωtj2

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.

The Exponential Fourier Series#

As as stated in the notes on the Trigonometric Fourier Series any periodic waveform f(t) can be represented as

f(t)=12a0+a1cosΩ0t+a2cos2Ω0t++b1sinΩ0t+b2sin2Ω0t+

Let us replace the cos and sin terms with their imaginary exponential equivalents:

f(t)=12a0+a1(ejΩ0t+ejΩ0t2)+a2(ej2Ω0t+ej2Ω0t2)++b1(ejΩ0tejΩ0tj2)+b2(ej2Ω0tej2Ω0tj2)+

Grouping terms with same exponents#

f(t)=+(a22b2j2)ej2Ω0t+(a12b1j2)ejΩ0t+12a0+(a12+b1j2)ejΩ0t+(a22+b2j2)ej2Ω0t+

New coefficients#

The terms in parentheses are usually denoted as

Ck=12(akbkj)=12(ak+jbk)
Ck=12(ak+bkj)=12(akjbk)
C0=12a0

The Exponential Fourier Series is

f(t)=+C2ej2Ω0t+C1ejΩ0t+C0+C1ejΩ0t+C2ej2Ω0t+

or more compactly

f(t)=k=nnCkejkΩ0t

Important

The Ck coefficents, except for C0 are complex and appear in conjugate pairs so

Ck=Ck

Evaluation of the complex coefficients#

The coefficients are obtained from the following expressions:

Ck=12π02πf(Ω0t)ejk(Ω0t)d(Ω0t)=12π02πf(θ)ejkθdθ

or

Ck=1T0Tf(t)ejkΩ0tdt

These are much easier to derive and compute than the equivalent Trigonemetric Fourier Series coefficients[1].

Trigonometric Fourier Series from Exponential Fourier Series#

By substituting Ck and Ck back into the original expansion

Ck+Ck=12(akjbk+ak+jbk)

so

ak=Ck+Ck

Similarly

CkCk=12(akjbkakjbk)

so

bk=j(CkCk)

Thus, we can easily go back to the trigonometric Fourier series if we need to.

Symmetry in exponential Fourier series#

Since the coefficients of the exponential Fourier series are complex numbers, we can use symmetry to determine the form of the coefficients and thereby simplify the computation of series for wave forms that have symmetry.

Even Functions#

For even functions, all the coefficients Ck are real.

Proof

Recall

Ck=12(akbkj)=12(ak+jbk)

and

Ck=12(ak+bkj)=12(akjbk)

From knowledge of the trig. fourier series, even functions have no sine terms so the bk coefficients are 0. Therefore both Ck 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 Ck 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 Ck 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 Ck to Ck#

Ck=Ck always

Example 1#

Compute the Exponential Fourier Series for the square wave shown below assuming that ω=1

Will be solved by hand in Class#

Some questions for you#

  • Square wave is an [odd/even/neither] function?

  • DC component is [zero/non-zero]?

  • Square wave [has/does not have] half-wave symmetry?

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 to example 1#

The integral is

Ck=12π02πf(Ω0t)ejk(Ω0t)d(Ω0t)=12π[0πAejk(Ω0t)d(Ω0t)+π2π(A)ejk(Ω0t)d(Ω0t)]

For simplicity let θ=Ω0t.

12π[0πAejkθdθ+π2π(A)ejkθdθ]=12π[Ajkejkθ|0π+Ajkejkθ|π2π]
=12π[Ajk(ejkπ1)+Ajk(ej2kπejkπ)]=A2jπk(1ejkπ+ej2kπejkπ)
A2jπk(ej2kπ2ejkπ1)=A2jπk(ejkπ1)2

For n odd[2], ejkπ=1. Therefore

Ckk=odd=A2jπk(ejkπ1)2=A2jπk(11)2=A2jπk(2)2=2Ajπk
Ckk=even=0.

Exponential Fourier series for the square wave with odd symmetry#

From the definition of the exponential Fourier series

f(t)=+C2ej2Ω0t+C1ejΩ0t+C0+C1ejΩ0t+C2ej2Ω0t+

the exponential Fourier series for the square wave with odd symmetry is

f(t)=2Ajπ(13ej3Ω0tejΩ0t+ejΩ0t+13ej3Ω0t+)=2Ajπk=odd1kejkΩ0t

Note the sign change in first two terms. This is due to the fact that Ck=Ck.

E.g. since C3=2A/j3π, C3=C3=2A/j3π

Trig. Fourier series from exponential Fourier series#

Since

f(t)=2Ajπ(13ej3Ω0tejΩ0t+ejΩ0t+13ej3Ω0t+)

gathering terms at each harmonic frequency gives

f(t)=4Aπ(+(ejΩ0tejΩ0t2j)+13(ej3Ω0tej3Ω0t2j)+)=4Aπ(sinΩ0t+13sin3Ω0t+)=4Aπk=odd1ksinkΩ0t.

Computing coefficients of Exponential Fourier Series in MATLAB#

Example 2#

Verify the result of Example 1 using MATLAB.

Solution to example 2#

Solution: See efs_sqw.m.

EFS_SQW#

Calculates the Exponential Fourier for a Square Wave with Odd Symmetry.

cd ../matlab
format compact; 
setappdata(0, "MKernel_plot_format", 'svg')

Set up parameters

syms t A;

tau = 1;
T0 = 2*pi; % w = 2*pi*f -> t = 2*pi/omega
k_vec = [-5:5];

Define f(t)

IMPORTANT: the signal definition must cover [0 to T0]

xt = A*(heaviside(t)-heaviside(t-T0/2)) - A*(heaviside(t-T0/2)-heaviside(t-T0));

Compute EFS

[X, w] = FourierSeries(xt, T0, k_vec)

Plot the numerical results from MATLAB calculation.

Convert symbolic to numeric result

Xw = subs(X,A,1);

Plot

subplot(211)
stem(w,abs(Xw), 'o-');
title('Exponential Fourier Series for Square Waveform with Odd Symmetry')
xlabel('Hamonic frequencies: k\Omega_0 (rad/sec)');
ylabel('|c_k|');
subplot(212)
stem(w,angle(Xw), 'o-');
xlabel('Hamonic frequencies: k\Omega_0 (rad/sec)');
ylabel('\angle c_k [radians]');

Summary#

  • Exponents and Euler’s Equation

  • The exponential Fourier series

  • Symmetry in Exponential Fourier Series

  • Example

Answers to in-class problems#

Some important values of ωt - Solution#

  • When ωt=0: ejωt=ej0=1

  • When ωt=π/2: ejωt=ejπ/2=j

  • When ωt=π: ejωt=ejπ=1

  • When ωt=3π/2: ejωt=ej3π/2=j

  • When ωt=2π: ejωt=ej2π=ej0=1

It is also worth being aware that nωt, when n is an integer, produces rotations that map back to the simpler cases given above. For example see ej2π above.

Some answers for you#

  • Square wave is an odd function!

  • DC component is zero!

  • Square wave has half-wave symmetry!

Hence

  • C0=0

  • Coefficients Ck are imaginary!

  • Subscripts k are odd only!

  • What is the integral that needs to be solved for Ck?

Ck=12π02πf(Ω0t)ejk(Ω0t)d(Ω0t)=12π[0πAejk(Ω0t)d(Ω0t)+π2π(A)ejk(Ω0t)d(Ω0t)]