Documentation

TauCeti.Analysis.Calculus.LineDeriv.Basic

Directional derivatives #

For a function f : ๐•œ โ†’ F of one variable, the directional derivative in the direction 1 is the ordinary derivative. This identifies the weak directional derivatives of TauCeti.HasWeakLineDerivOn on the real line with one-variable derivatives.

Outside the topological support of a function, its directional derivatives vanish. This is the directional counterpart of Mathlib's fderiv_of_notMem_tsupport. Both results require no differentiability hypothesis, which matters for Lipschitz functions.

The average y โ†ฆ โˆซโ‚€ยน g (y - t h) dt of translates of a continuous real function g has directional derivative g y - g (y - h) in the direction h, by the fundamental theorem of calculus.

@[simp]
theorem TauCeti.lineDeriv_one {๐•œ : Type u_1} {F : Type u_2} [NontriviallyNormedField ๐•œ] [NormedAddCommGroup F] [NormedSpace ๐•œ F] {f : ๐•œ โ†’ F} {x : ๐•œ} :
lineDeriv ๐•œ f x 1 = deriv f x

The directional derivative of a function of one variable in the direction 1 is its derivative. No differentiability hypothesis is needed.

@[simp]
theorem TauCeti.lineDeriv_of_notMem_tsupport {๐•œ : Type u_1} {F : Type u_2} [NontriviallyNormedField ๐•œ] [NormedAddCommGroup F] [NormedSpace ๐•œ F] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ๐•œ E] {f : E โ†’ F} {x : E} (h : x โˆ‰ tsupport f) (v : E) :
lineDeriv ๐•œ f x v = 0

Outside the topological support of f, every directional derivative of f vanishes. No differentiability hypothesis is needed.

theorem Continuous.hasLineDerivAt_intervalIntegral_comp_sub {E : Type u_3} {G : Type u_4} [NormedAddCommGroup E] [NormedSpace โ„ E] [NormedAddCommGroup G] [NormedSpace โ„ G] [CompleteSpace G] {h : E} {g : E โ†’ G} (hg : Continuous g) (y : E) :
HasLineDerivAt โ„ (fun (y : E) => โˆซ (t : โ„) in 0..1, g (y - t โ€ข h)) (g y - g (y - h)) y h

The function y โ†ฆ โˆซโ‚€ยน g (y - t h) dt of a continuous g has directional derivative g y - g (y - h) in the direction h.