Physlib

Physlib.Relativity.Tensors.RealTensor.Derivative

4 declarations

definition

Coordinate representation of a map ff between Lorentz tensors

#mapToBasis

Given a map f:RT(d,cm)RT(d,cn)f: \mathbb{R}T(d, c_m) \to \mathbb{R}T(d, c_n) between spaces of real Lorentz tensors in dimension dd with index structures cmc_m and cnc_n, `realLorentzTensor.mapToBasis f` is the induced map on their coordinate representations. Specifically, it takes a function α:ComponentIdx(cm)R\alpha: \text{ComponentIdx}(c_m) \to \mathbb{R} representing the scalar components of a tensor, maps it back to an element of the tensor space RT(d,cm)\mathbb{R}T(d, c_m) using the canonical basis, applies ff, and then extracts the scalar components of the resulting tensor as a function β:ComponentIdx(cn)R\beta: \text{ComponentIdx}(c_n) \to \mathbb{R}.

definition

Lorentz tensor derivative f\partial f

#derivative

Given a function f:RT(d,cm)RT(d,cn)f: \mathbb{R}T(d, c_m) \to \mathbb{R}T(d, c_n) between spaces of real Lorentz tensors of dimension dd with index structures cmc_m and cnc_n, its derivative f\partial f is a function that maps a tensor yRT(d,cm)y \in \mathbb{R}T(d, c_m) to a new tensor of higher rank. The resulting tensor space has an index structure formed by concatenating the dual colors of the input indices cmc_m (representing the indices of the derivative operator \partial) with the original output colors cnc_n. Specifically, for any yRT(d,cm)y \in \mathbb{R}T(d, c_m), the component of the tensor (f)(y)(\partial f)(y) corresponding to the combined multi-index (bin,bout)(b_{in}, b_{out}) is given by the Fréchet derivative of the boutb_{out}-th component of ff in the direction of the binb_{in}-th basis vector of the domain, evaluated at yy. In coordinate form, this represents the Jacobian matrix of the components of ff: ((f)(y))bin,bout=fboutybin(y) ((\partial f)(y))_{b_{in}, b_{out}} = \frac{\partial f_{b_{out}}}{\partial y_{b_{in}}}(y) where binb_{in} are the indices associated with the dualized input colors τ(cm)\tau(c_m) and boutb_{out} are the indices associated with cnc_n.

definition

Notation \partial for the Lorentz tensor derivative

#term∂

The symbol \partial is defined as the notation for the derivative operator `realLorentzTensor.derivative`. This operator acts on functions f:RT(d,cm)RT(d,cn)f: \mathbb{R}T(d, c_m) \to \mathbb{R}T(d, c_n) between spaces of real Lorentz tensors, where dd is the spacetime dimension and cm,cnc_m, c_n describe the tensor indices. The derivative f\partial f results in a new tensor-valued function whose output rank is increased by the dual of the indices of the domain.

theorem

Coordinate Representation of the Lorentz Tensor Derivative f\partial f

#derivative_repr

Let d,n,md, n, m be natural numbers representing the spacetime dimension and the ranks of the Lorentz tensors. Let cm:{0,,m1}Colorc_m: \{0, \dots, m-1\} \to \text{Color} and cn:{0,,n1}Colorc_n: \{0, \dots, n-1\} \to \text{Color} be sequences of Lorentz tensor colors. For a function f:RT(d,cm)RT(d,cn)f: \mathbb{R}T(d, c_m) \to \mathbb{R}T(d, c_n) and a tensor yRT(d,cm)y \in \mathbb{R}T(d, c_m), suppose the coordinate representation of ff is differentiable at the coordinates of yy. Then, for any multi-index bb belonging to the component index set of the concatenated color sequence τ(cm)+ ⁣+cn\tau(c_m) \mathbin{+\!+} c_n (where τ\tau denotes the dual color), the bb-th component of the Lorentz tensor derivative (f)(y)(\partial f)(y) is equal to the Fréchet derivative of the boutb_{out}-th component of the function ff in the direction of the binb_{in}-th basis vector of the domain, evaluated at the coordinates of yy. Mathematically, if bb is identified with the pair (bin,bout)(b_{in}, b_{out}) via the isomorphism ComponentIdx(τ(cm)+ ⁣+cn)ComponentIdx(τ(cm))×ComponentIdx(cn)\text{ComponentIdx}(\tau(c_m) \mathbin{+\!+} c_n) \cong \text{ComponentIdx}(\tau(c_m)) \times \text{ComponentIdx}(c_n), the relation is: [(f)(y)]b=fboutybin(y) [(\partial f)(y)]_b = \frac{\partial f_{b_{out}}}{\partial y_{b_{in}}}(y) where the right-hand side is the directional derivative of the boutb_{out}-th coordinate of ff with respect to the binb_{in}-th coordinate of the input.