Documentation

CslibFrontier.Foundations.Analysis.ODE.LaplaceTransferFunction

Laplace transforms of LTI responses and the transfer function #

For a real LTI system ẋ = A x + B u, y = C x + D u (LTISystem) with response kernel h t = C exp (t A) B and transfer function H s = C (s I - A)⁻¹ B + D (LTISystem.transferFunction), this file proves the frequency-domain form of the time-domain output formula of CslibFrontier.Foundations.Analysis.ODE.StateSpace. Real signals are read over ℂ coordinatewise, t ↦ fun i => (y t i : ℂ), and transformed with laplace.

The growth hypothesis #

The half-planes are explicit in the growth of the flow: the hypothesis |exp (t • A) i j| ≤ M exp (ω t) for t > 0 and all entries. Every real matrix satisfies one (Matrix.exists_abs_exp_smul_apply_le, with ω the L∞ operator norm of A), and a decay bound ‖x t‖ ≤ M exp (-α t) ‖x 0‖ on the trajectories of ẋ = A x, as in ContinuousLinearMap.IsExponentiallyStable, gives one with ω = -α (Matrix.abs_exp_smul_apply_le_of_forall_norm_le). No diagonalizability, minimality, controllability or observability is assumed.

Results #

The converse fails: a pole of (s I - A)⁻¹ can cancel in C (s I - A)⁻¹ B, so H can be holomorphic on re s > -1 although A has the eigenvalue 1 (for instance when the mode of 1 is neither controllable nor observable). The stability certificate concerns A, not H.

References #

theorem Matrix.abs_exp_smul_apply_le_of_forall_norm_le {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} {M α : ℝ} (h : ∀ (x : ℝ → EuclideanSpace ℝ n), (toEuclideanCLM A).IsTrajectoryOn x (Set.Ici 0) → ∀ t ≥ 0, ‖x t‖ ≤ M * Real.exp (-(α * t)) * ‖x 0‖) (t : ℝ) :
t ∈ Set.Ioi 0 → ∀ (i j : n), |NormedSpace.exp (t • A) i j| ≤ M * Real.exp (-α * t)

A decay bound on trajectories bounds the entries of the flow. If every trajectory of ẋ = A x on [0, ∞) satisfies ‖x t‖ ≤ M exp (-α t) ‖x 0‖ in the Euclidean norm, then |exp (t • A) i j| ≤ M exp (-α t) for t > 0 and all entries.

theorem Matrix.exists_abs_exp_smul_apply_le {n : Type u_1} [Fintype n] [DecidableEq n] (A : Matrix n n ℝ) :
∃ (M : ℝ) (ω : ℝ), ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • A) i j| ≤ M * Real.exp (ω * t)

Every real matrix has an exponential growth bound for the entries of its flow: |exp (t • A) i j| ≤ M exp (ω t) for t > 0, with M = 1 and ω the L∞ operator norm of A read over ℂ.

theorem Matrix.laplaceConvergent_exp_smul_apply_ofReal {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} {M ω : ℝ} {s : ℂ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) (i j : n) :
LaplaceConvergent (fun (t : ℝ) => ↑(NormedSpace.exp (t • A) i j)) s

The entries of the real flow have convergent Laplace transforms on re s > ω under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0.

theorem Matrix.isUnit_smul_one_sub_map_of_abs_exp_smul_apply_le {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} {M ω : ℝ} {s : ℂ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) :

s I - A is invertible on the half-plane of growth. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, the complex matrix s • 1 - A is invertible for every s with ω < re s.

theorem Matrix.laplace_exp_smul_apply_ofReal {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℝ} {M ω : ℝ} {s : ℂ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) (i j : n) :
laplace (fun (t : ℝ) => ↑(NormedSpace.exp (t • A) i j)) s = (s • 1 - A.map ⇑(algebraMap ℝ ℂ))⁻¹ i j

The Laplace transform of the real flow is the resolvent. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, for every s with ω < re s, laplace (fun t => exp (t • A) i j) s = (s • 1 - A)⁻¹ i j with A read over ℂ.

The impulse response #

theorem LTISystem.laplaceConvergent_responseKernel {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {M ω : ℝ} {s : ℂ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) (i : p) (j : m) :
LaplaceConvergent (fun (t : ℝ) => ↑(S.responseKernel t i j)) s

The entries of the response kernel have convergent Laplace transforms on re s > ω under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0.

theorem LTISystem.laplace_responseKernel {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {M ω : ℝ} {s : ℂ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) (i : p) (j : m) :
laplace (fun (t : ℝ) => ↑(S.responseKernel t i j)) s = (S.C.map ⇑(algebraMap ℝ ℂ) * (s • 1 - S.A.map ⇑(algebraMap ℝ ℂ))⁻¹ * S.B.map ⇑(algebraMap ℝ ℂ)) i j

The transform of the impulse response. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, for every s with ω < re s the entries of the response kernel h t = C exp (t A) B have transforms laplace (fun t => h t i j) s = (C (s I - A)⁻¹ B) i j, with the matrices read over ℂ.

theorem LTISystem.laplace_responseKernel_eq_transferFunction_sub {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {M ω : ℝ} {s : ℂ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) (i : p) (j : m) :
laplace (fun (t : ℝ) => ↑(S.responseKernel t i j)) s = S.transferFunction s i j - ↑(S.D i j)

The transform of the impulse response is H - D. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, for every s with ω < re s, laplace (fun t => h t i j) s = H s i j - D i j.

Poles and stability #

theorem LTISystem.differentiableOn_laplace_responseKernel {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {M ω : ℝ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (i : p) (j : m) :
DifferentiableOn ℂ (laplace fun (t : ℝ) => ↑(S.responseKernel t i j)) {s : ℂ | ω < s.re}

The transform of the impulse response is holomorphic on the half-plane of growth. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, s ↦ laplace (h i j) s is complex differentiable on re s > ω.

theorem LTISystem.differentiableOn_transferFunction_of_abs_exp_smul_apply_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {M ω : ℝ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (i : p) (j : m) :
DifferentiableOn ℂ (fun (s : ℂ) => S.transferFunction s i j) {s : ℂ | ω < s.re}

The transfer function is holomorphic on the half-plane of growth, via the Laplace transform. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, every entry of H is complex differentiable on re s > ω, because H = laplace h + D there.

theorem LTISystem.exists_norm_transferFunction_le_of_isHurwitz {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) (hA : S.A.IsHurwitz) (i : p) (j : m) :
∃ α > 0, DifferentiableOn ℂ (fun (s : ℂ) => S.transferFunction s i j) {s : ℂ | -α < s.re} ∧ ∃ (K : ℝ), ∀ (s : ℂ), 0 ≤ s.re → ‖S.transferFunction s i j‖ ≤ K

A stable transfer function is holomorphic past, and bounded on, the closed right half-plane. If A is Hurwitz, there is α > 0 such that each entry of H is holomorphic on re s > -α and bounded on re s ≥ 0: there, H = laplace h + D with |h t| ≤ K exp (-α t).

theorem LTISystem.re_le_of_meromorphicOrderAt_transferFunction_neg {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {M ω : ℝ} (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (i : p) (j : m) {z : ℂ} (hz : meromorphicOrderAt (fun (s : ℂ) => S.transferFunction s i j) z < 0) :
z.re ≤ ω

Every pole of the transfer function lies in re z ≤ ω. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, every pole z of an entry of H, i.e. every z with meromorphicOrderAt (fun s => H s i j) z < 0, has re z ≤ ω.

theorem LTISystem.exists_pos_re_le_of_meromorphicOrderAt_neg_of_isExponentiallyStable {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) (hA : (Matrix.toEuclideanCLM S.A).IsExponentiallyStable) :
∃ α > 0, ∀ (i : p) (j : m) (z : ℂ), meromorphicOrderAt (fun (s : ℂ) => S.transferFunction s i j) z < 0 → z.re ≤ -α

Stable systems have their poles in a half-plane re z ≤ -α with α > 0. If ẋ = A x is exponentially stable in the Euclidean norm, for instance by Cslib.LinearAlgebra.LyapunovCert.isExponentiallyStable_of_check, there is α > 0 such that every pole z of every entry of the transfer function (meromorphicOrderAt (H · i j) z < 0) has re z ≤ -α.

The transfer-function theorem #

theorem LTISystem.IsSolutionOn.laplaceConvergent_output {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] {S : LTISystem n m p} {M ω : ℝ} {s : ℂ} [Fintype m] [Fintype p] {u : ℝ → m → ℝ} {x : ℝ → n → ℝ} (hx : S.IsSolutionOn u x (Set.Ici 0)) (hx₀ : x 0 = 0) (hu : ContinuousOn u (Set.Ici 0)) (huL : LaplaceConvergent (fun (t : ℝ) (j : m) => ↑(u t j)) s) (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) :
LaplaceConvergent (fun (t : ℝ) (i : p) => ↑((S.C.mulVec (x t) + S.D.mulVec (u t)) i)) s

Convergence of the transform of the output. For a solution on [0, ∞) with zero initial state, driven by an input continuous on [0, ∞) whose transform converges at s, the transform of the output y = C x + D u, read over ℂ, converges at every such s with ω < re s, where |exp (t • A) i j| ≤ M exp (ω t) for t > 0.

theorem LTISystem.IsSolutionOn.laplace_output {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] {S : LTISystem n m p} {M ω : ℝ} {s : ℂ} [Fintype m] [Fintype p] {u : ℝ → m → ℝ} {x : ℝ → n → ℝ} (hx : S.IsSolutionOn u x (Set.Ici 0)) (hx₀ : x 0 = 0) (hu : ContinuousOn u (Set.Ici 0)) (huL : LaplaceConvergent (fun (t : ℝ) (j : m) => ↑(u t j)) s) (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) :
laplace (fun (t : ℝ) (i : p) => ↑((S.C.mulVec (x t) + S.D.mulVec (u t)) i)) s = (S.transferFunction s).mulVec (laplace (fun (t : ℝ) (j : m) => ↑(u t j)) s)

The transfer-function theorem laplace y s = H s *ᵥ laplace u s. Let x solve the state equation on [0, ∞) with zero initial state x 0 = 0, driven by an input u continuous on [0, ∞), and let |exp (t • A) i j| ≤ M exp (ω t) for t > 0. For every s with ω < re s at which the transform of u converges, the output y = C x + D u, read over ℂ, has laplace y s = H s *ᵥ laplace u s, where H s = C (s I - A)⁻¹ B + D is the transfer function, including the feedthrough D.

theorem LTISystem.IsSolutionOn.laplace_output_of_norm_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] {S : LTISystem n m p} {M ω : ℝ} {s : ℂ} [Fintype m] [Fintype p] {u : ℝ → m → ℝ} {x : ℝ → n → ℝ} {K σ : ℝ} (hx : S.IsSolutionOn u x (Set.Ici 0)) (hx₀ : x 0 = 0) (hu : ContinuousOn u (Set.Ici 0)) (huK : ∀ t ∈ Set.Ioi 0, ‖u t‖ ≤ K * Real.exp (σ * t)) (hσ : σ < s.re) (hA : ∀ t ∈ Set.Ioi 0, ∀ (i j : n), |NormedSpace.exp (t • S.A) i j| ≤ M * Real.exp (ω * t)) (hs : ω < s.re) :
laplace (fun (t : ℝ) (i : p) => ↑((S.C.mulVec (x t) + S.D.mulVec (u t)) i)) s = (S.transferFunction s).mulVec (laplace (fun (t : ℝ) (j : m) => ↑(u t j)) s)

The transfer-function theorem for an input of exponential order. As LTISystem.IsSolutionOn.laplace_output, with the convergence of the input's transform replaced by the bound ‖u t‖ ≤ K exp (σ t) for t > 0: then laplace y s = H s *ᵥ laplace u s for every s with σ < re s and ω < re s.