Transfer Functions & Convolution
Transfer Functions & Convolution
Course info
Introduction to Time-Delay Systems
Time-delay systems in control applications
e sh
System-theoretic preliminaries
Basic properties
h kCh k ! 0 k k!
yN D DN h uN W yŒk D uŒk h yN DN h uN I Exploiting delays to improve performance
Loop delays: steel rolling Loop delays: networked control
Plant
Network
Controller
Loop delays: temperature control Internal delays: regenerative chatter in metal cutting
Waves from
previous pass
y(t-T)
Workpiece
Waves from
X current vibration
Ft h0 y(t)
+
Y
Chip h0 Tool
Fc
a Chip Y
X
y(t-T)
Ft Tool
h0+dy h0
Feed Fc
Tool Direction
y(t)
R / C c y.t
P / C ky.t / D Kf a h0 C y.t
my.t T/ y.t / ;
1
Its approximation by Gr .s/e xhs
does capture high-frequency phase lag:
Its approximation by G2 .s/ D .1 sC1/.2 sC1/
e sh is reasonably accurate:
Bode Diagram Bode Diagram
1 0.2 40 40
30 30
0.9 0.1 20 20
Magnitude (dB)
Magnitude (dB)
10 10
0.8 0 0 0
−10 −10
0.7 −0.1
−20 −20
−30 −30
0.6 −0.2
y(t) (°C)
−40 −40
imag
0.5 −0.3 −50 −50
0 0
Phase (deg)
Phase (deg)
0.3 −0.5 −1440 −1440
−2160 −2160
0.2 −0.6
−2880 −2880
0.1 −0.7
−3600 −3600
0 1 0 1
10 10 10 10
0 −0.8 Frequency (rad/sec) Frequency (rad/sec)
0 1000 2000 3000 4000 5000 6000 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
time (s) real
which is
I generalization of the internal model controllers (including I)
and guarantees (if stable!)
I asymptotically perfect tracking of any T -periodic reference r
Outline Linear systems
We think of systems as linear operators between input and output signals:
Course info
y D G u:
Time-delay systems in control applications
G is said to be
System-theoretic preliminaries
I causal if ˘ G .I ˘ / D 0, 8 , where ˘ is truncation at time
Basic properties t! t!
y ˘ u
Delay systems in the frequency domain
Rational approximations of time delays I time-invariant if it commutes with shift operator: GSh D Sh G , 8h
State space of delay systems h t Ch t ! 0 t t!
y Sh u
Modal properties of delay systems
Stability of transfer functions and roots of characteristic equations I stable if 9 0 (independent of u) such that kG uk kuk, 8u
C˛ ´ fs 2 C W Re s > ˛g D ˛
Thus
Causality follows by Dh .s/ D e sh
;
Dh ˘ D ˘ Ch Dh ) ˘ Dh .I ˘ / D ˘ .I ˘Ch /Dh : which is irrational.
System-theoretic preliminaries
0 −4
−180
Phase (deg)
−6
−360
−8
−540
0 1
10 10 −540 −360 −180 0
Frequency (rad/sec) Open−Loop Phase (deg)
Effects of I/O delay: Bode diagram Effects of I/O delay: Nyquist diagram
Magnitude (dB)
Imaginary Axis
0
Phase (deg)
−1 0 1
10 10 10 −1 0
Frequency (rad/sec) Real Axis
Effects of I/O delay: Nichols chart It’s not always so easy
If delay not I/O, frequency response plots might be much more complicated.
Consider for example the (stable) system:
1 e 2s 1.t / 1.t 2/
G.s/ D ; with impulse response g.t / D ;
2s 2
Open−Loop Gain (dB)
0
Bode Diagram Nyquist Diagram
0
0
Magnitude
−20
−0.2
−40
Imaginary Axis
0
−0.4
Phase (deg)
−90
−0.6
is arbitrarily large. Moreover, for every R.s/ there always is !0 such that This can be done, since
arg e j!h arg R. j!/ continuously decreasing function of ! , 8! !0 .
I I phase lag of delay over finite bandwidth is finite
Hence there always is frequency !1 such that and
R. j!1 / I magnitude of F . j!/e j!h decreases as ! increases,
j!1 h
arg e arg R. j!1 / D 2k i.e.,
which implies that at frequencies where the phase lag of F . j!/e j!h large,
the function effectively vanishes.
j!1 h
e
This yields:
n 1 2 3 4
sh sh s 2 h2 sh s 2 h2 s 3 h3 sh s 2 h2 s 3 h3 s 4 h4
sh 1 1 1 2 C 8 1 2 C 8 48 C 384
e 2
1C sh
2 8
2 2 2 2
48
3 h3 2 2 s 3 h3 4 h4
2 1C 2 C s 8h
sh
1C 2 C s 8h
sh
C s 48 1C 2 C s 8h
sh
C 48 C s384
s Pm .s/ s2 s3 s4
e µ RŒm;n .s/; e s
D1 sC C
Qn .s/ 2 6 24
2q1 2q 2 2.q13 q1 q0 / 3 2.q14 2q12 q0 /
where Pm .s/ and Qn .s/ are polynomials of degrees m and n, respectively. RŒ2;2 .s/ D 1 s C 21 s 2 s C s4
3
Taylor expansions at s D 0 of each side are q0 q0 q0 q04
s s2 s3 from which
e s
CD1 C q1 2 1
1Š 2Š 3Š q0 D 2q1 and D
4q1 6
0 00 000
RŒm;n .0/s RŒm;n .0/s 2 RŒm;n .0/s 3
RŒm;n .s/ D RŒm;n .0/ C C C C and then q1 D 6 and q0 D 12, matching 5 coefficients.
1Š 2Š 3Š
This yields: 0 0
−5
Magnitude (dB)
−10 −20
n 1 2 3 4 −15
sh s 2 h2 s 2 h2 s 3 h3 s 2 h2 s 3 h3 s 4 h4
sh 1 1 sh 1 sh2 C 10 1 sh2 C 28 84 C 1680
−20 −40
e 1C sh
2 2 12
s 2 h2 s 2 h2
120
3 h3 s 2 h2 3 3 4 h4
Magnitude (dB)
2 1C sh
2 C 12 1C sh
2 C 10 C s120 1C sh
2 C 28 C s 84
h
C s1680 −25
−30 −60
0
−360 −80
Phase (deg)
−540
I Œn; n-Padé approximation stable for all n. −720
−100
−900
−1080
−1260 −120
−1 0 1 −1 0 1
10 10 10 10 10 10
Frequency (rad/sec) Frequency (rad/sec)
Padé approximation: example (contd) Padé approximation: example (contd)
We may also compare step responses and Nichols charts Increasing approximation order improves the match between step responses
1
s
of sC1 e s and its Padé approximation:
e
sC1 and its 2nd and 4th order approximations
Step Response Nichols Chart
s
1 10
e
sC1 and its 50th order approximation e s and its 50th order approximation
5 Step Response Step Response
0.8
1 1.2
0
0.6 1
0.8
0.4 −10
0.6
0.6
Amplitude
Amplitude
−15
0.2
0.4 0.4
−20
0 0.2
−25 0.2
0
−0.2 −30
0 0.5 1 1.5 2 2.5 3 3.5 4 −720 −630 −540 −450 −360 −270 −180 −90 0 0
Time (sec) Open−Loop Phase (deg) −0.2
−0.2 −0.4
Stability of transfer functions and roots of characteristic equations It depends on initial “state” x.t /, future inputs over Œt; t h C (if > h),
and past inputs over Œt h; t (or Œt h; t h C if < h).
“In my country there is problem. . . ” (B. Sagdiyev) Checking intuition on discrete-time case
. . . and that problem is: Consider
I x.t / no longer accumulates the history. N C 1 D ANxŒk
xŒk N C BN uŒk
N h:
This, in turn, implies that x.t/ can no longer be regarded as the “state”. This system can be thought of as serial interconnection
xN ´ h uN uN
PN0 .´/ DN h .´/
Intuitively, the “true” state vector at every time instance t should contain where
I x.t/ 2
0 0
I 0 0
3
I u.t C / for all 2 Œ h; 0—denoted u .t / 60 I
0 0 07
6 :: ::
:: : : :::: 7
6 7
AN BN
PN0 .´/ D and DN h .´/ D 6 :
6 :
: : : :7
I 0
7
60
6 0 0 I 07 7
40 0 0 0 I5
I 0 0 0 0
Checking intuition on discrete-time case (contd) Checking intuition on discrete-time case (contd)
To recover the state vector, write state equation:
xN ´ h uN uN
PN0 .´/ DN h .´/ 3 2 N
N C 1
xŒk A BN 0 0 0 N
xŒk 0
2 32 3 2 3
N
6 uŒk h C 1 7 60 0 I 070
N
6 uŒk h 7 607
Thus, for PNh .´/ ´ PN0 .´/DN h .´/ we have:
6 7 6 76 7 6 7
6N h C 2 7
6 uŒk 6N h C 1 7
7 60 0 0 07I7 6 uŒk 7 607
6 6 7
:: D
7 6 :: :: :: ::
:: 7 :: :: C N
7 6 :: 7 uŒk
AN BN
6 6
:
2 3
0 00 0 6 : 7 6: : : :7: 6 : 7 6:7
0 I 0 0 0
2 3 6 7 6 76 7 6 7
60 0 I 007 0 N
4 uŒk 1 5 4 0 0 0 0 I 5 4 uŒkN 2 5 4 0 5
60 0 I 0 07 6 7
N
uŒk 0 0 0 0 0 N
uŒk 1 I
7 6 0 0 0 I07 0
7
6 : :::: : : :: :: 7 6
N BN 6
6 ::
A : : : : :7 6: :: :: ::
:: 7:: ::
PNh .´/ D
„ ƒ‚ … „ ƒ‚ …
7D6
6 :: : : ::7
7 : : xN a ŒkC1 xN a Œk
I 0 60
6
0 0 I 07
60
7 6 0 0 0 I 07
6 7
40 0 0 0 I5 6 Thus, the state vector at time k , xN a Œk, indeed
0 0 0 0 I 5
7
40
I 0 0 0 0 I includes both xŒk
N and whole input history uŒi
N in k hi k 1
I 0 0 0 0 0
State equation with input delay (contd) State equation with output delay
Thus, the state vector of Consider
P / D Ax.t / C Bu.t /
x.t
P / D Ax.t / C Bu.t
x.t h/
and assume that that we measure delayed x , i.e., y.t / D x.t h/.
at time t is .x.t/; u .t// 2 .R ; fŒ h; 0 7! R g/. This implies (among many
n m Discrete counterpart looks like this:
other things) that
´ h xN xN uN
DN h .´/ PN0 .´/
I initial conditions for this system are .x.0/; u .0//,
which is also a function. For example,
with
I zero initial conditions should read 2 3
0 I 0 0 0 0
0 I 0 0 0
2 3
x.0/ D 0 and u. / D 0; 8Œ h; 0: 60 0 I 0 0 07
60 0 I 0 07 6
6: :: :: : : : ::
7
:: 7
6 ::
6
:::: : : :: :: 7 AN BN
7 6 :: : : : :: : :7
PNh .´/ D 6 : : : : : :7 6
D6
7
0 I
6
7
I 0 60 0 0 07
60 0 0 I 07
7
60 0 0 0 I 07
6 7
There is more consistent (and elegant) way to reflect all this via state-space
6 7
40 0 0 0 I
AN BN 5
5
0 0
6 7
40 0
description, using semigroup formalism. See (Curtain and Zwart, 1995) for I 0 0 0 0
details. I 0 0 0 0 0
State equation with output delay (contd) State equation with output delay (contd)
Returning to continuous-time case, state vector of
N
xŒk h C 1 0 I 0 0 0 N
xŒk h 0
2 3 2 32 3 2 3 (
P / D Ax.t / C Bu.t /
x.t
6N h C 2 7 6 0 I 0 N h C 1 7 6 0 7
6 xŒk 0 0 7 6 xŒk
y.t / D x.t
7 6 7 6 7 6
6 :: 7 6 :: :::: : : :: :: 7 6 :: 7 6 :: 7
7 h/
: 7 6: : : : : : 76 :
7D6 7 C 6 : 7 uŒk
N
6 7 6 7 6 7
at time t is x .t / 2 fŒ h; 0 7! Rn g (may be convenient to write .x.t /; x .t //).
6
6 N 0 0 I N
6 xŒk 1 7 7 60 0 7 6 xŒk 2 7 6 0 7
6 7 6 7 6
7
4 N
xŒk 5 40 0 0 0 I 5 4 xŒk N 1 5 4 0 5
N C 1
xŒk 0 0 0 0 AN N
xŒk BN
„ ƒ‚ … „ ƒ‚ … The
xN a ŒkC1 xN a Œk
I initial condition is then the function x .0/
and zero initial conditions would mean
x./ D 0; 8 2 Œ h; 0:
Thus, the state vector at time k , xN a Œk,
I includes whole history of xŒi
N in k hi k 1
State delay equations Homogeneous LTI state equations: classification
If we use a P controller u.t/ D Ky.t /, the closed loop system becomes (Lumped-delay) retarded equation:
r
P / D Ax.t / C BKx.t
x.t h/: X
P /D
x.t Ai x.t hi /; 0 D h0 < h1 < < hr D h
This kind of equations called retarded functional differential equation. iD0
Adding inputs and outputs The same in s domain (with zero initial conditions)
(Still not the most) general form: (Still not the most) general form:
„ Z 0 Z 0 Z 0
„ Z 0 Z 0 Z 0
s s
P C
x.t/ P C /d D
./x.t ˛. /x.t C /d C ˇ. /u.t C /d s IC ./e d X.s/ D ˛./e dX.s/ C ˇ. /es d U.s/
hx hx hu hx hx hu
Z 0 Z 0 Z 0 Z 0
s
y.t / D
. /x.t C /d C ı. /u.t C /d Y.s/ D
./e dX.s/ C ı. /es dU.s/
hx hu hx hu
with the state “vector” .x .t /; u .t // 2 fŒ hx ; 0 7! Rn g; fŒ hu ; 0 7! Rm g . with zero initial conditions x./ D 0 ( 2 Œ hx ; 0), u./ D 0 ( 2 Œ hu ; 0).
with E0 D I and 0 D h0 < h1 < < hmaxfrx ;ru g D h. with E0 D I and 0 D h0 < h1 < < hmaxfrx ;ru g D h.
Outline Characteristic equation
Distributed-delay equation
Course info
Z 0 Z 0 Z 0
Time-delay systems in control applications s IC s
./e d X.s/ D ˛. /es dX.s/ C ˇ. /es dU.s/
hx hx hu
System-theoretic preliminaries
(or its lumped-delay counterpart) can be rewritten as
Basic properties Z 0 ru
X
X.s/ D 1 .s/ ˇ./es dU.s/ or X.s/ D 1 .s/ Bi e shi
U.s/;
Delay systems in the frequency domain hu iD0
where
Rational approximations of time delays Z 0 rx
X
.s/ ´ s.I C . // ˛./ es d or .s/ ´ shi
.sEi Ai / e
State space of delay systems hx i D0
Modal properties of delay systems called the characteristic matrix. Then equation
Example 1 Example 2
Consider Consider
0 1 0 0 0 0 0 1
P /D
x.t x.t/ x.t h/ P /C
x.t P
x.t h/ D x.t /
0 1 k1 k2 k1 k2 0 1
Then Then
1 0 0 1 0 0 sh s 1 1 0 0 0 sh 0 1 s 1
.s/ D s C e D sh sh .s/ D s Cs e D sh sh
0 1 0 1 k1 k2 k1 e s C 1 C k2 e 0 1 k1 k2 0 1 sk1 e s C 1 C sk2 e
and and
2 sh
.s/ D s C s C .k2 s C k1 /e .s/ D s 2 C s C .k2 s 2 C k1 s/e sh
Example 3 Quasi-polynomials
Consider
General form:
0 1 k1 0
P /D
x.t x.t/ x.t h/ rx
!
0 1 0 k2 X
s hQ i
X
shi
det .sEi Ai /e D P .s/ C Qi .s/e
Then iD0 i
s C k1 e sh for polynomials P .s/ 6 0 and Qi .s/ (9j , Qj .s/ 6 0) and delays hi > 0.
1 0 0 1 k1 0 sh 1
.s/ D s C e D sh
0 1 0 1 0 k2 0 s C 1 C k2 e
Classification by delay pattern:
and 1. single-delay: P .s/ C Q.s/e sh
2 sh 2sh
.s/ D s C s C .k1 C k2 /s C k1 e C k1 k2 e
2. commensurate-delay: P .s/ C sih
P
i Qi .s/e
hi
3. incommensurate-delay: if at least one of hj
is irrational
It is readily seen that it has 2. roots for large values of jsj belong to a finite number of areas
I infinite number of roots, ˇ ˇ
ˇRe s C ˇi lnjsjˇ <
those at
ln k .1 C 2i / for some
> 0 and ˇi 2 R. For
sD Cj ; i 2Z
h h I retarded quasi-polynomials ˇi > 0
N 0 iff k 1 and in C n C
(all these roots are in C N 0 iff 0 < k < 1). I neutral quasi-polynomials ˇi D 0
I advanced quasi-polynomials ˇi < 0
3. retarded quasi-polynomials have a finite number of roots in C˛ for all ˛
This is generic property, i.e.,
I quasi-polynomials have infinite number of roots.
Rightmost root: retarded case Rightmost root: neutral case
Consider Consider
rx
X
P
x.t/ D Ai x.t hi /; x .0/ D . / rx
X rx
X
iD0 P
Ei x.t hi / D Ai x.t hi /; x .0/ D . /
iD0 iD0
and let .s/ be its characteristic quasi-polynomial. Define
and let .s/ be its characteristic quasi-polynomial. Define
r ´ maxfRe s W .s/ D 0g
r ´ supfRe s W .s/ D 0g
Theorem
For any > r there is a > 0 such that Theorem
For any > r there is a > 0 such that
kx.t /k et max k. /k; 8t 2 RC
2Œ h;0
P
kx.t /k et max .k. /k C k./k/; 8t 2 RC
2Œ h;0
for all continuous initial conditions .
for all continuous and differential initial conditions .
System-theoretic preliminaries for some real polynomials M0 .s/, Mh .s/, N0 .s/ such that deg M0 deg Mh
and deg M0 deg N0 . This transfer function
Basic properties
I is proper
Delay systems in the frequency domain I is analytic on C n , where is set of roots of M0 .s/ C Mh .s/e sh
D0
I has only poles as its singularities
Rational approximations of time delays
To further simplify matters, assume also that there is
State space of delay systems I no pole / zero cancellations in G.s/
j
a j > 1 j
a j D 1: example 1
1
In this case, G.s/ has infinitely many unstable poles. Hence, the following Let G.s/ D sC1C.sC2/e s . This transfer function
result can be formulated: I has infinitely many poles in C0 , hence unstable.
Lemma
Let j
a j > 1. Then G 62 H 1 .
Right-hand side here > 1 iff > 23 . Hence, whenever > 32 , e > 1 or,
equivalently, > 0. Since roots accumulate around D 0, there might be
only a finite number of roots in 32 .
j
a j D 1: example 2 j
a j D 1: example 2 (contd)
Let G.s/ D 1
. This transfer function
s
N 0 of poles of G.s/ satisfying
We know that there is a sequence fsk g 2 C n C
sC1Cs e
I N 0.
has no poles in C
sk
sk C 1 C sk e D 0; with limk!˙1 jsk j D 1 W
To see this, consider its characteristic equation at s D C j! :
C j! C 1
ˇ ˇ ˇ ˇ
j!
ˇ 1 ˇˇ ˇˇ ˇ
e e D H) e D ˇ1 C ˇ ˇ1 C 2 ˇ
Then
C j! C j! ˇ C! ˇ
2
1 1
G. sk / D D D 1 C sk ;
If D 0, 1 D 1 C 1=j!j: unsolvable. If > 0, e
1: contradiction. 1 sk sk e sk 1 sk C sk2 =.1 C sk /
so that jG. sk /j ! 1 C j2k C 1j . Thus, G.s/ unbounded on f sk g 2 C0 , so
I G 62 H 1 and hence unstable.
3 For proof and further details see “H 1 and BIBO stabilization of delay systems of neutral
type,” by Partington and Bonnet, Systems & Control Letters, 52, pp. 283–288, 2004.
Internal stability and high-frequency gain Summary
So far we learned that
wu
Pr .s/e sh
I N 0,
if j
a j < 1, G 2 H 1 iff it has no poles in C
I if j
a j > 1, G 62 H 1 because it has infinitely many poles in C0
u C.s/ y wy I if j
a j D 1, G.s/ practically unstable
wy
This feedback system called internally stable if transfer matrix u ,
y
wu 7!
Pr .s/e sh
1
1
2 H1 Important point:
1 Pr .s/C.s/e sh
C.s/ Pr .s/C.s/e sh
I N 0 ” stability criterion might fail
classical “no poles in C
Its .1; 1/ entry, the sensitivity function, is of the form
1 1 ML .s/ N0 .s/
1 Pr .s/C.s/e sh µ 1 Lr .s/e sh D ML .s/ NL .s/e s µ M0 .s/ M1 .s/e s ;
for which deg M0 .s/ D deg N0 .s/ (6 deg N0 .s/ C 2). Thus, if jLr .1/j D 1,
I this system cannot be internally stable.
N ˛.
is (practically) stable iff 9˛ < 0 such that G.s/ has no poles in C
This result says that in time-delay systems (both retarded and neutral)
I poles play essentially the same role as in the rational case,
N0 !C
we just should slightly redefine stability region (C N ˛ , for some ˛ < 0).
This, in turn, makes it possible to
I extend classical stability analysis methods to time-delay systems.