Professional Documents
Culture Documents
Introduction, LTI Systems - Representations and Solutions: Morten O. Alver (Based On Slides by Morten D. Pedersen)
Introduction, LTI Systems - Representations and Solutions: Morten O. Alver (Based On Slides by Morten D. Pedersen)
Introduction, LTI Systems - Representations and Solutions: Morten O. Alver (Based On Slides by Morten D. Pedersen)
Lecture 1
Introduction, LTI systems - representations and solutions
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
Why?
Basic knowledge. Understand the structure of the solution.
2. Stability
What happens if we change the initial conditions x(0) of ẋ(t) = Ax(t) slightly?
Given the model ŷ(s) = Ĝ(s)û(s): if our input signals are bounded, will the outputs be bounded?
Why?
Fundamental properties of a dynamic system.
Unstable systems are generally useless without feedback control.
Simpler to analyse stability than to solve the differential equations.
Extensions to nonlinear systems.
to
˙
x̄(t) = Āx̄(t) + B̄u(t)
y(t) = C̄x̄(t) + D̄u(t)
where the new matrices Ā, B̄, C̄, D̄ have some desired properties, e.g. Ā being diagonal, or makes
the control design easier.
Why?
Basic knowledge. Understand your alternatives.
4. Realizations
Given ŷ(s) = Ĝ(s)û(s). Find a state space model
Why?
Enables state space analysis.
Basis for implementing filters, controllers and estimators in software and analog hardware.
Controllability: Do we have the right actuators to control the system to the desired set-point?
Why?
Control design for MIMO systems.
How to describe the response ŷ(s) = ĝ(s)û(s) when u(t) is a random input signal?
Why?
Most interesting real-world systems have disturbances/uncertainties.
Most measurements have some uncertainty/noise.
Analyse and minimize the effects of noise, disturbances and other uncertainty.
Why?
In real world applications we often cannot measure all states
Estimation allows us to compute what we cannot measure - combining sensors and model
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
We will encounter three different representations of linear systems in this course. Our models will
appear as:
State-space models
Transfer functions
y(s) = G(s)u(s)
Input-output descriptions
Z t
y(t) = G(t, τ )u(τ )dτ
t0
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
State-space model
Most of our models will be put on the state space form.
Definition of state
The state x(t0 ) of a system at a time t0 is the information at t0 that, together with the input u(t), for
t ≥ t0 , determines uniquely the output y(t) for all t ≥ t0 .
Explanation
We do not need u(t) for t < t0 to predict what will happen after t0 .
We do not need x(t) for t < t0 to predict what will happen after t0 .
The state acts as a memory of these!
Concise statement
x(t0 )
→ y(t), t ≥ t0
u(t), t > t0
C◦
u(t) y(t)
Question
What could be the state of the system?
Hints
If we know how hot the water is now at t0 ....
... do we need to know the past temperatures to predict the future ones?
u(t) y(t)
Question
What could be the states of the system? How many are there?
Hints
Say that we know the position of the mass at t0 .
Since the mass may be moving vertically, we also need to know its speed at t0 .
u(t) y(t)
Question
What could be the states of the system? How many are there?
Answer
The height of the water surface varies with time and along the horizontal axis.
This is a distributed system (as opposed to lumped), it has infinitely many states!
k d
m
Array form
ẋ A x B
z }| { z
}| {
z }| { z }| {
ẋ1 0 1 x1 0
= + u
ẋ2 −(k/m) −(d/m) x2 1/m
x1
y= 1 0 + 0 u
| {z } x2 | {z }
C D
| {z }
x
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
Laplace Transform
We can convert state space models (time domain) to the frequency domain with the Laplace
Transform.
Transfer functions
Transfer functions model the system in the frequency domain.
Transform rule
x(t) ⇔ x̂(s)
ẋ(t) ⇔ sx̂(s) − x0
Response
Zero-input Zero-state
z }| { zh }| i {
ŷ(s) = C(sI − A)−1 x0 + C(sI − A)−1 B + D û(s)
Transfer matrix
In many cases the zero-input response is uninteresting because:
1 The zero-input response dies away exponentially fast if the system is stable.
2 The plant is initialized at x0 = 0.
Then the we may focus on the input/output response:
Model
ẋ A x B
z }| { z
}| {
z }| { z }| {
ẋ1 0 1 x1 0
= + u
ẋ2 −(k/m) −(d/m) x2 1/m
x1
y= 1 0 + 0 u
| {z } x2 | {z }
C D
| {z }
x
Transform
Using:
ŷ(s) = C(sI − A)−1 [x0 + Bû(s)] + Dû(s)
leads to:
−1
s 0 0 1 x1 (0) 0
ŷ(s) = 1 0 − + û(s)
0 s −(k /m) −(d/m) x2 (0) 1/m
Laplace model:
−1
1 0 0 1 x1 (0) 0
ŷ(s) = 1 0 s − + û(s)
0 1 −(k/m) −(d/m) x2 (0) 1/m
Inversion:
−1
1 0 0 1 1 d + ms m
s − =
0 1 −(k/m) −(d/m) ms2 + sd + k −k ms
Result
1 x1 (0) 1
ŷ(s) = d + ms m + û(s)
ms2 + sd + k x2 (0) ms2 + sd + k
| {z } | {z }
Zero input response ĝ(s)
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
LTI sol.
Rt
x(t) = eAt x0 + 0 eA(t−τ ) Bu(τ )dτ
Rt
y(t) = CeAt x0 + C 0 eA(t−τ ) Bu(τ )dτ + Du(t)
Solutions in time
We may need to know the behavior of the system in time. This requires a solution of the
differential state space model.
We want to solve:
Step 2: Integrate
Z t d −aτ
[e x(τ )]dτ = e−at x(t) − e−a0 x(0) = 0
0 dτ | {z }
x(0)
Insertion of solution:
ẋ
z }| { ax
d at
z }| {
[e x0 ] = aeat x0
dt
Step 2: Integrate
Z t d −aτ
Z t Z t
[e x(τ )]dτ = e−aτ bu(τ )dτ ⇒ e−at x(t) − e−a0 x(0) = e−aτ bu(τ )dτ
0 dτ 0 | {z } 0
x(0)
Experiment 1
Jolt at t=0: u(t) = 1 × δ(t)
uHtL gHtL
2 2
1 1
t t
-1.0 -0.5 0.5 1.0 1.5 2.0 -1.0 -0.5 0.5 1.0 1.5 2.0
-1 -1
-2 -2
Impulse response
y(t) = g(t) is the system’s response to an impulse.
Causality
There is no response before the impulse.
uHtL yHtL
2 2
1 1
t t
-1.0 -0.5 0.5 1.0 1.5 2.0 -1.0 -0.5 0.5 1.0 1.5 2.0
-1 -1
-2 -2
Result
The response grows proportionally with the jolt magnitude.
Homogeneity
αu(t) → αy(t)
uHtL yHtL
2 2
1 1
t t
-1.0 -0.5 0.5 1.0 1.5 2.0 -1.0 -0.5 0.5 1.0 1.5 2.0
-1 -1
-2 -2
Result
The response is the same, just shifted y(t) = g(t − 1)
Time invariance
u(t − T ) → y(t − T )
uHtL yHtL
2 2
1 1
t t
-1.0 -0.5 0.5 1.0 1.5 2.0 -1.0 -0.5 0.5 1.0 1.5 2.0
-1 -1
-2 -2
Result
The responses are superposed.
Additivity
u1 (t) + u2 (t) → y1 (t) + y2 (t)
yHtL yHtL
2 2
1 1
t t
-1.0 -0.5 0.5 1.0 1.5 2.0 -1.0 -0.5 0.5 1.0 1.5 2.0
-1 -1
-2 -2
Result
We see that the responses have been added proportionally.
Superposition
α1 u1 (t) + α2 u2 (t) → α1 y1 (t) + α2 y2 (t)
In mathematics
Z t
y(t) = g(t − τ )u(τ )dτ
0
The idea
Convolution is simply:
adding up all the impulse responses
shifted to the time when the input happened: τ
scaled proportionally with the input
Output response
Convolution integral
Free decay
z }| {
z }| { Z t
at a(t−τ )
y (t) = cx(t) + du(t) = ce x0 +c e bu(τ )dτ +du(t)
0
The output response of an LTI system is described in terms of convolution.
Wait a minute!
What is e−At ?
Series expansion
The matrix exponential is defined analogously:
∞
t2 2 X tk
eAt = I + tA + A + ··· = Ak
2! k!
k=0
Computing eAt
We will learn how to compute the matrix exponential exactly next lesson.
e0 = I
eA(t1 +t2 ) = eAt1 eAt2
h i−1
eAt = e−At
Warning
eAt eBt 6= e(A+B)t
Derivative of eAt
∞ k ∞
" #
d At d X t X t (k−1) k
[e ] = Ak = A
dt dt k! (k − 1)!
k =0 k =1
∞ k
X t
= Ak +1 = AeAt = eAt A
k!
k =0
Step 2: Integrate
Z t d h −Aτ i Z t Z t
e x(τ ) dτ = e−Aτ Bu(τ )dτ ⇒ e−At x(t) − e−A0 x(0) = e−Aτ Bu(τ )dτ
0 dτ 0 | {z } 0
x(0)
Definitions
We redefine the constants for simplicity:
k/m = ω02 , d =0
Model
ẋ A x B
z }| { z
}| { z }| { z }| {
ẋ1 0 1 x1 0
= + u
ẋ2 −ω02 0 x2 1/m
x1
y= 1 0 + 0 u
| {z } x2 | {z }
C D
| {z }
x
Response
Z t
y(t) = CeAt x0 + C eA(t−τ ) Bu(τ )dτ + Du(t)
0
F.y.i.
" #
sin(tω0 )
cos(tω0 )
eAt = ω0
−ω0 sin(tω0 ) cos(tω0 )
Response
h i x (0) Z t sin[(t − τ )ω ]
sin(tω0 ) 1 0
y (t) = cos(tω0 ) ω0
+ u(τ )dτ
x2 (0) 0 mω0
| {z } | {z }
Zero input response g(t−τ )
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
LTI sol.
Rt
x(t) = eAt x0 + 0 eA(t−τ ) Bu(τ )dτ
Rt
y(t) = CeAt x0 + C 0 eA(t−τ ) Bu(τ )dτ + Du(t)
Important relations
y(t) = L−1 [C(sI − A)−1 x0 ] + L−1 [C(sI − A)−1 Bu(s)] + L−1 [Du(s)]
| {z } | {z } | {z }
Rt
CeAt x0 0 CeA(t−τ ) Bu(τ )dτ Du(t)
LTI sol.
Rt
x(t) = eAt x0 + 0 eA(t−τ ) Bu(τ )dτ
Rt
y(t) = CeAt x0 + C 0 eA(t−τ ) Bu(τ )dτ + Du(t)
Laplace transform
It is also possible to reverse the procedure.
2. LTI systems
Transfer functions
Solutions
Convolution
More connections
3. Summary
LTI sol.
Rt
x(t) = eAt x0 + 0 eA(t−τ ) Bu(τ )dτ
Rt
y(t) = CeAt x0 + C 0 eA(t−τ ) Bu(τ )dτ + Du(t)