Professional Documents
Culture Documents
Fourier Presentacion
Fourier Presentacion
Sangolquí - Ecuador
Signal and Systems
References
• Oppenheim, A. Willsky, and H. Nawab, Signals and Systems, 2ª edición, 1997, Prentice Hall, ISBN # 0-13-814757-4.
• Hwei P. Hsu, “Signals and Systems”, 2nd Edition, McGrawHill Schaum Outlines, ISBN: 978-0-07-163473-1, 2011.
• Chaparro Luis, “Signal and Systems using Matlab”, Elsevier, Oxford UK, ISBN 978-0-12-374716-7 , 2011
Fourier Series
• Option 1 (convolution): These responses were all shifted versions of the unit
impulse response, leading to the convolution sum or integral.
• The physical motivation for Fourier's work was the phenomenon of heat
propagation and diffusion. By 1807, Fourier had found series of harmonically
related sinusoids to be useful in representing the temperature distribution
through a body. In addition, he claimed that "any" periodic signal could be
represented by such a series.
1. The set of basic signals can be used to construct a broad and useful
class of signals.
Very important for the study of LTI systems: the response of an LTI
system to a complex exponential input is the same complex exponential with
only a change in amplitude; that is:
A signal for which the system output is a (possibly complex) constant times the
input is referred to as an eigenfunction of the system, and the amplitude factor
is referred to as the system's eigenvalue.
Fourier Series-The response of LTI systems to complex exponentials
For both continuous time and discrete time, if the input to an LTI system is
represented as a linear combination of complex exponentials, then the output
can also be represented as a linear combination of the same complex
exponential signals.
INPUT OUTPUT
Fourier series representation of continuous-time periodic signals
Periodic signal
Fundamental period
harmonically related
complex exponentials
Linear combination of
harmonically related
complex exponentials
Fourier series representation of continuous-time periodic signals
Fourier series
representation
Fourier series representation of continuous-time periodic signals
Reference 1 Reference 2
Synthesis
equation
Analysis
equation
Complex
Fourier series representation of continuous-time periodic signals
Trigonometric Fourier Series:
https://falstad.com/fourier/
Trigonometric Fourier Series:
https://www.mathsisfun.com/calculus/fourier-series.html
Fourier series representation of continuous-time periodic signals
Trigonometric Fourier Series: even and odd signals
If a periodic signal x(t) is even, then bk= 0 and its Fourier series contains only
cosine terms:
If a periodic signal x(t) is odd, then ak= 0 and its Fourier series contains only sine
terms:
Fourier series -Examples
Given f(x) find its Fourier Series terms: ao, an, bn.
f 𝒙 = 𝒙2 + 𝒙 + 3 , −𝜋 ≤ 𝑥 ≤ 𝜋
Fourier series -Examples
Given x(t) find its Fourier Series terms: ao, an, bn. 𝑨𝑷𝑶𝑹𝑻𝑬:
𝒇 𝒙 = 𝒙2 + 𝒙 + 3 , −𝜋 ≤ 𝑥 ≤ 𝜋
∞ ∞
𝜋2 4 𝑛
2 𝑛+1
𝑓 𝑥 = + 3 + 2 −1 ∗ cos(𝑛𝑥) + −1 ∗ sin(𝑛𝑥)
3 𝑛 𝑛
𝑛=1 𝑛=1
For n=1
Plot[[//math:t^2+t+3//],FourierTrig
Series[[//math:t^2+t+3//],t,[//mat
h:1//]],{t,-pi,pi}]
For n=5
Plot[[//math:t^2+t+3//],FourierTrig
Series[[//math:t^2+t+3//],t,[//mat
h:5//]],{t,-pi,pi}]
Fourier series -Examples
Given f(x) find its Fourier Series terms: ao, an, bn.
𝒇 𝒙 = 𝒙2 + 𝒙 + 3 , −𝜋 ≤ 𝑥 ≤ 𝜋
WOLFRAM
x^2+x+3 for x=-pi to pi Fourierseries[x^2+x+3,x,1] Fourierseries[x^2+x+3,x,5] Fourierseries[x^2+x+3,x,10]
Fourier Series-Exercises
Given f(t) find its Fourier Series terms: ao, an, bn.
(2/pi)*[[integrate (pi/2) from x=0 to pi/2]+ [integrate (pi-x) from x=pi/2 to pi]]
(2/pi)*[[integrate (pi/2)*cos(n*2*x) from x=0 to pi/2]+ [integrate (pi-x)*cos(n*2*x) from x=pi/2 to pi]]
1) 2) 3)
Fourier Series-Exercises
1) Piecewise[{{pi/2,0<t<pi/2},{pi-t,pi/2<t<pi}}]
2) Plot[FourierTrigSeries[[//math:Piecewise[{{pi/2,0<t<pi/2},{pi-t,pi/2<t<pi}}]//],t,[//math:16//]],{t,-pi,pi}]
3) FourierTrigSeries[[//math:Piecewise[{{pi/2,0<t<pi/2},{pi-t,pi/2<t<pi}}]//],t,[//math:12//]],{t,-pi,pi}]
1) 2) 3)
𝑨𝒑𝒐𝒓𝒕𝒆: 𝑫𝒂𝒏𝒊𝒆𝒍𝒂 𝑨𝒍𝒗𝒂𝒓𝒆𝒛
Fourier Series-Exercises
syms t k P n;
assume(k,'Integer')
a = @(f,t,k,P) int(f*cos(k*pi*t/P),t,-P,P)/P;
b = @(f,t,k,P) int(f*sin(k*pi*t/P),t,-P,P)/P;
fs=@(f,t,n,P)
a(f,t,0,P)/2+symsum(a(f,t,k,P)*cos(k*pi*t/P)+b(f,t,k,P)*sin(k*pi*t/P),k,1,n);
%Funcion
f=pi/2*(heaviside(t)-heaviside(t-pi/2))+(heaviside(t-pi/2)-heaviside(t-pi))*(pi-t);
P=pi;
%armónicos
figure
k=1:N;
ak=a(f,t,k,P)
pretty(a(f,t,k,P))
bk=b(f,t,k,P)
pretty(b(f,t,k,P))
subplot(2,1,1)
stem(ak)
xlabel('k');
ylabel('a(k)')
subplot(2,1,2)
stem(bk)
xlabel('k');
ylabel('b(k)')
𝑨𝒑𝒐𝒓𝒕𝒆: 𝑫𝒂𝒏𝒊𝒆𝒍𝒂 𝑨𝒍𝒗𝒂𝒓𝒆𝒛
Fourier Series-Exercises
clear , clf, clc, close all
syms x n
%f=input('ingrese las funciones entre corchetes []
separadas por espacios');
%p=input('ingrese los puntos en que estan evaluadas las
funciones entre corchetes [] separadas por espacios'); COEFICIENTES
f=[3*pi/2];%funciones
p=[0 pi/2];%intervalos
f=sym(f);
a0=0;
for i=1:length(f)
a0=a0+int(f(i),'x',p(i),p(i+1));
end
disp('coeficiente A0:')
a0=(a0/pi);
pretty(a0)
an=0;
for i=1:length(f)
an=an+int(f(i)*cos(n*x),'x',p(i),p(i+1));
end
disp('coeficiente An:')
an=(an/pi)
an=subs(an,{cos(pi*n),sin(pi*n)},{(-1)^n,0});
pretty(an)
bn=0;
for i=1:length(f)
bn=bn+int(f(i)*sin(n*x),'x',p(i),p(i+1));
end
disp('coeficiente Bn:')
bn=(bn/pi);
bn=subs(bn,{cos(pi*n),sin(pi*n)},{(-1)^n,0});
pretty(bn)
𝑎𝑛
2/pi *( integrate (pi/2)(SIN(2kt)) from 0to pi /2+ integrate (pi-t)(sin(2kt)) from pi/2 to pi)
𝑏𝑛
2/pi *( integrate (pi/2)(cos(2kt)) from 0to pi /2+ integrate (pi-t)(cos(2kt)) from pi/2 to pi)
Fourier Series-Exercises
Given f(t) find its Fourier Series terms: ao, an, bn.
Fourier Series-Exercises
Given f(t) find its Fourier Series terms: ao, an, bn.
B=5
-pi <A < pi ,
WOLFRAM 5/2+2*5*sum[((1-(-1)^n)/(pi^2*n^2))*cos(pi*n*t/pi),{n,1,5}]
CONVERGENCE OF THE FOURIER SERIES
In some cases, the analysis equation may diverge; that is, the value obtained
for some of the coefficients ak may be infinite.
Moreover, even if all of the coefficients of the Fourier Series are finite, when
these coefficients are substituted into the synthesis equation the resulting
infinite series may not converge to the original signal x(t).
DIRCHILET CONDITIONS
Condition 2. there are no more than a finite number of maxima and minima
during any single period of the signal.
Condition 1: ok
Condition 3. In any finite interval of time, there are only a finite number of
discontinuities. Furthermore, each of these discontinuities is finite.
Condition 1: ?
Condition 2: ?
Individual work:
plot(2*sum[(1-(-
1)^n)/(pi*n)*sin(pi*n*t
/2),{n,1,5}],{t,0,10})
To plot some
segments of the
summation
Fourier Series- References