Lecture 38
Lecture 38
EE 3512 PatternContinuous
Recognitionand Discrete
LECTURE 38: THE STATE EQUATIONS
• Objectives:
Motivation
Differential Equations
Applications to Circuits
Solutions to the State Equations
• Resources:
Wiki: State Variables
YMZ: State Variable Technique
Wiki: Controllability
SHS: State Equation Solutions
MIT: State Equation Solutions
URL: Audio:
Motivation
• Thus far we have dealt primarily with the input/output characteristics of linear
systems. State variable, or state space, representations describe the internal state of
the system.
• State variables represent a way to describe ALL linear systems in terms of a common
set of equations involving matrix algebra.
• Many familiar properties, such as stability, can be derived from this common
representation. It forms the basis for the theoretical analysis of linear systems.
• State variables are used extensively in a wide range of engineering problems,
particularly mechanical engineering, and are the foundation of control theory.
• The state variables often represent internal elements of the system such as voltages
across capacitors and currents across inductors.
• They account for observable elements of the circuit, such as voltages, and also account
for the initial conditions of the circuit, such as energy stored in capacitors. This is
critical to computing the overall response of the system.
• Matrix transformations can be used to convert from one state variable representation
to the other, so the initial choice of variables is not critical.
• Software tools such as MATLAB can be used to perform the matrix manipulations
required.
EE 3512: Lecture 38, Slide 1
State Equations
• Let us define the state of the system by an N-element column vector, x(t):
x1 ( t )
x ( t)
2 x1 ( t )
t
x ( t) x2 ( t) x N ( t)
N
x ( t )
Note that in this development, v(t) will be the input, y(t) will be the output, and x(t) is
used for the state variables.
• Any system can be modeled by the following state equations:
x ( t ) Ax ( t) Bv ( t) x : Nx 1 A : NxN B : Nxp p : number of inputs
y ( t) C x ( t ) Dv ( t) y : qx 1 C : qxN D : qxp q : number of outputs
dy ( t ) 1 1 2
d y ( t) R dy ( t ) 1 1
y ( t) v ( t) y ( t) v ( t)
dt RC RC dt
2
L dt LC LC
1 0 1
A a 0
0 1
R / L
A
RC
a 0 a 1 1 / LC
1
B b 0
RC C 1 D 0 0 0
B
0
b 1 / LC
x1 ( t ) 1 x ( t) 1 C 1 0 D 0
RC 1 RC v ( t )
x1 ( t ) 0 1 x1 ( t ) 0
x ( t ) 1 / LC
R / L x 2 ( t ) 1 / LC
v ( t)
x1 ( t ) 2
y ( t) 1
x1 ( t )
y ( t) 1 0
2
x ( t )
EE 3512: Lecture 38, Slide 6
Solutions to the State Equations – Preliminaries
• Recall our state equations:
x ( t ) Ax ( t ) Bv ( t )
C x ( t ) Dv ( t )
y ( t)
• To solve these equations, we will need a few mathematical tools. First:
2 2 3 3
A t A t
e
At
I At
2! 3!
where I is an NxN identity matrix. Ak is simply AxAx…A.
• For any real numbers t and :
A ( t )
e e A te A
• Further, setting = -t:
A ( t )
e e A te A t I
• Next:
d d 2 2
A t
3 3
A t 3 2
A t
e
At
I A t A A
2
t
dt dt 2! 3! 2!
2 2
A t
3 3
A t
A I A t A e A t
2! 3!
• We can use these results to show that the solution to x ( t ) Ax ( t)
is:
x ( t) e A t x ( 0 ), t 0
EE 3512: Lecture 38, Slide 7
Solutions to the Forced Equation
• If: x ( t) e A t x ( 0 ), t 0
d d d
x ( t ) e x ( 0 ) A e A t x ( 0 ) Ax
At At
e x ( 0 ) ( t)
dt dt dt
• e
At
is referred to as the state-transition matrix.
• We can apply these results to the state equations:
x ( t ) Ax ( t ) Bv ( t )
x ( t ) Ax ( t) Bv ( t)
A t A t
e x ( t ) Ax ( t) e Bv ( t )
• Note that:
d A t A t d A t A t A t A t
e x ( t) e x ( t ) e x ( t) e x ( t ) A e x ( t) e x ( t ) Ax ( t)
dt dt
d A t A t
e x ( t) e Bv ( t )
dt
• Integrating both sides:
t
e
A t
x ( t) x ( 0 ) e A Bv ( ) d Generalization of our
0 convolution integral
t
x ( t) e At
x (0) e A t Bv ( ) d , t 0
0
EE 3512: Lecture 38, Slide 8
Solution to the Output Equation
• Recall:
At t
y ( t) C x ( t ) Dv ( t) C e x ( 0 ) e A t Bv ( ) d Dv ( t ), t 0
0
t
C e At
x (0) C e A t Bv ( ) d Dv ( t ), t 0
0
y ( t) C e x ( 0 ) C e A t Bv ( ) D t v ( ) d ,
At
t 0
y t zi
0
y zs t
y zs t h ( t ) * v ( t ) h ( t ) v ( ) d , t 0
0
• Equating terms:
t t
C e B v( ) D t v ( ) d h ( t ) v ( ) d
A t
0 0
C x ( t ) Dv ( t )
y ( t)
• Using the Laplace transform on the first equation:
s X ( s ) x ( 0 ) AX ( s ) BV ( s )
sI A X ( s ) x ( 0 ) BV ( s)
1 1
sI A
X ( s) x (0) sI A BV ( s )
• Comparing this to:
t
x ( t) e At
x (0) e A t Bv ( ) d , t 0
0
reveals that:
1
e L 1 s I A
At