Matrix.hasDerivAt_log_det
Library · theorem
The derivative of the logarithm of the determinant: for a family of real matrices, (\log \det \mathbf{A})' = \operatorname{tr}(\mathbf{A}^{-1} \mathbf{A}') where \det \mathbf{A}(t) \ne 0 (the determinant may be negative: Real.log is the logarithm of the absolute value).
Matrix.hasDerivAt_log_det.{u_5} {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 : (A t).det ≠ 0) : HasDerivAt (fun s ↦ Real.log (A s).det) ((A t)⁻¹ * A').trace tImport NLAlib.ForMathlib.Analysis.Calculus.Deriv.Matrix.