Lemma 9.2 — variation of constants
ProvedTeschlQM.SturmLiouville.variation_of_constantsLet be Sturm–Liouville data, , and with . Suppose are solutions of with , and fix . Then every solution of can be written, for some and all , as
The formula expresses solutions of the inhomogeneous equation through a fundamental system, and underlies the Green function of Lemma 9.7.
Formalization Note. The book states the second line for ; here it is stated for the quasi-derivatives (the book's line multiplied by ), which holds at every point of . is stated as for all (the Wronskian of two solutions is constant, (9.6)).
import Mathlib import Definitions.Def_TeschlQM_SturmLiouville_SolvesTau import Definitions.Def_TeschlQM_SturmLiouville_wronskian
namespace TeschlQM.SturmLiouville
open MeasureTheory
/-- Teschl, Lemma 9.2, p. 183. Let `u₁, u₂` solve `(τ − z) u = 0` with `W(u₁, u₂) = 1`. Then every
solution `f` of `(τ − z) f = g` (9.8), `r g ∈ L¹_loc(I)`, has the form (9.10) for some
`α, β ∈ ℂ`. The second line of (9.10), stated in the book for `f′`, is stated here for the
quasi-derivatives `p f′`, `p u₁′`, `p u₂′` (the book's line multiplied by `p > 0`), which holds at
every point of `I`. -/
theorem variation_of_constants (L : SLData) (z : ℂ) (g : ℝ → ℂ)
(hg : LocallyIntegrableOn (fun x => (L.r x : ℂ) * g x) L.I)
(u₁ u₂ : ℝ → ℂ) (h₁ : IsSolution L z 0 u₁) (h₂ : IsSolution L z 0 u₂)
(hW : ∀ x ∈ L.I, wronskian L x u₁ u₂ = 1)
(c : ℝ) (hc : c ∈ L.I) (f : ℝ → ℂ) (hf : IsSolution L z g f) :
∃ α β : ℂ, ∀ x ∈ L.I,
f x = u₁ x * (α + ∫ y in c..x, u₂ y * g y * (L.r y : ℂ)) +
u₂ x * (β - ∫ y in c..x, u₁ y * g y * (L.r y : ℂ)) ∧
quasiDeriv L f x = quasiDeriv L u₁ x * (α + ∫ y in c..x, u₂ y * g y * (L.r y : ℂ)) +
quasiDeriv L u₂ x * (β - ∫ y in c..x, u₁ y * g y * (L.r y : ℂ)) := by sorry
end TeschlQM.SturmLiouville
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix with interval , coefficients , and . The notions used are:
- : the chosen quasi-derivative of , or if none exists.
- .
- " solves ": has a quasi-derivative, is locally integrable on , and for .
Hypotheses.
- with locally integrable on .
- both solve .
- for every .
- .
- solves .
Claim. There exist such that for every both of the following hold:
The integrals are oriented, so for they are minus the integral over . By convention they are if the integrand is not integrable on the segment.
Degenerate cases.
- The same serve for all and for both equations.
- Nothing is asserted outside .
- No square-integrability is assumed for , , or .
- If no pair with Wronskian identically on exists for the given , the statement is vacuous. The code does not settle whether such a pair exists.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.