HW4
Problem 1

A) simulate 100 sample path of system for different values of p, and \(\phi(x) = x^TQx\) where Q is a positive definite matrix
Given the \(\phi(x) = x^TQx\), we have \(\nabla \phi(x_1) = \nabla x_1^T Q x_1 = x_1^T' Q x_1 + x_1^T Q x_1' = 2x_1^T Q x_1\) (since \(x_1^T x_1\) is a scaler, the transpose of \(x_1^T Q x_1\) is equal to itself),
Therefore \(\dot(V(x_1)) = -\nabla \phi(x_1) = -2Qx_1\)
the \(x_2\) is a timer with constant 1 unit/s, therefore, the period of the system is \(T = 1s\)
therefore, we have
and for the jump, we have
The following is simulation result of the matrix Q = [[0.3, 0.3], [0.3, 0.4]], and the initial condition \(x_1(0) = [1, 0]^T\):

B) use a lyapunov function to compute an upper bound on p such that the system renders UGASp the set \(\mathcal{A} \times [0, 1]\)
Let the Lyapunove function be \(V(x) = \phi(x) = x^Tx\), we want to show it is UGAS:
to show the Lyapunov function is UGAS at flow:
since \(||x_1||\) is scaler, the transpose of \(x_1 \dot{x_1}\) is equal to the transpose of \(\dot{x_1} x_1\), therefore we have:
- positive definite: \(V(x) = x^Tx = ||x||^2 > 0\) for all \(x \neq 0\), and \(V(0) = 0\)
- radially unbounded: \(V(x) \to \infty\) as \(||x|| \to \infty\)
- negative definite: \(\dot{V}(x) = -4x^TQx < 0\) for all \(x \neq 0\), and \(\dot{V}(0) = 0\)
Therefore, we have shown that \(V(x)\) is a Lyapunov function and UGAS at flow
the system is contracting during flow. Therefore, after one flow phase: \(V(x_1(1^-)) = ||x_1||^2 \leq e^{-4\lambda_\text{min}} ||x_1(0)||^2\) where \(\lambda_\text{min}\) is the minimum eigenvalue of Q.
definition of \(\lambda_\text{min}\)
suppose the matrix Q is given by:
since it is positive definite, we have \(q_{11} > 0\), \(q_{22} > 0\), and \(q_{11}q_{22} - q_{12}^2 > 0\), and \(q_{12} = q_{21}\)
then the eigenvalues of Q are given by:
since all values are positive, the \(\lambda_\text{min}\) is
show it is UGAS at jump:
since the jump is random. when v = 1.5, then \(V(x_1^+) = ||vx_1^-||^2 = 1.5^2 V(x_1^-) = 2.25 V(x_1^-) > V(x_1^-)\), therefore the system does not contract and is not UGAS. when v = 0.5, then \(V(x_1^+) = ||vx_1^-||^2 = 0.5^2 V(x_1^-) = 0.25 V(x_1^-) < V(x_1^-)\), therefore the system contracts and is UGAS.
so we need to compute the average value of V after the jump, which is given by:
to ensure the system is strict UGASp, needs to have \(E[V(x_1^+)] < V(x_1^-)\), which is equivalent to \(2p + 0.25 < 1\), which is equivalent to \(p < 0.375\)
if we want the system to be UGASp, we want the entire cycle to be contracting
This inequality is satisfied if and only if:
in part 1, we have the matrix Q = [[0.3, 0.3], [0.3, 0.4]], it yields the minimum eigenvalue \(\lambda_\text{min} \approx 0.046\). Therefore, we have \(p < \frac{e^{4*0.046} - 0.25}{2} \approx 0.476\)
therefore, if the p is less than 0.476, the system contracts during the entire cycle and therefore UGASp. if the p is greater than 0.476, we cannot conclude stability of the system.
Therefore, a sufficient condition for the system to render 𝒜 × [0,1] UGASp is p < 0.476.

Problem 2

Let the Lyapunov function be \(V(x) = \frac{1}{\frac{\sigma x_2}{T} + 1}x_1^T P_q x_1\)
This function is
- positive definite: since the matrix \(P_q\) is positive definite, \(x_1^T x_1\) is positive or zero. since the range of \(x_2\) is [0, T], and \(\sigma > 0\), all the terms on the right handside are positive. when \(x_1 = 0\), \(V(x) = 0\), and when \(x_1 \neq 0\), \(V(x) > 0\). therefore, \(V(x)\) is positive definite.
- radially unbounded: similarly to problem 1, define \(\lambda_\text{min}\) as the minimum eigenvalue of \(P_q\), we have \(x_1^T P_q x_1 \geq \lambda_\text{min} ||x_1||^2\). As \(||x_1|| \to \infty\), \(||x_1||^2 \to \infty\), therefore \(x_1^T P_q x_1 \to \infty\). since \(\frac{1}{\frac{\sigma x_2}{T} + 1}\) is positive and bounded, we have \(V(x) \to \infty\) as \(||x_1|| \to \infty\). therefore, \(V(x)\) is radially unbounded.
- negative semi-definite:
prove for flow:
define \(f(x_2)\) and \(g(x_1)\) as the two terms in the product:
Differentiate \(f(x_2)\)
Write \(f(x_2) = \left(\frac{\sigma x_2}{T} + 1\right)^{-1}\), then apply the chain rule:
So:
Differentiate \(g(x_1)\)
Since \(\dot{x}_1 = A_q x_1\), we have:
Combine:
since \(x_2 \in [0, T]\), the part \(\frac{1}{\frac{\sigma x_2}{T}+1}\) is positive and bounded.
since \(\dot{x_2} \in [-\eta, 0]\), to prove the flow is stable, we want to show that the change in V is negative, this is dependent on the term \((\frac{-\sigma \dot{x_2}}{T\left(\frac{\sigma x_2}{T}+1\right)} + (A_q^\top P_q + P_q A_q))\). In the worst case, \(\dot{x_2} = -\eta\), and this term will reach maximum value of \(\frac{\sigma \eta}{T\left(\frac{\sigma x_2}{T}+1\right)} + (A_q^\top P_q + P_q A_q)\).
since \(x_2 \in [0, T]\), in the worst case when the term is maximized, the term \(x_2\) is 0, therefore the term will be \(\frac{\sigma \eta}{T} + (A_q^\top P_q + P_q A_q)\)
by conditions 3a, this term is negative definite. therefore, \(\dot{V}\) is negative definite, and the system is stable during flow.
prove for jump:
we want to show that the \(V(x^+) < V(x^-)\)
From the definition of V(x), \(x^-\) is when \(x_2 = 0\). therefore, we have:
after the jump, we have \(x^+ = (x_1, v_1, v_2)\), therefore we have:
The expectation of the V is given by:
first term
since \(v_1\) is a random variable with uniform distribution over [0, T], we have:
second term
the term \(P_{v_2}\) means the probability of the matrix when \(q = v_2\). since \(v_2\) is a random variable, the expectation of \(P_{v_2}\) is given by:
therefore, we have:
combine:
from 3b, we have:
therefore, we have:
therefore, the system is contracting during jump.
since Lyapunov function is positive definite, radially unbounded, and the negative definite during the flow, and \(E[V(x^+)] < V(x^-)\) during jump, we have shown that the system is UGASp at the set \(\mathcal{A} \times [0, T] \times \mathcal{Q}\).
change \(A_q\):

change \(T\):

change \(\eta\):
