State Space
State Space
Lecturer, MPE
Ahsanullah University of Science and Technology (AUST)
March 2, 2025
1 / 29
Objectives
2 / 29
Pre-Assessment
Before starting the lecture, answer the following questions to assess your
prior knowledge:
1 What is the classical method of control system design, and how does
an example.
5 What do you think is meant by “state-space representation of a
system”?
3 / 29
DESIGN OF CONTROL SYSTEM (CLASSICAL
METHOD)
Two approaches are available for the analysis and design of feedback control
systems.
The classical, or frequency-domain approach is based on converting a
system’s differential equation to a transfer function.
Thus generating a mathematical model of the system that algebraically
relates a representation of the output to a representation of the input.
Replacing a differential equation with an algebraic equation not only
simplifies the representation of individual subsystems but also simplifies
modeling interconnected subsystems.
ADVANTAGE:
1 Rapidly provide stability and
transient response information.
2 Thus, we can immediately see the
effects of varying system
parameters until an acceptable
design is met.
4 / 29
CLASSICAL METHOD: LIMITATIONS
With the arrival of space exploration, requirements for control systems
increased in scope.
Modeling systems by using LTI differential equations and subsequent
transfer functions became inadequate.
Many systems do not have just a single input and a single output.
Time-varying systems, (for example, missiles with varying fuel levels or lift in
an aircraft flying through a wide range of altitudes) can not be represented.
It can not conveniently handle, systems with nonzero initial conditions.
f (t) Ms 2 + fv s + K X (s) = F (s) Ms 2 + fv s + k X (s) − 5 = F (s) (1)
6 / 29
ENTER STATE SPACE
The time-domain approach can be used to represent systems with a digital
computer in the loop or to model systems for digital simulation.
With a simulated system, system response can be obtained for changes in
system parameters—an important design tool.
The state space approach is also attractive because of the availability of
numerous state-space software packages for the personal computer.
Both classical and modern approaches can be used to solve LTI systems,
However.
State space approach is not as intuitive as the classical approach.
The designer has to engage in several calculations before the physical
interpretation of the model is apparent, whereas in classical control a few
quick calculations or a graphic presentation of data rapidly yields the
physical interpretation.
7 / 29
STATE SPACE MODELING
A state space model represents a system by a series of first order differential
state equations and algebraic output equations.
State Space models are numerically efficient to solve, can handle complex
systems, allow for a more geometric understanding of dynamic systems, and form
the basis for much of modern control theory, e.g., optimal control theory, Linear
quadratic control, Kalman filters.
Consider the following physical (dynamic) system where
8 / 29
STATE SPACE MODELING
...
ẍ + 5 x + 3ẋ + 2x = u
x1 = x, x2 = ẋ, x3 = ẍ
For each of the state variables we will need a single first order DE: (State
Equations:)
ẋ1 = ẋ = x2
ẋ2 = ẍ = x3
...
ẋ3 = x = −5ẍ − 3ẋ − 2x + u
ẋ3 = −5x3 − 3x2 − 2x1 + u
The original 3rd order DE has now been converted to three 1st order DE.
State space modeling also includes output equations.
Given, ẋ is the output:
y = x2 (as ẋ = x2 )
Position can be output, velocity can be output, or both can be output. It depends
on the engineering demand.
The converted state space system has 1 input (u), 1 output (y ), and 3 state
variables (x1 , x2 , x3 ).
9 / 29
STATE SPACE MODELING GENERAL FORM
In general, state space models have the following form:
A derivative for each of the state variables. And these derivatives are function of
other state variables and the inputs.
State Equations:
y1 (t) = g1 (x1 , x2 , . . . , xn , u1 , u2 , . . . , ur ; t)
y2 (t) = g2 (x1 , x2 , . . . , xn , u1 , u2 , . . . , ur ; t)
ym (t) = gm (x1 , x2 , . . . , xn , u1 , u2 , . . . , ur ; t)
10 / 29
STATE SPACE MODELING
For linear systems we can write general form of state space modeling in matrices
form.
11 / 29
STATE SPACE MODELING
12 / 29
STATE SPACE MODELING
To avoid these issues, there is a proper way to choose the state space variable,
which will guarantee the minimum number of variables.
13 / 29
STATE SPACE MODELING
A state basically captures the history of the system, it captures all the past inputs.
14 / 29
DEFINITION OF STATE VARIABLES
Q: What set of variables will capture all of the history that came before this
instance?
The state of a dynamic system is the smallest set of variables (called state
variables) such that knowledge (values) of these variables at t = t0 , together
with knowledge of the input for t ≥ t0 , completely determines the behavior of the
system for any time t ≥ t0 .
So we basically know the values of the past and the corresponding inputs, that
caused this state.
This information is sufficient for us to predict the response of the system with the
current input.
Min # of state variables = # of independent energy storage elements
The energy stored in the system at the current instant of time affects the
behavior of the system going forward. So if we know the stored energy we can
predict the future.
15 / 29
EXAMPLE
Equations of motion:
m1 ÿ + b(ẏ − ż) + k(y − z) = 0
m2 z̈ + b(ż − ẏ ) + k(z − y ) = u
Not in state space form.
In our previous blind way of choosing state variables, we will end up with these
state variables:
x1 = y , x2 = ẏ , x3 = z, x4 = ż
4 first order DEs But this is not the minimum number of state variables. We can
do with even less.
Solution: Find the number of energy storage elements.
16 / 29
EXAMPLE
Energy storage elements State Variables
Spring (stores elastic P.E) x1 = y − z
1 2
Mass, m1 (stores K.E 2 m 1 v1 ) x2 = ẏ
Mass, m2 (stores K.E 12 m2 v22 ) x3 = ż
If you examine the state space variables, you can see that all initial conditions can
be defined by them.
17 / 29
EXAMPLE
18 / 29
EXAMPLE
19 / 29
EXCEPTIONS
General rule:
1 If the elements are constrained together, i.e. they are dependent
21 / 29
STATE SPACE TO TRANSFER FUNCTION
22 / 29
EXAMPLE
Convert the state and output equations shown below to a transfer
function.
23 / 29
EXAMPLE PROBLEM
24 / 29
EXAMPLE PROBLEM
25 / 29
EXAMPLE PROBLEM
26 / 29
EXAMPLE PROBLEM
27 / 29
Post-Assessment
(like two spring systems) due to their constraints. How does this
affect the state-space representation?
28 / 29
End of Topic
THANK YOU
ANY QUESTIONS?
29 / 29