Physlib

Physlib.Units.FDeriv

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)

#fderiv_apply_scaleUnit

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.

#fderiv_isDimensionallyCorrect

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}

#fderiv_dimension_const_direction

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.