DotSimplify[exp]
expands and reorders noncommutative
terms in exp. Simplifying relations may be specified by the option
DotSimplifyRelations
or by Commutator
and
AntiCommutator
definitions. Whether exp is expanded
noncommutatively depends on the option Expanding
.
Overview, AntiCommutator, Commutator, Calc.
[]
UnDeclareAllCommutators
[] UnDeclareAllAntiCommutators
[\[Mu]] . (2 GS[p] - GS[q]) . GA[\[Nu]]
GA
[%] DotSimplify
[a, b, c]
DeclareNonCommutative
a . (b - z c) . a
[%] DotSimplify
[a, c] = 1
Commutator
[a . (b - z c) . a] DotSimplify
[a, c] =.
Commutator
[a . (b - z c) . a] DotSimplify
[b, a] = c
AntiCommutator
[a . (b - z c) . a] DotSimplify
[b, a] =.
AntiCommutator
[a . (b - z c) . a, DotSimplifyRelations -> {a . c -> 1/z}] DotSimplify
[a, b, c]
UnDeclareNonCommutative
[x]
DeclareNonCommutative
[x . x . x] DotSimplify
[x . x . x, DotPower -> True]
DotSimplify
[x] UnDeclareNonCommutative
Check some relations between noncommutative expressions involving two operators and
[Q, P] DeclareNonCommutative
= (Q . Commutator[Q, P] + Commutator[Q, P] . Q)/2
lhs
= Commutator[Q, Q . P + P . Q]/2
rhs
[lhs - rhs]
DotSimplify
% // ExpandAll
[Q, P] = I; Commutator
Introduce the dilation operator from the affine quantization and verify that (cf. arXiv:2108.10713)
= (Q . P + P . Q)/2; DOp
[Q, DOp]
Commutator
% // DotSimplify // ExpandAll
[]
UnDeclareAllCommutators
[] UnDeclareAllAntiCommutators