Automatic Control Collection of Formulae
Automatic Control Collection of Formulae
Collection of Formulae
Notations
Matrix of order m x n
a11 a12 ⋅⋅⋅ a1n
a21 a22 ⋅⋅⋅ a2n
A=
..
.
am1 am2 ⋅⋅⋅ amn
Vector of dimension n
x1
x2
x=
..
.
xn
Transpose
B = AT
bi j = a ji
( AB )T = B T AT
The matrix is symmetric if ai j = a ji .
Determinant
a11 a12 ⋅ ⋅ ⋅ a1n
a21 a22 ⋅ ⋅ ⋅ a2n
det A = p Ap = .
..
an1 an2 ⋅ ⋅ ⋅ ann
If A is of order 2 x 2, then
In general
n
X
det A = ai j (−1)i+ j det Mi j
i=1
n
X
= ai j (−1)i+ j det Mi j
j =1
where Mi j is the matrix one obtains if row i and column j are removed
from the matrix A.
Inverse
A−1 A = AA−1 = I (det A ,= 0)
If A is of order 2 x 2, then
−a12
−1 1 a22
A =
det A −a21
a11
1
In general,
1
A−1 = CT
det A
where the elements in C are given by
ci j = (−1)i+ j det Mi j
Ax = λ x
2
Dynamical systems
State-space equations
dx
= Ax + Bu
dt
y = Cx + Du
Z t
At
x(t) = e x(0) + eA(t−τ ) Bu(τ )dτ
0
Weighting function
Z t
y(t) = h(t − τ )u(τ )dτ
0
h(t) = CeAt B + Dδ (t)
Transfer function
Y (s) = G (s) U (s)
G (s) = C(sI − A)−1 B + D = L h(t)
Frequency response
u(t) = sin ω t
y(t) = a sin(ω t + ϕ )
a = p G (iω )p
ϕ = arg G (iω )
Linearization
If the nonlinear system
dx
= f ( x, u)
dt
y = ( x, u)
∆ x = x − x0
∆ u = u − u0
∆ y = y − y0
d∆ x f f
= ( x0 , u0 )∆ x + ( x0 , u0 )∆ u
dt x u
∆y = ( x0 , u0 )∆ x + ( x0 , u0 )∆ u
x u
3
State-space representations
1. Diagonal form
λ1 0 β1
λ2 β2
dz
= z+
.
.
u
dt
. .
.
.
0 λn βn
y = γ 1 γ 2 . . . γ n z + Du
−a1 1 0 ... 0 b1
− a 0 1 0 b
2
2
dz
.
.
= .
.
z +
.
.
u
dt
−an−1 0 0 1
− an 0 0 0 bn
y = 1 0 0 . . . 0 z + Du
b1 sn−1 + b2 sn−2 + ⋅ ⋅ ⋅ + bn
G (s) = D +
sn + a1 sn−1 + ⋅ ⋅ ⋅ + an
β 1γ 1 β 2γ 2 β nγ n
= D+ + + ⋅⋅⋅ +
s − λ1 s − λ2 s − λn
4
The Laplace transform
Operator lexicon
dn F (s)
11 (−t)n f (t) Differentiation in s-domain
dsn
Z t
1
12 F (s) f (τ ) dτ Integration in t-domain
s 0
∞
f (t)
Z
13 F (σ ) dσ Integration in s-domain
s t
5
Transform lexicon
1
2 1 Step function
s
1
3 t Ramp function
s2
1 1 2
4 2 t Acceleration
s3
1 tn
5
sn+1 n!
1
6 e−at
s+a
1
7 t ⋅ e−at
(s + a)2
s
8 (1 − at) e−at
(s + a)2
1 1
9 T e−t/T
1 + sT
a
10 sin at
s2 + a2
a
11 sinh at
s2 − a2
s
12 cos at
s2 + a2
s
13 cosh at
s2 − a2
1 1
1 − e−at
14 a
s(s + a)
1
15 1 − e−t/T
s(1 + sT )
1 e−bt − e−at
16
(s + a)(s + b) a−b
6
Transform lexicon, continued
s ae−at − be−bt
17
(s + a)(s + b) a−b
a
18 e−bt sin at
(s + b)2 + a2
s+b
19 e−bt cos at
(s + b)2 + a2
1
20
s2 + 2ζ ω 0 s + ω 02
1
ζ =0 ω0 sin ω 0 t
p
ζ <1 √1 e−ζ ω 0 t sin ω 0 1 − ζ 2 t
ω0 1−ζ 2
ζ =1 te−ω 0 t
p
ζ >1 √1 e−ζ ω 0 t sinh ω 0 ζ 2 − 1 t
ω0 ζ 2 −1
s
21
s2 + 2ζ ω 0 s + ω 02
p
0 ≤τ ≤π : ζ <1 √1 e−ζ ω 0 t sin ω 0 1 − ζ 2 t + τ
1−ζ 2
√
ω 0 1−ζ 2
τ = arctan −ζ ω 0
ζ =0 cos ω 0 t
ζ =1 (1 − ω 0 t) e−ω 0 t
a 1
sin(at − φ ) + e−bt sin φ
22 √
s2 + a2 (s + b) a2 + b2
a
φ = arctan
b
7
Laplace transform table, continued
s 1
cos(at − φ ) − e−bt cos φ
23 √
s2 + a2 (s + b) a2 + b2
a
φ = arctan
b
ab ae−bt − be−at
24 1+
s(s + a)(s + b) b−a
a2
25 1 − (1 + at) e−at
s(s + a)2
a
26 t − 1a (1 − e−at )
s2 (s + a)
ω 02
28
s(s2 + 2ζ ω 0 s + ω 02 )
p
0<ζ <1 1− √1 e−ζ ω 0 t sin ω 0 1 − ζ 2 t + φ
1−ζ 2
φ = arccos ζ
ζ =0 1 − cos ω 0 t
1 1 n −at
29 t e
(s + a)n+1 n!
as t
31 2 sin at
s2 + a2 2
1 1
32 √ √
s πt
√
Z ∞
1 1 2 /4t
33 √ F s √ e−σ f (σ ) dσ
s πt 0
8
G G
G(s)=(1+sT), 1
1+sT
20 T=1
.
01 2 5 1 2 5 10
1 0
Radians/s
0.5
0.2
90
0.1
0.05
0.02
180
0.01
9
10
G G
G(s)=e-sL
20 L=1
10
90
.
01 2 5 1 2 5 10
1 0
Bode plot. Standard curves, continued
Radians/s
0.5
0.2
90
0.1
0.05
0.02
180
0.01
G G
ω2
G(s)= 0
s2 + 2ζω0s + ω02
20 ω0=1
2 ζ
.
01 2 5 1 2 5 10
1 0
Radians/s
0.5 ζ
ζ
0.2
90
0.1
ζ
0.05 ζ
ζ
ζ
ζ
0.02 ζ
180
0.01
11
Stability
s + a1 a1 > 0
s2 + a1 s + a2 a1 > 0, a2 > 0
3 2
s + a1 s + a2 s + a3 a1 > 0, a2 > 0, a3 > 0, a1 a2 > a3
Routh’s algorithm
Consider the polynomial
Assume that the coefficients ai , bi are real and that a0 is positive. Form
the table
a0 a1 a2 . . .
b0 b1 b2 . . .
c0 c1 c2 . . .
d0 d1 d2 . . .
..
.
where
c0 = a1 − a0 b1 /b0
c1 = a2 − a0 b2 /b0
..
.
d0 = b1 − b0 c1 /c0
d1 = b2 − b0 c2 /c0
..
.
The number of sign changes in the sequence a0 , b0 , c0 , d0 ⋅ ⋅ ⋅ equal the num-
ber of roots for the polynomial F (s) in the right half plane Re s > 0. All
the roots of the polynomial F (s) lie in the left half plane if all numbers a0 ,
b0 , c0 , d0 , . . . are positive.
12
Stability margins
0.8
0.6 1/ Am
0.4
0.2
G0 (ω o )
0
ϕm
−0.2
−0.4
−0.6
−0.8
G0 (ω c )
−1
1
10
ωc
0
10
Gain
1
Am
−1
10
−2
10
−1 0
10 10
−50
−100
Phase
−150
ϕm
−200 ωo
−250
−1 0
10 10
Frekvens [rad/s]
Gain margin:
Am = 1/ p G0 (iω 0 )p
Phase margin:
ϕ m = π + arg G0 (iω c )
Delay margin:
L m = ϕ m /ω c
13
State feedback and Kalman filtering
State feedback
If the system
dx
= Ax + Bu
dt
y = Cx
has the control law
u = − Lx + {r r
then the closed-loop system is given by
dx
= ( A − B L) x + B {r r
dt
y = Cx
Kalman filtering
Assume that only the output signal y can be directly measured. Introduce
the model
d x̂
= A x̂ + Bu + K ( y − C x̂)
dt
The reconstruction error x̃ = x − x̂ satisfies
d x̃
= ( A − K C) x̃
dt
14
Lead-lag compensation
Lag compensator
s+a 1 + s/a
G K (s) = =M M >1
s + a/ M 1 + sM /a
The rule of thumb
a = 0.1ω c
guarantees that the phase margin is reduced by less than 6○ .
Lead compensator
s+b 1 + s/b
G K (s) = K K N = KK N>1
s + bN 1 + s/(bN )
The maximum phase advance is given by the figure below:
60
50
40
∆ϕ m
30
20
10
0
1 2 3 4 5 6 7 8 9 10
15
The Ziegler–Nichols methods
a t
Controller K Ti Td
P 1/a
PI 0.9/a 3b
PID 1.2/a 2b 0.5b
Controller K Ti Td
P 0.5K 0
PI 0.45K 0 T0 /1.2
PID 0.6K 0 T0 /2 T0 /8
16