Lecture 3
Lecture 3
dn y d n− 1 y d n− 1 u n t
+ a1 + . . . + a n y = b1 + . . . + bn u y( t) = Ck−1( t) eα kt + g( t − τ )u(τ ) dτ
dtn dtn−1 dtn−1 0
k=1
PI controller
t
u = k(v r − v) + ki (vr − v(τ )) dτ
−1 0
∞
2. Laplace Transforms L f = F ( s) = e− st f ( t) dt
0
Consider a function f defined on 0 ≤ t < ∞ and a real number
σ > 0. Assume that f grows slower than eσ t for large t. The Transform of the derivative
Laplace transform F = L f of f is defined as ∞ ∞ ∞
df f ( t)
L = e− st dt = e− st f ( t) + s e− st f ( t) dt = − f (0) + sL f
∞ dt 0 dt 0 0
L f = F ( s) = e− st f ( t) dt
0 Initial value theorem
∞ ∞
Example 1:
lim sF ( s) = lim se− st f ( t) dt = lim e−v f ( t/ s) dv = f (0)
∞ ∞ 1 s→∞ s→∞ 0 s→∞ 0
1
f ( t) = 1 , F ( s) = e− stdt = − e− st =
0 s 0 s Final value theorem
∞ ∞
Example 2: lim sF ( s) = lim se − st
f ( t) dt = lim e−v f ( t/ s) dv = f (∞)
s→0 s→0 s→0
1 − st∞
0 0
∞
1
f ( t) = e− at, F ( s) = e−( s+a) tdt = − e =
0 s+a 0 s+a Behavior of f (t) for small t is similar to behavior of sF (s) for
large s and vice versa!
c K. J. Åström August, 2000 2
Properties Inverse Transforms
Linearity: L (a f + bg) = aL f + bL g A simple way to find time functions corresponding to a rational
Differentiation: L = sL f − f (0)
df Laplace transform. Write F (s) in a partial fraction expansion
dt
t
Integration: L 0 f (τ )dτ = 1s L f B ( s) B ( s) C1 C2 Cn
F ( s) = = = + + ... +
A( s) ( s − a1 )( s − a2 ) . . . ( s − an ) s − a1 s − a2 s − an
Time shift: L f (t − T ) = e−sT L f B ( a k)
Ck = lim ( s − ak ) F ( s) =
Time stretch: L f (at) = 1a F ( 1a ) s→ a k ( ak − a1 ) . . . ( ak − ak−1 )( s − ak+1 ) . . . ( ak − an )
t
Convolution: L 0 f (t − τ )g(τ )dτ = F (s) G (s) The time function corresponding to the transform is
Final value Theorem: lim s→0 sF (s) = lim t→∞ f (t)
f ( t) = C1 ea1 t + C2 ea2 t + . . . + Cn ean t
Initial value Theorem: lim s→∞ sF (s) = limt→0 f (t)
• Note: Valid only if limits exist! Parameters a k give shape and numbers Ck give magnitudes.
Notice that a k may be complex numbers. With multiple roots
the constants Ck are instead polynomials.
e [m/s]
2
10s 10θ 0
E( s) = 2 Θ( s) = 1.5
s + 2ω 0 s + ω 0
2 ( s + ω 0 )2 1
0.5
Converting this to a time function we get 0
0 10 20 30 40 50 60 70 80 90 100
t [s]
10θ 0
e( t) = te−ω 0 t
ω0 What can we conclude?
• Superposition
• The form of the equations
Y ( s) k
G ( s) = =
U ( s) ms2
y( t) = C1 ea1 t + C2 ea2 t + . . . + Cn ean t the second and third component decay exponentially and
after a short time only the constant components remains. The
Parameters a k give shape and Ck give magnitudes. amplitude of the constant component is 2.5. (lim s→0 sY (s)).
1.5
A=[1 5 7 5 6]
1
roots(A)
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
gives the roots of A(s) to be −2, −3, and ±i. This means that
1 the time function has the components
0.8
0.6
e−2t, e−3t, sin t, and cos t
0.4
0.2
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
the first components decay exponentially and after a short time
only the periodic components remain.
c K. J. Åström August, 2000 7
Insight from Transfer Functions Insight from Transfer functions
B ( s)
• Derive transfer function G (s) = A(s)
• Make a series expansion of G (s) for small s
• Compute poles a k (roots of A(s) = 0) G ( s) = c0 + c1 s + . . . + ck sk + . . .
Free motion of system has component Ce ak t
If c0 = 0 like a static system gain c0 .
• Compute zeros b k (roots of B (s) = 0)
If c0 = c2 = . . . = ck−1 = 0 and ck = 0 like k
The system blocks transmission of the signal e bk t differentiators.
• Look at behavior for small s (large t, low frequencies) and • Make a series expansion of G (s) for large s (high fre-
large s (small t, high frequencies) quency behavior)
c− 1 c− 2 ck
G ( s) = + 2 + ... + k + ...
s s s
Examples Summary
E XAMPLE 1—PID CONTROLLER • Finding relations between signals in linear time invariant
The PID controller has the transfer function systems is very simple by using Laplace transforms
ki ki • Fits very well to the block diagram description
G ( s) = k + + kd s = + k + kd s
s s • It is natural to think in terms of transfer functions
This is already in series expansion form. For slow signals • The similarity of signals and systems
(small s) it behaves like an integrator and for fast signals (large • Qualitative reasoning (small s corresponds to large t and
s) it behaves like a differentiator. large s correspond to small t) is very useful to get a quick
insight into the behavior of signals and systems
E XAMPLE 2—PID CONTROLLER WITH D ERIVATIVE F ILTER
1 sTd
G ( s) = k 1 + +
sTi 1 + sTd/ N
Behaves like a static gain k(1 + N ) for fast signals (large s).