Physlib.SpaceAndTime.Space.Derivatives.MatrixDiv
Matrix divergence on Space
i. Overview
In this module we define the matrix divergence operator on matrix-valued functions from `Space d`.
For a field `T : Space d → Matrix (Fin d) (Fin d) ℝ`, the matrix divergence is the vector field whose `i`th component is
`∑ j, ∂[j] (fun x => T x i j) x`.
ii. Key results
- `matrixDiv` : The divergence of a matrix-valued function on `Space d`.
iii. Table of contents
- A. The matrix divergence on functions - A.1. Basic equalities - A.2. The matrix divergence on the zero function - A.3. The matrix divergence on a constant function - A.4. The matrix divergence distributes over addition - A.5. The matrix divergence distributes over scalar multiplication
iv. References
A. The matrix divergence on functions
A.1. Basic equalities
A.2. The matrix divergence on the zero function
A.3. The matrix divergence on a constant function
A.4. The matrix divergence distributes over addition
A.5. The matrix divergence distributes over scalar multiplication
6 declarations
Matrix divergence
For a matrix-valued field , the matrix divergence is a vector-valued function from to . At any point , its -th component is defined as the divergence of the -th row of the matrix field : where denotes the entry in the -th row and -th column of the matrix , and is the partial derivative with respect to the -th spatial coordinate.
The -th component of the matrix divergence
Let be a natural number representing the dimension of the space. For any matrix-valued field , any point , and any index , the -th component of the matrix divergence evaluated at is equal to the sum of the partial derivatives of the -th row entries with respect to their corresponding column indices: where is the function and denotes the partial derivative with respect to the -th spatial coordinate.
For any dimension , the matrix divergence of the zero matrix-valued function (defined such that for all ) is the zero vector field.
The Matrix Divergence of a Constant Function is Zero
For any dimension and any constant matrix , the matrix divergence of the constant matrix-valued function is the zero vector field: Here, represents a function from that takes any point to the constant matrix .
For a natural number , let be two differentiable matrix-valued functions. Then the matrix divergence of their sum is equal to the sum of their individual matrix divergences:
Let be a natural number and be the -dimensional flat Euclidean space. For any real scalar and any differentiable matrix-valued field , the matrix divergence of the scalar multiple is equal to times the matrix divergence of : where is the operator that maps a matrix field to a vector field whose -th component is the sum of the partial derivatives of the -th row entries, i.e., .
