Salta al contenuto
Note per Studenti Worked Examples - Stability of Nonlinear Systems by Linearization and Lyapunov Functions Report

Worked Examples - Stability of Nonlinear Systems by Linearization and Lyapunov Functions

In questa pagina 4

Method used in all the exercises. To study the stability of an equilibrium xeqx_{eq} of x˙=f(x)\dot x=f(x) there are two tools: the linearization theorem, and a Lyapunov function together with the Lyapunov theorem.

  1. Linearize the system about xeqx_{eq}: F=Jf(x)∣x=xeqF=J_f(x)\big|_{x=x_{eq}} (the Jacobian matrix of ff at the equilibrium) and study the stability of the linearized system x˙=Fx\dot x=Fx.
  2. Linearization theorem:
    • if FF is asymptotically stable, then xeqx_{eq} is asymptotically stable for the nonlinear system;
    • if FF is unstable, then xeqx_{eq} is unstable for the nonlinear system;
    • if FF is (simply) stable, we cannot conclude anything about the nonlinear system (except excluding asymptotic stability, as noted on the board in the first example). This is the critical case.
  3. In the critical case, plug the critical parameter value into the original nonlinear system and hope to find a Lyapunov function VV: with V(0)=0V(0)=0, V>0V>0 for x≠0x\ne0 near the origin, one has V˙≤0⇒\dot V\le0\Rightarrow stable and V˙<0⇒\dot V<0\Rightarrow asymptotically stable.

Example 1 - a family of systems with parameter aa

x˙1=ax1−x1x22,x˙2=−ax2−x12x2,a∈R.\dot x_1=ax_1-x_1x_2^2,\qquad\dot x_2=-ax_2-x_1^2x_2,\qquad a\in\mathbb R. Question: stability of xeq=0x_{eq}=0.

Linearization. F=Jf(x)∣x=xeq=(a00−a)F=J_f(x)\big|_{x=x_{eq}}=\begin{pmatrix}a&0\\0&-a\end{pmatrix}, with eigenvalues λ1=a\lambda_1=a and λ2=−a\lambda_2=-a.

  • Case 1: a≠0a\ne0. Then either λ1\lambda_1 or λ2\lambda_2 is positive, the linearized system is unstable, hence xeq=0x_{eq}=0 is unstable for the original nonlinear system.
  • Case 2: a=0a=0. The linearized system is (simply) stable: we cannot conclude anything about the original nonlinear system (except excluding asymptotic stability). Plug a=0a=0 into the original system, x˙1=−x1x22,x˙2=−x12x2,\dot x_1=-x_1x_2^2,\qquad\dot x_2=-x_1^2x_2, and try V(x)=x12+x22V(x)=x_1^2+x_2^2: V˙(x(t))=2x1x˙1+2x2x˙2=−2x12x22−2x12x22=−4x12x22≤0.\dot V(x(t))=2x_1\dot x_1+2x_2\dot x_2=-2x_1^2x_2^2-2x_1^2x_2^2=-4x_1^2x_2^2\le0. Since V˙≤0\dot V\le0 gives stability (and V˙<0\dot V<0 would give asymptotic stability), xeq=0x_{eq}=0 is stable for a=0a=0 (not necessarily asymptotically stable).

Example 2 - cubic terms, parameter aa

x˙1=−ax1+((a−1)x1−ax2)3,x˙2=(a−1)(x1+x2)−((a−1)x1−ax2)3,xeq=0, a∈R.\dot x_1=-ax_1+\big((a-1)x_1-ax_2\big)^3,\qquad\dot x_2=(a-1)(x_1+x_2)-\big((a-1)x_1-ax_2\big)^3,\qquad x_{eq}=0,\ a\in\mathbb R.

Linearization about xeq=0x_{eq}=0. The cubic terms have zero Jacobian at the origin, so F=Jf(x)∣x=xeq=(−a0a−1a−1),λ1=−a, λ2=a−1.F=J_f(x)\big|_{x=x_{eq}}=\begin{pmatrix}-a&0\\a-1&a-1\end{pmatrix},\qquad\lambda_1=-a,\ \lambda_2=a-1.

  • FF is asymptotically stable if λ1<0\lambda_1<0 and λ2<0\lambda_2<0, i.e. −a<0-a<0 and a−1<0a-1<0, i.e. a∈(0,1)a\in(0,1). For a∈(0,1)a\in(0,1), xeq=0x_{eq}=0 is asymptotically stable for the nonlinear system.
  • If a<0a<0 or a>1a>1, FF is unstable and xeqx_{eq} is unstable for the nonlinear system.
  • If a=0a=0 (eigenvalues λ1=0\lambda_1=0, λ2=−1\lambda_2=-1) or a=1a=1 (eigenvalues λ1=−1\lambda_1=-1, λ2=0\lambda_2=0), FF is simply stable and the nonlinear system is undecided. Plug the two values into the original system.

First case, a=0a=0: x˙1=(−x1)3=−x13,x˙2=−x1−x2+x13.\dot x_1=(-x_1)^3=-x_1^3,\qquad\dot x_2=-x_1-x_2+x_1^3. Take V(x)=x12+(x1+x2)2>0V(x)=x_1^2+(x_1+x_2)^2>0 for all x≠0x\ne0. Then V˙(x)=2x1x˙1+2(x1+x2)(x˙1+x˙2)=−2x14+2(x1+x2)(−x13−x1−x2+x13)=−2x14−2(x1+x2)2≤0.\dot V(x)=2x_1\dot x_1+2(x_1+x_2)(\dot x_1+\dot x_2)=-2x_1^4+2(x_1+x_2)\big(-x_1^3-x_1-x_2+x_1^3\big)=-2x_1^4-2(x_1+x_2)^2\le0. The two terms −x13-x_1^3 and +x13+x_1^3 cancel (crossed out on the board). So V˙(0)=0\dot V(0)=0 and V˙(x)≤0\dot V(x)\le0 for x≠0x\ne0. (The sign written on the board next to the last statement is hard to tell apart from "<": the expression −2x14−2(x1+x2)2-2x_1^4-2(x_1+x_2)^2 vanishes only at the origin, so it is actually strictly negative for x≠0x\ne0. The board stops at these inequalities without writing the final word.)

Second case, a=1a=1: x˙1=−x1−x23,x˙2=x23.\dot x_1=-x_1-x_2^3,\qquad\dot x_2=x_2^3. By inspection of the second equation alone: if x2(0)>0x_2(0)>0 then x˙2>0\dot x_2>0 and x2x_2 moves away from 00 to the right; if x2(0)<0x_2(0)<0 then x˙2<0\dot x_2<0 and it moves away to the left (the board draws arrows pointing away from the origin on the x2x_2 axis). So xeqx_{eq} is unstable for x2x_2, hence unstable for the nonlinear system.

Example 3 - the pendulum with friction (total energy as Lyapunov function)

State x1=θx_1=\theta (angle from the vertical), x2=θ˙x_2=\dot\theta; the pendulum has length ℓ\ell, mass mm, friction coefficient ν\nu and gravity gg: x˙1=x2,x˙2=−gℓsin⁡(x1)−νmℓx2.\dot x_1=x_2,\qquad\dot x_2=-\frac g\ell\sin(x_1)-\frac\nu{m\ell}x_2. Lyapunov candidate: the total mechanical energy Em(x)=EK(x)+Ep(x)E_m(x)=E_K(x)+E_p(x) with EK(x)=12mℓ2x22,Ep(x)=mgℓ(1−cos⁡(x1)).E_K(x)=\tfrac12m\ell^2x_2^2,\qquad E_p(x)=mg\ell\big(1-\cos(x_1)\big). At xeq=0x_{eq}=0: Em(xeq)=0E_m(x_{eq})=0 and Em(x)>0E_m(x)>0 for x≠0x\ne0 (near the origin). Its derivative along the trajectories is E˙m(x(t))=∇xEm(x)⋅f(x)=E˙K+E˙p=mℓ2x2x˙2+mgℓsin⁡(x1)x˙1\dot E_m(x(t))=\nabla_xE_m(x)\cdot f(x)=\dot E_K+\dot E_p=m\ell^2x_2\dot x_2+mg\ell\sin(x_1)\dot x_1 =mℓ2x2(−gℓsin⁡(x1)−νmℓx2)+mgℓsin⁡(x1)x2=−mgℓsin⁡(x1)x2−νℓx22+mgℓsin⁡(x1)x2.=m\ell^2x_2\Big(-\frac g\ell\sin(x_1)-\frac\nu{m\ell}x_2\Big)+mg\ell\sin(x_1)x_2=-mg\ell\sin(x_1)x_2-\nu\ell x_2^2+mg\ell\sin(x_1)x_2. The two terms with sin⁡(x1)x2\sin(x_1)x_2 cancel (crossed out on the board), leaving a non-positive quantity: E˙m(x(t))≤0\dot E_m(x(t))\le0 (physically, friction dissipates energy). The board writes the result as −νx22(t)≤0-\nu x_2^2(t)\le0; carrying the factor ℓ\ell through the product gives −νℓx22-\nu\ell x_2^2, which has the same sign, so the conclusion E˙m≤0\dot E_m\le0 is unaffected.

Example 4 - a critical case with a Lyapunov candidate

x˙1=ax1+x2,x˙2=−x1+ax2,x˙3=−x33(1−x3).\dot x_1=ax_1+x_2,\qquad\dot x_2=-x_1+ax_2,\qquad\dot x_3=-x_3^3(1-x_3). Questions: (1) stability of xeq=0x_{eq}=0 via linearization; (2) the critical case, with the candidate V(x)=x12+x22+x33V(x)=x_1^2+x_2^2+x_3^3.

(1) Linearization. The third equation has zero linear part at the origin (x˙3≈0\dot x_3\approx0), so F=(a10−1a0000).F=\left(\begin{array}{cc|c}a&1&0\\-1&a&0\\\hline0&0&0\end{array}\right). By the linearization theorem: FF asymptotically stable ⇒\Rightarrow xeq=0x_{eq}=0 asymptotically stable (locally); FF unstable ⇒\Rightarrow xeqx_{eq} unstable; FF simply stable ⇒\Rightarrow ?. One eigenvalue is λ3=0\lambda_3=0, and F11=(a1−1a)F_{11}=\begin{pmatrix}a&1\\-1&a\end{pmatrix} has eigenvalues a±ja\pm j.

  1. a>0a>0: FF is unstable, hence xeqx_{eq} is unstable.
  2. a≤0a\le0: FF is (at most) simply stable, so the linearization theorem is useless: critical case.

(2) Critical case. The board takes V=x12+x22+x33≥0V=x_1^2+x_2^2+x_3^3\ge0 and computes V˙(x(t))=∇VT⋅x˙(t)=2(ax12+ax22−x34(1−x3))≤?0,\dot V(x(t))=\nabla V^T\cdot\dot x(t)=2\Big(ax_1^2+ax_2^2-x_3^4(1-x_3)\Big)\overset?\le0, simplified to a(x12+x22)−x35+x36a(x_1^2+x_2^2)-x_3^5+x_3^6.

  • a<0a<0: V˙(x)<0\dot V(x)<0 for xx in some neighbourhood II of the origin.
  • a=0a=0: V˙(x)=−x35+x36\dot V(x)=-x_3^5+x_3^6, and the board stops here, without a conclusion.

Flagged. The expressions written for V˙\dot V are not mutually consistent as transcribed (a direct computation with VV as written has the term 3x32x˙33x_3^2\dot x_3, so the powers and factors of x3x_3 and the overall factor 2 do not match the board lines), and x33x_3^3 is not positive for x3<0x_3<0. I reproduce the board lines as read and draw no conclusion for a=0a=0.

Related linear techniques: Worked Examples - Jordan Form, Modes and Stability of Linear SystemsFour worked exercises on continuous-time linear systems: Jordan form from algebraic and geometric multiplicity, modes, equilibria, stability from modes or eigenvalues, the solution through the Laplace transform, outputs of block-diagonal systems and rectilinear trajectories.Worked Examples - Jordan Form, Modes and Stability of Linear Systems →, Worked Examples - Lyapunov Equation, Output Response and Rectilinear TrajectoriesOne worked exercise on a 3x3 continuous-time linear system with a parameter: stability decided by solving the Lyapunov equation block by block, the output response for two different output matrices, and the rectilinear trajectories through the origin.Worked Examples - Lyapunov Equation, Output Response and Rectilinear Trajectories →.

Versione ripasso

  • Method: linearize at xeqx_{eq}, F=Jf(x)∣x=xeqF=J_f(x)\big|_{x=x_{eq}}, and apply the linearization theorem. FF asymptotically stable gives asymptotic stability of xeqx_{eq} for the nonlinear system; FF unstable gives instability; FF simply stable is the critical case, where nothing follows.
  • In the critical case, plug the critical parameter into the nonlinear system and look for a Lyapunov function VV with V(0)=0V(0)=0 and V>0V>0 near the origin: V˙≤0\dot V\le0 gives stability, V˙<0\dot V<0 gives asymptotic stability.
  • Ex. 1, F=diag(a,−a)F=\mathrm{diag}(a,-a): a≠0a\ne0 gives an unstable xeqx_{eq}. For a=0a=0, with V=x12+x22V=x_1^2+x_2^2, V˙=−4x12x22≤0\dot V=-4x_1^2x_2^2\le0: stable, not necessarily asymptotically stable.
  • Ex. 2, cubic terms: x˙1=−ax1+((a−1)x1−ax2)3\dot x_1=-ax_1+\big((a-1)x_1-ax_2\big)^3, x˙2=(a−1)(x1+x2)−((a−1)x1−ax2)3\dot x_2=(a-1)(x_1+x_2)-\big((a-1)x_1-ax_2\big)^3. The cubic terms have zero Jacobian at the origin, so F=(−a0a−1a−1)F=\begin{pmatrix}-a&0\\a-1&a-1\end{pmatrix} with λ1=−a\lambda_1=-a, λ2=a−1\lambda_2=a-1.
    • a∈(0,1)a\in(0,1): asymptotically stable. a<0a<0 or a>1a>1: unstable.
    • a=0a=0: with V=x12+(x1+x2)2V=x_1^2+(x_1+x_2)^2, V˙=−2x14−2(x1+x2)2<0\dot V=-2x_1^4-2(x_1+x_2)^2<0 for x≠0x\ne0 (the cubic terms cancel); the board leaves the final word open, the Lyapunov theorem with V˙<0\dot V<0 gives asymptotic stability.
    • a=1a=1: x˙2=x23\dot x_2=x_2^3 pushes x2x_2 away from 00 on both sides, so xeqx_{eq} is unstable.
  • Ex. 3, pendulum with friction ν\nu: x˙1=x2\dot x_1=x_2, x˙2=−gℓsin⁡x1−νmℓx2\dot x_2=-\tfrac g\ell\sin x_1-\tfrac{\nu}{m\ell}x_2. Take Em=12mℓ2x22+mgℓ(1−cos⁡x1)E_m=\tfrac12m\ell^2x_2^2+mg\ell(1-\cos x_1), which is zero at 00 and positive nearby. Then E˙m=mℓ2x2x˙2+mgℓsin⁡(x1)x˙1\dot E_m=m\ell^2x_2\dot x_2+mg\ell\sin(x_1)\dot x_1. Substituting, the terms ±mgℓsin⁡(x1)x2\pm mg\ell\sin(x_1)x_2 cancel, leaving E˙m=−νℓx22≤0\dot E_m=-\nu\ell x_2^2\le0: friction dissipates the energy. (The board writes −νx22-\nu x_2^2, which has the same sign.)
  • Ex. 4, x˙1=ax1+x2\dot x_1=ax_1+x_2, x˙2=−x1+ax2\dot x_2=-x_1+ax_2, x˙3=−x33(1−x3)\dot x_3=-x_3^3(1-x_3): λ3=0\lambda_3=0, F11F_{11} has eigenvalues a±ja\pm j. a>0a>0: unstable. a≤0a\le0: critical case. The board's V=x12+x22+x33V=x_1^2+x_2^2+x_3^3 gives V˙=a(x12+x22)−x35+x36\dot V=a(x_1^2+x_2^2)-x_3^5+x_3^6, negative near the origin for a<0a<0; for a=0a=0 no conclusion (the board expressions are flagged as not matching a direct computation).
  • Typical mistake: concluding stability of the nonlinear system from a simply stable linearization.

Teoria collegata