Control Systems - Exam of 12 February 2024
Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.
In questa pagina 6
Written exam of 12 February 2024 (second session of academic year 2023-24, Information Engineering, UniPD). The course taught in English does not publish its exams, so this is the paper of the equivalent Italian-language course (Fondamenti di Automatica, sheet titled "Compito di Controlli Automatici"), translated into English. The sheet does not state the duration (the other sessions of the same course last 3 hours). Points on the sheet: Exercise 1 (9.5), Exercise 2 (7.5), Exercise 3 (7.5) and one theory question (6), for a total of 30.5.
Official exam format of Control Systems (UniPD 2026-27, 9 credits, taught in English): a written exam (maximum 30 points), possibly followed by an oral exam at the lecturer's discretion; it contains numerical exercises and theoretical questions on modelling, stability, time response, frequency analysis, root locus, design of controllers and feedback systems. After the course there is an optional project (design of a control system with MATLAB/Simulink, discussed in February).
Syllabus warning. The paper is solved with the notation and the results of the notes of this course whenever they are explained there. Three topics of this paper are not explained in the notes of this course nor in any other English note of the site: the Nyquist diagram and the Nyquist criterion (Exercise 1, points ii and iii), the negative root locus (Exercise 2) and the synthesis of lead and lag networks (Exercise 3, point ii). They are marked OUT OF SYLLABUS: the text is reported, the result is the official one, and the solution only summarises the steps of the official solution, without adding explanations. Numerical checks of the official results, done with a script, are stated separately.
Exercise 1 (points 9.5)
Given the system with transfer function
i) Determine the Bode diagram (modulus and phase) of the frequency response of the system.
ii) Determine the Nyquist diagram of for , identifying its asymptotes and its intersections with the axes.
iii) Study through the Nyquist criterion the BIBO stability of the feedback system as varies in , , and, if it is not BIBO stable, determine the number of poles with positive real part and/or with zero real part.
Show the result
i) Bode form : Bode gain , one pole at the origin, a pair of complex conjugate zeros with negative real part (, ) and one real unstable pole at .
- Modulus: asymptotic slope dB/dec up to (the line passes through dB at ), then flat at dB. The real modulus has an anti-resonance of about dB at ().
- Phase: always increasing, from (equivalently ) at low frequency to (equivalently ) at high frequency, with the steep part around .
ii) (out of syllabus) . For : , (vertical asymptote ); for : . Intersections: the negative real semi-axis at (for ) and the negative imaginary semi-axis at (for ). The part for follows by Hermitian symmetry.
iii) (out of syllabus) With critical point and :
- : , (two poles with positive real part);
- or : , ;
- : , ;
- critical cases: for , has two imaginary conjugate poles; for , is not proper.
is BIBO stable if and only if or .
Show the full solution
(i) Bode diagram
Bode form. Every factor must have constant term . The numerator is ; the denominator is . Therefore Reading the factors:
- constant (a negative constant: modulus , that is dB, and phase );
- a pole at the origin (factor );
- a pair of complex conjugate zeros: compare with : , so , and , so . The zeros are : negative real part, stable zeros;
- a real pole at , i.e. the factor with a minus sign: an unstable (positive) pole.
Asymptotic modulus. For only and the pole at the origin matter: , i.e. dB, a line of slope dB/dec that passes through dB at (and dB at ). At three factors change the slope: the complex zeros add dB/dec and the positive real pole subtracts dB/dec (a positive root has the same modulus as the negative one). The slope becomes : the diagram is flat for , at the level reached at , dB (consistent with ).
Real modulus. The zeros have small damping : around the modulus has a deep anti-resonance (a valley, not a peak). At the complex-zero factor has modulus ( dB) and the real pole contributes about dB: about dB in total. The exact value is , that is dB.
Grafico interattivo: Bode modulus (dB) of G: exact curve and asymptotic diagram (dashed); -20 dB/dec up to w = 10, then flat at 0 dB; anti-resonance of about -17 dB at w = 10
Phase. Contributions, one by one:
- negative constant: (the choice gives the same diagram modulo );
- pole at the origin: , so the diagram starts at (equivalently );
- stable complex zeros: , concentrated around (steep because is small);
- unstable real pole in the denominator: its phase has the reversed sign with respect to a stable pole, so it adds instead of , along a segment from to .
The phase therefore always increases, from to (equivalent to in the diagram of the official solution). In the asymptotic diagram: for , then a ramp of /dec (the pole) up to at , a jump of about at (the zeros), up to , and a ramp up to at .
Grafico interattivo: Bode phase (degrees) of G, shown as a continuous curve from 90 to 360 degrees (the same as -270 to 0 degrees modulo 360): about 96.9 at w = 1, 225 at w = 10, 325.8 at w = 20
Exact values (computed from ):
| (rad/s) | ||||||||
|---|---|---|---|---|---|---|---|---|
| modulus (dB) | ||||||||
| phase |
Typical errors: taking (the sign comes from ) and so starting the phase at ; giving the unstable pole the phase of a stable one (the phase would then end at instead of ); drawing a resonance peak instead of an anti-resonance for the zeros.
(ii) Nyquist diagram (OUT OF SYLLABUS)
The Nyquist diagram is not explained in the notes of this course. Summary of the official solution:
- Separating real and imaginary part of one finds .
- Restricting to , the imaginary part vanishes only at , where the real part is ; the real part vanishes only at , where the imaginary part is .
- Limits: and for ; and for .
- Consequently the diagram for starts parallel to the vertical asymptote , then descends rotating counter-clockwise, first crosses the negative real semi-axis at (for ), then the negative imaginary semi-axis at (for ), and finally arrives at the point for . The part for negative frequencies is obtained by Hermitian symmetry.
Grafico interattivo: Nyquist diagram of G(jw) for w from 0.05 to 1000 (blue) and for negative w (orange, mirror image); vertical asymptote Re = -1.2 (dashed); the diagram crosses the negative real axis at -0.2 and the negative imaginary axis at -0.183 j, and ends at 1. The closing circle of infinite radius (clockwise) is not drawn.
Numerical check (script): the formulas for and agree with at test points; with ; with ; limits and .
(iii) Stability of with the Nyquist criterion (OUT OF SYLLABUS)
Summary of the official solution. Consider the circle at infinity (closed clockwise from the lower branch to the upper branch, because of the pole at the origin) and the critical point :
- (that is ): , , ;
- (that is or ): , , ;
- (that is ): , , .
For the function has two conjugate imaginary poles, for it is not proper. So is BIBO stable if and only if or .
Cross-check with the tools of the course (not part of the official solution). Write with and . The poles of are the roots of and The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion → counts the roots with positive real part through the sign changes in the first column, which for a degree-2 polynomial is the sequence :
| signs of the three coefficients | sign changes | poles with | |
|---|---|---|---|
The critical values: for the polynomial is , with roots (two imaginary poles); for it has degree () while the numerator has degree , so is not proper and cannot be BIBO stable. The result is the same as the official one: BIBO stable if and only if or . Numerical check on the roots: : no poles with positive real part; : one; : two; : none.
Exercise 2 (points 7.5)
Given sketch, approximately, the positive and the negative locus (with analysis of asymptotes, intersections with the imaginary axis and explicit computation of the double points). Discuss the BIBO stability of as varies, identifying, for each value of , the number of poles with positive real part. Discuss any critical cases.
Show the result
- Poles of : (double) and (double); zero: ; , , so asymptotes with centroid : at in the positive locus, at in the negative locus.
- Positive locus on the real axis: (the semi-axis belongs to the negative locus).
- Candidate double points: . The roots and are the double poles of themselves (), where two branches start; the roots give complex values of , so there are no double points (neither in the positive nor in the negative locus).
- Intersections with the imaginary axis: none (for any real ).
- Positive locus: one branch from to , one from to along the real axis, two branches from to the asymptotes at and . Negative locus: one branch from to , one from to along the real axis, two branches from to the asymptotes at and .
- In both loci two branches lie entirely in the right half-plane: for every there are exactly two poles with positive real part and is never BIBO stable. There are no critical cases (no poles on the imaginary axis for any ).
Show the full solution
Theory used: The Root LocusThe positive root locus is the set of closed-loop poles of the loop with a proportional controller C(s)=K, K>=0, as K varies; it consists of n branches that start at the poles of G(s) and end at its zeros or at infinity along asymptotes, and four sketching rules (real-axis rule, asymptotes with centroid, multiple points) let one draw it and read off stability and transient requirements.The Root Locus →, The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion →.
Data and closed-loop polynomial
and , both monic and coprime, with and . Expanding, and , so The poles of are the roots of . Since for every , and have no common factor, so is in least terms and BIBO stability is stability of the roots of .
Positive locus ()
- R1 (branches). Four branches start at the poles ; one ends at the zero and go to infinity.
- R2 (real axis). A real point belongs to the locus if it has an odd number of poles and zeros of to its right (multiplicities counted). For : none (even) no. For : the double pole , that is (even) no. For : the double pole and the zero, (odd) yes. For : (odd) yes. So the locus contains ; is odd, so one branch goes to along the negative real axis.
- R3 (asymptotes). Centroid . With the rays are at from each other, one of them the negative real axis: angles , and .
- R4 (multiple points). The candidates satisfy . Here and , so The roots and are the double poles of , with : they are the starting points of two branches each (two outgoing branches along two opposite rays). At the real axis belongs to the locus on both sides, so one branch goes left and one goes right (towards the zero ); at the real axis is not in the locus on either side, so the two branches leave vertically, upwards and downwards. The roots of are : for them is not a real number, so they are not multiple points of the locus (a multiple point needs a real ). Another way to see it: two of the branches lie entirely on the real axis, while two complex conjugate double points would need four branches meeting in pairs away from it.
- Imaginary axis. A branch can cross it only if for some . Computing, The real part is at least for every , so it never vanishes: no intersection with the imaginary axis, for any real (the same computation holds for the negative locus). In particular is never a root, since .
The two branches that leave vertically bend towards the asymptotes at without ever crossing the imaginary axis: they stay in the right half-plane. The other two branches stay on the negative real axis.
Grafico interattivo: Positive root locus of G = s/((s-1)^2 (s+2)^2): branches leave the double pole at 1 vertically towards the asymptotes at 60 and 300 degrees, one branch leaves -2 towards -infinity and one goes from -2 to the zero at 0; asymptotes (dashed) have centroid -2/3; the locus never touches the imaginary axis.
Negative locus () (OUT OF SYLLABUS)
The notes of this course only treat the positive locus; the negative locus is not explained in them. Summary of the official solution: the semi-axis belongs to the negative locus; the asymptotes (again three, with the same centroid ) have slopes , and ; there are no double points (same equation) and no intersections with the imaginary axis (same computation). The negative locus consists of: one branch from to on the real axis, one branch from to along the real axis, and two branches that leave and go to the asymptotes of slope and .
Grafico interattivo: Negative root locus of G = s/((s-1)^2 (s+2)^2): from the double pole at 1 one branch goes to the zero at 0 and one to +infinity on the real axis, from -2 two branches go to the asymptotes at 120 and 240 degrees; asymptotes (dashed) have centroid -2/3; the locus never touches the imaginary axis.
BIBO stability and critical cases
The official conclusion is read from the loci: both in the positive and in the negative locus there are two branches entirely contained in the right half-plane, so W is never BIBO stable.
Count with the tools of the course, valid for every real . Routh array of :
| row | column 1 | column 2 | column 3 |
|---|---|---|---|
Here , and the entry is , with . The first column is :
- : signs : two sign changes;
- : signs : two sign changes;
- : the entry is zero; replacing it by the entry tends to : signs , again two sign changes.
So for every real (and also for , where the roots are ) has exactly two roots with positive real part and no root on the imaginary axis: is not BIBO stable for any , and there are no critical cases. Numerical check of the roots of for : always exactly two roots with positive real part.
Typical errors: counting singularities on the left instead of the right in the real-axis rule; forgetting that the double pole at counts as two singularities; accepting the complex roots of as double points without checking that is real; concluding stability for large because a branch goes towards the zero at (the two branches starting from never come back to the left half-plane).
Exercise 3 (points 7.5)
i) Given a continuous-time causal input/output model described by the transfer function determine, if they exist, real values of and for which the unit step response of the system, , has steady-state value and rise time s.
ii) Given the process with transfer function design a stabilizing and proper controller that gives the resulting feedback system type and a steady-state error to the linear ramp not greater than , and gives the open-loop transfer function a crossover frequency rad/s and a phase margin .
Show the result
i) Steady-state value and (BIBO stability). With the rise time of the official solution, (time to reach of the final value): and , that is . With the definition of the notes of this course (rise time from to of the final value, ): and , that is . The solution exists and is unique in both cases.
ii) (synthesis of the lead and lag networks: out of syllabus) Official solution: with that is
Show the full solution
(i) First-order model
Theory used: BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →, Step Response of First- and Second-Order Systemstime constant, rise time and settling time of a first-order system, and rise time, settling time, overshoot and pole-location constraints of an underdamped second-order system, all derived from the step response.Step Response of First- and Second-Order Systems →, The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →.
Why . The steady-state value and the rise time of the step response exist only if the system is BIBO stable; the pole of is , so we need (Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →).
Step response. The Laplace transform of the unit step is , so
- Steady-state value: . The condition is . (Error: taking as the steady-state value.)
- Rise time. The response is monotone and has time constant . The level of the final value is reached at and the level at . With the definition of the notes (time to go from to ), . The official solution of the exam instead uses (time to reach of the final value, which is the definition used in the Italian-language course).
Solving. With the official convention: and : . Check: and s. With the convention of the notes: and . Check: and s. The datum s is approximate, so the values are given up to rounding; with the pair the to rise time is s and the time to reach is s.
Typical errors: (time constant); mixing the two definitions of rise time without saying which one is used; forgetting the check .
(ii) Controller with a lead and a lag network (OUT OF SYLLABUS)
Step 1: type and ramp error (explained in the notes). For a type closed loop the open loop must have one pole at the origin, so write with (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →, PID Controllers and Bode Method DesignPID controllers exist in parallel and series forms, ideal and real (with a pole on the derivative), and are designed with the Bode method by choosing the controller type and gain from the steady-state specifications and then the PID parameters that give the required gain and phase correction at the crossover frequency.PID Controllers and Bode Method Design →). For a unit ramp the error is , with : the condition gives . The official solution chooses , so that .
Steps 2 and 3: the networks. The synthesis of lead and lag networks is not explained in the notes of this course. Summary of the official solution:
- the Bode diagram of is drawn; at rad/s the modulus is dB and the phase is about (asymptotic values). A saddle network is therefore needed, which at rad/s lowers the modulus by dB and raises the phase by at least ;
- lead network to fix the phase: the zero is placed at and the pole two decades after, (so that the modulus at rad/s is not raised);
- lag network whose pole precedes the zero by two decades, so that the modulus at rad/s is lowered by dB: ;
- the Bode diagram of the whole open loop is drawn (modulus about dB at ) and the BIBO stability of the feedback system is guaranteed by the Bode criterion.
Numerical check of the official design (script, not part of the official solution). At : has modulus dB and phase (the asymptotic values dB and are approximations); the lead network adds dB and , the lag network dB and . The final open loop has and phase : the crossover frequency is rad/s and the phase margin is , so is met only approximately (hence the symbol in the text). The velocity constant is , so . is proper (two zeros, three poles). The zero of at cancels the stable pole of at (a hidden stable mode); the other closed-loop poles are , , and : all stable.
Typical errors: using only a lead network (the modulus at is above dB and must be lowered); a controller that is not proper; computing the margin at the nominal rad/s without checking the true crossover frequency.
Theory 1 (points 6)
Consider a causal continuous-time LTI input/output model, described by a linear differential equation with constant coefficients of the type ( and ) and driven by the input signal with fixed. Assuming arbitrary initial conditions, introduce the concepts of steady-state response and of transient response, and prove (working in the transform domain) that, under suitable hypotheses, the complex evolution of the (output of the) system can always be expressed as the sum of the two.
How does the answer to the previous question change if the initial conditions of the system are zero?
Prove that the previous result extends to the case of causal sinusoidal signals.
Show the result
Let , , and assume ( is not a pole).
- Statement. For arbitrary initial conditions and , where has the form of the input and does not depend on the initial conditions, and is a linear combination of the modes of the system (roots of ). If all the roots of have negative real part, .
- Zero initial conditions. The decomposition is the same, but contains only the modes associated with the poles of (after the cancellation of common factors of and ): BIBO stability is enough for .
- Sinusoids. For (with not poles): ; for the same with .
Show the full solution
Theory used: The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →, Time-Domain Solution of ODEsA linear constant-coefficient ODE is solved as the sum of a homogeneous solution (natural modes from the characteristic equation) and a particular solution (forced by the input), with the constants fixed by the initial conditions; the sign of the real part of the roots decides growth or decay.Time-Domain Solution of ODEs →, Frequency Response of BIBO Stable SystemsFor a BIBO stable system W(s) driven by a sinusoid of angular frequency w, the output converges to a sinusoid of the same frequency whose amplitude is multiplied by |W(jw)| and whose phase is shifted by the angle of W(jw); the result extends to cosines and to sums of sinusoids.Frequency Response of BIBO Stable Systems →.
Setting and definitions
Taking the Laplace transform of the differential equation with initial conditions at (The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →) gives where is a polynomial of degree at most that depends only on the initial conditions, and is the transfer function (proper, because ). The modes of the system are the functions with a root of .
Definitions. For the input , the steady-state response is the part of the output that has the same form as the input, with a complex constant, and does not depend on the initial conditions. The transient response is the remainder: it will be a linear combination of the modes of the system, and it vanishes for if the modes decay.
Proof with arbitrary initial conditions
The input has transform . Hypothesis: , i.e. is not a root of (without it we would have resonance: a pole of of multiplicity two). Then Add and subtract in the numerator of the second term: The polynomial vanishes at , because ; so with a polynomial of degree at most (since , here is used). The factor cancels and The second term is a strictly proper rational function whose denominator is only: it has no pole at and its inverse transform is a linear combination of the modes of the system. The first term has inverse transform . Therefore, for , that is with (it depends on the model only through , a complex number, and not on the initial conditions, which enter only ). If all the roots of have negative real part, every mode decays and , so for large the output is .
(Check with a script on an example, , , , initial conditions , : the residue of at equals , and the remainder has denominator only.)
Zero initial conditions
If the initial conditions are zero, (the free evolution is absent) and . If and have a common factor , then is also divisible by it, hence is, and the factor cancels in . So in least terms the denominator contains only the poles of : the transient is a combination of the modes of only. The consequence: with zero initial conditions BIBO stability of (all the poles of with negative real part) is enough for ; with arbitrary initial conditions the transient contains all the roots of , including those cancelled in (hidden modes), and one needs the roots of to have negative real part. The expression of does not change.
Extension to causal sinusoidal signals
Let , so Assume (for a polynomial with real coefficients the two conditions are equivalent). Applying to each term the same manipulation as above, with replaced by in the second one: The last term is again a combination of the modes of (the transient). Inverting, Since and have real coefficients, ; writing with , the two terms are complex conjugate and Hence also for the cosine; for one gets . This is the result of Frequency Response of BIBO Stable SystemsFor a BIBO stable system W(s) driven by a sinusoid of angular frequency w, the output converges to a sinusoid of the same frequency whose amplitude is multiplied by |W(jw)| and whose phase is shifted by the angle of W(jw); the result extends to cosines and to sums of sinusoids.Frequency Response of BIBO Stable Systems →, where is BIBO stable and the transient vanishes; here the decomposition holds with no stability assumption, and stability only decides whether disappears.
(Script check on the same example with : the remainder of after removing the steady-state part has denominator only, and the inverse transform of the steady-state part equals .)
Typical errors: applying the steady-state formula when is a pole of ; saying that the transient depends only on even with nonzero initial conditions; using instead of as gain; forgetting that is the complex conjugate of only because the coefficients are real.
Remarks on the official solution
- No misprint affecting a result was found. The phase of Exercise 1 is described as "from to " in the text and drawn from to in the figure: the two descriptions are equivalent modulo .
- Exercise 3, point i: the official solution uses (time to reach of the final value). In the notes of this course the rise time is the time from to (): the two conventions give , and , .
- Exercise 3, point ii: the values dB and used in the official design are the asymptotic ones (the exact values are dB and ), and the resulting phase margin is , not : the design satisfies the specification only approximately, as the symbol of the text admits.
- The theory question has no worked solution in the source (it refers to the textbook); the answer above is written for this note.
Self-assessment grid
| Exercise | Points | What must be there for full points | Typical errors |
|---|---|---|---|
| Exercise 1 | 9.5 | Bode form with , pole at the origin, zeros with , and unstable pole at ; asymptotic modulus ( dB/dec, then flat at dB) with the anti-resonance; phase rising from to ; Nyquist diagram with the vertical asymptote , crossings at and and end point ; the three regions of with , the critical cases and and the conclusion or | wrong sign of and of the initial phase; stable-pole phase for the unstable pole; resonance instead of anti-resonance; forgetting that the pole at the origin needs the closing circle; missing the case ( not proper) |
| Exercise 2 | 7.5 | , , three asymptotes with centroid ; real axis of the positive and of the negative locus; the equation and the rejection of the complex roots; no imaginary-axis crossing; destination of the four branches in both loci; two poles with positive real part for every , so never BIBO stable | wrong parity count on the real axis; accepting the complex candidates as double points; looking for a stabilising gain that does not exist; not discussing |
| Exercise 3 | 7.5 | point i: , steady state , rise-time equation with the convention stated, and ; point ii: from type and , lead and lag (saddle) network at rad/s, proper controller, check of crossover frequency and phase margin | ; steady-state value taken as ; only a lead network; non-proper ; margin computed at the nominal frequency without checking |
| Theory 1 | 6 | definitions of and ; ; add and subtract , cancellation of the factor , remainder with denominator ; zero initial conditions: transient with the poles of only; extension to cosine and sine with | not stating the hypothesis ; working in the time domain instead of the transform domain; saying that the transient is always governed by alone; not proving the sinusoidal case with the conjugate symmetry |