Documentation

CslibFrontier.Foundations.Analysis.ODE.LaplaceImpulseResponse

The impulse response of an LTI system as a measure #

For a real LTI system ẋ = A x + B u, y = C x + D u (LTISystem), the impulse response is the matrix-valued measure h = D δ₀ + C exp (t A) B dt on [0, ∞): the feedthrough passes an impulse straight through, and the state carries the rest. The function transform of CslibFrontier.Foundations.Analysis.ODE.LaplaceTransferFunction sees only the regular part C exp (t A) B and gives H - D (LTISystem.laplace_responseKernel_eq_transferFunction_sub). With the transform of a measure (MeasureTheory.Measure.laplace) the transform of h is the transfer function H s = C (s I - A)⁻¹ B + D exactly.

Representation #

h is written as a density with respect to the measure δ₀ + volume (LTISystem.impulseResponse): D at t = 0, where δ₀ + volume has the atom δ₀, and the response kernel C exp (t A) B elsewhere, where only volume sees it. Integrating a function φ against it gives φ 0 • D + ∫ φ t • C exp (t A) B dt (MeasureTheory.Measure.laplace_add_measure and MeasureTheory.Measure.laplace_dirac_zero for the integrand exp (-s t)).

Main results #

The output for a measure input is defined by the convolution formula, as for distributional inputs; this file does not solve the state equation for measure inputs.

References #

noncomputable def LTISystem.impulseResponse {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) (t : ℝ) :

The impulse response h = D δ₀ + C exp (t A) B dt as a density with respect to the measure δ₀ + volume: the feedthrough D at t = 0 and the response kernel C exp (t A) B at t ≠ 0.

theorem LTISystem.impulseResponse_of_ne_zero {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) {t : ℝ} (ht : t ≠ 0) :

Off the origin the impulse response is the response kernel.

theorem LTISystem.impulseResponse_zero {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] (S : LTISystem n m p) :

At the origin the impulse response is the feedthrough.

theorem LTISystem.laplaceConvergent_impulseResponse {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) :

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

theorem LTISystem.laplace_impulseResponse {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) :

The transform of the impulse response is the transfer function. Under the growth bound |exp (t • A) i j| ≤ M exp (ω t) for t > 0, for every s with ω < re s the impulse response h = D δ₀ + C exp (t A) B dt has transform ℒ[h] s = H s = C (s I - A)⁻¹ B + D, entrywise and with the feedthrough included.

theorem LTISystem.laplace_measureOutput {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] {ν : MeasureTheory.Measure ℝ} [MeasureTheory.SFinite ν] {v : ℝ → m → ℝ} (hv : ν.LaplaceConvergent (fun (t : ℝ) (j : m) => ↑(v 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) (i : p) :
ν.laplace (fun (t : ℝ) => ↑(S.D.mulVec (v t) i)) s + laplace (fun (t : ℝ) => ∑ j : m, MeasureTheory.Measure.causalConvolution (ContinuousLinearMap.mul ℂ ℂ) ν (fun (τ : ℝ) => ↑(v τ j)) (fun (τ : ℝ) => ↑(S.responseKernel τ i j)) t) s = (S.transferFunction s).mulVec (ν.laplace (fun (t : ℝ) (j : m) => ↑(v t j)) s) i

The transfer-function theorem for an input that is a measure. Let the input be the measure u = v · ν, ν s-finite, with transform converging at s, and let |exp (t • A) i j| ≤ M exp (ω t) for t > 0 with ω < re s. The output with zero initial state is the convolution h ⋆ u of the impulse response h = D δ₀ + C exp (t A) B dt with u, the measure D v · ν + (∑ j ∫_{[0, t]} v τ j C exp ((t - τ) A) B dν(τ)) dt. Its transform, the transform of the impulsive part D v · ν plus that of the regular part, is H s *ᵥ ν.laplace v s.