The second derivative as a derivative #
The second derivative fderiv ๐ (fderiv ๐ g) x of a map between normed spaces is, by definition,
the derivative at x of the map fderiv ๐ g. Mathlib supplies the differentiability of
fderiv ๐ g at a twice continuously differentiable point through ContDiffAt.fderiv_right; this
file packages that into the single HasFDerivAt statement that second-order arguments use, so
that the identification is made once rather than at each use.
An invertible second derivative therefore lets the differential avoid any prescribed value c
on some punctured neighbourhood of the point, the neighbourhood being allowed to depend on c.
That fixed-value avoidance is the local rigidity behind the isolation of nondegenerate critical
points, and it asks nothing of the value taken.
The file also records that on an open set the second directional derivative
x โฆ D(Dg(ยท) v)(x) v of a Cยฒ map is continuous, and the second-order chain rule
Dยฒ(f โ ฯ)(v, w) = Dยฒf(Dฯ v, Dฯ w) + Df(Dยฒฯ(v, w)). At a point where the differential of the outer
function vanishes the first-order term drops out, so the second derivative of a composition is the
second derivative of the outer function evaluated on the images of the differential of the inner
one, i.e. the second derivative transforms as a bilinear form. The second derivative of a
separated sum ฯ โ Prod.fst + ฯ โ Prod.snd on a product is the block-diagonal map built from the
second derivatives of the summands. Finally, the second derivative of a directional derivative
y โฆ Dg(y) v is the third derivative of g evaluated at v, and differentiating the symmetry
of the second derivative shows that the third derivative is symmetric in its last two
directions. No statement
here mentions critical points as such, so all of them belong here rather than with the Morse theory
that uses them.
Main results #
ContDiffAt.hasFDerivAt_fderiv: at a twice continuously differentiable point,fderiv ๐ gis differentiable, with derivative the second derivative ofg.ContDiffOn.continuousOn_fderiv_fderiv_apply: on an open set, the second directional derivative of aCยฒmap in a fixed direction is continuous.TauCeti.eventually_fderiv_ne: where the second derivative is invertible, the differential avoids any prescribed value on a punctured neighbourhood of the point.TauCeti.fderiv_fderiv_comp_apply: the second-order chain rule forCยฒmaps.TauCeti.fderiv_fderiv_comp_apply_of_fderiv_eq_zero: forCยฒmaps, where the differential of the outer function vanishes, the second derivative of a composition is the pullback of the second derivative along the differential of the inner function.TauCeti.fderiv_fderiv_comp_fst_add_comp_snd: the second derivative of a separated sum on a product is block diagonal.TauCeti.fderiv_fderiv_fderiv_apply: the second derivative of a directional derivative of aCยณmap is its third derivative.TauCeti.fderiv_fderiv_fderiv_apply_comm: the third derivative of a sufficiently smooth map is symmetric in its last two directions.
At a twice continuously differentiable point, fderiv ๐ g is differentiable, with derivative
the second derivative of g.
On an open set s, the second directional derivative x โฆ D(Dg(ยท) v)(x) v of a Cยฒ map g
in a fixed direction v is continuous.
Where the second derivative is invertible, the differential avoids any prescribed value near
the point. Nothing is assumed about the value c, and in particular the differential need not
vanish at x. The punctured neighbourhood on which c is avoided may depend on c, so this is
avoidance of one fixed value rather than local injectivity of fderiv ๐ g.
The second-order chain rule. If f is Cยฒ at ฯ b and ฯ is Cยฒ at b, then the
second derivative of f โ ฯ at b is Dยฒf(ฯ b)(Dฯ v, Dฯ w) + Df(ฯ b)(Dยฒฯ(v, w)).
The second derivative at a critical point is a bilinear form pullback. If f is Cยฒ at
ฯ b, ฯ is Cยฒ at b, and the differential of f vanishes at ฯ b, then the second
derivative of f โ ฯ at b is the second derivative of f at ฯ b evaluated on the images of
the differential of ฯ.
The second derivative of a separated sum ฯ โ Prod.fst + ฯ โ Prod.snd at (a, b) is block
diagonal: it sends (v, w) to the coproduct of Dยฒฯ a v and Dยฒฯ b w, i.e. to the functional
(v', w') โฆ Dยฒฯ a v v' + Dยฒฯ b w w'.
The second derivative of the directional derivative y โฆ Dg(y) v of a Cยณ map g is the
third derivative of g, evaluated at v.
The third derivative is symmetric in its last two directions. For a map that is
C^{minSmoothness ๐ 3} at x (so Cยณ over โ or โ), differentiating the symmetry of the
second derivative near x gives Dยณg(x)(a, b, c) = Dยณg(x)(a, c, b).