Professional Documents
Culture Documents
Analysis
Prof. Bidyadhar Subudhi
Dept. of Electrical Engineering
National Institute of Technology Rourkela, India
bidyadhar@nitrkl.ac.in
Frequency Response of a System
Steady state response of the system to a sinusoidal input
frequency w(0 < w < ). The amount of amplification, together
with the phase shift, are referred to as the frequency response
data.
r(t) = A sin(wt) c(t) = |G(wt)| A sin(wt + q )
G(s)
2
Advantages of the frequency-response approach
1 We can use the data obtained from measurements on the physical system
without deriving its mathematical model.
2. frequency-response tests are, in general, simple and can be made accurately by
use of readily available sinusoidal signal generators and precise measurement
equipment.
3.The transfer functions of complicated components can be determined
experimentally by frequency-response tests.
4. A system may be designed so that the effects of undesirable noise are negligible
and that such analysis and design can be extended to certain nonlinear control
systems.
Why work in the frequency domain ?
Frequency response data, |G(j)| and
can be obtained experimentally so the system
characteristics can be analysed even if the open loop
transfer function, G(s), is unknown.
3
Definition of Frequency Response
Suppose the input to a plant is a sinusoidal signal, what is
the output ?
5
6
Frequency response R
For a RC circuit:
If : ur A sin(wt 0 ) ur C uc
then: Uc ( jw ) G( jw )U r ( jw )
We call: U c ( jw ) 1
G ( jw )
U r ( jw ) jwRC 1
y
Data processing
Approaches to get the frequency characteristics
2. Deductive approach
Theorem: If the transfer function is G(s), we have:
G( jw ) G( s)
s jw
Proof :
C ( s) M ( s)
assume : G ( s )
R( s ) ( s p1 )( s p2 ) ( s pn )
Aw
and r(t) A sinwt R( s )
s2 w 2
Where pi is assumed to be distinct pole (i=1,2,3n).
then C ( s ) G( s ) R( s )
M ( s) Aw
( s p1 )( s p2 ) ( s pn ) ( s jw )( s jw )
In partial fraction form:
K1 K2 Kn A1 A2
C ( s)
( s p1 ) ( s p2 ) ( s p3 ) ( s jw ) ( s jw )
M ( s)
Here: Ki ( s pi ) R( s )
( s p1 )( s p2 ) ( s p3 ) s p
i
Aw
A1 G ( s ) ( s jw )
( s jw )( s jw ) s jw
A A G ( jw ) j ( G ( jw )90o )
G ( jw ) e
2j 2
A G ( jw ) j ( G ( jw ) 90o )
A2 A1 e
2
Approaches to get the frequency characteristics
Taking the inverse Laplace transform:
n
c( t ) K i e pi t A1e jwt A2 e jwt
i 1
n j (wt G ( jw )90o ) j (w t G ( jw ) 90o
)
e e
Kie pi t
A G ( jw )
2
i 1
n
K i e pi t A G ( jw ) sin(wt G ( jw ))
i 1
For the stable system all poles (-pi) have a negative real parts,
we have the steady-state output signal:
n
lim c( t ) c s ( t ) lim [
t t
K i e pi t A G ( jw ) sin(wt G ( jw ))]
i 1
A G ( jw ) sin(wt G ( jw ))
Approaches to get the frequency characteristics
the steady-state output:
cs (t ) A G( jw ) sin(wt G( jw ))
Compare with the sinusoid inputr (t ) A sinwt , we have:
The amplitude ratio of the steady-state output cs(t) versus
sinusoid input r(t):
A G( jw ) C ( jw )
G(j) magnitude character istic
A R( jw )
The phase difference between the steady-state output and
sinusoid input:
[wt G ( jw )] wt G ( jw ) C ( jw ) R( jw )
phase characteristic
Then we have :
C ( jw )
G ( jw ) G( s)
R ( jw ) s jw
Example
A unity feedback control system, the open-loop transfer
function: 1
G( s)
0.5 s 1
If : r ( t ) 10 sin(4t 60o ) 20cos(4t 45o )
1) Determine the steady-state response c(t) of the system.
2) Determine the steady-state error e(t) of the system.
Solution:
1) Determine the steady-state response c(t) of the system.
0.5 jw 1
E ( s ) R( s ) C ( s ) E ( jw ) R( jw )
1
C ( s) 0.5 jw 2
R( s ) R( s ) R( s ) 5
j 0.5w 1 10
1 ( s) 1
1 E ( jw ) R ( jw ) 4
j 0.5w 2
0.5 s 2 w 4 5
20
0.5 s 1 4
0.5 s 2 j 0.5w 1
E ( jw ) R ( jw )
The error frequency response: j 0.5w 2 w 4
(63.4 o 45o ) (4t 60o ) 4t 78.4 o
o 45o ) (4t 45o ) 4t 63.4 o
The steady state error e(t) is: ( 63.4
1 1
( jw ) s jw
0.5 s 2 0.5 jw 2
The magnitude and The output response:
phase response :
tg 1 ( 2w )
Example 10 10 10
G( s) G( jw )
2s 1 j 2w 1
1 ( 2w ) 2
G ( jw ) G ( jw )
w G ( jw ) G ( jw ) 10
0 10 0o
5
0.5 7.07 45o
1 4.47 63.435o 1
0 w
2 2.4 75.964o 0. 5 1 2 3 4 5
3 1.64 80.538o
4 1.24 82.875o
5 0 .995 84.29o - 90o
System analysis based on the frequency response
Performance specifications in the frequency domain
1. For the closed loop systems
The general frequency response of a closed loop systems is
shown in Fig
(1) Resonance frequency r: The frequency at which the
amplitude is maximum. A()
G ( jw )
Assume : A(w ) ( jw ) Mr
1 G ( jw ) H ( jw )
d A(0)
w r satisfy : A(w ) 0 0.707A(0)
dw w w r
(2) Resonance peak Mr : 0
r b
M r A(w ) Fig.
w w r
(3) Bandwidth b:
2
w b satisfy : A(w )
w wb
A(0)
2
For the open loop systems
(1) Gain crossover frequency c:
wc satisfy : G ( j) H ( j) 1
c
For the unity feedback systems, c b , because:
G ( jw ) 1 G(j w ) 1
( jw )
1 G ( jw ) G ( jw ) G(j w ) 1
(2) Gain margin Kg:
1
Kg ; K g ( dB) 20 log G ( jw ) H ( jw )
G ( jw ) H ( jw ) w w g
w w g
G ( jw )
A(w ) A(0) A(0)
1 G ( jw ) H ( jw ) w w 0.707A(0)
M
: allowed reproducin g error 0
M r b
Fig. 5.5.2
for a given M , higher accuracy of reproducing r(t) .
for a given , M higher accuracy of reproducing r(t) .
Demonstration
assume : E ( jw ) R( jw ) C ( jw ) e ( jw ) R( jw )
and : e ( jw )
Relationship of the performance specifications between
the frequency and time domain
24
25
26
27
28
29
30
31
32
Time & Frequency Correlation
33
34
35
36
37
38
39
40
41
42
43
44
Relationship of the performance specifications between the
frequency and the time domain: for the typical 2nd-order system
We have:
w b w n (1 2 2 ) 2 4 2 4 4
2
w r w n 1 2 (0
2
)
2 , w n p % , t s , t r ...
1
Mr
2 1 2
wc wn 1 4 4 2 2
2
c tg 1
, w n p % , t s , t r ...
1 4 4 2 2
Kg
Graphic expression of the frequency response
The shortage of the polar plot and the rectangular coordinates
plot: to synchronously investigate the cases of the lower and
higher frequency band is difficult.
3. Bode diagram(logarithmic plots)
Plot the frequency characteristic in a semilog coordinate:
49
Logarithmic Frequency Scale
50
Bode diagram of the open loop systems
Plotting methods of the Bode diagram of the open loop systems
Assume:
G ( s ) G1 ( s ) G2 ( s ) G3 ( s )...
here : Gi ( s ) the transf er functio n of the t ypical elements
We have:
(w ) G( jw ) G1 ( jw ) G2 ( jw ) G3 ( jw ) ...
1. Proportional element
Transfer function: C ( s)
G( s ) K
R( s )
Frequency response:
G( jw ) K L(w ) 20 log G( jw ) 20 log K
G( jw ) K
(w ) G( jw ) 0o
L(w ), (w )
(w ) 0o
L(w ) 20 log K dB
0dB, 0o w (log w )
0.1 1 10 100
Bode diagram
Frequency response of the typical elements
Integrating element
C ( s) 1
Transfer function: G( s)
R( s ) s
Frequency response:
1
1 G ( jw ) L(w ) 20 log G ( jw ) 20 log w
G ( jw ) w
jw o
(w ) G ( jw ) 90
L(w ), (w )
L(w ) : 20dB / dec
0dB, 0o w (log w )
0.1 1 10 100 (w ) 90o
Bode diagram
- In Bode diagrams, frequency ratios are expressed in terms of octaves or
decades.
- An octave is a frequency band from w1 to 2w1
- A decade is a frequency band from w1 to 10w1
5
4
- The phase angle of jw is constant and equal to 90.
- The log-magnitude curve is a straight line with a slope of 20
dB/decade.
5
5
Bode diagram of G(j) = 1/j; Bode diagram of G(j) = j.
5
6
Thus, the value of -20 log wT
- At w = 1/T, the log magnitude equals 0 dB.
dB decreases by 20 dB for
- At w = 10/T, the log magnitude is -20 dB.
every decade of w
90o
Bode diagram
Log-magnitude curve, together with the asymptotes, and phase-angle curve of
1/(1+jT).
5
9
Corrections
6
1
In practice, an accurate frequency-response curve can be
drawn by introducing a correction of 3 dB at the corner
frequency and a correction of 1 dB at points one octave
below and above the corner frequency and then connecting
these points by a smooth curve.
6
3
Log-magnitude curve, together with the asymptotes, and phase-angle curve for
61+jT.
4
If > 1, this quadratic factor can be expressed as a
product of two first-order factors with real poles.
If 0 < < 1, this quadratic factor is the product of two
complex conjugate factors.
6
5
6
6
Errors obviously exist in the approximation by straight-
line asymptotes. The magnitude of th error depends on the
value of .
67
Log-magnitude curves, together with the asymptotes, and phase-angle
68 curves of the quadratic transfer function given by Equation (87).
69
Frequency response of the typical elements
Oscillating element
C ( s) 1
Transfer function: G( s ) 0 1
R( s ) T 2 s 2 2Ts 1
1
G( jw )
(1 w 2T 2 ) j 2Tw
2Tw
G ( jw )
1
(w ) tg 1 ( )
1 (w T ) (2Tw )
2 2 2 2
2 2
1w T
0 w w n ( 1 T )
L(w ) 20 log (1 w 2T 2 ) 2 ( 2Tw ) 2 20 log( 2 ) w wn
40 log(wT ) w w
n
maximum value of G( jw )
d 2 2
Make: ( G( jw ) ) 0 w w r w n 1 2 (0 )
dw 2
w r resonant f requency M G( jw ) 1
r r
M r resonant p eak 2 1 2
Frequency response of the typical elements
The Bode diagram: 2
1
L(w ), (w ) 20 log M r
wn 1 / T 20 log( 1 )
2
wr
0dB, 0o w (log w )
0.1 1 10 100
90 o
40dB / dec
180o
Bode diagram
1. w r ( w n ) M r
0 w r w n unstable system
2.
2 w 0 No resonan ce, Optimal Second - order System
r
2
Frequency response of the typical elements
Because of the transfer functions of the differentiating elements
are the reciprocal of the transfer functions of Integrating element,
Inertial element and Oscillating element respectively,
that is: inverse
s 1
s
inverse
Ts 1 1
Ts 1
inverse
T 2 s 2 2Ts 1 1
T 2 s 2 2Ts 1
the Bode curves of the differentiating elements are
symmetrical to the log-axis with the Bode curves of the
Integrating element, Inertial element and Oscillating
element respectively.
Then we have the Bode diagram of the differentiating elements:
Frequency response of the typical elements
L(w ), (w ) L(w ), (w )
180o
L(w ) : 20dB / dec 40dB / dec
(w ) 90o
w (log w ) 90o
0dB, 0o wn 1 T
0.1 1 10 100
0dB, 0o w (log w )
differential 0.1 1 10 100
L(w ), (w )
20 log( 1 )
o 2
90
20dB / dec 20 log M r
o
45
0dB, 0o w (log w ) 2th-order differential
0.1 1 10 100
1th-order differential
Frequency response of the typical elements
Delay element
e s
C ( s)
Transfer G( s )
R( s )
function:
jw G ( jw ) 1 L(w ) 0
G ( jw ) e
(w ) G( jw ) w
L(w ), (w )
0dB, 0o w (log w )
0.1 1 10 100
Bode diagram
10( s 1)
Bode diagram of the OL system G( s ) H ( s )
Example 1 s 2 (0.01s 1)
G(s)H(s) could be regarded as:
10( s 1) 1 1
G ( s) H ( s) 10 (s 1)
2
s (0.01s 1) s2 0.01s 1
Then we have:
L(w ), (w ) 20dB/de
c
40dB/dec
40dB, 90o
20dB, 45o
20dB/dec
0dB, 0o w (log w )
0.1 1 10 100 20dB/dec
-20dB, -45o
-40dB/dec
-40dB, -90o
40dB/dec
-60dB.-135o
-80dB,-180o
method to plot the magnitude response of the Bode diagram
Summarizing, we have the facility method to plot the
magnitude response of the Bode diagram:
1) Mark all break frequencies in the -axis of the Bode
diagram.
2) Determine the slope of the L() of the lowest frequency
band (before the first break frequency) according to the
number of the integrating elements:
20dB/dec for 1 integrating element
40dB/dec for 2 integrating elements
3) Continue the L() of the lowest frequency band until to
the first break frequency, afterwards change the the slope of
the L()
which should be increased 20dB/dec for the break frequency
of the 1th-order differentiating element .
The slope of the L() should be decreased 20dB/dec for the
break frequency of the Inertial element
plot the magnitude response of the Bode diagram
L(w ), (w )
G ( s)
20dB/dec
10( s 1) 40dB, 90o 20dB/dec
2 2 1.25dB
s(0.1s 1)( 0.01 s 0.01s 1) 20dB, 45o
0dB, 0o w (log w )
0.1 1 10 100
-20dB, -45o
60dB/dec
-40dB, -90o wr
-60dB.-135o
-80dB,-180o
-100dB,-225o
-120dB,-270o
G1 ( s) G2 ( s )
(Ts 1) (Ts 1) G1 (w ) G2 (w ) G3 (w ) G4 (w )
T
K ( s 1) K (s 1)
G3 ( s) G4(s) (w ) 2 1
(Ts 1) (Ts 1) K
(Tw ) 2 1
The magnitude responses are the same.
But the net phase shifts are different when vary from zero
to infinite.
Determine the transfer function of the minimum phase
systems in terms of the magnitude response
Definition:
A transfer function is called a minimum phase transfer
func- tion if its zeros and poles all lie in the left-hand s-
plane.
A transfer function is called a non-minimum phase transfer
function if it has any zero or pole lie in the right-hand s-
plane.
Only for the minimum phase systems we can affirmatively
deter- mine the relevant transfer function from the magnitude
response of the Bode diagram .
Determine the transfer function in terms of the
Bode diagram
we can get the G(s) from L(w )
40dB/dec
and :
L(w ) 2o log K 20 log w 2 20 log( 0.5w ) 0 K 40
w 20
Example.4 L(w )
we can get the G(s) from the 20dB
20dB/dec 20dB/dec
0.5 200
Bode diagram : w (log w )
0dB 10 100
0.1 1
Ks
G ( s)
(T1s 1)(T2 s 1)
Determine the transfer function in terms of the
Bode diagram
L(w )
we can get the G(s) from the 20dB
20dB/dec 20dB/dec
Bode diagram : 0.5 200
w (log w )
0dB 10 100
Ks 0.1 1
G ( s)
and : (T1s 1)(T2 s 1)
L(w ) 20 log K 20 log w w 0.5 0 K 2
L( ) 20 log 2 20 log w w 1 / T 20 dB T1 0.2
1
L(w ) 20 log 2 20 log w 20 log( 0.2w ) 20 log(T2w ) w 200 0 T2 0.05
Example 5.3.5 L(w )
20dB/dec
we can get the G(s) from
8.136 dB
the Bode diagram : 20 dB
w (log w )
2 0dB
K ( 0.01s 1) 0.1 1 10 100
G ( s) 60dB/dec
20dB/dec
s(T 2 s 2Ts 1)
Determine the transfer function in terms of the
Bode diagram
L(w )
20dB/dec
we can get the G(s) from
8.136 dB
the Bode diagram : 20 dB
0dB w (log w )
K ( 0.01s 1)2 0.1 1 10 100
G ( s) 60dB/dec
20dB/dec
s(T 2 s 2Ts 1)
1
10 T 0.1
T
L(w ) 20 log K 20 log w w 10 20 dB K 100 then :
1 100(0.01s 1) 2
20 log 8.136 0.2 G(s)
2 1 2 s(0.01s 0.04s 1)
86
Examples
87
88
Bode diagram of the system considered in Example 73.
89
Bode Plots and Stability Analysis
Consider the definitions of the gain and phase margins in relation to
the Bode plot of GH(jw) .
Gain Margin: the additional gain required to make
| GH(jw) | = 1 when /GH(jw) = 180 . On the Bode plot this is the
distance, in dB, from the magnitude curve up to 0dB when the angle
curve crosses 180 .
Phase Margin: the additional phase lag required to make /GH(jw) =
180 when | GH(jw) | = 1 . On the Bode plot this is the distance in
degrees from the phase curve to 180 when the gain curve crosses 0dB.
90
91
92
93
94
95
96
97
98
99
100
101
Gain and Phase Margin
-180
1
0
103
104
105
106
107
108
109
110
111
112
113
Sketch Bode Plot
114
115
116
117
118
119
120
121
Plotting of Bode Diagrams using MATLAB
122
123
EXAMPLE 8-5
124
Bode diagram of
125
126
Figure 8-22 Bode diagram of
127
128
Figure 8-23 Bode diagram of
129
130
131
132
133
134
135
136
137
Example
138
Frequency Response Methods
Using MATLAB
1
3
Frequency Response Methods Using
MATLAB
1
4
Frequency Response
Methods Using
MATLAB
1
4
Frequency Response
Methods Using
MATLAB
1
4
Bode Plots
Bode plot is the representation of the magnitude and phase of G(j*w)
(where the frequency vector w contains only positive frequencies).
To see the Bode plot of a transfer function, you can use the MATLAB
bode
command.
For example,
bode(50,[1 9 30 40])
1
4
Examples Bode
1
4
Examples - Bode
1
4
Examples - Bode
1
4
Examples Bode
1
4
Questions???
Thank you
148