NLA-lib Explorer

Matrix.hasDerivAt_inv_apply

Library · theorem

The derivative of the inverse, entrywise: (\mathbf{A}^{-1})' = -\mathbf{A}^{-1} \mathbf{A}' \mathbf{A}^{-1} where \mathbf{A}(t) is invertible.

Matrix.hasDerivAt_inv_apply.{u_1, u_5} {𝔽 : Type u_1} [NontriviallyNormedField 𝔽] {n : Type u_5}
  [Fintype n] [DecidableEq n] {A : 𝔽 → Matrix n n 𝔽} {A' : Matrix n n 𝔽} {t : 𝔽}
  (hA : ∀ (i j : n), HasDerivAt (fun s ↦ A s i j) (A' i j) t) (ht : IsUnit (A t).det) (i j : n) :
  HasDerivAt (fun s ↦ (A s)⁻¹ i j) ((-((A t)⁻¹ * A' * (A t)⁻¹)) i j) t

Full source on GitHub

Import NLAlib.ForMathlib.Analysis.Calculus.Deriv.Matrix.