Lecture3 Time Domin
Lecture3 Time Domin
Lecture3 Time Domin
Fall 2016
ẋ = Ax + Bu
y = C x + Du
A: State matrix.
B: Input matrix.
C: Output matrix.
D: Transmission matrix.
Block diagram of the LTI system represented in
state-space.
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 5 / 31
Modeling in State-Space Representation:
Correlation Between Transfer Functions and State-Space Equations:
Y (s)
G (s) = = C (sI − A)−1 B + D I : Identity Matrix
U(s)
Solution
Example
Problem:
In practice, the input signal to a system is
not known ahead of time. So, the input
cannot be expressed analytically!
Solution:
Problem: The performance of a dynamic system is
In practice, the input signal to a system is therefore judged and compared under
not known ahead of time. So, the input application of standard test signals: an
cannot be expressed analytically! impulse, a step, a ramp, and parabolic
signals.
Sudden shock
A, t = 0
δ(t) =
0, t 6= 0
If A = 1: Unit Impulse
L{δ(t)} = δ(s) = A
Sudden change
Sudden shock
A, t = 0
A, t ≥ 0
δ(t) = u(t) =
0, t 6= 0 0, t < 0
L{δ(t)} = δ(s) = A A
L{u(t)} = U(s) =
s
L{δ(t)} = δ(s) = A A A
L{u(t)} = U(s) = L{r (t)} = R(s) =
s s2
L{δ(t)} = δ(s) = A A A 2A
L{u(t)} = U(s) = L{r (t)} = R(s) = L{p(t)} = P(s) =
s s2 s3
Y (s)
G (s) =
U(s)
2 Find Y (s):
When the response of the system is changed form rest or equilibrium it takes some time to
settle down.
Remarks on time-response analysis: The time response of a system
1 The transient response depends upon the system consists of two components:
poles only and not on the type of input. 1 Transient response:
2 It is sufficient to analyze the transient response using a The response of a system
step input. from rest or equilibrium to
3 The steady-state response depends on system settle down at steady state.
dynamics and the input quantity. 2 Steady-state response:
4 The steady-state response is examined using different The response of the system
test signals by final value theorem. after the transient response.
Y (s) K
G (s) = =
U(s) Ts + 1
Y (s) = G (s)δ(s)
Example
Find the unit impulse
response for a first
order system with
T = 2sec. and K = 3.
K −t/T
y (t) = e
T
3
y (t) = e −t/2
2
Example
Find the unit impulse
response for a first
order system with
T = 2sec. and K = 3.
K −t/T Or
y (t) = e
T
3
y (t) = e −t/2
2
Y (s) = G (s)U(s)
1
since U(s) = (unit step),
s
Find response y (t) = L−1 {Y (s)}:
K
Y (s) = 1 T
s(Ts + 1) y (t) = L−1 {K ( − )}
s Ts + 1
by partial fraction,
y (t) = K (1 − e −t/T )
K KT
Y (s) = −
s Ts + 1
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 17 / 31
Step response of 1st Order Systems:
Example
Find the unit step
response for a first
order system with
T = 2sec. and K = 3.
Or
When t = T :
y (t) = K (1 − e −t/T )
y (t) = K (1−e −1 ) = 0.632K
−t/2
y (t) = 3(1 − e )
Example
The Impulse response of a first order
system is given by:
y (t) = 4e −0.4t
Find:
1
1 Time constant T . ( = 0.4 T = 2.5)
T
K
2 D.C Gain K . ( = 4 K = 10)
T
10
3 Transfer function. G (s) =
2.5s + 1
4 Step Response of the system.
Example
The Impulse response of a first order
system is given by: To find Step response ys (t), we should
integrate the impulse response:
y (t) = 4e −0.4t Z
Find: ys (t) = 4e −0.4t dt = 10e −0.4t + C
1
1 Time constant T . ( = 0.4 T = 2.5)
T at initial condition ys (0) = 0, C = −10:
K
2 D.C Gain K . ( = 4 K = 10)
T ys (t) = 10(1 − e −0.4t )
10
3 Transfer function. G (s) =
2.5s + 1
4 Step Response of the system.
Y (s) = G (s)R(s)
1
since R(s) = 2 (unit ramp),
s
K
Y (s) =
s 2 (Ts + 1)
y (t) = K (t − T + Te −t/T )
Example: K = 1 and T = 1:
Y (s) = G (s)P(s)
2
P(s) = 3 (unit parabolic)
s
K (1 + αs)
Y (s) =
s(Ts + 1)
K K (α − T )
Y (s) = +
s Ts + 1
K
y (t) = K + (α − T )e −t/T
T
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 29 / 31
Lecture Assignment (LA3):
1 A thermometer requires 1 min to indicate 98% of the response to a step input. Assuming
the thermometer to be a first-order system, find the time constant.
2 If the thermometer is placed in a bath, the temperature of which is changing linearly at a
rate of 10 deg /min, how much error does the thermometer show?
3 With the help of MATLAB, draw the ramp response for the thermometer system.
Best Wishes