Physlib

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

definition

Matrix divergence matrixDiv T\text{matrixDiv } T

For a matrix-valued field T:Space dRd×dT : \text{Space } d \to \mathbb{R}^{d \times d}, the matrix divergence matrixDiv T\text{matrixDiv } T is a vector-valued function from Space d\text{Space } d to Rd\mathbb{R}^d. At any point xSpace dx \in \text{Space } d, its ii-th component is defined as the divergence of the ii-th row of the matrix field TT: (matrixDiv T)i(x)=j=0d1Tijxj(x)(\text{matrixDiv } T)_i(x) = \sum_{j=0}^{d-1} \frac{\partial T_{ij}}{\partial x_j}(x) where Tij(x)T_{ij}(x) denotes the entry in the ii-th row and jj-th column of the matrix T(x)T(x), and xj\frac{\partial}{\partial x_j} is the partial derivative with respect to the jj-th spatial coordinate.

theorem

The ii-th component of the matrix divergence (matrixDiv T)i(\text{matrixDiv } T)_i

Let dd be a natural number representing the dimension of the space. For any matrix-valued field T:Space dRd×dT: \text{Space } d \to \mathbb{R}^{d \times d}, any point xSpace dx \in \text{Space } d, and any index i{0,,d1}i \in \{0, \dots, d-1\}, the ii-th component of the matrix divergence evaluated at xx is equal to the sum of the partial derivatives of the ii-th row entries with respect to their corresponding column indices: (matrixDiv T)i(x)=j=0d1Tijxj(x)(\text{matrixDiv } T)_i(x) = \sum_{j=0}^{d-1} \frac{\partial T_{ij}}{\partial x_j}(x) where TijT_{ij} is the function xT(x)ijx \mapsto T(x)_{ij} and xj\frac{\partial}{\partial x_j} denotes the partial derivative with respect to the jj-th spatial coordinate.

theorem

matrixDiv 0=0\text{matrixDiv } 0 = 0

For any dimension dNd \in \mathbb{N}, the matrix divergence of the zero matrix-valued function T:Space dRd×dT : \text{Space } d \to \mathbb{R}^{d \times d} (defined such that T(x)=0T(x) = 0 for all xSpace dx \in \text{Space } d) is the zero vector field.

theorem

The Matrix Divergence of a Constant Function is Zero

For any dimension dNd \in \mathbb{N} and any constant matrix TRd×dT \in \mathbb{R}^{d \times d}, the matrix divergence of the constant matrix-valued function f(x)=Tf(x) = T is the zero vector field: matrixDiv(xT)=0.\text{matrixDiv}(x \mapsto T) = 0. Here, xTx \mapsto T represents a function from Space d\text{Space } d that takes any point xx to the constant matrix TT.

theorem

matrixDiv(T1+T2)=matrixDiv T1+matrixDiv T2\text{matrixDiv}(T_1 + T_2) = \text{matrixDiv } T_1 + \text{matrixDiv } T_2

For a natural number dd, let T1,T2:Space dRd×dT_1, T_2 : \text{Space } d \to \mathbb{R}^{d \times d} be two differentiable matrix-valued functions. Then the matrix divergence of their sum is equal to the sum of their individual matrix divergences: matrixDiv(T1+T2)=matrixDiv T1+matrixDiv T2\text{matrixDiv}(T_1 + T_2) = \text{matrixDiv } T_1 + \text{matrixDiv } T_2

theorem

matrixDiv(kT)=kmatrixDiv(T)\text{matrixDiv}(k \cdot T) = k \cdot \text{matrixDiv}(T)

Let dd be a natural number and Space d\text{Space } d be the dd-dimensional flat Euclidean space. For any real scalar kk and any differentiable matrix-valued field T:Space dRd×dT : \text{Space } d \to \mathbb{R}^{d \times d}, the matrix divergence of the scalar multiple kTk \cdot T is equal to kk times the matrix divergence of TT: matrixDiv(kT)=kmatrixDiv(T)\text{matrixDiv}(k \cdot T) = k \cdot \text{matrixDiv}(T) where matrixDiv\text{matrixDiv} is the operator that maps a matrix field to a vector field whose ii-th component is the sum of the partial derivatives of the ii-th row entries, i.e., (matrixDiv T)i=j=0d1jTij(\text{matrixDiv } T)_i = \sum_{j=0}^{d-1} \partial_j T_{ij}.