# Control System – State Space Analysis

In this post we will see the state variable model of a system. As compared to the transfer function approach , the state variable approach gives us the timely behaviour of internal variables of a model. This can be used to analyze both time-invariant and nonlinear systems as well.

Before we further proceed we should understand the difference between state-space analysis and transfer function.

In transfer function, it is assumed that the initial conditions of the system are zero(in many practical examples, the initial conditions are not equal to zero).

While making a state-space analysis , no such assumptions are necessary. It will be applicable even if the initial conditions are not zero. The state variable description is more general than the transfer function .

Concept of State , State variables, and State model :

What is meant by state?

It can be defined as a minimal set of variables(called as state variables) such that the knowledge of these variables at    together with the knowledge of inputs for   completely determines the behavior of the system for     .

State variables:

The smallest set of variables determines the state of dynamic system. For ‘n’ variables   ,

,    ……    are needed to completely describe the behavior of a dynamic system, together with initial state and inputs, then these set of ‘n’ variables are called asset of state variables. The state vector x(t) is the vector sum of all the state variables.

State vector :

If ‘n’ state variables are needed to completely describe the behavior of a given system, then these ‘n’ state variables can be considered to be n components of a vector x(t). Such a vector is called a state vector . It uniquely determines the system state x(t) for any time  t     .

State space:

The n dimensional space whose co-ordinate axis consists of the  axis ,  axis …..  axis is called a state space . Any state can be represented by a point in the state space. Consider a mechanical system , mass M is acted upon by a force F(t).(in this case we assume zero friction)

M = mass of body         F(t) = force

P(t) = displacement        v(t) =  velocity

Let the state variables be

• Displacement p(t)
• Velocity v(t)

Hence,         =    p(t)       and        =   v(t) ,

From physics we know,

F = M a

F = M      ,

Hence        =     ,

This we can now write in terms of state variable as:

=                           …….  (1.1)

Also     =                        ………… (1.2)

We now represent  above two equations in matrix form as :

+ F(t)  ,

In state variable theory, the input is defined as r(t), hence

F(t)  =   r(t)  ,

Above equation will be modified to give

+ r(t)  ,     …….   (1.3)

Now if the desired output is velocity then,

Y(t)  =  v(t)

In matrix form we get,

Y  =         ……….   (1.4)

Equations 1.3 and 1.4 are the state equations and the output equation.They can be written in the form as :

Ẋ  =    Ax +  r     =  state equation

Y =   x   =   output equation

Where,  A = matrix          x  =  vector

=  vector transpose          and   y  =  scalar value

State variable representation of control system:

State model:

Consider a system which is multiple input multiple output(MIMO)

Let, number of inputs = m

Number of state variables = n

Number of outputs = p

The n state variables are given by n first order differential equations as follows:

=    =  ( , ,……, ; , , …. )

=     =  ( , ,……, ; , , …. )

=  (,……, ; , , …. )               ……………. (1.5)

The n differential equation can be written in a vector notation as ,

=  f(x(t) , u(t))                    ………………   (1.6)

for a time varying system, t also becomes a parameter

=  f(x(t) , u(t), t)                            ……………….(1.7)

similarly the relationship between p outputs can be given as ,

( , ,……, ; , , …. )  ,

( , ,……, ; , , …. )  ,

Hence in general……

( , ,……, ; ,

, …. )       ……………….. (1.8)

The equations can be written in vector notation as ,

y(t)  = g( x(t) , u(t))                                          ………………………….  (1.9)

for time varying case,

y(t)  = g( x(t) , u(t), t)                                  …………………………. (1.10)

The vector notation being

State vector x(t) =                                      Input vector u(t)  =    ,

Output vector y(t)  =

Equation 1.5 is an expanded form of equation 1.6, and is called State equation for a linear time invariant case and equation 1.7 is the state equation for a linear time varying case. The state variables    , …….  from the n dimension space is called State space . The state vector ‘x’ for a particular value of    , …….  forms a point called state point in this state space. The trajectory traced by a state point from t =        to    t =  is called state trajectory.

Also equation  1.8 is an expanded form of the equation and is called output equation for a linear time-invariant case and equation 1.10 is for the linear time-varying case. The state and output equations together constitute the state model of a system.

State Model of Linear Systems :

For a special case of linear time invariant systems equation 1.5 becomes,

,

,

Thus,

,

Or

=           ………  (1.11)

i.e  (t)  =  A x(t) + B x(t)  ,

where A =   =  System matrix = (n x m ) matrix  ,

B =     =  Input matrix = (n x m) matrix  ,

X(t) = state vector = n 1

U(t) = input vector  =  m 1

Equation 1.11 is the state equation.

Output equation: it can be similarly derived as,

,

,

Thus,

,

Y(t) =  Cx(t)  +  D u(t)

Where C =        =  output matrix ( p x n)

D =         =  Transmission matrix ( p x m )   ,

Thus state model for a linear time invariant system is ,

(t) =  A x(t) + B x(t)

y(t) =  Cx(t)  +  D u(t)        …………..  (1.12)

The block diagram for equation 1.12 can be shown below as

Here we end our post, in our next post we will see the state space representation by state variables. So stay tuned for our next post in this series.