Unit 9, lesson 51

Lyapunov Functions, Energy, and Invariance

How a positive definite Lyapunov function with a nonpositive orbital derivative proves Lyapunov stability, and how LaSalle's invariance principle and invariant sets give convergence when that derivative is only semidefinite.

  • Video 51
  • Phase Planes and Stability

A marble rolling in a bowl with friction ends up at the bottom, and we know this without solving any equation of motion, because its energy can only go down. Can the same reasoning prove that an equilibrium of a nonlinear system is stable, even where linearization says nothing or the question is about distant starts? This lesson develops that idea into Lyapunov’s method, then shows how LaSalle’s invariance principle handles the common case in which the energy stops decreasing for an instant while the motion goes on.

Key terms

Positive definite function

Definition Throughout this lesson tt is the independent variable, primes denote derivatives with respect to tt, X′=F(X)X' = F(X) is an autonomous system with FF continuously differentiable on an open set D⊆RnD \subseteq \mathbb{R}^n, and the equilibrium under study is the origin, so F(0)=0F(0) = 0. Any other equilibrium X∗X_* can be moved there with the shift X=X∗+hX = X_* + h. A function VV defined on a neighborhood U⊆DU \subseteq D of 00 is positive definite on UU if V(0)=0V(0) = 0 and V(X)>0V(X) > 0 for every X∈UX \in U with X≠0X \ne 0. It is positive semidefinite on UU if V(0)=0V(0) = 0 and only V(X)≥0V(X) \ge 0 holds there, and it is negative definite or negative semidefinite if −V-V is positive definite or positive semidefinite. A function VV on all of Rn\mathbb{R}^n is radially unbounded if V(X)→∞V(X) \to \infty as ∥X∥→∞\lVert X \rVert \to \infty, where ∥⋅∥\lVert \cdot \rVert is the Euclidean length.

In plain words A positive definite function measures how far the state is from the equilibrium in some chosen way. It is zero at the equilibrium and positive at every other nearby state, so near the equilibrium its graph has its lowest point there, like the bottom of a bowl.

Example The function x2+xy+y2=(x+12y)2+34y2x^2 + xy + y^2 = (x + \tfrac{1}{2}y)^2 + \tfrac{3}{4}y^2 is positive definite on the plane, although it is not the squared distance. The function x2x^2 is only positive semidefinite on the plane, since it vanishes on the whole yy-axis. The pendulum energy 1−cos⁡x+12y21 - \cos x + \tfrac{1}{2}y^2 is positive definite on the strip ∣x∣<2π\lvert x \rvert < 2\pi but not on the plane, because it is also zero at (2π,0)(2\pi, 0). The energy

V=12y2+12x2+14x4V = \tfrac{1}{2}y^2 + \tfrac{1}{2}x^2 + \tfrac{1}{4}x^4

is positive definite on all of R2\mathbb{R}^2, since its terms are nonnegative and all of them vanish only at the origin. It is radially unbounded, because V≥12(x2+y2)V \ge \tfrac{1}{2}(x^2 + y^2).

Orbital derivative

Definition For a continuously differentiable function VV on UU, the orbital derivative of VV along the system X′=F(X)X' = F(X) is the function

V˙(X)=∇V(X)⋅F(X)=∑i=1n∂V∂xi Fi,\begin{aligned} \dot V(X) &= \nabla V(X) \cdot F(X) \\[0.4em] &= \sum_{i=1}^{n} \frac{\partial V}{\partial x_i}\,F_i, \end{aligned}

where the dot marks a rate of change with respect to tt. By the chain rule, every solution X(t)X(t) that stays in UU satisfies

ddtV(X(t))=V˙(X(t)).\frac{d}{dt}V(X(t)) = \dot V(X(t)).

So V˙\dot V gives, at each state, the rate at which VV changes along the trajectory through that state, and it is computed from FF alone, without solving the system. It is a function of the state, not of time, and it is zero at every equilibrium.

In plain words Stand at a state, look at the arrow of the field there, and ask how fast VV changes when you move along that arrow. A negative answer means the solution through that state is moving downhill in VV at that moment.

Example For a damped nonlinear oscillator with displacement xx and velocity yy,

x′=y,y′=−x−x3−y,\begin{gathered} x' = y, \\[0.4em] y' = -x - x^3 - y, \end{gathered}

and the energy VV above, the gradient is ∇V=(x+x3,y)T\nabla V = (x + x^3, y)^{T}, so

V˙=(x+x3) y+y(−x−x3−y)=−y2.\begin{aligned} \dot V &= (x + x^3)\,y \\ &\quad + y(-x - x^3 - y) \\[0.4em] &= -y^2. \end{aligned}

The spring terms cancel and only the damping term remains. At the state (1,1)(1, 1), for instance, ∇V=(2,1)T\nabla V = (2, 1)^{T} and F(1,1)=(1,−3)TF(1, 1) = (1, -3)^{T}, so V˙(1,1)=2−3=−1\dot V(1, 1) = 2 - 3 = -1, which agrees with −y2-y^2.

Lyapunov function and Lyapunov stability

Definition A Lyapunov function for the equilibrium 00 is a continuously differentiable function VV that is positive definite on a neighborhood UU of 00 and whose orbital derivative satisfies V˙(X)≤0\dot V(X) \le 0 for every X∈UX \in U. Lyapunov’s stability theorem says that if such a function exists, then 00 is Lyapunov stable. That is, for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that every solution with ∥X(0)∥<δ\lVert X(0) \rVert < \delta exists for all t≥0t \ge 0 and satisfies ∥X(t)∥<ε\lVert X(t) \rVert < \varepsilon for all t≥0t \ge 0. If in addition V˙(X)<0\dot V(X) < 0 for every X∈UX \in U with X≠0X \ne 0, then 00 is locally asymptotically stable, and VV is called a strict Lyapunov function. The proof of stability traps the solution inside a level set of VV. Shrink ε\varepsilon so that the closed ball of radius ε\varepsilon lies in UU, let m>0m > 0 be the smallest value of VV on the sphere ∥X∥=ε\lVert X \rVert = \varepsilon, and choose δ≤ε\delta \le \varepsilon with V<mV < m on the ball of radius δ\delta. Since VV cannot increase along a solution, a solution that starts in the small ball never reaches the sphere, and staying inside a closed ball keeps it defined for all t≥0t \ge 0.

In plain words If a quantity that measures distance from the equilibrium can never increase, a state that starts on a low enough contour is trapped inside it. The function does not have to be the physical energy or the squared distance. Any function with these two properties will do.

Example For the damped oscillator, V=12y2+12x2+14x4V = \tfrac{1}{2}y^2 + \tfrac{1}{2}x^2 + \tfrac{1}{4}x^4 is the kinetic energy plus the potential energy of the spring, since 12x2+14x4\tfrac{1}{2}x^2 + \tfrac{1}{4}x^4 is the integral of the restoring force x+x3x + x^3. It is positive definite with V˙=−y2≤0\dot V = -y^2 \le 0, so it is a Lyapunov function and the origin is stable. The bound can be made explicit. Since ∥X∥2≤2V(X)\lVert X \rVert^2 \le 2V(X), and since x4≤x2x^4 \le x^2 when ∥X∥≤1\lVert X \rVert \le 1,

∥X(t)∥2≤2V(X(0))≤32∥X(0)∥2\begin{aligned} \lVert X(t) \rVert^2 &\le 2V(X(0)) \\[0.4em] &\le \tfrac{3}{2}\lVert X(0) \rVert^2 \end{aligned}

for all t≥0t \ge 0 whenever ∥X(0)∥≤1\lVert X(0) \rVert \le 1. So δ=min⁡(1,ε2/3)\delta = \min(1, \varepsilon\sqrt{2/3}) works. The derivative −y2-y^2 is zero on the whole xx-axis, not only at the origin, so VV is not a strict Lyapunov function and the theorem by itself does not give asymptotic stability.

Negative semidefinite derivative

Definition The orbital derivative of VV is negative semidefinite on UU if V˙(X)≤0\dot V(X) \le 0 for all X∈UX \in U, and negative definite if in addition V˙(X)<0\dot V(X) < 0 for all X∈UX \in U with X≠0X \ne 0. A semidefinite derivative that also vanishes at states other than the origin still gives Lyapunov stability when VV is positive definite, but it does not by itself give asymptotic stability. A solution may pass through the zero set {X∈U:V˙(X)=0}\{X \in U : \dot V(X) = 0\} and keep losing VV afterward, or it may stay in that set forever with VV constant. Which of these happens is decided by the invariant sets inside the zero set.

In plain words A derivative that is only less than or equal to zero allows pauses in the decrease. A pause that lasts one instant is harmless. A pause that lasts forever can keep the state away from the equilibrium for good.

Example For the damped oscillator, V˙=−y2\dot V = -y^2 vanishes on the line y=0y = 0. These states are the turning points, where the mass has zero velocity for an instant, and the energy loss stops only for that instant. For the undamped oscillator x′=yx' = y, y′=−xy' = -x with V=12(x2+y2)V = \tfrac{1}{2}(x^2 + y^2), the derivative is V˙=xy+y(−x)=0\dot V = xy + y(-x) = 0 everywhere. The solution x=cos⁡tx = \cos t, y=−sin⁡ty = -\sin t starts at (1,0)(1, 0) and keeps V=12V = \tfrac{1}{2} forever, so it never approaches the origin. There the origin is stable, with δ=ε\delta = \varepsilon, but not asymptotically stable. Both derivatives are negative semidefinite, and the conclusions differ.

Invariant set

Definition A set M⊆DM \subseteq D is invariant for X′=F(X)X' = F(X) if every solution that starts in MM stays in MM for all tt in its interval of existence, forward and backward in time. It is positively invariant if every solution that starts in MM stays in MM for all t≥0t \ge 0 in its interval of existence. Equilibria, whole trajectories and unions of trajectories are invariant. If VV is continuously differentiable on DD with V˙≤0\dot V \le 0 there, every sublevel set {X∈D:V(X)≤c}\{X \in D : V(X) \le c\} is positively invariant, because VV cannot increase along a solution. The largest invariant subset of a set EE is the union of all invariant sets contained in EE. It consists of the states whose entire trajectory lies in EE.

In plain words An invariant set is made of whole trajectories, so a solution in it has always been in it and always will be. To find the largest invariant part of a set, ask which solutions can stay in the set forever, not which ones merely touch it.

Example For the damped oscillator the line E={y=0}E = \{y = 0\} is not invariant. At (1,0)(1, 0) the field is F(1,0)=(0,−2)TF(1, 0) = (0, -2)^{T}, which points off the line. A solution that stays in EE must have y(t)=0y(t) = 0 for all tt, hence y′(t)=0y'(t) = 0, and the second equation then forces x+x3=x(1+x2)=0x + x^3 = x(1 + x^2) = 0. For real xx the factor 1+x21 + x^2 is positive, so x=0x = 0. The largest invariant subset of EE is therefore the origin alone. In the predator-prey model x′=x(2−y)x' = x(2 - y), y′=y(x−1)y' = y(x - 1), the open first quadrant and each positive half axis are invariant sets.

LaSalle’s invariance principle

Definition Let Ω⊆D\Omega \subseteq D be compact and positively invariant, and let VV be continuously differentiable on DD with V˙(X)≤0\dot V(X) \le 0 for every X∈ΩX \in \Omega. Let E={X∈Ω:V˙(X)=0}E = \{X \in \Omega : \dot V(X) = 0\}, and let MM be the largest invariant subset of EE. Then every solution that starts in Ω\Omega exists for all t≥0t \ge 0, and its distance to MM tends to 00 as t→∞t \to \infty. Here VV need not be positive definite. Two consequences are used most. If VV is a Lyapunov function on UU and no solution other than X(t)=0X(t) = 0 stays in {X∈U:V˙(X)=0}\{X \in U : \dot V(X) = 0\} for all t≥0t \ge 0, then 00 is locally asymptotically stable. If in addition U=D=RnU = D = \mathbb{R}^n and VV is radially unbounded, then 00 is globally asymptotically stable.

In plain words A trapped solution must end up near motions that keep VV constant forever. If the only such motion is resting at the equilibrium, every trapped solution goes there, even though VV may stop decreasing for an instant along the way.

Example For the damped oscillator take Ω={V≤c}\Omega = \{V \le c\} for any c>0c > 0. This set is closed, it is bounded because V≥12∥X∥2V \ge \tfrac{1}{2}\lVert X \rVert^2, and it is positively invariant because V˙=−y2≤0\dot V = -y^2 \le 0. Its zero set is E=Ω∩{y=0}E = \Omega \cap \{y = 0\}, and as shown above the largest invariant subset of EE is M={0}M = \{0\}. So every solution that starts in Ω\Omega tends to the origin. Every state lies in such a set for a large enough cc, and the origin is stable by the Lyapunov function, so the origin is globally asymptotically stable. Linearization gives only the local part of this result, through the eigenvalues (−1±i3)/2(-1 \pm i\sqrt{3})/2 of the Jacobian at the origin. For the undamped oscillator the zero set is all of Ω\Omega, which is invariant, so the principle gives no information, in agreement with the circles traced there.

Check yourself

  1. Decide whether each of the functions 2x2−2xy+y22x^2 - 2xy + y^2, (x+y)2(x + y)^2 and x2+y2−y3x^2 + y^2 - y^3 is positive definite on some neighborhood of the origin in the plane, and whether it is positive definite on the whole plane.
Show the answer

The first function equals x2+(x−y)2x^2 + (x - y)^2, which is zero only when x=0x = 0 and x=yx = y, so it is positive definite on the whole plane. The second is zero on the entire line y=−xy = -x, so it is positive semidefinite but not positive definite on any neighborhood of the origin. The third can be written x2+y2(1−y)x^2 + y^2(1 - y). When y<1y < 1 both terms are nonnegative, and they vanish together only at the origin, so it is positive definite on the half plane y<1y < 1 and in particular on the open disk of radius 11. It is not positive definite on the whole plane, since its value at (0,2)(0, 2) is 4−8=−44 - 8 = -4.

  1. Use V=x2+y2V = x^2 + y^2 to show that the origin of x′=−y−x3x' = -y - x^3, y′=x−y3y' = x - y^3 is asymptotically stable. Why can linearization not settle this?
Show the answer

The orbital derivative is

V˙=2x(−y−x3)+2y(x−y3)=−2x4−2y4,\begin{aligned} \dot V &= 2x(-y - x^3) \\ &\quad + 2y(x - y^3) \\[0.4em] &= -2x^4 - 2y^4, \end{aligned}

which is negative at every state other than the origin. So VV is a strict Lyapunov function, and the origin is locally asymptotically stable. Because VV is also radially unbounded and V˙<0\dot V < 0 off the origin on the whole plane, every disk {V≤c}\{V \le c\} is compact and positively invariant with zero set {0}\{0\}, and LaSalle’s principle shows that the origin is globally asymptotically stable. The Jacobian at the origin has rows (0,−1)(0, -1) and (1,0)(1, 0) and eigenvalues ±i\pm i, so the equilibrium is nonhyperbolic and its linearization, a center, cannot decide stability.

  1. For x′=yx' = y, y′=−x−y3y' = -x - y^3, the energy V=12(x2+y2)V = \tfrac{1}{2}(x^2 + y^2) has V˙=−y4\dot V = -y^4. A classmate says that the origin is only stable, since V˙\dot V is zero on the whole xx-axis. Decide whether the origin is asymptotically stable.
Show the answer

The derivative is V˙=xy+y(−x−y3)=−y4≤0\dot V = xy + y(-x - y^3) = -y^4 \le 0, so VV is a Lyapunov function and the origin is stable. That is where the classmate stopped. Now apply LaSalle’s principle on a disk Ω={V≤c}\Omega = \{V \le c\}, which is compact and positively invariant. Its zero set is E=Ω∩{y=0}E = \Omega \cap \{y = 0\}. A solution that stays in EE has y(t)=0y(t) = 0 for all tt, so y′(t)=0y'(t) = 0, and the second equation gives −x=0-x = 0. So the largest invariant subset of EE is {0}\{0\}, and every solution that starts in Ω\Omega tends to the origin. Since every state lies in such a disk, the origin is globally asymptotically stable. Solutions only cross the xx-axis, at turning points, so the zeros of V˙\dot V there do not stop the convergence. Linearization would not have helped either, because the Jacobian at the origin has eigenvalues ±i\pm i.

How this lesson connects