Part 2-3: Analytic Solution of Linear Dynamic Systems: Numerical Methods
Part 2-3: Analytic Solution of Linear Dynamic Systems: Numerical Methods
y (t ) = y H (t ) + y P (t ) Total solution
2 !y! + 12 y! + 16 y = 0
• Assume an exponential solution form for yH(t)
y H (t ) = ce rt
2r 2 + 12r + 16 = 0
• The characteristic roots (r1 = -2 and r2 = -4 in this case) give us the
complimentary solution:
The constants c1 and c2 are determined from the two initial conditions (ICs)
after the particular response has been determined
Transient Steady-state
response response
Transfer function:
1 à Poles of TF G(s) are the
G (s) =
0.04s 2 + 16s + 7000 same as the characteristic
roots
Stability of Dynamic Systems
RCP! + P = Pin (t )
1st-order pneumatic chamber
(laminar valve flow)
Note that the right-hand side constant A is unity for all models
except the mechanical rotor ( A = 1/b for the mechanical rotor )
First-Order System: Natural Response
• Recall that the natural response (homogeneous solution) is the
response with ZERO input:
For the case with ZERO input, the constant c is simply the initial condition
(IC) for the dynamic variable, c = y(0) = y0
First-Order System: Time Constant t
• Repeat the natural response (for zero input)
yH(t) = y0e-t/t
• The constant t must have units of TIME (so that the exponent is
non-dimensional), and it is called the “time constant”
• The total response to the step input will be the natural + forced
responses:
y (t ) = y H (t ) + y P (t ) Total response
y (t ) = ( y0 - yss )e - t /t + yss
Transient Steady-state
response response
Sketching the Step Response
1st-Order System
• Sketching a 1st-order step response is simple
– Re-write the 1st-order model in the “standard form” and compute
the time constant, t
– Estimate the settling time as four time constants, i.e., tS = 4t
– Compute the steady-state response for the constant input
– Sketch an exponential response from the initial condition y0 to
the steady-state value yss
– The response approximately reaches yss at t = tS = 4t
– The total response will “decay down” if y0 > yss , or show an
“exponential rise” if yss > y0
1st-Order System Step Response
Example
• Consider a solenoid actuator used to position a spool valve in a
hydraulic actuation system
• The electrical input is voltage ein(t), and the output is force f (in N).
An appropriate first-order model is
ì 0 for t£0
ï
u(t ) = í P for 0 < t < T
ï 0 for t ³T
î
Settling time
1st-Order Pulse Response: Case 2
• Case 2: Pulse time T is less than settling time tS
T < tS
Ab Ab
ypulse (t) =
T
(1− e −t/τ
) −
T
(1− e −(t−T )/τ
) U(t − T )
Ab
T
(1 - e )-
-t /t Ab
T
(1- e - ( t -T ) / t
) = e (e - 1)
Ab - t / t T / t
T
Ab -t /t T /t Ab
y impulse (t ) = lim e e = e -t /t
T ®0 t t
1st-Order System Impulse Response
Example
• Sketch the impulse response of an RL circuit
R = 1.2 W
L = 0.02 H
Ab
= (0.08)(0.8333)/0.0167 = 4 A
t
• The impulse response exponentially decays to zero in ~four time
constants after the impulse is applied, or t = 0.1 + 4t = 0.1667 s
Initial magnitude = 4 A
Discontinuous jump
in energy due to
impulsive voltage
input at t1 = 0.1 sec Exp decay to zero
at t = 0.1667 sec
Second-Order System Response
!y! + a1 y! + a0 y = b0u (t )
• The natural or free response (zero input) will depend on the roots of
the characteristic equation
- a1 ± a12 - 4a 0 Recall: j = -1
r=
2
Therefore, the two roots can be 1) real and distinct; 2) real and repeated
(radicand = 0); 3) complex conjugates (radicand < 0); 4) purely imaginary
(coefficient a1 = 0 and a0 > 0)
nd
2 -Order Root Locations
Case 1
• Both roots are real and distinct (not repeated)
Example: !y! + 4 y! + 3 y = u (t )
r + 4r + 3 = 0
2
Characteristic Equation
y H (t ) = c1e - t + c2 e -3t
Therefore, the natural response (no input) is composed of two exponential
functions, with time constants 1 sec and 1/3 sec
r1 < 0 , r2 < 0
2nd-Order Root Locations
Case 1 (con’t)
• Both roots are real, one root is positive
Example: !y! + 2 y! - 3 y = u (t )
r + 2r - 3 = 0
2
Characteristic Equation
à Characteristic roots r1 = 1, r2 = -3
-3t
y H (t ) = c1e + c2 e
t
unstable
r1 > 0 , r2 < 0
2nd-Order Root Locations
Case 1 (con’t)
• Both roots are real, one root is zero, one root is negative
Example: !y! + 3 y! = u (t )
r + 3r = 0
2
Characteristic Equation
à Characteristic roots r1 = 0, r2 = -3
r1 = 0 , r2 < 0
2nd-Order Root Locations
Case 2
• Two real repeated roots (both are negative for this example)
Example: !y! + 6 y! + 9 y = u (t )
r + 6r + 9 = 0
2
Characteristic Equation
r1 = r2 < 0
2nd-Order Root Locations
Case 2
r1 = r2 > 0
2nd-Order Root Locations
Case 2
r1 = r2 = 0
2nd-Order Root Locations
Case 3
• Roots are complex conjugates (Real + Imaginary parts)
Example: !y! + 4 y! + 29 y = u (t )
r 2 + 4r + 29 = 0 Characteristic Equation
(
y H (t ) = c1e (-2+ j 5 )t + c2 e (-2- j 5 )t = e -2t c1e j 5t + c2 e - j 5t )
Using Euler’s Thm: e jq = cosq + j sin q
Therefore, the natural response (no input) is a stable, damped sinusoidal function,
where the real part is the exp decay, and imaginary part is the frequency
2nd-Order Root Locations
Case 3
Example: !y! - 4 y! + 29 y = u (t )
r 2 - 4r + 29 = 0 Characteristic Equation
(
y H (t ) = c1e (2+ j 5 )t + c2 e (2- j 5 )t = e 2t c1e j 5t + c2 e - j 5t )
Using Euler’s Thm: e jq = cosq + j sin q
Example: !y! + 9 y = u (t )
r2 + 9 = 0 Characteristic Equation
y H (t ) = c1e j 3t + c2 e - j 3t
y H (t ) = c3 cos 3t + c4 sin 3t
r1, 2 = ± jb
Location of the roots on
complex plane and stability
Damping Ratio and
Undamped Natural Frequency
• We can characterize the transient response of a second-order
system by two basic parameters
– Damping ratio z
– Undamped natural frequency, wn
!y! + a1 y! + a0 y = b0u (t )
• The characteristic equation is
r 2 + a1r + a0 = 0
- a1 ± a - 4a 0
2 If 4a0 = a12 then the roots
r= 1
are real and repeated
2
a1
z = “Damping ratio”
2 a0
• If z = 1, the system is critically damped (no oscillations in the
natural or transient response)
m!x! + bx! + kx = f (t )
b
Damping ratio: z = Ratio of actual damping (b) to critical
2 km damping
Undamped Natural Frequency
r 2 + a0 = 0
c3 sin a0 t + c4 cos a0 t
mr 2 + k = 0
r = -zwn ± jwn 1 - z 2
y H (t ) = ce -zw nt cos(wd t + f )
Underdamped 2nd-Order System
• The natural (free) response is (repeated)
y H (t ) = ce -zw n t
cos(wd t + f ) r = -zwn ± jwn 1 - z 2
2nd-order root locations
• Note that the real part of the complex roots determines the
exponential decay rate of the transient response
• Note that the imaginary part of the complex roots determines the
frequency of oscillation of the transient response
“Damped frequency”
wd = wn 1 - z 2
frequency of oscillation of
the transient response
Underdamped System: Root Locations
• Root locations in the “complex plane”, where +x is the Real-number
axis, and +y is the Imaginary-number axis
Imaginary
r = -zwn ± jwn 1 - z 2 X
2nd-order underdamped Complex Plane
root locations b c
q
Right triangle: a2 + b2 = c2
a
0
Real
a = zwn Real part
b = wn 1 - z 2 Imaginary part
X
zw n
à c = wn distance from origin to root Angle: cosq = =z
wn
Note: q = 0 à damping z = 1
Underdamped Root Locations (2)
Imaginary
X
Radial lines: X
All roots have
the same damping Complex Plane
X
ratio z
0 Real
X
X
Circles:
All roots have
the same undamped X Complex roots ALWAYS appear
natural frequency wn as conjugate pairs à symmetric
about the Real axis
Transient Response of Underdamped
2nd-Order System
• Performance criteria for the transient response of an underdamped
second-order system are often based on the step response
2p
• Period of oscillation: Tperiod = where wd = wn 1-z 2
wd
π −θ
• Rise time: time to initially reach the ss-value tr =
ωn 1− ζ 2
• Peak time: time to reach maximum transient response value
p
tp =
wn 1-z 2
Transient Response of Underdamped
2nd-Order System (2)
• Percent overshoot (% OS) or maximum overshoot, MOS
4
ts = = 4 time constants
zw n
Transient Response of Underdamped
2nd-Order System (3)
• Number of cycles during transient response = tS / wd
2 1- z 2
N cycles =
pz
A
• Steady-state response (to step) yss =
w 2
n
p
Peak time: tp = = 0.1787 sec
wn 1 - z 2
-zp / 1-z 2
Max overshoot: M OS = e = 0.489 (48.9% overshoot)
4
Settling time: tS = = 1.0 sec
zw n
2p
Period: Tperiod = = 0.3574 sec
wn 1 - z 2
2nd-Order Underdamped System:
Example (3)
48.9% overshoot
Peak response qmax = 0.0573 rad
Peak time tp = 0.179 sec
2p
0.02 wd = rad/s
T
Impulse response
-0.02
-0.04
-0.06
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45
Time, sec
Estimating Damping of Mechanical Second
Order Systems: Log Decrement Method
• Next, define the logarithmic decrement as the natural log of the ratio
of successive amplitude peaks:
0.06 x1
Log decrement:
x2
x1
( )
0.04
d = ln = ln e zw nT = zw nT
0.02 x2
Impulse response
-0.02
Sub for period T using wd = w n 1 - z 2
2p 2p
-0.04
T= =
wd wn 1 - z 2
-0.06
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45
Time, sec
Estimating Damping of Mechanical Second
Order Systems: Log Decrement Method
• Subbing for T in the log decrement equation, we get
2pz
d =
1-z 2
• Finally, we solve the above equation for damping ratio:
d
z =
4p 2 + d 2
x1
Recall: d = ln is from the impulse response (measured)
x2
Estimating Damping of Mechanical Second
Order Systems: Log Decrement Method
• We can obtain greater accuracy if we compute the ratio of peak
amplitudes separated by n cycles
æ x1 ö æ x1 x2 x3 xn ö æ x1 ö æ x2 ö æ x3 ö æ xn ö
lnçç ÷÷ = lnçç ! ÷÷ = lnçç ÷÷ + lnçç ÷÷ + lnçç ÷÷ + ! + lnçç ÷÷
è xn +1 ø è x2 x3 x4 xn +1 ø è x2 ø è x3 ø è x4 ø è xn +1 ø
= d + d + ! + d = nd
• If possible, derive an
approximate solenoid-
actuator model from the
experimental data
ty! + y = au (t )
• The settling time (see plot on prior page) is tS ~ 1.2 sec, so the time
constant is t = t S / 4 = 0.3 sec
Some error
in transient
response