TTK4115 Linear System Theory Study Sheet
TTK4115 Linear System Theory Study Sheet
AT = d e f = b e h
Example 1:
g h i c f i
1 1·a 1·b
· a b =
2 2·a 2·b 1.4 Adjugate
a b d −c
Example 2: Adj(A) = Adj =
c d −b a
1
a
2 · =1·a+2·b Tip: The adjugate of a 3x3 matrix is found similarly to
b how the determinant is calculated. Hold your finger over a
position of the transpose of the matrix (AT ) you want
Example 3: to adjugate. The same position of the adjugate matrix is
the determinant of the elements not in "line of sight" of
the selected position. This is illustrated for positions a, e
1 2 a b 1·a+2·c 1·b+2·d and i as shown below. The blue elements indicate the 2x2
· =
3 4 c d 3·a+4·c 3·b+4·d matrix for which to calculate the determinant and place
at the position colored red.
Example 4:
a b c a b c a b c
1 2 3 a b c d e f , d e f , d e f
4 5 6 · d e f g h i g h i g h i
7 8 9 g h i
1.5 Inverse
See Sections 1.2 and 1.4, or 11 for complete annotation.
1·a+2·d+3·g 1 · b + 2 · e + 3 · h ···
1
= 4 · b + 5 · e + 6 · h ··· · · · A−1 = · Adj(A)
7·c+8·f +9·i ··· ··· Det(A)
Note: Multiply each row with every column. 1.6 Matrix exponential
Compatibility implies that the first matrix have the For a diagonal matrix the matrix exponential is
same number of rows as the second matrix has columns.
at
a1 · · · 0 e 1 ··· 0
1.2 Determinants A = ... . . . ... −→ eAt = ... ..
.
..
.
1
which gives 1.9 Good to know
• Nullity or Nul(A) is the number of columns of A
minus the rank of A.
7 10 5 10 2 0
∆(A) = A2 −5A−2I = − − =0
15 22 15 20 0 2
• Positive definite is when all eigenvalues are
This is used as a practicality for calculating f (A) positive for a n × n matrix. Positive semidefinite
are if all eigenvalues are positive or zero.
• Singularity means that a n × n matrix is singular
f (A) = β0 I + β1 A + · · · + βn−1 An−1 = h(A) if the determinant is zero, implying that it is not
invertible.
Example 1:
• Minimal realization is the name of transfer
2 4 10 functions who’s state-space model is both
A= , f (A) = A
0 1 controllable and observable, and has the same
Using the eigenvalues (λ) of A with input-output behavior as the transfer function.
2
2.3 Diagonalisation 2.7 Controllable Form
Using the Q-matrix derived from the eigenvectors of the The controllable canonical form arranges the coefficients
system, it may be diagonalised by of the transfer function denominator across one row of the
system matrix (A)
Λ = Q−1 AQ
b0 sn + b1 sn−1 + · · · + bn−1 s + bn
G(S) =
A matrix on diagonal form will only contain values on the sn + a1 sn−1 + · · · + an−1 s + an
matrix diagonal. Not all matrices can be presented
as diagonal. Jordan form is therefore more common.
−an −an−1 −an−2 ··· −a1 1
1 0 0 ··· 0 0
.
ẋ = 0
1 0 ··· 0 x + .. u
2.4 Jordan Form .. .. .. ..
. . . .
··· 0
A diagonal matrix is actually on Jordan form. However,
0 0 0 1 0 0
oftentimes we use the term for matrices that does not
purely contain values along the matrix diagonal.
y = b0 b1 ···
bn−1 bn x
J = Q−1 AQ Example:
y = CQx + Du
−2 −3
1
ẋ = x+ u
1 0 0
2.5 Modal Form
y= 1 3 x
3
2.10 Zero-State Equivalence 3.3 BIBO Stability
Zero-State Equivalence means that two systems have the Bounded-Input-Bounded-Output (BIBO) stability implies
same transfer function, which means that they exhibit the that if the input is bounded, the output is also bounded.
same forced-response to every input. These systems do We differentiate between continuous- and discrete systems.
not need to be algebraically equivalent to be zero-state
equivalent. For continuous systems, BIBO stability if (and only if):
3 Conditions and Stability • SISO or MIMO, every pole of every transfer function
has a negative real part.
3.1 Linearity Conditions For discrete systems, BIBO stability if (and only if):
The two conditions that needs to be placed on the
function (F) for the system to be linear is Additivity and • Every pole of every transfer function has magnitude
Homogeneity. These are called the linearity conditions. less than 1.
4
3.6 Observability Matrix 4.2 Euler Discretised Model
Observability is a measure of how well internal states of Euler’s method proceeds via the definition of the
a system can be inferred from knowledge of its external derivative giving the approximation of
outputs. This matrix is used to determine which states of
the system are observable. x[k + 1] − x[k]
ẋ[k] =
T
2 n−1 T
This results in
O = C CA CA · · · CA
x[k + 1] = x[k] + T Ax + T Bu
4 Discretisation Often times the exact discretised model is preferred
because Euler can appear unstable at large time steps
To compute physical models digitally (computer (T), although the system is indeed stable. Insufficiently
simulations), they need to be converted from continuous- stable systems or large timesteps will result in a divergent
to discrete systems. This process is called discretisation. solution.
5
7 Linear Quadratic Regulator 7.1 Bryson’s Rule
1
Given the system Qi =
xi,min/max
ẋ = Ax + Bu 1
Ri =
ui,min/max
With state feedback (u = −Kx), the Cost Function (J)
of the LQR becomes Example:
Z ∞ Using limitations of x1 = 0.5, x2 = 1, and u = 2
J= xt Qx + ut Ru · dt
0
4 0
Q= , R = 0.25
where Q is symmetric and positive semidefinite, R is 0 1
symmetric and positive definite, and K = R−1 B T P .
Note: This does not guarantee the control output (u)
staying within desired boundaries. This is because LQR
The P-matrix is found through the Riccati Equation has feedback gain K ̸= 0 and a controller u = −Kx, which
implies linear scaling.
AT P + P A − P BR−1 B T P + Q = 0
The relative values of the elements of Q and R enforce 8 Disturbance and White Noise
tradeoffs between the magnitude of the control action and
the speed of the response. The equilibrium can be shifted The Spectral Density Function of the system output
from 0 to xeq by instead using u = P xeq − Kx. (y) can be found by
6
9.2 Discrete Time Kalman 9.3 Q&A
The discrete system model is given by Advantages of using a Kalman Filter
• Work very well for systems that are continuously
x[k + 1] = Ax[k] + Bu[k] + ω[k] changing
y[k] = Cx[k] + v[k] • Fast, which makes them ideal for real time problems
and embedded systems
a priori estimates is a direct translation to "from
before". It refers to the fact that the estimate for the • Light on memory as previous states are not needed
solution is derived before the solution is known to exist. • Disadvantage is it assumes that both the system
Here, P is the Covariance Matrix. and observation models equations are both linear
Why use model and estimator instead of direct
x− [k] = Ax[k − 1] + Bu[k − 1] state measurements?
P − [k] = AP [k − 1]AT + Q • Noise is less prominent when using estimators
The Kalman Gain (L) is calculated by • Model can be used to predict future states