U2 Fourier Transform
U2 Fourier Transform
Sangolqui - Ecuador
Signal and Systems
Fourier Transform
• 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
• https://see.stanford.edu/materials/lsoftaee261/book-fall-07.pdf, 10/07/2020
Signal and Systems
The Fourier Transform decomposes a waveform -basically any real world waveform- into
sinusoids
The Fourier Transform, in essence, consists of a different method of viewing the universe
(that is, a transformation from the time domain to the frequency domain).
Fourier Transform: Introduction
Methods based on the Fourier transform are used in virtually all areas of engineering
and science and by virtually all engineers and scientist.
Fourier analysis was originally concerned with representing and analyzing periodic
phenomena, via Fourier series, and later with extending those insights to nonperiodic
phenomena, via the Fourier transform.
“ Every signal has a spectrum and is determined by its spectrum. You can analyze the signal
either in the time (or spatial) domain or in the frequency domain.”
Fourier Transform: Introduction
Whereas for periodic signals the complex exponential building blocks are harmonically
related, for aperiodic signals they are infinitesimally close in frequency, and the
representation in terms of a linear combination takes the form of an integral rather than a
sum.
The synthesis integral itself, which uses these coefficients to represent the signal as a linear
combination of complex exponentials, is called the inverse Fourier transform.
Fourier Transform: magnitude and phase
Magnitude Phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Fourier Transform: magnitude and phase
Magnitude Phase
Fourier Transform: magnitude and phase
Dirichlet conditions: convergence
12 + 02 1
𝑥 𝑤 = =
𝑎2 + 𝑤2 𝑎2 + 𝑤 2
Fourier Transform: magnitude and phase
a) 𝒙 𝒕 = 𝒆−𝒂𝒕 𝒖 𝒕 𝒄𝒐𝒏 𝒂 >𝟎
𝑤 𝑤
∅ 𝑤 = 𝑡𝑎𝑛−1 0 −𝑡𝑎𝑛−1 = −𝑡𝑎𝑛−1
𝑎 𝑎 𝜋
2 a=2
𝜋
−
2
a=5
Fourier Transform: magnitude and phase
a) 𝒙 𝒕 = 𝒆−𝒂𝒕 𝒖 𝒕 𝒄𝒐𝒏 𝒂 >𝟎 FourierTransform[e^(-a*t)*unitstep(t),t,w]
12 + 02 1
𝑥 𝑤 = =
𝑎2 + 𝑤2 𝑎2 + 𝑤 2
w = logspace(-1,3);
X1 = 1./(2+j*w);
subplot(2,1,1)
semilogx(w,(abs(X1)));
%semilogx(w,20*log10(abs(X1)));
%magnitude in dB
title('Magnitude'); ylabel('Magnitude’);
xlabel('Log of Frequency’);grid on
subplot(2,1,2)
semilogx(w,angle(X1)*180/pi);
title('Phase'); ylabel('Phase
(°)');xlabel('Log of Frequency')
grid on
Fourier Transform: magnitude and phase
a) 𝒙 𝒕 = 𝒆−𝒂𝒕 𝒖 𝒕 𝒄𝒐𝒏 𝒂 >𝟎
Fourier Transform: magnitude and phase
La regla de l'Hopital: el
límite del cociente de una
función es igual al límite del
cociente de las derivadas.
…as W increases, X(jw) becomes broader, while the main peak of x(t) at t = 0 becomes higher and the width
of the first lobe of this signal becomes narrower.
Fourier Transform: inverse relationship that exists between the time
and frequency domains,
What is the
correct answer?
Fourier Transform: inverse relationship that exists between the time
and frequency domains: WATCH OUT!!!
Wolfram: different response???
= -1 =1
Piecewise[{{2*x+2, -1≤ x < 0}, {-2*x+2, 0 ≤x <1}}]
2/1*((sinc(x/2))^2) 2/1*(((sin(x/2)/(x/2))^2)
¿Cuál
respuesta es
correcta?
2*1*((sinc(1*x/2))^2) 2*1*(((sin(1*x/2)/(1*x/2))^2)
Fourier Transform: exercise.
=5
= -2 =2
Piecewise[{{5/2*x+5, -2≤ x < 0}, {-5/2*x+5, 0 ≤x <2}}]
1) Find x(t)
1) Find x(t)
Piecewise[{{-B/A*t, -1≤t < 0}}] +Piecewise[{{B/A*t, 0≤t ≤ 1}}]
The Fourier transform of a periodic signal with Fourier series coefficients {ak} can be interpreted as a train of
impulses occurring at the harmonically related frequencies and for which the area of the impulse at the kth
harmonic frequency kwo is 2π times the kth Fourier series coefficient ak.
Fourier Transform: Properties.
Fourier Transform: Properties.
Fourier Transform: Properties.
Fourier pair
Fourier Transform: Properties.
Fourier pair
Bode Plots
Bode Plots
• It is often convenient to use a logarithmic scale to plot the magnitude of a
frequency response.
• Frequency responses can have a wide dynamic range covering many orders of
magnitude(ej. frequencies amplified by 1000, frequencies attenuated by 10−4 .
• Using a log scale, we can add rather than multiply the magnitudes of cascaded
Fourier transforms, which is easier to do graphically:
• A Bode plot is the combination of a magnitude plot (magnitude-> Log scale, frequency
-> Log scale) and a phase plot (radians/degrees->linear scale).
Bode Plots
• It is customary to use the decibel (dB) as the logarithmic unit. The bel (B) was
defined (after Alexander Graham Bell) as a power amplification of a system.
• The decibel is one tenth of a bel. Therefore, for a system with a power gain of
10 at frequency w , its power gain in dB is
• To measure the actual magnitude gain (not the power gain) of a system, we use
the identity:
Bode Plots
Bode Plots
• Consider a first-order system with transfer function:
The break frequency is 2 rad/s. The Bode magnitude plot is the graph of:
Bode Plots
• Consider a first-order system with transfer function:
Useful links
https://matlabgeeks.com/tips-tutorials/how-to-do-a-fourier-transform-in-
matlab/
https://gist.github.com/pbianche/2584364
https://personal.utdallas.edu/~dlm/3350%20comm%20sys/FFTandMatLab-
wanjun%20huang.pdf
https://www.csun.edu/~skatz/ece460/matlab_tut_two.pdf
Bode Plots: Stability
Bode Plot Stability: Advantages
3. With the help of this plot only we can directly comment on the stability of the
system without doing any calculations.
4. Bode plots provides relative stability in terms of gain margin and phase margin.
1.Gain Margin: It refers to the amount of gain, which can be increased or decreased
without making the system unstable. It is usually expressed in dB.
2.Phase Margin: It refers to the phase which can be increased or decreased without
making the system unstable. It is usually expressed in phase.
4.Phase Crossover Frequency: It refers to the frequency at which phase curve cuts
the negative times the 180o axis.
6. Factors: Loop transfer factors like constant term K, Integral factors (jω), first-
order factors ( 1 + jωT)(± n) where n is an integer, second order or quadratic
factors.
7. Slope: There is a slope corresponding to each factor and slope for each factor is
expressed in the dB per decade.
Stability conditions (applicable for closed loop systems and minimum phase
systems) are given below:
For Stable System: Both the margins should be positive, or phase margin should
be greater than the gain margin.
For Marginal Stable System: Both the margins should be zero or phase margin
should be equal to the gain margin.
For Unstable System: If any of them is negative or phase margin should be less
than the gain margin.
Other values of gain/phase margins, does not permit to conclude about stable or unstable systems
Bode Plots: Stability Criteria - (Gain Margin and Phase Margin)
Minimum-phase systems : a
linear, time-invariant system is
said to be minimum-phase if
the system and its inverse are
causal and stable.
STABLE
Gm, pm >0
Bode Plots: Stability Criteria - (Gain Margin and Phase Margin)
http://en.wikipedia.org/wiki/Closed-
loop_transfer_function
transfer function
((s+5)/(s^4+6s^3+11*s^2+6*s)/(1+(s+5
)/(s^4+6s^3+11*s^2+6*s)))
UNSTABLE
Bode Plots: Stability Criteria - (Gain Margin and Phase Margin)
Bode(f)
UNSTABLE
For Closed loop
Bode Plots: Stability Criteria - (Gain Margin and Phase Margin)
CLOSED LOOP SYSTEM
Bode Plots: Stability Criteria - (Gain Margin and Phase Margin)
Bode Plots: Stability Criteria - (Gain Margin and Phase Margin)
What if :
- Gain margin is negative?
- Gain margin and phase margin are
infinity?
- Gain margin is infinity and phase
margin is negative
- Etc….
root_den=roots(hs.den{1})
Poles(hs)
figure();
impulse(hs) % simulate impulse response
Stable
figure(); % simulate step response
step(hs)
hs1=feedback(hs,1);
figure();
impulse(hs1) % simulate impulse response
hs1=feedback(hs,1);
figure();
impulse(hs1) % simulate impulse response
figure(); % simulate step response
step(hs1)
% Test of stability. True for stable filter
isstable(hs1)
Stability OPEN LOOP SYSTEM
hs1=feedback(hs,1)
ltiview({'bode';'pzmap'},hs)
ltiview({'step';'impulse'},hs1)
isstable(hs)
isstable(hs1)
Stability CLOOSED LOOP- Interactive Control Designer
G = tf([5 0 0],[1 0 2 3]);
controlSystemDesigner('bode',G);
https://www.mathworks.com/help/c
ontrol/ug/bode-diagram-design.html
https://www.mathworks.com/videos/
understanding-bode-plots-why-use-
them-1-of-4-76194.html
https://www.powerelectronics.com/t
echnologies/power-electronics-
systems/article/21861083/five-things-
every-engineer-should-know-about-
bode-plots
https://www.powerelectronics.com/t
echnologies/power-electronics-
systems/article/21860614/when-
bode-plots-fail-us
Bibliografía
• Oppenheim, A. Willsky, and H. Nawab, Signals and Systems, 2ª edición, 1997, Prentice Hall,
ISBN # 0-13-814757-4.
• Hwei P. Hsu, SCHAUM'S OUTLINES OF Theory and Problems of Signals and Systems”, 1995,
McGraw Hill