Chain rules for Riemannian gradients #
The gradient within a subset is the fibrewise Riesz dual of mvfderivWithin. This gives a
relative gradient calculus on manifolds with boundary or corners, with unique differentiability
required by the chain rules rather than by the definition.
For a map between Riemannian manifolds, the gradient of a composite is obtained by pulling the
metric dual of the target gradient back along the differential, then taking the Riesz dual in
the source. Thus the metric adjoint of the differential transports the target gradient to the
source gradient. Scalar postcomposition gives grad (g ∘ f) = g'(f) • grad f.
The construction uses Riemannian.Tensor.rieszDual; the chain rules use Mathlib's
mvfderivWithin_comp and its unrestricted specialization. No regularity of the metric beyond its
pointwise Riemannian bundle structure is needed.
References #
- John M. Lee, Introduction to Smooth Manifolds, second edition, Chapter 13.
The relative gradient chain rule in inner-product form.
The relative gradient of a composite is the source Riesz dual of the pullback of the metric dual of the target gradient. This is the metric-adjoint chain rule.
The gradient chain rule in inner-product form on the whole manifold.
The metric-adjoint gradient chain rule on the whole manifold.
Scalar postcomposition multiplies the relative gradient by the scalar derivative. The outer derivative may itself be taken within a subset of the real line.
Scalar postcomposition multiplies the relative gradient by the ordinary scalar derivative.
Scalar postcomposition multiplies the gradient by the scalar derivative.
The relative gradient chain rule for differentiable scalar postcomposition.
The gradient chain rule for differentiable scalar postcomposition.
The gradient of the logarithm of a function: grad (log f) = f⁻¹ • grad f. At a zero of f
both sides vanish, since Real.log 0 = 0 and 0⁻¹ = 0.