Skip to content

Homwork 2. Nonlinear Control and Stability

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

x˙1=x2x˙2=a1x23a2x122x235x1x1=(a1+2)x23a2x125x1x1\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(5ss+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(5ss+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)=Vx1x˙1+Vx2x˙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 Vx1=5x1x1+a2x12andVx2=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)=(5x1x1+a2x12)x2+x2[(a1+2)x23a2x125x1x1]\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 x10x_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:
5x1x1+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 0g(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+x22V(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)=Vt+Vx1x˙1+Vx2x˙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. Vt=2[1+g(t)]g˙(t)x22\frac{\partial V}{\partial t} = 2[1 + g(t)]\dot{g}(t)x_2^2
  2. Vx1=2x1\frac{\partial V}{\partial x_1} = 2x_1
  3. Vx2=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(x1g(t)x2)+2[1+g(t)]2x2(x1x2)\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]x1x22[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]x1x22[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)24[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)c3x22=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))ec3(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.5x1x2\dot{x}_1 = x_2 \quad \dot{x}_2 = -0.5x_1-x_2

[x˙1x˙2]=[010.51][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(λIA)=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.5x1x2+1\begin{aligned} \dot{x}_1 &= x_2 \ \dot{x}_2 &= -0.5x_1 - x_2 + 1 \end{aligned} [x˙1x˙2]=[010.51][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.5x1x22\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=[010.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˙=Vx1x˙1+Vx2x˙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 < 0V˙=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)=m1g0r1sinq1+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)=Vqg(q) = \frac{\partial V}{\partial q} g(q)=[(m1g0r1+m2g0(q2+r2))cosq1m2g0sinq1]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))sinq1m2g0cosq1m2g0cosq10]=[αsinq1bcosq1bcosq10]\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+m2gq2+r2b=m2g0\alpha = m_1 g r_1+m_2 g (q_2 + r_2)\quad b = m_2g_0

g(q)q2=λmax(JTJ)||\frac{\partial g(q)}{\partial q}||_2 = \sqrt{\lambda_{max}(J^TJ)} λmax=1/2(a2sin2q1+2b2cos2q1+asinq1a2sin2q1+4b2cos2q1)\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ˉ2sin2(q1)+2b2cos2(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ˉ2sin2(q1)+4b2cos2(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} λmax12(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