NLA-lib Explorer

HasFDerivAt.pow_two_sum_smul_proj

Library · theorem

The square rule for coordinate gradients.

HasFDerivAt.pow_two_sum_smul_proj.{u_1} {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ℝ} {x c : ι → ℝ}
  (hf : HasFDerivAt f (∑ b, c b • ContinuousLinearMap.proj b) x) :
  HasFDerivAt (fun y ↦ f y ^ 2) (∑ b, (2 * f x * c b) • ContinuousLinearMap.proj b) x

Full source on GitHub

Import NLAlib.ForMathlib.Analysis.Calculus.ContDiff.Hessian.