מצאתם טעות? תפתחו discussion! (צריך לפתוח משתמש, די באסה).
LSY1_004 Linear State-Space Equation
Impulse Response
The impulse response of a dynamic system is its output when presented with a brief input signal (unit impulse) - . More generally, an impulse response is the reaction of any dynamic system in response to some external change.
The impulse response from a simple audio system. Showing, from top to bottom, the original impulse, the response after high frequency boosting, and the response after low frequency boosting.
The output of a CLTI system is completely determined by the input and the system’s response to a unit impulse.
We can determine the system’s output if we know the system’s impulse response and the input .
In fact, we can show that by convolving the input with the impulse response of the system we get the system’s output :
Examples:
For the gain system , the impulse response is:
For the delay system , the impulse response is:
For the integrator system , the impulse response is:
For the finite-memory integrator , the impulse response is:
Causality via Impulse Responses
Theorem
A CLTI system with the impulse response is causal iff .
Proof:
The response reads at every as
The future term zeros out iff for all . i.e., for all , which is equivalent to saying .
Thus, cannot depend on for iff - the system is causal.
Stability via Impulse Responses
Theorem
A CLTI system with impulse response is BIBO stable iff . If the system is BIBO stable, then
Notes:
The mere decaying of might not be enough for the BIBO stability of . For example, if
𝟙𝟙
then for all
𝟙
and it is not bounded. Hence, this system is not BIBO stable (and indeed ).
2. The -stability is not easy to verify directly in terms of the impulse response (need frequency domain).
Linear State-Space Equation
In state-space linear systems we were to introduced to the CLTI state-space equation. In the case of SISO (single-input, single-output), we have the following first-order differential system:
Where .
This quadruple is called a state-space realization of the system.
Although we have shown the the solution of a linear set of differential equations defines a linear input/output system, we have not fully computed the solution of the system.
In fact, it can be shown that the solution of such system is:
Where we have a matrix exponential - . To show that this is the solution of the given ODE, we first need to go over what is a matrix exponential.
The Matrix Exponential
Definition:
The matrix exponential is defined as the infinite series
where .
It can be shown that the series in the definition converges for any matrix in the same way that the normal exponential is defined for any scalar .
We write instead of because of aliens.
These aliens refer to themselves as ‘electrical engineers’. They use to denote their precious little electrical current. Very confusing.
Some important identities derived from this definition are:
It won’t always be simple to calculate for any given using the definition. An easier way would be to diagonalize, and then use a special property of diagonalizable matrices:
which would simple entail the calculation of multiplying 3 matrices.
Another way would be to do it via Cayley-Hamilton:
where
The matrix is called the Vandermonde matrix. We won’t go about how the Cayley-Hamilton method is derived, but be assured, it has something to do with Cayley-Hamilton theorem.
Real Diagonalization of a Matrix with Complex Eigenvalues
In both cases we need to find the eigenvalues of . If it has only real-valued eigenvalues, we’re good - we already know how to approach such cases.
But, if there is a pair of complex eigenvalues , then we also have two complex conjugate eigenvectors where are real valued vectors.
We now show a special representation of the matrix called real diagonalization of a matrix with complex eigenvalues. We first define two linear combinations of our eigenvectors:
Defining
we get that
When this form of “diagonalizing” of the entire matrix , we get with either real eigenvalues or block of -s on the main diagonal:
mass-spring-damper system. The mass is connected to a spring with stiffness and a viscous damper with damping coefficient .
The input to this system is the force applied to the mass, and the output is the position of the mass.
Supposing zero spring and damper forces at , by Newton’s second law:
Introducing the vector allows to describe the system by state-space representation:
If :
We would like to find the impulse response of this system. Therefore, we need to look at : Eigenvalues of :
If , then : can be written as
and its matrix exponential is
Therefore, the impulse response is:
𝟙𝟙
If , we get , and the impulse response looks like
which we call this overdamping - If the damping coefficient is significantly larger than the spring stiffness, when we jerk the mass to the right (we give it an impulse), the mass will slowly return back to its original position.
If , we get and . Let , then the impulse response is
that looks like
which we call underdamping - when we jerk the mass to the right, the mass will oscillate back and forth.
If , then and
𝟙
look like
and is called critical damping - the boundary between overdamping and underdamping.
Transfer Function
A transfer function is a function that models the system’s output for each possible input.
Transfer Function to State Space
Physical realization
Given a system with following transfer function:
then its possible state-space realization is:
Canonical Realization
For the following ODE:
The state-space realization discussed above, known as the companion form, is:
Its space-state realization in observer form has
If on the right side of the equation there is an derivative of , that is there is a term where , we can write the same canonical realization as for the system with , and simple change .
Exercises
Question 1
Consider the matrix:
Part a
Find the diagonalizing transformation of (if the real form if it exists).
Solution:
First, calculate the characteristic polynomial:
Now we can calculate the eigenvectos:
For :
For :
For :
Hence, the diagonalizing transformation of :
And:
Part b
Calculate the matrix exponent using diagonalization.