Okay, let's break down how to judge the stability of a nonlinear system using Lyapunov functions. This is a cornerstone of nonlinear control theory.
Core Idea
The fundamental concept behind Lyapunov's stability theory is that if you can find a scalar "energy-like" function (the Lyapunov function) that decreases along the system's trajectories, then the system is stable. Imagine a ball rolling down a hill. The height of the ball is like a Lyapunov function, decreasing as the ball moves toward the bottom (a stable equilibrium).
Formal Definitions and Concepts
-
Lyapunov Function Candidate (V(x))
-
Definition: A continuously differentiable scalar function V(x) defined in a neighborhood D of the equilibrium point x = 0 (we often assume the equilibrium point is at the origin for simplicity).
-
Properties (Necessary for a Candidate):
V(0) = 0 (the function is zero at the equilibrium point).
V(x) > 0 for all x ≠ 0 in D (the function is positive definite in D). This means it's like an "energy" function that's always positive except at the equilibrium.
-
Note: Just meeting these properties doesn't guarantee stability. It's only a candidate.
-
Lyapunov Stability Theorems
-
Lyapunov Stability (Local Stability):
- If
V(x) is a Lyapunov function candidate in D, and its time derivative V̇(x) is negative semi-definite in D (i.e., V̇(x) ≤ 0 for all x in D), then the equilibrium point x = 0 is stable in the sense of Lyapunov.
- Interpretation: The "energy"
V(x) is not increasing along trajectories near the equilibrium. Solutions stay "close" to the equilibrium.
-
Asymptotic Stability (Local Asymptotic Stability):
- If
V(x) is a Lyapunov function candidate in D, and its time derivative V̇(x) is negative definite in D (i.e., V̇(x) < 0 for all x ≠ 0 in D), then the equilibrium point x = 0 is asymptotically stable.
- Interpretation: The "energy"
V(x) is strictly decreasing along trajectories near the equilibrium. Solutions not only stay close but also converge to the equilibrium.
-
Global Asymptotic Stability:
- If:
V(x) is a Lyapunov function candidate defined for all x in ℝⁿ (the entire state space).
V(x) > 0 for all x ≠ 0 in ℝⁿ
V(x) is radially unbounded (i.e., V(x) → ∞ as ||x|| → ∞). This ensures that the "energy" goes to infinity as you move infinitely far from the origin.
V̇(x) < 0 for all x ≠ 0 in ℝⁿ
- Then the equilibrium point
x = 0 is globally asymptotically stable.
- Interpretation: Solutions converge to the equilibrium from any initial condition in the state space.
-
Calculating the Time Derivative (V̇(x))
-
This is crucial. Let the nonlinear system be described by the state equation:
ẋ = f(x)
where x is the state vector and f(x) is a vector field describing the system's dynamics.
-
Using the chain rule, the time derivative of V(x) is:
V̇(x) = (∂V/∂x) * ẋ = (∂V/∂x) * f(x)
Here, ∂V/∂x is the gradient of V with respect to x (a row vector), and ẋ is replaced with the system dynamics f(x). This calculation yields a scalar function of x.
Procedure for Assessing Stability
-
Find the Equilibrium Point(s): Solve f(x) = 0 to find the equilibrium point(s) of the system. Often, you'll want to analyze stability around a specific equilibrium point. If the equilibrium point isn't at the origin, you may need to perform a change of variables to shift it to the origin.
-
Propose a Lyapunov Function Candidate (V(x)): This is often the most challenging part. There's no general formula. Common choices include:
- Quadratic forms:
V(x) = xᵀ P x, where P is a symmetric positive definite matrix. These are often used for linear systems and can sometimes be adapted for nonlinear systems.
- Sum of squares:
V(x) = x₁² + x₂² + ... + xₙ² (a simple quadratic form).
- Energy-based functions: If the system has a physical interpretation, try using an energy-like function (e.g., potential energy, kinetic energy).
- Trial and error, combined with intuition about the system.
-
Check if V(x) is Positive Definite: Verify that V(0) = 0 and V(x) > 0 for all x ≠ 0 in some neighborhood D of the origin. For quadratic forms, V(x) = xᵀ P x is positive definite if and only if the matrix P is positive definite (all eigenvalues are positive, or all leading principal minors are positive).
-
Calculate V̇(x): Compute the time derivative of V(x) using V̇(x) = (∂V/∂x) * f(x).
-
Analyze V̇(x):
- Lyapunov Stability: If
V̇(x) ≤ 0 for all x in D, then the equilibrium is stable.
- Asymptotic Stability: If
V̇(x) < 0 for all x ≠ 0 in D, then the equilibrium is asymptotically stable.
- Global Asymptotic Stability: If
V̇(x) < 0 for all x ≠ 0 in ℝⁿ, and V(x) is radially unbounded, then the equilibrium is globally asymptotically stable.
-
Determine the Region of Attraction (if applicable): If you can only prove local stability (i.e., V̇(x) < 0 only in a region D), then the region D (or a subset of it) is a region of attraction. This means that if the initial condition is within , then the trajectory will converge to the equilibrium point. Estimating the region of attraction can be difficult, but you can often use level sets of as estimates. For example, the set for some constant might be contained within the region where , making it a valid region of attraction.
Example
Consider the system:
ẋ₁ = -x₁ + x₂²
ẋ₂ = -x₂ - x₁ x₂
The equilibrium point is at the origin (0, 0).
-
Lyapunov Function Candidate: Let's try V(x) = (1/2)x₁² + (1/2)x₂² (a simple quadratic form). This is clearly positive definite.
-
Calculate V̇(x):
∂V/∂x₁ = x₁
∂V/∂x₂ = x₂
V̇(x) = (∂V/∂x₁) * ẋ₁ + (∂V/∂x₂) * ẋ₂
= x₁(-x₁ + x₂²) + x₂(-x₂ - x₁ x₂)
= -x₁² + x₁ x₂² - x₂² - x₁ x₂²
= -x₁² - x₂²
-
Analyze V̇(x):
V̇(x) = -x₁² - x₂² is negative definite for all x ≠ 0. Also, V(x) is radially unbounded.
-
Conclusion: The origin (0, 0) is globally asymptotically stable.
Important Considerations
- Finding a Lyapunov Function is Hard: There's no systematic way to find a Lyapunov function for every system. It's often a process of trial and error, combined with knowledge of the system's dynamics. The converse Lyapunov theorem guarantees that a Lyapunov function exists if the system is asymptotically stable, but it doesn't tell you how to find it.
- Non-Uniqueness: Lyapunov functions are not unique. If you find one that works, that's great! There may be many others.
- Local vs. Global: Be careful to distinguish between local and global stability. Lyapunov's theorems can only guarantee stability in a region around the equilibrium point unless you can show global conditions are met.
- LaSalle's Invariance Principle: This is a useful extension. If
V̇(x) ≤ 0 but not strictly negative definite, LaSalle's Invariance Principle can sometimes be used to prove asymptotic stability. It states that trajectories converge to the largest invariant set contained in the set where V̇(x) = 0.
- Numerical Tools: For complex systems, numerical tools (e.g., optimization algorithms, sum-of-squares programming) can be used to search for Lyapunov functions.
- Linear Systems: For linear time-invariant systems (
ẋ = Ax), you can find a Lyapunov function of the form V(x) = xᵀ P x where P is a positive definite matrix that satisfies the Lyapunov equation: Aᵀ P + P A = -Q for some positive definite matrix Q. If you can find such a P, then the system is asymptotically stable.
In summary, Lyapunov's direct method provides a powerful way to analyze the stability of nonlinear systems. The key is to find a suitable Lyapunov function candidate and then show that its time derivative satisfies the appropriate conditions. Remember that the process can be challenging, and there's no universal recipe for finding Lyapunov functions.