Tensor[KroneckerDelta] - find the Kronecker delta tensor of rank r
Calling Sequences
KroneckerDelta(spatialType, r, fr)
Parameters
spatialType - a string, either "bas" or "vrt"
r - a non-negative integer
fr - (optional) the name of a defined frame
Description
Examples
The Kronecker delta tensor K of rank r is the type rr tensor which is defined as follows. Let I be the type 11 tensor whose components in any coordinate system are given by the identity matrix, that is, for any vector field IX=X. Then K is obtained from the r-fold tensor product of I fully skew-symmetrizing over all the covariant indices.
The command KroneckerDelta(spatialType, r) returns the rank r Kronecker delta tensor K of the type specified by indexType in the current frame unless the frame is explicitly specified.
This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form KroneckerDelta(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order. It can always be used in the long form DifferentialGeometry:-Tensor:-KroneckerDelta.
with⁡DifferentialGeometry:with⁡Tensor:
Example 1.
We create a 3 dimensional manifold M with coordinates x,y,z.
DGsetup⁡x,y,z,M:
Define the 3 different Kronecker delta tensors on M.
K1≔KroneckerDelta⁡bas,1
K1:=D_x⁢dx+D_y⁢dy+D_z⁢dz
K2≔KroneckerDelta⁡bas,2
K2:=D_x⁢D_y⁢dx⁢dy−D_x⁢D_y⁢dy⁢dx+D_x⁢D_z⁢dx⁢dz−D_x⁢D_z⁢dz⁢dx−D_y⁢D_x⁢dx⁢dy+D_y⁢D_x⁢dy⁢dx+D_y⁢D_z⁢dy⁢dz−D_y⁢D_z⁢dz⁢dy−D_z⁢D_x⁢dx⁢dz+D_z⁢D_x⁢dz⁢dx−D_z⁢D_y⁢dy⁢dz+D_z⁢D_y⁢dz⁢dy
K3≔KroneckerDelta⁡bas,3
K3:=−D_z⁢D_x⁢D_y⁢dx⁢dz⁢dy+D_z⁢D_x⁢D_y⁢dx⁢dy⁢dz−D_y⁢D_z⁢D_x⁢dz⁢dy⁢dx+D_z⁢D_y⁢D_x⁢dz⁢dy⁢dx+D_y⁢D_z⁢D_x⁢dz⁢dx⁢dy+D_y⁢D_z⁢D_x⁢dy⁢dz⁢dx−D_y⁢D_z⁢D_x⁢dy⁢dx⁢dz−D_y⁢D_z⁢D_x⁢dx⁢dz⁢dy+D_y⁢D_z⁢D_x⁢dx⁢dy⁢dz−D_z⁢D_y⁢D_x⁢dz⁢dx⁢dy+D_y⁢D_x⁢D_z⁢dz⁢dy⁢dx−D_y⁢D_x⁢D_z⁢dz⁢dx⁢dy−D_y⁢D_x⁢D_z⁢dy⁢dz⁢dx−D_z⁢D_y⁢D_x⁢dy⁢dz⁢dx+D_y⁢D_x⁢D_z⁢dy⁢dx⁢dz+D_y⁢D_x⁢D_z⁢dx⁢dz⁢dy−D_y⁢D_x⁢D_z⁢dx⁢dy⁢dz+D_x⁢D_z⁢D_y⁢dz⁢dy⁢dx−D_x⁢D_z⁢D_y⁢dz⁢dx⁢dy+D_z⁢D_y⁢D_x⁢dy⁢dx⁢dz−D_x⁢D_z⁢D_y⁢dy⁢dz⁢dx+D_x⁢D_z⁢D_y⁢dy⁢dx⁢dz+D_x⁢D_z⁢D_y⁢dx⁢dz⁢dy+D_z⁢D_y⁢D_x⁢dx⁢dz⁢dy−D_x⁢D_z⁢D_y⁢dx⁢dy⁢dz−D_x⁢D_y⁢D_z⁢dz⁢dy⁢dx+D_x⁢D_y⁢D_z⁢dz⁢dx⁢dy+D_x⁢D_y⁢D_z⁢dy⁢dz⁢dx−D_z⁢D_y⁢D_x⁢dx⁢dy⁢dz−D_x⁢D_y⁢D_z⁢dy⁢dx⁢dz−D_x⁢D_y⁢D_z⁢dx⁢dz⁢dy+D_x⁢D_y⁢D_z⁢dx⁢dy⁢dz−D_z⁢D_x⁢D_y⁢dz⁢dy⁢dx+D_z⁢D_x⁢D_y⁢dz⁢dx⁢dy+D_z⁢D_x⁢D_y⁢dy⁢dz⁢dx−D_z⁢D_x⁢D_y⁢dy⁢dx⁢dz
We check that the contraction of K3 gives a multiple of K2 and that the contraction of K2 gives a multiple of K1.
ContractIndices⁡K3,3,6&minusK2
0⁢D_x⁢D_x⁢dx⁢dx
ContractIndices⁡K2,2,4&minus2&multK1
0⁢D_x⁢dx
We check that K2 can be constructed from K1⊗K1 by rearranging the indices and by skew-symmetrization.
T0≔RearrangeIndices⁡K1&tensorK1,1,3,2,4
T0≔D_x⁢D_x⁢dx⁢dx+D_x⁢D_y⁢dx⁢dy+D_x⁢D_z⁢dx⁢dz+D_y⁢D_x⁢dy⁢dx+D_y⁢D_y⁢dy⁢dy+D_y⁢D_z⁢dy⁢dz+D_z⁢D_x⁢dz⁢dx+D_z⁢D_y⁢dz⁢dy+D_z⁢D_z⁢dz⁢dz
T≔2&multSymmetrizeIndices⁡T0,1,2,SkewSymmetric
T≔D_x⁢D_y⁢dx⁢dy−D_x⁢D_y⁢dy⁢dx+D_x⁢D_z⁢dx⁢dz−D_x⁢D_z⁢dz⁢dx−D_y⁢D_x⁢dx⁢dy+D_y⁢D_x⁢dy⁢dx+D_y⁢D_z⁢dy⁢dz−D_y⁢D_z⁢dz⁢dy−D_z⁢D_x⁢dx⁢dz+D_z⁢D_x⁢dz⁢dx−D_z⁢D_y⁢dy⁢dz+D_z⁢D_y⁢dz⁢dy
T&minusK2
Example 2.
We create a 2 dimensional vector bundle over E with fiber coordinates p,q.
DGsetup⁡x,y,z,p,q,E
frame name: E
Define the possible Kronecker delta tensors on the fibers of E.
K1≔KroneckerDelta⁡vrt,1
K1≔D_p⁢dp+D_q⁢dq
K2≔KroneckerDelta⁡vrt,2
K2≔D_p⁢D_q⁢dp⁢dq−D_p⁢D_q⁢dq⁢dp−D_q⁢D_p⁢dp⁢dq+D_q⁢D_p⁢dq⁢dp
See Also
DifferentialGeometry
Tensor
ContractIndices
RearrangeIndices
SymmetrizeIndices
PermutationSymbol
Physics[LeviCivita]
Physics[KroneckerDelta]
Download Help Document