Documentation

CslibFrontier.Foundations.Analysis.ODE.LinearFlow

The flow of a linear time-invariant ODE #

For a bounded linear operator A : E →L[ℝ] E on a real Banach space E, the curve t ↦ exp (t • A) x₀ solves ẋ = A x with x 0 = x₀, and it is the only solution on every finite interval [0, T] and on [0, ∞). No stability, spectral or diagonalizability assumption is made. Finite-dimensional real systems are the case E = EuclideanSpace ℝ n, A = Matrix.toEuclideanCLM A.

Trajectories #

ContinuousLinearMap.IsTrajectoryOn A x s says that at every time t ∈ s the curve x has derivative A (x t) within s. For s = Set.Ici 0 this is a two-sided derivative at every t > 0 and a right derivative at the initial time 0; for s = Set.Icc 0 T the endpoint T has a left derivative. Differentiability within s implies continuity on s, so no separate continuity hypothesis is needed.

Matrices, vectors and norms #

A real n × n matrix acts on coordinate vectors n → ℝ by Matrix.mulVec. The type n → ℝ carries Mathlib's supremum norm, which is not the Euclidean norm, so the statements here that involve norms (and the stability notions built on them) are stated on EuclideanSpace ℝ n, whose norm is ℓ², through Matrix.toEuclideanCLM. Derivatives do not depend on the choice of norm, and Matrix.isTrajectoryOn_toEuclideanCLM_iff translates between the two coordinate pictures. The matrix exponential NormedSpace.exp (t • A) of A : Matrix n n ℝ only uses the entrywise topology of matrices, so no matrix norm instance is chosen here; operator norms that appear later are those of Matrix.toEuclideanCLM A, i.e. ℓ² operator norms.

Main definitions #

Main results #

The curve x is a trajectory of the linear ODE ẋ = A x on the time set s: at every t ∈ s it has derivative A (x t) within s. On s = Set.Ici 0 the derivative at the initial time 0 is a right derivative.

theorem ContinuousLinearMap.IsTrajectoryOn.mono {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {A : E →L[ℝ] E} {x : ℝ → E} {s s' : Set ℝ} (hx : A.IsTrajectoryOn x s) (h : s' ⊆ s) :
theorem ContinuousLinearMap.isTrajectoryOn_exp_smul_apply {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (A : E →L[ℝ] E) (x₀ : E) (s : Set ℝ) :
A.IsTrajectoryOn (fun (t : ℝ) => (NormedSpace.exp (t • A)) x₀) s

Existence. The curve t ↦ exp (t • A) x₀ is a trajectory of ẋ = A x on every time set; its value at 0 is x₀.

theorem ContinuousLinearMap.IsTrajectoryOn.eqOn_exp_smul_apply_Icc {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {A : E →L[ℝ] E} {x : ℝ → E} [CompleteSpace E] {T : ℝ} (hx : A.IsTrajectoryOn x (Set.Icc 0 T)) :
Set.EqOn x (fun (t : ℝ) => (NormedSpace.exp (t • A)) (x 0)) (Set.Icc 0 T)

Uniqueness on a finite interval. A trajectory of ẋ = A x on [0, T] is t ↦ exp (t • A) (x 0) there.

Uniqueness on [0, ∞). A trajectory of ẋ = A x on [0, ∞) is t ↦ exp (t • A) (x 0) there.

Matrix.toEuclideanCLM commutes with the exponential.

@[simp]

The flow of Matrix.toEuclideanCLM A in coordinates is the matrix exponential.

theorem Matrix.isTrajectoryOn_toEuclideanCLM_iff {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} {x : ℝ → n → ℝ} {s : Set ℝ} :
(toEuclideanCLM A).IsTrajectoryOn (fun (t : ℝ) => WithLp.toLp 2 (x t)) s ↔ ∀ t ∈ s, HasDerivWithinAt x (A.mulVec (x t)) s t

A curve in EuclideanSpace ℝ n is a trajectory of Matrix.toEuclideanCLM A exactly when its coordinate curve solves x' = A *ᵥ x.

theorem Matrix.eq_exp_smul_mulVec_of_hasDerivWithinAt {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} {x : ℝ → n → ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) {t : ℝ} (ht : 0 ≤ t) :
x t = (NormedSpace.exp (t • A)).mulVec (x 0)

Uniqueness in coordinates. Every solution x : ℝ → n → ℝ of x' = A *ᵥ x on [0, ∞), with a right derivative at 0, is exp (t • A) *ᵥ x 0 for t ≥ 0.

theorem Matrix.exp_smul_mul_eq_of_hasDerivWithinAt {n : Type u_1} [Fintype n] [DecidableEq n] {m : Type u_2} {A : Matrix n n ℝ} {X : ℝ → Matrix n m ℝ} (hX : ∀ (j : m), ∀ t ∈ Set.Ici 0, HasDerivWithinAt (fun (τ : ℝ) => (X τ).transpose j) (A.mulVec ((X t).transpose j)) (Set.Ici 0) t) {t : ℝ} (ht : 0 ≤ t) :
NormedSpace.exp (t • A) * X 0 = X t

Certifying a matrix exponential. If every column of a matrix curve X : ℝ → Matrix n m ℝ solves x' = A *ᵥ x on [0, ∞), i.e. X' = A * X, then X t = exp (t • A) * X 0 for t ≥ 0. A proposed closed form for exp (t • A) * B is thus checked by X 0 = B and the derivative obligations, without computing a matrix exponential.