Documentation

CslibFrontier.Foundations.Analysis.ODE.LinearLyapunov

Stability of linear time-invariant systems and the quadratic Lyapunov criterion #

For a bounded linear operator A : E →L[ℝ] E, stability of the equilibrium 0 of ẋ = A x is stated about all trajectories on [0, ∞) in the sense of ContinuousLinearMap.IsTrajectoryOn, measured in the norm of E:

For a finite-dimensional system all norms are equivalent, so these properties do not depend on the chosen norm, although the constants do. Matrix systems are stated on EuclideanSpace ℝ n through Matrix.toEuclideanCLM, so their constants refer to the Euclidean norm.

The energy V x = ⟪x, P x⟫ of any P : E →L[ℝ] E has derivative ⟪x, (A† P + P A) x⟫ along trajectories (IsTrajectoryOn.hasDerivWithinAt_inner_apply; no symmetry of P is needed). A differential inequality V' ≤ K V on [a, ∞) gives V t ≤ exp (K (t - a)) V a (le_exp_mul_sub_mul_of_hasDerivWithinAt), and combining the two gives decay of the energy along trajectories (IsTrajectoryOn.inner_apply_le_exp_mul). With coercivity constants m ‖y‖² ≤ ⟪y, P y⟫ ≤ M ‖y‖² and c ‖y‖² ≤ -⟪y, (A† P + P A) y⟫ this is the explicit bound ‖x t‖² ≤ (M / m) exp (-(c / M) t) ‖x 0‖² (IsTrajectoryOn.norm_sq_le). In finite dimension, positivity of a quadratic form gives such a constant by compactness of the unit sphere (exists_pos_mul_norm_sq_le_inner_apply), which yields the classical quadratic Lyapunov criterion (isExponentiallyStable_of_inner_pos) and its matrix form (Matrix.isExponentiallyStable_toEuclideanCLM_of_posDef). The decay estimate is proved, not assumed.

The same energy identity gives Lyapunov's instability theorem. If A† P + P A ≤ 2 ε P for an indefinite P and ⟪x 0, P (x 0)⟫ < 0, then ⟪x t, P (x t)⟫ ≤ exp (2 ε t) ⟪x 0, P (x 0)⟫ < 0, and -⟪y, P y⟫ ≤ ‖P‖ ‖y‖² turns this into ‖x t‖ ≥ √(-⟪x 0, P (x 0)⟫ / ‖P‖) exp (ε t) (IsTrajectoryOn.sqrt_mul_exp_le_norm). With ε ≥ 0 the system is not asymptotically stable, and with ε > 0 it is not Lyapunov stable and has an unbounded trajectory. For matrices the hypothesis is -((A - ε • 1)ᵀ * P + P * (A - ε • 1)) ⪰ 0. A nonstrict inequality A† P + P A ≤ 0 with P positive gives Lyapunov stability (isLyapunovStable_of_inner_pos_of_nonpos).

Main definitions #

Main results #

The equilibrium 0 of ẋ = A x is Lyapunov stable: for every ε > 0 there is δ > 0 such that every trajectory on [0, ∞) starting in the open δ-ball stays in the open ε-ball for all t ≥ 0.

The equilibrium 0 of ẋ = A x is asymptotically stable: it is Lyapunov stable, and there is δ > 0 such that every trajectory on [0, ∞) starting in the open δ-ball tends to 0.

The equilibrium 0 of ẋ = A x is (globally, uniformly) exponentially stable: there are constants M and α > 0, chosen before the trajectory, such that every trajectory on [0, ∞) satisfies ‖x t‖ ≤ M * exp (-(α * t)) * ‖x 0‖ for all t ≥ 0.

Exponential stability implies asymptotic stability.

theorem le_exp_mul_sub_mul_of_hasDerivWithinAt {V V' : ℝ → ℝ} {K a : ℝ} (hV : ∀ t ∈ Set.Ici a, HasDerivWithinAt V (V' t) (Set.Ici a) t) (hle : ∀ t ∈ Set.Ici a, V' t ≤ K * V t) {t : ℝ} (ht : a ≤ t) :
V t ≤ Real.exp (K * (t - a)) * V a

Exponential bound from a linear differential inequality. If V has derivative V' t within [a, ∞) at every t ≥ a and V' t ≤ K * V t there, then V t ≤ exp (K * (t - a)) * V a for every t ≥ a. The rate K may have any sign.

theorem exists_pos_mul_norm_sq_le_inner_apply {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] {P : E →L[ℝ] E} (hP : ∀ (y : E), y ≠ 0 → 0 < inner ℝ y (P y)) :
∃ m > 0, ∀ (y : E), m * ‖y‖ ^ 2 ≤ inner ℝ y (P y)

Coercivity in finite dimension. A quadratic form y ↦ ⟪y, P y⟫ that is positive on nonzero vectors of a finite-dimensional real inner product space is bounded below by m * ‖y‖ ^ 2 for some m > 0: take the minimum of the form on the (compact) unit sphere.

theorem ContinuousLinearMap.IsTrajectoryOn.hasDerivWithinAt_inner_apply {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {x : ℝ → E} {s : Set ℝ} (hx : A.IsTrajectoryOn x s) {t : ℝ} (ht : t ∈ s) :
HasDerivWithinAt (fun (τ : ℝ) => inner ℝ (x τ) (P (x τ))) (inner ℝ (x t) ((adjoint A * P + P * A) (x t))) s t

Energy identity. Along a trajectory of ẋ = A x, the quadratic energy ⟪x, P x⟫ has derivative ⟪x, (A† P + P A) x⟫ within the time set. The operator P need not be symmetric.

theorem ContinuousLinearMap.IsTrajectoryOn.inner_apply_le_exp_mul {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {x : ℝ → E} (hx : A.IsTrajectoryOn x (Set.Ici 0)) {K : ℝ} (hK : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ K * inner ℝ y (P y)) {t : ℝ} (ht : 0 ≤ t) :
inner ℝ (x t) (P (x t)) ≤ Real.exp (K * t) * inner ℝ (x 0) (P (x 0))

Energy decay along trajectories. If A† P + P A ≤ K P as quadratic forms, then the energy ⟪x, P x⟫ of every trajectory on [0, ∞) satisfies ⟪x t, P (x t)⟫ ≤ exp (K * t) * ⟪x 0, P (x 0)⟫ for t ≥ 0.

theorem ContinuousLinearMap.IsTrajectoryOn.norm_sq_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {x : ℝ → E} (hx : A.IsTrajectoryOn x (Set.Ici 0)) {m M c : ℝ} (hm : 0 < m) (hc : 0 ≤ c) (hlow : ∀ (y : E), m * ‖y‖ ^ 2 ≤ inner ℝ y (P y)) (hup : ∀ (y : E), inner ℝ y (P y) ≤ M * ‖y‖ ^ 2) (hQ : ∀ (y : E), c * ‖y‖ ^ 2 ≤ -inner ℝ y ((adjoint A * P + P * A) y)) {t : ℝ} (ht : 0 ≤ t) :
‖x t‖ ^ 2 ≤ M / m * Real.exp (-(c / M) * t) * ‖x 0‖ ^ 2

Explicit quadratic Lyapunov bound. Suppose m ‖y‖² ≤ ⟪y, P y⟫ ≤ M ‖y‖² with m > 0, and c ‖y‖² ≤ -⟪y, (A† P + P A) y⟫ with c ≥ 0. Then every trajectory of ẋ = A x on [0, ∞) satisfies ‖x t‖² ≤ (M / m) exp (-(c / M) t) ‖x 0‖² for t ≥ 0.

theorem ContinuousLinearMap.isExponentiallyStable_of_inner_pos {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} [FiniteDimensional ℝ E] (hP : ∀ (y : E), y ≠ 0 → 0 < inner ℝ y (P y)) (hQ : ∀ (y : E), y ≠ 0 → inner ℝ y ((adjoint A * P + P * A) y) < 0) :

Quadratic Lyapunov criterion. On a finite-dimensional real inner product space, if ⟪y, P y⟫ > 0 and ⟪y, (A† P + P A) y⟫ < 0 for every y ≠ 0, then ẋ = A x is exponentially stable. The coercivity constants come from exists_pos_mul_norm_sq_le_inner_apply, the upper constant is ‖P‖ + 1, and the rate is obtained from IsTrajectoryOn.norm_sq_le.

theorem Matrix.hasDerivWithinAt_dotProduct_mulVec {n : Type u_1} [Fintype n] {A P : Matrix n n ℝ} {x : ℝ → n → ℝ} {s : Set ℝ} (hx : ∀ t ∈ s, HasDerivWithinAt x (A.mulVec (x t)) s t) {t : ℝ} (ht : t ∈ s) :
HasDerivWithinAt (fun (τ : ℝ) => x τ ⬝ᵥ P.mulVec (x τ)) (x t ⬝ᵥ (A.transpose * P + P * A).mulVec (x t)) s t

Energy identity in coordinates. If x : ℝ → n → ℝ solves x' = A *ᵥ x on the time set s, then for every real matrix P, d/dt (x ⬝ᵥ P *ᵥ x) = x ⬝ᵥ (Aᵀ * P + P * A) *ᵥ x within s.

Quadratic Lyapunov criterion for matrices. If P and -(Aᵀ * P + P * A) are positive definite real matrices, then ẋ = A x is exponentially stable on EuclideanSpace ℝ n, i.e. in the Euclidean norm. P is symmetric by Matrix.PosDef; no assumption on A is made.

Instability and marginal stability from indefinite quadratic forms #

theorem ContinuousLinearMap.sqrt_div_norm_pos_of_inner_neg {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {P : E →L[ℝ] E} {y : E} (hy : inner ℝ y (P y) < 0) :
0 < √(-inner ℝ y (P y) / ‖P‖)

The growth constant is positive. If ⟪y, P y⟫ < 0, then √(-⟪y, P y⟫ / ‖P‖) > 0: the constant of IsTrajectoryOn.sqrt_mul_exp_le_norm for a trajectory starting at y.

theorem ContinuousLinearMap.IsTrajectoryOn.exp_mul_neg_inner_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {x : ℝ → E} (hx : A.IsTrajectoryOn x (Set.Ici 0)) {ε : ℝ} (hK : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ 2 * ε * inner ℝ y (P y)) {t : ℝ} (ht : 0 ≤ t) :
Real.exp (2 * ε * t) * -inner ℝ (x 0) (P (x 0)) ≤ ‖P‖ * ‖x t‖ ^ 2

Energy growth along trajectories. If A† P + P A ≤ 2 ε P as quadratic forms, then every trajectory of ẋ = A x on [0, ∞) satisfies exp (2 ε t) * (-⟪x 0, P (x 0)⟫) ≤ ‖P‖ * ‖x t‖ ^ 2 for t ≥ 0. Neither P nor ε has a sign condition; the bound is informative when ⟪x 0, P (x 0)⟫ < 0.

theorem ContinuousLinearMap.IsTrajectoryOn.sqrt_mul_exp_le_norm {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {x : ℝ → E} (hx : A.IsTrajectoryOn x (Set.Ici 0)) {ε : ℝ} (hK : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ 2 * ε * inner ℝ y (P y)) {t : ℝ} (ht : 0 ≤ t) :
√(-inner ℝ (x 0) (P (x 0)) / ‖P‖) * Real.exp (ε * t) ≤ ‖x t‖

Exponential growth of the norm. If A† P + P A ≤ 2 ε P as quadratic forms, then every trajectory of ẋ = A x on [0, ∞) satisfies ‖x t‖ ≥ C * exp (ε t) for t ≥ 0, with C = √(-⟪x 0, P (x 0)⟫ / ‖P‖). There is no sign condition: C > 0 when the trajectory starts with negative energy ⟪x 0, P (x 0)⟫ < 0 (sqrt_div_norm_pos_of_inner_neg), and C = 0 otherwise.

theorem ContinuousLinearMap.not_isAsymptoticallyStable_of_inner_neg {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {ε : ℝ} (hε : 0 ≤ ε) (hK : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ 2 * ε * inner ℝ y (P y)) {y₀ : E} (hy₀ : inner ℝ y₀ (P y₀) < 0) :

Not asymptotically stable. If A† P + P A ≤ 2 ε P with ε ≥ 0 and some y₀ has ⟪y₀, P y₀⟫ < 0, then ẋ = A x is not asymptotically stable: trajectories starting at small multiples of y₀ keep ‖P‖ ‖x t‖² ≥ -⟪x 0, P (x 0)⟫ > 0.

theorem ContinuousLinearMap.not_isLyapunovStable_of_inner_neg {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {ε : ℝ} (hε : 0 < ε) (hK : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ 2 * ε * inner ℝ y (P y)) {y₀ : E} (hy₀ : inner ℝ y₀ (P y₀) < 0) :

Not Lyapunov stable. If A† P + P A ≤ 2 ε P with ε > 0 and some y₀ has ⟪y₀, P y₀⟫ < 0, then ẋ = A x is not Lyapunov stable: trajectories starting at small multiples of y₀ grow like exp (ε t).

theorem ContinuousLinearMap.tendsto_norm_exp_smul_apply_atTop {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} {ε : ℝ} (hε : 0 < ε) (hK : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ 2 * ε * inner ℝ y (P y)) {y₀ : E} (hy₀ : inner ℝ y₀ (P y₀) < 0) :

An unbounded trajectory. If A† P + P A ≤ 2 ε P with ε > 0 and ⟪y₀, P y₀⟫ < 0, then the trajectory t ↦ exp (t • A) y₀ of ẋ = A x tends to infinity in norm.

theorem ContinuousLinearMap.isLyapunovStable_of_inner_pos_of_nonpos {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] {A P : E →L[ℝ] E} [FiniteDimensional ℝ E] (hP : ∀ (y : E), y ≠ 0 → 0 < inner ℝ y (P y)) (hQ : ∀ (y : E), inner ℝ y ((adjoint A * P + P * A) y) ≤ 0) :

Lyapunov stability from a nonstrict Lyapunov inequality. On a finite-dimensional real inner product space, if ⟪y, P y⟫ > 0 for y ≠ 0 and ⟪y, (A† P + P A) y⟫ ≤ 0 for every y, then ẋ = A x is Lyapunov stable: ‖x t‖ ≤ √(M / m) ‖x 0‖ for the coercivity constants of P.

theorem Matrix.sqrt_div_norm_pos_of_dotProduct_neg {n : Type u_1} [Fintype n] [DecidableEq n] {P : Matrix n n ℝ} {x₀ : n → ℝ} (hx₀ : x₀ ⬝ᵥ P.mulVec x₀ < 0) :

The growth constant is positive. If x₀ ⬝ᵥ P *ᵥ x₀ < 0, then √(-(x₀ ⬝ᵥ P *ᵥ x₀) / ‖P‖) > 0 for the ℓ² operator norm of P: the constant of sqrt_mul_exp_le_norm_exp_smul_mulVec.

theorem Matrix.sqrt_mul_exp_le_norm_exp_smul_mulVec {n : Type u_1} [Fintype n] [DecidableEq n] {A P : Matrix n n ℝ} {ε : ℝ} (hQ : (-((A - ε • 1).transpose * P + P * (A - ε • 1))).PosSemidef) (x₀ : n → ℝ) {t : ℝ} (ht : 0 ≤ t) :

Exponential growth from a shifted Lyapunov inequality. If -((A - ε • 1)ᵀ * P + P * (A - ε • 1)) ⪰ 0, then for every x₀ the solution exp (t • A) *ᵥ x₀ of ẋ = A x satisfies ‖x t‖ ≥ C exp (ε t) in the Euclidean norm for t ≥ 0, with C = √(-(x₀ ⬝ᵥ P *ᵥ x₀) / ‖P‖) for the ℓ² operator norm of P. The constant is positive when x₀ ⬝ᵥ P *ᵥ x₀ < 0 (sqrt_div_norm_pos_of_dotProduct_neg) and zero otherwise.

theorem Matrix.exp_mul_neg_le_norm_mul_dotProduct_self {n : Type u_1} [Fintype n] [DecidableEq n] {A P : Matrix n n ℝ} {ε : ℝ} (hQ : (-((A - ε • 1).transpose * P + P * (A - ε • 1))).PosSemidef) (x₀ : n → ℝ) {t : ℝ} (ht : 0 ≤ t) :

A lower bound on settling. If -((A - ε • 1)ᵀ * P + P * (A - ε • 1)) ⪰ 0, then the solution x t = exp (t • A) *ᵥ x₀ of ẋ = A x satisfies exp (2 ε t) * -(x₀ ⬝ᵥ P *ᵥ x₀) ≤ ‖P‖ * (x t ⬝ᵥ x t) for t ≥ 0, for any sign of ε. Hence x t ⬝ᵥ x t > r whenever ‖P‖ r < exp (2 ε t) * -(x₀ ⬝ᵥ P *ᵥ x₀): for ε < 0 the state has not settled into the ball x ⬝ᵥ x ≤ r before such a time, a lower bound complementing the upper bounds of decay certificates.

theorem Matrix.not_isAsymptoticallyStable_toEuclideanCLM_of_posSemidef {n : Type u_1} [Fintype n] [DecidableEq n] {A P : Matrix n n ℝ} {ε : ℝ} (hε : 0 ≤ ε) (hQ : (-((A - ε • 1).transpose * P + P * (A - ε • 1))).PosSemidef) {x₀ : n → ℝ} (hx₀ : x₀ ⬝ᵥ P.mulVec x₀ < 0) :

No asymptotic stability. If -((A - ε • 1)ᵀ * P + P * (A - ε • 1)) ⪰ 0 with ε ≥ 0 and x₀ ⬝ᵥ P *ᵥ x₀ < 0, then ẋ = A x is not asymptotically stable.

theorem Matrix.not_isLyapunovStable_toEuclideanCLM_of_posSemidef {n : Type u_1} [Fintype n] [DecidableEq n] {A P : Matrix n n ℝ} {ε : ℝ} (hε : 0 < ε) (hQ : (-((A - ε • 1).transpose * P + P * (A - ε • 1))).PosSemidef) {x₀ : n → ℝ} (hx₀ : x₀ ⬝ᵥ P.mulVec x₀ < 0) :

Instability. If -((A - ε • 1)ᵀ * P + P * (A - ε • 1)) ⪰ 0 with ε > 0 and x₀ ⬝ᵥ P *ᵥ x₀ < 0, then ẋ = A x is not Lyapunov stable.

theorem Matrix.tendsto_norm_exp_smul_mulVec_atTop {n : Type u_1} [Fintype n] [DecidableEq n] {A P : Matrix n n ℝ} {ε : ℝ} (hε : 0 < ε) (hQ : (-((A - ε • 1).transpose * P + P * (A - ε • 1))).PosSemidef) {x₀ : n → ℝ} (hx₀ : x₀ ⬝ᵥ P.mulVec x₀ < 0) :

An unbounded trajectory. If -((A - ε • 1)ᵀ * P + P * (A - ε • 1)) ⪰ 0 with ε > 0 and x₀ ⬝ᵥ P *ᵥ x₀ < 0, then ‖exp (t • A) *ᵥ x₀‖ → ∞ in the Euclidean norm.

Lyapunov stability from a nonstrict Lyapunov inequality. If P ≻ 0 and -(Aᵀ * P + P * A) ⪰ 0, then ẋ = A x is Lyapunov stable on EuclideanSpace ℝ n.