DC Solved Problems
DC Solved Problems
GTIAE
Academic year 2024-2025
Complementary Material
1. Given a continuous-time plant Gp (s) = e−sTs in series with a zero-order holder, find the impulse
response of the holder+plant set in discrete time with sampling period Ts . From the impulse response,
find the discrete equivalent of the plant, G(z).
Solution:
The zoh+plant transfer function is
1 − e−sTs −sTs
G(s) = Gm0 (s)Gp (s) = e .
s
The impulse response will be found from the inverse of Laplace
z−1
z z z
G(z) = z −1 − z −2 = = z −1 .
z−1 z−1 z−1 z2
It can be seen that this same result is reached by tables looking for the discrete-time equivalent
of the plant as −sTs
−1 e z−1 z
z −1 = z −1 .
G(z) = 1 − z Z =
s z z−1
1, if 0 ≤ k ≤ 3
y(k) =
0, otherwise.
Solution:
Given that the transfer function of a system corresponds with the z-transform of its unitary-
step response, and the z-transform is defined as ∞ −k , the system transfer function
P
k=0 y(k)z
is
1 1 1 z3 + z2 + z + 1
G(z) = 1 + + 2 + 3 =
z z z z3
Solution:
Since the plant in open loop is of type 0 nature, the steady-state error is
1 1 a
ess = = 1 =
1 + kc Kp 1+ a
a + kc
kc
|p| = e−aTs − 1 − e−aTs < 1.
a
On the other hand, the error of the analogue control system will be
1 1 a
ess = = 1 =
1 + kc Kp 1+ a
a + kc
taking into account that Kp = limz→0 G(0) = kac . It can be seen that the error is the same as
that of the digital control system. This is because the error is not affected by the sampling
period but only by the type of system and the applied reference.
Solution:
(a) Since the first and second samples are null, G(z) will have relative degree equals 2, then
its structure could be
k
G(z) = 2 .
z + mz + n
By performing the division of polynomials, it yields
k z 2 + mz + n
−k − kmz −1 − knz −2
kz −2 − kmz −3 + k(m2 − n)z −4 + . . .
−kmz −1 − knz −2
+kmz −1 + km2 z −2 + kmnz −3
k(m2 − n)z −2 + kmnz −3
−k(m2 − n)z −2 + km(m2 − n)z −3 − kn(m2 − n)z −4
km(2n − m2 )z −3 − kn(m2 − n)z −4
Therefore, considering the sequence g(k),
Finally,
1
G(z) = .
+a z2
Alternatively, notice that by looking at the sequence and considering that it is an impulse
response, it can be seen that R = 4, which implies that the poles of G(z) have θ = π2 .
This fact in turn implies that
k
G(z) =
(z + jm)(z − jm)
k
= 2 ,
z + m2
requiring less coefficients to be computed and hence less quotient terms in the division
of polynomials.
• If a = 1, then G(z) is marginally stable and its α-step response is bounded but
does not converge to any final value.
• If a > 1, then G(z) is unstable and its α-step response will diverge.
Solution:
(a) Since the stability of a linear system only depends on its structure, stability will depend
on the module of a. For marginal stability, |a| = 1 and b ∈ R.
(b) The corresponding transfer function is
G(z) = (zI − a)−1 b
b
= .
z−a
(c) In order to have null steady-state error facing step inputs, L(z) ≜ kc G(z) should be of
type 1 or, equivalently, the system must have an eigenvalue in 1. Moreover, the resultant
closed-loop system should be stable, i.e., its closed-loop poles/eigenvalues must have
module lower than 1. Hence, a = 1 and, given the characteristic polynomial
1 + L(z) = 0
z−1+b=0 → |1 − b| < 1,
(d) In contrast with the previous point, here |a| < 1. Moreover, again the closed-loop
system should be stable and then
1 + L(z) = 0
z−a+b=0 → |a − b| < 1,
which implies that b − 1 < a < b. Regarding the amount of the steady-state error,
Kp = lim G(z)
z→1
b
= ,
1−a
and hence
1
ess = b
1 + 1−a
1−a
= .
1−a+b
6. It is known that the response to a unitary impulse input of a plant in discrete time is g(k) = pk ,
p ∈ R. Find the transfer function G(z). Discuss the stability of the system as a function of the value
of p.
Solution:
The transfer function can be found from the definition of the z-transform
∞ ∞
X X 1 z
G(z) = g(k)z −k = pk z −k = −1
= .
1 − pz z−p
k=0 k=0
According to the value of p, three cases can be given related to the stability of G(z):
7. Consider six discrete-time system transfer functions, Gi (z), i ∈ 1, . . . , 6, with sampling time Ts and
with the following poles:
(a) Which two systems have the response with the shortest settling time, ts ?
(b) Which systems have oscillating responses?
(c) Which system has the response with the highest oscillation frequency?
Solution:
The poles in polar form z = ρ∠θ are
G1 (z) : 0, 5∠ ± π4
G2 (z) : 0, 7∠ ± π6
G3 (z) : 0, 5
G4 (z) : 1∠ ± π4
G5 (z) : 1∠ ± π2 , with multiplicity 2.
G6 (z) : 1∠ ± π
(a) The setting time is proportional to the time constant of the system τ = lnTsρ . Conse-
quently, the smaller ρ (for the same value of Ts ), the shorter the setting time, ts . There-
fore, G1 (z) and G3 (z) are the systems with a shorter ts . Its value is ts,min (±2%) = ln 0.5 .
−4T
(b) The response will be oscillating if the poles are complex conjugate or real negatives,
with an oscillation frequency ω = Tθs . Therefore, all systems except G3 (z) will show
oscillating responses.
(c) G6 (z) is the system with a higher frequency, since the frequency is proportional to
the angle of the poles and that of G6 (z) is the biggest. The maximum frequency is
ωmax = Tπs .
(d) G1 (z), G2 (z) and G3 (z) are stable since the module of their poles is lower than 1; G4 (z)
and G6 (z) are marginally stable since the module of their poles is 1 with multiplicity 1;
G5 (z) is unstable since the module of its poles is 1 but with multiplicity greater than 1.
(e) The number of samples per response period is R = 2π θ . Therefore, from the systems with
oscillating response, G2 (z) is the one that has a higher value of R (R = 12), followed by
G1 (z) and G4 (z), with R = 8.
8. Let T (z) be the closed-loop transfer function of a discrete-time control system with negative unitary
feedback and L(z) = (z−p1 )(z−p
k
2)
the corresponding open-loop transfer function with: a) real and
different p1 and p2 ; b) p1 and p2 conjugate complexes. Justify (using the root locus concepts) if in
each of the above assumptions, for any value of k, it can be satisfied that:
(a) T (z) is always stable.
(b) T (z) always has an oscillating response.
(c) T (z) always has a non-oscillating response.
(d) The number of samples per oscillation period, R, of the response of T (z) is always the same.
Solution:
The root locus has two branches that start at p1 and p2 and end at infinity (since L(z) has
no zeros), following asymptotes at ± π2 .
(a) T (z) cannot always be stable (regardless of the values of p1 and p2 ) since, when the
relative degree greater than 1, by values of k large enough, the poles will have a module
greater than 1 (so there are branches that end up at +∞).
9. Convert the following single-input single-output difference equation into a discrete-time state-space
form:
Solution:
The conversion is performed by first recognizing that the transfer function of this system is
b1 z 2 + b2 z + b3 Y (z)
G(z) = 3 2
= .
z + a1 z + a2 z + a3 U (z)
Break up transfer function into two parts. Gp (z) = V (z)/U (z) contains all of the poles
1 V (z)
Gp (z) = = ⇒ v(k + 3) + a1 v(k + 2) + a2 v(k + 1) + a3 v(k) = u(k)
z3 + a1 z2 + a2 z + a3 U (z)
Choose current and advanced versions of v[k] as state (this is a choice: there are other equally
valid choices)
x(k) = [v(k + 2) v(k + 1) v(k)]T .
Then,
v(k + 3) −a1 −a2 −a3 v(k + 2) 1
x(k + 1) = v(k + 2) =
1 0 0 v(k + 1) + 0 u(k).
v(k + 1) 0 1 0 v(k) 0
Now, adding zeros, G(z) = (b1 z 2 + b2 z + b3 )Gp (z). Equivalently, Y (z) = (b1 z 2 + b2 z + b3 )V (z),
or y(k) = b1 v(k + 2) + b2 v(k + 1) + b3 v(k). In summary, the state-space model will be
−a1 −a2 −a3 1
x(k + 1) = 1 0 0 x(k) + 0 u(k)
0 1 0 0
0
y(k) = b1 b2 b3 x(k) + u(k).
0
It is desired to obtain a discrete-time model of the system sampled with period Ts , and assuming a
zero-order holder at its input. Which would be the equivalent expressions considering a) approxi-
mated discretization, and b) exact discretization?
(b) the exact discretisation via the use of the complex exponential function z = esTs yields
1 − e−2Ts
x(k + 1) = e−2Ts x(k) + u(k).
2
11. Given a discrete-time state space realization of a dynamical system with matrices
0.8 0 1
, C = 0.352 −0.182 , and D = 0,
A= , B=
0 0.3 1
Solution:
First, find (zI − A) as follows:
z 0 0.8 0 z − 0.8 0
− =
0 z 0 0.3 0 z − 0.3
F
<latexit sha1_base64="uVLY+Jg/jxq7XbDFQgP00TcDyZk=">AAAB4nicbZDLTgJBEEVr8IX4Ql266UhMXJEZo9El0cS4hESEBCakp6mBDj2PdNeYEMIP6MqoOz/JH/BvbHAWCt7V6bq3k7oVpEoact0vp7Cyura+UdwsbW3v7O6V9w8eTJJpgU2RqES3A25QyRibJElhO9XIo0BhKxjdzPzWI2ojk/iexin6ER/EMpSCkx01bnvlilt152LL4OVQgVz1Xvmz209EFmFMQnFjOp6bkj/hmqRQOC11M4MpFyM+wI7FmEdo/Ml80Sk7CRPNaIhs/v6dnfDImHEU2EzEaWgWvdnwP6+TUXjlT2ScZoSxsBHrhZlilLBZX9aXGgWpsQUutLRbMjHkmguyVynZ+t5i2WV4OKt6F1W3cV6pXeeHKMIRHMMpeHAJNbiDOjRBAMIzvMG703eenBfn9SdacPI/h/BHzsc3ke+KYw==</latexit>
di
<latexit sha1_base64="Uce2MN1nMPYX1wtsJr6nMJKshN4=">AAAB5HicbZDLTgJBEEVr8IX4Ql266UhMXJEZo9El0Y1LjPJIgJCepgY69DzSXWNCJvyBroy684v8Af/GBmeh4F2drns7qVt+oqQh1/1yCiura+sbxc3S1vbO7l55/6Bp4lQLbIhYxbrtc4NKRtggSQrbiUYe+gpb/vhm5rceURsZRw80SbAX8mEkAyk42dH9oC/75Ypbdediy+DlUIFc9X75szuIRRpiREJxYzqem1Av45qkUDgtdVODCRdjPsSOxYiHaHrZfNUpOwlizWiEbP7+nc14aMwk9G0m5DQyi95s+J/XSSm46mUySlLCSNiI9YJUMYrZrDEbSI2C1MQCF1raLZkYcc0F2buUbH1vsewyNM+q3kXVvTuv1K7zQxThCI7hFDy4hBrcQh0aIGAIz/AG707gPDkvzutPtODkfw7hj5yPbzQmi10=</latexit>
h
<latexit sha1_base64="2l3tKUAS5U2xhgvOERIvdBqaRWI=">AAAB4nicbZDNSsNAFIVv6l+tf1WXbgaL4Kokouiy6MZlC/YH2lAm05tm6GQSZiZCCX0BXYm685F8Ad/Gac1CW8/qm3vOwD03SAXXxnW/nNLa+sbmVnm7srO7t39QPTzq6CRTDNssEYnqBVSj4BLbhhuBvVQhjQOB3WByN/e7j6g0T+SDmabox3QsecgZNXbUiobVmlt3FyKr4BVQg0LNYfVzMEpYFqM0TFCt+56bGj+nynAmcFYZZBpTyiZ0jH2Lksao/Xyx6IychYkiJkKyeP/O5jTWehoHNhNTE+llbz78z+tnJrzxcy7TzKBkNmK9MBPEJGTel4y4QmbE1AJlitstCYuooszYq1RsfW+57Cp0LureVd1tXdYat8UhynACp3AOHlxDA+6hCW1ggPAMb/DujJwn58V5/YmWnOLPMfyR8/ENxKuKhQ==</latexit>
It is desired to control the position p (in m) of such a system in order to arrive any desired position pd
(also in m) with a dynamics whose overshoot s do not surpass 10%, taking at most 1.5 s to reach that
desired position (ts ). Moreover, the mass m is subject to a disturbance force di (in N) of constant
magnitude that breaks its movement caused by the effect of the input force F (in N). Try different
positions in a way of a stair desired signal. Obtain the completely-defined expression of the control
law as well as the output dynamic feedback regulator C(z).
Solution:
First, the model of the continuous-time system is determined by using the second Newton’s
Law as
d2 p(t) dp(t)
F (t) = m +b + h p(t).
dt2 dt
dp(t)
Defining u(t) = F (t), y(t) = p(t) and as state variables x1 (t) = p(t) and x2 (t) = dt , the
state-space equations are written as
dx1 (t)
= x2 (t),
dt
dx2 (t) h b 1
= − x1 (t) − x2 (t) + u(t),
dt m m m
y(t) = x1 (t),
Now, using exact discretization and supposing a sampling time Ts = 0.2 s, it yields
0.8298 0.1541
A = eAc T = ,
−1.5410 0.5216
−1 0.0170
B = Ac (A − I)Bc = .
0.1541
dimensions. □
Now, in order to design the controller, the value of the desired eigenvalues for (A − Bk) is
needed. The given specifications in continuous time are ts = 1.5 s and Mp = s/100 = 0.1.
Hence,
− √ πξ ln Mp
Mp = e 1−ξ2
⇒ ξ = −p → ξ = 0.5912,
(ln Mp )2 + π 2
4 4
ts = ⇒ ωn = → ωn = 4.511.
ξωn ξMp
Therefore, the continuous-time desired eigenvalues (poles) are
√
pi = −ξωn ± jωn 1 − ωn = −2.666 − j3.6383,
Controller design: In order to start designing the state-feedback gain, the controllability of
the discrete-time system should be verified. Hence,
0.0170 0.0379
C = B AB = ,
0.1541 0.0542
whose determinant is not null (full-rank matrix) so the system is completely controllable
and the design can be performed. Then, using eigenvalue (pole) placement approach, the
characteristic polynomials are computed as follows:
• Desired characteristic polynomial: using the obtained λdi , the following polynomial is
stated:
dd (λ) = λ2 − 0.8761λ + 0.3442 = 0.
The complete expression of the control law for this system (assuming full-state vector avail-
ability) is
x1 (k)
u(k) = − 4.6770 2.5687 + 14.6802 yd (k).
x2 (k)
Observer design: Now, an observer including the model of the disturbance should be de-
signed. Keep in mind that this procedure can be pushed ahead independently from the
controller design given the Separation Principle. First, the realization of di (k) should be de-
termined. Since that disturbance is constant, it will considered here of unitary magnitude.
Then, the temporal model obeys a Heaviside function (unitary step), whose z-transform is
z
Di (z) = z−1 . The corresponding realization of this transfer function yields Ad = 1 and Cd = 1.
Note that Bd is not relevant since a disturbance is a non-manipulated system input. From
this disturbance realization together with the original plant, an augmented plant is stated as
Ā B̄
z
}| { z }| {
A BCd B
x̄(k + 1) = x̄(k) + u(k)
0 Ad 0
0.8298 0.1541 0.0170 0.0170
= −1.5410 0.5216 0.1541 x̄(k) + 0.1541 u(k)
0 0 1 0
ȳ(k) = 1 0 0 x̄(k).
| {z }
C̄
Next, the observability of the augmented plant should be verified. For doing so, the observ-
ability matrix
C 1 0 0
O = CA = 0.8298 0.1541 0.0170
CA2 0.4512 0.2083 0.0549
has full rank and, therefore, the augmented system is completely observable, as expected.
The observer design procedure can be performed. For such a design, the desired eigenvalues
of the observer are defined five times faster than those from the controller. The remainder
eigenvalues are designed to be as fast as possible, then placed at 0 (as deadbeat observers).
With this information, the characteristic polynomials are stated as follows:
• Desired characteristic polynomial: considering the desired eigenvalues as λdi /5 and the
rest at 0, it yields
λ3 − 0.1752λ2 + 0.0138λ = 0.
−2.3514 + ℓ1 = −0.1752,
2.0217 − 1.5216 ℓ1 + 0.1541 ℓ2 + 0.0170 ℓ3 = 0.0138,
−0.6703 + 0.5216 ℓ1 − 0.1541 ℓ2 + 0.0149 ℓ3 = 0,
Considering all the previous designs, the dynamic output-feedback regulator is computed as
where k̄ = k Cd .
1 % ================================================
2 % Digital Control (240754) - UPC-ETSEIB
3 %
4 % Exercise 9: Mass-spring-damper system
5 % Author: C. Ocampo-Martinez
6 % Copyright 2020
7 % ================================================
8
9 clear all
10 close all
11 clc
12
13 % System parameters
14 m = 1;
15 b = 2;
16 h = 10;
0.8 10
position (m)
control
0.6
0.4 5
0.2
0 0
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (s) time (s)
position 4
2 velocity
disturbance 3.5
1.5 3
position (m)
2.5
states
1
2
0.5 1.5
1
0
0.5
-0.5 0
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (s) time (s)
(c) State estimates (d) System response for different position references and
disturbance in k = 4 s
17
18 % Continuous-time matrices
19 Ac = [0 1; -h/m -b/m];
20 Bc = [0; 1/m];
21 C = [1 0];
22 D = 0;
23
24 % Sampling time
25 Ts = 0.2;
26
27 sysc = ss(Ac,Bc,C,D);
28
29 % Exact sampling
30 A = expm(Ac*Ts);
31 B = Ac\(A-eye(2))*Bc;
32 sysd = ss(A,B,C,D,Ts);
33 G = ss(A,B,C,D,Ts);
34 n = length(A);
35
36 % Controllability/observability tests
37 CM = ctrb(A,B);
38 det(CM);
39 OM = obsv(A,C);
40 det(OM);
13. It is desired to control the system of Figure 3, where a ∈ R is known and constant. To do so, it
is possible to choose among two inputs (u1 and u2 ) and two outputs (y1 and y2 ), BUT it is only
possible to use one input and one output at the same time.
Under these conditions,
Digital Control Complementary Material 14 / 20
+ +
<latexit sha1_base64="562mJs3SD3pyBexdFHju0eHqW84=">AAAB4nicbZDLSgNBEEVr4ivGV9Slm8YgCEKYEVGXQTcuEzAmkAyhp1OTNOl50F0jhJAf0JWoOz/JH/Bv7MRZaOJdna57G+pWkCppyHW/nMLK6tr6RnGztLW9s7tX3j94MEmmBTZFohLdDrhBJWNskiSF7VQjjwKFrWB0O/Nbj6iNTOJ7GqfoR3wQy1AKTnbUOOuVK27VnYstg5dDBXLVe+XPbj8RWYQxCcWN6XhuSv6Ea5JC4bTUzQymXIz4ADsWYx6h8SfzRafsJEw0oyGy+ft3dsIjY8ZRYDMRp6FZ9GbD/7xORuG1P5FxmhHGwkasF2aKUcJmfVlfahSkxha40NJuycSQay7IXqVk63uLZZfh4bzqXVbdxkWldpMfoghHcAyn4MEV1OAO6tAEAQjP8AbvTt95cl6c159owcn/HMIfOR/fafmKSQ==</latexit> <latexit sha1_base64="562mJs3SD3pyBexdFHju0eHqW84=">AAAB4nicbZDLSgNBEEVr4ivGV9Slm8YgCEKYEVGXQTcuEzAmkAyhp1OTNOl50F0jhJAf0JWoOz/JH/Bv7MRZaOJdna57G+pWkCppyHW/nMLK6tr6RnGztLW9s7tX3j94MEmmBTZFohLdDrhBJWNskiSF7VQjjwKFrWB0O/Nbj6iNTOJ7GqfoR3wQy1AKTnbUOOuVK27VnYstg5dDBXLVe+XPbj8RWYQxCcWN6XhuSv6Ea5JC4bTUzQymXIz4ADsWYx6h8SfzRafsJEw0oyGy+ft3dsIjY8ZRYDMRp6FZ9GbD/7xORuG1P5FxmhHGwkasF2aKUcJmfVlfahSkxha40NJuycSQay7IXqVk63uLZZfh4bzqXVbdxkWldpMfoghHcAyn4MEV1OAO6tAEAQjP8AbvTt95cl6c159owcn/HMIfOR/fafmKSQ==</latexit>
u1
<latexit sha1_base64="f1T1e2NTvWj2rbteQuZ4xHW0+rs=">AAAB5HicbZDLTgJBEEVr8IX4Ql266UhMXJEZY9Ql0Y1LjPJIgJCepgY69DzSXWNCJvyBroy684v8Af/GBmeh4F2drns7qVt+oqQh1/1yCiura+sbxc3S1vbO7l55/6Bp4lQLbIhYxbrtc4NKRtggSQrbiUYe+gpb/vhm5rceURsZRw80SbAX8mEkAyk42dF92vf65Ypbdediy+DlUIFc9X75szuIRRpiREJxYzqem1Av45qkUDgtdVODCRdjPsSOxYiHaHrZfNUpOwlizWiEbP7+nc14aMwk9G0m5DQyi95s+J/XSSm46mUySlLCSNiI9YJUMYrZrDEbSI2C1MQCF1raLZkYcc0F2buUbH1vsewyNM+q3kXVvTuv1K7zQxThCI7hFDy4hBrcQh0aIGAIz/AG707gPDkvzutPtODkfw7hj5yPb/pbizc=</latexit>
<latexit sha1_base64="HQETMpVY04CiBIVO2Xx2/mm/Fz8=">AAAB9HicbZDLTgIxFIY7eEO8Dbp000hM3DjpEKMsiW5cYiKXBAjplDPQ0Lmk7WBwMm+iK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it>
z a
Solution:
First, the top branch including a closed loop with negative unitary feedback, can be
simplified as
For each transfer function and taking the general form towards its state-space realization
equivalence (from Subject’s slides Block 3, slide 33), the following expressions are used:
(
x(k + 1) = β x(k) + µ(k)
⇔
γ(k) = x(k)
being x ∈ R the system state, µ ∈ R its input and γ ∈ R its output. From this point on,
there are two options:
Option 1: In this case, the following scheme is considered:
For the top branch of the scheme, µ(k) = 0.2u1 (k) and β = 0.6, then
On the other hand, for the bottom branch, µ(k) = 0.3(u1 (k) + u2 (k)) and β = a,
then
x2 (k + 1) = ax2 (k) + 0.3u1 (k) + 0.3u2 (k). (2)
Regarding the outputs,
For the top branch of the scheme, µ(k) = u1 (k) and β = 0.6, then
On the other hand, for the bottom branch, µ(k) = u1 (k) + u2 (k) and β = a, then
y1 (k) = 0.2γ1 (k) + 0.3γ2 (k) = 0.2x1 (k) + 0.3x2 (k) (7)
and
y2 (k) = 0.3γ2 (k) = 0.3x2 (k). (8)
Finally, from (5) to (8), the state-space realization for the system with two inputs
and two outputs results in
x1 (k + 1) 0.6 0 x1 (k) 1 0 u1 (k)
= + ,
x2 (k + 1) 0 a x2 (k) 1 1 u2 (k)
y1 (k) 0.2 0.3 x1 (k)
= ,
y2 (k) 0 0.3 x2 (k)
In the sequel and without lost of generality, Option 1 will be used to propose
the solutions for subsequent items.
(b) Determine the input that makes the system completely controllable. (1 point)
Solution:
The system controllability can be determined by using the controllability matrix C.
Hence,
0.2 0.12
C1 = b1 A b1 = .
0.3 0.3a
Notice that the determinant of C1 is 0.06a − 0.036, which could be different from
zero, making that C1 would be of full rank and hence the system completely con-
trollable.
0 0
C2 = b2 A b2 = .
0.3 0.3a
Notice that the determinant of C2 will always be null, which implies the system
will not be completely controllable.
(c) For the case of the input determined at item 13b, analyse the system controllability in terms
of the parameter a. (1 point)
Solution:
The determinant of C1 is 0.06a − 0.036, therefore the system (A, b1 ) will be completely
controllable iff a ̸= 0.6.
(d) Determine the output that makes the system completely observable.
c1 1 1
O1 = = .
c1 A 0.6 a
Notice that the determinant of O1 is a − 0.6, which could be different from zero,
making that O1 would be of full rank and hence the system completely observable.
c2 0 1
O2 = = .
c2 A 0 a
Notice that the determinant of O2 will always be null, which implies the system
will not be completely observable.
(e) For the case of the output determined at item 13d, analyse the system observability in terms
of the parameter a.
Solution:
The determinant of O1 is a − 0.6, therefore the system (A, c1 ) will be completely observ-
able iff a ̸= 0.6. It also implies that O1 is of full rank.
Considering the input determined at item 13b and the output determined at item 13d, i.e., a SISO
system in state space,
Solution:
0.6 0
The system stability depends only on the eigenvalues of matrix A = . Since
0 a
such eigenvalues are 0.6 and a, then the system will be stable iff |a| ≤ 1. In particular,
the system is marginally stable when |a| = 1.
Y1 (z)
(b) Determine the corresponding transfer function G(z) = U1 (z) .
Solution:
Now, the original system scheme, taking into account the used input and output, is
redrawn as
(c) From the transfer function determined at item 5b, obtain the state-space realization of the
system in controllable canonical form.
Solution:
The system matrices for the controllable canonical for are
0 1 0
Ac = , b1,c = , c1,c = −(0.2a + 0.18) 0.5 , dc = 0.
−0.6a 0.6 + a 1
(d) With the previously computed realization and supposing full-state measurement, determine a
state-feedback control law that
• makes the closed-loop system output to have no overshoot, and
• defines the closed-loop system eigenvalues with modules 0.1 and 0.2.
Solution:
No specification is given about the steady-state behaviour of the closed-loop system
response, then the control law to be computed has the
form u(k) = −Kx(k). Defining
such a state-feedback stabilising gain K = k1 k2 , the closed-loop eigenvalues of the
Given that the desired characteristic polynomial is λ2 − 0.3 λ + 0.02, solving the lin-
ear system of equations generated by equalling the coefficients from both characteristic
polynomials yields
0.6a + k1 = 0.02,
−0.6 − a + k2 = −0.3,
and therefore
k1 = −0.6a + 0.02, k2 = 0.3 + a.
Finally, the requested control law is written as follows:
(e) Complement the control law determined at item 5d such that the closed-loop system was able
to amplify, with a gain of 2, all exogenous closed-loop constant inputs yd (desired outputs).