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 2020 has been the consolidation of the functionality introduced in previous releases, together with significant enhancements to further strengthen the functionality especially in
Particle Physics: the Scattering matrix in coordinates and momentum representation and related Feynman Diagrams,
General Relativity: the slicing and spatial gauge conditions of the 3+1 decomposition of spacetime, and numerical relativity
The connection between different tensors and related differentiation operations
Simplification of tensorial expressions, now involving spinor, su2 and su3 tensor indices
Overall, the enhancements throughout the entire package further extend the range of Physics-related algebraic computations that can be done naturally in a worksheet. The presentation below illustrates both the novelties and the kind of mathematical formulations that can now be performed.
As part of its commitment to providing the best possible environment for algebraic computations in Physics, Maplesoft launched a Maple Physics: Research and Development website in 2014, which enabled users to download research versions, ask questions, and provide feedback. The results from this accelerated exchange with people around the world have been incorporated into the Physics package in Maple 2020.
Feynman Diagrams - the scattering matrix in coordinates and momentum representation
The slicing and spatial gauge conditions of the 3+1 decomposition of spacetime
The new explore option of TensorArray
Differentiating the spacetime metric, the tetrad, and their determinants, with respect to each other
Simplifying spinor, su2, su3 and gauge indices
Psigma definition and algebra and KroneckerDelta as a metric for spinor, su2 and su3 indices
Miscellaneous
See Also
Mathematical methods for particle physics were only partially developed in the Physics package in previous releases. There existed a FeynmanDiagrams command, but its capabilities were too minimal. These 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, for Maple 2020 a full rewriting of the FeynmanDiagrams command, now including a myriad of new capabilities (mainly a. b. and c. and related options - see below), reversing the previous status of things entirely.
A scattering matrix S relates the initial and final states, ⁢i⁢ and ⁢f⁢, of a quantum interacting system. In a 4-dimensional spacetime with coordinates X, S can be written as:
S=T⁡ⅇi⁢∫L⁡XⅆX4
where i is the imaginary unit and L is the interaction Lagrangian, written in terms of quantum fields depending on the spacetime coordinates X. The T symbol means time-ordered. For the terminology used in this page, see for instance chapter IV, "The Scattering Matrix", of ref.[1].
This exponential can be expanded as
S=1+S1+S2+S3+...
where
Sn=⁡inn!⁢∫…⁢∫T⁡L⁡X__1,…,L⁡X__n⁢ⅆX__14⁢…⁢ⅆX__n4
and T⁡L⁡X1,...,L⁡Xn is the time-ordered product of n interaction Lagrangians evaluated at different points. The S matrix formulation is at the core of perturbative approaches in relativistic Quantum Field Theory, where exact solutions are known only for some 2-dimensional models.
In brief, the new functionality includes computing:
The expansion S=1+S1+S2+S3+... in coordinates representation up to arbitrary order (the limitation is now only the hardware)
The S-matrix element ⁢f⁢|⁢S⁢|⁢i⁢ in momentum representation up to arbitrary order for given number of loops and initial and final particles (the contents of the ⁢i⁢ and ⁢f⁢ states); optionally, also the transition probability density, constructed using the square of the scattering matrix element ⁢f⁢|⁢S⁢|⁢i⁢2, as shown in formula (13) of sec. 21.1 of ref.[1].
The Feynman diagrams (drawings) related to the different terms of the expansion of S or of its matrix elements ⁢f⁢|⁢S⁢|⁢i⁢.
Interaction Lagrangians involving derivatives of fields, typically appearing in non-Abelian gauge theories, are handled, and several options are provided enabling restricting the outcome regarding the incoming and outgoing particles, the number of loops, vertices or external legs, the propagators and normal products, or whether to compute tadpoles and 1-particle reducible terms.
Examples
For illustration purposes set three coordinate systems, and set φ to represent a quantum operator
with⁡Physics:
Setup⁡mathematicalnotation=true,coordinates=X,Y,Z,quantumoperators=φ
⁢Systems of spacetime coordinates are:⁢X=x1,x2,x3,x4,Y=y1,y2,y3,y4,Z=z1,z2,z3,z4
_______________________________________________________
coordinatesystems=X,Y,Z,mathematicalnotation=true,quantumoperators=φ
Let L be the interaction Lagrangian
L≔λ⁢φ⁡X4
The expansion of S in coordinates representation, computed by default up to order = 3 (you can change that using the option order = n), by definition containing all possible configurations of external legs, displaying the related Feynman Diagrams, is given by
%eval⁡S,`=`⁡order,3=FeynmanDiagrams⁡L,diagrams
%eval⁡S,order=3=1+%FeynmanIntegral⁡λ⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡X,φ⁡X,X+%FeynmanIntegral⁡16⁢λ2⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡Y,φ⁡X,φ⁡Y+96⁢λ2⁢_GF⁡_NP⁡φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y+72⁢λ2⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,X,Y+%FeynmanIntegral⁡10368⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡Y,φ⁡Z,φ⁡Z,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z+1728⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡Z,φ⁡Z,φ⁡X,φ⁡Z,φ⁡X,φ⁡Y,φ⁡Z,φ⁡Y+2592⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡X,φ⁡Z,φ⁡X,φ⁡Z,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y+576⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡Z,φ⁡Z,φ⁡Z,φ⁡X,φ⁡Y,φ⁡Y,φ⁡Z+10368⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z+3456⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z,X,Y,Z
The expansion of S in coordinates representation to a specific order shows in a compact way the topology of the underlying Feynman diagrams. Each integral is represented with a new command, FeynmanIntegral, that works both in coordinates and momentum representation. To each term of the integrands corresponds a diagram, and the correspondence is always clear from the symmetry factors and normal products shown.
In a typical situation, one wants to compute a specific term, or scattering process, instead of the S matrix up to some order with all possible configurations of external legs. For example, to compute only the terms of this result above that correspond to diagrams with 1 loop use numberofloops = 1 (for tree-level, use numberofloops = 0)
%eval⁡S,`=`⁡order,3,`=`⁡loops,1=FeynmanDiagrams⁡L,numberofloops=1,diagrams
%eval⁡S,order=3,loops=1=%FeynmanIntegral⁡72⁢λ2⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,X,Y+%FeynmanIntegral⁡1728⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡Y,φ⁡Y,φ⁡Z,φ⁡Z,φ⁡X,φ⁡Z,φ⁡X,φ⁡Y,φ⁡Z,φ⁡Y,X,Y,Z
In the result above there are two terms, with 4 and 6 external legs respectively.
A scattering process with matrix element ⁢f⁢|⁢S⁢|⁢i⁢ in momentum representation, corresponding to the term with 4 external legs (symmetry factor = 72), could be any process where the total number of incoming + outgoing particles is equal to 4. For example, one with 2 incoming and 2 outgoing particles. The transition probability for that process is given by
%eval⁡`#mfenced(mrow(mo("⁢"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo(",",mathcolor = "olive"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo("⁢"),mo("|"),mo("⁢"),mi("S"),mo("⁢"),mo("|"),mo("⁢"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo(",",mathcolor = "olive"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo("⁢",mathcolor = "olive")),open = "⟨",close = "⟩")`,`=`⁡loops,1=FeynmanDiagrams⁡L,incomingparticles=φ,φ,outgoingparticles=φ,φ,numberofloops=1,diagrams
%eval⁡#mfenced(mrow(mo("⁢"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo(",",mathcolor = "olive"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo("⁢"),mo("|"),mo("⁢"),mi("S"),mo("⁢"),mo("|"),mo("⁢"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo(",",mathcolor = "olive"),mi("φ",fontstyle = "normal",mathcolor = "olive"),mo("⁢",mathcolor = "olive")),open = "⟨",close = "⟩"),loops=1=%FeynmanIntegral⁡98⁢λ2⁢Dirac⁡−P__3−P__4+P__1+P__2π6⁢E__1⁢E__2⁢E__3⁢E__4⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1−P__2−p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2+%FeynmanIntegral⁡98⁢λ2⁢Dirac⁡−P__3−P__4+P__1+P__2π6⁢E__1⁢E__2⁢E__3⁢E__4⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+P__3−p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2+%FeynmanIntegral⁡98⁢λ2⁢Dirac⁡−P__3−P__4+P__1+P__2π6⁢E__1⁢E__2⁢E__3⁢E__4⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+P__4−p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2
When computing in momentum representation, only the topology of the corresponding Feynman diagrams is shown (i.e. the diagrams associated to the corresponding Feynman integral in coordinates representation).
The transition matrix element ⁢f⁢|⁢S⁢|⁢i⁢ is related to the transition probability density dw (formula (13) of sec. 21.1 of ref.[1]) by
dw=2⁢π3⁢s−4⁢n__1⁢...⁢n__s⁢F⁡pi,pf2⁢δ⁡∑i=1s⁡pi−∑f=1r⁡pf⁢ d 3⁢p1⁢ ...⁢d 3⁢pr
where n__1⁢...⁢n__s represent the particle densities of each of the s particles in the initial state ⁢i⁢, the δ (Dirac) is the expected singular factor due to the conservation of the energy-momentum and the amplitude F⁡pi,pfis related to ⁢f⁢|⁢S⁢|⁢i⁢ via
⁢f⁢|⁢S⁢|⁢i⁢=F⁡pi,pf⁢δ⁡∑i=1s⁡pi−∑f=1r⁡pf
To directly get the probability density dw instead of⁢f⁢|⁢S⁢|⁢i⁢use the option output = probabilitydensity
FeynmanDiagrams⁡L,incomingparticles=φ,φ,outgoingparticles=φ,φ,numberofloops=1,output=probabilitydensity
Physics:-FeynmanDiagrams:-ProbabilityDensity⁡4⁢π2⁢%mul⁡ni,i=1..2⁢abs⁡F2⁢Dirac⁡−P__3−P__4+P__1+P__2⁢%mul⁡dP_f3,f=1..2,F=%FeynmanIntegral⁡98⁢λ2π6⁢E__1⁢E__2⁢E__3⁢E__4⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1−P__2−p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2+%FeynmanIntegral⁡98⁢λ2π6⁢E__1⁢E__2⁢E__3⁢E__4⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+P__3−p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2+%FeynmanIntegral⁡98⁢λ2π6⁢E__1⁢E__2⁢E__3⁢E__4⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+P__4−p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2
In practice, the most common computations involve processes with 2 or 4 external legs. To restrict the expansion of the scattering matrix in coordinates representation to that kind of processes use the numberofexternallegs option. For example, the following computes the expansion of S up to order = 3, restricting the outcome to the terms corresponding to diagrams with only 2 external legs
%eval⁡S,`=`⁡order,3,`=`⁡legs,2=FeynmanDiagrams⁡L,numberofexternallegs=2,diagrams
%eval⁡S,order=3,legs=2=%FeynmanIntegral⁡96⁢λ2⁢_GF⁡_NP⁡φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,X,Y+%FeynmanIntegral⁡3456⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z+10368⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z,X,Y,Z
This result shows two Feynman integrals, with respectively 2 and 3 loops, the second integral with two terms. The transition probability density in momentum representation for the process %Bracket⁡φ,S,φcorresponding to the first integral (1 term with symmetry factor = 96) is then
FeynmanDiagrams⁡L,incomingparticles=φ,outgoingparticles=φ,numberofloops=2,diagrams,output=probabilitydensity
Physics:-FeynmanDiagrams:-ProbabilityDensity⁡12⁢%mul⁡ni,i=1..1⁢abs⁡F2⁢Dirac⁡−P__2+P__1⁢%mul⁡dP_f3,f=1..1π,F=%FeynmanIntegral⁡%FeynmanIntegral⁡38⁢I⁢λ2π7⁢E__1⁢E__2⁢p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__32−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1−p__2−p__32−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2,p__3
In the above, for readability, the contracted spacetime indices in the square of momenta entering the amplitude F (as denominators of propagators) are implicit. To make those indices explicit, use the option putindicesinsquareofmomentum
%eval⁡%Bracket⁡φ,S,φ,`=`⁡loops,2=FeynmanDiagrams⁡L,incoming=φ,outgoing=φ,numberofloops=2,indices
* Partial match of 'indices' against keyword 'putindicesinsquareofmomentum'
%eval⁡%Bracket⁡φ,S,φ,loops=2=%FeynmanIntegral⁡%FeynmanIntegral⁡38⁢I⁢λ2⁢Dirac⁡−P__2~kappa+P__1~kappaπ7⁢E__1⁢E__2⁢p__2μ⁢p__2~mu−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__3ν⁢p__3~nu−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1β−p__2β−p__3β⁢−P__1~beta−p__2~beta−p__3~beta−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2,p__3
This computation can also be performed to higher orders. For example, with 3 loops, in coordinates and momentum representations, corresponding to the other two terms and diagrams in (7)
%eval⁡S3,`=`⁡legs,2,`=`⁡loops,3=FeynmanDiagrams⁡L,legs=2,loops=3
* Partial match of 'legs' against keyword 'numberoflegs'
* Partial match of 'loops' against keyword 'numberofloops'
%eval⁡S3,legs=2,loops=3=%FeynmanIntegral⁡3456⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡X,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z+10368⁢λ3⁢_GF⁡_NP⁡φ⁡X,φ⁡Y,φ⁡X,φ⁡Y,φ⁡X,φ⁡Z,φ⁡X,φ⁡Z,φ⁡Y,φ⁡Z,φ⁡Y,φ⁡Z,X,Y,Z
%eval⁡%Bracket⁡φ,S,φ,`=`⁡loops,3=FeynmanDiagrams⁡L,incomingparticles=φ,outgoingparticles=φ,numberofloops=3
%eval⁡%Bracket⁡φ,S,φ,loops=3=%FeynmanIntegral⁡%FeynmanIntegral⁡%FeynmanIntegral⁡932⁢λ3⁢Dirac⁡−P__2+P__1π11⁢E__1⁢E__2⁢p__32−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__42−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−p__3−p__4−p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+P__2+p__3+p__4+p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__3,p__4,p__5+2⁢%FeynmanIntegral⁡%FeynmanIntegral⁡%FeynmanIntegral⁡932⁢λ3⁢Dirac⁡−P__2+P__1π11⁢E__1⁢E__2⁢p__32−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__42−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−p__3−p__4−p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+p__4+p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__3,p__4,p__5+%FeynmanIntegral⁡%FeynmanIntegral⁡12048⁢λ⁢Dirac⁡−P__2+P__1⁢%FeynmanIntegral⁡576⁢λ2p__22−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−p__2−p__4−p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2π11⁢E__1⁢E__2⁢p__42−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε⁢−P__1+p__4+p__52−m__φ2+I⁢Physics:-FeynmanDiagrams:-ε,p__4,p__5
Consider the interaction Lagrangian of Quantum Electrodynamics (QED). To formulate the problem start defining the vector field Aμ.
Define⁡Aμ
Defined objects with tensor properties
Aμ,γμ,P__1μ,P__2μ,P__3μ,P__4μ,σμ,∂μ,gμ,ν,p__1μ,p__2μ,p__3μ,p__4μ,p__5μ,εα,β,μ,ν,Xμ,Yμ,Zμ
Set lowercase Latin letters from i to s to represent spinor indices (you can change this setting according to your preference, see Setup), also the (anticommutative) spinor field will be represented below by ψ, so set ψ as an anticommutativeprefix, and set A and ψ as quantum operators
Setup⁡spinorindices=lowercaselatin_is,anticommutativeprefix=ψ,op=A,ψ
* Partial match of 'op' against keyword 'quantumoperators'
anticommutativeprefix=ψ,quantumoperators=A,φ,ψ,spinorindices=lowercaselatin_is
The matrix indices of the Dirac matrices are written explicitly and use conjugate to represent the Dirac conjugate ψj&conjugate0;
L__QED≔α⁢conjugateψjX⁢Dgammaμj,k⁢ψkX⁢AμX
L__QED≔α⁢ψj⁡X&conjugate0;⁢ψk⁡X⁢Aμ⁡X⁢γ⁢μ⁢μj,k
Compute S2, only the terms with 4 external legs, and display the diagrams: they have no loops
%eval⁡S2,`=`⁡legs,4=FeynmanDiagrams⁡L__QED,numberofvertices=2,numberoflegs=4,diagrams
%eval⁡S2,legs=4=%FeynmanIntegral⁡−2⁢α2⁢Dgamma~muj,k⁢Dgamma~alphai,l⁢_GF⁡_NP⁡ψk⁡X,Aμ⁡X,conjugate⁡ψi⁡Y,Aα⁡Y,ψl⁡Y,conjugate⁡ψj⁡X+α2⁢Dgamma~muj,k⁢Dgamma~alphai,l⁢_GF⁡_NP⁡conjugate⁡ψj⁡X,ψk⁡X,conjugate⁡ψi⁡Y,ψl⁡Y,Aμ⁡X,Aα⁡Y,X,Y
The same computation but with only 2 external legs results in the diagrams with 1 loop that correspond to the self-energy of the electron and the photon (page 218 of ref.[1])
%eval⁡S2,`=`⁡legs,2=FeynmanDiagrams⁡L__QED,numberofvertices=2,numberoflegs=2,diagrams
%eval⁡S2,legs=2=%FeynmanIntegral⁡−2⁢α2⁢Dgamma~muj,k⁢Dgamma~alphai,l⁢_GF⁡_NP⁡ψk⁡X,conjugate⁡ψi⁡Y,Aμ⁡X,Aα⁡Y,ψl⁡Y,conjugate⁡ψj⁡X−α2⁢Dgamma~muj,k⁢Dgamma~alphai,l⁢_GF⁡_NP⁡Aμ⁡X,Aα⁡Y,ψl⁡Y,conjugate⁡ψj⁡X,ψk⁡X,conjugate⁡ψi⁡Y,X,Y
where the diagram with two spinor legs is the electron self-energy.
To restrict the output furthermore, for example getting only the self-energy of the photon, you can specify the normal products you want:
%eval⁡S2,`=`⁡legs,2,`=`⁡products,_NP⁡A,A=FeynmanDiagrams⁡L__QED,numberofvertices=2,numberoflegs=2,normalproduct=_NP⁡A,A
* Partial match of 'normalproduct' against keyword 'normalproducts'
%eval⁡S2,legs=2,products=_NP⁡A,A=%FeynmanIntegral⁡α2⁢Dgamma~muj,k⁢Dgamma~alphai,l⁢_GF⁡_NP⁡Aμ⁡X,Aα⁡Y,conjugate⁡ψj⁡X,ψl⁡Y,ψk⁡X,conjugate⁡ψi⁡Y,X,Y
The corresponding S-matrix elements in momentum representation
%eval⁡%Bracket⁡A,S,A,`=`⁡loops,1=FeynmanDiagrams⁡L__QED,incomingparticles=A,outgoing=A,numberofloops=1,diagrams
%eval⁡%Bracket⁡A,S,A,loops=1=−%FeynmanIntegral⁡116⁢Physics:-FeynmanDiagrams:-PolarizationVectorAν⁡P__1_⁢conjugate⁡Physics:-FeynmanDiagrams:-PolarizationVectorAα⁡P__2_⁢m__ψ⁢KroneckerDeltal,n+p__2β⁢Dgamma~betal,n⁢α2⁢Dgamma~alphan,i⁢Dgamma~num,l⁢P__1τ+p__2τ⁢Dgamma~taui,m+m__ψ⁢KroneckerDeltai,m⁢Dirac⁡−P__2+P__1π3⁢E__1⁢E__2⁢p__22−m__ψ2+I⁢Physics:-FeynmanDiagrams:-ε⁢P__1+p__22−m__ψ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2
where ϵA is the corresponding polarization vector.
The self-energy of the electron:
%eval⁡%Bracket⁡ψ,S,ψ,`=`⁡loops,1=FeynmanDiagrams⁡L__QED,incoming=ψ,outgoing=ψ,numberofloops=1
%eval⁡%Bracket⁡ψ,S,ψ,loops=1=−%FeynmanIntegral⁡18⁢Physics:-FeynmanDiagrams:-Uspinorψi⁡P__1_⁢conjugate⁡Physics:-FeynmanDiagrams:-Uspinorψl⁡P__2_⁢−g_α,ν+p__2ν⁢p__2αm__A2⁢α2⁢Dgamma~alphal,m⁢Dgamma~nun,i⁢P__1β+p__2β⁢Dgamma~betam,n+m__ψ⁢KroneckerDeltam,n⁢Dirac⁡−P__2+P__1π3⁢p__22−m__A2+I⁢Physics:-FeynmanDiagrams:-ε⁢P__1+p__22−m__ψ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2
In this result we see the uψ spinor (see ref.[2]), and the propagator of the field Aμ with a mass mA. To indicate that this field is massless use
Setup⁡massless=A
* Partial match of 'massless' against keyword 'masslessfields'
masslessfields=A
Now the propagator for Aμ is the one of a massless vector field:
%eval⁡%Bracket⁡ψ,S,ψ,loops=1=−%FeynmanIntegral⁡−18⁢Physics:-FeynmanDiagrams:-Uspinorψi⁡P__1_⁢conjugate⁡Physics:-FeynmanDiagrams:-Uspinorψl⁡P__2_⁢g_α,ν⁢α2⁢Dgamma~alphal,m⁢Dgamma~nun,i⁢P__1β+p__2β⁢Dgamma~betam,n+m__ψ⁢KroneckerDeltam,n⁢Dirac⁡−P__2+P__1π3⁢p__22+I⁢Physics:-FeynmanDiagrams:-ε⁢P__1+p__22−m__ψ2+I⁢Physics:-FeynmanDiagrams:-ε,p__2
When working with non-Abelian gauge fields, the interaction Lagrangian involves derivatives. FeynmanDiagrams can handle that kind of interaction in momentum representation. Consider for instance a Yang-Mills theory with a massless field Bμ,a where a is a SU2 index (see eq.(12) of sec. 19.4 of ref.[1]). The interaction Lagrangian can be entered as follows
Setup⁡su2indices=lowercaselatin_ah,massless=B,op=B
masslessfields=A,B,quantumoperators=A,B,φ,ψ,ψ1,su2indices=lowercaselatin_ah
Define⁡Bμ,a,quiet:
F__Bμ,ν,a≔d_μ⁡Bν,a⁡X−d_ν⁡Bμ,a⁡X
F__Bμ,ν,a≔∂μ⁡Bν,a⁡X−∂ν⁡Bμ,a⁡X
L≔g2⁢LeviCivitaa,b,c⁢F__Bμ,ν,a⁢Bμ,b⁡X⁢Bν,c⁡X+g24⁢LeviCivitaa,b,c⁢LeviCivitaa,e,f⁢Bμ,b⁡X⁢Bν,c⁡X⁢Bμ,e⁡X⁢Bν,f⁡X
L≔g⁢εa,b,c⁢∂μ⁡Bν,a⁡X−∂ν⁡Bμ,a⁡X⁢B⁢μb⁢μb⁡X⁢B⁢νc⁢νc⁡X2+g2⁢εa,b,c⁢εa,e,f⁢Bμ,b⁡X⁢Bν,c⁡X⁢B⁢μe⁢μe⁡X⁢B⁢νf⁢νf⁡X4
The transition probability density at tree-level for a process with two incoming and two outgoing B particles is given by
FeynmanDiagrams⁡L,incomingparticles=B,B,outgoingparticles=B,B,numberofloops=0,output=probabilitydensity,factor, diagrams
* Partial match of 'factor' against keyword 'factortreelevel'
Physics:-FeynmanDiagrams:-ProbabilityDensity⁡4⁢π2⁢%mul⁡ni,i=1..2⁢abs⁡F2⁢Dirac⁡−P__3~sigma−P__4~sigma+P__1~sigma+P__2~sigma⁢%mul⁡dP_f3,f=1..2,F=18⁢I⁢−P__1~kappa−P__2~kappa−P__4~kappa⁢g_~lambda,~tau+P__1~lambda+P__2~lambda+P__3~lambda⁢g_~kappa,~tau−g_~kappa,~lambda⁢P__3~tau−P__4~tau⁢LeviCivitaa1,a3,h⁢P__1~beta+12⁢P__2~beta⁢g_~alpha,~sigma+−12⁢P__1~sigma+12⁢P__2~sigma⁢g_~alpha,~beta−12⁢g_~beta,~sigma⁢P__1~alpha+2⁢P__2~alpha⁢LeviCivitaa2,d,g⁢g_σ,τ⁢KroneckerDeltaa2,a3−P__1χ−P__2χ⁢−P__1~chi−P__2~chi+I⁢Physics:-FeynmanDiagrams:-ε−116⁢I⁢LeviCivitaa1,a3,g⁢−P__1~beta+P__3~beta−P__4~beta⁢g_~lambda,~tau+P__1~lambda−P__2~lambda−P__3~lambda⁢g_~beta,~tau+g_~beta,~lambda⁢P__2~tau+P__4~tau⁢LeviCivitaa2,d,h⁢P__1~sigma+P__3~sigma⁢g_~alpha,~kappa+−2⁢P__1~kappa+P__3~kappa⁢g_~alpha,~sigma+g_~kappa,~sigma⁢P__1~alpha−2⁢P__3~alpha⁢g_σ,τ⁢KroneckerDeltaa2,a3−P__1χ+P__3χ⁢−P__1~chi+P__3~chi+I⁢Physics:-FeynmanDiagrams:-ε−116⁢I⁢LeviCivitaa3,g,h⁢−P__1~beta−P__3~beta+P__4~beta⁢g_~kappa,~tau+P__1~kappa−P__2~kappa−P__4~kappa⁢g_~beta,~tau+g_~beta,~kappa⁢P__2~tau+P__3~tau⁢LeviCivitaa1,a2,d⁢P__1~sigma+P__4~sigma⁢g_~alpha,~lambda+P__1~alpha−2⁢P__4~alpha⁢g_~lambda,~sigma−2⁢P__1~lambda−12⁢P__4~lambda⁢g_~alpha,~sigma⁢g_σ,τ⁢KroneckerDeltaa2,a3−P__1χ+P__4χ⁢−P__1~chi+P__4~chi+I⁢Physics:-FeynmanDiagrams:-ε−116⁢I⁢KroneckerDeltad,h⁢g_~alpha,~beta⁢g_~kappa,~lambda−2⁢g_~alpha,~kappa⁢g_~beta,~lambda+g_~alpha,~lambda⁢g_~beta,~kappa⁢KroneckerDeltaa1,g−2⁢KroneckerDeltad,g⁢g_~alpha,~beta⁢g_~kappa,~lambda−12⁢g_~beta,~kappa⁢g_~alpha,~lambda−12⁢g_~alpha,~kappa⁢g_~beta,~lambda⁢KroneckerDeltaa1,h+KroneckerDeltag,h⁢KroneckerDeltaa1,d⁢g_~alpha,~beta⁢g_~kappa,~lambda+g_~alpha,~kappa⁢g_~beta,~lambda−2⁢g_~alpha,~lambda⁢g_~beta,~kappa⁢g2⁢conjugate⁡Physics:-FeynmanDiagrams:-PolarizationVectorBκ,h⁡P__3_⁢conjugate⁡Physics:-FeynmanDiagrams:-PolarizationVectorBλ,a1⁡P__4_⁢Physics:-FeynmanDiagrams:-PolarizationVectorBα,d⁡P__1_⁢Physics:-FeynmanDiagrams:-PolarizationVectorBβ,g⁡P__2_π2⁢E__1⁢E__2⁢E__3⁢E__4
To simplify the repeated indices, use the option simplifytensorindices. To check the indices entering a result like this one use Check; there are no free indices, and regarding the repeated indices:
Check,all
The repeated indices per term are: ...,...,..., the free indices are: ...
a1,a2,a3,α,β,χ,d,g,h,κ,λ,σ,τ,∅
This process can be computed with 1 or more loops, in which case the number of terms increases significantly. As another non-Abelian model, consider the interaction Lagrangian of the electro-weak part of the Standard Model
Coordinates⁡clear,Z
Unaliasing Z previously defined as a system of spacetime coordinates
Setup⁡quantumoperators=W,Z
quantumoperators=A,B,W,Z,φ,ψ,ψ1
Define⁡Wμ,Zμ
Aμ,Bμ,a,γμ,P__1μ,P__2μ,P__3μ,P__4μ,σμ,Wμ,Zμ,∂μ,gμ,ν,p__1μ,p__2μ,p__3μ,p__4μ,p__5μ,ψj,εα,β,μ,ν,Xμ,Yμ
CompactDisplayW,ZX
W⁡X⁢will now be displayed as⁢W
Z⁡X⁢will now be displayed as⁢Z
F__Wμ,ν≔d_μ⁡Wν⁡X−d_ν⁡Wμ⁡X
d_μ⁡Wν⁡X,X−d_ν⁡Wμ⁡X,X
F__Zμ,ν≔d_μ⁡Zν⁡X−d_ν⁡Zμ⁡X
d_μ⁡Zν⁡X,X−d_ν⁡Zμ⁡X,X
L__WZ≔I⁢g⁢cos⁡θ__w⁢Dagger⁡F__Wμ,ν⁢Wμ⁡X−Dagger⁡Wμ⁡X⁢F__Wμ,ν⁢Zν⁡X+Wν⁡X⁢Dagger⁡Wμ⁡X⁢F__Zμ,ν
I⁢g⁢cos⁡θ__w⁢`*`⁡`*`⁡d_μ⁡Dagger⁡Wν⁡X,X−d_ν⁡Dagger⁡Wμ⁡X,X,W~mu⁡X−`*`⁡Dagger⁡Wμ⁡X,d_~mu⁡Wν⁡X,X−d_ν⁡W~mu⁡X,X,Z~nu⁡X+`*`⁡Wν⁡X,Dagger⁡Wμ⁡X,d_~mu⁡Z~nu⁡X,X−d_~nu⁡Z~mu⁡X,X
This interaction Lagrangian contains six different terms. The S-matrix element for the tree-level process with two incoming and two outgoing W particles is shown in the help page for FeynmanDiagrams. There, due to the use of size simplification and the option factortreelevel, the result is a product of 10 factors each of which is nested several times, totaling a computational length of 23,750. Expanding that product the computational length is 325,761 and the number of terms is 480, giving an idea of how fast the size of the S-matrix elements grow with the number of terms in the interaction Lagrangian.
References
[1] Bogoliubov, N.N., and Shirkov, D.V. Quantum Fields. Benjamin Cummings, 1982.
[2] Weinberg, S., The Quantum Theory Of Fields. Cambridge University Press, 2005.
A key feature of the 3+1 decomposition of Einstein's equations is the freedom in the choice of coordinates and foliation (3D hypersurface), represented by the freedom of choice for the Lapse and Shift functions, frequently referred as the slicing and spatial gauge conditions respectively, entering the 3+1 equations. Only a few of the possible choices are actually useful for the purpose of numerical simulations of the solutions of the 3+1 equations. Depending on the problem, finding suitable conditions is still a research topic.
Some Lapse and Shift conditions, however, are well understood and useful in different contexts. Those conditions, entailing non-trivial algebraic relationships, are difficult to remember or to input for further manipulations, and crucial in that they determine the actual form of the 3+1 equations.
In connection, for Maple 2020 the Physics:-ThreePlusOne package includes a new command LapseAndShiftConditions, that return the equations of the most common slicing and spatial gauge conditions, optionally attempting to solve them for the Lapse and Shift.
restart;withPhysics: withThreePlusOne;
⁢_______________________________________________________
Setting lowercaselatin_is letters to represent space indices
Defined as 4D spacetime tensors see ?Physics,ThreePlusOne,γμ,ν,▿μ,Γμ,ν,α,Rμ,ν,Rμ,ν,α,β,βμ,nμ,tμ,Κμ,ν
Changing the signature of spacetime from - - - + to + + + - in order to match the signature customarily used in the ADM formalism
⁢Default differentiation variables for d_, D_ and dAlembertian are:⁢X=x,y,z,t
⁢Systems of spacetime coordinates are:⁢X=x,y,z,t
ADMEquations,Christoffel3,D3_,ExtrinsicCurvature,Lapse,LapseAndShiftConditions,Ricci3,Riemann3,Shift,TimeVector,UnitNormalVector,gamma3_
To see the conditions implemented in this first version of LapseAndShiftConditions, you can enter the command with no arguments
LapseAndShiftConditions
advectiveonepluslog,generalizedharmonicslicing,geodesicslicing,harmoniccoordinates,harmonicslicing,kdriver,maximalslicing,onepluslog
To see the condition equations behind these keywords in this first version of LapseAndShiftConditions, use
for condition in LapseAndShiftConditions do _______________________________________; condition = LapseAndShiftConditionsconditionod;
_______________________________________
advectiveonepluslog=%LieDerivativeUnitNormalVector⁡Lapse=−2⁢%ExtrinsicCurvaturetrace%d_0⁡Lapse−Shift~j⁢%d_j⁡Lapse=−2⁢Lapse⁢%ExtrinsicCurvaturetrace
generalizedharmonicslicing=%d_0⁡Lapse=−Lapse2⁢%f⁡Lapse⁢%ExtrinsicCurvaturetraceShift~i=0
geodesicslicing=Lapse=1Shift~i=0
harmoniccoordinates=%d_0⁡Lapse−Shift~j⁢%d_j⁡Lapse=−Lapse2⁢%ExtrinsicCurvaturetrace%d_0⁡Shift~i−Shift~j⁢%d_j⁡Shift~i=−Lapse2⁢%gamma3_~i,~j⁢%d_j⁡%ln⁡Lapse+%gamma3_~j,~k⁢%Christoffel3~i,j,k
harmonicslicing=%d_0⁡Lapse=−Lapse2⁢%ExtrinsicCurvaturetraceLapse=%C⁡x,y,z,t⁢%gamma3_determinantShift~i=0
kdriver=%d_0⁡%ExtrinsicCurvaturetrace=%c⁢%ExtrinsicCurvaturetrace%d_0⁡Lapse=−%epsilon⁢%d_0⁡%ExtrinsicCurvaturetrace+%c⁢%ExtrinsicCurvaturetrace0<%c,0<%epsilon
maximalslicing=%ExtrinsicCurvaturetrace=0,%d_0⁡%ExtrinsicCurvaturetrace=0D_~mu⁡D_μ⁡Lapse=Lapse⁢%ExtrinsicCurvatureμ,ν⁢%ExtrinsicCurvature~mu,~nu+4⁢π⁢%EnergyMomentumν,α⁢%gamma3_μ,~nu⁢%gamma3_~mu,~alpha+%EnergyMomentum~mu,~nu⁢%UnitNormalVectorμ⁢%UnitNormalVectorν
onepluslog=%d_0⁡Lapse=−2⁢Lapse⁢%ExtrinsicCurvaturetraceLapse=1+ln⁡%gamma3_determinantShift~i=0
In the compact equations above, these condition equations for the Lapse and Shift include other tensors of the ThreePlusOne package, expressed in terms of their inert forms (displayed in grey) to allow for further manipulations. To retrieve these equations using these keywords, you can pass any them complete or, if you don't remember the exact spelling, just a portion of them suffices. For example,
LapseAndShiftConditionsgeneralized
* Partial match of 'generalized' against keyword 'generalizedharmonicslicing'
%d_0⁡Lapse=−Lapse2⁢%f⁡Lapse⁢%ExtrinsicCurvaturetraceShift~i=0
These conditions form a system of equations for the Lapse and Shift that, depending on the 4D metric set, may be solvable in exact form. For example, the metric set at this point is the default metric when Physics loads
g_
g_μ,ν=100001000010000−1
and for this metric two exact solutions for the Lapse and Shift are
LapseAndShiftConditionsgeneralized,output=solution
α=_F1⁡x,y,z,β⁢1⁢1=0,β⁢2⁢2=0,β⁢3⁢3=0,α=RootOf⁡f⁡_Z+1,β⁢1⁢1=0,β⁢2⁢2=0,β⁢3⁢3=0
where the RootOf in the second set implies on
DEtoolsremove_RootOfα=RootOf⁡f⁡_Z+1
f⁡α+1=0
These results can be obtained step by step manipulating the equations (37) themselves, in which case it is more convenient to have them evaluated first. For that purpose use the option evaluate, and set the Lapse and Shift to arbitrary so that the ExtrinsicCurvature (or any other tensor of ThreePlusOne) is not prematurely evaluated in terms of the Minkowski metric (38) (comments about this further below)
Setuplapse=arbitrary
* Partial match of 'lapse' against keyword 'lapseandshift'
lapseandshift=arbitrary
Now, instead of Κtrace= 0 we have the trace expressed in terms of arbitrary Lapse and Shift
ExtrinsicCurvaturetrace
−β⁢1⁢1⁢∂∂xα⁢α2+β⁢2⁢2⁢∂∂yα⁢α2+β⁢3⁢3⁢∂∂zα⁢α2+β⁢1⁢1⁢∂∂xα+β⁢2⁢2⁢∂∂yα+β⁢3⁢3⁢∂∂zα−∂∂tαα2
and so, recomputing the equations (37) using the evaluate option, we have
EQ ≔ LapseAndShiftConditionsgeneralizedharmonicslicing, eval
* Partial match of 'eval' against keyword 'evaluate'
diff⁡Lapse,t=−−Lapse2⁢Shift~1−Shift~1⁢diff⁡Lapse,x+−Lapse2⁢Shift~2−Shift~2⁢diff⁡Lapse,y+−Lapse2⁢Shift~3−Shift~3⁢diff⁡Lapse,z+diff⁡Lapse,t⁢f⁡LapseShift~1=0Shift~2=0Shift~3=0
Substitute the equations for the Shift, β⁢j=0, into the equations for the Lapse α
convertEQ2,setofequations
β⁢1⁢1=0,β⁢2⁢2=0,β⁢3⁢3=0
subs,EQ1
∂∂tα=−∂∂tα⁢f⁡α
It is now possible to see that this system has two solutions: either fα=−1 (the second solution in (39), resulting in (40)) or the Lapse α does not depend on t (the first solution in (39)).
To understand the need, in (41), to set the lapseandshift to arbitrary, check what happens with the default value Setuplapse=standard
Setuplapse=standard
lapseandshift=standard
Trying to reproduce the computation above, the first step works
LapseAndShiftConditionsgeneralizedharmonicslicing, eval
but because of Setuplapse=standard, in the next step the derivative of the Lapse is computed rewriting the Lapse in terms of the Minkowski metric (38), for which the Lapse is actually equal to 1
Lapsedefinition
α=1−▿μ⁡t⁢▿⁢μ⁢μ⁡t
SumOverRepeatedIndices
α=1
and so, the step that results in (45), here results in nothing
0=0
The key observation is understanding what is defined (expressed) in terms of what. Given a 4D metric gμ,ν, when Setuplapseandshift=standard the Lapse and Shift are defined in terms of the components g0,μ. That is why in (49) we have α=1. On the other hand, when Setuplapseandshift=arbitrary the Lapse and Shift are not expressed in terms of the metric, they remain arbitrary, allowing for solving the condition equations in order to then express the components g0,μ in terms of the Lapse and Shift.
An example where the conditions can be solved exactly and the spacetime is curved: set the Schwarzschild metric in spherical coordinates
g_sc
⁢Systems of spacetime coordinates are:⁢X=r,θ,φ,t
⁢Default differentiation variables for d_, D_ and dAlembertian are:⁢X=r,θ,φ,t
⁢The Schwarzschild metric in coordinates ⁢r,θ,φ,t
Parameters: m
g_μ,ν=−r−r+2⁢m0000r20000r2⁢sin⁡θ20000−r+2⁢mr
Consider the harmonicslicing conditions
LapseAndShiftConditionsharmonicslicing
Christoffel~4,ν,~nu=0%d_0⁡Lapse=−Lapse2⁢%ExtrinsicCurvaturetraceLapse=%C⁡r,θ,φ,t⁢%gamma3_determinantShift~i=0
Note that in spite of having Setuplapseandshift=standard, in the internal intermediate computations of LapseAndShiftConditions Setuplapseandshift=arbitrary is used, so the problem can be formulated and tackled in the right way, resulting in the right conditions equations when using the option evaluate, allowing to compute a solution
LapseAndShiftConditionsharmonicslicing,evaluate
0=0diff⁡Lapse,t=2⁢sin⁡θ⁢−12⁢Lapse2⁢r+m−12⁢r⁢r⁢Shift~2⁢diff⁡Lapse,θ+2⁢sin⁡θ⁢Shift~3⁢−12⁢Lapse2⁢r+m−12⁢r⁢r⁢diff⁡Lapse,φ+2⁢sin⁡θ⁢Shift~1⁢−12⁢Lapse2⁢r+m−12⁢r⁢r