TL;DR
Lyapunov stability asks whether a system that starts near an equilibrium stays near it, and whether it returns. You do not have to solve the equations to answer this. You look for a function of the state that acts like energy: it is positive everywhere except at the equilibrium, and it never increases along any trajectory. If you can find such a function, the state is pushed toward the bottom of the energy landscape, and the equilibrium is stable.
Where you'll see it: in checking that a controller really brings a robot arm, aircraft or power grid back to its set point, in proving that a learning algorithm's dynamics converge, and in the stability proofs behind model predictive control and switched systems.
Intuition
A ball in a bowl
Put a ball at the bottom of a smooth bowl. Nudge it and it rolls back to the bottom. Put the same ball on top of a hill and a small nudge sends it away. Nobody needs the exact path of the ball to tell these apart. The bowl's height is enough: the ball always goes downhill, and the bottom is the lowest point.
Lyapunov's idea is to find a height function for a dynamical system. If the height is always decreasing along the motion, the state must settle toward the lowest point. The height function is called a Lyapunov function. It plays the role of energy, but it does not have to be the physical energy. It only has to be positive away from equilibrium and never increase.
The plot shows the simplest case, a bowl with its lowest point at . A state anywhere on the curve has positive height, and the ball's motion goes from high to low.
- V(x) = x^2/2
Why the idea is needed
Most nonlinear systems cannot be solved in closed form. The pendulum, the aircraft's attitude and the arm's joint dynamics have no simple formula for their trajectory. Linearizing them around the equilibrium gives a useful answer for small motions, but it says nothing about how large a push the system can take. Lyapunov's method answers that question directly from the equations, without integrating them, and it also works when the system is nonlinear, switching or time-varying.
The math
Equilibria and the two kinds of stability
Consider the autonomous system , where is the state vector and the dot means the time derivative. An equilibrium satisfies , so a state that starts there stays there.
The equilibrium is stable if for every radius there is a radius such that a trajectory starting within of stays within of it for all later times. It is asymptotically stable if it is stable and, in addition, every trajectory starting close enough converges to .
Stable means the system does not drift away after a small push. Asymptotically stable adds that it comes back. A pendulum with friction is asymptotically stable at the bottom. An ideal frictionless pendulum is stable but not asymptotically stable, because it keeps swinging with the same amplitude forever.
The direct method
Let be a continuously differentiable function. Along a trajectory, the chain rule gives its rate of change:
Let be an equilibrium, after a change of coordinates if needed. A function is a Lyapunov function for it if:
- and for every near zero (positive definite), and
- for every near zero (negative definite).
If condition 2 holds with instead, the equilibrium is stable. If strictly, it is asymptotically stable. The result is Lyapunov's direct method: the proof never needs the trajectory itself.
The reason this works is that is a height that is positive and decreasing along the motion. A trajectory starting at height can never be higher than , so it stays inside a sublevel set . For a positive definite those sets shrink to the origin as shrinks, which is exactly the statement of stability.
Two refinements matter in practice:
- Global stability. If grows without bound as (radially unbounded) and everywhere except at the origin, then every trajectory converges to the origin, not only those that start nearby.
- LaSalle's invariance principle. If but is zero on some set, the trajectory must end up in the largest invariant set inside that zero set. If that set is just the origin, the equilibrium is asymptotically stable even though is not strictly negative.
The linear case
For , try a quadratic with symmetric and positive definite. Then
Choose a positive definite and solve the Lyapunov equation . If a positive definite exists, the origin is asymptotically stable. The existence of is equivalent to all eigenvalues of having negative real part, which links this method to eigenvalues and to the Linear Dynamical System lesson. For linear systems the eigenvalue test is simpler, but the Lyapunov equation generalises to systems where no such test exists.
Worked examples
Take with equilibrium . Try .
- Positive definite: , and for .
- Derivative along the motion: .
- Negative definite: for every .
- Conclusion: the origin is asymptotically stable. The bound keeps below , so a start at (where ) stays within and goes to zero.
Interpretation: the choice is the energy of a spring, and the damping term removes energy faster the farther is from zero. We did not solve the equation, which here has the closed form , so the proof is shorter than the solution.
The pendulum with friction is , with . Write it as a first-order system with and :
Take the energy as the Lyapunov candidate: kinetic energy plus potential energy, measured from the bottom, .
- Positive definite: near the origin, , so is positive except at .
- Compute and .
- Derivative: .
- Numerical check at with : , which equals .
- The derivative is only negative semidefinite. It is zero whenever , including at . Here LaSalle's principle applies. A trajectory that stays on must have , so is or , and is the far-away upright position, not near the origin. The only invariant subset near the origin is the origin itself, so the equilibrium is asymptotically stable.
Interpretation: friction drains the pendulum's energy, and the energy measures what is left. The derivative is zero only when the pendulum is momentarily still, and the position where it is still must also be the bottom, which is the only place it can stay.
Tradeoffs and failure modes
| Situation | What goes wrong | Better choice |
|---|---|---|
| No Lyapunov function is found | Failing to find proves nothing about stability. The method gives only sufficient conditions | Try a physical energy, a quadratic form for a linearized model, or a sum-of-squares search that looks for numerically |
| is only semidefinite | The strict test fails even when the system is stable | LaSalle's invariance principle |
| Stability is needed only near the equilibrium | The estimate of the region of attraction, the set of starts that converge, may be small | Use a larger candidate or a sum-of-squares region estimate |
| Several modes that switch between each other | Every mode can be stable on its own while a switching pattern makes the whole system unstable, so a Lyapunov function must decrease in every mode | Common Lyapunov function, or a piecewise one with a dwell-time condition |
| Discrete-time systems | The rate of change is replaced by the difference | Same idea with the difference in place of the derivative |
| The state is linear | The eigenvalue test is exact and simpler | Use the eigenvalues, and reserve the Lyapunov equation for when you also need a bound or a robust margin |
History
Aleksandr Mikhailovich Lyapunov, a Russian mathematician working on the stability of motion, published his general method in his 1892 doctoral dissertation, The General Problem of the Stability of Motion. The problem came from celestial mechanics and the stability of mechanical systems, where one needs to know whether a motion settles or runs away without solving its equations. Lyapunov's approach was largely overlooked in the West for decades. It became central to control theory in the middle of the twentieth century, when engineers adopted it for nonlinear and switched systems, and the invariance principle of LaSalle followed in the 1960s. Its lasting appeal is that a single inequality on an energy-like function can prove a result about a system whose trajectories cannot be written down.
Check yourself
QuestionState the two conditions a function V must satisfy to show that an equilibrium is asymptotically stable.Show answer
must be positive definite near the equilibrium, with at the equilibrium and elsewhere nearby. Its derivative along trajectories, , must be strictly negative for every nonzero state near the equilibrium. A weaker condition gives stability without convergence.
QuestionFor and , compute and state what it proves.Show answer
. For every this is negative, and is positive definite, so the origin is asymptotically stable. The true solution confirms it, but the proof used only the sign of .
QuestionWhy does the existence of a Lyapunov function prove stability even though the trajectory is never computed?Show answer
Along any trajectory can only decrease, so the trajectory cannot leave a sublevel set it starts inside. Because is positive definite, those sublevel sets shrink to the equilibrium as shrinks. Stability is the statement that small starts stay in small sets, and the monotone decrease of gives that directly.
QuestionA linear system has . Is the origin asymptotically stable? Answer using the trace and determinant.Show answer
For a matrix, the eigenvalues have negative real parts exactly when the trace is negative and the determinant is positive. The trace is and the determinant is . Both conditions hold, so the origin is asymptotically stable, and a positive definite solves the Lyapunov equation for any positive definite .