State Space Representation
State Space Representation
State Space Representation
• and all the initial conditions are 0 and for this particular mass-spring damper
system, the transfer function is
• What is state space representation?
• The basic idea behind the state space representation is to rewrite an nth order
ODE (Ordinary Differential Equation) as a set of n 1st order ODEs.
• To do that we define what are called state variables?
• For example, let us say in this mass-spring damper system, consider the
displacement x(t) and the speed of the mass ˙x (t ) as state variables of the mass
m.
• State variables are those variables whose knowledge at each and every instant of
time is sufficient to completely characterize the system.
• In this particular mass-spring damper system, the displacement of the mass and
the speed of the mass as the 2 state variables to characterize the system
• How to get the state space representation of the system?
• The first step is to select ‘n’ state variables because, in general, we are dealing
with an nth order system.
• The second step is to write ‘n’ 1st order ODEs, each one characterizing the time
evolution of the n state variables.
• We have n state variables. You essentially write down ‘n’ 1st order ODEs each one
characterizing the time evolution of each state variable.
• Here we have 2 state variables? Because, the value of n is 2 here , so for our
mass-spring damper system the value of n is 2.
• State variables are denoted by the character x.
• Let the first state variable be
• The first state variable , let us take it as the displacement x (t ) and let the second
state variable be the speed ˙x (t )
• If we differentiate the first state variable, we get ˙x (t ).
• But what is ˙x (t )?
• ˙x (t ) dot is going to be equal to ( t ). taking the first derivative of each state
variable.
• The idea is to write these time evolution equations in terms of the state variables
themselves and the inputs.
• What are the state equations?
• State equations are those first order ODEs that talk about or characterize the
time evolution of each state variable.
• In general, what happens is that this column vector (state vector x (t )) is multiplied by a matrix A
which is called as the STATE MATRIX.
• The general state equation for a SISO LTI causal dynamic system is
• State equation tells us how the state vector would evolve with respect to time in
relation to the input that we are providing to the system.
• ˙x (t ), which is the time derivative of x (t ), is related to the state vector itself and
the input provided to the system.
• If we have some initial condition for the state and we give an input to the system,
then what happens to the state variables with time?
• This is what the state equation will tell.
• The state equation is only the first equation in the state space representation
• The second equation is the output equation.
• Let us say we call the output as a value y (t).
• For our example, the output is the displacement x. So, what is x in terms of the
state variable?
• It is . So how can we get from the state vector?
• In this example, output is displacement x, which is the first state variable.
• This can be obtained as a product of a vector and the state vector.
• The general output equation for a SISO LTI causal dynamic system is going to be
• d u(t ) is what is called as a direct transmission term which comes in the output equation.
• ‘n’ is the highest derivative of the output term and ‘m’ is the highest derivative of the input term.
• In this example, m=0 and n= 2. So, we did not get a direct transmission term in the output
equation.
• Almost all textbooks references in controls would write this output equation as
• They will take the output vector to be a row vector.
• It is a matrix operation. We have =[1 0].
• A state-space model describes the behavior of a dynamic system as a
set of first order ordinary differential equations (ODE).
where:
• As you can see, the order of the differential equation is two, therefore
we need to choose two state variables, x1 and x2, each equal
to(position and speed)
• Because the differential equation has the order 1, we only need one
state variable