Tensor[SymmetrizeIndices] - symmetrize or skew-symmetrize a list of tensor indices
Calling Sequences
SymmetrizeIndices(T, Indices, keyword)
Parameters
T - a tensor
Indices - a list of integers, referring to the arguments of T
keyword - a keyword string, either "Symmetric" or "SkewSymmetric"
Description
Examples
We illustrate the conventions for this program by describing some simple special cases. Let X,Y,Z be vectors. If T is a rank 3 covariant tensor, then the result of symmetrizing T over its first 2 arguments is the tensor UX,Y,Z=12TX,Y,Z+TY,X,Z. The result of skew-symmetrizing T over its 1st and 3rd arguments is the tensor VX,Y,Z=12 TX,Y,Z−TZ,Y,X . The symmetrization of T over all its indices is the tensor WX,Y,Z=16TX,Y,Z +TY,X,Z+TZ,Y,X + ...,where the sum contains 6 terms involving all possible permutations of the arguments X,Y,Z. In general, the symmetrization over n arguments involves a normalization factor 1n!.
SymmetrizeIndices(T, Indices, keyword) will symmetrize or skew-symmetrize the tensor T over the arguments given by the Indices list. Note that all the elements of the Indices list must refer to indices of the same tensor index type.
SymmetrizeIndices acts as a projection operator -- two applications of SymmetrizeIndices to the same tensor gives the same result as a single application.
This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form SymmetrizeIndices(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order. It can always be used in the long form DifferentialGeometry:-Tensor:-SymmetrizeIndices.
with⁡DifferentialGeometry:with⁡Tensor:
Example 1.
First create a 4 dimensional manifold M and define a rank 5 tensor T on M.
DGsetup⁡u,v,x,y,M:
T≔evalDG⁡du&tdv&tD_x&tdx&tD_y
T:=du⁢dv⁢D_x⁢dx⁢D_y
Symmetrize T over its 1st and 2nd arguments.
T1≔SymmetrizeIndices⁡T,1,2,Symmetric
T1:=12⁢du⁢dv⁢D_x⁢dx⁢D_y+12⁢dv⁢du⁢D_x⁢dx⁢D_y
Skew-symmetrize T over its 1st, 2nd and 4th arguments.
T2≔SymmetrizeIndices⁡T,1,2,4,SkewSymmetric
T2:=16⁢du⁢dv⁢D_x⁢dx⁢D_y−16⁢du⁢dx⁢D_x⁢dv⁢D_y−16⁢dv⁢du⁢D_x⁢dx⁢D_y+16⁢dv⁢dx⁢D_x⁢du⁢D_y+16⁢dx⁢du⁢D_x⁢dv⁢D_y−16⁢dx⁢dv⁢D_x⁢du⁢D_y
Note that SymmetrizeIndices acts as a projection operator.
SymmetrizeIndices⁡T2,1,2,4,SkewSymmetric&minusT2
0⁢du⁢du⁢D_u⁢du⁢D_u
See Also
DifferentialGeometry
Tensor
RearrangeIndices
Download Help Document