Professional Documents
Culture Documents
Handout2 PDF
Handout2 PDF
HANDOUT 2
Impulse responses, step responses and transfer
functions.
transfer function
u(t)
Laplace transform
pair
g(t)
y(s)=
G(s)u(s)
G(s)
u(s)
y(t)=
Zt
0
u()g(t ) d
= u(t) g(t)
= g(t) u(t)
impulse response
Summary
The
impulse response,
step response and
transfer function
of a Linear, Time Invariant and causal (LTI) system each completely
characterize the input-output properties of that system.
Given the input to an LTI system, the output can be deterermined:
In the time domain: as the convolution of the impulse response
and the input.
In the Laplace domain: as the multiplication of the transfer
function and the Laplace transform of the input.
Contents
2 Impulse responses, step responses and transfer functions.
2.1 Preliminaries . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . 20
2.1 Preliminaries
2.1.1
a)
or b)
T
as 0.
taking limits,
as 0
= (t T )
T
impulse at t = T
(impulse occurs
when argument= 0)
1/ if /2 < t < /2
h (t) =
0
otherwise
f (t)
h (t T )
t
Let
Z
Z T+
1
2
f
(t)
dt
I =
f (t)h (t T ) dt =
Z
1 T+ 2
f (t) dt
=
T
2
Now,
I
=
1
and also
I
max
f (t)
T /2tT +/2
min
f (t)
T /2tT +/2
f (t)(t T ) dt = f (T )
2.1.3
(t)est dt =
es0 = 1
1 if t 0
H(t) =
0 if t < 0
If you know the impulse response of a system, then the response of
that system to any input can be determined using convolution, as we
shall now show:
6
u(t)
y(t)
(impulse response
= g(t))
INPUT
OUTPUT
impulse response
(t)
g(t)
(t )
g(t )
u()(t )
Z
u()g(t )
Z
u()(t ) d
{z
}
u()g(t ) d
u(t)
u()g(t )d
2.2.2
u()g(t )d
is abbreviated as
y(t) =
u(t T )g(T ) dT
= g(t) u(t)
dt
dt
dt 2
dy
= y(0) = u(0) = 0,
and if all initial conditions are zero, i.e. dt
t=0
s 2 y(s)
+ s y(s)
+ y(s)
= a s u(s)
+ bu(s)
or
s 2 + s + y(s)
= a s + b u(s)
and so
y(s)
=
as + b
s 2 + s +
{z
}
|
u(s)
Transfer function
(the
The function 2a s+b is called the transfer function from u(s)
s +s+
input) to y(s)
(the output).
Clearly the same technique will work for higher order linear ordinary
differential equations (with constant coefficients). For such systems,
the transfer function can be regarded as a placeholder for the
coefficients of the differential equation.
2.3.1
We have seen that both convolution with the impulse reponse (in the
time domain) and multiplication by the transfer function (in the
Laplace domain) can both be used to determine the output of a linear
system. What is the relationship between these techniques?
Assume that g(t) = u(t) = 0 for t < 0,
L g(t) u(t)
=L
Z
Z
0
est
Z Z
0
g()u(t ) d
Z
g()u(t ) d dt
est g()u(t ) dt d
giving
L g(t) u(t) =
Z
0
0 es esT g()u(T ) dT d
es g()d
= L g(t) L u(t)
= g(s)
u(s)
In words, a Laplace transform (easy when you get used to them) turns
a convolution (always hard!) into a multiplication (very easy).
10
y(s)
= G(s) u(s)
where G(s) = Lg(t) is called the transfer function of the system.
It follows that all LTI systems have transfer functions (given by the
Laplace transform of their impulse response).
transfer function
u(t)
g(t)
y(s)=
G(s)u(s)
G(s)
u(s)
impulse response
11
In general a system may have more than one input. In this case, the
transfer function from a particular input to a particular output is
defined as the Laplace transform of that output when an impulse is
applied to the given input, all other inputs are zero and all initial
conditions are zero.
This is most easily seen in the Laplace domain: If an LTI system has an
input u and an output y then we can always write
y(s)
= G(s)u(s)
+ other terms independent of u.
12
:= (t).
R
L
B
e(t)
K(t)
1)
(t) = Ki(t)
2)
Newton
3)
e(t) = Ri(t) + L
di(t)
+ K(t) Kirchoff
dt
(s) = K i(s)
1)
(s) B (s)
2)
= J s (s)
(0)
13
(s) to leave one equation relating e(s)
We can now eliminate i(s)
and
and (s):
First 1) and 2) give:
K i(s)
= (Js + B)(s)
and rearranging 3) gives:
+ K (s)
e(s) = (Ls + R)
+ K (s)
K
or, in the standard form (outputs on the left)
K
e(s)
(Ls + R)(Js + B) + K 2
k
(s)
e
=
(sT1 + 1)(sT2 + 1)
(s)
=
output
That is,
(s)
=
input
k
e(s)
(T1 s + 1)(T2 s + 1)
|
{z
}
Transfer Function
We call G(s) = (sT +1)(sT +1) the transfer function from e(s) to (s)
1
2
The diagram
e(s)
G(s)
(s)
e(t) = (t)
which implies
e(s) = 1
and put
(0) = i(0) = 0.
So,
(s)
=
k
1
(T2 s + 1)(T1 s + 1)
(s)
=k
+
T1
T2
sT2 + 1
sT1 + 1
1
1
T2
T1
1
1
k
+
=
T1 T2
s + 1/T2
s + 1/T1
Hence,
k
(t) =
T1 T2
e.g.
50
k
(T1 T2 )
t/T2
t/T1
e
} +
| {z }
Fast Transient Slow Transient
e
| {z
T2 1ms
T1 54 ms
slow transient
40
30
(rad/sec)
20
10
10
fast transient
20
30
k
(T1 T2 )
40
50
0.05
0.1
0.15
t (sec)
15
0.2
0.25
0.3
2.5.2
1
s
and put
(0) = i(0) = 0
(as for the impulse response.) So,
(s)
=
1
k
(T2 s + 1)(T1 s + 1) s
T1
1
1
1
T2
(s)
= k +
1
1
s
T1 T2
T1 T2
s + T2
s + T1
(t) = k H(t) +
T2
T1
t/T2
t/T1
e
e
T1 T2
T1 T2
|
{z
} |
{z
}
Fast Transient
Slow Transient
2.5
step
1.5
kT2
(T1 T2 )
(rad/sec)
Hence,
0.5
fast transient
initial slope= 0
0.5
1.5
kT1
(T1 T2 )
slow transient
2.5
0.05
0.1
0.15
t (sec)
16
0.2
0.25
0.3
2.5.3
For a system with impulse response g(t), the step response is given by
y(t) =
Zt
g()H(t ) d =
Zt
g() d
i.e.
step response = integral of impulse response
Check this on the example. Make sure you understand where the term H(t)
in the step response comes from.
Signals
Systems
L1 G(s)
y(s)
= G(s) u(s)
m
(t)
y(t) = u(t)
Zt
y(t) =
u()d (integrator)
1
s
H(t)
1
s+a
eat
s 2 +2
sin(t)
y(t)
+ 2 y(t) = u(t)
esT
(t T )
y(t) = u(t T )
y(t)
+ ay(t) = u(t)
(lag)
(delay)
2.7
x(s)
F (s)
a)
+ v(s)
y(s)
H(s)
(s)
z
G(s)
v(s)
= F (s)
x (s) + G(s)y(s)
and
(s) = H(s)v(s)
z
(s) = H(s) F (s)x(s)
= z
+ G(s)y(s)
=
H(s)F (s)
|
{z
}
x(s)
+
transfer function
(s)
from x(s)
to z
b)
e(s)
r(s) +
G(s)
H(s)G(s)
|
{z
}
y(s)
transfer function
(s)
from y(s)
to z
y(s)
K(s)
represents the simultaneous equations:
y(s)
= G(s)
e(s)
= y(s)
= G(s)
r (s) G(s)K(s)y(s)
= (1 + G(s)K(s))y(s)
= G(s)
r (s)
= y(s)
=
G(s)
r(s)
1 + G(s)K(s)
18
2.7.1
u(s)
+
+
G3 (s)
G1 (s)
G2 (s)
y(s)
K1 (s)
u(s)
+
+
y(s)
G3 (s)
1 + G3 (s)K1 (s)
G1 (s)G2 (s)
u(s)
+
y(s)
y(s)
=
u(s)
G1 (s)G2 (s)G3 (s)
1
1 + G3 (s)K1 (s)
or
y(s) =
u(s)
1 + G3 (s)K1 (s) G1 (s)G2 (s)G3 (s)
19
2.8
To obtain the transfer function, in each case, we take all initial conditions to
be zero.
The following three systems all have the same transfer
function (a 1st order lag)
1) Spring/damper system
x(t)
y(t)
= k(x y)
y
+y =x
y
k
=
=
s y(s)
+ y(s)
= x(s)
k
s + 1 y(s)
= x(s)
k
y(s)
=
x(s)
Ts + 1
T = /k
Step Response:
x(s)
=
1
1
T
1
= y(s)
=
=
s
s(sT + 1)
s
sT + 1
y(t)
20
2) RC network
C y(t)
x(t)
i=C
+y =x
RC y
dy
xy
=
dt
R
(RCs + 1)y(s)
= x(s)
1
x(s)
Ts + 1
y(s)
=
T = RC
3) Water Heater
q(t)
(J/s)
(assuming perfect mixing i.e.
all the water in the tank is at the
M(kg)
m
(kg/s)
same temperature, o )
specific
heat capacity
0 + mc(
q = Mc
o i )
=
o (s) = q
(s)
(s) + mc
(Mcs + mc)
i
1
1
o (s) = 1
(s) +
(s)
q
Ts + 1
mc
Ts + 1 i
input
T = M/m
disturbance
21
22