Professional Documents
Culture Documents
Natural Response of First and Second Order Systems: S. Boyd EE102
Natural Response of First and Second Order Systems: S. Boyd EE102
Boyd EE102
Lecture 4
Natural response of rst and second order
systems
rst order systems
second order systems
real distinct roots
real equal roots
complex roots
harmonic oscillator
stability
decay rate
critical damping
parallel & series RLC circuits
41
First order systems
ay
+by = 0 (with a = 0)
righthand side is zero:
called autonomous system
solution is called natural or unforced response
can be expressed as
Ty
+y = 0 or y
+ry = 0
where
T = a/b is a time (units: seconds)
r = b/a = 1/T is a rate (units: 1/sec)
Natural response of rst and second order systems 42
Solution by Laplace transform
take Laplace transform of Ty
+y = 0 to get
T(sY (s) y(0)
. .
L(y
)
) +Y (s) = 0
solve for Y (s) (algebra!)
Y (s) =
Ty(0)
sT + 1
=
y(0)
s + 1/T
and so y(t) = y(0)e
t/T
Natural response of rst and second order systems 43
solution of Ty
+y = 0: y(t) = y(0)e
t/T
if T > 0, y decays exponentially
T gives time to decay by e
1
0.37
0.693T gives time to decay by half (0.693 = log 2)
4.6T gives time to decay by 0.01 (4.6 = log 100)
if T < 0, y grows exponentially
|T| gives time to grow by e 2.72;
0.693|T| gives time to double
4.6|T| gives time to grow by 100
Natural response of rst and second order systems 44
Examples
simple RC circuit:
PSfrag replacements
v
R C
circuit equation: RCv
+v = 0
solution: v(t) = v(0)e
t/(RC)
population dynamics:
y(t) is population of some bacteria at time t
growth (or decay if negative) rate is y
= ay
y(t) = y(0)e
at/c
; c/a is thermal time constant
Natural response of rst and second order systems 46
Second order systems
ay
+by
+cy = 0
assume a > 0 (otherwise multiply equation by 1)
solution by Laplace transform:
a(s
2
Y (s) sy(0) y
(0)
. .
L(y
)
) +b(sY (s) y(0)
. .
L(y
)
) +cY (s) = 0
solve for Y (just algebra!)
Y (s) =
asy(0) +ay
(0) +by(0)
as
2
+bs +c
=
s +
as
2
+bs +c
where = ay(0) and = ay
(0) +by(0)
Natural response of rst and second order systems 47
so solution of ay
+by
+cy = 0 is
y(t) = L
1
_
s +
as
2
+bs +c
_
(s) = as
2
+bs +c is called characteristic polynomial of the system
form of y = L
1
(Y ) depends on roots of characteristic polynomial
coecients of numerator s + come from initial conditions
Natural response of rst and second order systems 48
Roots of
(two) roots of characteristic polynomial are
1,2
=
b
b
2
4ac
2a
i.e., we have as
2
+bs +c = a(s
1
)(s
2
)
three cases:
roots are real and distinct: b
2
> 4ac
1
=
b +
b
2
4ac
2a
,
2
=
b
b
2
4ac
2a
roots are real and equal: b
2
= 4ac
1
=
2
= b/(2a)
Natural response of rst and second order systems 49
roots are complex (and conjugates): b
2
< 4ac
1
= +j,
2
= j,
where = b/(2a) and
=
4ac b
2
2a
=
_
(c/a) (b/2a)
2
Natural response of rst and second order systems 410
Real distinct roots (b
2
> 4ac)
(s) = a(s
1
)(s
2
) (
1
,
2
real)
from page 4-6,
Y (s) =
s +
a(s
1
)(s
2
)
where , depend on initial conditions
express Y as
Y (s) =
r
1
s
1
+
r
2
s
2
where r
1
and r
2
are found from
r
1
+r
2
= /a,
2
r
1
1
r
2
= /a
which yields
r
1
=
1
+
b
2
4ac
, r
2
=
2
b
2
4ac
Natural response of rst and second order systems 411
now we can nd the inverse Laplace tranform . . .
y(t) = r
1
e
1
t
+r
2
e
2
t
a sum of two (real) exponentials
coecients of exponentials, i.e.,
1
,
2
, depend only on a, b, c
associated time constants T
1
= 1/|
1
|, T
2
= 1/|
2
|
r
1
, r
2
depend (linearly) on the initial conditions y(0), y
(0)
signs of
1
,
2
determine whether solution grows or decays as t
magnitudes of
1
,
2
determine growth rate (if positive) or decay rate
(if negative)
Natural response of rst and second order systems 412
Example: second-order RC circuit
PSfrag replacements
t = 0
y
1 1
1F 1F
at t = 0, the voltage across each capacitor is 1V
for t 0, y satises LCCODE (from page 2-18)
y
+ 3y
+y = 0
initial conditions:
y(0) = 1, y
(0) = 0
(at t = 0, voltage across righthand capacitor is one; current through
righthand resistor is zero)
Natural response of rst and second order systems 413
solution using Laplace transform
characteristic polynomial: (s) = s
2
+ 3s + 1
b
2
= 9 > 4ac = 4, so roots are real & distinct:
1
= 2.62,
2
= 0.38
hence, solution has form
y(t) = r
1
e
2.62 t
+r
2
e
0.38 t
initial conditions determine r
1
, r
2
:
y(0) = r
1
+r
2
= 1, y
(0) = 2.62r
1
0.38r
2
= 0
yields r
1
= 0.17, r
2
= 1.17,
y(t) = 0.17e
2.62 t
+ 1.17e
0.38 t
Natural response of rst and second order systems 414
rst exponential decays fast, within 2sec (T
1
= 1/|
1
| = 0.38)
second exponential decays slower (T
2
= 1/|
2
| = 2.62)
expanded scale, for 0 t 2
0 5 10 15 20
0
0.2
0.4
0.6
0.8
1
PSfrag replacements
t
y
0 0.5 1 1.5 2
0.5
0.6
0.7
0.8
0.9
1
PSfrag replacements
t
y
Natural response of rst and second order systems 415
Real equal roots (b
2
= 4ac)
(s) = a(s )
2
with = b/(2a)
from page 4-6,
Y (s) =
s +
a(s )
2
express Y as
Y (s) =
r
1
s
+
r
2
(s )
2
where r
1
and r
2
are found from r
1
= /a, r
1
+r
2
= /a, which yields
r
1
= /a, r
2
= ( +)/a
inverse Laplace transform is
y(t) = r
1
e
t
+r
2
te
t
Natural response of rst and second order systems 416
Example: mass-spring-damper
PSfrag replacements
y
m
k b
mass m = 1, stiness k = 1, damping b = 2
LCCODE (from page 2-19):
y
+ 2y
+y = 0
initial conditions
y(0) = 0, y
(0) = 1
Natural response of rst and second order systems 417
solution using Laplace transform
characteristic polynomial: s
2
+ 2s + 1 = (s + 1)
2
solution has form y(t) = r
1
e
t
+r
2
te
t
initial conditions determine r
1
, r
2
: y(0) = r
1
= 0, y
(0) = r
1
+r
2
= 1
yields r
1
= 0, r
2
= 1, i.e.,
y(t) = te
t
0 2 4 6 8 10
0
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
PSfrag replacements
t
y
called critically damped system (more later)
Natural response of rst and second order systems 418
Complex roots (b
2
< 4ac)
(s) = a(s )(s ) with = +j, = j
from page 4-6,
Y (s) =
s +
a(s )(s )
express Y as
Y (s) =
r
1
s
+
r
2
s
where r
1
and r
2
follow from r
1
+r
2
= /a, r
1
r
2
= /a:
r
1
=
2a
+j
b 2a
4a
2
, r
2
= r
1
inverse Laplace transform is
y(t) = r
1
e
t
+r
1
e
t
Natural response of rst and second order systems 419
other useful forms:
y(t) = r
1
e
t
+r
1
e
t
= r
1
e
t
(cos t +j sin t) +r
1
e
t
(cos t j sint)
= ((r
1
) +j(r
1
)) e
t
(cos t +j sin t)
+ ((r
1
) j(r
1
))e
t
(cos t j sin t)
= 2e
t
((r
1
) cos t (r
1
) sint)
= Ae
t
cos(t +)
where A = 2|r
1
|, = arctan((r
1
)/(r
1
))
if > 0, y is an exponentially growing sinusoid; if < 0, y is an
exponentially decaying sinusoid; if = 0, y is a sinusoid
= gives exponential rate of decay or growth; = gives
oscillation frequency
amplitude A and phase determined by initial conditions
Ae
t
is called the envelope of y
Natural response of rst and second order systems 420
example
0 1 2 3 4 5 6 7 8
1
0.5
0
0.5
1
PSfrag replacements
t
y
what are and here?
oscillation period is 2/
envelope decays exponentially with time constant 1/
Natural response of rst and second order systems 421
envelope gives |y| when sinusoid term is 1
if < 0, envelope decays by 1/e in 1/ seconds
if > 0, envelope doubles every 0.693/ seconds
growth/decay per period is e
2(/)
if < 0, number of cycles to decay to 1% is
(4.6/2)(/||) = 0.73(/||)
Natural response of rst and second order systems 422
The harmonic oscillator
system described by LCCODE
y
+
2
y = 0
characteristic polynomial is s
2
+
2
; roots are j
solutions are sinusoidal: y(t) = Acos(t +), where A and come
from initial conditions
LC circuit
from i = Cv
, v = Li
we get
v
+ (1/LC)v = 0
oscillation frequency is = 1/
LC
PSfrag replacements
C L
v
i
Natural response of rst and second order systems 423
mass-spring system
my
+ky = 0;
oscillation frequency is =
_
k/m
PSfrag replacements
m
y
k
Natural response of rst and second order systems 424
Stability of second order system
second order system
ay
+by
+cy = 0
(recall assumption a > 0)
we say the system is stable if y(t) 0 as t no matter what the
initial conditions are
when is a 2nd order system stable?
for real distinct roots, solutions have the form y(t) = r
1
e
1
t
+r
2
e
2
t
for stability, we need
1
=
b +
b
2
4ac
2a
< 0,
2
=
b
b
2
4ac
2a
< 0,
we must have b > 0 and 4ac > 0, i.e., c > 0
Natural response of rst and second order systems 425
for real equal roots, solutions have the form y(t) = r
1
e
t
+r
2
te
t
for stability, we need
= b/2a < 0
i.e., b > 0; since b
2
= 4ac, we also have c > 0
for complex roots, solutions have the form y(t) = Ae
t
cos(t +)
for stability, we need
= = b/2a < 0
i.e., b > 0; since b
2
< 4ac we also have c > 0
summary: second order system with a > 0 is stable when
b > 0 and c > 0
Natural response of rst and second order systems 426
Decay rate
assume system ay
+by
r
1
e
1
t
r
2
e
2
t
(assuming r
1
is nonzero); hence asymptotic decay rate is given by
1
=
b
b
2
4ac
2a
Natural response of rst and second order systems 427
real equal roots (b
2
= 4ac)
solution is r
1
e
t
+r
2
te
t
which decays like e
t
, so decay rate is
= b/(2a) =
_
c/a
complex roots (b
2
< 4ac)
solution is Ae
t
cos(t +), so decay rate is
= () = b/(2a)
Natural response of rst and second order systems 428
Critical damping
question: given a > 0 and c > 0, what value of b > 0 gives maximum
decay rate?
answer:
b = 2
ac
which corresponds to equal roots, and decay rate
_
c/a
b = 2
ac
Natural response of rst and second order systems 429
if the system is overdamped, the decay rate is worse than
_
c/a because
b
b
2
4ac
2a
<
_
c/a
to prove this, multiply by 2a and re-arrange to get
b 2
ac
?
<
_
b
2
4ac
rewrite as
b 2
ac
?
<
_
(b 2
ac)(b + 2
ac)
divide by b 2
ac to get
1
?
<
_
b + 2
ac
_
b
ac
which is true . . .
Natural response of rst and second order systems 430
Parallel RLC circuit
PSfrag replacements
R L C
v
i
we have v = Li
and Cv
= i v/R, so
v
+
1
RC
v
+
1
LC
v = 0
stable (assuming L, R, C > 0)
overdamped if R <
_
L/(4C)
critically damped if R =
_
L/(4C)
underdamped if R >
_
L/4C; oscillation frequency is
=
_
1/LC (1/2RC)
2
Natural response of rst and second order systems 431
Series RLC circuit
PSfrag replacements
R
L
C
v
i
by KVL, Ri +Li
+v = 0; also, i = Cv
, so
v
+
R
L
v
+
1
LC
v = 0
stable (assuming L, R, C > 0)
overdamped if R > 2
_
L/C
critically damped if R = 2
_
L/C
underdamped if R < 2
_
L/C; oscillation frequency is
=
_
1/LC (R/2L)
2
Natural response of rst and second order systems 432