SquareMapping
This component is classified under the category of Mappings.
In this particular mapping, we designate the input as the parent state and the output as the child state.
Mapping Function
The transformation function employed in this mapping is the square function. Formally, if \(f\) denotes the mapping function, then for any input \(x\), the output \(f(x)\) is \(x^2\).
Mathematically, this can be expressed as:
for all \(x\) in the domain.
Jacobian Matrix
The Jacobian matrix of this mapping, which represents the first-order partial derivatives of the output with respect to the input, is not constant, and depends on the input.
The elements of the Jacobian matrix are given by: $$ J_{ij} = \frac{\partial f_i}{\partial x_j} = \delta_{ij} 2 x_j $$
This can be written in matrix form as:
Here, \(\text{diag}(x)\) denotes a diagonal matrix with the elements of \(x\) on the diagonal.
Since the Jacobian matrix is diagonal, its transpose is equal to itself:
Hessian Tensor
The Hessian tensor represents the second-order partial derivatives of the output with respect to the input. For the SquareMapping component, the Hessian tensor is non-zero because the Jacobian matrix depends on the input \(x\).
The elements of the Hessian tensor are given by:
Then, for any vector \(v\)
In matrix notation, this can be written as:
Implementation Details
Given the nature of the mapping function, the mapping is defined only if the input and output are scalar DoFs.
It means, the only available template for this mapping is Vec1.