Foundations to Frontier
Tests
A. Mathematical Foundations › A9 Differential Equations and Dynamical Systems

Lyapunov Stability

Lyapunov's direct method proves stability without solving the equations: find an energy-like function V that is positive away from the equilibrium and never increases along trajectories. This topic gives the formal stability definitions, Lyapunov's theorems, LaSalle's invariance principle, the Lyapunov equation AᵀP + PA = −Q for linear systems with its guaranteed exponential decay rate, and how level sets of V certify regions of attraction for nonlinear systems. You will solve the Lyapunov equation, verify the decay bound, and compute a certified region of attraction for a damped pendulum.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

A ball in a bowl

Drop a marble into a bowl and it rolls around, but it always ends up at the bottom. You don’t need to predict its exact path to know this. Its height (energy) can only go down because of friction, and the bowl’s lowest point is the only place it can settle. Lyapunov’s idea is to find such a “height” function for any system. If it always goes down, the system must settle, no equations solved.

Lyapunov functions: proving stability without solving
V =
θ̇ ↑ · θ →V(t) along trajectoryt = 0 … 20 s
certified region V ≤ 9.328 (green) · start is outside the certificate · V(0) = 12.490 → V(20) = 6.18e-4
Orange shading marks states where V̇ ≥ 0. A Lyapunov function must decrease everywhere else, and any level set {V ≤ c} free of orange is invariant and flows to the origin. The energy has V̇ = −bθ̇² ≤ 0, zero along the whole θ axis, so it proves stability but needs LaSalle's principle for convergence. The quadratic V from the Lyapunov equation is strictly decreasing near the origin and certifies an ellipse; trajectories starting outside it may still converge, because the certificate is conservative.
Why engineers care

Proving that a flight controller, a walking robot or an adaptive learning controller is stable is often only possible with a Lyapunov function. Modern safe-robotics tools (control Lyapunov functions, control barrier functions, sum-of-squares certificates, learned neural Lyapunov functions) all build on this one idea.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A Lyapunov function is like…
  2. 2. Lyapunov's method needs the exact solution?
  3. 3. Friction makes the marble's energy…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Definitions (equilibrium at 0)

  • Stable: for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 with ∥x0∥<δ⇒∥x(t)∥<ε\lVert x_0\rVert < \delta\Rightarrow\lVert x(t)\rVert < \varepsilon for all t.
  • Asymptotically stable: stable, and x(t)→0x(t)\to0 for x0x_0 near 0.
  • Exponentially stable: ∥x(t)∥≤Me−αt∥x0∥\lVert x(t)\rVert\le Me^{-\alpha t}\lVert x_0\rVert.

Lyapunov’s direct method

Find a continuously differentiable VV with V(0)=0V(0) = 0 and V(x)>0V(x) > 0 for x≠0x\ne0. Then:

  • V˙=∇V⋅f≤0\dot V = \nabla V\cdot f\le0 implies stable;
  • V˙<0\dot V < 0 for x≠0x\ne0 implies asymptotically stable;
  • if also V→∞V\to\infty as ∥x∥→∞\lVert x\rVert\to\infty (radially unbounded), it’s globally asymptotically stable.
📝 Quick check (Level 1)
0/3 answered
  1. 1. V̇ ≤ 0 alone proves…
  2. 2. Global asymptotic stability additionally needs V to be…
  3. 3. V̇ equals…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

LaSalle’s invariance principle

If V˙≤0\dot V\le0 on a compact invariant set, trajectories converge to the largest invariant subset of {V˙=0}\{\dot V = 0\}. For the damped pendulum with energy E=12θ˙2+1−cos⁡θE = \frac12\dot\theta^2 + 1 - \cos\theta, E˙=−bθ˙2\dot E = -b\dot\theta^2. That’s zero on the whole θ\theta axis, but the only invariant set there is the equilibrium, so θ→0\theta\to0.

Linear systems: the Lyapunov equation

For x˙=Ax\dot x = Ax try V=x⊤PxV = x^\top Px. Then V˙=x⊤(A⊤P+PA)x\dot V = x^\top(A^\top P + PA)x. Theorem: A is Hurwitz iff for every Q≻0Q\succ0 the equation

A⊤P+PA=−QA^\top P + PA = -Q

has a unique solution P≻0P\succ0. It also gives a decay-rate certificate: V(t)≤V(0)e−αtV(t)\le V(0)e^{-\alpha t} with α=λmin⁡(Q)/λmax⁡(P)\alpha = \lambda_{\min}(Q)/\lambda_{\max}(P).

Regions of attraction

For a nonlinear system, use the quadratic V from the linearization. Any sublevel set Ωc={V≤c}\Omega_c = \{V\le c\} on which V˙<0\dot V < 0 (except at 0) is positively invariant and inside the basin. The largest such c gives a certified region of attraction. It’s conservative but rigorous.

🐍 Exercise 1: the Lyapunov equation and energy
Solve AᵀP + PA = −Q with a Kronecker-product linear system. Check that P is positive definite exactly when A is Hurwitz. Verify the decay bound V(t) ≤ V(0)e^(−αt), and show that pendulum energy never increases.
📝 Quick check (Level 2)
0/3 answered
  1. 1. For the damped pendulum, Ė = −bθ̇² is zero…
  2. 2. If A is Hurwitz, the solution P of AᵀP + PA = −I is…
  3. 3. A certified region of attraction is…

Level 3: Advanced

★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.

Proof sketch: V̇ ≤ 0 ⇒ stable

Given ε\varepsilon, let m=min⁡∥x∥=εV>0m = \min_{\lVert x\rVert = \varepsilon}V > 0. Choose δ\delta so that V<mV < m on ∥x∥<δ\lVert x\rVert < \delta. Since V can’t increase, a trajectory starting there never reaches the sphere ∥x∥=ε\lVert x\rVert = \varepsilon. ∎

Solving the Lyapunov equation

Vectorize: (I⊗A⊤+A⊤⊗I)vec⁡(P)=−vec⁡(Q)(I\otimes A^\top + A^\top\otimes I)\operatorname{vec}(P) = -\operatorname{vec}(Q). The eigenvalues of the Kronecker sum are λi+λj\lambda_i + \lambda_j, which are nonzero for Hurwitz A, so the solution is unique. Explicitly, P=∫0∞eA⊤tQeAtdt≻0P = \int_0^\infty e^{A^\top t}Qe^{At}dt\succ0. ∎

Decay rate

V˙=−x⊤Qx≤−λmin⁡(Q)∥x∥2≤−λmin⁡(Q)λmax⁡(P)V\dot V = -x^\top Qx\le-\lambda_{\min}(Q)\lVert x\rVert^2\le-\frac{\lambda_{\min}(Q)}{\lambda_{\max}(P)}V. Grönwall then gives V(t)≤V(0)e−αtV(t)\le V(0)e^{-\alpha t}. ∎

Exercise 3.1: P for A = [[0, 1], [−1, −b]] with Q = I

Matching entries gives q=12q = \frac12, r=1/br = 1/b, p=r+bqp = r + bq. For b = 0.5: P=(2.250.50.52)P = \begin{pmatrix}2.25 & 0.5\\0.5 & 2\end{pmatrix}.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The Kronecker-sum eigenvalues are…
  2. 2. P = ∫₀^∞ e^(Aᵀt) Q e^(At) dt is…
  3. 3. The decay rate certificate is α =

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Certifying a region of attraction

For the damped pendulum (b = 0.5) the linearization gives P=(2.250.50.52)P = \begin{pmatrix}2.25 & 0.5\\0.5 & 2\end{pmatrix}. A grid search finds the largest level c≈9.3c\approx9.3 such that V˙<0\dot V < 0 inside {V≤c}\{V\le c\}, apart from the origin. Every sampled initial state in that ellipse converges. A state just outside, (0, 2.6), also converges: the certificate is sufficient, not necessary. Production tools search for higher-degree polynomial V with sum-of-squares programming (Parrilo, 2000), or learn neural Lyapunov functions and verify them (Chang, Roohi and Gao, 2019). That’s how safe operating envelopes are certified for robots and aircraft.

🐍 Exercise 2 (research): certified region of attraction
Build a quadratic Lyapunov function from the pendulum's linearization. Find the largest sublevel set where V̇ < 0 by grid search, confirm that sampled states inside it converge, and show the certificate is conservative.

Lyapunov methods in AI, robotics and aerospace

  • Nonlinear and adaptive control: backstepping and adaptive controllers are designed by making V̇ negative (Khalil, 2002; Krstić et al., 1995).
  • Safety filters: control Lyapunov and control barrier function QPs enforce stability and safety on legged robots, drones and cars (Ames et al., 2017).
  • Certified learning: neural Lyapunov functions and SOS certificates for learned controllers.
  • Spacecraft attitude: quaternion-feedback controllers are proven globally stable with Lyapunov functions (Wie, 2008).

References

  1. A. M. Lyapunov (1892/1992). The General Problem of the Stability of Motion. Taylor & Francis translation.
  2. H. Khalil (2002). Nonlinear Systems, 3rd ed. Prentice Hall. Ch. 4, 8.
  3. J. P. LaSalle (1960). “Some extensions of Liapunov’s second method.” IRE Trans. Circuit Theory, 7(4).
  4. P. Parrilo (2000). Structured Semidefinite Programs and Semialgebraic Geometry Methods in Robustness and Optimization. PhD thesis, Caltech.
  5. A. Ames, X. Xu, J. Grizzle, P. Tabuada (2017). “Control barrier function based quadratic programs for safety critical systems.” IEEE TAC, 62(8).
  6. Y.-C. Chang, N. Roohi, S. Gao (2019). “Neural Lyapunov control.” NeurIPS.
  7. B. Wie (2008). Space Vehicle Dynamics and Control, 2nd ed. AIAA.
  8. M. Krstić, I. Kanellakopoulos, P. Kokotović (1995). Nonlinear and Adaptive Control Design. Wiley.