System and Control - Lecture of Systems in Time Domain
System and Control - Lecture of Systems in Time Domain
Delft Center for Systems and Control, Delft University, 2628 CD, the Netherlands
[email protected]
WB3240, 2023-2024
Introduction
GOAL: Provide lectures to bring control to life! Control is a difficult and abstract subject, but
incredibly powerful. My goal is to inspire you.
I will be:
• Providing context on topics
• Explaining fundamental theory
• Working out examples together
• Showing numerical examples in Python code
• Demonstrating on practical setups
Question or exercise
Provide a step signal definition with a final value of 3, starting at t = 2. Draw the signal.
In the coming 4 weeks, we will discuss dynamical systems and time-domain control:
• Lecture 2: Introduction | Linear dynamical models, State space
• Lecture 3: State space, Simulation, Block diagrams, Phase portraits, Linearization
• Lecture 4: Equilibrium points, Stability, Diagonal dynamics, Examples
Practicalities - Announcements
Learning objectives
dn y dn−1 y dm u dm−1 u
n
+ a1 n−1 + · · · + an y = b0 m + b1 m−1 + · · · + bm u,
dt dt dt dt
with u the input, y the output, coefficients {ak , bk } ∈ R, and n the system order.
dn y dn−1 y
+ a1 + · · · + an y = 0.
dtn dtn−1
a(s) = sn + a1 sn−1 + · · · + an
Derive the characteristic polynomial a(s) from the homogeneous differential equation.
We will often consider initial value problems (IVPs), of which the solution results from the
considered differential equation together with an initial condition.
dn y dn−1 y
+ a1 + · · · + an y = 0,
dtn dtn−1
is of the form
n
X
y(t) = Ck esk t ,
k=1
with sk the unique roots of the characteristic equation a(s) = 0, and the coefficients Ck are
determined through the initial conditions at t = 0.
When all solutions of the homogenous equation go to 0, the system is stable. Stability is
determined by the solutions (roots) of a(s) = 0, for which it is required that all roots have
negative real parts, i.e., Re{sk } < 0.
m = 1, c = 7, k = 12
q(0) = 4, q̇(0) = 8, u(t) = 0
1. Propose a symbolic solution q(t) for a system with unique roots of a(s).
2. Find the characteristic polynomial a(s). Is this system stable, why?
3. Find the analytical solution q(t) for the given system parameters and initial conditions.
4. What parameter changes would destabilize the system? Could an input attain this?
a(s) = s2 + cs + k = s2 + 7s + 12 = (s + 3)(s + 4)
So the roots of the characteristic equation are s1 = −3 and s2 = −4. All Re{sk } < 0, so
the system is stable.
Exponential signals
When the coefficients ak are real, the roots sk ∈ C of the characteristic equation are either
real-valued or complex-conjugate pairs.
a(s) = sn + a1 sn−1 + · · · + an ,
when the following conditions are met for polynomials of first-order: {a1 > 0},
second-order: {a1 > 0, a2 > 0}, and third-order: {a1 , a2 , a3 > 0} and {a1 a2 > a3 }.
Particular solution
We shall now revert to the originally defined linear differential equation
dn y dn−1 y dm u dm−1 u
n
+ a1 n−1 + · · · + an y = b0 m + b1 m−1 + · · · + bm u,
dt dt dt dt
Given the exponential input u(t) = est , let us investigate the unique particular solution of the
form y(t) = G(s)est .
The solution to the linear differential equation is the summation of the homogeneous solution
(input-independent, first term), and the particular solution (input-dependent, second term):
m
X b(s) b0 sm + b1 sm−1 + · · · + bm
y(t) = Ck (t)esk t + G(s)u(t), G(s) = =
a(s) sn + a1 sn−1 + · · · + an
k=1
with G(s) being the system’s transfer function a complete and shorthand characterization of
the linear differential equation, describing the particular solution for the input u(t) = est .
State vector
The state vector x ∈ Rn contains time-dependent variables and determines the present
internal behavior (condition) of the system. State information completely captures the system’s
past, allowing to predict future system output(s) of the system, given future input(s).
The dimension n of the state vector is called the order of the model.
Using the state space representation, an n-th order system with p inputs and q outputs is
represented by n first-order differential equations with n states.
g b
θ̈ = − sin θ − θ̇ [1]
mq̈ + cq̇ + kq = F
l ml
Determine the state space representation by finding expressions for f and h, with the input
u(t) = F (t) and measuring Ω(t).
Note that this is a first-order system. What is the system order n? How many does states the
system consequently have? Can we therefore speak of a state vector ?
ẋ = f (x, u) = −3x + 2u
y = h(x, u) = x
DCSC (DCSC, TU Delft) 25 / 28
Introduction Linear dynamical models State space Exercises
Determine the state space representation by finding expressions for f and h, by choosing the
state variables as x1 = q̇ and x2 = q, control input u, and measuring q̇.
Now define the state vector as x = [x1 , x2 ] = [q, q̇] ; same input and output. What changes?
> >
q̈ + 5q̇ 3 − 3q = 4u.
Determine the state space representation by finding expressions for f and h, by choosing the
state variables as x1 = q and x2 = q̇, control input u, and measuring q.
determine a state space representation by finding f and h for this system (measuring q).
−9x32 x3 + sin x2 + u
ẋ1 f1 (x, u)
ẋ = f (x, u) = ẋ2 = f2 (x, u) = x1
ẋ3 f3 (x, u) x2
y = h(x, u) = x3
Is this state space system linear?