Hadamard's lemma #
Here we prove variants of Hadamard's lemma, stating that a smooth function f : E → F between
sufficiently nice vector spaces can for any point x and basis b be written as
y ↦ f x + ∑ i, b.repr (y - x) i • g i y where b.repr (y - x) i is the i-th component of
y - x in the basis b and each g i is a smooth function E → F. We do this by providing
explicit functions hadamardFun f x (b i) to serve as the g i, characterising their smoothness
and showing that f can be written in terms of them.
The functions we consider are specifically functions from finite-dimensional spaces to Banach spaces that are continuously differentiable on an open star-convex set.
See https://en.wikipedia.org/wiki/Hadamard%27s_lemma and https://ncatlab.org/nlab/show/Hadamard+lemma.
A convenient special case of intervalIntegral.hasFDerivAt_integral_of_dominated_of_fderiv_le:
if f : H × ℝ → E is continuously differentiable on u ×ˢ [[a, b]] for a neighbourhood u
of x₀, then a derivative of fun x => ∫ t in a..b, f (x, t) ∂μ in x₀ can be computed as
∫ t in a..b, fderiv ℝ (fun x ↦ f (x, t)) x₀ ∂μ.
The function appearing in Hadamard's lemma applied to the function f at x for a basis
vector b.