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.
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.
- 1. A Lyapunov function is like…
- 2. Lyapunov's method needs the exact solution?
- 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 there is a with for all t.
- Asymptotically stable: stable, and for near 0.
- Exponentially stable: .
Lyapunov’s direct method
Find a continuously differentiable with and for . Then:
- implies stable;
- for implies asymptotically stable;
- if also as (radially unbounded), it’s globally asymptotically stable.
- 1. V̇ ≤ 0 alone proves…
- 2. Global asymptotic stability additionally needs V to be…
- 3. V̇ equals…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.LaSalle’s invariance principle
If on a compact invariant set, trajectories converge to the largest invariant subset of . For the damped pendulum with energy , . That’s zero on the whole axis, but the only invariant set there is the equilibrium, so .
Linear systems: the Lyapunov equation
For try . Then . Theorem: A is Hurwitz iff for every the equation
has a unique solution . It also gives a decay-rate certificate: with .
Regions of attraction
For a nonlinear system, use the quadratic V from the linearization. Any sublevel set on which (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.
- 1. For the damped pendulum, Ė = −bθ̇² is zero…
- 2. If A is Hurwitz, the solution P of AᵀP + PA = −I is…
- 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 , let . Choose so that on . Since V can’t increase, a trajectory starting there never reaches the sphere . ∎
Solving the Lyapunov equation
Vectorize: . The eigenvalues of the Kronecker sum are , which are nonzero for Hurwitz A, so the solution is unique. Explicitly, . ∎
Decay rate
. Grönwall then gives . ∎
Exercise 3.1: P for A = [[0, 1], [−1, −b]] with Q = I
Matching entries gives , , . For b = 0.5: .
- 1. The Kronecker-sum eigenvalues are…
- 2. P = ∫₀^∞ e^(Aᵀt) Q e^(At) dt is…
- 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 . A grid search finds the largest level such that inside , 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.
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
- A. M. Lyapunov (1892/1992). The General Problem of the Stability of Motion. Taylor & Francis translation.
- H. Khalil (2002). Nonlinear Systems, 3rd ed. Prentice Hall. Ch. 4, 8.
- J. P. LaSalle (1960). “Some extensions of Liapunov’s second method.” IRE Trans. Circuit Theory, 7(4).
- P. Parrilo (2000). Structured Semidefinite Programs and Semialgebraic Geometry Methods in Robustness and Optimization. PhD thesis, Caltech.
- A. Ames, X. Xu, J. Grizzle, P. Tabuada (2017). “Control barrier function based quadratic programs for safety critical systems.” IEEE TAC, 62(8).
- Y.-C. Chang, N. Roohi, S. Gao (2019). “Neural Lyapunov control.” NeurIPS.
- B. Wie (2008). Space Vehicle Dynamics and Control, 2nd ed. AIAA.
- M. Krstić, I. Kanellakopoulos, P. Kokotović (1995). Nonlinear and Adaptive Control Design. Wiley.