Physlib

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

theorem

Df(scaleUnit(u2,u1,x))(v)=σ(u2,u1,d2)σ(u1,u2,d1)Df(x)(v)Df(\text{scaleUnit}(u_2, u_1, x))(v) = \sigma(u_2, u_1, d_2) \sigma(u_1, u_2, d_1) Df(x)(v)

Let M1M_1 and M2M_2 be physical vector spaces with dimensions d1d_1 and d2d_2 respectively. Let f:M1M2f: M_1 \to M_2 be a differentiable function that is dimensionally correct. For any two systems of unit choices u1u_1 and u2u_2, and for any point xM1x \in M_1 and direction vM1v \in M_1, the Fréchet derivative of ff evaluated at the scaled point x=scaleUnit(u2,u1,x)x' = \text{scaleUnit}(u_2, u_1, x) satisfies: Df(x)(v)=σ(u2,u1,d2)σ(u1,u2,d1)(Df(x)(v))Df(x')(v) = \sigma(u_2, u_1, d_2) \cdot \sigma(u_1, u_2, d_1) \cdot (Df(x)(v)) where σ(ui,uj,d)\sigma(u_i, u_j, d) is the scaling factor for a quantity of dimension dd when transitioning from unit system uiu_i to uju_j, and Df(x)(v)Df(x)(v) denotes the derivative of ff at xx in the direction vv.

theorem

If ff is dimensionally correct, then DfDf is dimensionally correct.

Let M1M_1 and M2M_2 be physical vector spaces. Let f:M1M2f : M_1 \to M_2 be a function that is differentiable over R\mathbb{R}. If ff is dimensionally correct, then its Fréchet derivative Df:M1(M1M2)Df : M_1 \to (M_1 \to M_2) is also dimensionally correct.

theorem

The relation Df(x)(v0)=vDf(x)(v_0) = v is dimensionally correct for fixed v0v_0 and vv with dimension d2d11d_2 \cdot d_1^{-1}

Let M1M_1 and M2M_2 be physical vector spaces with dimensions d1d_1 and d2d_2, respectively. Let f:M1M2f: M_1 \to M_2 be a differentiable function that is dimensionally correct. For a fixed vector v0M1v_0 \in M_1, the relation Df(x)(v0)=vDf(x)(v_0) = v is dimensionally correct, where xM1x \in M_1 (with dimension d1d_1) and vM2v \in M_2 is a quantity with dimension d2d11d_2 \cdot d_1^{-1}. Here Df(x)(v0)Df(x)(v_0) denotes the Fréchet derivative of ff at xx applied to the direction v0v_0.