About linear system
USC EE 585 HW 1 Fall 2019
Due Th 09/26/19 (9am; on DEN Webpage)
1. Problem 2.2 from the book (page 20; attached).
2. Consider the unforced mass-spring system
mÿ + g(y) = 0
with three different models for the spring force
• hardening spring: g(y) = k ( 1 + y2
) y;
• softening spring: g(y) = k ( 1 − y2
) y;
• linear spring: g(y) = k y,
and k > 0.
(a) Determine a state-space representation of this system.
(b) Find equilibrium points of the above systems. Discuss your observations for three different spring force models.
(c) Is this system
• causal, • time-varying, • linear, • memoryless, • finite-dimensional?
Explain.
(d) For three different spring force models with m = k = 1, use Matlab to simulate systems’ responses from different initial conditions. Plot corresponding results in the phase plane (horizontal axis determined by position y(t), vertical axis determined by velocity ẏ(t)) and discuss your observa- tions.
3. Consider the scalar differential equation
ẋ = x (x2 − 1).
(a) Determine the equilibrium points of the above system.
(b) Determine analytical solutions of the linearized systems that are obtained by linearizing the above system around equilibrium points that you found in (a).
(c) Use Matlab to simulate systems’ responses from different initial conditions and provide plots that illustrate how x changes with time. Use your results obtained in (b) to illustrate responses of linearized systems and compare them to the responses of nonlinear system from the same initial conditions.
(d) The above system can be interpreted as the gradient descent dynamics that can be used to compute the solution of the following unconstrained optimization problem
minimize x
g(x)
where g(x) = x2/2 −x4/4. Indeed, it is easy to verify that the above system can be written as
ẋ = − dg(x)
dx
Explain your computational observations in (c) using this insight.
1
4. Consider the unconstrained optimization problem
minimize x
g(x) (1)
where g: R2 → R is given by
g(x) := 1
4 ‖xxT − Λ‖2F
and Λ = ΛT is a symmetric matrix. For any matrix M, the Frobenius norm ‖M‖F is given by
‖M‖2F = trace (M T M) = trace (MT M) =
∑ i, j
M2ij.
If the matrix Λ is positive definite, i.e., if all of its eigenvalues are positive, then the optimal solution x? to problem (1) corresponds the best rank-1 approximation to Λ which is given by
Λ̂ := x?(x?)T ≈ Λ. (2)
Suppose that the matrix Λ is given by [ λ1 0 0 λ2
] where λ1 > λ2 > 0.
• Form the gradient-flow dynamics associated with problem (1), i.e.,
ẋ = −∇g(x). (3)
• Find all the equilibrium points of system (3). • Linearize (3) around each of its equilibrium points.
Hint: There are five equilibrium points. This is a 2-dimensional version of a problem discussed in class.
2
20 LECTURE 2
Does such an equilibrium point always exist?
(d) Assume that b = 1/2 and mg# = 1/4. Compute the torque T (t) needed for the pendulum to fall from $(0) = 0 with constant velocity $̇(t) = 1, &t ' 0. Linearize the system around this trajectory. !
2.2 (Local linearization around a trajectory). A single-wheel cart (unicycle) mov- ing on the plane with linear velocity v and angular velocity ' can be modeled by the nonlinear system
ṗx = v cos$, ṗy = v sin$, $̇ = ', (2.11)
where (px, py) denote the Cartesian coordinates of the wheel and $ its orientation. Regard this as a system with input u :=
# v '
$" # R2. (a) Construct a state-space model for this system with state
x =
+
, x1 x2 x3
-
. :=
+
, px cos$ + (py ( 1) sin$
(px sin$ + (py ( 1) cos$ $
-
.
and output y := # x1 x2
$" # R2.
(b) Compute a local linearization for this system around the equilibrium point xeq = 0, ueq = 0.
(c) Show that '(t) = v(t) = 1, px(t) = sin t, py(t) = 1 ( cos t, $(t) = t, &t ' 0 is a solution to the system.
(d) Show that a local linearization of the system around this trajectory results in an
Attention! Writing the system in the carefully chosen coordinates x1, x2, x3 is crucial to getting an LTI linearization. If one tried to linearize this system in the original coordinates px , py, $ with dynamics given by (2.11), one would get an LTV system.
LTI system. !
2.3 (Feedback linearization controller). Consider the inverted pendulum in Figure 2.6.
(a) Assume that you can directly control the system in torque, i.e., that the control input is u = T . Design a feedback linearization controller to drive the pendulum to the upright position. Use the following values for the parameters: # = 1 m, m = 1 kg, b = 0.1 N m(1 s(1, and g = 9.8 m s(2. Verify the performance of your system in the presence of measurement noise using Simulink r!.
(b) Assume now that the pendulum is mounted on a cart and that you can control the cart’s jerk, which is the derivative of its acceleration a. In this case,
T = (m #a cos$, ȧ = u.
Design a feedback linearization controller for the new system.
What happens around $ = ±%/2? Note that, unfortunately, the pendulum needs to pass by one of these points for a swing-up, i.e., the motion from $ = % (pendulum down) to $ = 0 (pendulum upright). !
- hw1
- hw1-joao-p22