Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 8 min read

Support

General Time Variant Solution

The state-space equations can be solved for time-variant systems, but the solution is significantly more complicated than the time-invariant case. Our time-variant state equation is given as follows:

{x}^{′} ( t ) = A ( t ) x ( t ) + B ( t ) u ( t )

We can say that the general solution to time-variant state-equation is defined as:

[Time-Variant General Solution]

x ( t ) = ϕ ( t , {t}_{0} ) x ( {t}_{0} ) + {∫}_{{t}_{0}}^{t} ϕ ( t , τ ) B ( τ ) u ( τ ) d τ

Matrix Dimensions:

A: p × p

B: p × q

C: r × p

D: r × q

The function ϕ is called the state-transition matrix, because it (like the matrix exponential from the time-invariant case) controls the change for states in the state equation. However, unlike the time-invariant case, we cannot define this as a simple exponential. In fact, ϕ can't be defined in general, because it will actually be a different function for every system. However, the state-transition matrix does follow some basic properties that we can use to determine the state-transition matrix.

In a time-variant system, the general solution is obtained when the state-transition matrix is determined. For that reason, the first thing (and the most important thing) that we need to do here is find that matrix. We will discuss the solution to that matrix below.

State Transition Matrix

Note:
The state transition matrix ϕ is a matrix function of two variables (we will say t and τ). Once the form of the matrix is solved, we will plug in the initial time, t0 in place of the variable τ. Because of the nature of this matrix, and the properties that it must satisfy, this matrix typically is composed of exponential or sinusoidal functions. The exact form of the state-transition matrix is dependent on the system itself, and the form of the system's differential equation. There is no single "template solution" for this matrix.

The state transition matrix ϕ is not completely unknown, it must always satisfy the following relationships:

\frac{∂ ϕ ( t , {t}_{0} )}{∂ t} = A ( t ) ϕ ( t , {t}_{0} )

ϕ ( τ , τ ) = I

And ϕ also must have the following properties:

1.ϕ ( {t}_{2} , {t}_{1} ) ϕ ( {t}_{1} , {t}_{0} ) = ϕ ( {t}_{2} , {t}_{0} )
2.{ϕ}^{− 1} ( t , τ ) = ϕ ( τ , t )
3.{ϕ}^{− 1} ( t , τ ) ϕ ( t , τ ) = I
4.\frac{d ϕ ( {t}_{0} , {t}_{0} )}{d t} = A ( t )

If the system is time-invariant, we can define ϕ as:

ϕ ( t , {t}_{0} ) = {e}^{A ( t − {t}_{0} )}

The reader can verify that this solution for a time-invariant system satisfies all the properties listed above. However, in the time-variant case, there are many different functions that may satisfy these requirements, and the solution is dependent on the structure of the system. The state-transition matrix must be determined before analysis on the time-varying solution can continue. We will discuss some of the methods for determining this matrix below.

Time-Variant, Zero Input

As the most basic case, we will consider the case of a system with zero input. If the system has no input, then the state equation is given as:

{x}^{′} ( t ) = A ( t ) x ( t )

And we are interested in the response of this system in the time interval T = (a, b). The first thing we want to do in this case is find a fundamental matrix of the above equation. The fundamental matrix is related

Fundamental Matrix

Here, x is an n × 1 vector, and A is an n × n matrix.

Given the equation:

{x}^{′} ( t ) = A ( t ) x ( t )

The solutions to this equation form an n-dimensional vector space in the interval T = (a, b). Any set of n linearly-independent solutions {x1, x2, ..., xn} to the equation above is called a fundamental set of solutions.

Readers who have a background in Linear Algebra may recognize that the fundamental set is a basis set for the solution space. Any basis set that spans the entire solution space is a valid fundamental set.

A fundamental matrix FM is formed by creating a matrix out of the n fundamental vectors. We will denote the fundamental matrix with a script capital X:

𝒳 = [ \begin{matrix}{x}_{1} & {x}_{2} & ⋯ & {x}_{n}\end{matrix} ]

The fundamental matrix will satisfy the state equation:

{𝒳}^{′} ( t ) = A ( t ) 𝒳 ( t )

Also, any matrix that solves this equation can be a fundamental matrix if and only if the determinant of the matrix is non-zero for all time t in the interval T. The determinant must be non-zero, because we are going to use the inverse of the fundamental matrix to solve for the state-transition matrix.

State Transition Matrix

Once we have the fundamental matrix of a system, we can use it to find the state transition matrix of the system:

ϕ ( t , {t}_{0} ) = 𝒳 ( t ) {𝒳}^{− 1} ( {t}_{0} )

The inverse of the fundamental matrix exists, because we specify in the definition above that it must have a non-zero determinant, and therefore must be non-singular. The reader should note that this is only one possible method for determining the state transition matrix, and we will discuss other methods below.

Example: 2-Dimensional System

Given the following fundamental matrix, Find the state-transition matrix.

𝒳 ( t ) = [ \begin{matrix}{e}^{− t} & \frac{1}{2} {e}^{t} \\ 0 & {e}^{− t}\end{matrix} ]

the first task is to find the inverse of the fundamental matrix. Because the fundamental matrix is a 2 × 2 matrix, the inverse can be given easily through a common formula:

{𝒳}^{− 1} ( t ) = \frac{[ \begin{matrix}{e}^{− t} & − \frac{1}{2} {e}^{t} \\ 0 & {e}^{− t}\end{matrix} ]}{{e}^{− 2 t}}= [ \begin{matrix}{e}^{t} & − \frac{1}{2} \ {e}^{3 t} \\ 0 & {e}^{t}\end{matrix} ]

The state-transition matrix is given by:

ϕ ( t , {t}_{0} ) = 𝒳 ( t ) {𝒳}^{− 1} ( {t}_{0} ) = [ \begin{matrix}{e}^{− t} & − \frac{1}{2} {e}^{t} \\ 0 & {e}^{− t}\end{matrix} ] [ \begin{matrix}{e}^{{t}_{0}} & \frac{1}{2} \ {e}^{3 {t}_{0}} \\ 0 & {e}^{{t}_{0}}\end{matrix} ]

ϕ ( t , {t}_{0} ) = [ \begin{matrix}{e}^{− t + {t}_{0}} & \frac{1}{2} ( {e}^{t + {t}_{0}} − {e}^{− t + 3 {t}_{0}} ) \\ 0 & {e}^{− t + {t}_{0}}\end{matrix} ]

Other Methods

There are other methods for finding the state transition matrix besides having to find the fundamental matrix.

Method 1
If A(t) is triangular (upper or lower triangular), the state transition matrix can be determined by sequentially integrating the individual rows of the state equation.
Method 2
If for every τ and t, the state matrix commutes as follows:
A ( t ) [ {∫}_{τ}^{t} A ( ζ ) d ζ ] = [ {∫}_{τ}^{t} A ( ζ ) d ζ ] A ( t )
Then the state-transition matrix can be given as:
ϕ ( t , τ ) = {e}^{{∫}_{τ}^{t} A ( ζ ) d ζ}
The state transition matrix will commute as described above if any of the following conditions are true:

  • A is a constant matrix (time-invariant)
  • A is a diagonal matrix
  • If A = \overset{¯}{A} f ( t ), where \overset{¯}{A} is a constant matrix, and f(t) is a scalar-valued function (not a matrix).

If none of the above conditions are true, then you must use method 3.
Method 3
If A(t) can be decomposed as the following sum:
A ( t ) = {∑}_{i = 1}^{n} {M}_{i} {f}_{i} ( t )
Where Mi is a constant matrix such that MiMj = MjMi, and fi is a scalar-valued function. If A(t) can be decomposed in this way, then the state-transition matrix can be given as:
ϕ ( t , τ ) = {∏}_{i = 1}^{n} {e}^{{M}_{i} {∫}_{τ}^{t} {f}_{i} ( θ ) d θ}
It will be left as an exercise for the reader to prove that if A(t) is time-invariant, that the equation in method 2 above will reduce to the state-transition matrix {e}^{A ( t − τ )}.

Example: Using Method 3

Use method 3, above, to compute the state-transition matrix for the system if the system matrix A is given by:

A = [ \begin{matrix}t & 1 \\ − 1 & t\end{matrix} ]

We can decompose this matrix as follows:

A = [ \begin{matrix}1 & 0 \\ 0 & 1\end{matrix} ] t + [ \begin{matrix}0 & 1 \\ − 1 & 0\end{matrix} ]

Where f1(t) = t, and f2(t) = 1. Using the formula described above gives us:

ϕ ( t , τ ) = {e}^{{M}_{1} {∫}_{τ}^{t} θ d θ} {e}^{{M}_{2} {∫}_{τ}^{t} d θ}

Solving the two integrations gives us:

ϕ ( t , τ ) = {e}^{\frac{1}{2} [ \begin{matrix}( {t}^{2} − {τ}^{2} ) & 0 \\ 0 & ( {t}^{2} − {τ}^{2} )\end{matrix} ]} {e}^{[ \begin{matrix}0 & t − τ \\ − t + τ & 0\end{matrix} ]}

The first term is a diagonal matrix, and the solution to that matrix function is all the individual elements of the matrix raised as an exponent of e. The second term can be decomposed as:

{e}^{[ \begin{matrix}0 & t − τ \\ − t + τ & 0\end{matrix} ]} = {e}^{[ \begin{matrix}0 & 1 \\ − 1 & 0\end{matrix} ] ( t − τ )} = [ \begin{matrix}cos ⁡ ( t − τ ) & sin ⁡ ( t − τ ) \\ − sin ⁡ ( t − τ ) & cos ⁡ ( t − τ )\end{matrix} ]

The final solution is given as:

ϕ ( t , τ ) =[ \begin{matrix}{e}^{\frac{1}{2} ( {t}^{2} − {τ}^{2} )} & 0 \\ 0 & {e}^{\frac{1}{2} ( {t}^{2} − {τ}^{2} )}\end{matrix} ] [ \begin{matrix}cos ⁡ ( t − τ ) & sin ⁡ ( t − τ ) \\ − sin ⁡ ( t − τ ) & cos ⁡ ( t − τ )\end{matrix} ]= [ \begin{matrix}{e}^{\frac{1}{2} ( {t}^{2} − {τ}^{2} )} cos ⁡ ( t − τ ) & {e}^{\frac{1}{2} ( {t}^{2} − {τ}^{2} )} sin ⁡ ( t − τ ) \\ − {e}^{\frac{1}{2} ( {t}^{2} − {τ}^{2} )} sin ⁡ ( t − τ ) & {e}^{\frac{1}{2} ( {t}^{2} − {τ}^{2} )} cos ⁡ ( t − τ )\end{matrix} ]

Time-Variant, Non-zero Input

If the input to the system is not zero, it turns out that all the analysis that we performed above still holds. We can still construct the fundamental matrix, and we can still represent the system solution in terms of the state transition matrix ϕ.

We can show that the general solution to the state-space equations is actually the solution:

x ( t ) = ϕ ( t , {t}_{0} ) x ( {t}_{0} ) + {∫}_{{t}_{0}}^{t} ϕ ( t , τ ) B ( τ ) u ( τ ) d τ

Where this page came from

This page was imported from Wikibooks. From “Control Systems” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Comments

Spinner Logo

Next in Control Systems

CC BY-SA 4.0
Notice that we set our start time t0 = kT, because we are only interested in the behavior of our system during a single sample period: $u ( t ) = u ( k T ) , k T ≤ t ≤ ( k + 1 ) T$ $x ( t ) = Φ ( t , k T ) x ( k T ) + {∫}_{k T}^{t} Φ ( t , τ ) B d τ u ( k T )$ We were able to remove u(kT) from the i
CC BY-SA 4.0
Non-square matrices cannot be analyzed using the methods below. The word "eigen" comes from German and means "own" as in "characteristic", so this chapter could also be called "Characteristic values and characteristic vectors". The terms "Eigenvalues" and "Eigenvectors" are most commonly used. Eigen
CC BY-SA 4.0
Notice that we know beforehand Aw and Bw, since we know both the form of the matrices and the coefficients of the equation (e.g. a linear ODE with constant coefficients or a transfer function). We can form ζw if we know these two matrices. We can then use this matrix to create our transformation mat
CC BY-SA 4.0
To represent multiple inputs we expand the input u(t) into a vector U(t) with the desired number of inputs. Likewise, to represent a system with multiple outputs, we expand y(t) into Y(t), which is a vector of all the outputs. For this method to work, the outputs must be linearly dependent on the in
CC BY-SA 4.0
The state-space representation, for instance, is preferable when it comes time to move the system design from the drawing board to a constructed physical device. For that reason, we call the process of converting a system from the Laplace representation to the state-space representation "realization
CC BY-SA 4.0
Consider the given second-order system: $T ( s ) = \frac{1}{{s}^{2} + 2 s + 1}$ We can include an arbitrary gain term, K in this system that will represent an amplification, or a power increase: $T ( s ) = K \frac{1}{{s}^{2} + 2 s + 1}$ In a state-space system, the gain term k can be inserted as fol