Physics for Maple 2021 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Physics : Updates : Physics for Maple 2021

Physics

Maple provides a state-of-the-art environment for algebraic computations in Physics, with emphasis on ensuring that the computational experience is as natural as possible. The theme of the Physics project for Maple 2021 has been the consolidation of the functionality introduced in previous releases, together with significant enhancements in the areas of Particle Physics, Quantum Mechanics, Tensor computations and General Relativity.

As part of its commitment to providing the best possible computational environment in Physics, Maplesoft launched a Maple Physics: Research and Development website in 2014, which enabled users to download research versions of the package, ask questions, and provide feedback. The results from this accelerated exchange have been incorporated into the Physics package in Maple 2021. The presentation below illustrates both the novelties and the kind of mathematical formulations that can now be performed.

 

Feynman Diagrams and Feynman Integrals

Simplification of products of Dirac matrices

Manipulation and simplification of expressions involving non-commutative tensor operators

Functional differentiation and differentiation of spinors

New commands ToCovariant and ToContravariant

Weyl scalars, Petrov types and canonical forms for tetrads

Documentation advanced examples

Miscellaneous

See Also

Feynman Diagrams and Feynman Integrals

Feynman Diagrams are the cornerstone of calculations in particle physics (collisions involving from the proton to the Higgs boson), for example at the CERN. As an introduction for people not working in the area, see "Why Feynman Diagrams are so important". In connection, Maple 2020 presented a full rewriting of the FeynmanDiagrams command including a myriad of new capabilities.

In Maple 2021, in addition, we implemented:

• 

New options in the FeynmanDiagrams command, to handle the typical situation where one wants to study scattering amplitudes using different gauge choices for the fields' propagators; or a generic form of a propagator, useful to perform the computation with models that require a non-standard form for them; or request that the propagators used are displayed on the screen above the returned result; or computing the amplitudes without external legs normalization factors.

• 

A new FeynmanIntegral module to evaluate the Feynman integrals that appear in the output of the FeynmanDiagrams command, including package's commands for the basic steps involved, that is: to Parametrize or to Evaluate in one go, with different options, all the Feynman integrals found in an expression typically returned by FeynmanDiagrams.

Examples - new FeynmanDiagrams options

restart; withPhysics:

New: you can set a vector and and a mixed spacetime-spinor field (i.e. 3/2 spinor). In this example, indicate also that Aμ is massless

Setupcoordinates=X,spinorindices=lowercaselatin,anticommutativeprefix=Q,op=A,Q, massless = A,tensors=Qμ,a, Aμ

* Partial match of 'op' against keyword 'quantumoperators'

* Partial match of 'massless' against keyword 'masslessfields'

Systems of spacetime coordinates are:X=x1,x2,x3,x4

_______________________________________________________

anticommutativeprefix=Q,coordinatesystems=X,masslessfields=A,quantumoperators=A,Q,spinorindices=lowercaselatin,tensors=Aμ,γμ,σμ,Qμ,a,μ,gμ,ν,εα,β,μ,ν,Xμ

(1)

Now write down a minimal interaction Lagrangian, similar but different from QED, for testing purposes

Lαγμμa,iγννi,jγρρj,bQμ,aX&conjugate0;Qρ,bXAνX:

Compute the amplitude for a process where there are 1 incoming and 1 outgoing particles of the same Q kind; this is the self-energy diagram:

FeynmanDiagramsL,incomingparticles=Q,outgoing=Q,,numberofloops=1,diagrams

uQα,cP__1uQβ,dP__2&conjugate0;gλ,τα2γκκl,eγββd,kγττk,lγααn,cγσσf,mγλλm,ngκ,σP__1κ+p__2κP__1σ+p__2σm__Q2P__1υ+p__2υγυυe,f+m__Qδe,f+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,fδP__2+P__18π3p__22+IεP__1+p__22m__Q2+Iεⅆp__2 4

(2)

In this result, there are two things that are new in FeynmanDiagrams:

a) it can now handle 3/2 spinor fields, with 1 spacetime and 1 spinor indices;

b) it is now setting the gauge for the massless field Aμ in a way that can be changed.

 

To see all that, we implemented a new userinfo message, so that one can see, exactly, the form of the propagator being used. Set the corresponding infolevel as follows and run the computation again (skip producing the diagram's drawing)

infolevelFeynmanDiagrams  3:

FeynmanDiagramsL,incomingparticles=Q,outgoing=Q,numberofloops=1

Propagator used: ΔAλp__2,Aτp__2=−Igλ,τp__22+Iε

Propagator used: ΔQκ,eP__1+p__2,Q1σ,fP__1p__2=Igκ,σP__1κ+p__2κP__1σ+p__2σm__Q2P__1υ+p__2υγυυe,f+m__Qδe,f+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,fP__1+p__22m__Q2+Iε

uQα,cP__1uQβ,dP__2&conjugate0;gλ,τα2γκκl,eγββd,kγττk,lγααn,cγσσf,mγλλm,ngκ,σP__1κ+p__2κP__1σ+p__2σm__Q2P__1υ+p__2υγυυe,f+m__Qδe,f+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,fδP__2+P__18π3p__22+IεP__1+p__22m__Q2+Iεⅆp__2 4

(3)

In the user-information presented above in black, we see the form used for the propagator ΔQκ,eP__1+p__2,Q1σ,fP__1p__2 of the 3/2 spin Qμ,a field, and ΔAλp__2,Aτp__2 for the Aμ field including the gauge used for it. For that, FeynmanDiagrams is now using a gauge term of the form 1ξAp__2λp__2τp__22+Iε where ξA is set to 1, 0,  or to ξA itself,  respectively for the Feynman, Landau unitary and arbitrary gauges. By default the Feynman and unitary gauges are respectively used for massless and massive fields. For example, to run the same computation using the Landau gauge, you can use the new propagatorgauge option:

FeynmanDiagramsL,incomingparticles=Q,outgoing=Q,numberofloops=1, gauge=Landau

* Partial match of 'gauge' against keyword 'propagatorgauge'

Propagator used: ΔAλp__2,Aτp__2=Igλ,τ+p__2λp__2τp__22+Iεp__22+Iε

Propagator used: ΔQκ,eP__1+p__2,Q1σ,fP__1p__2=Igκ,σP__1κ+p__2κP__1σ+p__2σP__1+p__22+IεP__1υ+p__2υγυυe,f+m__Qδe,f+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,fP__1+p__22m__Q2+Iε

uQα,cP__1uQβ,dP__2&conjugate0;gλ,τ+p__2λp__2τp__22+Iεα2γκκl,eγββd,kγττk,lγααn,cγσσf,mγλλm,ngκ,σP__1κ+p__2κP__1σ+p__2σP__1+p__22+IεP__1υ+p__2υγυυe,f+m__Qδe,f+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,fδP__2+P__18π3p__22+IεP__1+p__22m__Q2+Iεⅆp__2 4

(4)

In the user-information presented above you see the different form used for the propagator ΔAλp__2,Aτp__2.

The arbitrary value of propagatorgauge option makes the value of ξA remain unset, so that you can set the gauge afterwards, possibly differently for each field, depending on convenience

FeynmanDiagramsL,incomingparticles=Q,outgoing=Q,numberofloops=1, gauge=arbitrary

* Partial match of 'gauge' against keyword 'propagatorgauge'

Propagator used: ΔAλp__2,Aτp__2=Igλ,τ+1ξAp__2λp__2τp__22+Iεp__22+Iε

Propagator used: ΔQκ,eP__1+p__2,Q1σ,fP__1p__2=Igκ,σ1ξQP__1κ+p__2κP__1σ+p__2σP__1+p__22ξQm__Q2+IεP__1υ+p__2υγυυe,f+m__Qδe,f+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,fP__1+p__22m__Q2+Iε

uQα,cP__1uQβ,dP__2&conjugate0;gλ,τ+1ξAp__2λp__2τp__22+Iεα2γκκl,eγββd,kγττk,lγααn,cγσσf,mγλλm,nδP__2+P__1P__1υ+p__2υγυυe,f+m__Qδe,fgκ,σP__1κ+p__2κP__1σ+p__2σ1ξQP__1+p__22ξQm__Q2+Iε-1+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,f8π3p__22+IεP__1+p__22m__Q2+Iεⅆp__2 4

(5)

Note in the result above the occurrence of gauge fixing terms ξA and ξQ for each of the fields. These are implemented as FeynmanDiagrams:-xifield where field is any of A or Q. For example, you can now substitute each of them according to convenience, e.g. set the Feynman gauge for the massless field Aμ and the Landau gauge for the Qμ,a field

subsFeynmanDiagrams:-xiA=1, FeynmanDiagrams:-xiQ=0, 

uQα,cP__1uQβ,dP__2&conjugate0;gλ,τα2γκκl,eγββd,kγττk,lγααn,cγσσf,mγλλm,nδP__2+P__1P__1υ+p__2υγυυe,f+m__Qδe,fgκ,σP__1κ+p__2κP__1σ+p__2σ1P__1+p__22+Iε+P__1κ+p__2κδe,g3m__Q+γκe,g3P__1υ+p__2υγυυg,hm__Qδg,hP__1σ+p__2σδf,hm__Q+γσh,f8π3p__22+IεP__1+p__22m__Q2+Iεⅆp__2 4

(6)

 

An extra level of flexibility is given by the new option usepropagators which, when set to false, makes FeynmanDiagrams return the abstract form ΔQκ,eP__1+p__2,Q1σ,fP__1p__2 instead of any specific form for the propagator

FeynmanDiagramsL,incomingparticles=Q,outgoing=Q,numberofloops=1, usepropagators = false

uQα,cP__1uQβ,dP__2&conjugate0;α2γκκj,eγββd,iγττi,jγααh,cγσσf,gγλλg,hδP__2+P__1ΔAλp__2,Aτp__2ΔQκ,eP__1+p__2,Qσ,fP__1p__28π3ⅆp__2 4

(7)

In this result, ΔAλp__2,Aτp__2is implemented as a new FeynmanDiagrams:-Propagator function; there are two occurrences

indets,FeynmanDiagrams:-Propagatoranything,anything

ΔAλp__2,Aτp__2,ΔQκ,eP__1+p__2,Qσ,fP__1p__2

(8)

Finally, the convention is to add a normalization factor for each external leg (incoming or outgoing particle). That external normalization depends on the spin of the field [3]. For example, in the result (7) above, that is the origin of the factor 8π3 in the denominator. In some contexts, however, it is usual or convenient to compute without these normalization factors. For that purpose you can use the new option, externalnormalization = false 

FeynmanDiagramsL,incomingparticles=Q,outgoing=Q,numberofloops=1, usepropagators = false,externalnormalization = false

uQα,cP__1uQβ,dP__2&conjugate0;α2γκκj,eγββd,iγττi,jγααh,cγσσf,gγλλg,hδP__2+P__1ΔAλp__2,Aτp__2ΔQκ,eP__1+p__2,Qσ,fP__1p__2ⅆp__2 4

(9)

Examples - new FeynmanIntegral module

restart;withPhysics:

Setupcoordinates=X,quantumoperators=φ

Systems of spacetime coordinates are:X=x1,x2,x3,x4

_______________________________________________________

coordinatesystems=X,quantumoperators=φ

(10)

Let L be the interaction Lagrangian

LλφX3

LλφX3

(11)

A process with one incoming and one outgoing particle a 1-loop

FeynmanDiagramsL,incomingparticles=φ,outgoingparticles=φ,numberofloops=1,diagrams

9λ2δP__2+P__18π3E__1E__2p__22m__φ2+IεP__1+p__22m__φ2+Iεⅆp__2 4

(12)

Load the package

withFeynmanIntegral

Evaluate,ExpandDimension,FromAbstractRepresentation,Parametrize,Series,SumLookup,TensorBasis,TensorReduce,ToAbstractRepresentation,ε,ϵ

(13)

Parametrize the Feynman integral (12) using Feynman parameters

Parametrize

(14)

The Evaluate command is used to evaluate Feynman integrals. In the following input, we request for the momentum integration to not be performed, receiving, basically, the result above but with the integrations over the Feynman parameters swapped with the one over momentum

Evaluate,parametrizedform

(15)

By default, however, Evaluate will perform the momentum integration ⅆp__2 4 but in in D2ϵ dimensions, so that its divergences get expressed as poles of Gamma functions, and also the Feynman parameters integration, returning a result in terms of the dimensional parameter ϵ 

 Evaluate 

9I8π1ϵλ2δP__2+P__1n=0m__φ2ϵ2nΓϵ+nP__12nΓn+1Γ2n+2E__1E__2

(16)

To see how this integral can be evaluated step by step until arriving at this result, see the help page Evaluate. The dimensional parameter is represented by FeynmanIntegral:-varepsilon and, because the FeynmanIntegral package is loaded, you can refer to it directly as varepsilon. To expand the dimensional parameter, keeping terms up to Oϵ, use

ExpandDimension 

9I8λ2δP__2+P__1πE__1E__2ϵ−1+9I8λ2δP__2+P__1γ+2lnm__φn=1ΓnP__12nΓn+1m__φn2Γ2n+2+lnπE__1E__2π+Oϵ

(17)

The same integral can be computed using alpha parameters

Evaluate,parameters = alpha

* Partial match of 'parameters' against keyword 'kindofparameters'

9λ2δP__2+P__1−14ϵπ2ϵ00ⅇ2Im__φ2α__12+I2α__2P__124α__2m__φ2+ϵππα__1+Iα__22α__2m__φ2+π1+ϵ2α__1+2α__2α__1+α__22+ϵⅆα__1ⅆα__28π3E__1E__2

(18)

The Parametrize also work using the α-parameters

Parametrize,kindofparameters = alpha

(19)

References

  

[1] Smirnov, V.A., Feynman Integral Calculus. Springer, 2006.

  

[2] Weinzierl, S., The Art of Computing Loop Integrals, https://arxiv.org/abs/hep-ph/0604068v1

  

[3] Weinberg, S., The Quantum Theory Of Fields. Cambridge University Press, 2005.

  

[4] Bogoliubov, N.N., and Shirkov, D.V. Quantum Fields. Benjamin Cummings, 1982.

Simplification of products of Dirac matrices

The simplification of products of Dirac matrices got stronger in Maple 2021 in several ways. As an example, set σμ,ν as a quantum operator (noncommutative) tensor proportional to the commutator of Dirac matrices

restart:withPhysics: 

Setupop = sigma, tensors=sigmaμ,ν

* Partial match of 'op' against keyword 'quantumoperators'

_______________________________________________________

quantumoperators=σ,tensors=γμ,σμ,μ,gμ,ν,σμ,ν,εα,β,μ,ν

(20)

Enter the definition of σμ,νμ,ν

Defineσμ,νμ,ν=I γμμγννγννγμμ2

Defined objects with tensor properties

γμ,σμ,μ,gμ,ν,σμ,ν,εα,β,μ,ν

(21)

Consider proving the following value for the commutator σμ,νμ,ν,σα,βα,β

Commutatorσμ,νμ,ν,σα,βα,β = 2 Igν,αν,ασμ,βμ,βgμ,αμ,ασν,βν,β+gμ,βμ,βσν,αν,αgν,βν,βσμ,αμ,α

σμ,νμ,ν,σα,βα,β=2Igα,μα,μσβ,νβ,νgα,να,νσβ,μβ,μgβ,μβ,μσα,να,ν+gβ,νβ,νσα,μα,μ

(22)

Insert σ's definition in this expression

sigmadefinition

σμ,νμ,ν=I2γμμγννγννγμμ

(23)

SubstituteTensorsigmadefinition,

I2γμμγννγννγμμ,I2γααγββγββγαα=2IIgα,μα,μγββγννγννγββ2Igα,να,νγββγμμγμμγββ2Igβ,μβ,μγααγννγννγαα2+Igβ,νβ,νγααγμμγμμγαα2

(24)

Expand the commutator and all the products

Expand

γββγννγααγμμ2+γννγββγμμγαα2γββγααγμμγνν2+γααγββγμμγνν2+γννγββγααγμμ2+γααγμμγββγνν2+γμμγααγννγββ2+γμμγααγββγνν2γααγννγββγμμ2γννγααγμμγββ2γννγααγββγμμ2γμμγββγννγαα2γμμγββγααγνν2γααγββγννγμμ2+γββγααγννγμμ2γββγμμγααγνν2=gα,μα,μγββγνν+gα,μα,μγννγββ+gα,να,νγββγμμgα,να,νγμμγββ+gβ,μβ,μγααγννgβ,μβ,μγννγααgβ,νβ,νγααγμμ+gβ,νβ,νγμμγαα

(25)

Proving that, in this expression, the left-hand side is equal to the right-hand side involves the simplification of sums of products of four (on the left-hand side) and of two (on the right-hand side) Dirac matrices taking into account the algebra rules they satisfy

Library:-DefaultAlgebraRulesDirac

γμ,γν+=2gμ,ν

(26)

In Maple 2021, this simplification can be performed in one go by taking the left-hand side minus the right-hand side and sending that to the simplifier

Simplifylhsrhs

0

(27)

This simplification can now also be performed in steps. Take the commutator on the left-hand side of (22)

lhs

σμ,νμ,ν,σα,βα,β

(28)

Expand

σμ,νμ,νσα,βα,βσα,βα,βσμ,νμ,ν

(29)

SubstituteTensorsigmadefinition,

I2γμμγννγννγμμI2γααγββγββγααI2γααγββγββγααI2γμμγννγννγμμ

(30)

Although this intermediate result (30) involves products of four Dirac matrices, their combination is such that the result can be expressed in terms of products of only two of matrices

Simplify

2gβ,νβ,νγααγμμ+2gβ,μβ,μγααγνν2gα,να,νγμμγββ+2gα,μα,μγννγββ

(31)

This result is different from the expanded form of the right-hand side of (22)

ExpandSubstituteTensorsigmadefinition,rhs

gα,μα,μγββγνν+gα,μα,μγννγββ+gα,να,νγββγμμgα,να,νγμμγββ+gβ,μβ,μγααγννgβ,μβ,μγννγααgβ,νβ,νγααγμμ+gβ,νβ,νγμμγαα

(32)

The Simplifier, however, can not only prove that (31) - (32) is equal to zero but can also depart from (32) and arrive at (31)

Simplify

2gβ,νβ,νγααγμμ+2gβ,μβ,μγααγνν2gα,να,νγμμγββ+2gα,μα,μγννγββ

(33)

That is so because, in Maple 2021, a new normal form for the ordering in products of noncommutative operators got implemented. The computation above also indicates that there are two different kinds of simplifications at work here: one that maps a sum or products of four Dirac matrices into simpler products of also four matrices, and another one that maps onto a sum of products of two Dirac matrices. To see that, consider again the expanded form (30) of the commutator σμ,νμ,ν,σα,βα,β

γμμγννγννγμμγααγββγββγαα4+γααγββγββγααγμμγννγννγμμ4

(34)

The default approach maps the sum of products of four Dirac matrices into products of two Dirac matrices using the algebra rules they satisfy

Simplify

2gβ,νβ,νγααγμμ+2gβ,μβ,μγααγνν2gα,να,νγμμγββ+2gα,μα,μγννγββ

(35)

One can also use those algebra rules to only sort the products with some preferred ordering as pivot (new option in Simplify), resulting in products of also four matrices

Simplify,ordering=γαα,γββ,γμμ,γνν

γμμγννγααγββ+γααγββγμμγνν

(36)

This result is not just an expansion of (34),

Expand

γμμγννγααγββ4+γμμγννγββγαα4+γννγμμγααγββ4γννγμμγββγαα4+γααγββγμμγνν4γααγββγννγμμ4γββγααγμμγνν4+γββγααγννγμμ4

(37)

but the result of sorting first all the products in (34), using the algebra rules γμ,γν+=2gμ,ν and only then expand

SortProducts,γαα,γββ,γμμ,γνν

γααγββγμμγννγββ,γμμγνν+gα,βα,βγμμγννgμ,νμ,νgα,βα,β+gμ,νμ,νγααγββ+γαα,γμμγννγββ+2γααγββ2gα,βα,β2γμμγνν2gμ,νμ,ν4

(38)

Expand

γμμγννγααγββ+γααγββγμμγνν

(39)

Proving identities is a key - sometimes, as in this case related to Dirac matrices - non-trivial operation. Another way of verifying identities like (22) is to compute all the components of the tensorial equation,

Expand@lhs  rhs  

σμ,νμ,νσα,βα,βσα,βα,βσμ,νμ,ν2Igα,μα,μσβ,νβ,νgα,να,νσβ,μβ,μgβ,μβ,μσα,να,ν+gβ,νβ,νσα,μα,μ

(40)

each of which is, in turn, a 4 x 4 matrix. If the identity is true, for each value of each of the four spacetime free indices α,β,μ,ν, we expect that, performing all the matricial operations, we get for result a matrix 4 x 4 matrix of zeros. That computation can be performed with TensorArray using its option performmatrixoperations

TensorArray, performmatrixoperations, output = setofequations

0000000000000000=0

(41)

So the identity is true. Note that 44=256 resulting matrices. This computation for each value of the four spacetime indices can be displayed so compactly because of using the option output = setofequations, and repeated elements in a set are automatically removed. Thus, the 256 matrices of zeros, each of which is equal to 0, appear as only one.

As a more challenging computation, less of a black box, one can express everything in (40) in terms of Dirac matrices

ExpandSubstituteTensorsigmadefinition,

γμμγννγααγββ4+γμμγννγββγαα4+γννγμμγααγββ4γννγμμγββγαα4+γααγββγμμγνν4γααγββγννγμμ4γββγααγμμγνν4+γββγααγννγμμ4+gα,μα,μγββγννgα,μα,μγννγββgα,να,νγββγμμ+gα,να,νγμμγββgβ,μβ,μγααγνν+gβ,μβ,μγννγαα+gβ,νβ,νγααγμμgβ,νβ,νγμμγαα

(42)

For each of the four values of each if the four indices α,β,μ,ν, use now the underlying Dirac matrices

Library:-RewriteInMatrixFormDgamma~

γμμ=000100100−100−1000000−I00I00I00−I0000010000−1−100001001000010000−10000−1

(43)

and compute all of the 4 x 4 x 4 x 4 matrices that result from multiplying the four and two Dirac matrices in each term of (42) (that is what TensorArray did, internally, to compute the result (41))

TensorArray, performmatrixoperations, output = setofequations

0000000000000000=0

(44)

Manipulation and simplification of expressions involving non-commutative tensor operators

Significant improvements under the hood happened regarding of simplification in the presence of non-commutative tensor operators. The simplifications need to take into account commutator rules, symmetries under permutation of indices of tensorial subexpressions, and use Einstein's sum rule for repeated indices. Related to that, Maple 2021 includes relevant enhancements in the Simplify, SubstituteTensor and SortProducts commands.

With these developments in place, it is now possible, for example, to systematically derive, step-by-step, the SO(4) symmetry of the hydrogen atom and its spectrum entering only the main definition formulas, followed by only simplification commands, and without using previous knowledge of the result. A presentation of this work is now in the arXiv and is submitted for publication in the journal Computer Physics Communications as a novel way of tackling these kinds of problems using computers.

In brief, deriving the SO(4) symmetry of the hydrogen atom is about deriving the following four commutator rules between its Hamiltonian H, the angular momentum tensor Lm and the Runge-Lenz tensor Zn,

H,Ln

=

0

H,Zn

=

0

Lm,Zn

=

 εm,n,oZo

Zm,Zn

=

2  m__eH εm,n,oLo

where for hermiticity purpose Lm is defined in quantum mechanics as the symmetrized form

Z=12 m__e L×pp×L+κ rr

Since H commutes with both L and Z, defining

M__n=m__e2HZ__n,

these commutation rules can be rewritten as

Lm,Ln

=

 εm,n,oLo

Lm,Mn

=

 εm,n,oMo

Mm,Mn

=

  εm,n,oLo

This set constitutes the Lie algebra of the SO(4) group. As an illustration of the computational capabilities in Maple 2021, in what follows we derive the first two of these commutators, H,Ln=H,Zn=0, departing from basic principles and followed by applying only a few simplification commands to equation labels.

Setting the problem

Formulating the problem requires loading the Physics package, and we set the imaginary unit to be represented by a lowercase Latin i letter instead of the default uppercase I.

restart; withPhysics:interfaceimaginaryunit = i:

The context for this problem is Cartesian coordinates and a 3D Euclidean space where all of ,κ,m__e are real objects. We chose lowercase letters to represent tensor indices and the use of automatic simplification (i.e., automatically simplify the size of everything being displayed)

Setupcoordinates = cartesian, realobjects=ℏ,κ,m__e,automaticsimplification=true,dimension = 3, metric=Euclidean,spacetimeindices = lowercaselatin, quiet

automaticsimplification=true,coordinatesystems=X,dimension=3,metric=1,1=1,2,2=1,3,3=1,realobjects=,κ,m__e,x,y,z,spacetimeindices=lowercaselatin

(45)

Next, we set the quantum Hermitian operators (not Z, we derive that property for it further below) and related commutators:

– 

the dimensionless potential  V = 1r is assumed to commute with position, not with momentum - the commutation rule with pk is derived further below;

– 

the commutator rules between position Xn on the one hand, and linear pk and angular momentum Lk on the other hand, are the departure point, entered using the inert form of the Commutator command. Tensors are indexed using the standard Maple notation for indexation, [].

Setupquantumoperators=Z,hermitianoperators = V,H,L,X,p,algebrarules=     %Commutatorpk,pl=0,     %CommutatorXk,pl=ℏg_k,l,     %CommutatorLj, Lk = LeviCivitaj, k, nLn,     %Commutatorpj,Lk=ℏLeviCivitaj, k, npn,     %CommutatorXj,Lk=ℏLeviCivitaj, k, nXn,     %CommutatorXk,VX=0

algebrarules=Lj,Lk=εj,k,nLn,pj,Lk=εj,k,npn,pk,pl=0,Xj,Lk=εj,k,nXn,Xk,pl=gk,l,Xk,VX=0,hermitianoperators=H,L,V,p,x,y,z,quantumoperators=H,L,V,Z,p,x,y,z

(46)

Define the tensor quantum operators representing the linear momentum, angular momentum and the Runge-Lenz vectors

Definepk,Lk,Zk,quiet

γa,Lk,σa,Zk,a,ga,b,pk,εa,b,c,Xa

(47)

For readability, avoid redundant display of functionality

CompactDisplayV,GX

VXwill now be displayed asV

GXwill now be displayed asG

(48)

The Hamiltonian for the hydrogen atom is entered as

H=pl22m__eκVX

H=pl22m__eκV

(49)

Definition of V(X) and related identities

We use the dimensionless potential VX

VX=1Xl212

V=Xl212

(50)

The gradient of VX is

d_n

nV=Xl232Xn

(51)

where we note that all these commands (including product and power), distribute over equations. So that

subsrhs=lhs3,

nV=V3Xn

(52)

Equivalently, from (50) one can deduce V3Xl2=V that will be used afterwards

rhs=lhsVX32

V3Xl2=V

(53)

The commutation rules between linear and angular momentum and of the potential V(X)

By definition

Lq = LeviCivitaq,m,nXm pn

Lq=εm,n,qXmpn

(54)

so, since the system knows about Xk,VX=0, we get

Commutator,VX

Lq,V=εm,n,qXmpn,V

(55)

To derive the value of pn,V, as usual in paper and pencil computations we set pn as a differentialoperator and introduce an arbitrary test function GX

Setupdifferentialoperators=pk,x,y,z

differentialoperators=pk,X

(56)

Applying now to GX the differential operator pn found in the commutator of the right-hand side of (55) 

lhs=Library:-ApplyProductsOfDifferentialOperators@rhsGX

Lq,VG=εm,n,qXmpnVGVpnG

(57)

where ApplyProductsOfDifferentialOperators is a command of the Physics:-Library. The result of plGX is not known to the system at this point. Define then an explicit representation for pn as the differential operator in configuration space pn=i ℏ n

p  u   i ℏd_opprocnameu

pu−ⅈopprocnameu

(58)

where in the above opprocname represents the index with which the differential operator pn is called.With this definition, the right-hand side of (57)  automatically evaluates to

Lq,VG=−ⅈεm,n,qXmnVG

(59)

So that using (52)nV=V3Xn and multiplying by GX1,

SubstituteTensor,GX1

Lq,V=εm,n,qXmV3Xn

(60)

from where we get the first commutation rule:

Simplify

Lq,V=0

(61)

Likewise, from the inert = active form of pq,VX

%Commutator=Commutatorpq,VX

pq,V=pq,V

(62)

by applying this equation to the test function GX we get

lhs=Library:-ApplyProductsOfDifferentialOperators@rhsGX

pq,VG=−ⅈqVG

(63)

SubstituteTensor,GX1

pq,V=V3Xq

(64)

In the same way, for pq,V3  we get

%Commutator=Commutatorpq,VX3

pq,V3=pq,V3

(65)

lhs=Library:-ApplyProductsOfDifferentialOperators@rhsGX

pq,V3G=−ⅈqVV2+VqVV+V2qVG

(66)

SubstituteTensor,GX1

pq,V3=V3XqV2+V4XqV+V5Xq

(67)

lhs=Simplify@rhs

pq,V3=3V5Xq

(68)

Adding now these new commutation rules to the setup of the problem, they will be taken into account in subsequent uses of Simplify

,,

Lq,V=0,pq,V=V3Xq,pq,V3=3V5Xq

(69)

Setup

algebrarules=Lj,Lk=εj,k,nLn,Lq,V=0,pj,Lk=εj,k,npn,pk,pl=0,pq,V=V3Xq,pq,V3=3V5Xq,Xj,Lk=εj,k,nXn,Xk,pl=gk,l,Xk,V=0

(70)

Undo differentialoperators to work using two different approaches, with and without them.

Setupdifferentialoperators=none

differentialoperators=none

(71)

Commutation rules between the Hamiltonian and each of the angular momentum and Runge-Lenz tensors

Departing from the Hamiltonian  (49)H=pl22 m__eκV and the definition of angular momentum (54)Lq=εm,n,qXmpn, by taking their commutator we get

Commutator,

H,Lq=−ⅈεm,n,qXmV3Xnκm__e+plpngl,mm__e

(72)

Simplify

H,Lq=0

(73)

That is one of the two commutators we wanted to derive. For the commutator between the Hamiltonian and Runge-Lenz tensor, start from its definition

Zk=12 m__eLeviCivitaa,b,kLapbpaLb+κVXXk

Zk=εa,b,kLapbpaLb2m__e+κVXk

(74)

This tensor is Hermitian

Dagger

ZkZk=2κVXkm__e2κXkVm__e+εa,b,kLapb+LbpapaLbpbLa2m__e

(75)

Simplify

ZkZk=0

(76)

Since the system knows about the commutation rule between linear and angular momentum,

%Commutator = CommutatorLa, pb

La,pb=εa,b,npn

(77)

the expression (74) for Zk can be simplified

Simplify

Zk=pkm__e+κVXkεa,b,kpaLbm__e

(78)

and the angular momentum removed from the the right-hand side using (54)Lq=εm,n,qXmpn, so that Zk gets expressed entirely in terms of pk, X and V

SimplifySubstituteTensor,

Zk=pk+κVXkm__eXkpm2+Xmpkpmm__e

(79)

Taking the commutator between (49)H=pl22 m__eκV, and this expression for Zk we have the starting point towards showing that H,Zk=0

2  m__eκℏ SimplifyCommutator,

2m__eH,Zkκ=V3Xk+V5Xa2Xk2pkV+2VXaXkpaV22XaXkpaV3+2Xa2pkV3

(80)

In order to use the identities

, VX2 

V3Xl2=V,V5Xl2=V3

(81)

we sort the products using the ordering shown in the left-hand sides

SortProducts,VX5,VX3,Xa2

2m__eH,Zkκ=V3Xk5V5Xa2Xk2pkV+2VXaXkpaV22XaXkpaV3+2V3Xa2pk

(82)

SubstituteTensor,

2m__eH,Zkκ=4V3Xk2pkV+2VXaXkpaV22XaXkpaV3+2Vpk

(83)

Simplify

2m__eH,Zkκ=2V3XkV5Xa2Xk

(84)

κℏ2m__e SubstituteTensor,

H,Zk=0

(85)

And this is the second commutator we wanted to derive.

Functional differentiation and differentiation of spinors

• 

In Maple 2021 you can compute derivatives, and functional derivatives of spinor fields and with respect to them.

restart;withPhysics:

For illustration purposes set an anticommutative prefix and use lowercase Latin letters to represent spinor indices

Setupanticommutativeprefix = psi, spinorindices=lowercase

anticommutativeprefix=ψ,spinorindices=lowercaselatin

(86)

Load the library of physics types

withLibrary:-PhysicsType:

 

Any anticommutative variable with spinor indices is now recognized by the system as a Dirac spinor

typeψa,DiracSpinor

true

(87)

The conjugate, or Dagger too

typeψa&conjugate0;,DiracSpinor

true

(88)

typeψa,DiracSpinor

true

(89)

To simplify expressions involving ψa using Einstein's sum rule for repeated indices, indicate to the system that ψa is a tensor

Defineψa

Defined objects with tensor properties

γμ,σμ,μ,gμ,ν,ψa,εα,β,μ,ν

(90)

You can now compute derivatives of expressions involving spinors with respect spinors according to

%diff =diffpsia,psib

ψbψa=δa,b

(91)

%diff =diffconjugatepsia,conjugatepsib

ⅆⅆψ&conjugate0;bψ&conjugate0;a=δa,b

(92)

%diff =diffDaggerpsia,Daggerpsib

ⅆⅆψbψa=δa,b

(93)

Conjugate or Dagger functions are considered independent from the functions they are applied on

%diff =diffDaggerpsia,psib

ⅆⅆψbψa=0

(94)
• 

In addition to standard derivatives, you can now compute functional derivatives with respect to spinor functions. Consider, for example, an interaction Lagrangian where ψμ,a is of anticommutative type, but now a 3/2 spinor field (with one spacetime and one spinor indices), and in the Lagrangian there is a quantum vector field Aμ

Setupcoordinates = X,Y,op = A, tensors=ψmu,a,Amu

* Partial match of 'op' against keyword 'quantumoperators'

Systems of spacetime coordinates are:X=x1,x2,x3,x4,Y=y1,y2,y3,y4

_______________________________________________________

coordinatesystems=X,Y,quantumoperators=A,tensors=Aμ,γμ,σμ,μ,gμ,ν,ψμ,a,εα,β,μ,ν,Xμ,Yμ

(95)

The Lagrangian is

Lαγμμa,iγννi,jγρρj,bψμ,aX&conjugate0;ψρ,bXAνX

Lαγμμa,iγννi,jγρρj,bψμ,aX&conjugate0;ψρ,bXAνX

(96)

In this Lagrangian, α is a coupling constant, γμμ are the Dirac matrices and ψμ,a&conjugate0; represents the Dirac conjugate of the ψμ,a spinor field. The vertex factor in the Feynman rules for this Lagrangian can now be computed using functional differentiation using the ordering the fields appear in the noncommutative product in (96), that is

 %FundiffL,ψα,cY&conjugate0;, ψβ,kY,AσY  = FundiffL,ψα,cY&conjugate0;, ψβ,kY,AσY  

δδAσYδδψβ,kYδδψα,cY&conjugate0;αγμμa,iγννi,jγρρj,bψμ,aX&conjugate0;ψρ,bXAνX=αγμμa,iγννi,jγρρj,bδ4x1y1,x2y2,x3y3,x4y43δμαμαδa,cδρβρβδb,kδνσνσ

(97)

Check the indices of both sides of this result

Check  ,all

The products in the given expression check ok.

The repeated indices per term are: ...,...,..., the free indices are: ...

a,b,i,j,μ,ν,ρ,c,k,~alpha,~beta,~sigma=a,b,i,j,μ,ν,ρ,c,k,~alpha,~beta,~sigma

(98)

In the following example, the scattering amplitude of a process with two incoming and outgoing particles of the ψ and A types at  tree-level, the vertex factors are computed using functional differentiation as shown above in (97)

FeynmanDiagramsL,incomingparticles=ψ,A,outgoing=ψ,A,numberofloops=0,diagrams

Iuψα,cP__1ϵAβP__2uψκ,dP__3&conjugate0;ϵAλP__4&conjugate0;α2γσσl,eγκκd,kγλλk,lγααn,cγττf,mγββm,ngσ,τP__1σ+P__2σP__1τ+P__2τm__ψ2P__1υ+P__2υγυυe,f+m__ψδe,f+P__1σ+P__2σδe,g3m__ψ+γσe,g3P__1υ+P__2υγυυg,hm__ψδg,hP__1τ+P__2τδf,hm__ψ+γτh,fδP__3χχP__4χχ+P__1χχ+P__2χχ8π2E__2E__4P__1ω+P__2ωP__1ωω+P__2ωωm__ψ2+Iε+Iuψα,cP__1ϵAβP__2uψκ,dP__3&conjugate0;ϵAλP__4&conjugate0;α2γσσl,eγκκd,kγββk,lγααn,cγττf,mγλλm,ngσ,τP__1σP__4σP__1τP__4τm__ψ2P__1υP__4υγυυe,f+m__ψδe,f+P__1σP__4σδe,g3m__ψ+γσe,g3P__1υP__4υγυυg,hm__ψδg,hP__1τP__4τδf,hm__ψ+γτh,fδP__3χχP__4χχ+P__1χχ+P__2χχ8π2E__2E__4P__1ωP__4ωP__1ωωP__4ωωm__ψ2+Iε

(99)
• 

It is possible to functionally differentiate a product of noncommutative functions using a different ordering than the one of the product provided that the commutation rules between the functions are known. For example, for the Lagrangian L , you can set the commutation rules for Aμ and ψα,j as follows, without indicating the functionality, so that the rules are valid in general

Setup%CommutatorAμ,Aν=0,%Commutatorψmu,a,Anu=0

algebrarules=Aμ,Aν=0,ψμ,a,Aν=0

(100)

Then you have, for any X or Y,

%Commutator = CommutatorAmuX, psinu,aY

AμX,ψν,aY=0

(101)

Avoid repeated display of functionality with

CompactDisplayA,ψX

AXwill now be displayed asA

ψXwill now be displayed asψ

(102)

The functional derivatives of L with regards to each of the fields

%Fundiff%L,AαY = FundiffL,AαY

δδAαYL=αγμμa,iγννi,jγρρj,bδ4x1y1,x2y2,x3y3,x4y4δναναψμ,a&conjugate0;ψρ,b

(103)

%Fundiff%L,ψα,jY = FundiffL,ψα,jY

δδψα,jYL=αγμμa,iγννi,cγρρc,bδ4x1y1,x2y2,x3y3,x4y4δραραδb,jψμ,a&conjugate0;Aν

(104)

%Fundiff%L,ψα,jY&conjugate0; = FundiffL,ψα,jY&conjugate0;

δδψα,jY&conjugate0;L=αγμμa,iγννi,cγρρc,bδ4x1y1,x2y2,x3y3,x4y4δμαμαδa,jψρ,bAν

(105)

New commands ToCovariant and ToContravariant

When working with tensors in spaces where the covariant and contravariant tensor's components have a different value (the underlying metric is not Euclidean) one frequently wants to express formulations with some or all of the tensors's indices expressed either in covariant or contravariant form. In previous Maple releases, also in Maple 2021, you can raise or lower free indices multiplying by the metric and performing the contraction. That, however, involves a whole simplification process not always desired, and does not result in flipping the character of repeated indices. To handle the whole manipulation operation, in Maple 2021 there are two new commands: ToCovariant and ToContravariant.


Examples

Consider the following tensorial expression

restart; withPhysics:

Setupcoordinates = cartesian, tensors = Aμ

Systems of spacetime coordinates are:X=x,y,z,t

_______________________________________________________

coordinatesystems=X,tensors=Aμ,γμ,σμ,μ,gμ,ν,εα,β,μ,ν,Xμ

(106)

CompactDisplayAX

AXwill now be displayed asA

(107)

Fμ,ν = d_muAnuX  d_nuAmuX

Fμ,ν=μAννAμ

(108)

Define

Defined objects with tensor properties

Aμ,γμ,Fμ,ν,σμ,μ,gμ,ν,εα,β,μ,ν,Xμ

(109)

The components of Fμ,ν are

F

Fμ,ν=0A2xA1yA3xA1zA4xA1tA1yA2x0A3yA2zA4yA2tA1zA3xA2zA3y0A4zA3tA1tA4xA2tA4yA3tA4z0

(110)

New in Maple 2021: when you request the contravariant components of a tensor definition as Fμ,νμ,ν, the output is expressed using the contravariant components of the tensors involved, in this case Aμμ

F~

Fμ,νμ,ν=0A22x+A11yA33x+A11zA44xA11tA11y+A22x0A33y+A22zA44yA22tA11z+A33xA22z+A33y0A44zA33tA11t+A44xA22t+A44yA33t+A44z0

(111)

Consider now an expression that has free and repeated indices, for example

DefineA,B,G

Defined objects with tensor properties

B,G,Aμ,γμ,Fμ,ν,σμ,μ,gμ,ν,εα,β,μ,ν,Xμ

(112)

Bβ Gν,α AαFμ,ν + Gρ,α BαFμ,ρ Aβ

AβGρ,αFμρμρBαα+BβGν,αAααFμνμν

(113)

There are several tensors with covariant indices, and the free and repeated indices are

Check,all

The repeated indices per term are: ...,...,..., the free indices are: ...

α,ρ,α,ν,β,μ

(114)

 

where we see the free indices are μ and β, both covariant. To have all the tensors in (113) (but for the metric) with all their indices contravariant, use

ToContravariant   

gβ,κBκκgν,σgα,τGσ,τσ,τAααgλ,μFλ,νλ,ν+gβ,νAννgλ,ρgα,σGλ,σλ,σgκ,μFκ,ρκ,ρBαα

(115)

indets ,specindexG,A,B,F 

Aαα,Aνν,Bαα,Bκκ,Fκ,ρκ,ρ,Fλ,νλ,ν,Gλ,σλ,σ,Gσ,τσ,τ

(116)

Note this result is mathematically equal to (113)- all what happened in (115) is that the covariant versions were replaced by the contravariant ones at the cost of adding metric factors, so

Simplify   

0

(117)

Likewise,

ToCovariant   

AβGρ,αgκ,ρκ,ρFμ,κgα,να,νBν+BβGν,αgα,κα,κAκgλ,νλ,νFμ,λ

(118)

indets ,specindexG,A,B,F 

Aβ,Aκ,Bβ,Bν,Fκ,μ,Fλ,μ,Gν,α,Gρ,α

(119)

This type of manipulation is relevant in different contexts. For example, when computing the TensorArray of components of a tensorial expression, that result in expressed using the contravariant (or covariant) components of the tensors involved.

You can selectively apply these two commands command using its options onlytheseindices, for example to have only the index μ expressed in contravariant form use

ToContravariant,onlytheseindices=μ

AβGρ,αgμ,νFν,ρν,ρBαα+BβGν,αAααgκ,μFκ,νκ,ν

(120)

A similar operation, which however results in an expression that is not mathematically equal to the departing one is that where we want to flip the character of the free indices, optionally also of the repeated indices. For example, in (113) and (115) μ is covariant, but suppose we want to raise it turning it contravariant

 ToContravariant ,changecharacter 

* Partial match of 'changecharacter' against keyword 'changecharacteroffreeindices'

BββGν,αAααFμ,νμ,ν+AββGρ,αFμ,ρμ,ρBαα

(121)

So now the free indices μ and β are both contravariant

Check ,free 

The free indices are: ...

~beta,~mu

(122)

 

Gν,αgα,βα,βAβFμνμν+Gρ,αFμρμρgα,να,νBν

(123)

Or, selectively,

ToContravariant ,changecharacter, onlytheseindices = μ  

* Partial match of 'changecharacter' against keyword 'changecharacteroffreeindices'

AβGρ,αFμ,ρμ,ρBαα+BβGν,αAααFμ,νμ,ν

(124)

Check ,free 

The free indices are: ...

β,~mu

(125)

Compare (124) with the different forms of the same expression

ToContravariant ,onlytheseindices=μ

AβGρ,αgμ,νFν,ρν,ρBαα+BβGν,αAααgκ,μFκ,νκ,ν

(126)

ToContravariant , changecharacter,contractwiththemetric

* Partial match of 'changecharacter' against keyword 'changecharacteroffreeindices'

gβ,νβ,νgκ,μκ,μAνGρ,αFκρκρBαα+gβ,κβ,κgλ,μλ,μBκGν,αAααFλνλν

(127)

Weyl scalars, Petrov types and canonical forms for tetrads

In spite of recent advances in General Relativity, the computation of Petrov types, Weyl scalars and canonical forms for tetrads (mappings between a general spacetime and a local Galilean system of references) continue to be key in the classification of solutions to Einstein's equations and for establishing equivalences between two given spacetimes. For these purposes, Maple's Physics includes a subpackage, Tetrads, with all the relevant related functionality.

 

In previous Maple releases, and also in Maple 2021, once the spacetime metric gμ,ν and the tetrad 𝔢μ,a are set (using Setup), the entering Petrov  and Weylscalars returns the respective results for that metric and tetrad set. Also, a change in the signature, or using a textbook reference that shows a tetrad derived for a different signature frequently resulted in puzzling situations, where what is expected to be a tetrad does not verify the tetrad's defining equations.

 

Both situations are addressed in Maple 2021 so that problems with the signature are easily detected and easily corrected, and experiment with different forms of the tetrads and Weyl scalars can now all be performed without setting the tetrad.

 

For these purposes, in Maple 2021:

• 

We added a a new command, WeylScalars, to the Tetrads package;

• 

extended PetrovType and TransformTetrad to handle different forms of the tetrads even if they are not set;

• 

extended the IsTetrad command to produce helpful and directly usable messages in the typical situation where we input what we thing is a correct tetrad, but that is true only if we change the signature or the position of the time-like component in the list of coordinates;

• 

extended the Redefine command so that it also redefines tetrads according to indicated changes in the signature.

 

Examples

In a recent question in MaplePrimes, one of the spacetime (metric) solution to Einstein's equations, from chapter 27 of the book of Exact Solutions to Einstein's equations [1] was discussed. One of the issues was about computing a tetrad for the book's solution [27, 37, 1] such that the corresponding Weyl scalars are in canonical form.

The Maple 2021 developments in this area allows for clearly reviewing the problem as follows.

restart; withPhysics:

The starting point is this image of page 421 of the book of Exact Solutions to Einstein's equations, formulas (27.37)

 

Load the corresponding solution [27, 37, 1] from Maple's database of solutions to Einstein's equations

g_27,37,1

_______________________________________________________

Systems of spacetime coordinates are:X=z,zb,r,u

Default differentiation variables for d_, D_ and dAlembertian are:X=z,zb,r,u

The Robinson and Trautman (1962) metric in coordinates z,zb,r,u

Parameters: Pz,zb,u,HX

Comments: aⅆmⅈts gⅇoⅆⅇsⅈc, shⅇarfrⅇⅇ, twⅈstfrⅇⅇ null congruⅇncⅇ, rho=-1/r=rho_b

Resetting the signature of spacetime from - - - + to + + + - in order to match the signature in the database of metrics

_______________________________________________________

Setting lowercaselatin_is letters to represent space indices

gμ,ν=0r2Pz,zb,u200r2Pz,zb,u2000000−100−12HX

(128)

CompactDisplay

HXwill now be displayed asH

Pz,zb,uwill now be displayed asP

(129)

The assumptions on the metric's parameters are

AssumePz,zb,u>0, HXreal,r0:

 

The line element is as shown in the second line of the book's image above

g_lineelement

2r2ⅆzⅆzbP22ⅆrⅆu2Hⅆu2

(130)

Load Tetrads

withTetrads:

_______________________________________________________

Setting lowercaselatin_ah letters to represent tetrad indices

Defined as tetrad tensors see ?Physics,tetrads, 𝔢a,μ, ηa,b, γa,b,c, λa,b,c

Defined as spacetime tensors representing the NP null vectors of the tetrad formalism see ?Physics,tetrads, lμ, nμ, mμ, m&conjugate0;μ

_______________________________________________________

(131)

The Petrov type of this spacetime solution is

PetrovType

II

(132)

The null tetrad computed by the Maple system using a general algorithms is

Setuptetrad = null:

e_

𝔢a,μ=−IrP000001H2+114HH2+114000H2+1140−IrP00

(133)

 

According to the help page TransformTetrad, the canonical form of the Weyl scalars for each different Petrov type is

So for type II, when the tetrad is in canonical form, we expect only Ψ__2 and Ψ__3 different from 0. For the tetrad computed automatically, however, the scalars are not in canonical form:

Weylscalars

ψ__0=PHz,zP+2HzPzr2H2+1,ψ__1=I2Hr,zP2rPu,zrP2P2Hz+PuPzrPr2H2+114,ψ__2=Hr,rr22Hrr2Pz,zbP+2PzPzb+2H6r2,ψ__3=0,ψ__4=0

(134)

The question is, thus, how to bring the tetrad 𝔢a,μ (equation (133)) into canonical form. 

The plan for that is outlined in Chapter 7, by Chandrasekhar, page 388, of the book "General Relativity, an Einstein centenary survey", edited by S.W. Hawking and W.Israel. In brief, for Petrov type II, use a transformation of use Class2 to make Ψ0= Ψ__1=0, then a transformation of Class1 making Ψ4=0, finally use a transformation of Class3 making Ψ3=1. For an explanation of these transformations see the help page for TransformTetrad. This plan, however, is applicable if and only if the starting tetrad results in ψ__40, which we see in (134) it is not the case, so we need, in addition, before applying this plan, to perform a transformation of Class1 making ψ__40.

 

In what follows, first we use TransformTetrad with the optional argument canonicalform to perform all the calculation in one step. This problem was out of reach in previous Maple releases and is now tractable in different ways in Maple 2021.

Next, we use the prescription, step by step, as outlined in Chapter 7, by Chandrasekhar, page 388, of the book "General Relativity, an Einstein centenary survey", edited by S.W. Hawking and W.Israel. The possibility of performing a step by step computation as shown below is also new in Maple 2021, and illustrates well how to get the result exploiting the new, advanced functionality.

 

All the transformations performed automatically, in one go

To arrive in one go to a tetrad whose Weyl scalars are in canonical form as shown in the table above, use the optional argument canonicalform:

T__5  TransformTetradcanonicalform:

The resulting tetrad got assigned to T5 and is not displayed because of its length:

 lengthT__5 

56845

(135)

New in Maple 2021, the command WeylScalars can compute the Weyl scalars without having to set the tetrad (as in T5) first. That is convenient to see if the result obtained is indeed what we want, even when at this point the tetrad is different from T5:

e_  

𝔢a,μ=−IrP000001H2+114HH2+114000H2+1140−IrP00

(136)

So, instead of having to set the tetrad, this new WeylScalars directly receives T5 as an argument and performs the calculation

WeylScalarsT__5

ψ__0=0,ψ__1=0,ψ__2=Hr,rr22Hrr2Pz,zbP+2PzPzb+2H6r2,ψ__3=1,ψ__4=0

(137)

We see, comparing with the table before (134), that this is the expected form of these scalars, so T5 is indeed a tetrad in canonical form.

 

The transformations, step-by-step, leading to the same canonical form (137) of the Weyl scalars

In brief, the plan outlined by Chandrasekhar in Chap.7 is: for Petrov type II, use a transformation of Class2 to make Ψ0= Ψ__1=0, then a transformation of Class1 making Ψ4=0, finally use a transformation of Class3 making Ψ3=1. For an explanation of these transformations see the help page for TransformTetrad. The plan is applicable if and only if the starting tetrad results in ψ__40, which we see in (137) is not the case, so we need, in addition, before following this plan, to perform a transformation of Class1 making ψ__40.


It is possible to start from the tetrad (133) and the Weyl scalars (134), which however have radicals, against readability. Without loss of generality, we use instead, as departing tetrad, a version of it free of radicals as shown in the book of solutions to Einstein's equations, that is

e_a,mu=00010rPz,zb,u00rPz,zb,u000001HX

𝔢a,μ=000−10rP00rP00000−1H

(138)

IsTetrad

Type of tetrad: null

true

(139)

You can use the new WeylScalars corresponding to this book's tetrad (138), and see they are are free of radicals but not in canonical form, using

WeylScalars

ψ__0=PHz,zP+2HzPzr2,ψ__1=Hr,zP2rPu,zrP2P2Hz+PuPzr2r2P,ψ__2=Hr,rr22Hrr2Pz,zbP+2PzPzb+2H6r2,ψ__3=0,ψ__4=0

(140)

Set this tetrad simpler than (136) as the starting point

Setup

tetrad=1,4=−1,2,2=rP,3,1=rP,4,3=−1,4,4=H

(141)

Step 0

Since in (140)  ψ4=0 , in this step we use a transformation of Class1, that introduces a complex parameter E. To get ψ__40 any value of E suffices; we use E=1

TransformTetradnullrotationwithfixedl_

IrP0−IE&conjugate0;−IE&conjugate0;H00−I−IHIErPIE&conjugate0;rP−IE&conjugate0;EIE&conjugate0;EHI0IrP−IE−IEH

(142)

T__0  eval,E=1

T__0IrP0−I−IH00−I−IHIrPIrP−IIHI0IrP−I−IH

(143)

The new WeylScalars allows to check the transition to canonical form step by step. For example, in this step, T0 resulted in a tetrad, Ψ__40 as expected

WeylScalarsT__01

ψ__4=2Hr,zP2r+Hz,zP3+2HzPzP2+Hr,rPr24P2Hz2Pz,zbP2+2PzPzbP2Pu,zrP2HrPr+2PuPzr+2HPr2P

(144)

Step 1

Next is a transformation of Class__2 to make Ψ__0=0. For Petrov type II that also implies on Ψ__1=0. This transformation introduces a parameter B (see TransformTetrad) that, according to the plan outlined by Chandrasekhar, should be set as one of the two identical roots (out of four) of the principalpolynomial. To see the principal polynomial, or, directly, its roots you can use the PetrovType command:

PetrovTypeprincipalroots = 'R'

II

(145)

The pair of identical roots is equal to -1

R1..2

−1,−1

(146)

So the transformed tetrad T__1 , taken at B equal to this multiple root, is

T__1  evalTransformTetradT__0, nullrotationwithfixedn_,B=1

T__10rP01000−1rP01HrP000

(147)

Check the corresponding Weyl scalars: we now have Ψ__0=0 and Ψ__1=0

WeylScalarsT__11..2

ψ__0=0,ψ__1=0

(148)

Step 2

Next is a transformation of Class__1 that makes Ψ__4=0. This transformation introduces again a parameter E, that according to Chandrasekhar's plan can be taken equal to one of the roots of Weyl scalar Ψ__4 that corresponds to the transformed tetrad. So we need to proceed in three steps:

a. 

transform the tetrad introducing a parameter E in the tetrad's components

b. 

compute the Weyl scalars for that transformed tetrad

c. 

take Ψ__4=0 and solve for E

d. 

apply the resulting value of E to the transformed tetrad obtained in step a.

 

a. Transform the tetrad and for simplicity take E real

AssumeEreal 

E::real

(149)

T__2  TransformTetradT__1, nullrotationwithfixedl_

T__2IrE1P0IIHIrP000IErE1P−IrPIEIEHE+1IErP00−I

(150)

b. Compute Ψ__4 for this tetrad

simplifyWeylScalarsT__21

ψ__4=r2PE12Hr,r2rP2E1Hr,z+Hz,zP32P2E12Pz,zb+2rPE1Pu,z2rPE12Hr+4P2E+Pz21Hz+2E1PE1PzbPurPz+HPE1r2P

(151)

c. Solve Ψ__4=0 discarding the case E=0 which implies on no transformation

simplifysolverhs = 0, E0, E,explicit1

Warning, solve may be ignoring assumptions on the input variables.

E=Hr,rPr2+Hr,zP2r2HrPrPu,zrP+PuPzr2P2Hz2Pz,zbP2+2PzPzbP+2HP+P4Hr,rr22Hrr2Pz,zbP+2PzPzb+2HHz,z+Hr,z2P4r2+2r2Pu,zP3+2r2P2PuPz4rHzP4Hr,z2Hr,rHzPzP3r2+Pu,z2P2r2+2r2PPuPz+4rHzP3Pu,z+4Pz,zbHzPzP4+4Hz2P4+4P2PzHrPrPzPzbPPurHPHz+Pu2Pz2r2PHr,rr22Hrr2Pz,zbP+2PzPzb+2H

(152)

d. Apply this result to the tetrad (150). In doing so, do not display the result, just measure its length (corresponds to two+ pages)

T__3  simplifyevalT__2,1:

lengthT__3

12553

(153)

Check the first two and the last scalars, we expect Ψ__0=Ψ__1=Ψ__4=0

WeylScalarsT__3:%1..2,  %1

ψ__0=0,ψ__1=0,ψ__4=0

(154)

Step 3

Use a transformation of Class3 making Ψ3=1. Such a transformation (see TransformTetrad) changes Ψ3 '=Aⅇ−IΩΨ3, where we need to take Aⅇ−IΩ=1Ψ__3, and without loss of generality we can take Ω=0. Check first the value of Ψ__3 in the last tetrad computed, for that purpose you can use again the new WeylScalars without having to set anything before

WeylScalarsT__34

ψ__3=Hr,rHz,zP4r22Hr,rHzPzP3r2+Hr,z2P4r2+2Hz,zHrP4r+2Pz,zbHz,zP52Hz,zPzbPzP4+4HrHzPzP3r+2Hr,zPuPzP2r2+4Pz,zbHzPzP44HzPzbPz2P34Hr,zHzP4r2Pu,zHr,zP3r22Hz,zHP4+Pu2Pz2r24HzPuPzP2r2Pu,zPuPzPr24HHzPzP3+4Hz2P4+4Pu,zHzP3r+Pu,z2P2r22Pr2

(155)

So, the transformed tetrad T__4 to which corresponds Weyl scalars in canonical form, with Ψ__0=Ψ__1=Ψ__4=0 and Ψ__3=1, is

T__4  simplifyevalTransformTetradT__3, boostsn_l_plane ,A=1rhs:

Check this result

IsTetradT__4

Type of tetrad: null

true

(156)

Compute the scalars

WeylScalarsT__4

ψ__0=0,ψ__1=0,ψ__2=Hr,rr22Hrr2Pz,zbP+2PzPzb+2H6r2,ψ__3=1,ψ__4=0

(157)

These scalars obtained step-by-step are the same scalars computed in one go in (137)

ψ__0=0,ψ__1=0,ψ__2=Hr,rr22Hrr2Pz,zbP+2PzPzb+2H6r2,ψ__3=1,ψ__4=0

(158)

Changing the signature and redefining tetrads

Finally, consider a change in the signature, from the current value

Setupsignature 

signature=+ + + -

(159)

to (+ - - -)

 Setupsignature = + - - -  

signature=+ - - -

(160)

The tetrad got automatically redefined

e_  

𝔢a,μ=0rP00rP000000IH2+11400−IH2+114−IHH2+114

(161)

It is not equal to (138) anymore

  

𝔢a,μ=000−10rP00rP00000−1H

(162)

Suppose, however, that you have not noticed that the signature is different than in the book and input this form (138). In previous Maple releases, IsTetrad will rightly tell (162) is not a tetrad because, for the signature set, (162) does not match the tetrads definition

e_definition 

𝔢a,μ𝔢bμbμ=ηa,b

(163)

 

How could you discover that the problem with (162) is just a change in the signature and the position of the time-like component? New in Maple 2021, the command IsTetrad now analyses the situation before returning false and points out the solution

IsTetrad   

Warning, the given components form anulltetrad, with a covariant spacetime index, only if you change the signature from + - - - to + + + -. You can do that by entering (copy and paste): Setupsignature=+ + + -

false

(164)

Besides resolving the problem as indicated (you my not want to change the signature), also new in Maple 2021, you can resolve the situation directly using Redefine, that now also redefines tetrads. You want to redefine (138) from the signature where it is valid, (+ + + -), to the current signature (in such a case you do not need to specify  tosignature= ... )

Redefine ,fromsignature=  +++ -  

𝔢a,μ=00−I−IH000−I0IrP00IrP000

(165)

IsTetrad% 

Type of tetrad: null

true

(166)

This new functionality of Redefine is useful in general, and also to get a simpler tetrad (e.g. without radicals, as in the above) when you know such a simpler form for any other signature, as in this example.

Documentation advanced examples

One of the most important parts of the Physics project is its documentation; the illustration of the use of the package in different scenarios. The three relevant help pages for that are

• 

The Physics,Examples

• 

The Physics,Tensors

• 

The Physics,Updates

For Maple 2021, the first of these pages got extended with four sections: "Vectors in Spherical Coordinates using Tensor Notation", " The equations of motion in curvilinear coordinates, tensor notation and Coriolis force", "The EnergyMomentum tensor for the Proca Lagrangian" and "The Gross-Pitaevskii field equations for a quantum system of identical particles", covering new material in Vector Analysis, Mechanics and Classical Field Theory.

Miscellaneous

A number of minor changes happened in several places of the Physics library for Maple 2021, improving performance and the computational experience.

restart; withPhysics:

• 

When you set a spacetime metric,

a. 

the matrix form is now automatically shown - there is no need for additionally entering g_ to see it;

b. 

the signature in use is shown;

c. 

a kind of letter to represent spaceindices is automatically set.

Setupmetric = sc

_______________________________________________________

Systems of spacetime coordinates are:X=r,θ,φ,t

Default differentiation variables for d_, D_ and dAlembertian are:X=r,θ,φ,t

Setting lowercaselatin_is letters to represent space indices

The Schwarzschild metric in coordinates r,θ,φ,t

Parameters: m

Signature: - - - +

_______________________________________________________

gμ,ν=r2mr0000r20000r2sinθ20000r2mr

_______________________________________________________

metric=1,1=r2mr,2,2=r2,3,3=r2sinθ2,4,4=r2mr,spaceindices=lowercaselatin_is

(167)

Using Setup, you also have the quiet option to avoid verbosity and reproduce the behavior of Maple releases previous to 2021:

Setupmetric = 12,12,2,quiet

metric=1,4=−1,2,3=1,4,4=2b2ζξ

(168)

Note however that, when you load a metric from the database,  a change in sign of the signature happens; compare with the one displayed in black above the matrix form of gμ,νin (167) with the one set now:

Setupsignature

signature=+ + + -

(169)

Changes like this one in the signature are now always presented on the screen, unless you explicitly use the quiet option. The same display of the matrix form and signature happens when you set the metric using g_; here, e.g. min, or minkowski or Minkowski all serve the same purpose

g_mi

_______________________________________________________

The Minkowski metric in coordinates v,ζ,ξ,u

Signature: + + + -

_______________________________________________________

gμ,ν=100001000010000−1

(170)
• 

Several enhancements happened in Library:-IsTensorialSymmetric and Library:-IsTensorialAntisymmetric, making the simplification of nested tensor functions, including the non-commutative tensorial differential operators, work more efficiently and successfully - see related section above.

• 

Independent of the above, several enhancements happened in Library:-GetTensorSymmetryProperties. Consider a typical situation, of a product of noncommutative tensorial quantum operators in a Cartesian space

CoordinatesCartesian

Systems of spacetime coordinates are:X=x,y,z,t

X

(171)

g_eu

_______________________________________________________

The Euclidean metric in coordinates x,y,z,t

_______________________________________________________

gμ,ν=1000010000100001

(172)

Set the coordinates as quantum operators

Setup op = X

* Partial match of 'op' against keyword 'quantumoperators'

_______________________________________________________

quantumoperators=t,x,y,z

(173)

In spite of being a product of noncommutative operators, this expression has some tensorial symmetries:

XβXανρfX

XβXανρfX

(174)

Library:-GetTensorSymmetryProperties

1,2,3,4,

(175)

The above means (174) is symmetric with respect to exchange of its first and second indices, respectively α and β, and also under an exchange of ν, and ρ. Clear the setting of Xα as a noncommutative quantum operator to continue the presentation

Setupclear, op = X

* Partial match of 'op' against keyword 'quantumoperators'

_______________________________________________________

quantumoperators=none

(176)
• 

Implement tensorial equation substitutions where the left-hand side is of type `+`

g_mi

_______________________________________________________

The Minkowski metric in coordinates x,y,z,t

Signature: + + + -

_______________________________________________________

gμ,ν=100001000010000−1

(177)

DefineA,G,F,B, H

Defined objects with tensor properties

A,B,F,G,H,γμ,σμ,μ,gμ,ν,γi,j,Τμ,ν,εα,β,μ,ν,Xμ

(178)

Gν,α AαFμ,ν + Gρ,α BαFμ,ρ

Gν,αAααFμνμν+Gρ,αFμρμρBαα

(179)

In the above, F is a common tensor-factor. Consider then substituting in (179) the following subexpression of type `+`

Gα,β Aβ  + Gα,β Bβ = Hα

Gα,βAββ+Gα,βBββ=Hα

(180)

SimplifySubstituteTensor,

Fμ,αHαα

(181)

To verify this result swap left-hand side and right-hand side in (180) and substitute back into (181), removing Hα, then compare with the starting expression (179)

SubstituteTensorrhs=lhs,

Fμ,αAββGαβαβ+BββGαβαβ

(182)

Simplify

0

(183)
• 

TensorArray now accepts a new listofequations option, consistent with the previously existing setofequations. When the left-hand side of the equations returned is matricial, then provided the dimension of the matrices can be determined, the right-hand side of the equations is the corresponding matrix of zeros.

• 

Change default simplification in TensorArray, from do nothing to normal. This resolves the typical situation were we expect zeros in the components of tensorial expressions but those zeros are visible only after some form of simplification. You can still use the option simplifier to not have any simplification, e.g. simplifier = (u -> u).

• 

Added the keyword freeindices in Library:-FlipCharacterOfFreeIndices, to be consistent with the implementation of that keyword in Library:-FlipCharacterOfRepeatedIndices

• 

Greek gliphs, for example `μ` and `~μ` are now valid tensor indices like mu and ~mu. Note however that `μ` is not considered equal to mu.

• 

Change in design: tensors that are defined using tensorial equations with tensors in the right-hand side, when their contravariant form is requested, instead of returning the covariant form multiplied by the metric to raise the indices, we now raise the indices of the tensors of the right-hand side.

• 

Trace is now more context-intelligent: if one side of a relation (equation or inequation) is verifiable as matricial, then the other side is considered too; e.g. if the left-hand side involves Dirac spinors and the right-hand side does not, when taking the trace the right-hand side is considered multiplied by the 4x4 identity matrix. For example,

Library:-DefaultAlgebraRulesDirac

γμ,γν+=2gμ,ν

(184)

where the minus sign on the right-hand side of the algebra rule above is due to the change in sign in the signature introduced in (168),

Traceexpand  

8gμ,ν=8gμ,ν

(185)

You can verify these tensorial expressions as usual using TensorArray

TensorArray expand  ,matrix

* Partial match of 'matrix' against keyword 'performmatrixoperations'

−20000−20000−20000−2=−20000000000000000=00000000000000000=00000000000000000=00000000000000000=0−20000−20000−20000−2=−20000000000000000=00000000000000000=00000000000000000=00000000000000000=0−20000−20000−20000−2=−20000000000000000=00000000000000000=00000000000000000=00000000000000000=02000020000200002=2

(186)

where on the right-hand sides it is implicit a 4 x 4 identity matrix.

• 

 Extend the definition of the type Library:-PhysicsType:-DiracSpinor: any anticommutative prefix having at least one spinor index is considered a DiracSpinor. So it is now sufficient to have a spinor index to be considered a DiracSpinor. This change makes room for the case of mixed indices (the happen in several contexts, e.g in quantum field models with 3/2 spinor fields). To save having to type long keywords repeatedly, use macro

macroDiracSpinor = Library:-PhysicsType:-DiracSpinor:

Setupanticommutativeprefix = Q, spinorindices=lowercase_ah

anticommutativeprefix=Q,spinorindices=lowercaselatin_ah

(187)

typeQa,mu,DiracSpinor

true

(188)
• 

There in one new Physics:-Library:-EqualizeRepeatedIndices, to equalize the repeated indices in different terms of tensorial expressions, as an first straightforward form of simplification. This type of equalization also frequently helps to factorize tensorial expressions. Take for instance the expression (179)

  

AααFμνμνGν,α+Gρ,αFμρμρBαα

(189)

Some indices can be equalized

Library:-EqualizeRepeatedIndices  

AααFμνμνGν,α+Gν,αFμνμνBαα

(190)

This result is factorizable

factor   

FμνμνGν,αAαα+Bαα

(191)

In Maple 2021 this new routine is automatically used by the Physics Simplify command.

See Also

Index of New Maple 2021 Features, Physics , Computer Algebra for Theoretical Physics, The Physics project, The Physics Updates