Frequency Domain Analysis Using Bode Plot: Swagat Kumar July 11, 2005
Frequency Domain Analysis Using Bode Plot: Swagat Kumar July 11, 2005
Swagat Kumar
July 11, 2005
Y (s)
G(s) =
U (s)
For a sinusoidal input u(t) = Asinωt, the output of the system is given by
y(t) = Y sin(ωt + φ)
where
Y = A|G(jω)|
Im[G(jω)]
φ = ∠G(jω) = tan−1
Re[G(jω)]
A stable linear system subjected to a sinusoidal input will, at steady state, have a
sinusoidal output of the same frequency as the input. But the amplitude and phase
of output will, in general, be different from those of the input.
• Bode Diagram
• Nyquist plot or polar plot
• Log-magnitude versus phase plot
In this lecture, we will only study about “Bode Diagram” and its application in
compensator design.
1. K
2. (jω)±1
3.(jωτ + 1)±1
h i±1
jω jω
4. ( ω )2 + 2ζ ω + 1
n n
The gain K :
• Log-magnitude curve is a straight line at 20 log K and phase angle is zero for
all ω
• The effect of varying the gain K in the transfer function is that it raises or lowers
the log-magnitude curve by a constant amount without effecting its phase curve.
20
Slope = -20dB/decade
|G(jω)| ∠G(jω)
10
−20
(a) Magnitude Plot (b) Phase Plot
1
Figure 1: Magnitude and Phase plot of G(jω) = jω
20
|G(jω)| ∠G(jω)
10 90◦
First order factors (1 + jωT )∓1 : The log magnitude of the first order factor
1
(1+jωT ) is
1 p
= −20 log 1 + ω 2 T 2 dB
20log
(1 + jωT )
The phase angle is φ = − tan−1 ωT . The log-magnitude curve can be
approximated by two asymptotes as given below:
1
√
For ω << T, −20 log 1 + ω 2 T 2 ≈ −20 log 1 = 0 dB
1
√
For ω >> T, −20 log 1 + ω 2 T 2 ≈ −20 log ωT dB
Phase curve
ω 0 1/T ∞
φ 0 −45◦ −90◦
∠G(jω)
Corner frequency
10 30◦
Asymptote
|G(jω)| 0 0◦
−10 −30◦
−20 −60◦
1
Figure 3: Magnitude and phase plot of (1+jωT )
∠G(jω)
Corner frequency
30 90◦
|G(jω)| 20 60◦
10 30◦
0 0◦
Asymptote
−10 −30◦
1 1 1 1 2 10 20 1 1 1 1 2 10 20
20T 10T 2T T T T T 20T 10T 2T T T T T
2
Quadratic factors [1 + 2ζ j ωωn ω
+ j ωn ]∓1 : The log-magnitude curve for
2
1/(1 + 2ζ j ωωn + j ωωn ) is given by
s
2 2
2
1 ω ω
20 log 2 = −20 log 1− 2 + 2ζ
ω ωn
1 + 2ζ j ωωn + j ωωn n
1
The phase angle of 2 is
1+2ζ (j ωωn )+(j ωωn )
2ζ ωωn
φ = tan−1
2
1 − ωωn
ω 0 ωn ∞
φ 0◦ −90◦ −180◦
Resonant Frequency: 10
p
ωr = ωn 1 − 2ζ 2 8
Mr in dB
Resonant Peak: 6
1 0.707
Mr = |G(jω)|max = |G(jωr )| = p 4
2ζ 1 − ζ 2
2
for 0
≤ ζ ≤ 0.707. For ζ > 0.707, ωr = 0 and
Mr = 1
0 0.2 0.4 0.6 0.8 1.0
Bandwith:
ζ
2
p 4 2 1/2
p
BW = ωn [(1 − 2ζ ) + (ζ − 4ζ + 2)] = [ωr2 + ωr4 + ωn4 ]1/2
1
G(s) =
s(s + 1.414)
Adding a zero to the forward path transfer function leads to
(1 + T s)
G1 (s) =
s(s + 1.414)
The closed loop transfer function is given by
1 + Ts
H1 (s) = 2
s + (T + 1.414s) + 1
The general effect of adding zero to the forward path transfer function is to
increase the bandwith of the closed loop system.
Bode Diagram
Magnitude (dB)
−1
−2
−3
−4
−5
0
−45
Phase (deg)
T=0
T = 0.2
−90
T = 0.5
T=2
−135 T=5
−180
−1 0
10 10
Frequency (rad/sec)
Step Response
0.8
Amplitude
0.6
0.4
T=0
T = 0.2
T = 0.5
0.2 T=2
T=5
0
2 4 6 8 10 12 14 16 18
Time (sec)
Observations
1
G(s) =
s(s + 1.414)
Adding a pole to the forward-path transfer function leads to
1
G1 (s) =
s(s + 1.414)(1 + T s)
The closed loop transfer function is given by
1
H1 (s) =
T s3 + (1.414T + 1)s2 + 1.414s + 1
The effect of adding a pole to the forward path transfer function is to make
the closed-loop system less stable while decreasing bandwidth
Bode Diagram
10
Magnitude (dB)
5
−5
−10
0
−45
T=0
Phase (deg)
−90
T = 0.5
−135 T=1
T=5
−180
−225
−270
−1 0
10 10
Frequency (rad/sec)
Step Response
1.4
T=0
T = 0.5
1.2 T=1
Amplitude
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25
Time (sec)
Observation
s+1
G1 (s) = 10
s + 10
s−1
G2 (s) = 10
s + 10
|G1 (jω)| = |G2 (jω)|
∠G1 (jω) 6= ∠G2 (jω)
Bode Diagram
20
15
Magnitude (dB)
10
0
180
135 10(s−1)/(s+10)
Phase (deg)
90
10(s+1)/(s+10)
45
0
−2 −1 0 1 2 3
10 10 10 10 10 10
Frequency (rad/sec)
Phase Margin It is the amount of additional lag at the gain crossover frequency ω g
required to bring the system to the verge of instability. At gain crossover
frequency, the magnitude of open loop gain is unity, i.e., |G(jωg )| = 1. The
phase margin γ is given by
γ = 180◦ + φ
where φ = ∠G(jωg ).
Gain Margin It is the amount of additional gain at phase crossover frequency ω p
that can bring the system to the verge of instability. At phase crossover
frequency, the phase angle of open loop transfer function equals −180 ◦ , i.e.,
∠G(jωp ) = −180◦ . The gain margin is given by
1
Kg = or Kg dB = −20 log |G(jωp )|
|G(jωp )|
• The phase margin and gain margin must be positive for a minimum-phase
system to be stable.
• For first order and second order system, gain margin is always infinity.
Disadvantage of Bode plot:
Bode plot can’t be used for stability analysis of non minimum-phase system.
Bode Diagram
Gm = 9.54 dB (at 2.24 rad/sec) , Pm = 25.4 deg (at 1.23 rad/sec)
100
Magnitude (dB)
0
+ve gain
Stable System margin
−50
−100
−90
Margin
−180
−225
Phase crossover frequency
−270
−2 −1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
10
Figure 9: Bode plot of s(s+1)(s+5)
Bode Diagram
Gm = −10.5 dB (at 2.24 rad/sec) , Pm = −23.7 deg (at 3.91 rad/sec)
100
50
Magnitude (dB)
−ve gain margin
0
−50
Unstable System
−100
−90
−135
Phase (deg)
−180
−ve phase
−225 margin
−270
−2 −1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
100
Figure 10: Bode plot of s(s+1)(s+5)
jω
A lead compensator is given by following transfer
function
Ts + 1
Gc (s) = α 0<α<1
αT s + 1
× •
We see that the zero is always located to the right
1
σ
− αT − T1
of the pole in complex plane.
1−α
sin φm =
1+α
1
at a frequency ωm = √
T α
Bode Diagram
8
Magnitude (dB)
5 20 dB/decade
4
0
20
10
0
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
1+s
Figure 11: Bode plot of Gc (s) = 1+0.5s
4
G(s) =
s(s + 2)
Design a compensator for the system so that the static velocity error constant
Kv = 20 sec−1 and phase margin is at least 50◦ .
Design steps:
Ts + 1 4
Kv = lim sGc (s)G(s) = lim s K = 20
s→0 s→0 1 + αT s s(s + 2)
This gives K = 10.
• Using the gain K , draw a Bode diagram of KG(jω). Evaluate phase margin.
The phase margin is about 18◦ .
Bode Diagram
Gm = Inf dB (at Inf rad/sec) , Pm = 18 deg (at 6.17 rad/sec)
50
System: untitled1
Magnitude (dB)
Frequency (rad/sec): 8.95
0
Magnitude (dB): −6.24
New
Gain crossover
Frequency
−50
−90
Phase (deg)
−180
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
Figure 12: Bode plot of gain adjusted but uncompensated system KG(jω)
(0.2278s + 1)40
Gc (s)G(s) =
s(s + 2)(0.0547s + 1)
July 11, 2006 Control Systems Laboratory, IIT Kanpur Page 38
Lead compensator design
Bode Diagram
Gm = Inf dB (at Inf rad/sec) , Pm = 50.6 deg (at 8.92 rad/sec)
60
40
20
Magnitude (dB)
0
−20
−40
−60
−80
−90
Phase (deg)
−135
−180
−1 0 1 2 3
10 10 10 10 10
Frequency (rad/sec)
Step Response
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
Time (sec)
Discussion
jω
A lag compensator is given by following
transfer function
Ts + 1
Gc (s) = α α>1
αT s + 1
• ×
We see that the pole is always located to σ
− T1 1
− αT
the right of the zero in complex plane.
a>1
−20 dB/decade
Magnitude (dB)
−5
−10
20 log 1/a
−15
0
Phase (deg)
−30
−60
−2 −1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
1+s
Figure 15: Bode plot of Gc (s) = 1+5s
1
G(s) =
s(s + 1)(0.5s + 1)
Design a compensator so the velocity error constant is Kv = 5 sec−1 , the PM is
at least 40◦ and GM is atleast 10 dB.
Design steps:
Ts + 1 K
Kv = lim sGc (s)G(s) = lim s =K=5
s→0 s→0 1 + αT s s(s + 1)(0.5s + 1)
• Plot the bode diagram of KG(jω).
• Assuming that the PM is to be increased, locate the frequency at which the
desired phase margin is obtained, on bode plot. To compensate for excessive
phase lag, the required phase margin is the specified PM + 5 to 12◦ . Call the
corresponding frequency new gain crossover frequency ωg0 .
The new gain crossover frequency for a PM of 40 + 12 = 52◦ is ωg = 0.5
rad/sec.
1
|KG(jωg0 )| = 20 log10 α>1
α
July 11, 2006 Control Systems Laboratory, IIT Kanpur Page 45
Lag compensator design
Bode Diagram
Gm = −4.44 dB (at 1.41 rad/sec) , Pm = −13 deg (at 1.8 rad/sec)
100
System: untitled1
Frequency (rad/sec): 0.462
50 Magnitude (dB): 19.6
Magnitude (dB)
0
−50
−100
System: untitled1
−180 Frequency (rad/sec): 0.637
Phase (deg): −140
−225
−270
−2 −1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
The magnitude of KG(jωg0 ) is 20 dB and thus we have −20 log α = −20 and
this gives α = 10.
1
• Choose the corner frequency ω = T corresponding to the zero of lag
compensator 1 octave to 1 decade below the new gain crossover frequency ω g0 .
1
We choose the zero of lag compensator at ω = T = 0.1 rad/sec. This gives T
= 10.
5(1 + 10s)
KGc (s)G(s) =
s(1 + 100s)(s + 1)(0.5s + 1)
Bode Diagram
Gm = 14.3 dB (at 1.32 rad/sec) , Pm = 41.6 deg (at 0.454 rad/sec)
150
100
Magnitude (dB)
50
−50
−100
−150
−90
−135
Phase (deg)
−180
−225
−270
−4 −3 −2 −1 0 1 2
10 10 10 10 10 10 10
Frequency (rad/sec)
Discussion
(s + 1)
G(s) = 2
s (s + 8)
Design a PID compensator such that the compensated system has a PM of 60 ◦ and
a gain crossover frequency of 5 rad/sec and an acceleration error constant K a = 1.
The PID compensator is of following form
KI
Gc (s) = KP + KD s +
s
KI
Gc (jω) = KP + j(KD ω − )
ω
= |Gc (jω)|(cos θ + j sin θ)
Bode Diagram
Gm = Inf dB (at Inf rad/sec) , Pm = 17.4 deg (at 0.365 rad/sec)
100
50
Magnitude (dB)
0
−50
−100
−150
−120
Phase (deg)
−150
−180
−2 −1 0 1 2 3
10 10 10 10 10 10
Frequency (rad/sec)
System: h
Step Response
Peak amplitude: 1.65
1.8
Overshoot (%): 64.9
At time (sec): 7.89
1.6
1.4
Amplitude 1.2
1
System: h
Settling Time (sec): 71.1
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
Time (sec)
cos θ
Kp =
|G(jωg )|
Similarly, we have
KI sin θ
K D ωg − =
ωg |G(jωg )|
Now at ωg = 1 rad/s,
G(jωg ) = 0.1754∠ − 142.1250◦
Bode Diagram
Gm = Inf , Pm = 60 deg (at 1 rad/sec)
150
100
Magnitude (dB)
50
−50
−45
−90
Phase (deg)
−135
−180
−2 −1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
(3.9571+3.1471s)(s+1)
Figure 20: Bode plot of compensated system Gc (s)G(s) = s2 (s+8)
1
System: h
Settling Time (sec): 9.89
0.8
Amplitude
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16
Time (sec)