Skip to content

Homwork 2. Nonlinear Control and Stability

substitute the given feedback control law u=−2x˙3−5x∣x∣=−2x23−5x1∣x1∣u = -2\dot{x}^3 - 5x|x| = -2x_2^3 - 5x_1|x_1| into the given system. Then get:

x˙1=x2x˙2=−a1x23−a2x12−2x23−5x1∣x1∣=−(a1+2)x23−a2x12−5x1∣x1∣\begin{aligned} \dot{x}_1 &= x_2 \\ \dot{x}_2 &= -a_1 x_2^3 - a_2 x_1^2 - 2x_2^3 - 5x_1|x_1| \\ &= -(a_1 + 2)x_2^3 - a_2 x_1^2 - 5x_1|x_1| \end{aligned}

let the Lyapunov function to be :

V(x1,x2)=∫0x1(5s∣s∣+a2s2) ds+a1+24x24V(x_1, x_2) = \int_0^{x_1} (5s|s| + a_2 s^2) \, ds + \frac{a_1 + 2}{4}x_2^4

since a1>−2,∣a2∣<5a_1 >-2, \quad |a_2| < 5:

∫0x1(5s∣s∣+a2s2) ds>0a1+24x24>0\int_0^{x_1} (5s|s| + a_2 s^2) \, ds >0 \\ \frac{a_1 + 2}{4}x_2^4 > 0

V(x1,x2)V(x_1, x_2) is positive definite.

V˙(x1,x2)=∂V∂x1x˙1+∂V∂x2x˙2\dot{V}(x_1, x_2) = \frac{\partial V}{\partial x_1}\dot{x}_1 + \frac{\partial V}{\partial x_2}\dot{x}_2 ∂V∂x1=5x1∣x1∣+a2x12and∂V∂x2=x2\frac{\partial V}{\partial x_1} = 5x_1|x_1| + a_2 x_1^2 \quad \text{and} \quad \frac{\partial V}{\partial x_2} = x_2

substitute x2˙\dot{x_2}:

V˙(x1,x2)=(5x1∣x1∣+a2x12)x2+x2[−(a1+2)x23−a2x12−5x1∣x1∣]\dot{V}(x_1, x_2) = (5x_1|x_1| + a_2 x_1^2)x_2 + x_2 \left[ -(a_1 + 2)x_2^3 - a_2 x_1^2 - 5x_1|x_1| \right]

which we get:

V˙(x1,x2)=−(a1+2)x24\dot{V}(x_1, x_2) = -(a_1 + 2)x_2^4

is negative semi- definite, it doesn’t depend on x1x_1so it cana be 0, even wehen x1≠0x_1 \neq 0. To prove asymptotic stability, we use LaSalle’s principle:

  1. Set V˙(x1,x2)=0\dot{V}(x_1, x_2) = 0, then x2=0x_2 = 0
  2. Then x˙2=0\dot{x}_2 = 0
  3. Then substitute into system dynamic:
5x1∣x1∣+a2x12=05x_1|x_1| + a_2 x_1^2 = 0
  1. solve for x1x_1, then get x1=0x_1 = 0

Hence, the only trajectory that can stay indefinitely in the set where V˙=0\dot{V} = 0 is the origion itself:

M={(0,0)}M = \{(0, 0)\}

Since V(x1,x2)V(x_1, x_2) is radially unbounded, positive definite, V˙(x1,x2)≤0\dot{V}(x_1, x_2) \leq 0 and the largest inveriant set in V˙=0\dot{V} = 0 is strically the origin (0,0), by LaSalle’s inveriant principle, the origin is globally asymptotically stable.


The candidate Lyapunove function is:

V(t,x)=x12+[1+g(t)]2x22V(t,x) = x_1^2 + [1+g(t)]^2x_2^2

g(t)g(t) is bounded by 0≤g(t)≤k0 \leq g(t) \leq k, which means [1+g(t)]2[1+g(t)]^2 is bounded between 1 and (1+k)2(1+k)^2. Thus :

x12+x22≤V(t,x)≤(1+k)2(x12+x22)x_1^2 + x_2^2 \leq V(t,x) \leq (1+k)^2(x_1^2 + x_2^2)

V(t,x)V(t,x) is positive definite and radially unbounded uniformly in tt

is explicityly depends on time t through g(t)g(t)

Differentiate V(t,x)V(t, x) with Respect to TimeSince V(t,x)V(t, x) explicitly depends on time tt through g(t)g(t):

V˙(t,x)=∂V∂t+∂V∂x1x˙1+∂V∂x2x˙2\dot{V}(t, x) = \frac{\partial V}{\partial t} + \frac{\partial V}{\partial x_1}\dot{x}_1 + \frac{\partial V}{\partial x_2}\dot{x}_2
  1. ∂V∂t=2[1+g(t)]g˙(t)x22\frac{\partial V}{\partial t} = 2[1 + g(t)]\dot{g}(t)x_2^2
  2. ∂V∂x1=2x1\frac{\partial V}{\partial x_1} = 2x_1
  3. ∂V∂x2=2[1+g(t)]2x2\frac{\partial V}{\partial x_2} = 2[1 + g(t)]^2 x_2

and substitude the system equations into this formula:

V˙(t,x)=2[1+g(t)]g˙(t)x22+2x1(−x1−g(t)x2)+2[1+g(t)]2x2(x1−x2)\dot{V}(t, x) = 2[1 + g(t)]\dot{g}(t)x_2^2 + 2x_1\Big(-x_1 - g(t)x_2\Big) + 2[1 + g(t)]^2 x_2(x_1 - x_2)

Since g˙(t)≤g(t)\dot{g}(t) \leq g(t):

V˙(t,x)≤−2x12+2[1+g(t)+g(t)2]x1x2−2[1+2g(t)+g(t)2]x22+2[g(t)+g(t)2]x22\dot{V}(t, x) \leq -2x_1^2 + 2[1 + g(t) + g(t)^2]x_1x_2 - 2[1 + 2g(t) + g(t)^2]x_2^2 + 2[g(t) + g(t)^2]x_2^2 V˙(t,x)≤−2x12+2[1+g(t)+g(t)2]x1x2−2[1+g(t)]x22\dot{V}(t, x) \leq -2x_1^2 + 2[1 + g(t) + g(t)^2]x_1x_2 - 2[1 + g(t)]x_2^2 V˙(t,x)≤−[x1x2][2−(1+g(t)+g(t)2)−(1+g(t)+g(t)2)2(1+g(t))][x1x2]\dot{V}(t, x) \leq -\begin{bmatrix} x_1 & x_2 \end{bmatrix} \begin{bmatrix} 2 & -(1 + g(t) + g(t)^2) \\ -(1 + g(t) + g(t)^2) & 2(1 + g(t)) \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

The matrix Q(t)Q(t) must be uniformly positive definite, so that V˙(t,x)\dot{V}(t,x) to be strictly negative definite uniformly. By using Sylvester’s Criterion:

  1. first minor: 2 > 0
  2. Determinant of Q(t)Q(t): det⁡(Q(t))=4+4g(t)−[1+g(t)+g(t)2]2\det(Q(t)) = 4 + 4g(t) - \left[1 + g(t) + g(t)^2\right]^2

if g(t)→0g(t) \rightarrow 0, det⁡(Q(t))=3\det(Q(t)) = 3, when det⁡(Q)=0\det(Q) = 0, 1+g(t)+g(t)2=4+4g(t)1 + g(t) + g(t)^2 = \sqrt{4+4g(t)}, V˙(t,x)\dot{V}(t,x) is negative definite. g(t)g(t) is solved to be around 0.58, so if k<0.58k <0.58, exists c3c_3 to have

c3=(4+2k)−(4+2k)2−4[4+4k−(1+k+k2)2]2c_3 = \frac{(4 + 2k) - \sqrt{(4 + 2k)^2 - 4\left[4 + 4k - (1 + k + k^2)^2\right]}}{2} V˙(t,x)≤−c3∥x∥22=−c3(x12+x22)\dot{V}(t,x) \leq -c_3 \|x\|_2^2 = -c_3 (x_1^2 + x_2^2) V˙≤−c3(1+k)2V\dot{V} \leq -\frac{c_3}{(1+k)^2} V

integral this formula, then get:

V(t,x(t))≤V(0,x(0))⋅e−c3(1+k)2tV(t, x(t)) \leq V(0, x(0)) \cdot e^{-\frac{c_3}{(1+k)^2} t}


θ¨+θ˙+0.5θ=0\ddot{\theta}+\dot{\theta} + 0.5\theta = 0

x˙1=x2x˙2=−0.5x1−x2\dot{x}_1 = x_2 \quad \dot{x}_2 = -0.5x_1-x_2

[x˙1x˙2]=[01−0.5−1][x1x2]\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -0.5 & -1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

Equilibrium point: x=(0,0)x = (0,0) LTI: det⁡(λI−A)=0\det(\lambda I - A) = 0

det⁡[λ−10.5λ+1]=λ2+λ+0.5=0\det \begin{bmatrix} \lambda & -1 \\ 0.5 & \lambda + 1 \end{bmatrix} = \lambda^2 + \lambda + 0.5 = 0

eigenvalues are: λ1,2=−0.5±0.5i\lambda_{1,2} = -0.5 \pm 0.5i, on left plane, Stable focus.

""


θ¨+θ˙+0.5 θ=1\ddot{\theta} + \dot{\theta} + 0.5\,\theta = 1

x˙1=x2 x˙2=−0.5x1−x2+1\begin{aligned} \dot{x}_1 &= x_2 \ \dot{x}_2 &= -0.5x_1 - x_2 + 1 \end{aligned} [x˙1x˙2]=[01−0.5−1][x1x2]+[01]⋅1\begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -0.5 & -1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} + \begin{bmatrix} 0 \\ 1 \end{bmatrix} \cdot 1

Equilibrium point: x=(2,0)x = (2,0) LTI: same with above.

""


θ¨+(θ˙)2+0.5 θ=0\ddot{\theta} + (\dot{\theta})^2 + 0.5\,\theta = 0

θ¨=−0.5 θ−(θ˙)2\ddot{\theta} = -0.5\,\theta - (\dot{\theta})^2

x˙1=x2 x˙2=−0.5x1−x22\begin{aligned} \dot{x}_1 &= x_2 \ \dot{x}_2 &= -0.5x_1 - x_2^2 \end{aligned}

Equilibrium point: x=(0,0)x = (0,0) Calculate teh Jacobian around equilibrium:

A=[01−0.50]A = \begin{bmatrix} 0 & 1 \\-0.5 & 0 \end{bmatrix}

Eigenvalues are λ1,2=±0.5i=±0.707i \lambda_{1,2} = \pm \sqrt{0.5}i = \pm 0.707i Real part is zero, so it’s not possible to determine locally stability from linearization.

V(x1,x2)=0.25x12+0.5x22V(x_1, x_2) = 0.25x_1^2 + 0.5x_2^2 V˙=∂V∂x1x˙1+∂V∂x2x˙2=−x23\begin{align*} \dot{V} &= \frac{\partial V}{\partial x_1}\dot{x}_1 + \frac{\partial V}{\partial x_2}\dot{x}_2 \\ &= -x_2^3 \end{align*}

x2<0x_2 < 0,V˙=−x23>0\dot{V} = -x_2^3 > 0, the total energy is increasing, by using LaSalle’s Principle, it’s not asymptically stable.

""


Poential energy is

V(q)=m1g0r1sin⁡q1+m2g0(q2+r2)sin⁡(q1)V(q) = m_1 g_0 r_1 \sin{q_1} + m_2 g_0 (q_2+r_2)\sin(q_1) g(q)=∂V∂qg(q) = \frac{\partial V}{\partial q} g(q)=[(m1g0r1+m2g0(q2+r2))cos⁡q1m2g0sin⁡q1]g(q) = \begin{bmatrix} (m_1 g_0 r_1+ m_2 g_0 (q_2+r_2)) \cos q_1 \\ m_2 g_0 \sin q_1 \end{bmatrix} ∂g(q)∂q=[−(m1g0r1+m2g0(q2+r2))sin⁡q1m2g0cos⁡q1m2g0cos⁡q10]=[−αsin⁡q1bcos⁡q1bcos⁡q10]\frac{\partial g(q)}{\partial q} = \begin{bmatrix} -(m_1 g_0 r_1+ m_2 g_0 (q_2+r_2)) \sin q_1 & m_2 g_0 \cos q_1\\ m_2 g_0 \cos q_1 & 0 \end{bmatrix} = \begin{bmatrix} -\alpha \sin q_1 & b \cos q_1\\ b \cos q_1 & 0 \end{bmatrix}

where define α=m1gr1+m2g(q2+r2)b=m2g0\alpha = m_1 g r_1+m_2 g (q_2 + r_2)\quad b = m_2g_0

∣∣∂g(q)∂q∣∣2=λmax(JTJ)||\frac{\partial g(q)}{\partial q}||_2 = \sqrt{\lambda_{max}(J^TJ)} λmax=1/2∗(a2sin⁡2q1+2b2cos⁡2q1+∣asin⁡q1∣a2sin⁡2q1+4b2cos⁡2q1)\lambda_{max} = 1/2 * (a^2 \sin^2 q_1 +2b^2\cos^2q_1 + |a \sin q_1|\sqrt{a^2 \sin^2 q_1 + 4b^2 \cos^2 q_1}) aˉ2sin⁡2(q1)+2b2cos⁡2(q1)≤aˉ2(1)+2b2(1)=aˉ2+2b2\bar{a}^2 \sin^2(q_1) + 2b^2 \cos^2(q_1) \leq \bar{a}^2 (1) + 2b^2 (1) = \bar{a}^2 + 2b^2 aˉ2sin⁡2(q1)+4b2cos⁡2(q1)≤aˉ2(1)+4b2(1)=aˉ2+4b2\sqrt{\bar{a}^2 \sin^2(q_1) + 4b^2 \cos^2(q_1)} \leq \sqrt{\bar{a}^2 (1) + 4b^2 (1)} = \sqrt{\bar{a}^2 + 4b^2} λmax⁡≤12(aˉ2+2b2+aˉaˉ2+4b2)\lambda_{\max} \leq \frac{1}{2} \left( \bar{a}^2 + 2b^2 + \bar{a} \sqrt{\bar{a}^2 + 4b^2} \right)

then we get:

α=12(aˉ2+2b2+aˉaˉ2+4b2)\alpha = \sqrt{\frac{1}{2} \left( \bar{a}^2 + 2b^2 + \bar{a} \sqrt{\bar{a}^2 + 4b^2} \right)}

where,

  • aˉ=g0(m1r1+m2(L+r2))\bar{a} = g_0(m_1 r_1 + m_2 (L + r_2))
  • b=g0m2b = g_0 m_2