Physlib.Units.FDeriv
Dimensional invariance of fderiv
In this module we prove that the derivative is dimensionally correct. That is to say for a function `f : M1 → M2` where `M1` carries dimensions `d1` and `M2` carries dimension `d2` such that `f` has the correct dimension, then `fderiv ℝ f : M1 → M1 →L[ℝ] M2` has the correct dimensions.
To give an explicit example let us say `M1` has dimension `L𝓭` and `M2` has dimension `L𝓭 * L𝓭` and `f : M1 → M2 : x ↦ x ^ 2`, this is dimensionally correct. The `fderiv` of this `fderiv ℝ f : M1 → M1 →L[ℝ] M2` takes `x dx ↦ dx • (2 * x)` which is still dimensionally correct. Here `dx` is the direction in which the derivative is taken.
3 declarations
Let and be physical vector spaces with dimensions and respectively. Let be a differentiable function that is dimensionally correct. For any two systems of unit choices and , and for any point and direction , the Fréchet derivative of evaluated at the scaled point satisfies: where is the scaling factor for a quantity of dimension when transitioning from unit system to , and denotes the derivative of at in the direction .
If is dimensionally correct, then is dimensionally correct.
Let and be physical vector spaces. Let be a function that is differentiable over . If is dimensionally correct, then its Fréchet derivative is also dimensionally correct.
The relation is dimensionally correct for fixed and with dimension
Let and be physical vector spaces with dimensions and , respectively. Let be a differentiable function that is dimensionally correct. For a fixed vector , the relation is dimensionally correct, where (with dimension ) and is a quantity with dimension . Here denotes the Fréchet derivative of at applied to the direction .
