Documente Academic
Documente Profesional
Documente Cultură
7-1 Introduction
Page 7-1
EE 422G Notes: Chapter 7 Instructor: Zhang
A : nxn B: nxm
C: pxn D: pxm
Difference: dimensions of the vectors and matrices.
Fundamental Characteristic
Laplace Transform, differential equation, …, convolution:
external inputs external outputs!
State equation (state-variable technique):
External inputs internal state variables (as a bridge)
external outputs
help to understand the system better because of use of “internal state”!
What are the direct measurement which need long time to build
and change?
Faculty quality
Student quality
Good faculty => Research , Teaching
Reputation , Good student
Good students => student Reputation
Graduate quality
Good Faculty
Faculty quality and student quality:
Page 7-2
EE 422G Notes: Chapter 7 Instructor: Zhang
State equations:
UK’s ranking: output c1 x f c 2 x s ------- output equation
(xf Faculty quality , xs: student quality)
State equation:
Change of faculty quality:
x f a11 x f a12 xs a13 salary
Change of student quality:
x s b21 x f b22 xs b23 Scholorship b24 Bashetball
Page 7-3
EE 422G Notes: Chapter 7 Instructor: Zhang
x1
In general x
x n
1. Form
Example :
x a a12 b b
x 1 , A 11 , B 11 12
x2 a21 a22 b21 b22
y c c d d12
y 1, C 11 12 , D 11
y2 c21 c22 d 21 d 22
u
u 1
u 2
Page 7-4
EE 422G Notes: Chapter 7 Instructor: Zhang
In general :
x1 u1 y1
x , u , y ,
x n u m yp
x Ax Bu state equation
y cx du output equation
A:nn B :nm
C : pn D:cm
( x : n 1 ,
Page 7-5
EE 422G Notes: Chapter 7 Instructor: Zhang
x Ax Bu
y cx du
Homework
1. Given x (t ) Ax(t ) Bu (t ) with initial condition x(t0 ) x0 where x0 is the given
initial state. Construct an algorithm (recursive equation) to calculate
x(t 0 (k 1)t ), (k 0,1,...) based on x(t 0 kt ) and u (t0 kt ) where t 0 is a
small time interval.
Page 7-6
EE 422G Notes: Chapter 7 Instructor: Zhang
It is known that the solution of this problem is unique. Prove that the unique
solution of this problem is
t
x(t ) e A( t t 0 )
x0 e A( t ) Bu ( ) d
t0
f ( , t )
t t
d
(Note: dt a
f ( , t )d f ( , t ) t
a
t
d )
Page 7-7
EE 422G Notes: Chapter 7 Instructor: Zhang
Introducing Notation
1 2 2 1 33
e At I At A t A t
2! 3!
where : A : n n matrix
1 0
n
I : n n Identity matrix
0 1
A2 : AA
n n n n n n
Aj :nn j = 0,1,2,…
t: scalar
e At : n n
Properties of eAt
de At
Ae At
dt
1 2 2 1 33
e At I At A t A t
2! 3!
de At 2 3
0 A A 2 t A3t 2
dt 2! 3!
1 2 2
A( I At A t )
2!
At
Ae
Page 7-8
EE 422G Notes: Chapter 7 Instructor: Zhang
e A0 I
1 2 2
e A0 I A 0 A 0 I
2!
* (e At ) 1 e At (Inverse of n n matrix eAt is e-At)
1 1
I ( A)t ( A) 2 t 2 ( A) 3 t 3
2! 3!
1 1
I At A 2t 2 A3t 3
2! 3!
1 2 1
I A( t ) A ( t ) 2 A3 ( t ) 3
2! 3!
t t
d f ( , t )
(2)
dt f ( , t ) d f ( , t ) t
t
d )
a a
If f ( , t ) e A( t ) Bu ( )
t t
d f ( , t )
Then dt f ( , t )d f ( , t ) t t
d
t0 t0
But f ( , t ) t e A( t t ) Bu (t ) IBu (t ) Bu (t ) ,
f ( , t )
Ae A( t ) Bu ( )
t
t t
d
dt t0
Therefore e A( t ) Bu ( ) d Bu (t ) A e A( t ) Bu ( ) d
t0
t
A( t )
Denote Z (t ) e Bu ( ) d
t0
d t A( t )
dt t
Z (t ) e Bu ( )d
=> 0
AZ (t ) Bu (t )
i. e. Z (t ) AZ (t ) Bu (t )
Page 7-9
EE 422G Notes: Chapter 7 Instructor: Zhang
(2) f (t ) t 0 x0
x Ax
question : Is x(t ) e x0 At
a solution of ?
x(t 0 ) x0
d At
x (t ) (e x0 ) Ae At x0 Ax(t )
dt
x Ax
=> x Ax satisfies the first of
x(t 0 ) x0
However,
x(t0 ) e At 0 x0
If t0 0 and A 0 , e At 0 I
=> x(t0 ) x0
x Ax
At
Therefore, x(t ) e x0 is not a solution of
x(t 0 ) x0
Page 7-10
EE 422G Notes: Chapter 7 Instructor: Zhang
x Ax
Question: If we find a solution for
x(t 0 ) x0
Can we find a second different solution for it?
x Ax
No! The solution for is unique
x(t 0 ) x0
when A = constant matrix!
x Ax
Let’s find “any” solution for . It will be the unique solution!
x (
0 0t ) x
Suggested solution
x(t ) e A(t t 0 ) x0
verification:
de A(t t 0 ) x0
(1) x Ae A(t t 0 ) x0 Ax
dt
(2) x(t0 ) e A(t 0 t 0 ) x0 Ix0 x0
x Ax Bu (a)
4. Analytic solution of .
x(t0 ) 0 (b)
(zero-state response)
t
A(t )
Suggested solution : x(t ) e Bu ( ) d
t0
Verification:
From mathematical preparation:
t
z (t ) e A(t ) Bu ( )d our suggested x(t)
t0
=> z (t ) Az (t ) Bu (t )
Page 7-11
EE 422G Notes: Chapter 7 Instructor: Zhang
x Ax Bu
5. Solution of (Given problem)
x(t0 ) x0
Solution: zero-input response + zero-state response
t
x (t ) e A( t t0 ) x 0 e A( t ) Bu ( ) d
t0
7. Output
t
y (t ) C (t t 0 ) x0 C (t ) Bu ( ) d Du (t )
t0
1. Solution
sX ( s ) x0 AX ( s ) BU ( s )
( sI A) X ( s ) x 0 BU ( s )
X ( s ) ( sI A) 1 x0 ( sI A) 1 BU ( s )
x(t ) L1 [( sI A) 1 x0 ] L1 [( sI A) 1 BU ( s )]
2. What is ( sI A) 1 ?
L [( sI A) 1 ] e At (t )
1
Denote: ( s ) ( sI A) 1
Page 7-12
EE 422G Notes: Chapter 7 Instructor: Zhang
What is ( sI A) 1 BU ( s ) ?
( s )( BU ( s )) ---- product of (s ) and BU (s ) !
1 1
L [( sI A) BU ( s )] : convolution of
L1 [( sI A) 1 ] (t ) and L1[ BU ( s )] Bu (t ) !
Hence
t
L1 [( sI A) 1 BU ( s )] (t ) * Bu (t ) (t ) Bu ( )d
0
Y ( s ) CX ( s ) DU ( s )
C ( sI A) 1 x0 c( sI A) 1 BU ( s ) DU ( s )
When x0 0
Y ( s ) C ( sI A) 1 BU ( s ) DU ( s )
[C ( sI A) 1 B D ]U ( s )
Denote H ( s) ( p m)
C ( sI A) 1 B D
=> Y ( s ) H ( s )U ( s)
H(s): Transfer function matrix
H11 ( s ) H12 ( s ) H1m ( s )
H (s)
H p1 ( s ) H p 2 ( s) H pm ( s )
Hij(s) : transfer function between the jth input and ith output.
1. Based on Definition
Page 7-13
EE 422G Notes: Chapter 7 Instructor: Zhang
1 2 2 1 33
(t ) e At I At A t A t
2! 3!
1 k
(Note: A must go to 0 n n as k ; otherwise, eAt does not exist)
k!
1 k
Why numerical calculation possible? Convergence of A
k!
Example 7-1 Easy example
Example 7-2 Not easy example. I can not do it!
2. Based on ( s ) ( sI A) 1
(t ) L1[( sI A) 1 ]
Key : (1) Find ( sI A) 1 ;
(2) For each element of ( sI A) 1 , obtain partial-fraction expansion
0 1
Example 7-3 A
6 5
s 0 0 1 s 1
( sI A)
0 s 6 5 6 s 5
a22 a12
a11
1
a12 a a11
21
a a22 a11a22 a12 a21
21
s 5 1
1
1 6 s
s
( sI A) 1
6 s 5 s ( s 5) 6
s 5 1 s5 1
6 s 2)( s 3) ( s 2)( s 3)
( s
( s 2)( s 3) 6 s
( s 2)( s 3) ( s 2)( s 3)
s5 3 2
3e 2t 2e 3t
( s 2)(s 3) s 2 s 3
1 1 1
e 2t e 3t
( s 2)(s 3) s 2 s 3
6 1 1
6 6[e 2t e 3t ]
( s 2)(s 3) s 2 s 3
s 2 3
2e 2t 3e 3t
( s 2)(s 3) s 2 s 3
eAt = …
Page 7-14
EE 422G Notes: Chapter 7 Instructor: Zhang
3. Diagonalization
A nn
P : nn
1
A PP : nn diagonal matrix
t
e : easy to find
A ( PP )( PP ) ( PP ) Pk P 1
k 1 1 1
A2 2
e At I t t
2!
1
PP 1 PP 1t P2 P 1t 2
2!
1 2 2
P[ I t t ]P 1
2!
t 1
Pe P
(t ) e At 0 (t ) I 1 (t ) A 2 (t ) A2 n 1 (t ) An 1
nXn
This method will be simple if the eigenvalues of A( j ) are distinct:
Replacing A by j and I by 1 in the above equation.
Page 7-15
EE 422G Notes: Chapter 7 Instructor: Zhang
eiga =
-2
-3
Analytic Method:
1
| I A | ( 5) 6 2 5 6 0
6 5
1 2, 2 3,
(2)
1 2 e 2t 0 (t ) 1 (t )(2) (1)
2 3 e 3t 0 (t ) 1 (t )(3) ( 2)
2t 3t
(1) (2) e e 1 (t )
3t
0 (t ) e 31 (t ) e 3t 3e 2t 3e 3t
3e 2t 2e 3t
Page 7-16
EE 422G Notes: Chapter 7 Instructor: Zhang
(3)
e At 0 (t ) I 1 (t ) A
3e 2 t 2e 3t 0 0 e 2 t e 3t
3t
0 3e 2e 6e 6e 3t
2t 2t
5e 2 t 5e 3t
3e 2t 2e 3t e 2t e 3t
2t 3t
6e 6e 2e 2t 3e 3t
Algorithm
Step 1: Select each iL and vc as state variables
diL
Step 2: For each iL , write a KVL ( iL will be included)
dt
For each vc , write a KCL ( v C will be included)
Step 3: Other KCL and KVL, and element relation to eliminate “other”
variables (other than states (iL, vc ) and sources (input).
=>state equation.
Step 4 : Output equation
Page 7-17
EE 422G Notes: Chapter 7 Instructor: Zhang
Example 7-7
Step 1: Label vc as x1
iL as x2
Step 2: For vc , write KCL :
iR1 Cx1 x2 (1)
For iL , write KVL
x1 Lx 2 iR2 R2 ( 2)
vs x1
Cx1 x2 (1)'
R1
x Lx R x
1 2 22
1 1 1
1 CR 1 C 2 CR vs
x x x
1 1
x 1 x R2 x
2 L 1 L 2
1 1
x 1
1
x
CR C 1
1
CR1 vs
x2 1 R x
2 2 0
L L
Page 7-18
EE 422G Notes: Chapter 7 Instructor: Zhang
x
y R2 x 2 0 1 1
x2
x Ax Bu
Find y Cx Du (u --- scalar, y --- scalar)
1. Basic solution
Example :
Y ( s) 4 4 4 4U ( S ) 4U ( s )
Y (s) 4 X 1 ( s) 4 X 2 (s)
U ( s ) ( s 1)( s 2) s 1 s 2 s 1 s2
U ( s)
X 1 (s) x 1 x1 u
s 1
U (s)
X 2 ( s) x 2 2 x2 u
s2
x1 1 0 x1 1
x 0 2 x 1u
2 2
x
y 4 4 1
x2
General Case
Y ( s ) bm s m bm 1s m 1 b1s b0
U ( s) ( s p1 )( s p2 ) ( s pn )
Assumption: No repeated poles
No zero-pole cancellation
Partial-Fraction Expansion:
Page 7-19
EE 422G Notes: Chapter 7 Instructor: Zhang
Y ( s) B1 B2 Bn
U ( s ) s p1 s p 2 s pn
B1U ( s ) B2U ( s ) B U ( s)
Y (s) n
s p1 s p2 s pn
B1 X 1 ( s ) B2 X 2 ( s ) Bn X n ( s )
x1
x
y (t ) B1 ,
B2 , Bn ---- output equation
2
xn
U (s)
( X j ( s) x j p j x j u (t ) )
s pj
x 1 p1 0 x1 1
u (t )
---- state equation
x n 0 pn xn 1
Denote:
AU ( s ) BU ( s)
Yi ( s ) AX i1 ( s ) BX i2 ( s )
( s pi ) 2 s pi
U ( s)
X i2 ( s )
s pi
x i2 p i xi2 u (t )
X i2 ( s )
X i1 ( s )
s pi
x i1 pi xi1 xi2 ( s )
Sub-block :
Page 7-20
EE 422G Notes: Chapter 7 Instructor: Zhang
x i1 pi 1 xi1 0
x u
i2 0 pi xi 2 1
xi
yi A B 1
xi 2
Example 7-9
Y (s) s 2 3s 9
5
U ( s ) 5s 8s 4 24s 3 34s 2 23s 6
3.5 4.75 5.875 7 1.125
Y (s)
( s 1) 3
( s 1) 2
s 1 s 2 s 3
x 1 1 1 0 0 0 x1 0
x 0 1 1 0 0 x 2 0
2
x 3 0 0 1 0 0 x3 1u (t )
x 4 0 0 0 2 0 x4 1
x 5 0 0 0 0 3 x5 1
x1
x
2
y (t ) 3.5 4.75 5.875 7 1.125 x3
x4
x5
to
Page 7-21