L3 Linear Systems
L3 Linear Systems
Analytical Solution
of Linear Systems
Dominik Bongartz
Non-autonomous Autonomous
𝑢 𝑡 𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 + 𝐵 𝑢(𝑡) 𝑦 𝑡 𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 𝑦 𝑡
𝑦 𝑡 = 𝐶 𝑥 𝑡 + 𝐷 𝑢(𝑡) 𝑦 𝑡 =𝐶𝑥 𝑡
𝑥 0 = 𝑥! 𝑥 0 = 𝑥!
2
Lecture Outline: Systems Analysis of Chemical Processes
3
Part 3.1:
Autonomous
Linear Time-Invariant Systems
4
Intended Learning Outcomes
• know the formula for the analytical solution of autonomous LTI systems
• can describe the effect of distinct real and complex eigenvalues on the solution of LTI systems
5
General Solution of Autonomous LTI Systems
𝑛" = 1
(reminder from calculus)
𝑥̇ 𝑡 = 𝑎 𝑥 𝑡
𝑎, 𝑥! , 𝑥 𝑡 ∈ ℝ
𝑥 0 = 𝑥!
Verify:
𝑥̇ 𝑡 = 𝑎𝑒 %& 𝑥! = 𝑎𝑥(𝑡)
𝑥 0 = 𝑒 %⋅! 𝑥! = 𝑥!
6
7 Faculty, department, unit ...
General Solution of Autonomous LTI Systems
𝑛" = 1
𝑛" > 1
(reminder from calculus)
𝑥̇ 𝑡 = 𝑎 𝑥 𝑡 𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 𝑥! , 𝑥 𝑡 ∈ ℝ)!
𝑎, 𝑥! , 𝑥 𝑡 ∈ ℝ
𝑥 0 = 𝑥! 𝑥 0 = 𝑥! 𝐴 ∈ ℝ)!×)!
𝑥̇ 𝑡 = 𝑎𝑒 %& 𝑥! = 𝑎𝑥(𝑡)
𝑥 0 = 𝑒 %⋅! 𝑥! = 𝑥!
8
The Matrix Exponential
9
The Matrix Exponential
Relevant Properties:
0
• 𝑒 (& = 𝐴𝑒 (&
0&
• 𝑒 ( is invertible, and 𝑒 ( 12 = 𝑒 1(
𝜆2 ⋯ 0 𝑒 3" ⋯ 0 à If 𝐴 is diagonizable, exploit to compute 𝑒 (
• for diagonal 𝐴 = ⋮ ⋱ ⋮ : 𝑒 ( = ⋮ ⋱ ⋮ à If not, more complicated (see handout)
0 ⋯ 𝜆) 0 3
⋯ 𝑒 # à In practice numerical (e.g. MATLAB: expm)
$" (4
• 𝑒4 = 𝑇 12 𝑒 ( 𝑇
10
Example 1: Diagonal System Matrix
11
Example 1: Diagonal System Matrix
𝑥2
𝑥2 𝑥2
𝑥. 𝑥.
𝑥.
𝑡 𝑡 𝑡
12
Example 2: Non-Diagonal System Matrix With Distinct Real Eigenvalues
+0 +1 +1
𝑥̇ = 𝑥 𝜆2 = −1, 𝑣2 =
−3 −4 −1 +1 +1 +1.5 +0.5
1 ⇒ ⇒ 𝑇= , 𝑇 12 =
𝑥 0 = +1 −1 −3 −0.5 −0.5
1 𝜆. = −3, 𝑣. =
−3
𝜆2 0 𝜆2 0
𝑇 12 𝐴𝑇 = ⇔ 𝐴=𝑇 𝑇 12
0 𝜆. 0 𝜆.
13
Example 2: Non-Diagonal System Matrix With Distinct Real Eigenvalues
+0 +1 +1
𝑥̇ = 𝑥 𝜆2 = −1, 𝑣2 =
−3 −4 −1 +1 +1 +1.5 +0.5
1 ⇒ ⇒ 𝑇= , 𝑇 12 =
𝑥 0 = +1 −1 −3 −0.5 −0.5
1 𝜆. = −3, 𝑣. =
−3
𝜆2 0 𝜆2 0
𝑇 12 𝐴𝑇 = ⇔ 𝐴=𝑇 𝑇 12
0 𝜆. 0 𝜆.
14
Example 3: System Matrix With Complex Eigenvalues
+0 +1 +1
𝑥̇ = 𝑥 𝜆2 = −1 + 2𝑗, 𝑣2 =
−5 −2 −1 + 2𝑗 +1 +1 2 2−𝑗 −𝑗
1 ⇒ ⇒𝑇= , 𝑇 12 =
𝑥 0 = +1 −1 + 2𝑗 −1 − 2𝑗 5 2+𝑗 +𝑗
1 𝜆. = −1 − 2j, 𝑣. =
−1 − 2𝑗
𝜆2 0 𝜆2 0
𝑇 12 𝐴𝑇 = ⇔ 𝐴=𝑇 𝑇 12
0 𝜆. 0 𝜆.
15
Example 3: System Matrix With Complex Eigenvalues
+0 +1 +1
𝑥̇ = 𝑥 𝜆2 = −1 + 2𝑗, 𝑣2 =
−5 −2 −1 + 2𝑗 +1 +1 2 2−𝑗 −𝑗
1 ⇒ ⇒𝑇= , 𝑇 12 =
𝑥 0 = +1 −1 + 2𝑗 −1 − 2𝑗 5 2+𝑗 +𝑗
1 𝜆. = −1 − 2j, 𝑣. =
−1 − 2𝑗
𝜆2 0 𝜆2 0
𝑇 12 𝐴𝑇 = ⇔ 𝐴=𝑇 𝑇 12
0 𝜆. 0 𝜆.
3" ! $" 3" &
⇒ 𝑥 𝑡 = 𝑒 (& 𝑥! =𝑒
4
! 3%
4 &
𝑥! =𝑇 𝑒 0 𝑇 12 𝑥!
0 𝑒 3% &
(127.8)&
=𝑇 𝑒 0
(121.8)&
𝑇 12 𝑥! Other suitable transformation matrix (real-valued)
0 𝑒
16
Example 3: System Matrix With Complex Eigenvalues
+0 +1 +1
𝑥̇ = 𝑥 𝜆2 = −1 + 2𝑗, 𝑣2 =
−5 −2 −1 + 2𝑗 +1 +1 2 2−𝑗 −𝑗
1 ⇒ ⇒𝑇= , 𝑇 12 =
𝑥 0 = +1 −1 + 2𝑗 −1 − 2𝑗 5 2+𝑗 +𝑗
1 𝜆. = −1 − 2j, 𝑣. =
−1 − 2𝑗
𝜆2 0 𝜆2 0
𝑇 12 𝐴𝑇 = ⇔ 𝐴=𝑇 𝑇 12
0 𝜆. 0 𝜆.
3" ! $" 3" &
⇒ 𝑥 𝑡 = 𝑒 (& 𝑥! =𝑒
4
! 3%
4 &
𝑥! =𝑇 𝑒 0 𝑇 12 𝑥!
0 𝑒 3% &
(127.8)&
=𝑇 𝑒 0
(121.8)&
𝑇 12 𝑥! Other suitable transformation matrix (real-valued)
0 𝑒
17
Example 3: System Matrix With Complex Eigenvalues – Visualization
𝑥2
𝑥.
18
Example 3: System Matrix With Complex Eigenvalues – Visualization
Oscillation term
𝑥2 Damping term
𝑥2
𝑥.
𝑡 𝑡
19
20 Faculty, department, unit ...
21 Faculty, department, unit ...
22 Faculty, department, unit ...
Intended Learning Outcomes
ü know the formula for the analytical solution of autonomous LTI systems
ü can describe the effect of distinct real and complex eigenvalues on the solution of LTI systems
23
Part 3.1:
Non-Autonomous
Linear Time-Invariant Systems
24
Intended Learning Outcomes
• know the formula for the general solution of non-autonomous LTI systems
25
Linear Time-Invariant (LTI) Models
Non-autonomous Autonomous
𝑢 𝑡 𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 + 𝐵 𝑢(𝑡) 𝑦 𝑡 𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 𝑦 𝑡
𝑦 𝑡 = 𝐶 𝑥 𝑡 + 𝐷 𝑢(𝑡) 𝑦 𝑡 =𝐶𝑥 𝑡
𝑥 0 = 𝑥! 𝑥 0 = 𝑥!
⇒ 𝑥 𝑡 =? ⇒ 𝑥 𝑡 = 𝐴𝑒 (& 𝑥!
𝑦 𝑡 =? 𝑦 𝑡 = 𝐶𝐴𝑒 (& 𝑥!
26
General Solution of Non-Autonomous LTI Systems
𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 + 𝐵 𝑢(𝑡)
𝑥 0 = 𝑥!
&
Verify:
&
𝑥̇ 𝑡 = 𝐴𝑒 (& 𝑥! + a 𝐴𝑒 ( &1:
𝐵𝑢 𝜏 𝑑𝜏 + 𝑒 ( &1&
𝐵𝑢 𝑡 = 𝐴𝑥 𝑡 + 𝐵𝑢(𝑡)
!
!
𝑥 0 = 𝑒 (⋅! 𝑥! + a 𝑒 ( !1:
𝐵𝑢 𝜏 𝑑𝜏 = 𝑥!
!
27
General Solution of Non-Autonomous LTI Systems
𝑥̇ 𝑡 = 𝐴 𝑥 𝑡 + 𝐵 𝑢(𝑡)
𝑥 0 = 𝑥!
&
𝑥 0 = 𝑒 (⋅! 𝑥! + a 𝑒 ( !1:
𝐵𝑢 𝜏 𝑑𝜏 = 𝑥!
!
28
Common Input Signals: Step
𝑢
0, 𝑡<0
𝑢 𝑡 =d
1, 𝑡≥0
29
Common Input Signals: Ramp
0, 𝑡<0
𝑢 𝑡 =d
𝑢 𝑡, 𝑡≥0
30
Common Input Signals: Oscillation
𝑢
𝑢 𝑡 = 𝛼 sin(𝜔𝑡)
Amplitude (Angular)
𝛼
frequency
1 2𝜋
𝑇= 𝜔 = 2𝜋𝑓 =
𝑓 𝑇
31
Common Input Signals: Pulse
0, 𝑡 < 0
𝑢 𝑡 = q𝛼, 0 ≤ 𝑡 < 1/𝛼
0, 𝑡 ≥ 1/𝛼
𝑢
- 2/< 2/< 1
a 𝑢 𝑡 𝑑𝑡 = a 𝛼𝑑𝑡 = 𝛼𝑡r =𝛼 −0=1
1- ! ! 𝛼
32
Common Input Signals: Impulse
𝑢 𝑡 =𝛿 𝑡 , Dirac impulse
̇
Definition 2: 𝛿 𝑡 = ℎ(𝑡)
𝑢 “derivative of step signal”
33
Common Input Signals: Impulse
𝑢 𝑡 =𝛿 𝑡 , Dirac impulse
̇
Definition 2: 𝛿 𝑡 = ℎ(𝑡)
𝑢 “derivative of step signal”
-
Property 1: ∫1- 𝛿 𝑡 𝑑𝑡 = ℎ(𝑡)|-
1- = 1 − 0 = 1
34
Example 1: Two Tanks in Series
−1 +0 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡)
+2 −2 0
𝑦 𝑡 = 0 1 𝑥(𝑡)
0
𝑥 0 =
0
(from Exercise 1-A)
Task: Compute the step and impulse responses of the system!
35
Example 1: Two Tanks in Series
−1 +0 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡)
+2 −2 0
𝑦 𝑡 = 0 1 𝑥(𝑡)
0
𝑥 0 =
0
(from Exercise 1-A)
Task: Compute the step and impulse responses of the system!
Solution Procedure:
36
Example 1: Two Tanks in Series – Compute Matrix Exponential
−1 +0 1 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡) 𝜆2 = −1, 𝑣2 = 1 0 +1 0
+2 −2 0 2 ⇒ 𝑇= , 𝑇 12 =
⇒ 2 1 −2 1
𝑦 𝑡 = 0 1 𝑥(𝑡) 0
𝜆. = −2, 𝑣. =
0 1
𝑥 0 =
0
37
Example 1: Two Tanks in Series – Compute Matrix Exponential
−1 +0 1 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡) 𝜆2 = −1, 𝑣2 = 1 0 +1 0
+2 −2 0 2 ⇒ 𝑇= , 𝑇 12 =
⇒ 2 1 −2 1
𝑦 𝑡 = 0 1 𝑥(𝑡) 0
𝜆. = −2, 𝑣. =
0 1
𝑥 0 =
0
38
Example 1: Two Tanks in Series – Step Response
−1 +0 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡)
+2 −2 0
0, 𝑡<0
𝑦 𝑡 = 0 1 𝑥(𝑡) 𝑢 𝑡 = ℎ(𝑡) = d
1, 𝑡≥0
0
𝑥 0 =
0
& &
1(&1:) 1
(&
⇒ 𝑥 𝑡 = 𝑒 𝑥! + a 𝑒 ( &1:
𝐵𝑢 𝜏 𝑑𝜏 = a 𝑒 0 1𝑑𝜏
2𝑒 1(&1:) − 2𝑒 1.(&1:) 𝑒 1.(&1:) 0
! !
=0 &
&
=a 𝑒 1(&1:) 𝑑𝜏 𝑒 1(&1:)
= y
2𝑒 1(&1:) − 2𝑒 1.(&1:) 2𝑒 1(&1:)
−𝑒 1.(&1:)
! !
1&
= 1 − 𝑒
1 − 2𝑒 1& + 𝑒 1.&
⇒𝑦 𝑡 = 0 1 𝑥 𝑡 = 1 − 2𝑒 1& + 𝑒 1.&
39
Example 1: Two Tanks in Series – Step Response
−1 +0 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡)
+2 −2 0
0, 𝑡<0
𝑦 𝑡 = 0 1 𝑥(𝑡) 𝑢 𝑡 = ℎ(𝑡) = d
1, 𝑡≥0
0
𝑥 0 =
0
& &
1(&1:) 1
(&
⇒ 𝑥 𝑡 = 𝑒 𝑥! + a 𝑒 ( &1:
𝐵𝑢 𝜏 𝑑𝜏 = a 𝑒 0 1𝑑𝜏
2𝑒 1(&1:) − 2𝑒 1.(&1:) 𝑒 1.(&1:) 0
! !
=0 &
&
=a 𝑒 1(&1:) 𝑑𝜏 𝑒 1(&1:)
= y
2𝑒 1(&1:) − 2𝑒 1.(&1:) 2𝑒 1(&1:)
−𝑒 1.(&1:)
! !
Mode 1
1&
= 1 − 𝑒
1 − 2𝑒 1& + 𝑒 1.&
Mode 1 Mode 2 Mode 1 Mode 2
⇒𝑦 𝑡 = 0 1 𝑥 𝑡 = 1 − 2𝑒 1& + 𝑒 1.&
40
Example 1: Two Tanks in Series – Step Response: Visualization
1&
𝑥(𝑡) = 1 − 𝑒
1 − 2𝑒 1& + 𝑒 1.&
𝑦 𝑡 = 1 − 2𝑒 1& + 𝑒 1.&
~𝑒 1& ~𝑒 1&
(≙ Mode 1) (≙ Mode 1)
𝑢
𝑥2 𝑦 = 𝑥.
𝑥̇ . 0 = 0
𝑡 𝑡 𝑡
41
Example 1: Two Tanks in Series – Impulse Response
−1 +0 1
𝑥(𝑡)
̇ = 𝑥(𝑡) + 𝑢(𝑡)
+2 −2 0
𝑦 𝑡 = 0 1 𝑥(𝑡) 𝑢 𝑡 = 𝛿(𝑡)
0
𝑥 0 =
0
&
𝑒 1&
(& ( &1: (&
⇒ 𝑥 𝑡 = 𝑒 𝑥! + a 𝑒 𝐵𝛿 𝜏 𝑑𝜏 =𝑒 𝐵 =
2𝑒 1& − 2𝑒 1.&
!
=0
𝑒 1! 1
Note: lim 𝑥(𝑡) = = ≠ 𝑥! à 𝑥2 „jumps“ at 𝑡 = 0
&→!& 2𝑒 1! − 2𝑒 1.⋅! 0
⇒𝑦 𝑡 = 0 1 𝑥 𝑡 = 2𝑒 1& − 2𝑒 1.&
42
Example 1: Two Tanks in Series – Impulse Response: Visualization
1&
𝑥(𝑡) = 𝑒
2𝑒 1& − 2𝑒 1.&
𝑦 𝑡 = 2𝑒 1& − 2𝑒 1.&
𝑢 ~𝑒 1& 𝑥. = 𝑦 ~𝑒 1&
(≙ Mode 1) (≙ Mode 1)
𝑥2
𝑡 𝑡 𝑡
43
Example 2: Response to Oscillation
𝑥̇ 𝑡 = −𝑥(𝑡) + 𝑢(𝑡)
𝑢 𝑡 = sin(𝜔𝑡) ⇒ 𝑒 (& = 𝑒 1&
𝑥 0 =1
C 2 C%
= 𝑒 1& 𝑥! + + sin 𝜔𝑡 − arcsin
27C% 27C% 27C%
44
Example 2: Response to Oscillation
𝑥̇ 𝑡 = −𝑥(𝑡) + 𝑢(𝑡)
𝑢 𝑡 = sin(𝜔𝑡) ⇒ 𝑒 (& = 𝑒 1&
𝑥 0 =1
45
General Response of (Stable) LTI Systems to Oscillations
for 𝑡 → ∞:
𝑢 𝑡 = 𝛼 sin(𝜔𝑡) 𝑦 𝑡 = A 𝜔 𝛼 sin(𝜔𝑡 − 𝜑 𝜔 )
LTI System
𝛼 𝐴(𝜔)𝛼
𝑢 𝑦
−𝛼 −𝐴(𝜔)𝛼
𝑡 𝑡
46
Intended Learning Outcomes
ü know the formula for the general solution of non-autonomous LTI systems
47
Lecture Outline: Systems Analysis of Chemical Processes
48
See you next week!