0% found this document useful (0 votes)
4 views

03_transfer_functions_laplace

The document is a lecture on transfer functions presented by Prof. Alberto Bemporad at the University of Trento during the academic year 2010-2011. It covers the Laplace transform, its properties, and applications in automatic control systems, including the definition and computation of transfer functions for linear systems. Examples are provided to illustrate the concepts, including common Laplace transforms and their use in deriving transfer functions from differential equations.

Uploaded by

Mubarak Sani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

03_transfer_functions_laplace

The document is a lecture on transfer functions presented by Prof. Alberto Bemporad at the University of Trento during the academic year 2010-2011. It covers the Laplace transform, its properties, and applications in automatic control systems, including the definition and computation of transfer functions for linear systems. Examples are provided to illustrate the concepts, including common Laplace transforms and their use in deriving transfer functions from differential equations.

Uploaded by

Mubarak Sani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Lecture: Transfer functions

Automatic Control 1

Transfer functions

Prof. Alberto Bemporad

University of Trento

Academic year 2010-2011

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 1 / 28
Lecture: Transfer functions Laplace transform

Laplace transform
Consider a function f (t), f : R → R, f (t) = 0 for all t < 0.

Definition
1.5

The Laplace transform L [f ] of f is the function


1
F : C → C of complex variable s ∈ C defined by

f(t)
0.5
Z∞
−st
F(s) = e f (t)dt 0

0
−0.5
−1 0 1 2 3 4 5
t
for all s ∈ C for which the integral exists

Once F(s) is computed using the integral, it’s


extended to all s ∈ C for which F(s) makes sense

Laplace transforms convert integral and differential


Pierre-Simon Laplace equations into algebraic equations. We’ll see how ...
(1749-1827)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 2 / 28
Lecture: Transfer functions Laplace transform

Examples of Laplace transforms

Unit step
 Z +∞ ∞
0 if t < 0 −st
1 1
f (t) = 1I(t) = ⇒ F(s) = e dt = − =
1 if t ≥ 0 s s
0 0

Dirac’s delta (or impulse function1 )


 Z ∞
0 if t 6= 0
f (t) = δ(t) ¬ such that δ(t) = 1
+∞ if t = 0
−∞
Z +∞
F(s) = 1 = δ(t)e−st dt = e−s0 = 1, ∀s ∈ C
0

1
The function δ(t) is can be considered as the limit of the sequence of functions fε (t) for
ε→0 ¨
1
ε
se 0 ≤ t ≤ ε
fε (t) =
0 otherwise
To be mathematically correct, Dirac’s δ is a distribution, not a function
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 3 / 28
Lecture: Transfer functions Laplace transform

Properties of Laplace transforms


Linearity
L [k1 f1 (t) + k2 f2 (t)] = k1 L [f1 (t)] + k2 L [f2 (t)]

2
Example: f (t) = δ(t) − 2 1I(t) ⇒ L [f ] = 1 − s

Time delay
L [f (t − τ)] = e−sτ L [f (t)]

3e−2s
Example: f (t) = 3 1I(t − 2) ⇒ L [f ] = s

Exponential scaling
L [eat f (t)] = F(s − a), where F(s) = L [f (t)]

1
Example: f (t) = eat 1I(t) ⇒ L [f ] = s−a
jωt −jωt
e +e s
Example: f (t) = cos(ωt) 1I(t) = 2
1I(t) ⇒ L [f ] = s2 +ω2
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 4 / 28
Lecture: Transfer functions Laplace transform

Properties of Laplace transforms

Time derivative2 :
d
L[ f (t)] = sL [f (t)] − f (0+ )
dt
ω
Example =⇒ f (t) = sin(ωt) 1I(t) ⇒ L[f ] = s2 +ω2

Multiplication by t
d
L [tf (t)] = − L [f (t)]
ds
1
Example =⇒ f (t) = t 1I(t) ⇒ L[f ] = s2

2
f (0+ ) = limt→0+ f (t). If f is continuos in 0, f (0+ ) = f (0)
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 5 / 28
Lecture: Transfer functions Laplace transform

Initial and final value theorems

Initial value theorem

lim f (t) = lim sF(s)


t→0+ s→∞

1 1
Example: f (t) = 1I(t) − t 1I(t) ⇒ F(s) = s
− s2
f (0+ ) = 1 = lims→∞ sF(s)

Final value theorem

lim f (t) = lim sF(s)


t→+∞ s→0

1 1
Example: f (t) = 1I(t) − e−t 1I(t) ⇒ F(s) = s
− s+1
f (+∞) = 1 = lims→0 sF(s)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 6 / 28
Lecture: Transfer functions Laplace transform

Convolution

The convolution h = f ∗ g of two signals f and g is the signal


Z t
h(t) = f (τ)g(t − τ)dτ
0

It’s easy to see that h = f ∗ g = g ∗ f


The Laplace transform of the convolution:

L [f (t) ∗ g(t)] = L [f (t)]L [g(t)]

Laplace transforms turn convolution into multiplication !

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 7 / 28
Lecture: Transfer functions Laplace transform

Common Laplace transforms

1
1
s
δ 1

δ (k) sk
In MATLAB use
1
t F = LAPLACE(f)
s2
k
t 1
,k≥0
k! sk+1 MATLAB
eat
1 » syms t
s−a » f=exp(2*t)+t-tˆ2
cos ωt
s
=
1/2
+
1/2 » F=laplace(f)
s2 + ω 2 s − jω s + jω

sin ωt
ω
=
1/2j

1/2j F =
s2 + ω 2 s − jω s + jω
s cos φ − ω sin φ 1/(s-2)+1/sˆ2-2/sˆ3
cos(ωt + φ)
s2 + ω 2
s+a
e−at cos ωt
(s + a)2 + ω 2
ω
e−at sin ωt
(s + a)2 + ω 2

courtesy of S. Boyd, http://www.stanford.edu/~boyd/ee102/

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 8 / 28
Lecture: Transfer functions Laplace transform

Properties of Laplace transforms


! ∞
f (t) F (s) = f (t)e−st dt
0

f +g F +G

αf (α ∈ R) αF

df
sF (s) − f (0)
dt
k
d f df dk−1 f
sk F (s) − sk−1 f (0) − sk−2 (0) − · · · − k−1 (0)
dtk dt dt
! t
F (s)
g(t) = f (τ ) dτ G(s) =
0 s
1
f (αt), α > 0 F (s/α)
α
eat f (t) F (s − a)

dF
tf (t) −
ds
dk F (s)
tk f (t) (−1)k
dsk
f (t) ! ∞
F (s) ds
t s
"
0 0≤t<T
g(t) = ,T ≥0 G(s) = e−sT F (s)
f (t − T ) t ≥ T

courtesy of S. Boyd, http://www.stanford.edu/~boyd/ee102/

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 9 / 28
Lecture: Transfer functions Transfer functions

Transfer function

Let’s apply the Laplace transform to continuous-time linear systems



ẋ(t) = Ax(t) + Bu(t)
y(t) = Cx(t) + Du(t)
x(0) = x0

Define X(s) = L [x(t)], U(s) = L [u(t)], Y(s) = L [y(t)]


Apply linearity and time-derivative rules

sX(s) − x0 = AX(s) + BU(s)
Y(s) = CX(s) + DU(s)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 10 / 28
Lecture: Transfer functions Transfer functions

Transfer function

X(s) = (sI − A)−1 x0 + (sI − A)−1 BU(s)


Y(s) = C(sI − A)−1 x0 + (C(sI − A)−1 B + D)U(s)
| {z } | {z }
Laplace transform Laplace transform
of natural response of forced response

Definition
The transfer function of a continuous-time linear system (A, B, C, D) is the ratio

G(s) = C(sI − A)−1 B + D

between the Laplace transform Y(s) of output and the Laplace transform U(s) of
the input signals for the initial state x0 = 0

MATLAB
»sys=ss(A,B,C,D);
»G=tf(sys)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 11 / 28
Lecture: Transfer functions Transfer functions

Transfer function
u(t) y(t) U(s) Y(s)
A,B,C,D G(s)

x0=0

Example: The linear system


    
−10 1 0
 ẋ(t) = x(t) + u(t)
0 −1 1
 ” —
y(t) = 2 2 x(t)

has the transfer function


MATLAB
»sys=ss([-10 1;
2s + 22 0 -1],[0;1],[2 2],0);
G(s) = »G=tf(sys)
s2 + 11s + 10
Note: The transfer function does not depend on the Transfer function:
2 s + 22
input u(t)! It’s only a property of the linear system. ----------
sˆ2 + 11 s + 10
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 12 / 28
Lecture: Transfer functions Transfer functions

Transfer functions and linear ODEs


Consider the nth -order differential equation with input
dy(n) (t) dy(n−1) (t)
n
+ an−1 + · · · + a1 ẏ(t) + a0 y(t) =
dt dtn−1
du(m) (t) du(m−1) (t)
bm + bm−1 + · · · + b1 u̇(t) + b0 u(t)
dtm dtm−1

For initial conditions y(0) = ẏ(0) = y(n−1) (0), we obtain immediately the transfer
function from u to y
bm sm + bm−1 sm−1 + · · · + b1 s + b0
G(s) =
sn + an−1 sn−1 + · · · + a1 s + a0

Example
MATLAB
»G=tf([2 22],[1 11 10])
ÿ + 11ẏ + 10y = 2u̇ + 22u
Transfer function:
2 s + 22
2s + 22 ----------
G(s) = sˆ2 + 11 s + 10
s2 + 11s + 10
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 13 / 28
Lecture: Transfer functions Transfer functions

Example

Differential equation

ÿ(t) + 3ẏ(t) + y(t) = u̇(t) + u(t)

The transfer function is


s+1
G(s) =
s2 + 3s + 1
The same transfer function G(s) can be obtained through a state-space
realization     
0 1 0
 ẋ(t) = x(t) + u(t)
−1 −3 1
 ” —
y(t) = 1 1 x(t)

from which we compute


    −1  
” — 1 0 0 1 0 s+1
G(s) = 1 1 s − =
0 1 −1 −3 1 s2 + 3s + 1

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 14 / 28
Lecture: Transfer functions Transfer functions

Some common transfer functions


Integrator
Z t
 u(t) 1 y(t)
ẋ(t) = u(t) y(t) = u(τ)dτ s
y(t) = x(t) 0

Double integrator

ZZ t
 ẋ1 (t) = x2 (t) u(t) 1 y(t)
ẋ (t) = u(t) y(t) = u(τ)dτ s2
 2 0
y(t) = x1 (t)

Damped oscillator with frequency ω0 rad/s and damping factor ζ



   
0 ω0 0 u(t) kω02 y(t)
 ẋ(t) = x(t) +
” −ω 0 — −2ζω 0 kω0 s + 2ζω0s + ω02
2

y(t) = 1 0 x(t)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 15 / 28
Lecture: Transfer functions Transfer functions

Impulse response
Remember that an input signal u(t) produces an output signal y(t) whose
Laplace transform Y(s) is
Y(s) = G(s)U(s)
where U(s) = L [u], for initial state x(0) = 0
Speciale case: impulsive input u(t) = δ(t), U(s) = 1. The corresponding
output y(t) is called the impulse response
G(s) is the Laplace transform of the impulse response y(t)
Y(s) = G(s) · 1 = G(s)

0.4

0.35
Example:

impulse response y(t)


0.3

2 0.25

G(s) = 0.2

s2 + 3s + 1 0.15

0.1

−1 −2t 0.05
L [G(s)] = 2te
0
0 1 2 3 4 5 6
t

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 16 / 28
Lecture: Transfer functions Transfer functions

Inverse Laplace transform

The impulse response y(t) is therefore the inverse Laplace transform of the
transfer function G(s), y(t) = L −1 [G(s)]
The general formula for computing the inverse Laplace transform is
Z σ+j∞
1
f (t) = F(s)est ds
2πj σ−j∞

where σ is large enough that F(s) is defined for ℜs ≥ σ


This formula is not used very often

MATLAB
In MATLAB use » syms s
» F=2*s/(sˆ2+1)
» f=ilaplace(F)
f = ILAPLACE(f)
f = 2*cos(t)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 17 / 28
Lecture: Transfer functions Transfer functions

Examples

Integrator
u(t) = δ(t) u(t) 1 y(t)
y(t) = L −1 [ 1s ] = 1I(t) s

Double integrator
u(t) = δ(t) u(t) 1 y(t)
y(t) = L −1 [ s12 ] = 1I(t)t s2

Undamped oscillator
u(t) = δ(t) u(t) 1 y(t)
y(t) = L −1 [ s21+1 ] = 1I(t) sin t s2 + 1

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 18 / 28
Lecture: Transfer functions Transfer functions

Poles and Zeros

u(t) y(t)
G(s)

Rewrite the transfer function as the ratio of polynomials (m < n)

bm sm + bm−1 sm−1 + · · · + b1 s + b0 N(s)


G(s) = =
sn + an−1 sn−1 + · · · + a1 s + a0 D(s)

The roots pi of D(s) are called the poles of the linear system G(s)
The roots zi of N(s) are called the zeros of G(s)
G(s) is often written in zero/pole/gain form

(s − z1 ) . . . (s − zm )
G(s) = K
(s − p1 ) . . . (s − pn )

In MATLAB use ZPK to transform to zero/pole/gain form

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 19 / 28
Lecture: Transfer functions Transfer functions

Examples

Example 1
s+2 s+2
G(s) = =
s3 + 2s2 + 3s + 2 (s + 1)(s2 + s + 2)
p p
poles: {−1, − 21 + j 2
7
, − 21 −j 2
7
}, zeros: {−2}

Example 2
MATLAB
» G=tf([2 22],[1 11 10])
2s + 22 2(s + 11) » zpk(G)
G(s) = =
s2 + 11s + 10 (s + 10)(s + 1) Zero/pole/gain:
2 (s+11)
poles: {−10, −1}, zeros: {−11} --------
(s+10) (s+1)

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 20 / 28
Lecture: Transfer functions Transfer functions

Partial fraction decomposition


The partial fraction decomposition of a rational function G(s) = N(s)/D(s) is
(assuming pi 6= pj )3
α1 αn
G(s) = + ··· +
s − p1 s − pn
αi is called the residue4 of G(s) in pi ∈ C
αi = lim (s − pi )G(s)
s→pi

The inverse Laplace transform of G(s) is easily computed by inverting each


term
L −1 [G(s)] = α1 ep1 t + · · · + αn epn t
3
For multiple poles pi with multiplicity k we have the terms
αi1 αik 1 d(k−j)
+ ··· + , αij = lim [(s − pi )k G(s)]
(s − pi ) (s − pi ) k (k − j)! s→pi ds(k−j)
and the inverse Laplace transform is
tk−1
αi1 epi t + · · · + αik epi t
(k − 1)!
4
Residues of conjugate poles are conjugate of each other: pi = p̄j ⇒ αi = ᾱj
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 21 / 28
Lecture: Transfer functions Linear algebra recalls

Linear algebra recalls


The inverse of a matrix A ∈ Rn×n
 
a11 a12 ... a1n
 a21 a22 ... a2n 
A=
 ... .
.
.
.


. ... .
an1 an2 ... ann

is the matrix A−1 such that A−1 A = AA−1 = I


The inverse A−1 can be computed using the adjugate matrix Adj A

Adj A
A−1 =
det A
The adjugate matrix is the transpose of the cofactor matrix C of A

Adj A = CT , Cij = (−1)i+j Mij

where Mij is the (i, j) cofactor of A, that is the determinant of the


(n − 1) × (n − 1) matrix that results from deleting row i and column j of A
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 22 / 28
Lecture: Transfer functions Linear algebra recalls

Numerical caveat

Consider the linear system of n equalities Ax = b in the unknown vector


x ∈ Rn (A ∈ Rn×n , b ∈ Rn )
If det A 6= 0, the unique solution is x = A−1 B
However, computing A−1 is not a smart thing to do for finding x !
Numerical example: n=1000; A=rand(n,n)+10*eye(n); b=rand(n,1);

MATLAB MATLAB
» tic; x=inv(A)*b; toc » tic; x=A\ b; toc

elapsed_time = elapsed_time =

2.2190 0.8440

First A is inverted, an operation that The linear system is solved using Gauss
costs O(n3 ) arithmetic operations method, an operation that costs O(n2 )
arithmetic operations

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 23 / 28
Lecture: Transfer functions Linear algebra recalls

Poles, eigenvalues, modes

Linear system

ẋ(t) = Ax(t) + Bu(t)
NG (s)
y(t) = Cx(t) + Du(t) G(s) = C(sI − A)−1 B + D ¬
x(0) = 0 DG (s)

Use the adjogate matrix to represent the inverse of sI − A

C Adj(sI − A)B
C(sI − A)−1 B + D = C +D
det(sI − A)

The denominator DG (s) = det(sI − A) !

The poles of G(s) coincide with the eigenvalues of A

Well, not always ...

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 24 / 28
Lecture: Transfer functions Linear algebra recalls

Poles, eigenvalues, modes

Some eigenvalues of A may not be poles of G(s) in case of pole/zero


cancellations
Example:    
1 0 0 ” —
A= , B= , C= 0 1
0 −1 1
det(sI − A) = (s − 1)(s + 1)
– 1
™ 
” —
s−1
0 0 1
G(s) = 0 1 1 =
0 1 s+1
s+1

The pole s = 1 has no influence on the input/output behavior of the system


(but it has influence on the free response x1 (t) = et x10 )
We’ll better understand cancellations when investigating reachability and
observability properties

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 25 / 28
Lecture: Transfer functions Linear algebra recalls

Steady-state solution and DC gain


Let A asymptotically stable. Natural response vanishes asymptotically
Assume constant u(t) ≡ ur . What is the asymptotic value xr = limt→∞ x(t) ?

Impose 0 = ẋr (t) = Axr + Bur and get xr = −A−1 Bur

The corresponding steady-state output yr = Cxr + Dur is

yr = (−CA−1 B + D) ur
| {z }
DC gain

Cf. final value theorem:

yr = lim y(t) = lim sY(s)


t→+∞ s→0
ur
= lim sG(s)U(s) = lim sG(s)
s→0 s→0 s
−1
= G(0)ur = (−CA B + D)ur

G(0) is called the DC gain of the system


Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 26 / 28
Lecture: Transfer functions Linear algebra recalls

DC gain - Example
 – ™  
− 21 − 12 2
 ẋ(t) = 1 x(t) + u(t)
0 0
 ” 2 —
1 3
y(t) = 4 4
x(t)
• ˜−1
− 21 − 12 2
DC gain: − [ 14 3
4 ] 1
0 0 =3
2
2s+3
Transfer function: G(s) = 4s2 +2s+1
. G(0)=3
6 6
Output y(t) for different initial
5 5
conditions and input u(t) ≡ 1
4 4

MATLAB
y(t)

u(t)

3 3
»sys=tf([2 3],[4 2 1]);
2 2 »dcgain(sys)

1 1 ans =

0 0 3
0 10 20 30 0 10 20 30
t t
Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 27 / 28
Lecture: Transfer functions Linear algebra recalls

English-Italian Vocabulary

transfer function funzione di trasferimento


Laplace transform trasformata di Laplace
unit step gradino unitario
delay ritardo
damped oscillator oscillatore smorzato
impulse response risposta all’impulso
inverse Laplace transform antitrasformata di Laplace
partial fraction decomposition decomposizione in fratti semplici
DC gain guadagno in continua
steady-state regime stazionario

Translation is obvious otherwise.

Prof. Alberto Bemporad (University of Trento) Automatic Control 1 Academic year 2010-2011 28 / 28

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy