Laplace Transform and Linear Models
Laplace Transform and Linear Models
Transforms
Laplace Transform
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Transforms
3
T (·) V
U
T −1 (·)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Silly Illustrative Example
4
log(·)
a log a
c=
b log b
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Laplace Transform
5
L(·)
f (t) F (s) = L[f (t)]
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Laplace Transform
6
L(·)
f (t) F (s)
s = σ + jω
Z ∞
L[f (t)] = F (s) = f (t) e−st dt,
0
Z τ
= lim f (t) e−st dt
τ →∞ 0
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Example Step Function
7
≡ ≥
( # ∞
1 t>0 ! "
L f (t) ! e−st 1 dt
1(t) =
0 t<0 0
st %τ &
$ −
%
e
! lim %
τ →∞ −s % 0
e−sτ
$ &
1
! lim +
τ →∞ −s s
1
! Re(s) > 0
s
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
sform
If of 11 (t)
functions
If functions + h(
11(t) and
11(t) t) h(t)
and ish(t)
given
areby
are both
both Laplace transformable,then
Laplace transformable, thenthethe La
Lapla
form
ansform of(t)
11 + h(
11 (t)
ofExample + h(
t) t)is isgiven
;e[fl(t) + by
given
Exponential by
h(t)] Function
= ;e[f1(t)] + ;e[f2(t)]
;e[fl(t)++h(t)]
;e[fl(t) ;e[f1(t)] +
h(t)] == ;e[f1(t)] + ;e[f2(t)]
;e[f2(t)] 8
dt = A
100 0
e-(a+s)t dt = - -
0 s
e-(a+s)t dt = - -
+ sa + a
A
1o 0 s+a
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
;e[At] = A
soidal 1 te-sr dt = A t
of 11o (t)
sformfunction. +The
= A fooe-sr dt = A
10
h(Laplace
t) iss-s10
given -
transform
0 byo-s ofJthe
(t)Js2 = 0= 0
(t)
sinusoidal
= A= sin
function
wt wt forfor
A sin
t <
forfor t <0 0
t t 00
= Example
s
A fooe-sr
Sinusoidal
J(t)dt==;e[fl(t)
0ASinusdoindal
s2
function. + for t < =0 ;e[f1(t)]
h(t)]
The Laplace Function
transform+as ;e[f2(t)]
of the sinusoidal func
s 10 where
= where
A
A and
s2sin Awt
ware
and ware constants,
for constants,
t 0
is obtained
is obtained as follows:
follows: Noting
Notingthat
that
al function. The Laplace transform of the sinusoidal function
jw1 jw1
9
al Exponential
nd function. The
ware constants, function.
Laplace
is obtained J
transform
as (t)Consider
=
of
follows: 0
the the
sinusoidal
Noting ethat = cos
eexponential
= cos
for
function +
wt wt
t j sin
+
< 0 wtwt
jfunction
sin
J(t) = 0 for t < 0
J(t) == 0Aand jw1and
esin wt
= cos /wt for
for ==
(t)+tt j<sin000A
wt sin wt for for t <t 0 0
jwt
are constants, is = A sin wtas follows:
obtained for tNoting 0 that e- e-jwt = =coscos - -j sin
wt wt wtwt
j sin
here
are A andisware
constants, obtained
jw1 we
constants,
can
we as follows:
write
can write
=
is
Noting
Ae-
obtained at
that
for t Noting
as follows: 0 that
e =e-cos jwt wt
= cos+ j wt
sin -wt j sin wt
re A and ae are jw1 constants.
= cos wt + j sin The
wtejw1 Laplace
= cos wttransform
+ j sin wt of this exponential fu
te
be obtained as =follows:
e- jwt cos wt - j sin wt
d
;e[Ae- ] =
Hence,
e-jwt = cos
at
Hence,
00
wt - j sin wt
Ae-ate- st dt = A
100
AlAl
e-(a+s)t dt = -
A-
1
OO OO
e- jwt = cos wt - j sin wt
= --: 0 (e Jwt Jwt
o wt]wt]
sinsin = --: (e - -e-Jwt)e-st
e-Jwt)e-st
• •
s+a
dtdt • •
e can write
sin wt] = --: Al Jwt
OO
•
2J 2J0 0
A
(e • - e-Jwt)e-st
A ll dt = =
AA
--
11
-- -- --
Aw
Aw
-- -- -- = =
s2s2+ +w2w2
Al
Al
sin wt] = --: OOA
=
2J 0
OO
(e Jwt
-
•
2J 0 Similarly,
l- e-Jwt)e-st
- -
•
-the
Adt
- -
1
- =
Laplace transform
Aw
2j
of of
s
2j s - jw - jw 2j s + jw
2j s + jw
Al
A
he Laplace transform
= - -of - - - wt -- = derived OO 2
as follows: S S+ + ww
2j s - jw 2j s + jw s2 + w
aplace transform
2011
;erA
MCHA2000 - Mechatronics
wt
of A cos Comments.
sin
cos
Comments.
can be
wt]
wt]
Systems = 2= As
derived
--:The2
as
The Jwt
follows:
Laplace
(e
Laplace
| www.newcastle.edu.au
• - transform
e-Jwt)e-st
transform• of of
st
any
dt
any Laplacetransformable
Laplace transformab
place transform of A f(t)
f(t)coscan wtcan bebefound
canfound
be As 2Jby
+
derived
S by w 0as follows:f(t)f(t)
multiplying
multiplying byby e-ste-andand
thenthen integratingthe
integrating theprod
pro
Existence of the Laplace Transform
10
If
• f(t) is piece-wise continuous on [0,∞)
• f(t) is of exponential order σc , that is
σc t
|f (t)| < M e , t ≥ t0
Then,
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
18 The Laplace Transform Chap. 2
Transform
TABLE
Pairs (incomplete)
2-1 Laplace Transform Pairs
11
f(t) F(s)
1 Unit impulse cS{t) 1
7
9
[f! ] F(s) If[(I) dll/eD< Iff[(I) dl dll/eD<
f£[!o'[(I)
f(t) dt dt = - 2 + dl] =2 +
S S s
10 ["'[(I) dl = lim F(s) 1.""[(
if I) dl exists
108
11
1 o
f(t)(dt)n] =
s-O
F(:) +
["'[(I) dl = lims F(s) k=l
o s-O
±
= F(s 1.""[([/···1
n_
1
k+l
S if + a) I) dl exists
f(t)(dt)k ]
I=O±
12
119 f£[!o'[(I)
!:e[f(t - a)l(t - a)] dl]= e-asF(s)
= = + a)
F(s
12 dP(s)
13 !:e[f(t - a)l(t - a)] == -
!:e[tf(t)] e-asF(s)
--
2011 10
13
MCHA2000 - Mechatronics Systems |
["'[(I) dl = lim F(s)
o
www.newcastle.edu.au
s-O
!:e[tf(t)] = d
-
ds
if 1.""[(
2- - I) dl exists
dP(s)
14 = - 2dsF(s)
ds
Transfer Function
14
u(t) y(t)
Linear
System
Y (s)
H(s) =
U (s)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Example
15
ÿ + a1 ẏ + a0 y = b1 u̇ + b0 u
n
dn f k−1
"
n
X
n−k d f (0)
L = s F (s) − s
dtn dtk−1
k=1
a 1 s + b0
Y (s) = 2 U (s)
s + a1 s + a0
H(s)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Impulse
16
δ(t) = 0, 8t 6= 0
Z ∞
δ(t) = 1 L[δ(t)] = 1
22 −∞ The Laplace Transform Chap. 2
1(1)
Area = 1 to lim 4_ 00
to
t0 →0
o
Figure 2-6 Pulse function. Figure 2-7 Impulse function.
δ(t) y(t)
H(s)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
System Response to Arbitrary Inputs
18
u(t) y(t)
H(s)
L(·)
u(t) U (s)
L−1 (·)
y(t) Y (s) = H(s) U (s)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Rational Functions
19
P (s)
Y (s) =
Q(s)
a 1 s + b0
ÿ + a1 ẏ + a0 y = b1 u̇ + b0 u Y (s) = 2
U (s)
s + a1 s + a0
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Poles & Zeroes
20
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Proper rational functions
21
P (s)
A rational function Y (s) =
Q(s)
Is said to be
P (s)
Y (s) =
Q(s)
A Bs + C
(s + p)n (s2 + bs + c)m
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Partial Fraction Expansions (real roots)
23
Ai
(s − pi )
Am Am−1 A1
+ + ··· +
(s − p1 ) m (s − p1 ) m−1 (s − p1 )
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Partial Fraction Expansions (Complex roots)
24
Bs + C
(s2 + bs + c)
Bm s + C m Bm−1 s + Cm−1 B1 s + C 1
2
+ 2 + ··· + 2
(s + bs + c) m (s + bs + c) m−1 (s + bs + c)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Example
25
P (s) s2 + 3s + 7
= 5
Q(s) s + 10s4 + 39s3 + 76s2 + 78s + 36
Then,
P (s) A Bs + C A1 A2
= + 2 + +
Q(s) s + 2 s + 2s + 2 (s + 3) (s + 3)2
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Example
26
s+3
Y (s) =
(s + 1)(s + 2)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Examples
27
2s + 12
Y (s) = 2
s + 2s + 15
s2 + 2s + 3
Y (s) =
(s + 1)3
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Matlab
28
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Matlab
29
• Step
• Impulse
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Simulink
30
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
31
n m
ẋ = A x + B u, x ∈ R ,u ∈ R ,
p
y = C x + D u, y∈R ,
A11 A12 ... A1n B11 B12 ... B1m
A21 A22 ... A2n B21 B22 ... B2m
A= .. , B= . .. ,
.. .. .. .. ..
. . . . .. . . .
An1 An2 . . . Ann Bn1 Bn2 . . . Bnm
C11 C12 . . . C1n D11 D12 . . . D1m
C21 C22 . . . C2n D21 D22 . . . D2m
C= , D= .
.. .. . .. .
.. . . .
..
. . .. .. ..
Cp1 Cn2 . . . Cpn Dp1 Dn2 . . . Dpm
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
32
System
c x(t) "
x(t)
x(t) , , u(t) , F (t), y(t) , x(t)
m F (t) p(t)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
33
Y(s) = [C(sI − A) −1
B + D] U(s)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
34
bm sm + bm−1 sm−1 + · · · + b1 s + b0
H(s) =
sn + an−1 sn−1 + · · · + a1 s + a0
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
35
System
c x(t) " " " "
ẋ1 (t) 0 m−1
x1 (t) 0
= + u(t),
m F (t) ẋ2 (t) −c−1 −b m−1 x2 (t) 1
"
⇥ ⇤ x1 (t)
b y(t) = 1 0
x2 (t)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
36
H(s) = [C(sI − A) −1
B + D]
[cof(sI − A)]T
(sI − A) −1
=
det(sI − A)
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
State-Space Models and TF
37
" " " "
ẋ1 (t) 0 m−1 x1 (t) 0
= +
"
u(t), s −1
ẋ2 (t) −c−1 −b m−1 x2 (t) 1 (sI − A) =
−m
⇥
⇤ x1 (t)
" c−1 s + bm−1
y(t) = 1 0
x2 (t)
−1 T
" "
s + bm T
−1
−c s + bm −1
m−1
[cof(sI − A)] = =
m−1 s −c−1 s
$ $
⇥ ⇤ s + bm m 0
−1 −1
1 0
−c−1 s 1 m−1
H(s) = 2 1
= 2
s + bm s + c m
−1 −1 s + bm−1 s + c1 m−1
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Matlab
38
• TF to SS
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Block Diagrams & TF
39
System
c x(t)
m F (t)
Fm ẍ ! ẋ ! x
F m −1
− −
Fd
Fs b
c−1
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Block Diagrams & TF
40
System
c x(t)
m F (t)
m−1
X(s) = 2 E(s)
s
m−1
X(s) = 2 F (s)
s + bm s + c−1 m
−1 −1
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au
Block diagrams to TF
42
Method:
2011
MCHA2000 - Mechatronics Systems | www.newcastle.edu.au