NLA-lib Explorer

Matrix.hasDerivAt_trace_pow_succ

Library · theorem

The derivative of the trace of a power: (\operatorname{tr} \mathbf{A}^{k+1})' = (k + 1) \operatorname{tr}(\mathbf{A}' \mathbf{A}^k).

Matrix.hasDerivAt_trace_pow_succ.{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) (k : ℕ) :
  HasDerivAt (fun s ↦ (A s ^ (k + 1)).trace) ((↑k + 1) * (A' * A t ^ k).trace) t

Full source on GitHub

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