1 - Transfer Functions Linearization
1 - Transfer Functions Linearization
Linearization
Daniele Carnevale
1 / 13
Transfer function
Example
Linearization
The free response is characterized by system modes of the type eλi t thi /hi !,
where λi ∈ σ{A} ⊂ C and 0 ≤ hi ≤ n is the dimension of the largest Jordan
block associated to λi . The forced response contains the modes of the input
and the output eαj t tqj /qj !. There might be higher order (tqj +1 ) polynomials
in the response if αj = λi for some i and j (resonance).
2 / 13
Transfer function
Example
Linearization
3 / 13
Transfer function
Example
Linearization
Transient response
The forced response, using inverse Laplace transform and residuals can be
written as
If pi ∈ C − then
X X Ri,j tj−1 epi t
lim = 0.
t→∞
i j
(j − 1)!
| {z }
transient response
4 / 13
Transfer function
Example
Linearization
First order rational functions (not all of them are proper transfer functions)
1 s + 10 1 −0.1s + 1
P1 (s) = , P2 (s) = , P3 (s) = , P4 (s) = ,
s + 10 1 0.1s + 1 1
1 s + 100 s + 10
P5 (s) = , P6 (s) = , P7 (s) = 2 .
s − 10 s + 10 s + 100
Bode Diagram
100
50
Magnitude (dB)
−50
−100 P1
360
P2
270 P
3
180 P
Phase (deg)
4
P5
90
P
6
0 P7
−90
−180
−1 0 1 2 3 4
10 10 10 10 10 10
Frequency (rad/s)
First order rational functions (not all of them are proper transfer functions)
P1 = t f ( 1 , [ 1 1 0 ] ) ; P2 = t f ( [ 1 1 0 ] , 1 ) ; P3 = t f ( 1 , [ 0 . 1 1 ] ) ;
P4 = t f ( [ − 0 . 1 1 ] , [ 1 ] ) ; P5 = t f ( 1 , [ 1 − 1 0 ] ) ;
P6 = t f ( [ 1 1 0 0 ] , [ 1 1 0 ] ) ; P7 = zpk ( [ − 1 0 ] , [ − 1 0 0 ] , 2 ) ;
figure (1)
bode ( P1 , P2 , P3 , P4 , P5 , P6 , P7 ) ;
legend ( ’ P 1 ’ , ’ P 2 ’ , ’ P 3 ’ , ’ P 4 ’ , ’ P 5 ’ , ’ P 6 ’ , ’ P 7 ’ )
s e t ( f i n d a l l ( gcf , ’ t y p e ’ , ’ l i n e ’ ) , ’ l i n e w i d t h ’ , 3 )
h o l d on
g r i d on
6 / 13
Transfer function
Example
Linearization
1 s + 10 1 −0.1s + 1
P1 (s) = , P2 (s) = , P3 (s) = , P4 (s) = ,
s + 10 1 0.1s + 1 1
1 s + 100 s + 10
P5 (s) = , P6 (s) = , P7 (s) = 2 .
s − 10 s + 10 s + 100
Step Response
10
P
1
9 P
3
P
5
8 P6
P
7
7
6
Amplitude
0
0 1 2 3 4 5 6
Time (seconds)
1 s + 10 1 −0.1s + 1
P1 (s) = , P2 (s) = , P3 (s) = , P4 (s) = ,
s + 10 1 0.1s + 1 1
1 s + 100 s + 10
P5 (s) = , P6 (s) = , P7 (s) = 2 .
s − 10 s + 10 s + 100
10
P1
P
8 3
P5
P
P6 1
6 3 P
P7 3
P5
4 2 P
6
P7
2 1
y(t)
y(t)
0
0
−1
−2
−2
−4
−3
−6
0.51 0.52 0.53 0.54 0.55 0.56 0.57 0.58
−8
time [s ]
−10
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
time [s ]
First order rational functions (not all of them are proper transfer functions)
ni = 30;
omega = 2∗ p i ∗ n i ;
mytime = 0 : 0 . 0 0 1 : 2 ;
u = 2∗ s i n ( omega ∗ mytime ) ;
l i s t a C o l o r i = { ’ r ’ , ’ b ’ , ’ g ’ , ’ k ’ , ’ c ’ , ’ y ’ , ’m ’ , ’ r−− ’ , . . .
’ b−− ’ , ’ g−− ’ , ’ k−− ’ , ’ c−− ’ , ’ y−− ’ , ’m−− ’ , ’ r : ’ , ’ b : ’ , ’ g : ’ , . . .
’ k : ’ , ’ c : ’ , ’ y : ’ , ’m: ’ , ’ r .− ’ , ’ b.− ’ , ’ g.− ’ , ’ k.− ’ , ’ c .− ’ , . . .
’ y .− ’ , ’m.− ’ , ’ r−o ’ , ’ b−o ’ , ’ g−o ’ , ’ k−o ’ , ’ c−o ’ , ’ y−o ’ , ’m−o ’ , . . .
’ r−x ’ , ’ b−x ’ , ’ g−x ’ , ’ k−x ’ , ’ c−x ’ , ’ y−x ’ , ’m−x ’ } ;
myFontSize = 16;
figure (1)
for i = 1:7
i f ( i ˜= 2 && i ˜= 4 ) %n o t p r o p e r t r a n s f e r f u n c t i o n
e v a l ( [ ’ y = l s i m (P ’ num2str ( i ) ’ , u , mytime ) ; ’ ] ) ;
p l o t ( mytime , y , c e l l 2 m a t ( l i s t a C o l o r i ( i ) ) , ’ L i n e W i d t h ’ , 2 ) ;
h o l d on
y l i m ([ −10 1 0 ] )
end
end
hold o f f
l e g e n d ( ’ P 1 ’ , ’ P 3 ’ , ’ P 5 ’ , ’ P 6 ’ , ’ P 7 ’ , ’ L o c a t i o n ’ , ’ NorthWest ’ )
x l a b e l ( ’ t i m e [ s ] ’ , ’ F o n t S i z e ’ , myF on tSi ze , ’ I n t e r p r e t e r ’ , ’ L a t e x ’ )
y l a b e l ( ’ y ( t ) ’ , ’ F o n t S i z e ’ , m yF ont Si ze , ’ I n t e r p r e t e r ’ , ’ L a t e x ’ )
h o l d on
g r i d on 9 / 13
Transfer function
Example
Linearization
ωn2
P1 (s) = ,
s2
+ 2ζωn s + ωn 2
1 + 2s 1−2s
P2 (s) = 2 , P3 (s) = 2 ,
s + 1s + 1 s + 1s + 1
150 10
100 0
Magnitude (dB)
Magnitude (dB)
50 −10
0 −20
−50 −30
−100 −40
0 360
P
2
270 P3
−45
Phase (deg)
Phase (deg)
180
−90
90
−135
0
−180 −90
−2 −1 0 1 2 −2 −1 0 1 2
10 10 10 10 10 10 10 10 10 10
Frequency (rad/s) Frequency (rad/s)
Figure : Left: P1 (s) with ζ ∈ [0, 1]. Right: P2 (s) and P3 (s). 10 / 13
Transfer function
Example
Linearization
ωn2
P1 (s) = ,
s2
+ 2ζωn s + ωn 2
1 + 2s 1−2s
P2 (s) = 2 , P3 (s) = 2 , [Non-minum phase plants: zeros ∈ C + ]
s + 1s + 1 s + 1s + 1
2 2
1.8
1.5
1.6
1.4
1
1.2
y(t)
y(t)
1 0.5
0.8
0
0.6
0.4
−0.5
0.2
0 −1
0 5 10 15 0 5 10 15
time [s ] time [s ]
Figure : Step response of P1 (s) with ζ ∈ [0, 1]. Right: step response of P2 (s) (RED)
and P3 (s) (BLUE).
11 / 13
Transfer function
Linearization
Linearization
ẋ = f (x, u, d),
where x̃ = x − xe , ũ = u − ue and d˜ = d − de .
12 / 13
Transfer function
Linearization
Linearization: cart-pendulum
13 / 13