next up previous
Next: Convolution Method for calculating Up: Solution of difference equations Previous: Complete solution of a

The State-Space Method of solving DE's

You may recall from the study of differential equations governing continuous systems that a linear Nth order differential equation can be decomposed in to a set of N first order differential equations. The state-space method (in S&K called the state-space model) is the discrete systems, difference equation equivalent.

Though this method is capable of dealing with much more complicated problems we will restrict our discussion (as in S&K Chap 7) to the solution of a single Nth order DE with no delays in the input :

displaymath473

For convenience we define a set of state variables (the state vector) :

displaymath474

So the tex2html_wrap_inline501 represent previous output states which would be known. We want to advance one step and compute :

displaymath475

The state equations are a set of first-order DE's in the tex2html_wrap_inline503 :

displaymath476

displaymath477

etc

displaymath478

displaymath479

Put this in matrix form for computational purposes :
Earliest at the top

displaymath160

Latest at bottom

Then reading off the bottom value tex2html_wrap_inline505 :

displaymath480

This is normally calculated using the MATLAB function dlsim .

Example - use of dlsim

Find the response of a system described by the third-order DE :

displaymath438

for tex2html_wrap_inline507 with inputs x(n)=u(n) and initial conditions y(-3)=-3 , y(-2)=-2 , y(-1)=-1

MATLAB - use dlsim with N=3.

displaymath184

displaymath190

displaymath482

displaymath483

displaymath198

displaymath207



Keith Jones
Mon Oct 26 11:49:50 EST 1998