How to Find a Lyapunov Function for a Nonlinear Time-Varying ODE
At a glance
- 1. Check the equilibrium
Write the system as ẋ = f(t, x) and verify that the equilibrium, usually x = 0, satisfies f(t, 0) = 0.
- 2. Choose a candidate
Try a positive function of the state, or one that also depends explicitly on time.
- 3. Differentiate along solutions
Use the chain rule, including the explicit time derivative of V(t, x).
- 4. Apply stability bounds
Compare V and its derivative with positive functions of the state norm to establish stability or convergence.
A Lyapunov function is a way to study the stability of an equilibrium without solving the differential equation explicitly. For a non-autonomous nonlinear system, the right-hand side depends on time as well as the state, so the Lyapunov function may depend on both.
Write the system as
The usual target is the equilibrium . It must actually be an equilibrium: for every time under consideration. The key test is to find a function that is positive near the equilibrium and decreases along trajectories.
Differentiate the function along a solution
Let be continuously differentiable. Along any solution , the chain rule gives
The term is essential if depends explicitly on time. Omitting it can lead to a wrong stability conclusion. If depends only on , that term is zero, and the formula reduces to the familiar autonomous-system expression.
A useful stability test compares with the distance from the equilibrium. For example, suppose in a region around the origin there are class functions and (continuous, strictly increasing, and zero at zero) such that
These uniform-in-time bounds say that is positive away from the equilibrium and does not become arbitrarily small or large merely because time changes. If also , the equilibrium is stable under the standard Lyapunov conditions. If, more strongly,
for another class function , trajectories are driven toward the equilibrium; with the stated uniform bounds, this gives uniform asymptotic stability. If the bounds and derivative inequality hold globally, and the lower bound is radially unbounded (for example, is class ), the strict derivative bound gives global asymptotic stability, provided solutions exist for all forward time. With only , the global conclusion is stability, not necessarily convergence. Local inequalities establish only local results.
A worked nonlinear, time-varying example
Consider the scalar equation
The coefficient varies with time, and the cubic term makes the system nonlinear. The origin is an equilibrium because the right-hand side is zero at for every .
Try the simple candidate
It is positive for every and equals zero at the equilibrium. Since has no explicit time dependence, its derivative along a solution is
The inequality uses and . Therefore decreases at least as fast as the solution of . Integrating that comparison gives
Because , this implies
Thus the origin is globally exponentially stable: every initial value converges to zero, with an explicit exponential bound. This example also shows that a time-varying system does not necessarily require a time-varying Lyapunov function.
How to choose a candidate
There is no universal recipe, but these starting points are common:
- For systems with a linearization that suggests a quadratic energy, try , where is symmetric positive definite.
- For scalar equations, try or another positive power of that is differentiable where needed.
- For mechanical or physical models, try an energy-like expression, such as kinetic plus potential energy.
- If the coefficients or forcing vary with time, consider , or a state-only candidate whose derivative can still be bounded uniformly in time.
A candidate need not make the derivative strictly negative everywhere to prove stability. A nonpositive derivative can be enough for stability, while asymptotic convergence generally requires additional conditions, such as a negative-definite bound or a suitable invariance argument. For non-autonomous systems, the exact theorem and its uniformity assumptions matter; checking only that decreases at each instant may not establish uniform convergence.
Common mistakes
- Ignoring explicit time dependence: For , include in the derivative.
- Checking positivity only at one time: A time-dependent candidate should satisfy the needed positive bounds throughout the time interval, typically uniformly in time.
- Confusing stability with convergence: A nonincreasing can keep trajectories near the equilibrium without proving they approach it.
- Claiming a global result from local bounds: If the inequalities hold only near zero, the conclusion is local.
- Forgetting existence of solutions: A global stability claim also requires that solutions continue to exist for all future time.
The practical method is to verify the equilibrium, choose a positive candidate, compute its full derivative along trajectories, and match the resulting inequalities to a stability theorem whose assumptions apply to the region and time interval you are studying.
References
- Nonlinear Systems, 3rd ed., Hassan K. Khalil
- Stability and Stabilization of Nonlinear Systems, Jean-Jacques E. Slotine and Weiping Li
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.