EE3002 Part3
EE3002 Part3
Fall 2020
Disturbances
r e u y
Controller System
−
ym
Measurements
Objective
I Fill
System Response
u y
ẏ + ky = u
Superposition: Example
u y
ẏ + ky = u
I Apply input: u = α1 u1 + α2 u2
Superposition: Example
u y
ẏ + ky = u
I Apply input: u = α1 u1 + α2 u2
I Expect output: y = α1 y1 + α2 y2 . Then, ẏ = α1 ẏ1 + α2 ẏ2
Superposition: Example
u y
ẏ + ky = u
I Apply input: u = α1 u1 + α2 u2
I Expect output: y = α1 y1 + α2 y2 . Then, ẏ = α1 ẏ1 + α2 ẏ2
I Superposition holds
Time Invariance
I In brief: The system response is independent of time
Time Invariance
I In brief: The system response is independent of time
I Consider the same system with k possibly a function of time:
u y
ẏ + ky = u
Time Invariance
I In brief: The system response is independent of time
I Consider the same system with k possibly a function of time:
u y
ẏ + ky = u
I Apply input at t1 :
I Apply input at t1 :
I Apply input at t1 :
dy1 (t1 − τ )
+ k(t2 + τ )y1 (t1 − τ ) = u1 (t1 − τ )
dt
Time Invariance
u y
ẏ + ky = u
I System at t1 :
I Delayed system at t2 = t1 − τ :
dy1 (t1 − τ )
+ k(t2 + τ )y1 (t1 − τ ) = u1 (t1 − τ )
dt
Time Invariance
u y
ẏ + ky = u
I System at t1 :
I Delayed system at t2 = t1 − τ :
dy1 (t1 − τ )
+ k(t2 + τ )y1 (t1 − τ ) = u1 (t1 − τ )
dt
I These two are equal iff τ = 0 or k is constant. Then, the system
is said to be time-invariant.
Impulse Response
I By the superposition property we can solve for the response of a
system to given inputs
Impulse Response
I By the superposition property we can solve for the response of a
system to given inputs
I There are special classes of signals which ease the analysis:
Impulse and exponential
Impulse Response
I By the superposition property we can solve for the response of a
system to given inputs
I There are special classes of signals which ease the analysis:
Impulse and exponential
I Consider a unit-step input for a short duration:
1/∆, if 0 ≤ t ≤ ∆
p∆ (t) =
0, otherwise
Impulse Response
I By the superposition property we can solve for the response of a
system to given inputs
I There are special classes of signals which ease the analysis:
Impulse and exponential
I Consider a unit-step input for a short duration:
1/∆, if 0 ≤ t ≤ ∆
p∆ (t) =
0, otherwise
I Similarly:
p∆ (t − ∆t) h∆ (t − ∆t)
System
Impulse Response
I Any input signal can be approximated as a series of pulses p∆ (t):
Impulse Response
I Any input signal can be approximated as a series of pulses p∆ (t):
I Convolution of u and y
Convolution
I Consider the system ẏ + ky = u = δ(t) with y(0) = 0.
Z ∞
f (t) = f (τ )δ(t − τ )dτ
−∞
Convolution
I Consider the system ẏ + ky = u = δ(t) with y(0) = 0.
Z ∞
f (t) = f (τ )δ(t − τ )dτ
−∞
y(t) = y ? h = h ? y
Z ∞ Z ∞
= u(τ )h(t − τ )dτ = h(τ )u(t − τ )dτ
−∞ −∞
Convolution
y(t) = y ? h = h ? y
Z ∞ Z ∞
= u(τ )h(t − τ )dτ = h(τ )u(t − τ )dτ
−∞ −∞
y(t) = y ? h = h ? y
Z ∞ Z ∞
= u(τ )h(t − τ )dτ = h(τ )u(t − τ )dτ
−∞ −∞
y(t) = H(s)est
Laplace Transform and Transfer Functions
y(t) = H(s)est
and
Z ∞
y(t) = h(τ )u(t − τ )dτ
0
Laplace Transform and Transfer Functions
ẏ(t) = sH(s)est
Laplace Transform and Transfer Functions
ẏ(t) = sH(s)est
ẏ(t) = sH(s)est
I Yields:
1
H(s) =
s+k
est
y(t) =
s+k
Laplace Transform and Transfer Functions
I The transfer function is the ratio of the Laplace transform of the
output to the Laplace transform of the input
Y (s)
H(s) =
U (s)
with the assumption that all initial conditions in the system are
zero.
Laplace Transform and Transfer Functions
I The transfer function is the ratio of the Laplace transform of the
output to the Laplace transform of the input
Y (s)
H(s) =
U (s)
with the assumption that all initial conditions in the system are
zero.
I It defines the relation between the input and the output
Laplace Transform and Transfer Functions
I The transfer function is the ratio of the Laplace transform of the
output to the Laplace transform of the input
Y (s)
H(s) =
U (s)
with the assumption that all initial conditions in the system are
zero.
I It defines the relation between the input and the output
I Example:
...
y + a1 ÿ + a2 ẏ + a3 y = b1 ü + b2 u̇ + b3 u
Example: RC circuit
dy(t)
Ri(t) + y(t) = u(t), i(t) = C
dt
RC ẏ(t) + y(t) = u(t)
Laplace Transform and Transfer Functions
Example: RC circuit
dy(t)
Ri(t) + y(t) = u(t), i(t) = C
dt
RC ẏ(t) + y(t) = u(t)
Example: RC circuit
dy(t)
Ri(t) + y(t) = u(t), i(t) = C
dt
RC ẏ(t) + y(t) = u(t)
I By superposition:
A
y(t) = (H(jω)ejωt + H(−jω)e−jωt )
2
Frequency Response
1 10
Y (s) = H(s)U (s) =
s + 1 s2 + 100
Example: Response of a System
u y
ẏ + y = u
1 10
Y (s) = H(s)U (s) =
s + 1 s2 + 100
1 10
Y (s) = H(s)U (s) =
s + 1 s2 + 100
u y
ẏ + y = u
10 −t 1
u(t) = sin(10t)1(t) → y(t) = e +√ sin(10t + ϕ)
101 101
Example: Response of a System
u y
ẏ + y = u
10 −t 1
u(t) = sin(10t)1(t) → y(t) = e +√ sin(10t + ϕ)
101 101
u y
ẏ + y = u
10 −t 1
u(t) = sin(10t)1(t) → y(t) = e +√ sin(10t + ϕ)
101 101
Draw in MATLAB
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
−∞
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
−∞
1. Superposition
L {α1 f1 (t) + α2 f2 (t)} = α1 F1 (s) + α2 F2 (s)
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
−∞
1. Superposition
L {α1 f1 (t) + α2 f2 (t)} = α1 F1 (s) + α2 F2 (s)
2. Time Delay: Due to linearity, if a function f (t) is delayed by
t1 > 0, its Laplace transform is given by
Z ∞
L {f1 (t − t1 )} = f (t − t1 )e−st dt
0
= e−st1 F (s)
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
−∞
1. Superposition
L {α1 f1 (t) + α2 f2 (t)} = α1 F1 (s) + α2 F2 (s)
2. Time Delay: Due to linearity, if a function f (t) is delayed by
t1 > 0, its Laplace transform is given by
Z ∞
L {f1 (t − t1 )} = f (t − t1 )e−st dt
0
= e−st1 F (s)
3. Multiplication by Time: f1 (t) = tf (t), its Laplace transform is
given by
d
F1 (s) = L {tf (t)} = − F (s)
ds
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
0
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
0
6. Differentiation:
Z ∞
df (t) df (t) −st
L = e dt
dt 0− dt
= −f (0− ) + sF (s)
Generalization:
6. Differentiation:
Z ∞
df (t) df (t) −st
L = e dt
dt 0− dt
= −f (0− ) + sF (s)
Generalization:
7. Integration:
Z t
1
L f (x)dx = F (s)
0 s
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
0
Properties of the Laplace Transform
Z ∞
F (s) = L {f (t)} = f (t)e−st dt
0
Inverse Laplace:
Inverse Laplace:
b1 sm + b2 sm−1 + . . . + bm+1
F (s) =
a0 sm + a1 sm−1 + . . . + an
Inverse Laplace Transform
b1 sm + b2 sm−1 + . . . + bm+1
F (s) =
a0 sm + a1 sm−1 + . . . + an
I We assume m ≤ n. Let’s rewrite it in a more intuitive form:
Qm
(s − zi )
F (s) = K Qni=1
i=1 (s − pi )
Inverse Laplace Transform
b1 sm + b2 sm−1 + . . . + bm+1
F (s) =
a0 sm + a1 sm−1 + . . . + an
I We assume m ≤ n. Let’s rewrite it in a more intuitive form:
Qm
(s − zi )
F (s) = K Qni=1
i=1 (s − pi )
I This form is called “pole-zero” form.
Inverse Laplace Transform
b1 sm + b2 sm−1 + . . . + bm+1
F (s) =
a0 sm + a1 sm−1 + . . . + an
I We assume m ≤ n. Let’s rewrite it in a more intuitive form:
Qm
(s − zi )
F (s) = K Qni=1
i=1 (s − pi )
I This form is called “pole-zero” form.
I The term s = zi is called a “zero”, s = pi is called a “pole” of the
system (can be complex). Assume that the poles {pi } are
distinct.
Inverse Laplace Transform
Qm
(s − zi )
F (s) = K Qni=1
i=1 (s − pi )
(s + 2)(s + 4)
F (s) =
s(s + 1)(s + 3)
MATLAB code
Final Value Theorem
Qm
(s − zi )
Y (s) = K Qni=1
i=1 (s − pi )
Three cases for the final value of y(t):
1. Unbounded. If any of the poles is in the RHP, i.e., pi > 0 for any
i, then y(t) will grow unbounded.
Final Value Theorem
Qm
(s − zi )
Y (s) = K Qni=1
i=1 (s − pi )
Three cases for the final value of y(t):
1. Unbounded. If any of the poles is in the RHP, i.e., pi > 0 for any
i, then y(t) will grow unbounded.
2. Undefined. If any of the poles is on the imaginary axis, i.e.,
pi = ±jω for any i, then y(t) will contain a sinusoid, and the
final value is undefined.
Final Value Theorem
Qm
(s − zi )
Y (s) = K Qni=1
i=1 (s − pi )
Three cases for the final value of y(t):
1. Unbounded. If any of the poles is in the RHP, i.e., pi > 0 for any
i, then y(t) will grow unbounded.
2. Undefined. If any of the poles is on the imaginary axis, i.e.,
pi = ±jω for any i, then y(t) will contain a sinusoid, and the
final value is undefined.
3. Constant. If all of the poles are on the LHP, i.e., pi < 0 for all i,
except one at the zero, i.e., pi = 0, then y(t) will decay to zero
except the effect of the pole at zero which excites a constant
output.
Final Value Theorem
Qm
(s − zi )
Y (s) = K Qni=1
i=1 (s − pi )
Three cases for the final value of y(t):
1. Unbounded. If any of the poles is in the RHP, i.e., pi > 0 for any
i, then y(t) will grow unbounded.
2. Undefined. If any of the poles is on the imaginary axis, i.e.,
pi = ±jω for any i, then y(t) will contain a sinusoid, and the
final value is undefined.
3. Constant. If all of the poles are on the LHP, i.e., pi < 0 for all i,
except one at the zero, i.e., pi = 0, then y(t) will decay to zero
except the effect of the pole at zero which excites a constant
output.
4. The constant value corresponds to the pole at s = 0.
Theorem: If all poles are on the LHP, then
3(s + 2)
Y (s) =
s(s2+ 2s + 10)
3(s + 2)
Y (s) =
s(s2+ 2s + 10)
3(s + 2)
lim sY (s) = lim
s→∞ s→∞ (s2 + 2s + 10)
= 0.6
Solving Differential Equations with LT
Recall that for zero I.C.:
...
y + a1 ÿ + a2 ẏ + a3 y = b1 ü + b2 u̇ + b3 u
↓
s Y (s) + a1 s Y (s) + a2 sY (s) + a3 Y (s) = b1 s2 U (s) + b2 sU (s) + b3 U (s)
3 2
I Answer:
Given
Given
Given
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12
A quick analysis
3 3−β−4α 3−4β−4α
4 3 12
Y (s) = − +
s s+1 s+4
↓
3 −3 + β + 4α −t 3 − 4α − 4β −4t
y(t) = + e + e 1(t)
4 3 12