Using State Space Representation to Solve a System of ODEs

Hello,

I'm looking to set up a system of ODE's into a state space form so that I can run some numeric simulations. I simplified the equations to demonstrate the issue that I'm having. Consider the following set of ordinary differential equations

My initial though was to define a state vector as and the two equations are put into matrix form as

However, the matrix on the left hand side is singular and even after trying algebraic manipulations the simulations results aren't what would be expected.

If we introduce a new variable, call it y, and set it equal to , i.e. , then the above equations can be changed to

Defining a the following state vector we can easily see that the above can be written in matrix form as

The above formulation appears to yield the correct simulation results, and intuitively looks better (i.e. looks like a classic state space instead of derived first).

I'm looking for a solid mathematical reason to introduce the y variable...particularly since these equations will get more complicated, and determining the number of state variables needs to be more tractable than "Well...you can tell you need another equation". If anyone has any good material I can look at that discusses determining the number of state variables necessary (number should be unique, but actual states are not) or any explanations they'd be greatly appreciated.

Brad

Re: Using State Space Representation to Solve a System of ODEs

Hm... I guess a little clarification is that I'm looking for good references on deriving state space equations from a system of ODE's. My next step up in complexity of equations look something like this

and I currently have no tractable way to putting these into state space representation.

Re: Using State Space Representation to Solve a System of ODEs

I think your first equation is