Lyapunov Functions and Stability
Consider a nonlinear system with an equilibrium. Its linearization may have a purely imaginary eigenvalue. Or it may be too complicated to solve explicitly. Hartman-Grobman and Hyperbolicity tells us that hyperbolic equilibria behave like their linearizations. But it says nothing when hyperbolicity fails. Even when it holds, it gives no quantitative picture. It cannot tell us how far trajectories stray before returning. How, then, can we certify that an equilibrium is stable? Can we even show asymptotic stability without integrating the equations at all? Aleksandr Lyapunov's answer, developed in his 1892 doctoral thesis, is to mimic physical energy. Energy behaves in a specific way in a dissipative system. Suppose a scalar function decreases along every trajectory. Suppose it is otherwise positive away from equilibrium. Then the state is trapped in shrinking sublevel sets. It behaves like a ball rolling down a bowl. It must converge to the bottom. This idea converts a question about a system of differential equations. It becomes instead a question about the sign of a single derivative. It is an algebraic computation rather than an integration. The method's power is its universality. It applies to any dimension. It requires no closed-form solution. And it works precisely in the borderline cases. These include centers, saddle-node bifurcations, and systems with zero eigenvalues. In these cases, the Linearization and the Jacobian approach is silent. Lyapunov's method is the single most important tool for proving stability of nonlinear equilibria. This holds especially in the absence of an explicit flow. This article builds the formal definition of a Lyapunov function. It proves the stability, asymptotic stability, and instability theorems with full rigor. It shows how to construct candidate functions in practice. These include quadratic forms, energy functions, and variable-gradient methods. It closes by connecting Lyapunov theory to later topics. These are the conservative systems and limit-cycle analyses that follow in the study of nonlinear dynamics.
- A Lyapunov function is a scalar "energy" that is positive away from an equilibrium and non-increasing along trajectories.
- If near the equilibrium, the equilibrium is stable; if (strictly, away from equilibrium), it is asymptotically stable.
- No need to solve the ODE: only algebraic sign-checking of and its derivative along the vector field is required.
- The method handles non-hyperbolic cases (e.g., centers) where linearization is inconclusive.
- Construction is an art: quadratic forms, physical energy, and the variable-gradient method are standard techniques.
- Key idea: trap the trajectory in shrinking sublevel sets of a scalar function whose value can only fall.
Where this lives today
Lyapunov functions are the backbone of modern control theory: feedback controllers for robots, aircraft, and chemical plants are routinely designed by first positing a candidate (often a quadratic cost or energy function) and choosing the control law to force , a technique called Lyapunov redesign or control-Lyapunov-function synthesis. In electrical engineering, stability of power grids and phase-locked loops is certified using energy-like Lyapunov functions built from the physical power and reactive-power structure of the network. In ecology and epidemiology, Lyapunov functions (often of the form ) prove global stability of coexistence equilibria in Lotka–Volterra models and disease-free equilibria in SIR-type models. In numerical analysis and machine learning, Lyapunov-style arguments underlie convergence proofs for gradient descent and its variants, where a decreasing "potential function" (loss, or a regularized surrogate) plays exactly the role of . In cryptography and distributed computing, similar potential-function arguments certify convergence of consensus and gossip protocols. Within pure dynamics, the same idea reappears as the foundation for Conservative Systems and the Pendulum, where mechanical energy is itself a (non-strict) Lyapunov function explaining the neutral stability of a center, and for Limit Cycles and Closed Orbits, where Lyapunov-type arguments (Bendixson–Dulac and Poincaré–Bendixson reasoning) are used to rule out or trap periodic orbits.
Ask the tutor: Can you show me how to build a Lyapunov function step-by-step for a specific nonlinear system I'm working on?
Let be an autonomous system with continuously differentiable (or at least locally Lipschitz) on an open set containing the origin, and suppose , so is an equilibrium. Let be continuously differentiable. Define the orbital derivative (derivative of along trajectories) by
This is exactly evaluated along any solution of the system, computed without solving the system, since by the chain rule . We say is a Lyapunov function for the equilibrium on a neighborhood of the origin if: 1. Positive definiteness: and for all ; 2. Negative semidefiniteness of the orbital derivative: for all . If in addition for all , is called a strict Lyapunov function, and is called negative definite on .
Intuition
Picture as a bowl-shaped landscape sitting over the phase plane, with its unique minimum of value located exactly at the equilibrium. The condition says that as time moves forward, the state point can only slide to equal or lower "elevation" on this landscape — it can never climb. Since the level sets for small are closed curves shrinking down around the origin (this is a consequence of positive definiteness and continuity), a trajectory that starts inside such a level curve is trapped inside it forever: it cannot escape because escaping would require crossing to higher . This already gives stability: trajectories starting close to equilibrium stay close, forever, because they are confined to shrinking nested "energy shells." If is strictly negative away from the origin, the value of must keep decreasing — it cannot merely level off — and this extra pressure forces the trajectory to be squeezed all the way down to the unique minimum, giving asymptotic stability. No formula for was ever needed; only the sign of a dot product. The classical example is a damped mechanical oscillator, where is literal mechanical energy (kinetic plus potential): friction makes , and the energy bowl visibly funnels every nearby trajectory down to rest. This physical picture is why Lyapunov's method is often called the "energy method," even for systems, such as chemical reaction networks or population models, that carry no literal energy.
Let be open with , let be locally Lipschitz with , and consider . Let be an open neighborhood of and with .
(a) Stability. If is positive definite on (i.e. for ) and for all , then is a stable equilibrium.
(b) Asymptotic stability. If in addition for all (strict Lyapunov function), then is asymptotically stable.
(c) Instability (Chetaev-type). Suppose instead there is a sequence with for all , and for every with . Then is unstable.
We use the technique of trapping trajectories in sublevel sets of , justified by continuity and by existence-uniqueness of solutions (Picard–Lindelöf, valid since is locally Lipschitz).
Setup. Since is open and contains , choose small enough that the closed ball . All balls below are understood to be intersected with and to lie inside .
(a) Stability. Fix . We must produce such that implies for all for which the solution exists (and we will see existence extends to all ). Let be the sphere of radius . This set is compact (closed and bounded in ) and does not contain , so by positive definiteness is strictly positive and continuous on ; by the extreme value theorem,
By continuity of and , there exists such that
Now let be the solution with , defined on its maximal interval of existence . Define
Then is differentiable wherever is defined, with by hypothesis, as long as remains in . Hence is non-increasing while the trajectory stays in , so
We claim for all . Suppose not: let be the first time (if any) with , i.e., . By continuity of , the trajectory remains in on , so the inequality derived above applies at . But forces by definition of . This contradicts . Hence no such exists, and for all . Since the trajectory remains in the compact set on its entire interval of existence, the standard extension theorem for ODEs (a solution can be continued as long as it stays in a compact subset of the domain of ) guarantees . Thus for all , proving stability.
(b) Asymptotic stability. By part (a), is stable, so fix and let be as constructed above; every trajectory starting in remains in for all . We must show additionally that as for such trajectories. Since on , the function is strictly decreasing as long as , and it is bounded below by (positive definiteness). A monotone bounded function has a limit, so
for some constant . We claim . Suppose for contradiction . Since is decreasing to , we have for all . Let . This set is closed (as the intersection of the closed ball and the closed sublevel-complement set , using continuity of ) and bounded, hence compact. Moreover since . Since is continuous and strictly negative on the compact set (as ), it attains a maximum on :
Since for all (because stays in and ), we get for all . Integrating,
contradicting for all . This contradiction shows , i.e., . Finally, we upgrade to . Suppose not: then there is and a sequence with . Since also , by compactness of the annulus and positive definiteness of on it, . Then for all , contradicting . Hence , and asymptotic stability is proved.
(c) Instability. We argue by contradiction, following Chetaev's argument. Suppose were stable. Fix ; stability gives such that for all . By hypothesis there is a point with (taking large enough, since ) and ; call this initial condition , with . By stability, for all . Let . As long as stays in the region , we have by hypothesis, so is strictly increasing; in particular for all such , so the trajectory never leaves once it starts there (since never returns to ), and hence is increasing for all . Consider the compact set . Since for all and , we have for all . Also since , so is continuous and strictly positive on the compact set , hence
Then for all , so . But is continuous on the compact set , hence bounded there, say for all . This contradicts while . This contradiction shows the assumption of stability is false: is unstable.
∎Worked examples
Example 1 — an asymmetric planar system with no closed-form solution. Consider
This is nonlinear (the and terms), and while it happens to be solvable in special cases, we treat it as if it were not, to illustrate the method's independence from explicit solutions. The origin is an equilibrium since both right-hand sides vanish at . The linearization at the origin is , , with Jacobian , eigenvalues (a stable node — this equilibrium is actually already hyperbolic, so Hartman-Grobman and Hyperbolicity would suffice here; we use it deliberately as a controlled test case where we can check the Lyapunov approach against a known answer). Try the quadratic candidate (an asymmetric weighting, chosen to make the cross terms cancel — a symmetric would leave a stray term, as we verify). Then is positive definite on all of since it's a positive-definite quadratic form. Compute the orbital derivative:
The two terms cancel exactly, leaving
This is negative definite on all of : it vanishes only at and is strictly negative elsewhere, since it is times a positive-definite quadratic form. By the theorem (part b) with , the origin is asymptotically stable — in fact, since can be taken arbitrarily large, this argument shows the basin of attraction is all of (global asymptotic stability), a stronger conclusion than the local statement Hartman–Grobman alone would give. Notice the choice of coefficient in front of was essential: with we'd get — actually that also happens to cancel in this particular example, but in general matching coefficients to the nonlinearity is what makes cross-terms vanish, and one should not expect the naive symmetric guess to always work.
Example 2 — a case where linearization is silent (a center-type nonlinear system). Consider the system
The Jacobian at the origin is , with eigenvalues — purely imaginary. Hartman–Grobman does not apply (the equilibrium is non-hyperbolic), and the linearized system alone (a center) is inconclusive about the nonlinear system's actual behavior: nonlinear terms can turn a linear center into a stable or unstable focus. Try , positive definite on . Compute:
Carefully: . So
since the and cancel. This is negative definite: whenever , and only at the origin. By part (b) of the theorem, the origin is asymptotically stable, globally on since as and the sign conditions hold everywhere. This resolves, by direct algebra, a question that the linearization could not: the nonlinear cubic damping terms tip the linear center into a genuine (nonlinear) stable focus, and we have proven this rigorously without ever solving the ODE.
The asymptotic stability claim in part (b) of the theorem requires to be strictly negative away from the origin, not merely . To see this hypothesis cannot be dropped, consider the planar linear system
The origin is an equilibrium. Take , positive definite everywhere. Compute
This is negative semidefinite on : it is everywhere but vanishes whenever , regardless of — not only at the origin. So satisfies the hypotheses of part (a) (stability) but not the strict hypothesis of part (b). Indeed, part (a) correctly certifies stability: solving directly, and , so any trajectory starting near the origin stays near the origin for all (in fact for all ). But the equilibrium is not asymptotically stable: the trajectory starting at with satisfies . The entire -axis consists of equilibria-adjacent orbits that never decay. This shows precisely why part (b) demands off the origin: with only , the trajectory can get trapped forever on a level set (here, the line ) without being squeezed further inward, so can plateau at a positive value instead of tending to . The proof of part (b) breaks exactly at the step invoking compactness of : on that set here, is not bounded away from (it equals along the whole segment ), so no can be extracted, and the contradiction argument collapses.
Scope, edge cases & common traps
| Situation | What to check | Common pitfall |
|---|---|---|
| Only local positive definiteness | need only hold on a neighborhood , not globally | Assuming a locally valid automatically gives a global basin of attraction |
| vs | Semidefinite gives stability only; strict negativity needed for asymptotic stability | Citing "LaSalle" conclusions without checking invariance conditions |
| Radial unboundedness | Needed for global asymptotic stability, not for local results | Claiming global stability from a that is bounded (e.g. ) |
| Existence of | The theorem gives sufficient, not necessary conditions as stated | Concluding instability just because you failed to find a Lyapunov function |
| Non-autonomous / time-varying systems | Requires a modified definition (, uniform bounds) | Applying the autonomous theorem verbatim to time-dependent |
| Multiple equilibria | must be a neighborhood on which is positive definite relative to that single equilibrium | Using one global naively when several equilibria compete for basins |
The mathematician behind it
Origins · 1 minAleksandr Mikhailovich Lyapunov and how this was discovered
Lyapunov trained under Chebyshev at St. Petersburg University and worked across mechanics, mathematical physics, and probability (he also proved a central limit theorem under general conditions). His 1892 doctoral dissertation, The General Problem of the Stability of Motion, introduced both the "first method" (stability from linearization, later formalized by Hartman and Grobman) and the "second" or "direct method" — the energy-function technique this article develops — allowing stability to be assessed without integrating the equations of motion. He held positions in Kharkov and later at the Russian Academy of Sciences in St. Petersburg. His work remained relatively unknown outside Russia until translations and the rise of control theory in the mid-20th century (notably through the work of engineers and mathematicians studying feedback stability) brought it to global prominence.
Do I need to find the unique Lyapunov function for a system?
No — Lyapunov functions are never unique, and the theorem gives sufficient, not necessary conditions in the form stated. Many different valid choices of can certify the same stability conclusion; conversely, failing to find one does not prove instability, it may just mean you haven't looked hard enough or in the right functional form (quadratic forms, weighted sums of squares, or physical energy are common starting guesses). Converse theorems guarantee existence of some strict Lyapunov function for any sufficiently smooth asymptotically stable equilibrium, but they do not tell you its formula; constructing one explicitly remains the practical challenge, often solved via the variable-gradient method or by exploiting known conserved/dissipated physical quantities.
How do I actually guess a Lyapunov function for a new system?
Three standard strategies: (1) try a quadratic form with symmetric positive definite, tuning entries of to make cross-terms in cancel against the nonlinearity, as in Example 1; (2) if the system arises from physics, use total mechanical or thermodynamic energy directly, since dissipative forces often make automatically; (3) use the variable-gradient method, positing a general form for , forcing by design, then integrating to recover and checking it is a valid gradient (curl-free) and positive definite. Persistence and pattern-matching to the nonlinearity's structure (matching powers so terms cancel, as seen in both worked examples) is the main practical skill.
Can a Lyapunov function prove instability directly, without Chetaev's theorem?
Not usually with the same simple positive-definite : proving instability requires a different sign pattern, typically Chetaev's construction, where you find a region where arbitrarily close to the equilibrium and throughout that region. This forces trajectories starting in that region to be pushed to ever-higher -values and hence away from the equilibrium, as the theorem's proof shows via a contradiction with boundedness of on a compact set. A single global positive-definite with (a strict Lyapunov function) instead proves the opposite conclusion, asymptotic stability, so the two constructions are not interchangeable; they answer opposite questions and require different sign conditions.
Does the method work for discrete-time systems (maps) too?
Yes, with an analogous definition: for with fixed point , a Lyapunov function is positive definite near , and stability/asymptotic stability follow from or respectively (a difference condition replacing the derivative condition). The proof structure is essentially identical, replacing the continuous monotonicity argument with a monotone decreasing sequence argument, and replacing "extension of solutions" with the trivial fact that iterating is always defined. This discrete version underlies convergence proofs for many iterative numerical algorithms, including gradient descent, where is often the objective function itself or a distance-to-optimum function.
What is the relationship between Lyapunov functions and LaSalle's invariance principle?
LaSalle's invariance principle extends the method to handle semidefinite (only ), which is common in physical systems with partial damping. Instead of requiring everywhere off the origin, LaSalle shows trajectories converge to the largest invariant set contained in . If that invariant set is just , asymptotic stability follows even though is only semidefinite — this resolves cases like a pendulum with friction only in one coordinate. It builds directly on the compactness and monotonicity arguments used in part (b) of the stability theorem above, and is typically covered alongside Limit Cycles and Closed Orbits since it is also the key tool for ruling out sustained oscillation.
Why does the theorem require to be locally Lipschitz, and not just continuous?
Local Lipschitz continuity (or continuous differentiability, which implies it) guarantees existence and uniqueness of solutions to the initial value problem by the Picard–Lindelöf theorem, which the proof uses implicitly whenever it speaks of "the solution " starting at a point. Without uniqueness, multiple trajectories could emanate from the same point, and the trapping argument (a single trajectory cannot cross a level curve) could fail because different branches of solution might behave inconsistently. Continuity alone (Peano's theorem) guarantees existence but not uniqueness, which is insufficient for the clean statement "the trajectory starting here stays here."
Is a Lyapunov function the same thing as an "energy function"?
Not always, though the terminology and intuition come from mechanical energy. In a genuinely conservative mechanical system, total energy is a valid Lyapunov function for stability (it's conserved, hence ) but never a strict one, since never becomes negative — this is exactly the situation explored further in Conservative Systems and the Pendulum, where centers are stable but not asymptotically stable. In dissipative or purely mathematical systems (chemical kinetics, population dynamics, algorithms), "Lyapunov function" is a purely formal scalar function satisfying the sign conditions, often with no physical energy interpretation at all — it's a mathematical device, not necessarily a physical quantity.