Lecture 6
Lecture 6
c K. J. Åström September, 2000 2
Notice Steady State Responses Proof
Output y Consider a system with transfer function G (s) having distinct
0.25
0.05
0
The Laplace transform of the output is
Rk
−0.05
1 1 1
−0.1
0 5 10 15 Y ( s) = G ( s) = G ( iω 0 ) +
s − iω 0 s − iω 0 s − α k α k − iω 0
Input u
1
This corresponds to the time function
0.5
Rk
y( t) = G ( iω 0 ) eiω 0 t + eα k t
0
α k − iω 0
Since all α k are negative the first terms go to zero and y(t) →
−0.5
−1
0 5 10 15 G (iω 0 ) eiω 0 t for large t.
−1 ϕ Re G(iω )
a
c K. J. Åström September, 2000 3
10
5
Gain Matlab
10
4
There are excellent tools in Matlab for drawing Nyquist curves
3
and Bode plots in the Control System Toolbox in Matlab.
10
10
2 NYQUIST Nyquist frequency response of LTI models.
BODE Bode frequency response of LTI models.
1
10
−2 −1 0 1 2
10 10 10 10 10
w Use the help function to figure out how the commands work.
Phase Try a few examples.
50 Notice that Matlab uses decibel (dB) as a standard unit for
0 amplitude, where 20 dB corresponds to a factor 10. If you think
−50 dB is an unnecessary complication it is easy to make your own
−100
plots with other units.
−150
−2 −1 0 1 2
10 10 10 10 10
w
It is easy to sketch Bode plots because with the right scales From: U(1)
20
10
G ( s) = s
0
−10
−15
Consider first a transfer function which is a polynomial G (s) = We have G (iω ) = iω −20
91
To: Y(1)
log G ( s) = log B ( s) − log A( s)
90
arg G ( iω ) = π /2
89.5
Frequency (rad/sec)
Matlab:
s, s + a, s2 + 2ζ as + a2
sys=tf([1 0],1)
it suffices to be able to sketch Bode diagrams for these terms. bode(sys,{0.1,1})
The Bode plot of a complex system is then obtained by com-
position.
c K. J. Åström September, 2000 4
Integrator First Order System G (s) = s + a
√
We have G (iω ) = a + iω , hence G (iω ) = ω 2 + a2 and
Bode Diagrams
From: U(1)
15
10
1
G ( s) =
5
s
0
1
log G ( iω ) = log (ω 2 + a2 ), arg G ( iω ) = arctan ω / a
−10
2
We have G (iω ) =
−15
−20
−i ω1 −89
−89.5
log a if ω << a,
To: Y(1)
√
log G ( iω ) = − log ω −90
log G ( iω ) log a + log 2 if ω = a, ,
arg G ( iω ) = −π /2
−90.5
log ω if ω >> a
−91
−1 0 1
10 10 10
Frequency (rad/sec)
0 if ω << a,
Matlab:
π 1 ω
arg G ( iω ) + log if ω a, ,
sys=tf(1,[1 0]) 4 2 a
bode(sys,{0.1,1})
π
if ω >> a
2
10
2
Gain Second Order System G (s) = s2 + 2ζ a + a2
1
G ( iω ) = a2 − ω 2 + 2iζ aω
10
1
log G ( iω ) = log (ω 4 + 2a2ω 2 (2ζ 2 − 1) + a4 )
2
arg G ( iω ) = arctan 2ζ aω /( a 2 − ω 2 )
0
10
−2 −1 0 1 2
ω /a
10 10 10 10 10
Phase
2 log a if ω << a,
2 log a + log 2ζ if ω = a, ,
80
log G ( iω )
2 log ω if ω >> a
60
40
0 if ω << a,
π ω −a
if ω = a, ,
20
arg G ( iω ) +
2 aζ
0
−2 −1 0 1 2
ω /a π if ω >> a
10 10 10 10 10
c K. J. Åström September, 2000 5
2
Gain Sketching Bode Plots
10
1
10
System
200( s + 1) 1+s
G ( s) = =
s( s + 10)( s + 200) 10s(1 + 0.1s)(1 + 0.01s)
0
10
−1
10
−1 0 1
• Determine break points (poles and zeros) sort them in
ω /a
10 10 10
increasing frequency
Phase 1
• Start with low frequencies ( G (s) )
150 10s
• Draw the low frequency asymptote
100
0
Gain The Concept of Minimum Phase
10
10
−1
A system is called a minimum phase system if all its poles
and zeros are in the left half plane. Minimum phase systems
10
−2 are easy to control.
For minimum phase systems the phase curve is given by the
−3
10
−1 0 1 2 3 gain curve and vice versa. An approximate relation is
ω
10 10 10 10 10
Phase π d log G ( iω )
0
arg G ( iω ) ,
2 d log ω
−50
A slope of one for the gain curve corresponds to 90 ○ phase.
−100 The exact relations are called Bodes relations. Systems that
are not minimum phase are called non-minimum phase. The
−150
property of non-minimum phase imposes severe limitations to
10
−1 0
10
ω
10
1 2
10 10
3
what can be achieved by control.
c K. J. Åström September, 2000 6
Bode’s Relations between Amplitude and Phase The Smoothing Kernel
let G (s) be a transfer function with all poles and zeros in the We have
left half plane. Introduce ∞
ω + ω0 π2
log dω =
0 ω − ω0 2
∞
2ω 0
log G ( iω ) − log G ( iω 0 )
arg G ( iω 0 ) = dω
Weight
0 π ω 2 − ω 20 6
1 ∞ d log G ( iω ) ω + ω0 π d log G ( iω ) 5
= log dω
π 0 d log ω ω − ω0 2 d log ω 4
y
∞
log G ( iω ) 2ω 2 ω −1 arg G ( iω ) − ω 0−1 arg G ( iω 0 ) 2
=− 0 dω
log G ( iω 0 ) π 0 ω 2 − ω 20 1
2ω 2 ∞ d ω −1 arg G ( iω ) ω + ω0 0
−3 −2 −1 0 1 2 3
=− 0 log dω 10 10 10 10
ω /a
10 10 10
π 0 dω ω − ω0
0= = e−α th( t) dt
α 0
−1
10
ω /a
−1 0 1
10 10 10
Phase Since the integral is zero the step response must assume both
0 positive and negative values
−50
1
−100 0.5
0
−150
ω /a
−1 0 1 −0.5
10 10 10
c K. J. Åström September, 2000 7
s−a
Time Delay G (s) = e−sL RHP Pole G (s) = s+a
We have G (iω ) = 1 and arg G (iω ) = ω L We have G (iω ) = 1 and arg G (iω ) = −2 arctan ωb =
1
Gain −π + 2 arctan ωb
10
10
1
Gain
0
10
0
10
−1
10
ωL
−1 0 1
10 10 10
Phase 10
−1
ω /a
−1 0 1
10 10 10
0
−100
Phase
0
−200
−50
−300
−100
−400
ωL
−1 0 1
10 10 10 −150
ω /a
−1 0 1
10 10 10
One pole and one zero in the right half plane. This plane is
difficult to control well.
c K. J. Åström September, 2000 8
Rear Wheel Steering Summary
• Backing with a car is non-minimum phase • The input-output view of dynamical systems
• A bicycle with rear wheel steering has the transfer function • Describe a system by making a table of all input-output
pairs
θ ( s) mhV0 V0 − x f s
= • Fourier’s idea: look at steady state propagation of sinu-
δ ( s) J p c s2 − mg h/ J p
soids
Both poles and zeros in the right half plane! • Frequency response G (iω )
• An airplane with rudders in the rear. • Graphical representations, very useful for intuition
• A boat. • Bode and Nyquist plots
• The concept of non-minimum phase
• Severe performance limitation because of non-minimum
phase
c K. J. Åström September, 2000 9