Lecture2hh
Lecture2hh
A LTI-System is a linear time-invariant dynamic system and can be modeled in SISO case using a
linear ordinary differential equation with constant coefficients, which defines the relationship
between the system input u(t) and system output y(t)
dn y d n −1 y dy d pu d p −1u du
n
+ a n −1 n −1
+ ... + a1 + =
a 0 y b p p
+ b p −1 p −1
+ ... + b1 + b0u (2.1)
dt dt dt dt dt dt
It is always n ≥ p (only those systems are physically realizable!) and the highest number n of
differentiations of the system output y is called the order of the system.
Eq. (2.1) represents the input-output relation of the dynamic system and is one of the standard
mathematical models used for system modeling.
The model equation (2.1) can describe a physical process (plant), a controller or a closed-loop
control as well.
Which system properties can we recognize from this standard form of system model? To answer the
question, we first consider its simplest variant, the first-order dynamic LTI systems.
Notice:
An exact definition of linearity and time-invariance of dynamic systems will be given later.
Simplification assumptions:
• Essential dynamics relates velocity and force
• The force responds very fast to a change in the throttle
• All relations are assumed to be linear (small signal behavior)
Process model:
A simplified mathematical description (first-order differential equation):
dv
m + Dv = F − mg sin θ ≈ F − mgθ
dt
With reasonable parameters
dv
u − 10θ
+ 0.02v =
dt
dn y d n −1 y dy d pu d p −1u du
n
+ a n −1 n −1
+ ... + a1 + =
a 0 y b p p
+ b p −1 p −1
+ ... + b1 + b0u
dt dt dt dt dt dt
We know from the theory of differential equations that the first-order homogeneous equation
dy (t )
+ ay (t ) =
0 (2.2)
dt
has the solution
y (t ) = Ce − at (2.3)
where C = y(0) is an initial condition depending constant. The solution of the inhomogeneous equation
dy (t )
+ ay (t ) =
bu(t ) (2.4)
dt
with u as system input is known as
t
=
y (t ) Ce − at
+ b ∫ e − a ( t −τ )u(τ )dτ (2.5)
0
and consists of the free response (the first Term, depending on initial condition only) and the forced
response (the second Term, depending on system input only).
Note:
-a is the solution to the equation s+a=0.
System behaviour:
According to the solution of first order differential equation the velocity dynamic is described by:
t
v (t ) = v0e + ∫ e −0.02 ( t −τ ) (u − 10θ )dτ
−0.02 t
0
free response
forced response
Without (feedback) control the velocity cannot be kept constant in case of disturbance!
∫
−( 0.02 + k P )( t −τ )
v (t ) = v0e + e ( k P vr − 10θ )dτ
The closed-loop system is described by 0
free response
dv forced response
+ (0.02 + k P )v = k P vr − 10θ In steady-state with t → ∞ we have:
dt
k P vr 10θ
=v∞ −
0.02 + k P 0.02 + k P
Prof. Dr.-Ing. Steven Liu
Lehrstuhl für Regelungssysteme
Technische Universität Kaiserslaut ern
Active excise
100
θ
80
0 5 10 15 20
Time [s]
Parameter a!
y (t ) C1eα1t + C2eα2t
= (2.7)
Basically, the system response, i.e., the solutions of the differential equation, depends on the type
(real, imaginary, or complex) of the roots α1, α2 of the characteristic equation as well as on their
signs. See also appropriate mathematical text books for more details.
a0
a0
ydot y
1/s 1/s
a1
a1
θ
10
open-loop slope [rad/s] u
system 0.02*v0
u
1
xo s 3.6
actuation signal for
90 km/h Integrator v [km/h]
v0
initial speed 0.02
90 km/h
θ
10
slope change kp
u
closed-loop with vr
vr u
1
PI controller Reference speed 1 xo s 3.6
s ki v [km/h]
Integrator
I v0
initial speed 0.02
90 km/h
95 1 95 1.5
d = 0.7 d = 1.0
ω0 = 0.8 ω0 = 0.8
90 0 90 0
0 5 10 15 20 0 5 10 15 20
3 6
95 1 95 2
d = 0.7 d = 0.7
ω0 = 0.4 ω0 = 1.6
90 0 90 0
0 5 10 15 20 0 5 10 15 20
Time [s] Time [s]
We consider again the closed-loop dynamic of our cruise control design example with a PI
controller
10θ
e + (0.02 + k P )e + k I e = resp. e + 2d ω0e + ω02e =
0
The solution is greatly influenced by the parameters damping factor d and undamped natural
frequency ω0
Unit impulse function (δ impulse, Dirac impuls): Impulse response bzw. Impulsantwort:
δ(t)
δ (t ) = 0 ∀ t ≠ 0
1
δ(t) (n) ( n −1)
y + an −1 y + + a1 y + a0 y g(t)
∞
∫ δ (t )dt = 1 ( p)
y (t ) + 2d ω0 y (t ) + ω02 y (t ) =
ω02u(t )
The corresponding characteristic equation ( s + d ω0 + jω0 1 − d 2 )( s + d ω0 − jω0 1 − d 2 ) =
0
y(t)
y(t)
0 1
d = 2.0
-0.5 0.5
d = 1.0
d = 2.0
-1 0
0 5 10 15 20 0 5 10 15 20
ω0t ω0t
What is different between P and PI controlled system (in this special case)?
P control:
• Remaining steady-state control error
• System response is real exponential function, no overshoot (1st order dynamics)
• One common parameter for both the transient and stationary behavior of the closed-loop
PI control:
• No steady-state control error (due to integral action)
• System response is complex exponential function, overshoot possible (2nd order dynamics)
• Stationary behavior independent of controller parameters, closed-loop transient behavior can
be separately (oscillation tendency and response dynamic) determined by proper choice of
controller parameters
The dynamic order of the closed-loop system is essential for the transient behavior of
the controlled system. It is the sum of the dynamic orders of the plant (process) and
the controller.
If ∆(α) = 0, then y(t) = eαt is a solution of (2.10)! For the case that the roots of the characteristic
equation αk, k = 1,…, n, are completely distinct, the general solution of the homogeneous equation
(2.10) can be stated as a linear combination of the single solutions
n
y ( t ) = ∑ Ck e − α k t (2.12)
k =1
Notes: ( n −1)
1) The coefficients Ck can be given as linear combination of the initial conditions y(0), y (0), … , y (0) .
2) αk can be real or complex. The complex roots are always conjugate complex pairs. By combining
the corresponding conjugate complex solutions one obtains finally exponential oscillation terms
eσtsinωt and eσtsinωt with σ = Re{αk}.
The dynamic of a high-order system is the sum of first-order and second-order dynamics. It is
essentially determined by the roots of the characteristic equation!
Note:
Generally there are n solutions to the characteristic equation with some of them possibly in
multiplicity. The corresponding polynomial Ck-1(t) to a root of multiplicity k is of degree k-1. In case
of distinct roots the polynomials Ck-1(t) reduce to constant coefficients.!
Before starting to discuss the solution for the general system model (2.1) we consider first the
following special case
dn y d n −1 y dy
n
+ a n −1 n −1
+ + a1 + a0 y =
u (2.14)
dt dt dt
The solution to above equation is known as
n
∑C
t
=
y (t ) k −1 (t )e ak t
+ ∫ g h (t − τ )u(τ )dτ (2.15)
0
k =1
where gh(t) is the solution to the homogeneous equation
d n gh d n −1 g h dg h
+ an −1 n −1 + + a1 + a0 g h =
0 (2.16)
dt n dt dt
with following special initial conditions
( n − 2) ( n −1)
=
g h (0) 0,=
g h (0) 0, , =
g h (0) 0,=
g h (0) 1 (2.17)
Based on this solution the general problem can be now tackled.
∑C
t
=
y (t ) k −1 (t )e − ak t
+ ∫ g (t − τ )u(τ )dτ (2.19)
0
k =1
By transforming the total system model on zero initial conditions into the frequency-domain (also
known as Laplace-domain) using Laplace transform, one obtains
( s n + an −1s n −1 + + a1s + a0 )Y ( s=
) (bp s p + bp −1s p −1 + ... + b1s + b0 )U ( s ) (2.21)
where s is the Laplace variable. By defining the denominator and numerator polynomials
N ( s ) = s n + an −1s n −1 + + a1s + a0
(2.22)
p −1
Z ( s=
) bp s + bp −1s
p
+ ... + b1s + b0
the solution to the system equation can be easily given in the Laplace-domain
Z (S ) bp s p + bp −1s p −1 + ... + b1s + b0
=
Y ( s ) G=
( s )U ( s ) = U ( s) U (S )
N ( s) s n + an −1s n −1 + + a1s + a0
(2.23)
( s − β1 )( s − β 2 ) ( s − β p )
=K U (S )
( s − α1 )( s − α 2 ) ( s − α n )
The system function G(s) is called the transfer function. The zeros αi of the denominator polynomial
N(s) are the poles of the dynamic system (or the transfer function) and those of the numerator
polynomial Z(s), βi , are known as the system zeros (or zeros of the transfer function).
Comparing the definitions for the convolution integral and the transfer function and taking into
account the convolution properties of the Laplace transform (s. appendix at the end of this
chapter), it is easy to see that the transfer function (Laplace domain) is simply the Laplace
transform of the impulse response (time-domain).
Thus, the general behavior of a dynamic system on zero initial conditions can be characterized
equivalently either in the Laplace-domain by the transfer function G(s) or in the time-domain by
the impulse response g(t). Because of this fundamental property, the impulse response is also
called natural response of a system.
Y ( s ) = G ( s )U ( s )
U(s) G(s) Y(s)
y (t ) = g (t ) ∗ u (t ) g(t)
u(t) y(t)
{G ( s )U ( s )}
t
∫ τ τ τ −1
y (t ) = g ( t − ) u ( )d =
L
0
The system poles determine the components of the time function building up the solution of the
differential equation (i.e., the system response to initial excitation or system input).
Therefore, a dynamic LTI system is bibo-stable, if and only if all the system poles have negative
real part, i.e., they are located in the left half of the complex s-plane (LHP = left half-plane).
In order to design a stable control loop, the controller parameters are to be chosen in the way
that the closed-loop transfer function only has stable poles.
Exponential envelope
The pole location, marked as "x" in the zero-pole-diagram, determines the fundamental behavior
of the system response.
jω
LHP RHP
σ
stable unstable
αω03
G( s) = 2
( s + 2d ω0 s + ω02 )( s + αω0 )
MATLAB command script:
a=0.2;
sys=tf(a,conv([1 2*0.6*1 1],[1 a]));
step(sys,10)
Z ( β=
) bp β p + bp −1β p −1 + ... + b1β + b=
0 0 (2.24)
and u(t) = C(t)eβt, it follows that for the right-hand side of equation (2.18)
d pu d p −1u du
bp p + bp −1 p −1 + ... + b1 = )Ce β t 0
+ b0u Z ( β= (2.25)
dt dt dt
A zero s = β blocks the transmission of the signal (i.e. eliminates the effect of the input excitation)
u(t) = C(t)eβt.
Amplitude
for β = 0.5, β = 2.0, β = ∞, β = -2.0 and β = -0.5.
h0(t) (β = ∞)
1 s 1
h (t ) =
L -1 ⋅ 2 + 2 β = -2
β s + 1.2 s + 1 s + 1.2 s + 1 0
1 β = -0,5
= h0 (t ) + h0 (t ) (2.27)
β
• Zeros increase the peak value. The closer to origin -1
they are located, the stronger is their influence! 0 2 4 6 8 10
Time (sec)
• Zeros in the RHP cause a deflection in the opposite
direction at the beginning of the response (non-minimum phase behavior)!
a0 y0 = b0u0
The ratio
b0
V= (2.28)
a0
is called static gain of the system (different from K from (2.23)!).
Active excise:
Calculate the static gain of an integrator!
dv
Simplified process model: + 0.02v = u − 10θ
dt
t
PI controller: u k P ( vr − v ) + k I ∫ ( vr − v )dτ
=
0
Both GV(s) and Gθ(s) have a zero at s = 0. Therefore, a step change on reference speed or road slope
will, independently of controller parameters, cause no steady-state control error. In other words, the
control error will be eliminated by the controller (effect of controller integral action)!
The denominator polynomial is for both transfer functions the same! For determining the transient
behavior we choose e.g. (cp. page 2-9) d = 0.8 (almost no overshoot). The corresponding curves of
step and impulse response show that dynamic changeover is almost completed after ca. ω0t = 5. if
we for instance specify this transition with a real time of 2.5 [s] , then it is ω0 = 5/2.5 = 2 [1/s]. From
the values for d and ω0 we can finally calculate the parameters of the controller as
= =
k P 3.18 kI 4
To study the disturbance behavior in more detail we assume that Vr = const.. It is then
10s
E ( s) = θ ( s)
s + (0.02 + k P ) s + k I
2
y (t ) + 2d ω0 y (t ) + ω02 y (t ) =
ω02u(t )
The corresponding characteristic equation ( s + d ω0 + jω0 1 − d 2 )( s + d ω0 − jω0 1 − d 2 ) =
0
y(t)
y(t)
0 1
d = 2.0
-0.5 0.5
d = 1.0
d = 2.0
-1 0
0 5 10 15 20 0 5 10 15 20
ω0t ω0t
Converting this result to a time function we find the expression for the control error:
25
=
e( t ) ∆θ ⋅ e −1.6t sin(1.2t )σ (t )
3
3
2.5
Control error in [km/h]
1.5
0.5
-0.5
0 0.5 1 1.5 2 2.5 3 2.5 4 4.5 5
Time in [s]
f (t ) F ( s)
or as linear mapping:
time-domain Laplace-domain
(real) (complex)
σ + j∞
1
Inverse Laplace transform: =f (t ) L= ∫
-1 st
{F ( s)} F ( s )e ds
2πj σ − j∞
Differentiation:
d
f (t ) −• sF ( s ) − f ( −0)
dt
f ( n) (t ) −• s n F ( s ) − s n −1 f ( −0) − − f ( n −1) ( −0)
Prof. Dr.-Ing. Steven Liu
Lehrstuhl für Regelungssysteme
Technische Universität Kaiserslaut ern
Properties of Laplace transforms (2)
Integration:
t
1
∫
−0
f (τ )dτ −•
s
F ( s)
Convolution:
No. f (t ) F (s ) No. f (t ) F (s )
2
1 δ (t ) 1 7 t ⋅e −a t
(s + a )3
2
1 a
σ (t ) 1 − e−a t s ⋅ (s + a )
2 8
s
ω
sin (ω t )
1
3 t 9
s2 s2 + ω 2
t n −1 s
cos(ω t )
4 1
10
(n − 1)! sn s2 + ω 2
ω
sin (ω t )
1 −a t
5
e−a t s + a
11 e
(s + a )2 + ω2
1 s+a
6 t ⋅e−a t (s + a )2 12 e − a t cos(ω t ) (s + a )2 + ω 2
Prof. Dr.-Ing. Steven Liu
Lehrstuhl für Regelungssysteme
Technische Universität Kaiserslaut ern
Solving differential equations using Laplace transform