Lecture Notes v1.0 - System Response
Lecture Notes v1.0 - System Response
Transfer function H(s) is a mathematical function that describes the relationship between a system's
input and output in the frequency domain. It's calculated by dividing the Laplace transform of the
output by the Laplace transform of the input, assuming all initial conditions are zero.
Transfer functions are also known as system functions or network functions. They're often represented
in block diagrams and are used in electronic engineering tools like circuit simulators.
A transfer function is a convenient way to represent a linear, time-invariant (LTI) system in terms of its
input-output relationship. It is obtained by applying a Laplace transform to the differential equations
describing system dynamics, assuming zero initial conditions. In the absence of these equations, a
transfer function can also be estimated from measured input-output data.
ECE4510/5510: Feedback Control Systems. 8–1
FREQUENCY-RESPONSE ANALYSIS
■ Let α0 = Ae j φ . Then,
yss = Ae j φ e j ωt + Ae− j φ e− j ωt
% &
= A e j (ωt+φ) + e− j (ωt+φ)
= 2A cos (ωt + φ) .
= 0 − tan−1 (ω/3) .
■ Now that we know the amplitude and phase response, we can find
the amplitude gain and phase change caused by the system for any
specific frequency.
■ For example, if ω = 3 rad s−1,
√
2 2
A( j3) = √ =
9+9 3
φ( j3) = − tan−1(3/3) = −π/4.
EXAMPLE :
R
1
U (s) C Y (s) G(s) =
1 + RCs
■ Frequency response
1
G( jω) = (let RC = 1)
1 + jω RC
1
=
1 + jω
1
=√ ̸ − tan−1 (ω).
1 + ω2
■ We will need to separate magnitude and phase information from
rational polynomials in jω.
ω G( jω)
0 1.000̸ 0.0◦
0.5 0.894̸ − 26.6◦
1.0 0.707̸ − 45.0◦
1.5 0.555̸ − 56.3◦
2.0 0.447̸ − 63.4◦
3.0 0.316̸ − 71.6◦
5.0 0.196̸ − 78.7◦
10.0 0.100̸ − 84.3◦
∞ 0.000̸ − 90.0◦
■ We can replot the data by separating the plots for magnitude and
phase making two plots versus frequency.
1 0
−10
0.8 −20
−30
G( jω)
|G( jω)|
0.6
−40
−50
0.4
−60
̸
0.2 −70
−80
0 −90
0 1 2 3 4 5 6 0 1 2 3 4 5 6
Frequency, (rads/sec.) Frequency, (rads/sec.)
■ The above plots are in a natural scale, but usually a log-log plot is
made ➠ This is called a “Bode plot” or “Bode diagram.”
Exact Approximation
0.1ωn ωn 10ωn
■ A transfer function is made up of first-order zeros and poles, complex
zeros and poles, constant gains and delays. We will see how to make
straight-line (magnitude- and phase-plot) approximations for all these,
and combine them to form the appropriate Bode diagram.
= ±20 log10 ωn
= ±20n log10 ω.
■ For a zero on the real axis, (LHP or RHP), the standard Bode form is
* +
s
G(s) = ±1 ,
ωn
which ensures unity dc-gain.
■ If you start out with something like
G(s) = (s + ωn ),
then factor as + *
s
G(s) = ωn +1 .
ωn
Draw the gain term (ωn ) separately from the zero term (s/ωn + 1).
■ In general, a LHP or RHP zero has standard Bode form
* +
s
G(s) = ±1
ωn
Lecture notes prepared by and copyright ⃝
c 1998–2017, Gregory L. Plett and M. Scott Trimboli
ECE4510/ECE5510, FREQUENCY-RESPONSE ANALYSIS 8–10
* +
ω
G( jω) = ±1 + j
ωn
0
* +2
ω
20 log10 |G( jω)| = 20 log10 1+
ωn
0
+ *
ω 2 √
■ For ω ≪ ωn , 20 log10 1 + ≈ 20 log10 1 = 0.
ωn
0
* +2 * +
ω ω
■ For ω ≫ ωn , 20 log10 1 + ≈ 20 log10 .
ωn ωn
■ Two straight lines on a log scale which intersect at ω = ωn .
■ For a pole on the real axis, (LHP or RHP) standard Bode form is
* +−1
s
G(s) = ±1
ωn
0
* +2
ω
20 log10 |G( jω)| = −20 log10 1 + .
ωn
This is the same except for a minus sign.
−20 dB per
20 dB
decade
20 dB per −20 dB
decade
, -10
• Dip frequency: ωd = ωn 1 − 2ζ 2
-20
Dip (dB)
-50
• Note: There is no dip unless
√ -60
0 < ζ < 1/ 2 ≈ 0.707 . 0 0.1 0.2 0.3 0.4
ζ
0.5 0.6 0.7 0.8
• Pole at origin;
80
60
40
20
−20
−40
−60 −2 −1 0 1 2 3
10 10 10 10 10 10
■ G(s) = K .
3
0◦ , K ≥ 0;
■ ̸ (K ) = ◦
.
−180 , K < 0.
■ Constant phase of 0◦ or −180◦.
160
ζ = 0.05 −20
140
0.1 −40
0.2
120
0.3 −60
ζ = 0.9
100 0.5 −80
0.7
80 0.7 −100 0.5
60 0.9 −120 0.3
40 −140 0.2
20 −160
0.1
0 −180
0.05
0.1ωn ωn 10ωn 0.1ωn ωn 10ωn
−100
250
−150
200
−200
150
−250
100
−300
50
−350
0
0.1ωn ωn 10ωn 0.1ωn ωn 10ωn
G( jω) = e− j ωτ = 1̸ − ωτ
̸ G( jω) = −ωτ in radians.
= −56.3ωτ in degrees.
−90
−180
−2 −1 0 1 2 3
10 10 10 10 10 10
■ Positive gain, one real LHP zero, one pole at origin, two real LHP
poles.
30
20
10
0
−10
−20 −1 0 1 2 3
10 10 10 10 10
90
45
0
−45
−90
−135
−180 −1 0 1 2 3
10 10 10 10 10
Nonminimum-phase systems
■ A system is called a nonminimum-phase if it has pole(s) or zero(s) in
the RHP.
■ Consider 5
4
s+1 zero at − 1 minimum
G 1(s) = 10
s + 10 pole at − 10 phase
4 5
s−1 zero at + 1 nonminimum
G 2(s) = 10
s + 10 pole at − 10 phase
■ The magnitude responses of these two systems are:
√
| jω + 1| ω2 + 1
|G 1( jω)| = 10 = 10 √
| jω + 10| ω2 + 100
√
| jω − 1| ω2 + 1
|G 2( jω)| = 10 = 10 √
| jω + 10| ω2 + 100
which are the same!
■ The phase responses are very different:
Bode-Magnitude Plot Bode-Phase Plot
(G 1 ( jω)), ̸ (G 2 ( jω))
180
20
|G 1 ( jω)|, |G 2 ( jω)|
150
15
120
Non-minimum
Phase, G 2
10 90
60
Minimum
5 Phase, G 1
30
0
0
−2 −1 0 1 2 3 −2 −1 0 1 2 3
10 10 10 10 10 10 10 10 10 10 10 10
̸
s−1
■ Note: is very similar to a first-order Padé approximation to a
s+1
delay. It is the same when evaluated at s = jω.
■ Consider using feedback to control a nonminimum-phase system.
What do the root-locus plotting techniques tell us?
■ Consequently, nonminimum-phase systems are harder to design
controllers for; step response often tends to “go the wrong way,” at
least initially.
Kv
• At low frequency, a type 1 system will have G(s) ≈ .
s
Kv
• At low frequency, |G( jω)| ≈ . Slope of −20 dB/decade.
ω
• Use the above approximation to extend the low-frequency
asymptote to ω = 1. The asymptote (NOT THE ORIGINAL
|G( jω)|) evaluated at ω = 1 is K v .
1
➠ ess = for ramp input.
Kv
■ K a = lim s 2 G(s), and is nonzero for a type 2 system.
s→0
Ka
• At low frequency, a type 2 system will have G(s) ≈ .
s2
Ka
• At low frequency, |G( jω)| ≈ . Slope of −40 dB/decade.
ω2
• Again, use approximation to extend low-frequency asymptote to
ω = 1. The asymptote evaluated at ω = 1 is K a .
1
➠ ess = for parabolic input.
Ka
■ Similar for higher-order systems.
20
Example 1 60
Example 2
10 50
Magnitude
Magnitude
0 40
−10 30
−20 20
−30 10
−40 0
−2 −1 0 1 −2 −1 0 1
10 10 10 10 10 10 10 10
EXAMPLE 2:
A simple example
■ Consider, for now, that we know the transfer-function of the system,
and can plot the root-locus.
EXAMPLE :
I(s)
K =2
r (t) 1
K y(t)
s(s + 1)2
R(s)
−180
−240
KEY POINT: We can find neutral stability point on Bode plot, but don’t
(yet) have a way of determining if the system is stable or not. Nyquist
found a frequency-domain method to do so.
Nyquist stability
s
■ Must draw mapping of points or lines from s-plane to F(s)-plane.
jω s I(F) F(s)
F(s0)
mapping
s0
σ R(F)
EXAMPLE : F(s) = 2s + 1 . . . “map the four points: A, B, C, D”
D A I(s)
j
−1 1 R(s)
−j
C B
F( A)
−1 1 −1 F(B)1 R(s)
C −j B − j F(C)
EXAMPLE :
F(c1)
I(s)
c1
α
R(s)
■ One pole inside contour. Resulting map undergoes 360◦ net phase
change. (Encircles the origin).
EXAMPLE :
I(s) F(c3)
c3
R(s)
■ In this example, there are two poles inside the contour, and the map
encircles the origin twice.
P = # of poles of F(s) in C.
■ Consider the following feedback system:
I(s)
■ For closed-loop stability, no poles of T (s)
in RHP. R→∞
R(s) R(s)
■ Simple? YES!!!
■ Think of Nyquist path as four parts: I(s)
I. Origin. Sometimes a special case (later III
examples). II
THE TEST:
■ N = # encirclements of −1 point when F(s) = D(s)G(s)H (s).
■ P = # poles of 1 + F(s) in RHP= # of open-loop unstable poles. (as-
suming that H (s) is stable—reasonable).
■ Z = # of zeros of 1 + F(s) in RHP= # of closed-loop unstable poles.
Z=N+P
■ No encirclements of −1, N = 0.
■ No open-loop unstable poles P = 0.
■ Z = N + P = 0. Closed-loop system is stable.
■ No encirclements of −1/K for any K > 0.
s2 1 1 + 5K
s1 2
s 0 1 + 5K
R(s)
III
II ρ→0
θ
R(s) R(s)
I
IV
■ The bump at the origin makes a detour around the offending pole.
■ Bump defined by curve: s = lim ρe j θ , 0◦ ≤ θ ≤ 90◦.
ρ→0
■ From above,
1
G(s)|s=ρe j θ = , 0◦ ≤ θ ≤ 90◦
ρe j θ (τρe j θ + 1)
■ Consider magnitude as ρ → 0
1 1
lim |G(s)|s=ρe j θ = ≈ .
ρ→0 ρ|τρe j θ + 1| ρ
■ So,
1
lim G(ρe j θ ) = lim ̸ − θ+
ρ→0 ρ→0 ρ
■ Z = N + P.
■ N = # encirclements of −1. N = 0.
■ P = # Loop transfer function poles
inside MODIFIED contour. P = 0.
■ Z = 0. Closed-loop system is stable.
EXAMPLE :
1
G(s) =
s 2(s + 1)
■ Use modified Nyquist path again
I: Near origin
1
G(s)|s=ρe j θ = .
ρ 2e j 2θ (1 + ρe j θ )
jθ 1 1
■ Magnitude: lim |G(ρe )| = 2 ≈ .
ρ→0 ρ |1 + ρe j θ | ρ 2
■ Phase: lim ̸ G(ρe
jθ
) = 0 − [2θ + ̸ (1 + ρe j θ )] ≈ −2θ +. So,
ρ→0
1
lim G(ρe j θ ) = lim ̸ − 2θ + 0◦ ≤ θ ≤ 90◦.
ρ→0 ρ→0 ρ 2
K = 1.
■ In fact, unstable for any K > 0!
20
■ GM = 1/(Bode gain at
Magnitude
10
phase-crossover 0
−30 −2 −1 0 1 2
■ GM = (− Bode gain at 10 10 10 10 10
Frequency, (rads/sec.)
phase-crossover
−90
frequency) [dB] if Bode −120
−180
■ PM = Bode phase at −210
−270
−2 −1 0 1 2
10 10 10 10 10
Frequency, (rads/sec.)
■ We can also determine stability as K changes. Instead of defining
gain crossover where |G( jω)| = 1, use the frequency where
|K G( jω)| = 1.
Lecture notes prepared by and copyright ⃝
c 1998–2017, Gregory L. Plett and M. Scott Trimboli
ECE4510/ECE5510, FREQUENCY-RESPONSE ANALYSIS 8–39
■ You need to be careful using this test.
• It works if you apply it blindly and the system is minimum-phase.
• You need to think harder if the system is nonminimum-phase.
• Nyquist is the safest bet.
PM and performance
■ A bonus of computing PM from the open-loop frequency response
graph is that it can help us predict closed-loop system performance.
■ PM is related to damping. Consider open-loop 2nd-order system
ωn2
G(s) =
s(s + 2ζ ωn )
with unity feedback,
ωn2
T (s) = 2 .
s + 2ζ ωn + ωn2
■ The relationship between PM and ζ is: (for this system)
⎡ ⎤
2ζ
PM = tan−1 ⎣ :,
⎢ ⎥
⎦
1 + 4ζ 4 − 2ζ 2
PM
■ For PM ≤ 60◦, ζ ≈ , so can also infer M p from PM.
100
Damping ratio versus PM Overshoot fraction versus PM
1 1
0.9
Damping ratio ζ
M p , overshoot
0.8 0.8
0.7
0.6 0.6
0.5
0.4 0.4
0.3
0.2 0.2
0.1
0 0
10 20 30 40 50 60 70 80 0 10 20 30 40 50 60 70 80
■ “For any stable minimum-phase system (that is, one with no RHP
zeros or poles), the phase of G( jω) is uniquely related to the
magnitude of G( jω)”
> * +
1 ∞ dM
■ Relationship: ̸ G( jω ) = W (u) du (in radians)
o
π −∞ du
M = ln |G( jω)|
* +
ω
u = ln
ωo
dM
≈ slope n of log-mag curve at ω = ωo
du
W (u) = weighting function = ln(coth |u|/2)
4
2
π 3.5
■ W (u) ≈ δ(u). Using this re- 3
2
lationship, ̸ G( jω) ≈ n × 90◦ 2.5
W (u)
1
plot is constant in the decade- 0.5
neighborhood of ω. 0
−6 −4 −2 0 2 4 6
Normalized freq. u
■ So, if ̸ G( jω) ≈ −90◦ if n = −1.
■ So, if ̸ G( jω) ≈ −180◦ if n = −2.
KEY POINT: Want crossover |G( jω)| = 1 at a slope of about −1 for good
PM. We will soon see how to do this (design!).
■ Most of the notes in this section have used the open-loop frequency
response to predict closed-loop behavior.
■ How about closed-loop frequency response?
K D(s)G(s)
T (s) = .
1 + K D(s)G(s)
■ General approximations are simple to make. If,