SlideShare a Scribd company logo
1 of 26
Download to read offline
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Module 04
Linear Time-Varying Systems
Ahmad F. Taha
EE 5143: Linear Systems and Control
Email: ahmad.taha@utsa.edu
Webpage: http://engineering.utsa.edu/˜taha
September 26, 2017
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 1 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Introduction to State Transition Matrix (STM)
For the linear autonomous system
ẋ(t) = Ax(t), x(t0) = x0, t ≥ 0
the state solution is
x(t) = eA(t−t0)
x0
Define the state transition matrix (STM):
φ(t, t0) = eA(t−t0)
– STM (φ(t, t0)) propagates an initial state along the LTI solution t
time forward. Note that:
φ(t1 + t2, t0) = φ(t1, t0)φ(t2, t0) = φ(t2, t0)φ(t1, t0), ∀t1, t2 ≥ 0
In general, for an linear time varying system,
ẋ(t) = A(t)x(t) + B(t)u(t), x(t0) = x0,
the state solution is given in terms of the STM:
x(t) = Φ(t, t0)x(t0) +
Z t
t0
Φ(t, τ)B(τ)u(τ)dτ
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 2 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Properties of the STM
For the linear autonomous system
ẋ(t) = Ax(t), x(t0) = x0, t ≥ 0
the STM is:
φ(t, t0) = eA(t−t0)
1 φ(t0, t0) = φ(t, t) = I
2 φ−1
(t1, t2) = φ(t2, t1)
3 φ(t1, t2) = φ(t1, t0)φ(t0, t2)
4
d
dt
(φ(t, t0)) = Aφ(t, t0)
Proofs:
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 3 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Solution Space and System Modes
Solution space X of the LTI system ẋ(t) = Ax(t) is the set of all
its solutions:
X := {x(t), t ≥ 0 | ẋ = Ax}
X is a vector space
Dimension of X is n
System modes: A mode of the LTI system ẋ = Ax is its solution
from an eigenvector of A:
x(t) = eAt
vi = eλi t
vi
This is one property of the matrix exponential (see Module 3)
The n (possibly repeated) modes form a basis of the solution space
X
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 4 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Decomposition of State Solution
Any state solution for an autonomous system can be written as a
linear combination of system modes, assuming that A is
diagonalizable
This means that the solution space X can be formed by these linear
combinations
A = TDT−1
is assumed to be diagonalizable
Assume that we start from x0 = TT−1
x0 = x0
This means that we start from a linear combinations of
vi , i = 1, . . . , n since
x0 = TT−1
x0 =
n
X
i=1
(x>
0 wi )vi =
n
X
i=1
αi vi
where wi ’s are the rows of the T−1
matrix (or the left evectors)
Given that construction, we can see that the solution x(t) is a LC of
the modes eλi t
vi
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 5 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Changing Coordinates
Changing of coordinates of an LTI system: basically means we’re
scaling the coordinates in a different way
Assume that T ∈ Rn×n
is a nonsingular transformation matrix
Define x̃ = T−1
x. Recall that ẋ = Ax + Bu, then:
˙
x̃ = (T−1
AT)x̃ + T−1
Bu = Ãx̃ + B̃u
with initial conditions x̃(0) = T−1
x(0)
Remember the diagonal canonical form? We can get to it if the
transformation T is the matrix containing the eigenvectors of A
What if the matrix is not diagonlizable? Well, we can still write
A = TJT−1
, which means that à = J is the new state-space matrix
via the eigenvector transformation
In fact, you can show that if A = TJT−1
with j Jordan blocks (i.e.,
J = diag(J1, J2, . . . , Jj ), then after the transformation x̃ = T−1
x,
the LTI system becomes decoupled:
˙
x̃1 = J1x̃1, ˙
x̃2 = J2x̃2, . . . , ˙
x̃j = Jj x̃j .
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 6 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
STM of LTV Systems
In the previous module, we learned how to compute the state and
output solution
We assumed that the system is time invariant, i.e.,
ẋ(t) = Ax(t) + Bu(t)
What if the system is time varying:
ẋ(t) = A(t)x(t) + B(t)u(t), y(t) = C(t)x(t) + D(t)u(t) (∗)
How can we compute x(t) and y(t)?
That relies on finding the STM of the LTV system (∗)
To do so, we have to find the exponential of a time-varying matrix
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 7 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
STM of LTV Systems — 2
Theorem — STM of ẋ(t) = A(t)x(t)
The STM of ẋ(t) = A(t)x(t) + B(t)u(t) is given by
φ(t, t0) = exp
Z t
t0
A(q)dq

if the following conditions are satisfied:
1 A(t) has piecewise continuous entries for all t, t0
a
2 A(t) commutes with its integral M(t, t0) =
R t
t0
A(q)dq, i.e.,
A(t)M(t, t0) = M(t, t0)A(t)
aA function is piecewise continuous if: (a) it is defined throughout that interval, (b)
its functions are continuous on that interval, and (c) there is no discontinuity at the
endpoints of the defined interval.
This theorem is very important, but can be very difficult to assess
Consider a large system with TV A(t). Then, numerical integration
needs to be performed the check the conditions
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 8 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
STM of LTV Systems — 3
Given this analytical challenge, a natural question arises
What are easily testable conditions that are sufficient for A(t) to
commute with M(t, t0)?
The following theorem investigates this question
Theorem — STM Testing Conditions
A(t) and M(t, t0) commute if any of the following conditions hold:
1 A(t) = A is a constant matrix
2 A(t) = β(t)A where β(·) : R → R is a scalar function and A is a
constant matrix
3 A(t) =
Pm
i=1 βi (t)Ai where βi (·) : R → R are all scalar functions
and Ai ’s are all constant matrices that commute with each other,
i.e., Ai Aj = Aj Ai , ∀i, j ∈ {1, 2, . . . , m}
4 There exists a factorization A(t) = TD(t)T−1
where
D(t) = diag(λ1(t), . . . , λn(t))
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 9 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Example 1
A(t) = α̇(t)

a −a
a −a

What is the state transition matrix?
Solution: notice that A(t) fits with the second characterization,
hence A(t) and M(t, t0) commute (assume that α(t) is continuous
differentiable function)
Note that A is nilpotent of order 2
Solution:
φ(t, t0) = exp
Z t
t0
A(q)dq

= I +

a −a
a −a

(α(t) − α(t0))
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 10 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Example 2
A(t) =

ȧ(t) ḃ(t)
ḃ(t) ȧ(t)

, find the STM
Note that A(t) = ȧ(t)I + ḃ(t)

0 1
1 0

We can apply the third case to obtain:
φ(t, t0) = exp
Z t
t0
A(q)dq

= ea(t)−a(t0)
exp

0 b(t) − b(t0)
b(t) − b(t0) 0

Recall that if
A2 =

0 b
b 0

⇒ eA2t
=

cosh(bt) sinh(bt)
sinh(bt) cosh(bt)

Hence,
φ(t, t0) = ea(t)−a(t0)

cosh(b(t) − b(t0)) sinh(b(t) − b(t0))
sinh(b(t) − b(t0)) cosh(b(t) − b(t0))

©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 11 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Overall Solution
So, given that we have the state transition matrix, how can we find
the overall solution of the LTV system?
The answer is simple:
x(t) = φ(t, t0)x(t0) +
Z t
t0
φ(t, τ)B(τ)u(τ)dτ
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 12 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
More Examples on STM Computations
Find the state transition matrix of
A(t) =


sin(t) cos(t) β
0 sin(t) cos(t)
0 0 sin(t)

 .
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 13 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Intro to Discretization
We want to discretize and transform this dynamical system
ẋ(t) = Ax(t) + Bu(t)
y(t) = Cx(t) + Du(t)
to
x(k + 1) = Ãx(k) + B̃u(k)
y(k) = C̃x(k) + D̃u(k)
Why do we need that?
Because if you want to use a computer to compute numerical
solutions to the ODE, you’ll have to give the computer a language it
understands
Also, many dynamical systems are naturally discrete, not continuous,
i.e., sampling doesn’t happen continuously
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 14 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
What Computers Understand
What is zero order hold? It’s basically the model of the signal
reconstruction of the digital to analog converter (DAC):
uZOH(t) =
∞
X
k=−∞
u(k) · rect

t − T/2 − kT
T

©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 15 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Discretization Errors
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 16 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Discretization — 1
1 Use the derivative rule:
ẋ(t) = lim
T→0
x(t + T) − x(t)
T
2 You can use this approximation:
x(t + T) − x(t)
T
= Ax(t)+Bu(t) ⇒ x(t+T) = x(t)+ATx(t)+BTu(t)
3 Hence,
x(t + T) = (I + AT)x(t) + BTu(t)
4 Now, if we compute x(t) and y(t) only at t = kT for k = 0, 1, . . . ,
then the dynamical system equation for the discretized, approximate
system is:
x((k + 1)T) = (I + AT)
| {z }
Ã
x(kT) + BT
|{z}
B̃
u(kt)
y(kT) = C̃x(kT) + D̃u(kT)
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 17 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Discretization — 2
The aforementioned discretization is a valid discretization for a
continuous time system
This method is based on forward Euler differentiation method
Easily computed by the computer, i.e., no need for matrix
exponentials—just simple computations
While this discretization is the easiest, it’s the least accurate
Solution: a different discretization method
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 18 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Another Discretization Method — 1
Recall that if the input u(t) is generated by a computer then
followed by DAC, then u(t) will be piecewise constant:
u(t) = u(kT) =: u(k) for kT ≤ t ≤ (k+1)T, k = 0, 1, . . . , kf
Note that this input only changes values at discrete time instants
Recall the solution to the state-equation:
x(t) = eAt
x(0) +
Z t
0
eA(t−τ)
Bu(τ)dτ
Setting t = KT in the previous equation, then we can write:
x(k) := x(kT) = eAkT
x(0) +
Z kT
0
eA(kT−τ)
Bu(τ)dτ
x(k+1) := x((k+1)T) = eA(k+1)T
x(0)+
Z (k+1)T
0
eA((k+1)T−τ)
Bu(τ)dτ
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 19 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Another Discretization Method — 2
x(k +1) := x((k +1)T) = eA(k+1)T
x(0)+
Z (k+1)T
0
eA((k+1)T−τ)
Bu(τ)dτ
Note that the above equation can be written as:
x(k + 1) = eAT
eAkT
x(0) +
Z kT
0
eA(kT−τ)
Bu(τ)dτ
!
+
Z (k+1)T
kT
eA(kT+T−τ)
Bu(τ)dτ
Recall that we’re assuming that:
u(t) = u(kT) =: u(k) for kT ≤ t ≤ (k+1)T, k = 0, 1, . . . , kf
i.e., the input is constant between two sampling instances
Look at x(k) and let α = kT + T − τ, then:
x(k + 1) = eAT
x(k) +
Z T
0
eAα
dα
!
Bu(k)
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 20 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Another Discretization Method — 3
x(k + 1) = eAT
x(k) +
Z T
0
eAα
dα
!
Bu(k)
Hence, the discretized system with sampling time-period T can be
written as:
x(k + 1) = Ãx(k) + B̃u(k)
y(k) = C̃x(k) + D̃u(k)
where
à = eAT
, B̃ =
Z T
0
eAα
dα
!
B, C̃ = C, D̃ = D
Note that there is no approximation in this solution
We only assumed that u(k) is piecewise constant between the two
sampling instances
It’s easy to compute the new discretized SS matrices (besides B̃)
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 21 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Another Discretization Method — 4
To compute B̃, you can simply evaluate the formula:
B̃ =
Z T
0
eAα
dα
!
B =
Z T
0
I + Aα +
1
2
A2
α2
+ . . . dα
!
B
Which can be evaluated:
B̃ =

TI +
1
2
T2
A +
1
3
T3
A2
+ . . .

B
= A−1

TA +
1
2
T2
A2
+
1
3
T3
A3
+ . . .

B
= A−1

I + TA +
1
2
T2
A2
+
1
3
T3
A3
+ . . . − I

B
⇒ B̃ = A−1
(Ã − I)B
This result is only valid for nonsingular A
This formula helps in avoiding infinite series
You can also use MATLAB’s c2d(A,B,...) command
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 22 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Examples
Discretize the following CT-LTI system:
ẋ(t) =

−1 1
0 2

x(t) +

2 0
0 4

u(t)
where the controller’s sampling time is T = 0.1 sec.
We can try the three approaches we learned:
1 Approach 1:
à = I + AT =

0.9 0.1
0 1.2

, B̃ = BT =

0.2 0
0 0.4

2 Approach 2:
à = eAT
=

e−T 1
3 (e2T
− e−T
)
0 e2T

=

0.9048 0.1055
0 1.2214

B̃ =
Z T
0
eAα
dα
!
B = int(expm(A*h),h,0,T)*B =

0.1903 0.0207
0 0.4428

©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 23 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Examples (Cont’d)
Approach 3:
à = eAT
=

e−T 1
3 (e2T
− e−T
)
0 e2T

=

0.9048 0.1055
0 1.2214

B̃ = A−1
(Ã − I)B =

0.1903 0.0207
0 0.4428

What do we notice? What are some preliminary conclusions?
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 24 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Remarks
There’s plenty of other discretization methods in the literature
This question has no specific golden answer
It often depends on the properties of the system
Basically the sampling time period (how often your control is fixed
or changing)
The singularity of the A matrix also plays an important role
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 25 / 26
Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems
Questions And Suggestions?
Thank You!
Please visit
engineering.utsa.edu/˜taha
IFF you want to know more ,
©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 26 / 26

More Related Content

Similar to State space model

lecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).pptlecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).pptHebaEng
 
Impulse response and step response.ppt
Impulse response and step response.pptImpulse response and step response.ppt
Impulse response and step response.pptSameerParmar14
 
Ss important questions
Ss important questionsSs important questions
Ss important questionsSowji Laddu
 
Chapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.pptChapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.pptkhinmuyaraye
 
The feedback-control-for-distributed-systems
The feedback-control-for-distributed-systemsThe feedback-control-for-distributed-systems
The feedback-control-for-distributed-systemsCemal Ardil
 
Eece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformEece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformSandilya Sridhara
 
Julio Bravo's Master Graduation Project
Julio Bravo's Master Graduation ProjectJulio Bravo's Master Graduation Project
Julio Bravo's Master Graduation ProjectJulio Bravo
 
lecture1 (9).ppt
lecture1 (9).pptlecture1 (9).ppt
lecture1 (9).pptHebaEng
 
Convolution representation impulse response
Convolution representation impulse responseConvolution representation impulse response
Convolution representation impulse responseuradiraghu92
 
On observer design methods for a
On observer design methods for aOn observer design methods for a
On observer design methods for acsandit
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Rediet Moges
 
Lecture6 Signal and Systems
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systemsbabak danyal
 

Similar to State space model (20)

Complex linear systems
Complex linear systemsComplex linear systems
Complex linear systems
 
lecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).pptlecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).ppt
 
Impulse response and step response.ppt
Impulse response and step response.pptImpulse response and step response.ppt
Impulse response and step response.ppt
 
Ss important questions
Ss important questionsSs important questions
Ss important questions
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Chapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.pptChapter_3_State_Variable_Models.ppt
Chapter_3_State_Variable_Models.ppt
 
The feedback-control-for-distributed-systems
The feedback-control-for-distributed-systemsThe feedback-control-for-distributed-systems
The feedback-control-for-distributed-systems
 
Eece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transformEece 301 note set 14 fourier transform
Eece 301 note set 14 fourier transform
 
Julio Bravo's Master Graduation Project
Julio Bravo's Master Graduation ProjectJulio Bravo's Master Graduation Project
Julio Bravo's Master Graduation Project
 
lecture1 (9).ppt
lecture1 (9).pptlecture1 (9).ppt
lecture1 (9).ppt
 
Digital Signal Processing Assignment Help
Digital Signal Processing Assignment HelpDigital Signal Processing Assignment Help
Digital Signal Processing Assignment Help
 
Convolution representation impulse response
Convolution representation impulse responseConvolution representation impulse response
Convolution representation impulse response
 
Lec1 01
Lec1 01Lec1 01
Lec1 01
 
On observer design methods for a
On observer design methods for aOn observer design methods for a
On observer design methods for a
 
Online Signals and Systems Assignment Help
Online Signals and Systems Assignment HelpOnline Signals and Systems Assignment Help
Online Signals and Systems Assignment Help
 
03 dynamic.system.
03 dynamic.system.03 dynamic.system.
03 dynamic.system.
 
P73
P73P73
P73
 
Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03Digital Signal Processing[ECEG-3171]-Ch1_L03
Digital Signal Processing[ECEG-3171]-Ch1_L03
 
Lcs2
Lcs2Lcs2
Lcs2
 
Lecture6 Signal and Systems
Lecture6 Signal and SystemsLecture6 Signal and Systems
Lecture6 Signal and Systems
 

More from gayathri venkataramani (13)

Tp.pptx
Tp.pptxTp.pptx
Tp.pptx
 
prananath_autonomous_naac_principal_presentation.pptx
prananath_autonomous_naac_principal_presentation.pptxprananath_autonomous_naac_principal_presentation.pptx
prananath_autonomous_naac_principal_presentation.pptx
 
LOR-1.pdf
LOR-1.pdfLOR-1.pdf
LOR-1.pdf
 
dowry_prohibition.pdf
dowry_prohibition.pdfdowry_prohibition.pdf
dowry_prohibition.pdf
 
Women_s-Empowerment-Principles-WEPs.pptx
Women_s-Empowerment-Principles-WEPs.pptxWomen_s-Empowerment-Principles-WEPs.pptx
Women_s-Empowerment-Principles-WEPs.pptx
 
Global-Peace-Index-2021.pptx
Global-Peace-Index-2021.pptxGlobal-Peace-Index-2021.pptx
Global-Peace-Index-2021.pptx
 
EEE.pptx
EEE.pptxEEE.pptx
EEE.pptx
 
Atherosclerosis cardiac markers.pdf
Atherosclerosis cardiac markers.pdfAtherosclerosis cardiac markers.pdf
Atherosclerosis cardiac markers.pdf
 
Entrepreneurship (2).ppt
Entrepreneurship (2).pptEntrepreneurship (2).ppt
Entrepreneurship (2).ppt
 
Mee2022 power plant-engineering-th_1.2_47_mee2022 (1)
Mee2022 power plant-engineering-th_1.2_47_mee2022 (1)Mee2022 power plant-engineering-th_1.2_47_mee2022 (1)
Mee2022 power plant-engineering-th_1.2_47_mee2022 (1)
 
Mcq pp
Mcq ppMcq pp
Mcq pp
 
3439 2011 exergeticanalysisofsolardryingsystems-nr
3439 2011 exergeticanalysisofsolardryingsystems-nr3439 2011 exergeticanalysisofsolardryingsystems-nr
3439 2011 exergeticanalysisofsolardryingsystems-nr
 
Sd ppt
Sd pptSd ppt
Sd ppt
 

Recently uploaded

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 

State space model

  • 1. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Module 04 Linear Time-Varying Systems Ahmad F. Taha EE 5143: Linear Systems and Control Email: ahmad.taha@utsa.edu Webpage: http://engineering.utsa.edu/˜taha September 26, 2017 ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 1 / 26
  • 2. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Introduction to State Transition Matrix (STM) For the linear autonomous system ẋ(t) = Ax(t), x(t0) = x0, t ≥ 0 the state solution is x(t) = eA(t−t0) x0 Define the state transition matrix (STM): φ(t, t0) = eA(t−t0) – STM (φ(t, t0)) propagates an initial state along the LTI solution t time forward. Note that: φ(t1 + t2, t0) = φ(t1, t0)φ(t2, t0) = φ(t2, t0)φ(t1, t0), ∀t1, t2 ≥ 0 In general, for an linear time varying system, ẋ(t) = A(t)x(t) + B(t)u(t), x(t0) = x0, the state solution is given in terms of the STM: x(t) = Φ(t, t0)x(t0) + Z t t0 Φ(t, τ)B(τ)u(τ)dτ ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 2 / 26
  • 3. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Properties of the STM For the linear autonomous system ẋ(t) = Ax(t), x(t0) = x0, t ≥ 0 the STM is: φ(t, t0) = eA(t−t0) 1 φ(t0, t0) = φ(t, t) = I 2 φ−1 (t1, t2) = φ(t2, t1) 3 φ(t1, t2) = φ(t1, t0)φ(t0, t2) 4 d dt (φ(t, t0)) = Aφ(t, t0) Proofs: ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 3 / 26
  • 4. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Solution Space and System Modes Solution space X of the LTI system ẋ(t) = Ax(t) is the set of all its solutions: X := {x(t), t ≥ 0 | ẋ = Ax} X is a vector space Dimension of X is n System modes: A mode of the LTI system ẋ = Ax is its solution from an eigenvector of A: x(t) = eAt vi = eλi t vi This is one property of the matrix exponential (see Module 3) The n (possibly repeated) modes form a basis of the solution space X ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 4 / 26
  • 5. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Decomposition of State Solution Any state solution for an autonomous system can be written as a linear combination of system modes, assuming that A is diagonalizable This means that the solution space X can be formed by these linear combinations A = TDT−1 is assumed to be diagonalizable Assume that we start from x0 = TT−1 x0 = x0 This means that we start from a linear combinations of vi , i = 1, . . . , n since x0 = TT−1 x0 = n X i=1 (x> 0 wi )vi = n X i=1 αi vi where wi ’s are the rows of the T−1 matrix (or the left evectors) Given that construction, we can see that the solution x(t) is a LC of the modes eλi t vi ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 5 / 26
  • 6. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Changing Coordinates Changing of coordinates of an LTI system: basically means we’re scaling the coordinates in a different way Assume that T ∈ Rn×n is a nonsingular transformation matrix Define x̃ = T−1 x. Recall that ẋ = Ax + Bu, then: ˙ x̃ = (T−1 AT)x̃ + T−1 Bu = Ãx̃ + B̃u with initial conditions x̃(0) = T−1 x(0) Remember the diagonal canonical form? We can get to it if the transformation T is the matrix containing the eigenvectors of A What if the matrix is not diagonlizable? Well, we can still write A = TJT−1 , which means that à = J is the new state-space matrix via the eigenvector transformation In fact, you can show that if A = TJT−1 with j Jordan blocks (i.e., J = diag(J1, J2, . . . , Jj ), then after the transformation x̃ = T−1 x, the LTI system becomes decoupled: ˙ x̃1 = J1x̃1, ˙ x̃2 = J2x̃2, . . . , ˙ x̃j = Jj x̃j . ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 6 / 26
  • 7. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems STM of LTV Systems In the previous module, we learned how to compute the state and output solution We assumed that the system is time invariant, i.e., ẋ(t) = Ax(t) + Bu(t) What if the system is time varying: ẋ(t) = A(t)x(t) + B(t)u(t), y(t) = C(t)x(t) + D(t)u(t) (∗) How can we compute x(t) and y(t)? That relies on finding the STM of the LTV system (∗) To do so, we have to find the exponential of a time-varying matrix ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 7 / 26
  • 8. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems STM of LTV Systems — 2 Theorem — STM of ẋ(t) = A(t)x(t) The STM of ẋ(t) = A(t)x(t) + B(t)u(t) is given by φ(t, t0) = exp Z t t0 A(q)dq if the following conditions are satisfied: 1 A(t) has piecewise continuous entries for all t, t0 a 2 A(t) commutes with its integral M(t, t0) = R t t0 A(q)dq, i.e., A(t)M(t, t0) = M(t, t0)A(t) aA function is piecewise continuous if: (a) it is defined throughout that interval, (b) its functions are continuous on that interval, and (c) there is no discontinuity at the endpoints of the defined interval. This theorem is very important, but can be very difficult to assess Consider a large system with TV A(t). Then, numerical integration needs to be performed the check the conditions ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 8 / 26
  • 9. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems STM of LTV Systems — 3 Given this analytical challenge, a natural question arises What are easily testable conditions that are sufficient for A(t) to commute with M(t, t0)? The following theorem investigates this question Theorem — STM Testing Conditions A(t) and M(t, t0) commute if any of the following conditions hold: 1 A(t) = A is a constant matrix 2 A(t) = β(t)A where β(·) : R → R is a scalar function and A is a constant matrix 3 A(t) = Pm i=1 βi (t)Ai where βi (·) : R → R are all scalar functions and Ai ’s are all constant matrices that commute with each other, i.e., Ai Aj = Aj Ai , ∀i, j ∈ {1, 2, . . . , m} 4 There exists a factorization A(t) = TD(t)T−1 where D(t) = diag(λ1(t), . . . , λn(t)) ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 9 / 26
  • 10. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Example 1 A(t) = α̇(t) a −a a −a What is the state transition matrix? Solution: notice that A(t) fits with the second characterization, hence A(t) and M(t, t0) commute (assume that α(t) is continuous differentiable function) Note that A is nilpotent of order 2 Solution: φ(t, t0) = exp Z t t0 A(q)dq = I + a −a a −a (α(t) − α(t0)) ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 10 / 26
  • 11. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Example 2 A(t) = ȧ(t) ḃ(t) ḃ(t) ȧ(t) , find the STM Note that A(t) = ȧ(t)I + ḃ(t) 0 1 1 0 We can apply the third case to obtain: φ(t, t0) = exp Z t t0 A(q)dq = ea(t)−a(t0) exp 0 b(t) − b(t0) b(t) − b(t0) 0 Recall that if A2 = 0 b b 0 ⇒ eA2t = cosh(bt) sinh(bt) sinh(bt) cosh(bt) Hence, φ(t, t0) = ea(t)−a(t0) cosh(b(t) − b(t0)) sinh(b(t) − b(t0)) sinh(b(t) − b(t0)) cosh(b(t) − b(t0)) ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 11 / 26
  • 12. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Overall Solution So, given that we have the state transition matrix, how can we find the overall solution of the LTV system? The answer is simple: x(t) = φ(t, t0)x(t0) + Z t t0 φ(t, τ)B(τ)u(τ)dτ ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 12 / 26
  • 13. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems More Examples on STM Computations Find the state transition matrix of A(t) =   sin(t) cos(t) β 0 sin(t) cos(t) 0 0 sin(t)   . ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 13 / 26
  • 14. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Intro to Discretization We want to discretize and transform this dynamical system ẋ(t) = Ax(t) + Bu(t) y(t) = Cx(t) + Du(t) to x(k + 1) = Ãx(k) + B̃u(k) y(k) = C̃x(k) + D̃u(k) Why do we need that? Because if you want to use a computer to compute numerical solutions to the ODE, you’ll have to give the computer a language it understands Also, many dynamical systems are naturally discrete, not continuous, i.e., sampling doesn’t happen continuously ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 14 / 26
  • 15. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems What Computers Understand What is zero order hold? It’s basically the model of the signal reconstruction of the digital to analog converter (DAC): uZOH(t) = ∞ X k=−∞ u(k) · rect t − T/2 − kT T ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 15 / 26
  • 16. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Discretization Errors ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 16 / 26
  • 17. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Discretization — 1 1 Use the derivative rule: ẋ(t) = lim T→0 x(t + T) − x(t) T 2 You can use this approximation: x(t + T) − x(t) T = Ax(t)+Bu(t) ⇒ x(t+T) = x(t)+ATx(t)+BTu(t) 3 Hence, x(t + T) = (I + AT)x(t) + BTu(t) 4 Now, if we compute x(t) and y(t) only at t = kT for k = 0, 1, . . . , then the dynamical system equation for the discretized, approximate system is: x((k + 1)T) = (I + AT) | {z } Ã x(kT) + BT |{z} B̃ u(kt) y(kT) = C̃x(kT) + D̃u(kT) ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 17 / 26
  • 18. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Discretization — 2 The aforementioned discretization is a valid discretization for a continuous time system This method is based on forward Euler differentiation method Easily computed by the computer, i.e., no need for matrix exponentials—just simple computations While this discretization is the easiest, it’s the least accurate Solution: a different discretization method ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 18 / 26
  • 19. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Another Discretization Method — 1 Recall that if the input u(t) is generated by a computer then followed by DAC, then u(t) will be piecewise constant: u(t) = u(kT) =: u(k) for kT ≤ t ≤ (k+1)T, k = 0, 1, . . . , kf Note that this input only changes values at discrete time instants Recall the solution to the state-equation: x(t) = eAt x(0) + Z t 0 eA(t−τ) Bu(τ)dτ Setting t = KT in the previous equation, then we can write: x(k) := x(kT) = eAkT x(0) + Z kT 0 eA(kT−τ) Bu(τ)dτ x(k+1) := x((k+1)T) = eA(k+1)T x(0)+ Z (k+1)T 0 eA((k+1)T−τ) Bu(τ)dτ ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 19 / 26
  • 20. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Another Discretization Method — 2 x(k +1) := x((k +1)T) = eA(k+1)T x(0)+ Z (k+1)T 0 eA((k+1)T−τ) Bu(τ)dτ Note that the above equation can be written as: x(k + 1) = eAT eAkT x(0) + Z kT 0 eA(kT−τ) Bu(τ)dτ ! + Z (k+1)T kT eA(kT+T−τ) Bu(τ)dτ Recall that we’re assuming that: u(t) = u(kT) =: u(k) for kT ≤ t ≤ (k+1)T, k = 0, 1, . . . , kf i.e., the input is constant between two sampling instances Look at x(k) and let α = kT + T − τ, then: x(k + 1) = eAT x(k) + Z T 0 eAα dα ! Bu(k) ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 20 / 26
  • 21. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Another Discretization Method — 3 x(k + 1) = eAT x(k) + Z T 0 eAα dα ! Bu(k) Hence, the discretized system with sampling time-period T can be written as: x(k + 1) = Ãx(k) + B̃u(k) y(k) = C̃x(k) + D̃u(k) where à = eAT , B̃ = Z T 0 eAα dα ! B, C̃ = C, D̃ = D Note that there is no approximation in this solution We only assumed that u(k) is piecewise constant between the two sampling instances It’s easy to compute the new discretized SS matrices (besides B̃) ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 21 / 26
  • 22. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Another Discretization Method — 4 To compute B̃, you can simply evaluate the formula: B̃ = Z T 0 eAα dα ! B = Z T 0 I + Aα + 1 2 A2 α2 + . . . dα ! B Which can be evaluated: B̃ = TI + 1 2 T2 A + 1 3 T3 A2 + . . . B = A−1 TA + 1 2 T2 A2 + 1 3 T3 A3 + . . . B = A−1 I + TA + 1 2 T2 A2 + 1 3 T3 A3 + . . . − I B ⇒ B̃ = A−1 (Ã − I)B This result is only valid for nonsingular A This formula helps in avoiding infinite series You can also use MATLAB’s c2d(A,B,...) command ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 22 / 26
  • 23. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Examples Discretize the following CT-LTI system: ẋ(t) = −1 1 0 2 x(t) + 2 0 0 4 u(t) where the controller’s sampling time is T = 0.1 sec. We can try the three approaches we learned: 1 Approach 1: Ã = I + AT = 0.9 0.1 0 1.2 , B̃ = BT = 0.2 0 0 0.4 2 Approach 2: Ã = eAT = e−T 1 3 (e2T − e−T ) 0 e2T = 0.9048 0.1055 0 1.2214 B̃ = Z T 0 eAα dα ! B = int(expm(A*h),h,0,T)*B = 0.1903 0.0207 0 0.4428 ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 23 / 26
  • 24. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Examples (Cont’d) Approach 3: Ã = eAT = e−T 1 3 (e2T − e−T ) 0 e2T = 0.9048 0.1055 0 1.2214 B̃ = A−1 (Ã − I)B = 0.1903 0.0207 0 0.4428 What do we notice? What are some preliminary conclusions? ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 24 / 26
  • 25. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Remarks There’s plenty of other discretization methods in the literature This question has no specific golden answer It often depends on the properties of the system Basically the sampling time period (how often your control is fixed or changing) The singularity of the A matrix also plays an important role ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 25 / 26
  • 26. Introduction to LTV Systems Computation of the State Transition Matrix Discretization of Continuous Time Systems Questions And Suggestions? Thank You! Please visit engineering.utsa.edu/˜taha IFF you want to know more , ©Ahmad F. Taha Module 04 — Linear Time-Varying Systems 26 / 26