Spring 2017 Homework 9
Spring 2017 Homework 9
1. Midterm 2 - Question 1
Redo the midterm!
2. Midterm 2 - Question 2
Redo the midterm!
3. Midterm 2 - Question 3
Redo the midterm!
4. Midterm 2 - Question 4
Redo the midterm!
5. Midterm 2 - Question 5
Redo the midterm!
6. Midterm 2 - Question 6
Redo the midterm!
7. Midterm 2 - Question 7
Redo the midterm!
A = UΣV T
Solution:
First, note that,
2 0 2
AT A = 0 2 0 .
2 0 2
Since the first and last column are identical, it has two linearly dependent columns and thus we can
always find a non-zero solution to the following equation:
AT A~v = ~0 (1)
which means that the matrix has an eigenvalue of 0. It is clear that a vector that solves the above
equation is [1, 0, −1]T , which can be normalized to be √12 [1, 0, −1]T . Since the other eigenvectors need
to be orthogonal to it, some natural candidates include [0, 1, 0]T , [1, 0, 1]T , and so on. We can check
and verify that they are indeed eigenvectors, corresponding to eigenvalues of 2 and 4, respectively.
Therefore, we have λ0 = 4, λ1 = 2, λ2 = 0 as the eigenvalues, and the corresponding eigenvectors
~v0 = √12 [1, 0, 1]T ,~v1 = [0, 1, 0]T ,~v2 = √12 [1, 0, −1]T respectively. Then, noting that the singular values
are the square roots of the eigenvalues, we get,
1
" # √ 0 √1
2 √0 0 2 2
Σ= ,V = 0 1 0
0 2 0 √1
2
0 − √12
We can then solve for U by noting that
"√ #
h √ i 2 1 0
UΣ = 2~u0 2~u1 ~0 = AV = √
2 −1 0
√ √ √ √
From the above equation, we can see that ~u0 = [ 22 , 2 T
2 ] , and ~u1 = [ 2
2
, − 2 T
2 ] . This gives us,
" 1 #
√ √1
U= 2 2
√1 − √12
2
(b) Let us think about what the SVD does. Let us look at matrix A acting on some vector ~x to give the
result ~y. We have,
A~x = UΣV T~x =~y
Observe that V T~x rotates the vector, Σ scales it and U rotates it again. We will try to "reverse" these
operations one at a time and then
put them together.
T
If U “rotates” the vector ΣV ~x, what operator can we derive that will undo the rotation?
Solution: We can use the unrotation and unscaling matrices we derived above to "undo" the effect of
A and get the required solution. Of course, nothing can possibly be done for the information that was
destroyed by the nullspace of A — there is no way to recover any component of the true ~x that was in
the nullspace of A. However, we can get back everything else.
(g) (Optional) Now we will see why this matrix is a useful proxy for the matrix inverse in such circum-
stances. Show that the solution given by the Moore-Penrose Psuedoinverse satisfies the minimality
property that if ~x̂ is the psuedo-inverse solution to A~x =~y, then k~x̂k ≤ k~zk for all other vectors~z satis-
fying A~z =~y.
(Hint: look at the vectors involved in the V basis. Think about the relevant nullspace and how it is
connected to all this.)
This minimality property is useful in both control applications (as you will see in the next problem)
and in communications applications.
Let us write down what ~x̂ is with respect to the columns of V . Let there be k non-zero singular values.
The following expression comes from expanding the matrix multiplication.
~x̂ = V T~x̂
V
= V T A†~y = V T V ΣUe T~y = ΣU e T~y
T
h~y,~u0 i h~y,~u1 i h~y,~uk−1 i
= , ,..., , 0, . . . , 0
σ0 σ1 σk−1
The n − k zeros at the end come from the fact that there are only k non-zero singular values. Therefore,
by construction, ~x̂ is a linear combination of the first k columns of V .
where ~z|V is the projection of ~z in the V basis. Using the idea of “unscaling” for the first k elements
(where the unscaling is clearly invertible) and “unrotation” after that, we see that the first k elements
of ~z|V must be identical to those first k elements of ~x|V .
and that,
2
k−1
h~y,~ui i 2 n−1 2
||~z|| = ∑ + ∑ |αi |
i=0 σ i i=k
Therefore,
n−1
||~z||2 = ||~x̂||2 + ∑ |αi |2
i=k
to the system to drive it from some initial state ~x0 to ~x f . (for simplicity we considered scaler u(t), but the
conclusion of this problem can be readily extended to vector inputs). We know that if A, B are controllable
and the dimension is n, then clearly we can get to the desired ~x f in n steps. However, suppose that we only
need to get there by m > n steps. We now have a lot of flexibility.
Among all controls that guarantees “reachability”, we could ask for a control that gets us to the desired ~x f
using minimal energy. i.e., having minimal
m−1
∑ ku(t)k2 .
t=0
m−1
A concrete example such that ∑t=0 ku(t)k2 can be the “energy” of the control inputs is if the input is a
voltage, where voltage2 is power.
(a) Consider the system evolution equations from t = 1 to t = m, obtain an expression of~x(m) as a function
of the initial state ~x0 and control inputs.
Solution: We have
~x(1) = A~x(0) + Bu(0)
(b) Write out the above equation in a matrix form, with ~u = [u(0), u(1), · · · , u(m − 1)]T .
Solution:
u(0)
h i
u(1)
m
~x(m) − A ~x(0) = A m−1 B A m−2 B · · · AB B ..
.
u(m − 2)
u(m − 1)
(c) Now you have obtained a linear equation in the form ~y = C~u, where ~y and C contains your results
from last question. Recall that in the previous problem, you have shown that the solution obtained
by psuedo-inverse (using the SVD) has a nice minimality property. Use this to derive the minimum
energy control inputs ~u.
Solution: If ~û is the psuedo-inverse solution to ~y = C~u, then k~ûk ≤ k~zk for all other vectors ~z
satisfying ~y = C~z.
Now in order to obtain minimum energy control inputs, observe that it is equivalent to finding the
control inputs having minimum norm k~uk, Hence all we have to do is to find the psuedo-inverse
solution to ~y = C~u, by using SVD as was discussed in the previous problem.
Name:
SID #:
Discussion Section and TA:
Lab Section and TA:
Name of left neighbor:
Name of right neighbor:
Important Instructions:
• Show your work. An answer without explanation
is not acceptable and does not guarantee any credit.
• Only the front pages will be scanned and
graded. You can use the back pages as scratch paper.
• Do not remove pages, as this disrupts the scanning.
Instead, cross the parts that you don’t want us to grade.
Problem Points
1 10
2 15
3 10
4 20
5 15
6 15
7 15
Total 100
1
1. (10 points) The thirteenth century Italian mathematician Fibonacci de-
scribed the growth of a rabbit population by the recurrence relation:
a) (5 points) Bring the recurrence relation above to the state space form using
the variables x1 (t) = y(t) and x2 (t) = y(t + 1).
2
b) (5 points) Determine the stability of this system.
3
2. (15 points) Consider the circuit below that consists of a capacitor, an
inductor, and a third element with the nonlinear voltage-current characteristic:
i = −v + v 3 .
iL i
+ +
vC C L v
− −
dx1 (t)
= f1 (x1 (t), x2 (t))
dt
dx2 (t)
= f2 (x1 (t), x2 (t))
dt
using the states x1 (t) = vC (t) and x2 (t) = iL (t).
f1 (x1 , x2 ) = f2 (x1 , x2 ) =
4
b) (5 points) Linearize the state model at the equilibrium x1 = x2 = 0 and
specify the resulting A matrix.
5
c) (5 points) Determine stability based on the linearization.
6
3. (10 points) Consider the discrete-time system
where
0 1 0 0
A = 0 0 0 B = 1 .
0 0 0 0
7
b) (5 points) Explain whether or not it is possible to move the state vector
from �x(0) = 0 to
2
�x(T ) = 1 .
0
If your answer is yes, specify the smallest possible time T and an input sequence
u(0), . . . , u(T − 1) to accomplish this task.
8
4. (20 points) Consider the system
� � � �
cos θ − sin θ 0
�x(t + 1) = �x(t) + u(t)
sin θ cos θ 1
where θ is a constant.
a) (5 points) For which values of θ is the system controllable?
9
Additional workspace for Problem 4b.
10
c) (5 points) Suppose the state variable x1 (t) evolves as depicted below when
no control is applied (u = 0). What is the value of θ?
1
x1 (t)
0.5
0 t
-0.5
-1
0 2 4 6 8 10 12 14 16
11
5. (15 points) Consider the inverted pendulum below, where p(t) is the position
of the cart, θ(t) is the angle of the pendulum, and u(t) is the input force.
u M
p
When linearized about the upright position, the equations of motion are
m 1
p̈(t) = − g θ(t) + u(t)
M M (1)
M +m 1
θ̈(t) = g θ(t) − u(t)
M� M�
where M , m, �, g are positive constants.
a) (5 points) Using (1) write the state model for the vector
� �T
�x(t) = p(t) ṗ(t) θ(t) θ̇(t) .
12
b) (5 points) Suppose we measure only the position; that is, the output is
y(t) = x1 (t). Determine if the system is observable with this output.
13
c) (5 points) Suppose we measure only the angle; that is, the output is y(t) =
x3 (t). Determine if the system is observable with this output.
14
6. (15 points) Consider the system
x1 (t + 1) 0.9 0 0 x1 (t) � � x1 (t)
x2 (t + 1) = 0 1 1 x2 (t) , y(t) = 0 1 0 x2 (t) .
x3 (t + 1) 0 1 0 x3 (t) � �� � x (t)
3
� �� � C
A
a) (5 points) Select values for �1 , �2 , �3 in the observer below such that x̂1 (t),
x̂2 (t), x̂3 (t) converge to the true state variables �x1 (t), �x2 (t), �x3 (t) respectively.
x̂1 (t + 1) 0.9 0 0 x̂1 (t) �1
x̂2 (t + 1) = 0 1 1 x̂2 (t) + �2 (x̂2 (t) − y(t)).
x̂3 (t + 1) 0 1 0 x̂3 (t) �3
� �� �
L
15
Additional workspace for Problem 6a.
16
b) (5 points) Professor Arcak found a solution to part (a) that guarantees
convergence of x̂3 (t) to x3 (t) in one time step; that is
for any initial �x(0) and x̂(0). Determine his �3 value based on this behavior of
the observer. Explain your reasoning.
17
c) (5 points) When Professor Arcak solved part (a), he found the convergence
of x̂1 (t) to x1 (t) to be rather slow no matter what L he chose. Explain the
reason why no choice of L can change the convergence rate of x̂1 (t) to x1 (t).
18
7. (15 points) Consider a system with the symmetric form
� � � �� � � �
d �x1 (t) F H �x1 (t) G
= + �u(t), (2)
dt �x2 (t) H F �x2 (t) G
where �x1 and �x2 have identical dimensions and, therefore, F and H are square
matrices.
19
b) (5 points) Show that the system (2) is not controllable.
20
c) (5 points) Write a state model for the circuit below using the inductor
currents as the variables. Show that the model has the symmetric form (2).
x1 x2
u
L L R
21
22
Contributors:
• Siddharth Iyer.
• Ioannis Konstantakopoulos.
• John Maidens.