A Lyapunov function is a scalar-valued function on a domain around an equilibrium that behaves like an energy: it has a minimum at the equilibrium and (typically) decreases along trajectories of the system. Used in Lyapunov’s method to determine stability without solving the ODE.

For an autonomous system with equilibrium at , a candidate Lyapunov function should satisfy:

  1. (zero energy at the equilibrium).
  2. for (positive energy elsewhere — positive definite).
  3. along trajectories (energy never increases).

If is strictly negative (negative definite) on , the equilibrium is asymptotically stable. If (negative semi-definite), the equilibrium is at least stable.

What “behaves like energy” means

Energy in a conservative mechanical system (no friction, no driving) is conserved: . Solutions trace level sets of — closed orbits at constant energy. The equilibrium has minimum energy.

In a dissipative system (with friction), energy decreases: . Solutions move from higher- to lower-energy states, ultimately settling at the equilibrium of minimum energy.

Lyapunov functions generalize this idea. Any with the right properties (positive definite + non-increasing along trajectories) plays the same role as energy, and the conclusions about stability follow.

Computing

The time derivative along trajectories:

You don’t need to know the explicit solution — just compute the gradient of and the dot product with the right-hand side.

For 2D: where are the components of .

Definitions

A scalar function on around is:

  • Positive definite: and for .
  • Positive semi-definite: and .
  • Negative definite: is positive definite.
  • Negative semi-definite: is positive semi-definite.

For Lyapunov-stability theorems, the requirements are:

  • Stable: positive definite, negative semi-definite.
  • Asymptotically stable: positive definite, negative definite.

Examples of Lyapunov functions

Quadratic forms: for positive definite matrix . Always positive definite. Computing is straightforward for linear systems:

For a linear stable system, you can solve the Lyapunov equation for any positive definite to find a that works.

Energy in mechanical systems: total kinetic + potential energy is often a Lyapunov function. For a damped oscillator, is positive definite (around the equilibrium ), and — negative semi-definite. Lyapunov’s theorem gives stability.

Custom polynomials: try or higher-order forms. Adjust coefficients to make negative definite.

Why finding them is hard

There’s no universal algorithm. Lyapunov-function discovery is part of the art of nonlinear analysis. Common strategies:

  1. Energy of the physical system, if it has a natural energy concept.
  2. Quadratic guesses with adjustable coefficients, then make negative.
  3. Lyapunov equation for linear systems.
  4. Sum-of-squares methods (advanced) — solve a semidefinite program to find a polynomial .

For a system known to be stable, some Lyapunov function exists (a converse Lyapunov theorem) — but constructively finding it is sometimes impossible without specialized tools.

In context

For the stability theorems that use the Lyapunov function, see Lyapunov’s method. For the linear theory it complements (when linearization works), see Stability of autonomous systems. For the autonomous system framework, see Autonomous system.