Control Systems - Mock Exam 1
Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.
In questa pagina 5
This is a mock exam (a simulation, not a real paper). The tests of this course are not public, so the model is the set of written exams of the equivalent course taught in Italian at Padova ("Fondamenti di Automatica", Information Engineering, UniPD: papers from 2024 and 2025), adapted to the topics of the notes of this course (modeling, stability, time response, root locus, feedback systems). The distribution of the points is a proposal, not an official one. Time: 3 hours. Closed book: no notes and no formula sheet; a pocket calculator is allowed. Structure: 3 exercises (9 + 8 + 8 points) and 1 theory question (5 points), total 30. Justify every answer and show the computations.
Conventions: is the Laplace variable; is a transfer function and is the closed-loop transfer function of the unity feedback scheme with controller ; "stable" for a transfer function means BIBO stable; is the real part.
Exercise 1 (points 9)
A cart of mass kg moves on a horizontal frictionless guide, attached to a fixed wall through a linear spring of stiffness N/m and a linear viscous damper of coefficient N s/m, placed in parallel. An external force (in newton) acts on the cart along the guide. Let (in metre) be the displacement of the cart from the position where the spring is at rest. Input: . Output: .
wall |--/\/\/\/\--[ spring k ]--+
| |
|--[ damper b ]-----------[ cart m ]---> F(t)
o o --> y
=================================================== (frictionless guide)- Write the equation of motion (input-output ODE) and a state model , with , . (2 points)
- Compute the transfer function , its poles and zeros and its static gain. Is the system BIBO stable? (2 points)
- The force is a step of amplitude N, , with zero initial conditions. Compute , the natural frequency and the damping ratio of the poles, the peak time, the overshoot , the rise time and the settling time (use the relations for a second-order system with complex poles), and write explicitly. (3 points)
- Mass and spring cannot be changed. For which values of is the overshoot of the step response not larger than percent? Choose N s/m and compute the resulting overshoot and settling time. (2 points)
Show the result
- ; , , , that is , , , .
- ; no zeros; poles ; static gain m/N; BIBO stable.
- m; rad/s; ; ; peak time s; (35.1 percent, peak m); s (the approximation gives s); s.
- for , that is N s/m (and N s/m for the poles to stay complex). For : , (4.2 percent), , s.
Show the full solution
Point 1: modeling. Only three forces act along the guide: the external force , the elastic force of the spring and the viscous force of the damper (gravity and the normal force are perpendicular to the motion and cancel). Newton's second law (System ModelingA mathematical model (parameters, variables, relations) describes a system quantitatively; models are classified as static or dynamic, causal, linear, time-invariant, SISO or MIMO, and the course focuses on SISO continuous-time causal dynamic LTI systems described by a constant-coefficient input-output ODE.System Modeling →) gives This is the standard input-output ODE with , , , , . For the state model take position and velocity as state variables (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 →): , . Then , and solving the ODE for , In matrix form the matrices are those given in the result. The input appears with the coefficient in the last row: forgetting to divide by is the most common error.
Point 2: transfer function. With zero initial conditions the Laplace transform of the ODE (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 →) is , so The same result follows from the state model: with , , hence . There is no numerator polynomial, hence no zeros. The poles are the roots of : The transfer function is irreducible (the numerator is a constant) and proper, and both poles have : the system is BIBO stable (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 →). (For this second-order polynomial one can also use the coefficient test of 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 →: .) The static gain is m/N, which is also : at equilibrium the spring balances the force, .
Point 3: step response. For the pair we have and , so (Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →) (Check with the normalized form: has and .) Final value: times the amplitude of the step, m (the final value theorem gives the same, because the system is stable). The explicit response is since . Note that as it must be.
- Peak time (first zero of ): , so s.
- Overshoot: , that is about 35 percent of the final value; the maximum is m. The overshoot is relative to the final value, not an absolute length: do not confuse with m (the excess over m).
- Rise time: first instant at which , i.e. : s. The rough formula s is close.
- Settling time (1 percent band, envelope): s. The unapproximated envelope formula gives s; the true response enters the band slightly earlier (about s), because the envelope is an upper bound. The time scale is set by the real part of the poles, not by .
The curve starts at , rises to m at s, oscillates around m with the envelope and settles:
Grafico interattivo: Step response y(t) of Exercise 1 for F = 10 N: overshoot 35 percent at t = 1.05 s, final value 0.5 m
Point 4: choosing the damper. Mass and spring fix . In general , so . The overshoot is a decreasing function of : requiring , that is N s/m. The upper limit N s/m () is where the poles stop being complex; above it the formulas of the notes do not apply (and there is no overshoot). For N s/m: , , and Thus the overshoot drops from 35 percent to 4.2 percent and the settling time halves, because a larger damping moves the poles to the left ( grows from to ). Typical errors of this exercise: wrong in ; mixing (imaginary part) with (modulus); using instead of in ; reading the overshoot as an absolute value.
Exercise 2 (points 8)
The unity feedback system of the figure has the proportional controller , with , and the plant
r(t) e(t) u(t)
---->(+)------>[ K ]------>[ G(s) ]-----+----> y(t)
^ - |
| |
+---------------------------------+- Write the closed-loop transfer function and its characteristic polynomial . (1 point)
- Build the Routh table of and find all the values of for which is BIBO stable. (4 points)
- For the value of at the limit of stability, find all the poles of . (2 points)
- For , how many poles of have positive real part? Does the number change for other larger than the critical one? (1 point)
Show the result
- ; .
- First column of the table: ; stable if and only if .
- : , poles and .
- For the first column is : two sign changes, so two poles with positive real part (they are ). The same holds for every .
Show the full solution
Point 1. The loop is the basic scheme of The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →, with . Write with and . Then Expanding we get and have no common factor (the zero is not a root of ), hence and have no common factor either, and the poles of are exactly the roots of : is BIBO stable if and only if is Hurwitz (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 →). For all coefficients are positive, which is necessary but, for degree , not sufficient.
Point 2: Routh table. Rule: each new entry is the negative determinant of the matrix made with the first column and the target column of the two rows above, divided by the pivot (first entry of the lower row).
s^4 | 1 9 2K
s^3 | 4 6+K 0
s^2 | b1 2K 0
s^1 | c1 0
s^0 | 2KThe last row is (the constant coefficient). All the entries of the first column must be strictly positive:
- always;
- ;
- ;
- : for the denominator is positive, and , so the sign is that of : .
Together, the conditions are ; the third condition is implied by the fourth. So is BIBO stable if and only if . As a check, for the poles of are and , all in the left half-plane.
Cross-check without the table. At the limit of stability there is a pair of poles . Substitute in : the real part is and the imaginary part is , i.e. . Replacing in the first equation: , that is , so (the root is negative) and .
Point 3: poles at . At the element vanishes: the whole row is zero, which is the special case II of the criterion. The auxiliary polynomial is built from the row above, : , , hence which is an exact factor of . Dividing, and the second factor gives . So the poles of at are (on the imaginary axis, simple) and (stable): the system is on the border of stability (not BIBO stable: a bounded input would excite the resonance). Check: ✓.
Point 4: unstable poles. For : , , last entry :
| row | entries |
|---|---|
The signs of the first column are : two sign changes, hence two roots in the open right half-plane (the roots are and ). For the first column is (two changes); for it is (again two changes, because and ). For the entry is zero, the special case I: with instead of the count is again two. So for every there are exactly two unstable poles: the pair that crossed the imaginary axis at never comes back. Typical errors: forgetting the factor in the constant term ( also multiplies the constant of ); dropping the condition ; at saying "unstable" without computing the imaginary poles.
Exercise 3 (points 8)
Consider the unity feedback loop with controller and the plant and let .
- How many branches has the positive root locus ()? Where do they start and where do they end? Find the number, the directions and the centroid of the asymptotes. (1.5 points)
- Which points of the real axis belong to the locus? (1 point)
- Find the multiple points (breakaway points) and the value of there. (1.5 points)
- Find the points where the locus crosses the imaginary axis and the corresponding values of . (1.5 points)
- Sketch the locus and use it to find the values of for which is BIBO stable. (1.5 points)
- For one closed-loop pole is real and equal to . Find the other two poles, and use the dominant-poles approximation to estimate the overshoot and the settling time of the step response. (1 point)
Show the result
- Three branches, starting at (the poles of ); no finite zeros, so all three go to infinity along asymptotes with centroid and directions , .
- and .
- with . The other root of , , is not on the positive locus ().
- for .
- is BIBO stable if and only if .
- Poles and ; , ; (49 percent), s.
Show the full solution
Point 1: branches and asymptotes. with () and (), both monic and coprime. The closed-loop poles are the roots of (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 →). By rule R1 the locus has branches that start (for ) at the poles ; branches end at zeros, so branches go to infinity along asymptotes. By rule R3 the asymptotes start from the centroid and divide the full angle in equal sectors: they are the negative real axis () and the two rays at with the positive real axis.
Point 2: real axis (rule R2). A real point belongs to the locus if it has an odd number of poles and zeros of on its right:
- : none on the right no;
- : one pole () yes;
- : two poles () no;
- : three poles yes (consistent with odd: one branch diverges along the negative real axis).
So the real axis part of the locus is . The branches that start at and at move toward each other along ; the branch from goes left.
Point 3: multiple points (rule R4). Here , , so the condition becomes : For each candidate compute and keep it only if : lies on the real-axis segment ✓ and is the point where the two branches meet and leave the axis (multiplicity , intermediate gain: two branches arrive along the real axis and two leave vertically). has a negative gain: it belongs to the negative locus, and it is also on a segment () excluded from the positive locus. Exact value: . Consequently, for all the closed-loop poles are real, and for two of them are complex conjugate.
The function on the real axis confirms it: the locus is where it is positive, and the local maximum in is the breakaway gain:
Grafico interattivo: K(x) = -x(x+2)(x+6) on the real axis: positive on (-2, 0) and for x < -6 (real-axis branches of the positive locus), local maximum 5.05 at x = -0.903 (breakaway point)
Point 4: imaginary axis. Routh table of :
s^3 | 1 12
s^2 | 8 K
s^1 | (96-K)/8 0
s^0 | Ksince . The locus crosses the imaginary axis when the row vanishes: . The auxiliary polynomial from the row is , so . Indeed so the third pole is . (Alternative: in : real part , imaginary part , .) The crossing point is where a branch of the locus goes from the left half-plane to the right half-plane, at .
Point 5: sketch and stability. The sketch: from and along the segment to the breakaway point , then two branches leave the real axis, curve to the right, cross the imaginary axis at (for ) and tend to the asymptotes at from ; the third branch goes from to . The whole locus is symmetric with respect to the real axis. (The values in the figure were computed numerically.)
Grafico interattivo: Positive root locus of G = 1/(s(s+2)(s+6)): branches from 0 and from -2 meet at the breakaway point -0.903 (K = 5.05), leave the real axis and follow the asymptotes at 60 degrees from the centroid -8/3, crossing the imaginary axis at plus and minus j sqrt(12) for K = 96; the branch from -6 goes to minus infinity. Poles: filled dots; asymptotes: dashed.
Stability. For small the three poles are close to , , and the one near the origin has moved slightly to the left. The branch that starts at stays on the negative real axis and never reaches the right half-plane. The two branches that start at and meet, leave the real axis, bend to the right, cross the imaginary axis once, at , and then stay in the right half-plane (the asymptotes at point there). Hence , whose denominator is (no cancellations, ), has all poles with negative real part exactly for ; for it has two unstable poles; at it has the poles . Cross-check with Routh: the first column is positive if and only if ✓. (At , and has the root : that value is excluded.)
Point 6: a design point. The coefficient of in does not contain , so the sum of the three closed-loop poles is for every . For , the real pole lies on the segment and ✓. Hence the complex pair has real part and, dividing by , The real pole is times farther from the imaginary axis than : the complex pair is dominant, and the response is approximated by that of (Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →): The static gain is , so the final value of the step response is and the overshoot is about 49 percent of it (a simulation of the exact third-order response gives percent and s). The very small damping is the price of a large gain: more gain moves the pair toward the imaginary axis. Typical errors: wrong centroid sign or the sum of poles divided by instead of ; taking as a breakaway point without checking the sign of ; stopping at the Routh row without computing the crossing frequency; counting the third branch as unstable.
Theory 1 (points 5)
BIBO stability.
- Define BIBO stability of a causal LTI system. (1 point)
- State the theorem that characterizes BIBO stability of a system with rational transfer function , with all its hypotheses. (1 point)
- Give a proof sketch of the theorem. (1.5 points)
- Compare BIBO stability with the stability with respect to the initial conditions: which implication holds and which not? Give one example for each failure. (1 point)
- Classify (BIBO stable or not, and why) , , . (0.5 points)
Show the result
- BIBO stable: every bounded input, with zero initial conditions, produces a bounded output: for all , with independent of .
- proper () and written in irreducible form: the system is BIBO stable if and only if all the poles of have strictly negative real part.
- Sufficiency: is a sum of terms with , hence and ; necessity: a pole with is excited by a bounded input (step, resonant sinusoid, or any input if ) giving an unbounded output.
- Asymptotic stability implies BIBO stability; the converse is false (hidden unstable mode); simple stability does not imply BIBO stability (pole in the origin or on the imaginary axis).
- : BIBO stable (it reduces to ). : not BIBO stable (poles ). : BIBO stable (poles ).
Show the full solution
1. Definition (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 →, 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 →). Consider a causal LTI system with zero initial conditions, , so that the output is the forced response . The system is BIBO (bounded-input bounded-output) stable if The bound may depend on (and on the system), but not on time: a response that stays finite at every instant but grows without limit (as ) is not bounded. The definition involves only the forced response: the natural response (initial conditions) is the object of the other stability notion.
2. Theorem. Let the system be described by and let be its transfer function. The system is BIBO stable if and only if all the poles of satisfy . Hypotheses: (i) is proper, (for an improper such as the answer is negative whatever the poles: the bounded input gives the output , unbounded); (ii) is irreducible: the poles are the roots of only after the common factors with have been cancelled.
3. Proof sketch (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 →). The forced response is , where is the impulse response, i.e. (plus if contains an impulse, when ).
Sufficiency. Expand in partial fractions: ( is the multiplicity), so . If , every term is integrable on (the exponential beats any power), so and a bound independent of (this is the integral condition of the notes).
Necessity. Suppose (irreducible, so every pole has a nonzero residue) has a pole with . We exhibit a bounded input with unbounded output.
- : the bounded input gives with a double pole in the origin, so contains a term with : unbounded.
- : the bounded input has , which shares the poles with , so has double poles in and contains terms , : unbounded (resonance).
- : already the step input gives with the pole and nonzero residue, so contains with , which diverges.
4. Relation with stability w.r.t. initial conditions. The latter concerns the free evolution and is decided by the roots of the characteristic polynomial without any cancellation: asymptotic stability needs all roots with , simple stability needs with simple imaginary roots. Hence:
- asymptotic stability BIBO stability (the poles of are among the roots of );
- BIBO stability asymptotic stability: a root of can be cancelled in . Example: has and : BIBO stable, but the mode is present in the free evolution and is excited by nonzero initial conditions;
- simple stability BIBO stability: has (roots : stable, not asymptotically) but has a pole in and the step input gives an output that grows like .
5. Classification. : the factor cancels (irreducible form ), the only pole is : BIBO stable, although the differential equation (with ) is unstable w.r.t. initial conditions. : poles on the imaginary axis: not BIBO stable; the bounded input gives , i.e. , unbounded; the free evolution (bounded oscillation) is simply stable. : poles , proper and irreducible: BIBO stable. Typical errors: reading the poles from the unreduced fraction; calling stable because its free response is bounded; forgetting properness; claiming that a bounded input to a BIBO unstable system always gives an unbounded output (it is enough that one bounded input does, as the resonant sinusoid).
Self-assessment grid
| Question | Points | What must be there for full marks | Typical errors |
|---|---|---|---|
| Ex. 1.1 | 2 | Newton law with the three forces; ; state equations with in and correct , , | missing in ; wrong sign of the spring or damper term; |
| Ex. 1.2 | 2 | (or ); no zeros; poles ; static gain ; BIBO stable because | gain lost or not normalized; poles from (forgetting the division by ) |
| Ex. 1.3 | 3 | ; , , , ; with ; , ; ; | confused with ; overshoot as an absolute length; ; missing amplitude N in |
| Ex. 1.4 | 2 | from ; ; for : , , | instead of ; wrong direction of the inequality; changed with |
| Ex. 2.1 | 1 | and | replaced by ; expanded incorrectly |
| Ex. 2.2 | 4 | Routh table with , , last entry ; conditions and ; remark that and are coprime | arithmetic slips in ; forgetting ; strict inequalities replaced by large ones |
| Ex. 2.3 | 2 | row of zeros at ; auxiliary polynomial ; poles , factorization , poles | stopping at "unstable"; auxiliary polynomial from the wrong row |
| Ex. 2.4 | 1 | table for with signs , two unstable poles, and the same for all | counting the zero row as a sign change; claiming the number changes with |
| Ex. 3.1-3.2 | 2.5 | branches from ; asymptotes: , centroid , directions ; real axis | wrong sign of the centroid; wrong parity count on the real axis; asymptote angles not equally spaced |
| Ex. 3.3 | 1.5 | , roots and ; for the first; the second rejected because | accepting both roots; not computing |
| Ex. 3.4-3.5 | 3 | Routh table of ; , crossing ; sketch with all the features; stability for | wrong table entry ; sketch with branches not symmetric or crossing at the wrong place |
| Ex. 3.6 | 1 | sum of poles ; pair and ; dominant poles; , , | not checking that the pair is dominant; using instead of in |
| Theory 1 | 5 | definition with bound independent of time (1); theorem with properness and irreducibility (1); sufficiency via and necessity with step or resonant sinusoid (1.5); implications with the two examples (1); classification of (0.5) | bound depending on time; cancellation ignored; confusing BIBO with boundedness of the free response; no counterexample |