State Space Form: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 42: | Line 42: | ||
Or, more generally,<br> |
Or, more generally,<br> |
||
<math>\mathbf{\dot x} = \mathbf{Ax+B}f</math><br> |
<math>\mathbf{\dot x} = \mathbf{Ax+B}f</math><br> |
||
Where the bold faced x is a matrix such that:<br> |
|||
<math>\mathbf{x}= |
|||
\begin{bmatrix} |
|||
x1 \\ |
|||
x2 \\ |
|||
\end{bmatrix}</math><br> |
|||
This is called the state space representation of the differential equation. This can be quite useful because the entire description of the differential equation is available in the matrix, and is easily manipulated using linear algebra. |
This is called the state space representation of the differential equation. This can be quite useful because the entire description of the differential equation is available in the matrix, and is easily manipulated using linear algebra. |
||
-Example- |
-Example- |
||
For the circuit below, find a set of state variable equations (there are several ways to do this, I will choose the one I feel is most intuitive.) |
For the circuit below, find a set of state variable equations (there are several ways to do this, I will choose the one I feel is most intuitive.)<br> |
||
[[Image:Circuit1.jpg]] |
[[Image:Circuit1.jpg]] |
||
Line 91: | Line 97: | ||
\end{bmatrix}</math><br> |
\end{bmatrix}</math><br> |
||
So then, since <math>Vin</math> is our forcing function <math>f</math>:<br> |
So then, since <math>Vin</math> is our forcing function <math>f</math>:<br> |
||
<math>\mathbf{A}= |
<math>\mathbf{A}=-\frac{R}{L} |
||
\begin{bmatrix} |
\begin{bmatrix} |
||
1 & 1 \\ |
1 & 1 \\ |
||
1& 2 \\ |
1& 2 \\ |
||
\end{bmatrix}</math> |
\end{bmatrix}</math> |
||
,<math>\mathbf{B}= |
,<math>\mathbf{B}=\frac{1}{L} |
||
\begin{bmatrix} |
\begin{bmatrix} |
||
1 \\ |
1 \\ |
||
1 \\ |
1 \\ |
||
\end{bmatrix}</math><br> |
\end{bmatrix}</math><br> |
||
We now have our differential equations in state space form. |
We now have our differential equations in state space form.<br> |
||
Now, these equations aren't much use by themselves, we need to use them to find the output of the system y(t). y(t) in state space form is expressed as follows:<br> |
|||
<math>y(t)=\mathbf{C}\mathbf{x}+\mathbf{D}f(t)</math><br> |
|||
Lets suppose that y(t) is the voltage across the inductor that has i3 passing through it. That means that:<br> |
|||
<math>y(t)=L\frac{di_{3}}{dt}</math><br> |
|||
From this we can see that:<br> |
|||
<math>y(t)= |
|||
\begin{bmatrix} |
|||
0 \ L \\ |
|||
\end{bmatrix} |
|||
\begin{bmatrix} |
|||
x1 \\ |
|||
x2 \\ |
|||
\end{bmatrix}+ |
|||
\begin{bmatrix} |
|||
0 \\ |
|||
\end{bmatrix}f(t) |
|||
</math><br> |
|||
So we can see that:<br> |
|||
<math>\mathbf{C}= |
|||
\begin{bmatrix} |
|||
0 \ L \\ |
|||
\end{bmatrix}</math><br> |
|||
and<br> |
|||
<math>\mathbf{D}=[0]</math>.<br> |
|||
I'll be adding more on how to use state space form to solve these equations as I have time. |
Latest revision as of 13:49, 8 March 2011
In my Signals and Systems II class at University of Idaho, we are learning about the state space form of representing a solution to a LTI differential equation. I'll add more here soon.
Consider the differential equation
or
The state of this equation can be described using what is called state space form. State space form gives the blah blah more here.
let
let
so
We can now re-write the equation above to be:
so
and from the definition above
We can take this and put it into matrix form:
Or, more generally,
Where the bold faced x is a matrix such that:
This is called the state space representation of the differential equation. This can be quite useful because the entire description of the differential equation is available in the matrix, and is easily manipulated using linear algebra.
-Example-
For the circuit below, find a set of state variable equations (there are several ways to do this, I will choose the one I feel is most intuitive.)
Start by using loop (also known as mesh or KVL) analysis.
Loop 1:
Loop 2:
Lets let:
and
So, . Substituting into the equations above, we get:
and
Where is the derivative of .
Solving these equations for and We find:
and
Now we can write these equations in stat space matrix form:
Where
and
So then, since is our forcing function :
,
We now have our differential equations in state space form.
Now, these equations aren't much use by themselves, we need to use them to find the output of the system y(t). y(t) in state space form is expressed as follows:
Lets suppose that y(t) is the voltage across the inductor that has i3 passing through it. That means that:
From this we can see that:
So we can see that:
and
.
I'll be adding more on how to use state space form to solve these equations as I have time.