Contents
1 Introduction to Modern Control . . . . . . . . . . . . . . . . . . . . . 1
2 Dynamic Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2.1 Response versus Pole Locations . . . . . . . . . . . . . . . . . . . . . 2
2.1.1 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1.2 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Response of Systems with Complex Poles . . . . . . . . . . . . . . . . 5
2.2.1 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Dynamic Response
The dynamic response of systems can be studied within three domains: s-plane,
frequency response and state-space. This section shows useful mathematical tools
for analysis in the s-plane and frequency response.
It is assumed that the student has acquired clear knowledge about linear systems
and techniques in time domain and frequency domain to operate with them. Thus,
fundamental operations with signals and systems such as convolution and Laplace
transform are dominated by the reader.
1
2 Dynamic Response 2
1 %% I m p u l s e r e s p o n s e
2 t = 0 : 0 . 0 0 1 : 2 0 ; %time v e c t o r
3 sigma = [ 0 . 8 , 0 . 9 9 9 9 9 9 ] ;
4 %% P o s i t i v e sigma
5 gVector = [ ] ;
6 f o r i = 1 : 1 : l e n g t h ( sigma )
7 g=exp(−sigma ( i ) ∗ t ) ;
8 g V e c t o r =[ g V e c t o r ; g ] ;
9 end
10 figure
11 subplot (1 ,2 ,1)
12 p l o t ( t , g V e c t o r ( 1 : l e n g t h ( sigma ) , : ) ) ;
13 l e g e n d ( ’ \ sigma =0.8 ’ , ’ \ sigma =0.999999 ’ )
14 xlim ( [ − 3 , 5 ] ) , ylim ( [ 0 , 8 ] )
15 x l a b e l ( ’ Time ( s ) ’ )
16 y l a b e l ( ’ Impulse response h ( t ) ’ )
17 %% N e g a t i v e sigma
18 sigma=−sigma ;
19 gVector = [ ] ;
20 f o r i = 1 : 1 : l e n g t h ( sigma )
21 g=exp(−sigma ( i ) ∗ t ) ;
22 g V e c t o r =[ g V e c t o r ; g ] ;
23 end
24 subplot (1 ,2 ,2)
25 p l o t ( t , g V e c t o r ( 1 : l e n g t h ( sigma ) , : ) ) ;
26 l e g e n d ( ’ \ sigma =−0.8 ’ , ’ \ sigma = −0.999999 ’ )
27 xlim ( [ − 7 , 3 ] ) , ylim ( [ 0 , 8 ] )
28 x l a b e l ( ’ Time ( s ) ’ )
29 y l a b e l ( ’ Impulse response h ( t ) ’ )
8 8
= 0.8 = -0.8
7 = 0.999999 7 = -0.999999
5 5
4 4
3 3
2 2
1 1
0 0
-2 0 2 4 -6 -4 -2 0 2
Time (s) Time (s)
Fig. 2: Example of first-order system response when σ > 0 leading to stability (left)
and σ < 0 leading to instability (right)
where g(t) represents the impulse response (note that 1 means unit impulse). Two
cases can be considered when analyzing e−σt , developed using Matlab with the code
in Fig 1 and shown in Fig. 2. The cases are:
1. When σ > 0, the single pole is located at s < 0, the exponential expression
decays and therefore g(t) is stable.
2. When σ < 0, the single pole is located at s > 0, the exponential grows with
time and therefore g(t) is unstable.
2.1.1 Example
Compute the time response with the pole locations for the system in
5s + 1
G(s) = (3)
s2 + 5s + 6
Solution: The numerator can be reduced as N (s) = 5s + 1 = 5(s + 0.2) and the
denominator can be expressed as D(s) = s2 + 5s + 6 = (s + 2)(s + 3). Then, G(s)
has one zero at s = −0.2 and two stable poles at s = −2 and s = −3. The partial
fraction expansion of G(s) yields
9 14
G(s) = − + , (4)
s+2 s+3
where by inspection, the inverse Laplace transform results in
Looking at (5), the term e−3t decays faster than e−2t , i.e. the signal corresponding
to the pole at −3 decays faster than the signal corresponding to the pole at −2. The
role of the numerator in the partial-fraction expansion is to influence the size of the
coefficient that multiplies each component, that is −9 and 14 in (4). The plot of the
impulse response of G(s) is in Fig. 3and the Matlab sequence is as follows
1 num=[5 1 ] ;
2 den =[1 5 6 ] ;
3 i m p u l s e (num , den ) ;
4 g r i d on
In general, poles further to the left in the s-plane represents natural signals that
decay faster than those associated with poles closer to the imaginary axis.
2.1.2 Exercise
Propose different second order transfer functions that comply with the following
cases:
HINT: Read carefully the document, try changing the place of poles, apply the
same analysis from the example and use the given matlab code.
WORK TO BE DONE: Plot the impulse responses using matlab and write
a short report including the transfer functions and plots. Upload the pdf to the
virtual platform individually (more than one student is not allowed) before the
given deadline.
where ωn is the undamped natural frequency and ζ is the damping ratio. In addition,
the poles of G(s) in (7) are located at a radius ωn in the s-plane and at an angle
θ = sin−1 ζ, as shown in Fig. 4. Thus,
• The damping ratio indicates the level of damping as a fraction of the critical
damping value where the poles become real.
1 %% Impulse r e s p o n s e o f complex c o n j u g a t e p o l e s
2 t = 0 : 0 . 0 0 1 : 2 0 ; %time vector
3 z e t a = 0 : 0 . 1 : 1 ; %damping ratio
4 omega n =2;
5 G= [ ] ;
6 for i =1: l e n g t h ( z e t a )
7 sigma=z e t a ( i ) ∗ omega n ;
10 G=[G; g ] ;
11 end
12 p l o t ( t ,G( 1 : l e n g t h ( z e t a ) , : ) )
13 g r i d on
2.2.1 Exercise
Given the dynamical system represented by
5s + 1
G(s) = 2 , (11)
s + 5s + 6
analyze the following:
• Is the impulse response oscillatory and why? If it is, around what frequency
does it oscillate? (justify analytically)
• Compute the exact impulse response of the system, i.e. g(t).
• Plot the impulse response using matlab.
HINT: Read carefully the Section 2.2 and use any of the equations there.
WORK TO BE DONE: Answer the questions and write a short report in-
cluding calculations and plots. Upload a pdf to the virtual platform individually
(more than one student is not allowed) before the end of the class.
2 Dynamic Response 7