On this page
Nudge a hanging pendulum and it swings, slows and settles. Can you prove it always settles without solving the equation of motion? Lyapunov's answer is to find a quantity like energy that can never go up, and let it trap the motion.
What is a Lyapunov function?
Aleksandr Mikhailovich Lyapunov defended his doctoral thesis, The general problem of the stability of motion, in 1892 (MacTutor biography). An English translation appeared in the International Journal of Control in 1992 (doi:10.1080/00207179208934253).
For an equilibrium at x = 0 of the system x′ = f(x), a Lyapunov function V satisfies three conditions (Lyapunov stability, Wikipedia):
V(0) = 0.
V(x) > 0 for every x ≠ 0 near the equilibrium.
V̇(x) ≤ 0, where V̇ is the rate of change of V along solutions.
The key trick is that V̇ = ∇V · f(x) comes from the equation itself, so you never need the solution. Think of V as a bowl and the state as a marble that can only roll downhill or stay level.
What is the difference between stable and asymptotically stable?
An equilibrium is stable (Lyapunov stable) if solutions that start close enough stay close forever. It is asymptotically stable if they also converge to it as t grows (definitions, Wikipedia). The direct method gives you:
V̇ ≤ 0: stable. The marble can't climb out of the bowl.
V̇ < 0 for every x ≠ 0: asymptotically stable. The marble must keep going down until it reaches the bottom.
A frictionless pendulum shows the gap: its energy is constant, so it stays near the bottom but swings forever.
Worked example 1: the damped pendulum
With friction, θ″ = −(g/l) sin θ − (k/m) θ′. Take the scaled energy as V:
V = (g/l)(1 − cos θ) + ½ θ′²
Differentiate along solutions: V̇ = (g/l) sin θ · θ′ + θ′ · θ″. Substitute θ″ and the sin θ terms cancel, which leaves V̇ = −(k/m) θ′².
So the bottom is stable. But V̇ is also zero at every turning point (θ′ = 0, θ ≠ 0), so the basic theorem stops at "stable".
LaSalle's invariance principle closes the gap when V̇ is only ≤ 0, and its Wikipedia article works this exact pendulum (LaSalle's invariance principle). Could a solution stay where θ′ = 0? Then θ″ = 0 too, so sin θ = 0, which near the bottom means θ = 0. Nothing else stays there, so every nearby swing dies out: asymptotically stable.
Why does linearisation fail for x′ = −x³?
The usual shortcut is to linearise at the equilibrium and read off the eigenvalues. The Hartman–Grobman theorem backs that shortcut when the equilibrium is hyperbolic, meaning no eigenvalue of the linearisation has zero real part (Hartman–Grobman theorem). When an eigenvalue sits on the imaginary axis, the linearisation can mislead.
For x′ = −x³ the derivative of −x³ at 0 is 0, so the linearisation is x′ = 0, which tells you nothing. Compare x′ = +x³: it has the same linearisation, yet its solutions run away from 0.
Now try V = ½ x². Then V̇ = x · x′ = −x⁴, which is negative for every x ≠ 0. So 0 is asymptotically stable. Because V grows without bound as x grows, the stability is global (radial unboundedness, Wikipedia).
You can check by solving: x(t) = x₀ / √(1 + 2x₀² t). From x₀ = 1, x(4) = 1/3, while x′ = −x would give e⁻⁴ ≈ 0.018. The cubic converges, only slowly, and Lyapunov's method catches it where eigenvalues can't. Compare the eigenvalue cases in how to draw phase portraits for 2×2 linear systems and the damped oscillator in how to solve second-order linear differential equations.
How do you find a Lyapunov function? A five-step checklist
Start with physical energy if there is one.
Otherwise try V = a x² + b y², choosing a and b so cross terms in V̇ cancel.
Compute V̇ = ∇V · f. Never solve.
Read the sign: V̇ < 0 away from 0 means asymptotically stable; V̇ ≤ 0 means stable, then check the V̇ = 0 set with LaSalle; V̇ > 0 nearby means this V failed.
For global claims, check that V grows without bound.
Try it on x′ = y, y′ = −x − y³. The linearisation has eigenvalues ±i, which have zero real part, so it is silent. With V = ½(x² + y²) you get V̇ = −y⁴ ≤ 0. On y = 0 you get y′ = −x, which is non-zero unless x = 0, so LaSalle gives asymptotic stability.
If gradients or eigenvalues still feel shaky, the Fermi Concept Library has a lesson for every concept in physics, chemistry, biology, mathematics and computing. For ideas that are easier to see than to read, the Fermi Simulation Lab has interactive simulations to explore before you write the proof.



