State Models of Systems
Introduction
State Variables
You are at:  Basic Concepts - System Models  - State Models
Click here to return to the Table of Contents
Why Use State Models

        At this point you probably know how to represent systems with transfer functions and differential equations.  Both of those kinds of models - transfer functions and differential equations - are good ways to represent the relationship between the input and the output of a system.  Why can't we just stick with those kinds of models.  Here are some reasons.

        Any time you design systems, you may do a lot of linear analysis but there will always be nonlinearities.  Things like the following will happen.         If you have to deal with nonlinear systems - and you may not have any choice in the matter - you can't rely on the tried and true transfer functions and linear differential equations.  If you want to predict how a nonlinear system will behave - and sooner or later every system is nonlinear - you will have to have a way of computing how they behave.  And, if you want to compute behavior, the only algorithms available will require you represent your system with a state variable representation.  You're stuck, so you might as well just move on and start learning about state variables.


State Variables

        Despite the fact that you need to learn about state variables because you will need to deal with nonlinear systems, we are going to begin by getting a few state variable representations for linear systems.  As we go along, we will discuss state variable models.

        The first system is a first order linear system.  Here is the example.


Example - 1 - A First Order System
tdx(t)/dt + x(t) = Gdcu(t)

dx(t)/dt = - x(t)/t+ Gdcu(t)/t


        The example illustrates an important feature of state equations.  We have identified an important dynamic variable in the system above - the output - and manipulated things so that the derivative of that variable - the state - is on the left side of the equation and everything else is on the right hand side.  That's the first fact you will need to note about state equations         Now, let us consider a more complex system - one that is second order.  Let's look at a second example.

Example - 2 - A Second Order System
d2x/dt2 + 2zwndx/dt + wn2x = wn2Gdcu(t)


        Now, the technique above can be used to generate state equations for higher order systems, and they don't have to be linear.  If you have a nonlinear system described by a nonlinear differential equation, you can still use the technique above.

        You probably want to see an example of a nonlinear system, so here is an example of a system that is well known - the Van der Pol Oscillator.



Example - 3 - The Van der Pol Oscillator

        The Van der Pol oscillator is a second order system.  It is a second order system where the damping term is nonlinear.  Let's look at the state equations for a linear second order system again.  Here they are again.

The damping ratio, z, appears in only one place in the second state equation.  If a linear system is an oscillator the damping ratio would be zero.  Actually, to get the oscillations started the damping ratio should be negative so that the oscillations will grow.  In a purely linear system they would continue to grow forever.  Let's consider the idea of putting something in the damping term that makes the damping negative (so the oscillations grow at the start) when the states are small, but makes the damping become positive if the states are large.  Also, we won't have any input in the oscillator, so we will remove the input term.  Let's summarize what we are going to do.         The way this is done in the Van der Pol oscillator is to use state equations as shown below. The addition of the (1 - x12(t)) term modifies the damping, and if the damping ratio is negative - for growing oscillations - as the oscillations grow and x1(t) gets larger - the effective damping will become positive, preventing the oscillations from growing.

        Actually, if you go into the literature you will find that the damping term is represented slightly differently.  Here is the way you will find this system represented.

Here, the term - 2z (which is negative) as been replaced with a positive term, e.  In the simulation below you can experiment with this system (which has been simulated using the Euler Integration Algorithm).  The simulation shows a plot of x1 against x2 - a phase-plane plot.  Here is the simulation.

Do the following:



Problems
Links To Related Lessons Lessons on Getting Models From Data
Send us your comments on these lessons.