NLA-lib Explorer

Matrix.hasDerivAt_det

Library · theorem

Jacobi's formula: (\det \mathbf{A})' = \operatorname{tr}(\operatorname{adj}(\mathbf{A}) \mathbf{A}'). [HornJohnson2013, §0.8.10] (locator to check).

Matrix.hasDerivAt_det.{u_1, u_2, u_5} {𝔽 : Type u_1} [NontriviallyNormedField 𝔽] {R : Type u_2}
  [NormedCommRing R] [NormedAlgebra 𝔽 R] {n : Type u_5} [Fintype n] [DecidableEq n]
  {A : 𝔽 → Matrix n n R} {A' : Matrix n n R} {t : 𝔽}
  (hA : ∀ (i j : n), HasDerivAt (fun s ↦ A s i j) (A' i j) t) :
  HasDerivAt (fun s ↦ (A s).det) ((A t).adjugate * A').trace t

Full source on GitHub

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