Introduction To State Space Analysis
Introduction To State Space Analysis
Introduction To State Space Analysis
Analysis:
(bias noise)
Window opening/closing
(random noise)
noise
Water level control in an overhead tank
State Space analysis
Summary:
State Space Representation
Assume that a MIMO system involves n integrators.
Assume also that there are r inputs u1 (t ), u2 (t )ur (t )
and m outputs y1 (t ), y2 (t ) ym (t ) define n outputs
of integrators as state variables : x1 (t ), x2 (t ) xn (t )
then the system may be described by
State Space Representation
State Space Representation
State Space Representation
Generic State Space Representation
State Space Representation
Generic State Space Representation
Summary:
State Space Representation
State-space Analysis
• Most general continuous-time linear dynamical system has
form
state equation
Output equation
Where
• is the state ( vector)
• is the input or control
• is the output
• is the dynamics matrix
• is the input matrix
• is the output or sensor matrix
• is the feedthrought matrix/direct
transmission matrix
State-space Analysis
We will typically deal with the time-invariant case
Linear Time-Invariant (LTI) stat dynamics
So that now A,B,C,D are constant and don’t depend on t.
u y
B + ∫ C +
+ +
D
Figure . Block diagram representation of the state model
of a linear time invariant MIMO system
State-space Analysis
Why should we use SS Model ?
• State variable form convenient way to work with complex
dynamics. Matrix format easy to use on computers.
• Transfer function only deal with input/output behavior,
but state-space form provides easy access to the
“internal” features/response of the system.
• Allow us to explore new analysis and synthesis tools.
• Great for multiple-input multiple-output systems(MIMO),
which are very hard to work with using transfer functions.
• Easy to study/design optimal control systems.
Advantages of State Space
Representation
■ Systematic analysis and synthesis of higher order
systems without truncation of system dynamics
■ Convenient tool for MIMO systems
■ Uniform platform for representing time-invariant systems,
time-varying systems, linear systems as well as nonlinear
systems
■ Can describe the dynamics in almost all systems
(mechanical systems, electrical systems, biological
systems, economic systems, social systems etc.)
( )
• If the measured output of the system is the position,
then we have that
27
State-space Analysis
• Mass Damper Spring/Translational Mechanical
System
Vector Matrix Form/State Space Model Standard Form
State-space Analysis
Example:-A system is governed by a differential equation shown
below, where y is the output and u is the input of the system.
obtain the state space model for this system
d3y d2y d y
3
6 2
11 10 y 8u (t )
dt dt dt
State model representation
Simulation diagram
Modeling of Electrical Networks
Voltage-current, voltage-charge, and
impedance relationships for capacitors,
resistors, and inductors
An RLC circuit
State variable characterization
■ The state of the RLC system described a set of state
variables x1 and x2
■ X1 = capacitor voltage = vc(t)
■ X2 = inductor current = i L(t)
■ This choice of state variables is intuitively satisfactory
because the stored energy of the network can be
described in terms of these variables
1 1
E LiL Cvc
2 2
2 2
Utilizing Kirchhoff’s law
■ At the junction
■ First order
differential equation
■ Describing the rate dvc
of change of ic C u(t) i L
capacitor voltage dt
■ Right hand loop
■ Provide the equation diL
describing the rate of
change of inductor
L RiL vc
current dt
State space representation
Output of the system, linear algebraic
equation
vo RiL (t)
A set of two first order differential equation and
output signal in terms of the state variables x1
and x2
dx1 1 1 0 1 1
x 2 u(t)
x x
dt C C x 1 C . 1 .u
x C
x 2 0
1 R
dx2 1 R
x1 x 2 2
L L
dt L L
x1
y(t) vo (t) Rx2 y 0 R .
x2
Example 1 : RL serial network
di(t) 1
L Ri(t) i(t)dt vi (t)
dt C
Converting to charge
• Using equation,
dq(t)
i(t)
dt
2
d q(t) dq(t) 1 q(t) v (t)
L 2
R i
dt dt C
Derivatives of state vector
x1 (t) q(t)
dq(t)
x1 (t) i(t) x2 (t)
dt
x2 (t) i(t)
di(t)
x2 (t)
dt
State equation
• First state equation
dq(t)
x1 (t) i(t) x2 (t)
dt
• Second state equation, using
q(t) i(t)dt
i(t)dt v(t)
di(t) 1
L Ri(t)
dt C
di(t) q(t) Ri(t) v(t)
dt LC L L
1 R 1
x2 (t) x1 (t) x2 (t) u(t)
LC L L
State equation in matrix form
x(t) Ax(t) Bu(t)
0 1 x (t) 0
x (t)
x(t) 1
1 R 1 1 u(t)
x (t) LC x2 (t)
L L
2
dq(t)
dt 0 1 q(t) 0
x(t) 1 R 1 v(t)
i(t)
LC
di(t)
L L
dt
Output equation
• Output system is VL
VL (t) VR (t) VC (t) vi (t)
VL (t) VC (t) VR (t) vi (t)
1
V L(t) i(t)dt i(t)R v i (t)
C
1
VL (t) q(t) Ri(t) v i (t)
C
1
VL (t) x1(t) Rx 2 (t) u(t)
C
Output equation in matrix form
x1(t) VR (t)
v(t) V R (t) VC (t)
dVR (t) di(t) R
x1`(t) R
dt dt L
R R R
x1(t) VR (t) VC (t) v(t)
L L L
R R R
x1`(t) x1 (t) x2 (t) u(t)
L L L
Derivative of second state
equation
x(t) Ax(t) Bu(t)
R R
x (t) R
x1 (t) L 1
x(t) L L u(t)
x (t) 1 x2 (t) 0
2 0
RC
dVR (t) R R
dt V (t) R
x(t) dV (t) L L R v(t)
1 V (t) L
C
0 C 0
dt RC
Output equation