Derivations applied entrywise to matrices #
A derivation D of a commutative algebra A acts on matrices over A entry by entry, through
Matrix.map. This entrywise action satisfies the Leibniz rule for matrix multiplication,
(M * N).map D = M.map D * N + M * N.map D, because each entry of a product is a sum of products of
entries.
A consequence is used to show that trace polynomials are invariant: if D acts on a square matrix
M as the commutator with some matrix B, so M.map D = B * M - M * B, then it acts on every
power M ^ m as the commutator with the same B. Since D commutes with the trace and the trace
of a commutator vanishes, D then kills every trace (M ^ m).trace.
Let S be an A-algebra with a basis b, and let D' be a derivation of S extending D, in
the sense that D' (algebraMap A S a) = algebraMap A S (D a). Then D' acts on coordinates in
b as D plus the connection matrix Γ whose columns are the coordinates of the D' (b q).
Consequently D, applied entrywise to the matrix of multiplication by s, gives the matrix of
multiplication by D' s plus the commutator of the matrix of s with Γ.
Main results #
Derivation.map_matrix_mul: the Leibniz rule for the entrywise action on matrix products.Derivation.map_matrix_pow_of_map_eq_mul_sub_mul: ifDacts onMas the commutator withB, it acts on each power ofMas the commutator withB.Derivation.trace_pow_eq_zero_of_map_eq_mul_sub_mul: under the same hypothesis,Dkills the traces of the powers ofM.Derivation.basis_repr_apply: the coordinates ofD' xin a basis, for a derivationD'extendingD.Derivation.map_leftMulMatrix: the entrywise derivative of the matrix of multiplication.
The Leibniz rule for matrices: a derivation applied entrywise to a product of matrices is
M.map D * N + M * N.map D.
If a derivation acts on a square matrix M as the commutator with B, then it acts on every
power of M as the commutator with B.
If a derivation acts on a square matrix M as the commutator with B, then it kills the
trace of every power of M.
In a basis b, the coordinates of D' x are the derivatives of the coordinates of x plus
the connection term ∑ r, b.repr x r * b.repr (D' (b r)) p.
In a basis b, the entrywise derivative of the matrix of multiplication by s is the matrix
of multiplication by D' s plus the commutator of that matrix with the connection matrix of
D' in b.