State-Variable Equations - State-Space Representation (SSR) - Input-Output (I/O) Equations - Transfer Functions (Laplace Transforms) - Block Diagrams
State-Variable Equations - State-Space Representation (SSR) - Input-Output (I/O) Equations - Transfer Functions (Laplace Transforms) - Block Diagrams
Dynamic Systems
• So far we have developed system models that are collections of
either first-order ODEs (i.e., an electrical circuit with a single
capacitor or single inductor), and/or second-order ODEs (i.e.,
mechanical systems)
– State-variable equations
– State-space representation (SSR)
– Input-output (I/O) equations
– Transfer functions (Laplace transforms)
– Block diagrams
(worked on board)
State-Space Representation (SSR)
• For modern, complex dynamic systems, we often encounter
systems with multiple inputs and multiple outputs (MIMO)
– IF the system is linear, we can set the state-variable equations in a
convenient vector-matrix format, which we will call a state-space
representation (SSR)
– The SSR vector-matrix format that is extremely well-suited for computer
simulation (MATLAB and Simulink)
• For example, if our system is LTI and third order (n = 3) with two
inputs (r = 2), then our state-variable equations must have the form:
é x1 ù é u1 ù é y1 ù
êx ú êu ú êy ú
x = ê 2ú u = ê 2ú y=ê 2ú
ê!ú ê!ú ê ! ú
ê ú ê ú ê ú
ë xn û ëu r û ë ym û
“state vector,” n x 1 “input vector,” r x 1 “output vector,” m x 1
• Note that the left-hand side of the state equations is the first time
derivative of the state vector x
State-Space Representation (5)
• We can assemble the a, b, c, and d coefficients of the
state and output equations into four matrices:
x! = Ax + Bu “state equation”
y = Cx + Du “output equation”
éI ù
x = êq ú
ê ú
êëq!úû
• The 2x1 input vector is
éein (t )ù
u=ê ú
T
ë L û
éq!ù é x3 ù
y=ê ú=ê ú
ë I û ë x1 û
State-Space Representation:
Example (3)
• Complete the derivation on the board… the SSR result is
é x!1 ù é- R / L 0 - K b / L ù é1 / L 0 ù
x! = êê x!2 úú = êê 0 0 1 úú x + êê 0 0 úúu
êë x!3 úû êë K m / J 0 - b / J úû êë 0 - 1 / J úû
A B State equation
é y1 ù é0 0 1ù é0 0 ù
y=ê ú=ê ú x+ê ú u Output equation
ë y 2 û ë1 0 0û ë0 0 û
C D
For systems with two or more inputs, the right-hand side of the I/O equation
will include additional input terms
If we have a system with m output variables, we will have m I/O equations, one for
each output variable. Therefore, unlike the state-variable equations, we can solve
each I/O independently from the others.
I/O Equations: Simple Example
• Consider again the 1-DOF mechanical system (mass-spring-damper
with input force Fa ):
m!z! + bz! + kz = Fa
∞
L [ f (t)] = F(s) = ∫ f (t)e−st dt Laplace transform
0
Developing Transfer Functions
• In order to develop the transfer function in the Laplace domain
(without dealing with Laplace transforms), consider the following third-
order I/O equation:
a3!y!! + a 2 !y! + a1 y! + a0 y = b1u! + b0 u
• Recall from differential equation theory, that if the input is u(t) = U(s)est
the particular solution (response due to the input) will also be an
exponential function, y(t) = Y(s)est
Developing Transfer Functions (2)
•Now substitute the exponential input and output equations into the I/O
differential equation, with the knowledge that y! = sY ( s )e st and
!y! = s 2Y ( s )e st etc…
(a s
3
3
+ a2 s 2 + a1s + a0 ) Y (s)e st = ( b1s + b0 )U(s)e st
• Apply the s operator to all terms in the I/O equation (with zero
initial conditions):
s 2Y +8sY +10Y = 4sU
Y (s ) 4s
• Form the ratio of output/input: = G (s )= 2
U (s ) s +8s +10
Transfer 4s
function G (s )= 2 Y (s )= G (s )U (s )
s +8s +10
Transfer-Function Analysis
Transfer Functions: Notes
The timer, water jets, and dishes are all modular systems depicted
by single blocks. The run time is the input signal to the timer system
and the dish cleanliness is the output signal from the dish system.
The two arrows in the middle also represent some signal but are not
labeled in this diagram.
Standard Block-Diagrams Components
• Multiplication by a constant (or gain), K
• Integration:
Simulink
notation
Standard Block-Diagrams Components (2)
• Dynamic system represented by transfer function G(s)
3s + 2
For example, if the transfer function is G ( s ) = 2
s + 4 s + 12
the corresponding I/O equation is
!!
y + 4 y! +12y = 3u! + 2u