State Space Form

From Class Wiki
Revision as of 15:10, 7 March 2011 by Wilspa (talk | contribs)
Jump to navigation Jump to search

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 d2ydt2+2xydt+3y=f(t)
or
y¨+2y˙+3y=f(t)
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 x1=y
let x2=y˙
so x˙2=y¨


We can now re-write the equation above to be:
x˙2+2x2+3x1=f(t)
so
x˙2=3x12x2+f(t)
and from the definition above
x˙1=x2


We can take this and put it into matrix form: [x˙1x˙2]=[0132][x1x2]+[01]f(t)
Or, more generally,
x˙=Ax+Bf
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:
Vin+i1*R+L*di2dt=0
Loop 2:
Vin+i1*R+i3*R+L*di3dt=0

Lets let:
x1=i2 and
x2=i3
So, i1=x1+x2. Substituting into the equations above, we get:
Vin+(x1+x2)R+Lx˙1=0 and
Vin+(x1+x2)R+x2R+Lx˙2=0
Where x˙1 is the derivative of x.

Solving these equations for x˙1 and x˙2 We find:
x˙1=RLx1RLx2+1LVin
and
x˙1=RLx12RLx2+1LVin
Now we can write these equations in stat space matrix form:
x˙=RL[1112]x+1L[11]Vin
Where
x=[x1x2]
and
x˙=[x˙1x˙2]
So then, since Vin is our forcing function f:
A=[1112] ,B=[11]
We now have our differential equations in state space form.
I'll be adding more on how to use state space form to solve these equations as I have time.