Salta al contenuto
Note per Studenti Control Systems - Exam of 12 February 2024 Report

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 G(s)=s2+2s+100s(s−10).G(s)=\frac{s^2+2s+100}{s(s-10)}.

i) Determine the Bode diagram (modulus and phase) of the frequency response of the system.

ii) Determine the Nyquist diagram of G(jω)G(j\omega) for ω∈R\omega\in\mathbb R, identifying its asymptotes and its intersections with the axes.

iii) Study through the Nyquist criterion the BIBO stability of the feedback system W(s)=KG(s)1+KG(s),W(s)=\frac{KG(s)}{1+KG(s)}, as KK varies in R\mathbb R, K≠0K\neq0, 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 G(s)=−10 1+0.02 s+s2100s(1−s10)G(s)=-10\,\dfrac{1+0.02\,s+\frac{s^2}{100}}{s\left(1-\frac s{10}\right)}: Bode gain KB=−10K_B=-10, one pole at the origin, a pair of complex conjugate zeros with negative real part (ωn=10\omega_n=10, ξ=0.1\xi=0.1) and one real unstable pole at 1010.

  • Modulus: asymptotic slope −20-20 dB/dec up to ω=10\omega=10 (the line passes through 2020 dB at ω=1\omega=1), then flat at 00 dB. The real modulus has an anti-resonance of about −17-17 dB at ω=10\omega=10 (∣G(10j)∣=0.1414\lvert G(10j)\rvert=0.1414).
  • Phase: always increasing, from 90∘90^\circ (equivalently −270∘-270^\circ) at low frequency to 360∘360^\circ (equivalently 0∘0^\circ) at high frequency, with the steep part around ω=10\omega=10.

ii) (out of syllabus) G(jω)=ω2−120100+ω2+j 1000−12ω2ω(100+ω2)G(j\omega)=\dfrac{\omega^2-120}{100+\omega^2}+j\,\dfrac{1000-12\omega^2}{\omega(100+\omega^2)}. For ω→0+\omega\to0^+: Re⁡→−1.2\operatorname{Re}\to-1.2, Im⁡→+∞\operatorname{Im}\to+\infty (vertical asymptote Re⁡=−1.2\operatorname{Re}=-1.2); for ω→+∞\omega\to+\infty: G→1G\to1. Intersections: the negative real semi-axis at −0.2-0.2 (for ω1=1000/12=250/3≈9.13\omega_1=\sqrt{1000/12}=\sqrt{250/3}\approx9.13) and the negative imaginary semi-axis at −0.18 j-0.18\,j (for ω2=120≈10.95\omega_2=\sqrt{120}\approx10.95). The part for ω<0\omega<0 follows by Hermitian symmetry.

iii) (out of syllabus) With critical point −1K-\frac1K and nG+=1n_{G+}=1:

  • 0<K<50<K<5: N=−1N=-1, nW+=2n_{W+}=2 (two poles with positive real part);
  • K>5K>5 or K<−1K<-1: N=1N=1, nW+=0n_{W+}=0;
  • −1<K<0-1<K<0: N=0N=0, nW+=1n_{W+}=1;
  • critical cases: for K=5K=5, WW has two imaginary conjugate poles; for K=−1K=-1, WW is not proper.

WW is BIBO stable if and only if K<−1K<-1 or K>5K>5.

Show the full solution

(i) Bode diagram

Theory used: Transfer Function and Bode PlotsThe frequency response of an amplifier is A(jw) = A(s) with s = jw; written in factored form (constant, zeros and poles as factors 1 + s/wi) its modulus in dB and its phase are obtained by adding the contributions of each factor; asymptotic modulus: pole = -20 dB/decade after wp, zero = +20 dB/decade, pole or zero at the origin = constant slope of +-20 dB/dec; phase: each real pole (zero) adds -90 (+90) degrees with a linear segment from w/10 to 10w; for an input A sin(w0 t + phi) the output is |A(jw0)| A sin(w0 t + phi + angle A(jw0)).Transfer Function and Bode Plots →.

Bode form. Every factor must have constant term 11. The numerator is s2+2s+100=100(1+0.02 s+s2100)s^2+2s+100=100\left(1+0.02\,s+\frac{s^2}{100}\right); the denominator is s(s−10)=−10 s(1−s10)s(s-10)=-10\,s\left(1-\frac s{10}\right). Therefore G(s)=−10 1+0.02 s+s2100s(1−s10).G(s)=-10\,\frac{1+0.02\,s+\frac{s^2}{100}}{s\left(1-\frac s{10}\right)}. Reading the factors:

  • constant KB=100−10=−10K_B=\dfrac{100}{-10}=-10 (a negative constant: modulus ∣KB∣=10\lvert K_B\rvert=10, that is 2020 dB, and phase ±180∘\pm180^\circ);
  • a pole at the origin (factor 1/s1/s);
  • a pair of complex conjugate zeros: compare 1+2ξωns+s2ωn21+\frac{2\xi}{\omega_n}s+\frac{s^2}{\omega_n^2} with 1+0.02 s+s21001+0.02\,s+\frac{s^2}{100}: ωn2=100\omega_n^2=100, so ωn=10\omega_n=10, and 2ξωn=0.02\frac{2\xi}{\omega_n}=0.02, so ξ=0.1>0\xi=0.1>0. The zeros are −1±j99-1\pm j\sqrt{99}: negative real part, stable zeros;
  • a real pole at s=+10s=+10, i.e. the factor (1−s10)\left(1-\frac s{10}\right) with a minus sign: an unstable (positive) pole.

Asymptotic modulus. For ω≪10\omega\ll10 only KBK_B and the pole at the origin matter: ∣G∣≈10ω\lvert G\rvert\approx\frac{10}{\omega}, i.e. 20−20log⁡10ω20-20\log_{10}\omega dB, a line of slope −20-20 dB/dec that passes through 2020 dB at ω=1\omega=1 (and 6060 dB at ω=0.01\omega=0.01). At ω=10\omega=10 three factors change the slope: the complex zeros add +40+40 dB/dec and the positive real pole subtracts 2020 dB/dec (a positive root has the same modulus as the negative one). The slope becomes −20+40−20=0-20+40-20=0: the diagram is flat for ω>10\omega>10, at the level reached at ω=10\omega=10, 20−20=020-20=0 dB (consistent with G(jω)→1G(j\omega)\to1).

Real modulus. The zeros have small damping ξ=0.1\xi=0.1: around ωn=10\omega_n=10 the modulus has a deep anti-resonance (a valley, not a peak). At ω=10\omega=10 the complex-zero factor has modulus 2ξ=0.22\xi=0.2 (−14-14 dB) and the real pole contributes about −3-3 dB: about −17-17 dB in total. The exact value is ∣G(10j)∣=0.1414\lvert G(10j)\rvert=0.1414, that is −16.99-16.99 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: +180∘+180^\circ (the choice −180∘-180^\circ gives the same diagram modulo 360∘360^\circ);
  • pole at the origin: −90∘-90^\circ, so the diagram starts at 180∘−90∘=90∘180^\circ-90^\circ=90^\circ (equivalently −270∘-270^\circ);
  • stable complex zeros: +180∘+180^\circ, concentrated around ω=10\omega=10 (steep because ξ\xi is small);
  • unstable real pole in the denominator: its phase has the reversed sign with respect to a stable pole, so it adds +90∘+90^\circ instead of −90∘-90^\circ, along a segment from ω=1\omega=1 to ω=100\omega=100.

The phase therefore always increases, from 90∘90^\circ to 90∘+180∘+90∘=360∘90^\circ+180^\circ+90^\circ=360^\circ (equivalent to −270∘→0∘-270^\circ\to0^\circ in the diagram of the official solution). In the asymptotic diagram: 90∘90^\circ for ω<1\omega<1, then a ramp of +45∘+45^\circ/dec (the pole) up to 135∘135^\circ at ω=10\omega=10, a jump of about +180∘+180^\circ at ω=10\omega=10 (the zeros), up to 315∘315^\circ, and a ramp up to 360∘360^\circ at ω=100\omega=100.

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 G(jω)G(j\omega)):

ω\omega (rad/s) 0.10.1 11 22 55 1010 2020 100100 10001000
modulus (dB) 40.040.0 19.919.9 13.513.5 2.62.6 −17.0-17.0 −3.4-3.4 −0.1-0.1 0.00.0
phase 90.7∘90.7^\circ 96.9∘96.9^\circ 103.7∘103.7^\circ 124.2∘124.2^\circ 225.0∘225.0^\circ 325.8∘325.8^\circ 353.1∘353.1^\circ 359.3∘359.3^\circ

Typical errors: taking KB=+10K_B=+10 (the sign comes from s−10=−10(1−s10)s-10=-10(1-\frac s{10})) and so starting the phase at −90∘-90^\circ; giving the unstable pole the phase of a stable one (the phase would then end at 180∘180^\circ instead of 360∘360^\circ); 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 G(jω)G(j\omega) one finds G(jω)=ω2−120100+ω2+j 1000−12ω2ω(100+ω2)G(j\omega)=\dfrac{\omega^2-120}{100+\omega^2}+j\,\dfrac{1000-12\omega^2}{\omega(100+\omega^2)}.
  • Restricting to ω≥0\omega\ge0, the imaginary part vanishes only at ω1=1000/12=250/3≈9.13\omega_1=\sqrt{1000/12}=\sqrt{250/3}\approx9.13, where the real part is −15=−0.2-\frac15=-0.2; the real part vanishes only at ω2=120≈10.95\omega_2=\sqrt{120}\approx10.95, where the imaginary part is −2120≈−0.18-\frac2{\sqrt{120}}\approx-0.18.
  • Limits: Re⁡→−1.2\operatorname{Re}\to-1.2 and Im⁡→+∞\operatorname{Im}\to+\infty for ω→0+\omega\to0^+; Re⁡→1\operatorname{Re}\to1 and Im⁡→0\operatorname{Im}\to0 for ω→+∞\omega\to+\infty.
  • Consequently the diagram for ω≥0\omega\ge0 starts parallel to the vertical asymptote Re⁡=−1.2\operatorname{Re}=-1.2, then descends rotating counter-clockwise, first crosses the negative real semi-axis at −0.2-0.2 (for ω=ω1\omega=\omega_1), then the negative imaginary semi-axis at −0.18-0.18 (for ω=ω2\omega=\omega_2), and finally arrives at the point (1,0)(1,0) for ω=+∞\omega=+\infty. 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 Re⁡G\operatorname{Re}G and Im⁡G\operatorname{Im}G agree with G(jω)G(j\omega) at test points; ω1=9.1287\omega_1=9.1287 with Re⁡=−0.2000\operatorname{Re}=-0.2000; ω2=10.954\omega_2=10.954 with Im⁡=−0.18257\operatorname{Im}=-0.18257; limits −6/5-6/5 and 11.

(iii) Stability of WW 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 s=−1Ks=-\frac1K:

  • −1K<−15-\frac1K<-\frac15 (that is 0<K<50<K<5): N=−1N=-1, nG+=1n_{G+}=1, nW+=2n_{W+}=2;
  • −15<−1K<1-\frac15<-\frac1K<1 (that is K<−1K<-1 or K>5K>5): N=1N=1, nG+=1n_{G+}=1, nW+=0n_{W+}=0;
  • −1K>1-\frac1K>1 (that is −1<K<0-1<K<0): N=0N=0, nG+=1n_{G+}=1, nW+=1n_{W+}=1.

For K=5K=5 the function WW has two conjugate imaginary poles, for K=−1K=-1 it is not proper. So WW is BIBO stable if and only if K<−1K<-1 or K>5K>5.

Cross-check with the tools of the course (not part of the official solution). Write G=ndG=\frac nd with n=s2+2s+100n=s^2+2s+100 and d=s2−10sd=s^2-10s. The poles of W=Knd+KnW=\frac{Kn}{d+Kn} are the roots of d(s)+K n(s)=(1+K)s2+(2K−10)s+100K,d(s)+K\,n(s)=(1+K)s^2+(2K-10)s+100K, 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 1+K, 2K−10, 100K1+K,\ 2K-10,\ 100K:

KK signs of the three coefficients sign changes poles with Re⁡>0\operatorname{Re}>0
K>5K>5 +,+,++,+,+ 00 00
0<K<50<K<5 +,−,++,-,+ 22 22
−1<K<0-1<K<0 +,−,−+,-,- 11 11
K<−1K<-1 −,−,−-,-,- 00 00

The critical values: for K=5K=5 the polynomial is 6s2+5006s^2+500, with roots ±j250/3=±9.13j\pm j\sqrt{250/3}=\pm9.13j (two imaginary poles); for K=−1K=-1 it has degree 11 (−12s−100-12s-100) while the numerator KnKn has degree 22, so WW is not proper and cannot be BIBO stable. The result is the same as the official one: BIBO stable if and only if K<−1K<-1 or K>5K>5. Numerical check on the roots: K=−3,−1.5K=-3,-1.5: no poles with positive real part; K=−0.5,−0.1K=-0.5,-0.1: one; K=0.1,1,4K=0.1,1,4: two; K=6,30K=6,30: none.

Exercise 2 (points 7.5)

Given G(s)=s(s−1)2(s+2)2,G(s)=\frac{s}{(s-1)^2(s+2)^2}, 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 W(s)=KG(s)1+KG(s)W(s)=\frac{KG(s)}{1+KG(s)} as KK varies, identifying, for each value of KK, the number of poles with positive real part. Discuss any critical cases.

Show the result
  • Poles of GG: 11 (double) and −2-2 (double); zero: 00; n=4n=4, m=1m=1, so 33 asymptotes with centroid xB=−23x_B=-\frac23: at π3, π, 5π3\frac\pi3,\ \pi,\ \frac{5\pi}3 in the positive locus, at 0, 2π3, 4π30,\ \frac{2\pi}3,\ \frac{4\pi}3 in the negative locus.
  • Positive locus on the real axis: (−∞,0)(-\infty,0) (the semi-axis (0,+∞)(0,+\infty) belongs to the negative locus).
  • Candidate double points: 0=(s+2)(s−1) (3s2+s+2)0=(s+2)(s-1)\,(3s^2+s+2). The roots s=−2s=-2 and s=1s=1 are the double poles of GG themselves (K=0K=0), where two branches start; the roots s=−1±j236≈−0.1667±0.8 js=\frac{-1\pm j\sqrt{23}}6\approx-0.1667\pm0.8\,j give complex values of KK, so there are no double points (neither in the positive nor in the negative locus).
  • Intersections with the imaginary axis: none (for any real KK).
  • Positive locus: one branch from −2-2 to −∞-\infty, one from −2-2 to 00 along the real axis, two branches from 11 to the asymptotes at π3\frac\pi3 and 5π3\frac{5\pi}3. Negative locus: one branch from 11 to +∞+\infty, one from 11 to 00 along the real axis, two branches from −2-2 to the asymptotes at 2π3\frac{2\pi}3 and 4π3\frac{4\pi}3.
  • In both loci two branches lie entirely in the right half-plane: for every K≠0K\neq0 there are exactly two poles with positive real part and WW is never BIBO stable. There are no critical cases (no poles on the imaginary axis for any KK).
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

N(s)=sN(s)=s and D(s)=(s−1)2(s+2)2D(s)=(s-1)^2(s+2)^2, both monic and coprime, with m=1m=1 and n=4n=4. Expanding, (s−1)2=s2−2s+1(s-1)^2=s^2-2s+1 and (s+2)2=s2+4s+4(s+2)^2=s^2+4s+4, so D(s)=s4+2s3−3s2−4s+4,W(s)=KND+KN,PK(s)=D(s)+K N(s)=s4+2s3−3s2+(K−4)s+4.D(s)=s^4+2s^3-3s^2-4s+4,\qquad W(s)=\frac{KN}{D+KN},\qquad P_K(s)=D(s)+K\,N(s)=s^4+2s^3-3s^2+(K-4)s+4. The poles of WW are the roots of PKP_K. Since PK(0)=4≠0P_K(0)=4\neq0 for every KK, NN and PKP_K have no common factor, so WW is in least terms and BIBO stability is stability of the roots of PKP_K.

Positive locus (K≥0K\ge0)

  • R1 (branches). Four branches start at the poles 1,1,−2,−21,1,-2,-2; one ends at the zero 00 and n−m=3n-m=3 go to infinity.
  • R2 (real axis). A real point belongs to the locus if it has an odd number of poles and zeros of GG to its right (multiplicities counted). For s>1s>1: none (even) ⇒\Rightarrow no. For 0<s<10<s<1: the double pole 11, that is 22 (even) ⇒\Rightarrow no. For −2<s<0-2<s<0: the double pole and the zero, 33 (odd) ⇒\Rightarrow yes. For s<−2s<-2: 2+1+2=52+1+2=5 (odd) ⇒\Rightarrow yes. So the locus contains (−∞,0)(-\infty,0); n−m=3n-m=3 is odd, so one branch goes to −∞-\infty along the negative real axis.
  • R3 (asymptotes). Centroid σc=∑pi−∑zℓn−m=(1+1−2−2)−03=−23\sigma_c=\dfrac{\sum p_i-\sum z_\ell}{n-m}=\dfrac{(1+1-2-2)-0}{3}=-\dfrac23. With n−m=3n-m=3 the rays are at 120∘120^\circ from each other, one of them the negative real axis: angles 60∘60^\circ, 180∘180^\circ and 300∘300^\circ.
  • R4 (multiple points). The candidates satisfy N′D=ND′N'D=ND'. Here N′=1N'=1 and D′=2(s−1)(s+2)2+2(s−1)2(s+2)=2(s−1)(s+2)(2s+1)D'=2(s-1)(s+2)^2+2(s-1)^2(s+2)=2(s-1)(s+2)(2s+1), so N′D−ND′=(s−1)(s+2)[(s−1)(s+2)−2s(2s+1)]=−(s−1)(s+2)(3s2+s+2).N'D-ND'=(s-1)(s+2)\big[(s-1)(s+2)-2s(2s+1)\big]=-(s-1)(s+2)(3s^2+s+2). The roots s=1s=1 and s=−2s=-2 are the double poles of GG, with Kˉ=0\bar K=0: they are the starting points of two branches each (two outgoing branches along two opposite rays). At s=−2s=-2 the real axis belongs to the locus on both sides, so one branch goes left and one goes right (towards the zero 00); at s=1s=1 the real axis is not in the locus on either side, so the two branches leave vertically, upwards and downwards. The roots of 3s2+s+2=03s^2+s+2=0 are s=−1±j236≈−0.1667±0.80 js=\frac{-1\pm j\sqrt{23}}{6}\approx-0.1667\pm0.80\,j: for them Kˉ=−D(sˉ)N(sˉ)≈5.41∓8.17 j\bar K=-\frac{D(\bar s)}{N(\bar s)}\approx5.41\mp8.17\,j is not a real number, so they are not multiple points of the locus (a multiple point needs a real Kˉ≥0\bar K\ge0). 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 PK(jω)=0P_K(j\omega)=0 for some ω\omega. Computing, PK(jω)=(ω4+3ω2+4)+j ω(K−4−2ω2).P_K(j\omega)=\big(\omega^4+3\omega^2+4\big)+j\,\omega\big(K-4-2\omega^2\big). The real part is at least 44 for every ω\omega, so it never vanishes: no intersection with the imaginary axis, for any real KK (the same computation holds for the negative locus). In particular s=0s=0 is never a root, since PK(0)=4P_K(0)=4.

The two branches that leave 11 vertically bend towards the asymptotes at ±60∘\pm60^\circ 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 (K<0K<0) (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 (0,+∞)(0,+\infty) belongs to the negative locus; the asymptotes (again three, with the same centroid −23-\frac23) have slopes 00, 2π3\frac{2\pi}3 and 4π3\frac{4\pi}3; there are no double points (same equation) and no intersections with the imaginary axis (same computation). The negative locus consists of: one branch from 11 to +∞+\infty on the real axis, one branch from 11 to 00 along the real axis, and two branches that leave −2-2 and go to the asymptotes of slope 2π3\frac{2\pi}3 and 4π3\frac{4\pi}3.

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 KK. Routh array of PK(s)=s4+2s3−3s2+(K−4)s+4P_K(s)=s^4+2s^3-3s^2+(K-4)s+4:

row column 1 column 2 column 3
s4s^4 11 −3-3 44
s3s^3 22 K−4K-4 00
s2s^2 −K+22-\dfrac{K+2}{2} 44
s1s^1 K2−2K+8K+2\dfrac{K^2-2K+8}{K+2}
s0s^0 44

Here −K+22=2⋅(−3)−1⋅(K−4)2-\frac{K+2}2=\frac{2\cdot(-3)-1\cdot(K-4)}{2}, and the s1s^1 entry is 16+(K−4)(K+2)K+2\frac{16+(K-4)(K+2)}{K+2}, with K2−2K+8=(K−1)2+7>0K^2-2K+8=(K-1)^2+7>0. The first column is 1, 2, −K+22, K2−2K+8K+2, 41,\ 2,\ -\frac{K+2}2,\ \frac{K^2-2K+8}{K+2},\ 4:

  • K>−2K>-2: signs +,+,−,+,++,+,-,+,+: two sign changes;
  • K<−2K<-2: signs +,+,+,−,++,+,+,-,+: two sign changes;
  • K=−2K=-2: the s2s^2 entry is zero; replacing it by ε>0\varepsilon>0 the s1s^1 entry tends to −∞-\infty: signs +,+,+,−,++,+,+,-,+, again two sign changes.

So for every real KK (and also for K=0K=0, where the roots are 1,1,−2,−21,1,-2,-2) PKP_K has exactly two roots with positive real part and no root on the imaginary axis: WW is not BIBO stable for any KK, and there are no critical cases. Numerical check of the roots of PKP_K for K=−1000,−50,−10,−3,−2,−1,−0.1,0.001,0.1,1,4,10,100,104K=-1000,-50,-10,-3,-2,-1,-0.1,0.001,0.1,1,4,10,100,10^4: 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 11 counts as two singularities; accepting the complex roots of 3s2+s+23s^2+s+2 as double points without checking that Kˉ\bar K is real; concluding stability for large KK because a branch goes towards the zero at 00 (the two branches starting from 11 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 W(s)=Ks+p,W(s)=\frac{K}{s+p}, determine, if they exist, real values of KK and pp for which the unit step response of the system, w−1(t)w_{-1}(t), has steady-state value 1.11.1 and rise time tr≈0.23t_r\approx0.23 s.

ii) Given the process with transfer function G(s)=10(s+1)(s+10),G(s)=\frac{10}{(s+1)(s+10)}, design a stabilizing and proper controller C(s)∈R(s)C(s)\in\mathbb R(s) that gives the resulting feedback system W(s)=C(s)G(s)1+C(s)G(s)W(s)=\frac{C(s)G(s)}{1+C(s)G(s)} type 11 and a steady-state error to the linear ramp ∣erp(2)∣\lvert e_{rp}^{(2)}\rvert not greater than 0.010.01, and gives the open-loop transfer function C(s)G(s)C(s)G(s) a crossover frequency ωA≃ωA∗=1\omega_A\simeq\omega_A^*=1 rad/s and a phase margin mψ≈mψ∗=90∘m_\psi\approx m_\psi^*=90^\circ.

Show the result

i) Steady-state value Kp=1.1\frac Kp=1.1 and p>0p>0 (BIBO stability). With the rise time of the official solution, tr=ln⁡10pt_r=\frac{\ln10}{p} (time to reach 90%90\% of the final value): p=ln⁡100.23≈10p=\frac{\ln10}{0.23}\approx10 and K=1.1 p≈11K=1.1\,p\approx11, that is W(s)=11s+10W(s)=\dfrac{11}{s+10}. With the definition of the notes of this course (rise time from 10%10\% to 90%90\% of the final value, tr=ln⁡9p≈2.2pt_r=\frac{\ln9}{p}\approx\frac{2.2}{p}): p=ln⁡90.23≈9.55p=\frac{\ln9}{0.23}\approx9.55 and K≈10.5K\approx10.5, that is W(s)≈10.5s+9.55W(s)\approx\dfrac{10.5}{s+9.55}. The solution exists and is unique in both cases.

ii) (synthesis of the lead and lag networks: out of syllabus) Official solution: C(s)=100s Cant(s) Catt(s)C(s)=\dfrac{100}{s}\,C_{ant}(s)\,C_{att}(s) with C′(s)=100s,Cant(s)=1+s1+0.01 s,Catt(s)=1+10 s1+1000 s,C'(s)=\frac{100}{s},\qquad C_{ant}(s)=\frac{1+s}{1+0.01\,s},\qquad C_{att}(s)=\frac{1+10\,s}{1+1000\,s}, that is C(s)=100s⋅1+s1+0.01 s⋅1+10 s1+1000 s.C(s)=\frac{100}{s}\cdot\frac{1+s}{1+0.01\,s}\cdot\frac{1+10\,s}{1+1000\,s}.

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 p>0p>0. The steady-state value and the rise time of the step response exist only if the system is BIBO stable; the pole of WW is −p-p, so we need p>0p>0 (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 1s\frac1s, so W−1(s)=Ks(s+p)=Kp(1s−1s+p) ⟹ w−1(t)=Kp(1−e−pt)δ−1(t).W_{-1}(s)=\frac{K}{s(s+p)}=\frac Kp\left(\frac1s-\frac1{s+p}\right)\ \Longrightarrow\ w_{-1}(t)=\frac Kp\left(1-e^{-pt}\right)\delta_{-1}(t).

  • Steady-state value: lim⁡t→∞w−1(t)=Kp=W(0)\lim_{t\to\infty}w_{-1}(t)=\frac Kp=W(0). The condition is Kp=1.1\frac Kp=1.1. (Error: taking KK as the steady-state value.)
  • Rise time. The response is monotone and has time constant τ=1p\tau=\frac1p. The level 10%10\% of the final value is reached at t1=1pln⁡10.9≈0.105pt_1=\frac1p\ln\frac1{0.9}\approx\frac{0.105}p and the level 90%90\% at t2=1pln⁡10≈2.30pt_2=\frac1p\ln10\approx\frac{2.30}p. With the definition of the notes (time to go from 10%10\% to 90%90\%), tr=t2−t1=ln⁡9p≈2.2p=2.2 τt_r=t_2-t_1=\frac{\ln9}p\approx\frac{2.2}p=2.2\,\tau. The official solution of the exam instead uses tr=ln⁡10p=t2t_r=\frac{\ln10}{p}=t_2 (time to reach 90%90\% of the final value, which is the definition used in the Italian-language course).

Solving. With the official convention: ln⁡10p=0.23⇒p=2.30260.23=10.01≈10\frac{\ln10}{p}=0.23\Rightarrow p=\frac{2.3026}{0.23}=10.01\approx10 and K=1.1 p≈11K=1.1\,p\approx11: W(s)=11s+10W(s)=\frac{11}{s+10}. Check: W(0)=1.1W(0)=1.1 and ln⁡1010=0.2303\frac{\ln10}{10}=0.2303 s. With the convention of the notes: ln⁡9p=0.23⇒p=2.19720.23=9.55\frac{\ln9}{p}=0.23\Rightarrow p=\frac{2.1972}{0.23}=9.55 and K=1.1 p=10.51K=1.1\,p=10.51. Check: W(0)=1.1W(0)=1.1 and ln⁡99.55=0.230\frac{\ln9}{9.55}=0.230 s. The datum tr≈0.23t_r\approx0.23 s is approximate, so the values are given up to rounding; with the pair (K,p)=(11,10)(K,p)=(11,10) the 10%10\% to 90%90\% rise time is 0.2200.220 s and the time to reach 90%90\% is 0.2300.230 s.

Typical errors: tr=1pt_r=\frac1p (time constant); mixing the two definitions of rise time without saying which one is used; forgetting the check p>0p>0.

(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 11 closed loop the open loop C(s)G(s)C(s)G(s) must have one pole at the origin, so write C=KcsC^(s)C=\frac{K_c}{s}\hat C(s) with C^(0)=1\hat C(0)=1 (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 1H1(0)=1KcG(0)\frac1{H_1(0)}=\frac1{K_cG(0)}, with G(0)=1010=1G(0)=\frac{10}{10}=1: the condition ∣erp(2)∣≤0.01\lvert e_{rp}^{(2)}\rvert\le0.01 gives Kc≥100K_c\ge100. The official solution chooses C′(s)=100sC'(s)=\frac{100}{s}, so that C′(s)G(s)=100s⋅10(s+1)(s+10)C'(s)G(s)=\frac{100}{s}\cdot\frac{10}{(s+1)(s+10)}.

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 C′(jω)G(jω)C'(j\omega)G(j\omega) is drawn; at ωA∗=1\omega_A^*=1 rad/s the modulus is M=40M=40 dB and the phase is about −135∘-135^\circ (asymptotic values). A saddle network is therefore needed, which at ωA∗=1\omega_A^*=1 rad/s lowers the modulus by M=40M=40 dB and raises the phase by at least 45∘45^\circ;
  • lead network to fix the phase: the zero is placed at 10010^0 and the pole two decades after, Cant(s)=1+s1+0.01 sC_{ant}(s)=\dfrac{1+s}{1+0.01\,s} (so that the modulus at ωA∗=1\omega_A^*=1 rad/s is not raised);
  • lag network whose pole precedes the zero by two decades, so that the modulus at ωA∗=1\omega_A^*=1 rad/s is lowered by M=40M=40 dB: Catt(s)=1+10 s1+1000 sC_{att}(s)=\dfrac{1+10\,s}{1+1000\,s};
  • the Bode diagram of the whole open loop is drawn (modulus about 00 dB at ω=1\omega=1) 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 ω=1\omega=1: C′GC'G has modulus 36.9536.95 dB and phase −140.7∘-140.7^\circ (the asymptotic values 4040 dB and −135∘-135^\circ are approximations); the lead network adds +3.0+3.0 dB and +44.4∘+44.4^\circ, the lag network −39.96-39.96 dB and −5.65∘-5.65^\circ. The final open loop has ∣C(j)G(j)∣=0.99995\lvert C(j)G(j)\rvert=0.99995 and phase −101.9∘-101.9^\circ: the crossover frequency is ωA=0.99994≈1\omega_A=0.99994\approx1 rad/s and the phase margin is mψ=78.1∘m_\psi=78.1^\circ, so 90∘90^\circ is met only approximately (hence the symbol ≈\approx in the text). The velocity constant is Kv=lim⁡s→0s C(s)G(s)=100K_v=\lim_{s\to0}s\,C(s)G(s)=100, so ∣erp(2)∣=1100=0.01\lvert e_{rp}^{(2)}\rvert=\frac1{100}=0.01. CC is proper (two zeros, three poles). The zero of CantC_{ant} at −1-1 cancels the stable pole of GG at −1-1 (a hidden stable mode); the other closed-loop poles are −100.1-100.1, −8.76-8.76, −1.014-1.014 and −0.112-0.112: all stable.

Typical errors: using only a lead network (the modulus at ωA∗\omega_A^* is above 00 dB and must be lowered); a controller that is not proper; computing the margin at the nominal ωA∗=1\omega_A^*=1 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 andny(t)dtn+an−1dn−1y(t)dtn−1+⋯+a0 y(t)=bmdmu(t)dtm+⋯+b0 u(t),a_n\frac{d^ny(t)}{dt^n}+a_{n-1}\frac{d^{n-1}y(t)}{dt^{n-1}}+\dots+a_0\,y(t)=b_m\frac{d^mu(t)}{dt^m}+\dots+b_0\,u(t), (an,bm≠0a_n,b_m\neq0 and n≥mn\ge m) and driven by the input signal u(t)=ejω~t δ−1(t),u(t)=e^{j\tilde\omega t}\,\delta_{-1}(t), with ω~∈R\tilde\omega\in\mathbb R 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 y(t)y(t) 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 a(s)=∑kakska(s)=\sum_ka_ks^k, b(s)=∑kbkskb(s)=\sum_kb_ks^k, W(s)=b(s)a(s)W(s)=\frac{b(s)}{a(s)} and assume a(jω~)≠0a(j\tilde\omega)\neq0 (jω~j\tilde\omega is not a pole).

  • Statement. For arbitrary initial conditions and t≥0t\ge0, y(t)=W(jω~) ejω~t⏟yrp(t) steady-state response+ ytr(t)⏟transient response,y(t)=\underbrace{W(j\tilde\omega)\,e^{j\tilde\omega t}}_{y_{rp}(t)\ \text{steady-state response}}+\ \underbrace{y_{tr}(t)}_{\text{transient response}}, where yrpy_{rp} has the form of the input and does not depend on the initial conditions, and ytry_{tr} is a linear combination of the modes of the system (roots of a(s)a(s)). If all the roots of a(s)a(s) have negative real part, ytr→0y_{tr}\to0.
  • Zero initial conditions. The decomposition is the same, but ytry_{tr} contains only the modes associated with the poles of W(s)W(s) (after the cancellation of common factors of aa and bb): BIBO stability is enough for ytr→0y_{tr}\to0.
  • Sinusoids. For u(t)=Acos⁡(ω~t+φ) δ−1(t)u(t)=A\cos(\tilde\omega t+\varphi)\,\delta_{-1}(t) (with ±jω~\pm j\tilde\omega not poles): yrp(t)=A ∣W(jω~)∣cos⁡ ⁣(ω~t+φ+arg⁡W(jω~))y_{rp}(t)=A\,\lvert W(j\tilde\omega)\rvert\cos\!\big(\tilde\omega t+\varphi+\arg W(j\tilde\omega)\big); for u=Asin⁡(ω~t+φ)δ−1u=A\sin(\tilde\omega t+\varphi)\delta_{-1} the same with sin⁡\sin.
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 0−0^- (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 a(s) Y(s)=c(s)+b(s) U(s) ⟹ Y(s)=c(s)a(s)⏟free evolution+W(s) U(s)⏟forced evolution,a(s)\,Y(s)=c(s)+b(s)\,U(s)\ \Longrightarrow\ Y(s)=\underbrace{\frac{c(s)}{a(s)}}_{\text{free evolution}}+\underbrace{W(s)\,U(s)}_{\text{forced evolution}}, where c(s)c(s) is a polynomial of degree at most n−1n-1 that depends only on the initial conditions, and W(s)=b(s)a(s)W(s)=\frac{b(s)}{a(s)} is the transfer function (proper, because n≥mn\ge m). The modes of the system are the functions tkeλtt^ke^{\lambda t} with λ\lambda a root of a(s)a(s).

Definitions. For the input ejω~tδ−1(t)e^{j\tilde\omega t}\delta_{-1}(t), the steady-state response yrpy_{rp} is the part of the output that has the same form as the input, α ejω~t\alpha\,e^{j\tilde\omega t} with α\alpha a complex constant, and does not depend on the initial conditions. The transient response ytr=y−yrpy_{tr}=y-y_{rp} is the remainder: it will be a linear combination of the modes of the system, and it vanishes for t→∞t\to\infty if the modes decay.

Proof with arbitrary initial conditions

The input has transform U(s)=1s−jω~U(s)=\frac1{s-j\tilde\omega}. Hypothesis: a(jω~)≠0a(j\tilde\omega)\neq0, i.e. jω~j\tilde\omega is not a root of a(s)a(s) (without it we would have resonance: a pole of YY of multiplicity two). Then Y(s)=c(s)a(s)+b(s)a(s) (s−jω~).Y(s)=\frac{c(s)}{a(s)}+\frac{b(s)}{a(s)\,(s-j\tilde\omega)}. Add and subtract W(jω~)W(j\tilde\omega) in the numerator of the second term: W(s)s−jω~=W(jω~)s−jω~+W(s)−W(jω~)s−jω~=W(jω~)s−jω~+p(s)a(s) (s−jω~),p(s)=b(s)−W(jω~) a(s).\frac{W(s)}{s-j\tilde\omega}=\frac{W(j\tilde\omega)}{s-j\tilde\omega}+\frac{W(s)-W(j\tilde\omega)}{s-j\tilde\omega}=\frac{W(j\tilde\omega)}{s-j\tilde\omega}+\frac{p(s)}{a(s)\,(s-j\tilde\omega)},\qquad p(s)=b(s)-W(j\tilde\omega)\,a(s). The polynomial p(s)p(s) vanishes at s=jω~s=j\tilde\omega, because p(jω~)=b(jω~)−b(jω~)a(jω~)a(jω~)=0p(j\tilde\omega)=b(j\tilde\omega)-\frac{b(j\tilde\omega)}{a(j\tilde\omega)}a(j\tilde\omega)=0; so p(s)=(s−jω~) q(s)p(s)=(s-j\tilde\omega)\,q(s) with q(s)q(s) a polynomial of degree at most n−1n-1 (since deg⁡p≤n\deg p\le n, here n≥mn\ge m is used). The factor s−jω~s-j\tilde\omega cancels and Y(s)=W(jω~)s−jω~+c(s)+q(s)a(s).Y(s)=\frac{W(j\tilde\omega)}{s-j\tilde\omega}+\frac{c(s)+q(s)}{a(s)}. The second term is a strictly proper rational function whose denominator is a(s)a(s) only: it has no pole at jω~j\tilde\omega and its inverse transform is a linear combination of the modes of the system. The first term has inverse transform W(jω~)ejω~tW(j\tilde\omega)e^{j\tilde\omega t}. Therefore, for t≥0t\ge0, y(t)=W(jω~) ejω~t+ytr(t),ytr=L−1 ⁣[c(s)+q(s)a(s)],y(t)=W(j\tilde\omega)\,e^{j\tilde\omega t}+y_{tr}(t),\qquad y_{tr}=\mathcal L^{-1}\!\left[\frac{c(s)+q(s)}{a(s)}\right], that is y=yrp+ytry=y_{rp}+y_{tr} with yrp(t)=W(jω~)ejω~ty_{rp}(t)=W(j\tilde\omega)e^{j\tilde\omega t} (it depends on the model only through W(jω~)W(j\tilde\omega), a complex number, and not on the initial conditions, which enter only c(s)c(s)). If all the roots of a(s)a(s) have negative real part, every mode decays and ytr(t)→0y_{tr}(t)\to0, so for large tt the output is yrpy_{rp}. □\square

(Check with a script on an example, a=s2+3s+2a=s^2+3s+2, b=2s2+s+5b=2s^2+s+5, ω~=3\tilde\omega=3, initial conditions y(0)=1y(0)=1, y˙(0)=−2\dot y(0)=-2: the residue of YY at 3j3j equals W(3j)W(3j), and the remainder has denominator (s+1)(s+2)(s+1)(s+2) only.)

Zero initial conditions

If the initial conditions are zero, c(s)=0c(s)=0 (the free evolution is absent) and ytr=L−1 ⁣[q(s)a(s)]y_{tr}=\mathcal L^{-1}\!\left[\frac{q(s)}{a(s)}\right]. If aa and bb have a common factor (s−λ)(s-\lambda), then p(s)=b(s)−W(jω~)a(s)p(s)=b(s)-W(j\tilde\omega)a(s) is also divisible by it, hence q(s)q(s) is, and the factor cancels in qa\frac{q}{a}. So in least terms the denominator contains only the poles of W(s)W(s): the transient is a combination of the modes of WW only. The consequence: with zero initial conditions BIBO stability of WW (all the poles of WW with negative real part) is enough for ytr→0y_{tr}\to0; with arbitrary initial conditions the transient contains all the roots of a(s)a(s), including those cancelled in WW (hidden modes), and one needs the roots of a(s)a(s) to have negative real part. The expression of yrpy_{rp} does not change.

Extension to causal sinusoidal signals

Let u(t)=Acos⁡(ω~t+φ) δ−1(t)=A2(ejφejω~t+e−jφe−jω~t)δ−1(t)u(t)=A\cos(\tilde\omega t+\varphi)\,\delta_{-1}(t)=\frac A2\left(e^{j\varphi}e^{j\tilde\omega t}+e^{-j\varphi}e^{-j\tilde\omega t}\right)\delta_{-1}(t), so U(s)=A2(ejφs−jω~+e−jφs+jω~).U(s)=\frac A2\left(\frac{e^{j\varphi}}{s-j\tilde\omega}+\frac{e^{-j\varphi}}{s+j\tilde\omega}\right). Assume a(±jω~)≠0a(\pm j\tilde\omega)\neq0 (for a polynomial with real coefficients the two conditions are equivalent). Applying to each term the same manipulation as above, with ω~\tilde\omega replaced by −ω~-\tilde\omega in the second one: Y(s)=A2(ejφW(jω~)s−jω~+e−jφW(−jω~)s+jω~)+polynomial of degree≤n−1a(s).Y(s)=\frac A2\left(\frac{e^{j\varphi}W(j\tilde\omega)}{s-j\tilde\omega}+\frac{e^{-j\varphi}W(-j\tilde\omega)}{s+j\tilde\omega}\right)+\frac{\text{polynomial of degree}\le n-1}{a(s)}. The last term is again a combination of the modes of a(s)a(s) (the transient). Inverting, yrp(t)=A2(ej(ω~t+φ)W(jω~)+e−j(ω~t+φ)W(−jω~)).y_{rp}(t)=\frac A2\left(e^{j(\tilde\omega t+\varphi)}W(j\tilde\omega)+e^{-j(\tilde\omega t+\varphi)}W(-j\tilde\omega)\right). Since aa and bb have real coefficients, W(−jω~)=W(jω~)‾W(-j\tilde\omega)=\overline{W(j\tilde\omega)}; writing W(jω~)=∣W(jω~)∣ejθW(j\tilde\omega)=\lvert W(j\tilde\omega)\rvert e^{j\theta} with θ=arg⁡W(jω~)\theta=\arg W(j\tilde\omega), the two terms are complex conjugate and yrp(t)=A ∣W(jω~)∣cos⁡ ⁣(ω~t+φ+θ).y_{rp}(t)=A\,\lvert W(j\tilde\omega)\rvert\cos\!\big(\tilde\omega t+\varphi+\theta\big). Hence y=yrp+ytry=y_{rp}+y_{tr} also for the cosine; for u=Asin⁡(ω~t+φ)δ−1=Acos⁡ ⁣(ω~t+φ−π2)δ−1u=A\sin(\tilde\omega t+\varphi)\delta_{-1}=A\cos\!\big(\tilde\omega t+\varphi-\frac\pi2\big)\delta_{-1} one gets yrp=A∣W(jω~)∣sin⁡(ω~t+φ+θ)y_{rp}=A\lvert W(j\tilde\omega)\rvert\sin(\tilde\omega t+\varphi+\theta). 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 WW is BIBO stable and the transient vanishes; here the decomposition holds with no stability assumption, and stability only decides whether ytry_{tr} disappears. □\square

(Script check on the same example with u=2cos⁡(3t+0.7)u=2\cos(3t+0.7): the remainder of YY after removing the steady-state part has denominator (s+1)(s+2)(s+1)(s+2) only, and the inverse transform of the steady-state part equals 2∣W(3j)∣cos⁡(3t+0.7+arg⁡W(3j))2\lvert W(3j)\rvert\cos(3t+0.7+\arg W(3j)).)

Typical errors: applying the steady-state formula when jω~j\tilde\omega is a pole of WW; saying that the transient depends only on WW even with nonzero initial conditions; using ∣W(0)∣\lvert W(0)\rvert instead of ∣W(jω~)∣\lvert W(j\tilde\omega)\rvert as gain; forgetting that W(−jω~)W(-j\tilde\omega) is the complex conjugate of W(jω~)W(j\tilde\omega) 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 90∘90^\circ to 360∘360^\circ" in the text and drawn from −270∘-270^\circ to 0∘0^\circ in the figure: the two descriptions are equivalent modulo 360∘360^\circ.
  • Exercise 3, point i: the official solution uses tr=ln⁡10pt_r=\frac{\ln10}{p} (time to reach 90%90\% of the final value). In the notes of this course the rise time is the time from 10%10\% to 90%90\% (ln⁡9p≈2.2p\frac{\ln9}{p}\approx\frac{2.2}p): the two conventions give p=10p=10, K=11K=11 and p≈9.55p\approx9.55, K≈10.5K\approx10.5.
  • Exercise 3, point ii: the values 4040 dB and −135∘-135^\circ used in the official design are the asymptotic ones (the exact values are 36.9536.95 dB and −140.7∘-140.7^\circ), and the resulting phase margin is 78.1∘78.1^\circ, not 90∘90^\circ: the design satisfies the specification only approximately, as the symbol ≈\approx 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 KB=−10K_B=-10, pole at the origin, zeros with ωn=10\omega_n=10, ξ=0.1\xi=0.1 and unstable pole at 1010; asymptotic modulus (−20-20 dB/dec, then flat at 00 dB) with the anti-resonance; phase rising from 90∘90^\circ to 360∘360^\circ; Nyquist diagram with the vertical asymptote −1.2-1.2, crossings at −0.2-0.2 and −0.18 j-0.18\,j and end point 11; the three regions of KK with nW+=2,0,1n_{W+}=2,0,1, the critical cases K=5K=5 and K=−1K=-1 and the conclusion K<−1K<-1 or K>5K>5 wrong sign of KBK_B 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 K=−1K=-1 (WW not proper)
Exercise 2 7.5 n=4n=4, m=1m=1, three asymptotes with centroid −23-\frac23; real axis of the positive and of the negative locus; the equation (s+2)(s−1)(3s2+s+2)=0(s+2)(s-1)(3s^2+s+2)=0 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 KK, 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 K<0K<0
Exercise 3 7.5 point i: p>0p>0, steady state Kp=1.1\frac Kp=1.1, rise-time equation with the convention stated, pp and KK; point ii: C′(s)=100sC'(s)=\frac{100}s from type 11 and Kv≥100K_v\ge100, lead and lag (saddle) network at ωA∗=1\omega_A^*=1 rad/s, proper controller, check of crossover frequency and phase margin tr=1pt_r=\frac1p; steady-state value taken as KK; only a lead network; non-proper CC; margin computed at the nominal frequency without checking
Theory 1 6 definitions of yrpy_{rp} and ytry_{tr}; Y=ca+Ws−jω~Y=\frac{c}{a}+\frac{W}{s-j\tilde\omega}; add and subtract W(jω~)W(j\tilde\omega), cancellation of the factor s−jω~s-j\tilde\omega, remainder with denominator a(s)a(s); zero initial conditions: transient with the poles of WW only; extension to cosine and sine with W(−jω~)=W(jω~)‾W(-j\tilde\omega)=\overline{W(j\tilde\omega)} not stating the hypothesis a(jω~)≠0a(j\tilde\omega)\neq0; working in the time domain instead of the transform domain; saying that the transient is always governed by WW alone; not proving the sinusoidal case with the conjugate symmetry