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 2016 has been the consolidation of the new functionality introduced during the last three releases, through more than 300 enhancements across the board, together with signification enhancements and new functionality in General Relativity. Most notably, for the 100th anniversary of the presentation of the theory of relativity, in Maple 2016 we are bringing to completion the digitalization of the solutions to Einstein's equations collected, from more than 4000 papers, in the classic book "Exact Solutions to Einstein's Equations" by H. Stephani - et al.
In addition, Maple 2016 implements new general functionality that is relevant within and beyond Physics, including a new Factor command with the ability to perform factorization in expressions involving products of noncommutative operators and the ability to compute with differential operators algebraically, that is, operating with them using multiplication to express application. Combining these two developments, it is now possible to factorize algebraic expressions involving differential operators and so, for example, solve partial differential equations through factorization.
Taking all together, the more than 350 enhancements throughout the entire package increased robustness, versatility and functionality, extending again the range of Physics-related algebraic computations that can be done using computer algebra software and in a natural way.
As part of its commitment to providing the best possible environment for algebraic computations in Physics, Maplesoft launched a Maple Physics: Research and Development web site with Maple 18, 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 2016.
Completion of the Database of Solutions to Einstein's Equations
Operatorial Algebraic Expressions Involving the Differential Operators ∂μ, 𝒟μ and ∇ (nabla)
Factorization of Expressions Involving Noncommutative Operators
Tensors in Special and General Relativity
Vectors Package
The Physics Library
Redesigned Functionality and Miscellaneous
A database of solutions to Einstein's equations was added to the Maple library in Maple 15 with a selection of metrics from "Stephani, H.; Kramer, D.; MacCallum, M.; Hoenselaers, C.; and Herlt, E., Exact Solutions to Einstein's Field Equations". More metrics from this book were added for Maple 16, Maple 17, and Maple 18, up to 225 metrics. In Maple 2016, for the 100th anniversary of the presentation of the theory of Relativity by A. Einstein, we brought to completion the digitalization of all the 971 metric solutions collected from more than 4000 papers presented in the General Relativity literature. All these metrics can be loaded or searched using g_ (the Physics command representing the spacetime metric that also sets the metric to your choice in one go) or using the command DifferentialGeometry:-Library:-MetricSearch. When a metric is loaded, all the General Relativity tensors (Christoffel, Ricci, Einstein, and Riemann) are automatically computed on background and available for further computations. These metrics can also be changed in various ways and, automatically, all the General Relativity tensors are recomputed on background. You can work with these metrics, the ones in the database or any other one you set, using the Tetrads formalism too, with the commands of the Physics:-Tetrads package.
In the Maple PDEtools package, you have the mathematical tools - including a complete symmetry approach - to work with the underlying partial differential equations. By combining the functionality of the Physics:-Tetrads package, the Physics:-TransformCoordinates command, and the ability to compute Riemann and Weyl invariants, you can also formulate and, depending on the the metrics also resolve, the equivalence problem; that is: to answer whether or not, given two metrics, they can be obtained from each other by a transformation of coordinates, as well as compute the transformation.
Examples
Load Physics, set the metric to Schwarzschild (and everything else automatically) in one go
restart; withPhysics:
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
That is all you need to do: although the strength in Physics is to compute with tensors using indicial notation, by setting the metric as in all of the tensor components of the General Relativity tensors are also derived on the fly and ready for use. For instance these are the definition in terms of Christoffel symbols, and the covariant components of the Ricci tensor for Schwarzschild solution
Riccidefinition
Rμ,ν=∂α⁡Γ⁢αμ,ν⁢αμ,ν−∂ν⁡Γ⁢αμ,α⁢αμ,α+Γ⁢βμ,ν⁢βμ,ν⁢Γ⁢αβ,α⁢αβ,α−Γ⁢βμ,α⁢βμ,α⁢Γ⁢αν,β⁢αν,β
Ricci
Rμ,ν=0000000000000000
These are the 16 Riemann invariants for Schwarzschild solution, using the formulas by Carminati and McLenaghan
Riemanninvariants
r0=0,r1=0,r2=0,r3=0,w1=6⁢m2r6,w2=6⁢m3r9,m1=0,m2=0,m3=0,m4=0,m5=0
The related Weyl scalars in the context of the Newman-Penrose formalism; the definition is in terms of the Weyl tensor and the tetrad of tensors lμ,nμ,mμ,m&conjugate0;μ of the Newman-Penrose formalism
Weylscalarsdefinition
ψ__0=−C⁢μ,ν,α,β⁢μ,ν,α,β⁢lμ⁢mν⁢lα⁢mβ,ψ__1=−C⁢μ,ν,α,β⁢μ,ν,α,β⁢lμ⁢nν⁢lα⁢mβ,ψ__2=−C⁢μ,ν,α,β⁢μ,ν,α,β⁢lμ⁢mν⁢m&conjugate0;α⁢nβ,ψ__3=−C⁢μ,ν,α,β⁢μ,ν,α,β⁢lμ⁢nν⁢m&conjugate0;α⁢nβ,ψ__4=−C⁢μ,ν,α,β⁢μ,ν,α,β⁢nμ⁢m&conjugate0;ν⁢nα⁢m&conjugate0;β
Weylscalars
ψ__0=0,ψ__1=0,ψ__2=−mr3,ψ__3=0,ψ__4=0
These are the matrix components of the Christoffel symbols of the second kind (that describe, in coordinates, the effects of parallel transport in curved surfaces), when the first of its three indices is equal to 1; contravariant indices are prefixed by ~
Christoffel~1,alpha,beta,matrix
Γ⁢1α,β⁢1α,β=mr⁢−r+2⁢m0000−r+2⁢m0000−r+2⁢m⁢sin⁡θ20000−2⁢m2+m⁢rr3
In Physics, the Christoffel symbols of the first kind are represented by the same object (one command, Christoffel, not two) just by taking the first index covariant, as we do when computing with paper and pencil
Christoffel1,alpha,beta,matrix
Γ1,α,β=m−r+2⁢m20000r0000r⁢sin⁡θ20000−mr2
One could query the database, directly from the spacetime metrics, for example about the solutions (metrics) to Einstein's equations related to Levi-Civita, the Italian mathematician
g_civi
____________________________________________________________
12,16,1=Authors=Bertotti (1959),Kramer (1978),Levi-Civita (1917),Robinson (1959),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Homogeneous
12,18,1=Authors=Bertotti (1959),Kramer (1978),Levi-Civita (1917),Robinson (1959),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Homogeneous
12,19,1=Authors=Bertotti (1959),Kramer (1978),Levi-Civita (1917),Robinson (1959),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Homogeneous,Comments=_lambda=_zeta
22,7,1=Authors=Levi-Civita (1917), Frehland (1971),PrimaryDescription=Vacuum,SecondaryDescription=Cylindrically-Symmetric,Comments=Locally static, Weyl class_m=0,1 - flat, _m=1/2, 2, -1 - PetrovType D
Each triad of numbers indicates the chapter and equation number with which each of these metrics appear in "Exact Solutions to Einstein's Field Equations". For example, [12, 16, 1] is the metric found in Chapter 12 with equation number 16.1. These solutions can be set in one go from the metrics command, just by indicating the triad of numbers as follows
g_12,16,1
Systems of spacetime Coordinates are: X=t,x,θ,φ
Default differentiation variables for d_, D_ and dAlembertian are: X=t,x,θ,φ
The Bertotti (1959), Kramer (1978), Levi-Civita (1917), Robinson (1959) metric in coordinates t,x,θ,φ
Parameters: k,κ0,β
Resetting the signature of spacetime from "- - - +" to `- + + +` in order to match the signature in the database of metrics:
Automatically, everything gets set accordingly; these are the contravariant components of the related Ricci tensor
Ricci~
R⁢μ,ν⁢μ,ν=1k4⁢sinh⁡x20000−1k400001k400001k4⁢sin⁡θ2
One works with the Newman-Penrose formalism frequently using tetrads (local system of references); the Physics subpackage for this is Tetrads
withTetrads
Setting lowercaselatin 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;μ
IsTetrad,NullTetrad,OrthonormalTetrad,PetrovType,SegreType,TransformTetrad,e_,eta_,gamma_,l_,lambda_,m_,mb_,n_
To query about the definition of any of these tensors, of the Tetrads or Physics packages, index them with the keyword definition
l_definition
lμ⁢l⁢μ⁢μ=0,lμ⁢n⁢μ⁢μ=−1,lμ⁢m⁢μ⁢μ=0,lμ⁢m&conjugate0;⁢μ⁢μ=0,gμ,ν=−lμ⁢nν−lν⁢nμ+mμ⁢m&conjugate0;ν+mν⁢m&conjugate0;μ
gamma_definition
γa,b,c=𝒟ν⁡𝔢a,μ⁢𝔢bμbμ⁢𝔢cνcν
This is the orthonormal tetrad 𝔢a,μ related to the metric set in set by the package (you can change these tetrads in different ways using the TransformTetrad command)
e_
𝔢a,μ=sinh⁡x⁢k0000k0000k0000sin⁡θ⁢k
You can check these components directly using the definition. In this case, the right-hand side is the (orthonormal) tetrad metric
e_definition
𝔢a,μ⁢𝔢bμbμ=ηa,b
eta_
This shows that, for the tetrad components given by (13), the definition (14) holds
TensorArray
−1=−10=00=00=00=01=10=00=00=00=01=10=00=00=00=01=1
One frequently works with a different signature and null tetrads; set that, and everything related automatically
Setuptetradmetric = null
tetradmetric=1,2=−1,3,4=1
𝔢a,μ=2⁢sinh⁡x⁢k22⁢k2002⁢sinh⁡x⁢k2−2⁢k200002⁢k2I2⁢2⁢sin⁡θ⁢k002⁢k2−I2⁢2⁢sin⁡θ⁢k
Verifying (17) using the definition (14)
0=0−1=−10=00=0−1=−10=00=00=00=00=00=01=10=00=01=10=0
You can also change the signature and everything gets automatically recomputed as well, from the components of the tensors to the definition of Weyl scalars. You can query the value of the signature using Setup
Setupsignature
signature=- + + +
Set the signature to be + - - - , compare the components of the null tetrad metric with the components of and verify the tetrad 𝔢a,μ
Setupsignature = `+---`
signature=+ - - -
𝔢a,μ=−I2⁢2⁢sinh⁡x⁢k−I2⁢2⁢k00−I2⁢2⁢sinh⁡x⁢kI2⁢2⁢k0000−I2⁢2⁢k2⁢sin⁡θ⁢k200−I2⁢2⁢k−2⁢sin⁡θ⁢k2
0=01=10=00=01=10=00=00=00=00=00=0−1=−10=00=0−1=−10=0
The related 16 Riemann invariants
r0=0,r1=1k4,r2=0,r3=14⁢k8,w1=0,w2=0,m1=0,m2=0,m3=0,m4=0,m5=0
The ability to query rapidly, set things in one go, change everything and have all the quantities automatically adjusted are at the realm of the design of the General Relativity functionality of the Physics package, resulting in a rather flexible computational environment.
These are the metrics by Kaigorodov; next are those published in 1962
g_Kaigorodov
12,34,1=Authors=Kaigorodov (1962),Cahen (1964),Siklos (1981),Ozsvath (1987),PrimaryDescription=Einstein,SecondaryDescription=Homogeneous,Comments=All metrics with _epsilon <> 0 are equivalent to the cases _epsilon = +1, -1, _epsilon = 0 is anti-deSitter space
12,35,1=Authors=Kaigorodov (1962),Cahen (1964),Siklos (1981),Ozsvath (1987),PrimaryDescription=Einstein,SecondaryDescription=Homogeneous,SimpleTransitive
38,2,1=Authors=Kaigorodov (1962),PrimaryDescription=Hypersurface-Homogeneous,SecondaryDescription=AlgebraicallySpecial
38,3,1=Authors=Kaigorodov (1962),PrimaryDescription=Hypersurface-Homogeneous,SecondaryDescription=AlgebraicallySpecial,Comments=Note, there is a typo (the x^4 term) in this metric in Stephani which we were not able to verify from the original. This metric may not be correct!
g_`1962`
12,13,1=Authors=Ozsvath, Schucking (1962),PrimaryDescription=Vacuum,SecondaryDescription=Homogeneous,PlaneWave,Comments=geodesically complete, no curvature singularities
12,14,1=Authors=Petrov (1962),PrimaryDescription=Vacuum,SecondaryDescription=Homogeneous,SimpleTransitive
18,2,1=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case AI, _Psi2=-_b/(2*r^3)
18,2,2=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case AII, _Psi2=_b*(1/(2*z^3))
18,2,3=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case AIII, _Psi2=1/(2*z^3)
18,2,4=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case BI, _Psi2=-_b*(1/(2*r^3))
18,2,5=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case BII, _Psi2=_b*(1/(2*z^3))
18,2,6=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case BIII, _Psi2=1/(2*z^3)
18,2,7=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case C, _Psi2=(1/2)*(x+y)^3, + case
18,2,8=Authors=Ehlers and Kundt (1962),PrimaryDescription=vacuum solutions ,SecondaryDescription=degenerate static vacuum solution,Comments=Table 18.2, case C, _Psi2=-(1/2)*(x+y)^3, - case
22,59,1=Authors=Misra and and Radhakrishna (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Cylindrically-Symmetric,Comments=Null EM field, _W=Int((diff(_Theta(u),u)^2+diff(_eta(u),u)^2),u), u=(t-rho)/sqrt(2), the non-null case is with _Theta(t,rho)=_Psi(t,rho)*cos(_alpha), _Theta(t,rho)=_Psi(t,rho)*sin(_alpha)
26,21,1=Authors=Newman and Tamburino (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Non-Aligned, Non-Null,Comments=Spherical class
26,22,1=Authors=Newman and Tamburino (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Non-Aligned, Non-Null,Comments=Cyllindrical class
26,23,1=Authors=Newman and Tamburino (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Non-Aligned, Non-Null,Comments=Cyllindrical class
27,27,1=Authors=Robinson and Trautman 1962, Debney et al. 1969, Talbot 1969, Robinson et al. 1969a, Lind 1974 ,PrimaryDescription=Generic,SecondaryDescription=geodesic, shearfree and diverging null congruence,Comments=rho:=1/(-(r+r0+I*Sigma)): Sigma:=-2*I*P^2*((diff(L,zb)-L*diff(L,u))-(diff(Lb,z)-L*diff(Lb,u))):
27,37,1=Authors=Robinson and Trautman (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=Non-Aligned, non-null,Comments=admits geodesic, shearfree, twistfree null congruence, _rho=-1/r=_rho_b
28,8,1=Authors=Robinson-Trautman (1962),PrimaryDescription=Vacuum,SecondaryDescription=RobinsonTrautman,Comments=diff(2*_P(u,z,zb)^2*diff(2*_P(u,z,zb)^2*ln(_P(u,z,zb)),z,zb),z,zb)+12*_m(u)*diff(ln(_P(u,z,zb)),u)-4*diff(_m(u),u)=0
28,12,1=Authors=Robinson-Trautman (1962),PrimaryDescription=Vacuum,SecondaryDescription=RobinsonTrautman,Comments=2*P(u, z, zb)^2*diff(ln(P(u, z, zb)),z,zb)=_K(u), _K(u)=0,+1,-1
28,16,1=Authors=Robinson-Trautman (1962),PrimaryDescription=Vacuum,SecondaryDescription=RobinsonTrautman,Comments=The coordinate zeta is changed to xi,AlternativeOrthonormalTetrad1 and AlternativeNullTetrad1 are adapted to the shear-free null geodesic congruence (Robinson-Trautman tetrads)
28,26,1=Authors=Robinson, Trautman (1962),PrimaryDescription=Vacuum,SecondaryDescription=RobinsonTrautman,Comments=One can use the diffeo r -> -r and u -> -u to make the assumption r > 0,The case _m = 0 is Stephani, [28, 16,1],The metric is type D at points where r = 3*_m/(xi1+xi2) and type II on either side of this hypersurface. For convenience, it is assumed that 3*_m - r*(xi1 + xi2) > 0,AlternativeOrthonormalTetrad1 and AlternativeNullTetrad1 are adapted to the shear-free null geodesic congruence (Robinson-Trautman tetrads)
28,26,2=Authors=Robinson, Trautman (1962),PrimaryDescription=Vacuum,SecondaryDescription=RobinsonTrautman,Comments=One can use the diffeo r -> -r and u -> -u to make the assumption r > 0,The case _m = 0 is Stephani, [28, 16,1].,AlternativeOrthonormalTetrad1 and AlternativeNullTetrad1 are adapted to the shear-free null geodesic congruence (Robinson-Trautman tetrads)
28,26,3=Authors=Robinson, Trautman (1962),PrimaryDescription=Vacuum,SecondaryDescription=RobinsonTrautman,Comments=One can use the diffeo r -> -r and u -> -u to make the assumption r > 0,The case _m = 0 is Stephani, [28, 16,1].,AlternativeOrthonormalTetrad1 and AlternativeNullTetrad1 are adapted to the shear-free null geodesic congruence (Robinson-Trautman tetrads)
28,37,1=Authors=Robinson-Trautman (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=RobinsonTrautman,Comments=diff(2*P^2*diff(2*P(u,z,zb)^2*ln(P(u,z,zb)),z,zb),z,zb)+12*_m(u)*diff(ln(P(u,z,zb)),u)-4*diff(_m(u),u)=4*_kappa0*P^2*_h(u,z,zb)*_hb(u,z,zb), _Q(u,z,zb)*diff(_Qb(u,z,zb),u)-_Qb(u,z,zb)*diff(_Q(u,z,zb),u)=2*_P(u,z,zb)^2*(_hb(u,z,zb)*diff(_Qb(u,z,zb),zb)-_h(u,z,zb)*diff(_Q(u,z,zb),b)), diff(_h(u,z,zb),z)=diff(_Qb(u,z,zb)/2/_P(u,z,zb)^2,u), diff(_m(u,z,zb),z)=_kappa0*_hb(u,z,zb)*_Qb(u,z,zb)
28,43,1=Authors=Robinson, Trautman (1962),PrimaryDescription=EinsteinMaxwell,SecondaryDescription=PureRadiation,RobinsonTrautman,Comments=h1(u) is the conjugate of h(u)
31,40,1=Authors= Petrov (1962),PrimaryDescription=Vacuum,SecondaryDescription=Non-diverging
35,19,1=Authors=Ehlers and Kundt 1962,PrimaryDescription=Generic,SecondaryDescription=PPWave,Comments=constant null bivector, _k[mu]=-D_[mu](u)
The search can also be done visually, by properties. The following is the only solution in the database that is a Pure Radiation solution, of Petrov Type "D", Plebanski-Petrov Type "O" and that has Isometry Dimension equal to 1:
DifferentialGeometry:-Library:-MetricSearch
Set the solution, and everything related to work with it, in one go
g_28,74,1
Systems of spacetime Coordinates are: X=u,η,r,y
Default differentiation variables for d_, D_ and dAlembertian are: X=u,η,r,y
The Frolov and Khlebnikov (1975) metric in coordinates u,η,r,y
Parameters: κ0,m⁡u,b,d
Comments: Wⅈth m(u) = constant, thⅇ mⅇtrⅈc ⅈs Rⅈccⅈ flat anⅆ bⅇcomⅇs 28.24 ⅈn Stⅇphanⅈ.
Resetting the signature of spacetime from "+ - - -" to `- + + +` in order to match the signature in the database of metrics:
The related Riemann invariants:
r0=0,r1=0,r2=0,r3=0,w1=6⁢m⁡u2r6,w2=−6⁢m⁡u3r9,m1=0,m2=0,m3=0,m4=0,m5=0
To list all the triads of numbers associated to the solutions digitized in the database (each triad indicates the Chapter and equation number with which each of these metrics appear in the book), enter
DifferentialGeometry:-Library:-RetrieveStephani,1
8,33,1,8,34,1,12,6,1,12,7,1,12,8,1,12,8,2,12,8,3,12,8,4,12,8,5,12,8,6,12,8,7,12,8,8,12,9,1,12,9,2,12,9,3,12,9,4,12,9,5,12,9,6,12,9,7,12,12,1,12,12,2,12,12,3,12,12,4,12,13,1,12,14,1,12,16,1,12,18,1,12,19,1,12,21,1,12,23,1,12,23,2,12,23,3,12,24.1,1,12,24.2,1,12,24.3,1,12,26,1,12,27,1,12,28,1,12,29,1,12,30,1,12,31,1,12,32,1,12,34,1,12,35,1,12,36,1,12,37,1,12,37,2,12,37,3,12,37,4,12,37,5,12,37,6,12,37,7,12,38,1,12,38,2,12,38,3,12,38,4,12,38,5,13,1,1,13,1,2,13,1,3,13,2,1,13,2,2,13,2,3,13,3,1,13,7,1,13,7,2,13,7,3,13,7,4,13,7,5,13,7,6,13,7,7,13,7,8,13,9,1,13,14,1,13,14,2,13,14,3,13,15,1,13,15,2,13,15,3,13,15,4,13,17,1,13,19,1,13,22,1,13,31,1,13,32,1,13,35,1,13,46,1,13,48,1,13,49,1,13,49,2,13,51,1,13,53,1,13,55,1,13,56,1,13,57,1,13,58,1,13,59,1,13,59,2,13,60,1,13,60,2,13,60,3,13,60,4,13,60,5,13,60,6,13,60,7,13,60,8,13,61,1,13,61,2,13,62,1,13,62,2,13,62,4,13,62,6,13,63,1,13,63,2,13,63,3,13,63,4,13,64,1,13,64,2,13,64,3,13,64,4,13,65,1,13,67,1,13,67,2,13,69,1,13,71,1,13,72,1,13,73,1,13,74,1,13,74,2,13,74,3,13,76,1,13,77,1,13,77,2,13,79,1,13,79,2,13,80,1,13,81,1,13,83,1,13,84,1,13,84,2,13,84,3,13,85,1,13,85,2,13,86,1,13,87,1,14,6.1,1,14,6.2,1,14,6.3,1,14,7,1,14,8.1,1,14,8.2,1,14,8.3,1,14,9.1,1,14,9.2,1,14,10,1,14,10,2,14,12,1,14,12,2,14,12,3,14,14,1,14,14,2,14,15,1,14,15.1,2,14,15.2,2,14,15.3,2,14,16,1,14,16,2,14,17,1,14,18,1,14,18,2,14,19,1,14,20,1,14,21,1,14,21,2,14,21,3,14,22,1,14,23,1,14,24,1,14,25,1,14,26,1,14,26,2,14,26,3,14,26,4,14,27,1,14,28,1,14,28,2,14,28,3,14,29,1,14,30,1,14,31,1,14,32,1,14,33,1,14,35,1,14,37,1,14,38,1,14,38,2,14,38,3,14,39,1,14,39,2,14,39,3,14,39,4,14,39,5,14,39,6,14,40,1,14,41,1,14,42,1,14,46,1,15,3,1,15,3,2,15,4,1,15,4,2,15,4,3,15,9,1,15,10,1,15,12,1,15,12,2,15,12,3,15,12,4,15,12,5,15,12,6,15,17,1,15,17,2,15,17,3,15,17,4,15,18,1,15,19,1,15,19,2,15,20,1,15,21,1,15,21,2,15,22,1,15,23,1,15,23,2,15,24,1,15,24,2,15,25,1,15,25,2,15,26,1,15,26,2,15,27,1,15,27,2,15,27,3,15,27,4,15,27,5,15,27,6,15,27,7,15,27,8,15,28,1,15,29,1,15,30,1,15,31,1,15,32,1,15,34,1,15,34,2,15,34,3,15,43,1,15,43,2,15,43,3,15,50,1,15,50,2,15,50,3,15,50,4,15,50,5,15,50,6,15,62,1,15,62,2,15,62,3,15,63,1,15,63,2,15,63,3,15,65,1,15,65,2,15,66,1,15,66,2,15,66,3,15,75,1,15,75,2,15,75,3,15,77,1,15,77,2,15,77,3,15,78,1,15,79,1,15,81,1,15,81,2,15,81,3,15,82,1,15,82,2,15,82,3,15,83,1.1,15,83,1.2,15,83,2,15,83,3.1,15,83,3.2,15,83,4,15,84,1,15,85,1,15,85,2,15,85,3,15,86,1,15,86,2,15,86,3,15,87,1,15,87,2,15,87,3,15,87,4,15,87,5,15,88,1,15,89,1,15,90,1,16,1,1,16,1,2,16,1,3,16,1,4,16,1,5,16,1,6,16,1,7,16,1,8,16,1,9,16,1,10,16,1,11,16,1,12,16,1,13,16,1,14,16,1,15,16,1,16,16,1,17,16,1,18,16,1,19,16,1,20,16,1,21,16,1,22,16,1,23,16,1,24,16,1,25,16,1,26,16,1,27,16,14,1,16,14,2,16,14,3,16,14,4,16,14,5,16,14,6,16,14,7,16,14,8,16,14,9,16,14,10,16,14,11,16,14,12,16,14,13,16,14,14,16,14,15,16,14,16,16,14,17,16,14,18,16,14,19,16,14,20,16,18,1,16,19,1,16,20,1,16,22,1,16,24,1,16,24,2,16,43,1,16,45,1,16,45,2,16,46,1,16,47,1,16,50,1,16,51,1,16,54,1,16,61,1,16,63,1,16,66,1,16,66,2,16,66,3,16,67,1,16,71,1,16,72,1,16,73,1,16,74,1,16,75,1,16,76,1,16,77,1,16,77,2,16,77,3,16,78,1,17,4,1,17,4,2,17,5,1,17,9,1,17,14,1,17,15,1,17,15,2,17,16,1,17,20,1,17,22,1,17,23,1,17,24,1,17,24,2,17,26,1,17,27,1,17,27,2,17,28,1,17,28,2,17,29,1,17,29,2,17,30,1,17,31,1,18,2,1,18,2,2,18,2,3,18,2,4,18,2,5,18,2,6,18,2,7,18,2,8,18,48,1,18,48,2,18,49,1,18,50,1,18,64,1,18,64,2,18,64,3,18,65,1,18,66,1,18,67,1,18,71,1,18,75,1,19,17,1,19,17,2,19,21,1,20,3,1,20,4,1,20,5,1,20,7,1,20,8,1,20,9,1,20,10,1,20,11,1,20,12,1,20,13,1,20,15,1,20,16,1,20,17,1,20,20,1,20,21,1,20,23,1,20,27,1,20,28,1,20,29,1,20,32,1,20,34,1,20,36,1,20,38,1,20,38,2,20,38,3,20,44,1,20,46,1,20,54,1,20,57,1,20,57,2,21,1,1,21,1,2,21,1,3,21,4,1,21,5,1,21,6,1,21,7,1,21,10,1,21,10,2,21,11,1,21,16,1,21,17,1,21,17,2,21,20,1,21,22,1,21,22,2,21,24,1,21,28,1,21,30,1,21,30,2,21,30,3,21,31,1,21,35,1,21,41,1,21,52,1,21,57,1,21,58,1,21,59,1,21,60,1,21,61,1,21,61,2,21,61,3,21,61,4,21,61,5,21,70,1,21,71,1,21,72,1,21,73,1,21,74,1,21,74,2,21,74,3,21,74,4,22,3,1,22,4,1,22,4,2,22,5,1,22,6,1,22,6,2,22,7,1,22,8,1,22,8,2,22,8,3,22,8,4,22,8,5,22,11,1,22,12,1,22,13,1,22,14,1,22,15,1,22,16,1,22,17,1,22,18,1,22,18,2,22,19,1,22,22,1,22,23,1,22,24,1,22,27,1,22,28,1,22,29,1,22,34,1,22,34,2,22,34,3,22,34,4,22,34,5,22,47,1,22,48,1,22,49,1,22,50,1,22,51,1,22,52,1,22,53,1,22,59,1,22,63,1,22,64,1,22,67,1,22,67,2,22,70,1,23,1,1,23,2,1,23,2,2,23,2,3,23,2,4,23,3,1,23,4,1,23,6,1,23,6,2,23,7,1,23,8,1,23,8,2,23,8,3,23,11,1,23,12,1,23,13,1,23,13,2,23,13,3,23,13,4,23,14,1,23,14,2,23,14,3,23,14,4,23,14,5,23,14,6,23,14,7,23,15,1,23,15,2,23,15,3,23,15,4,23,15,5,23,16,1,23,16,2,23,16,3,23,16,4,23,16,5,23,17,1,23,17,2,23,18,1,23,18,2,23,19,1,23,19,2,23,20,1,23,20,2,23,20,3,23,21,1,23,21,2,23,22,1,23,23,1,23,24,1,23,25,1,23,26,1,23,26,2,23,26,3,23,26,4,23,26,5,23,26,6,23,26,7,23,26,8,23,30,1,23,31,1,23,32,1,23,32,2,23,32,3,23,33,1,23,33,2,23,33,3,23,34,1,23,35,1,23,36,1,23,36,2,23,36,3,23,37,1,23,38,1,23,38,2,23,38,3,23,39,1,23,39,2,23,40,1,23,40,2,23,40,3,23,40,4,23,41,1,23,41,2,23,41,3,23,42,1,23,43,1,23,44,1,23,44,2,23,45,1,23,46,1,23,47,1,23,48,1,23,48,2,23,49,1,23,50,1,23,51,1,23,52,1,23,53,1,24,2,1,24,2,2,24,2,3,24,2,4,24,2,5,24,2,6,24,2,7,24,2,8,24,2,9,24,2,10,24,2,11,24,21,1,24,22,1,24,28,1,24,35,1,24,37,1,24,37,2,24,37,3,24,37,4,24,37,5,24,37,6,24,37,7,24,37,8,24,37,9,24,38,1,24,38,2,24,40,1,24,46,1,24,46,2,24,46,3,24,47,1,24,51,1,25,2,1,25,5,1,25,5,2,25,6,1,25,9,1,25,12,1,25,16,1,25,16,2,25,16,3,25,16,4,25,22,1,25,24,1,25,26,1,25,26,2,25,26,3,25,28,1,25,30,1,25,31,1,25,35,1,25,36,1,25,36,2,25,39,1,25,43,1,25,45,1,25,55,1,25,56,1,25,56,2,25,57,1,25,57,2,25,59,1,25,61,1,25,62,1,25,65,1,25,68,1,25,68,2,25,68,3,25,74,1,26,5,1,26,5,2,26,5,3,26,5,4,26,6,1,26,11,1,26,13,1,26,14,1,26,14,2,26,15,1,26,16,1,26,16,2,26,16,3,26,16,4,26,16,5,26,16,6,26,19,1,26,21,1,26,22,1,26,23,1,26,25,1,26,25,2,26,25,3,27,27,1,27,37,1,28,8,1,28,12,1,28,16,1,28,17,1,28,21,1,28,21,2,28,21,3,28,21,4,28,21,5,28,21,6,28,21,7,28,24,1,28,25,1,28,26,1,28,26,2,28,26,3,28,37,1,28,41,1,28,42,1,28,43,1,28,44,1,28,44,2,28,44,3,28,44,4,28,44,5,28,44,6,28,45,1,28,45,2,28,46,1,28,46,2,28,47,1,28,50,1,28,53,1,28,53,2,28,55,1,28,55,2,28,56.1,1,28,56.2,2,28,56.2,3,28,56.3,1,28,56.4,1,28,56.5,1,28,56.6,1,28,58.2,1,28,58.3,1,28,58.3,2,28,58.4,1,28,59,1,28,60,1,28,61,1,28,64,1,28,66,1,28,67,1,28,68,1,28,71,1,28,72,1,28,73,1,28,74,1,28,78,1,29,13,1,29,34,1,29,38,1,29,46,1,29,53,1,29,60,1,29,62,1,29,64,1,29,71,1,29,74,1,29,75,1,30,14,1,30,20,1,30,22,1,30,26,1,30,27,1,30,27,2,30,28,1,30,28,2,30,28,3,30,30,1,30,33,1,30,34,1,30,36,1,30,37,1,30,43,1,30,45,1,30,46,1,30,47,1,30,50,1,30,51,1,30,51,2,30,51,3,30,52,1,30,58,1,30,59,1,30,62,1,30,64,1,30,65,1,30,69,1,30,71,1,30,73,1,30,76,1,31,7,1,31,8,1,31,26,1,31,34,1,31,34,2,31,38,1,31,40,1,31,41,1,31,43,1,31,43,2,31,43,3,31,49,1,31,50,1,31,56,1,31,57,1,31,58,1,31,60,1,31,61,1,32,31,1,32,43,1,32,47,1,32,59,1,32,60,1,32,62,1,32,71,1,32,78,1,32,80,1,32,80,2,32,80,3,32,80,4,32,94,1,32,96,1,32,96,2,32,99,1,32,102,1,32,102,2,32,104,1,33,5,1,33,7,1,33,8,1,33,8,2,33,8,3,33,9,1,33,10,1,33,10,2,33,11,1,33,12,1,33,12,2,33,13,1,33,14,1,33,15,1,33,16,1,33,17,1,33,18,1,33,19,1,33,20,1,33,22,1,33,23,1,33,25,1,33,25,2,33,28,1,33,30,1,33,31,1,33,34,1,33,35,1,33,38,1,33,40,1,33,43,1,33,44,1,33,45,1,33,48,1,33,49,1,34,23,1,34,25,1,34,128,1,35,6,1,35,7,1,35,8,1,35,9,1,35,19,1,35,29,1,35,30,1,35,33,1,35,34,1,35,35,1,35,73,1,35,74,1,35,75,1,35,76,1,35,76,2,35,77,1,35,78,1,35,79,1,35,80,1,36,11,1,36,12,1,36,13,1,36,14,1,36,15,1,36,18,1,36,18,2,36,19,1,36,20,1,36,22,1,36,23,1,36,24,1,36,25,1,36,26,1,36,28,1,36,30,1,36,31,1,36,32,1,36,33,1,36,34,1,36,35,1,36,36,1,36,37,1,37,13,1,37,21,1,37,39,1,37,40,1,37,45,1,37,49,1,37,50,1,37,51,1,37,53,1,37,55,1,37,57,1,37,58,1,37,58,2,37,58,3,37,64,1,37,65,1,37,66,1,37,68,1,37,83,1,37,84,1,37,98,1,37,104,1,37,106,1,38,1,1,38,2,1,38,3,1,38,4,1,38,5,1,38,6,1
There are as many solutions as
nops
991
Maple 2016 implements the concept of operatorial expressions, that is, the ability to compute with the differential operators ∂μ , 𝒟μ and nabla ∇ from the Vectors subpackage, algebraically, considering them as noncommutative operators and using multiplication to express their application within expressions. When desired, the multiplication is transformed into application of the differential operator to the operands that appear to its right.
The differential operators ∂μ , 𝒟μ and nabla ∇ are thus now considered noncommutative, in that and they are assumed to commute only with mathematical objects that do not depend on the coordinates (that is, constants with respect to their differentiation variables). This also means that the Commutator and Anticommutator commands, as well as the commands Library:-Commute and Library:-Anticommute, all work with these differential operators taking their noncommutative property into account.
Among other things, this new ability to compute with differential operators algebraically, when combined with the new ability to factorize expressions involving products of noncommutative operands, allows for factorizing algebraic expressions representing differential operators of higher order into products of algebraic expressions representing differential operators of lower order - an operation at the realm of solving non-linear differential equations; the first steps of this approach are now implemented too.
restart; withPhysics:withVectors:
Consider the commutator between a scalar Ax,y,z and the nabla operator ∇; use compact display for convenience
PDEtools:-declareAx,y,z, B_x,y,z
A⁡x,y,z⁢will now be displayed as⁢A
B→⁡x,y,z⁢will now be displayed as⁢B→
CommutatorNabla, Ax,y,z
∇,A−
New: the expanded form of this commutator now has the correct operatorial meaning:
expand
∇⁢A−A⁢∇
. B_x,y,z
∇⁢A−A⁢∇·B→
∇⁢A·B→−A⁢∇·B→
So all the algebra is performed taking ∇ as a noncommutative operator, as we do when computing with paper and pencil. You can apply the differential operators at any time using the new Library:-ApplyProductsOfDifferentialOperators
Library:-ApplyProductsOfDifferentialOperators
Ax⁢i∧+Ay⁢j∧+Az⁢k∧·B→−A⁢∇·B→
The underlying types working at the core of this implementation of operatorial expressions
typeNabla, noncommutative
true
Library:-CommuteNabla, α
Library:-CommuteNabla, x
false
The differentiation variables associated to ∇ are the coordinates of the Cartesian cylindrical and spherical systems of coordinates: x,y,z,ρ,φ,r,θ.
The same concept is implemented for the differential operators of special and general relativity, ∂μ , and 𝒟μ. Define system of coordinates, X, then A and B as a tensors and for convenience use a compact display
CoordinatesX
Default differentiation variables for d_, D_ and dAlembertian are: X=x1,x2,x3,x4
Systems of spacetime Coordinates are: X=x1,x2,x3,x4
X
DefineAmu, Bmu
Defined objects with tensor properties
Aμ,Bμ,γμ,σμ,Xμ,∂μ,gμ,ν,δμ,ν,εα,β,μ,ν
PDEtools:-declareA, BX
A⁡x1,x2,x3,x4⁢will now be displayed as⁢A
B⁡x1,x2,x3,x4⁢will now be displayed as⁢B
The commutator of ∂μ and Aν multiplied by Bα , representing the application of ∂μ can now be represented as
Commutatord_mu, AnuX BalphaX
∂μ,Aν−⁢Bα
∂μ⁢Aν⁢Bα−Aν⁢∂μ⁢Bα
Note that to the right of ∂μ in the first term there is the product Aν⁢Bα , so that when applying the operator to the product, two terms result, one of which cancels the second term in (42)
∂μ⁡Aν⁢Bα
As an example of the possibilities open with operatorial algebraic expressions combined with the new factorization of algebraic expressions involving noncommutative objects, consider the factorization of Laplace equation in a Euclidean space
Setupspaceindices=lowercaselatin, coordinates=cartesian, metric = Euclidean
* Partial match of 'coordinates' against keyword 'coordinatesystems'
Default differentiation variables for d_, D_ and dAlembertian are: X=x,y,z,t
Systems of spacetime Coordinates are: X=x,y,z,t
The Euclidean metric in cartesian coordinates
Changing the signature of the tensor spacetime to: + + + +
coordinatesystems=X,metric=1,1=1,2,2=1,3,3=1,4,4=1,spaceindices=lowercaselatin
d_j2−m2 = 0
∂j2−m2=0
Factor
∂j−m⁢∂j+m=0
Similar problem now with vectorial differential operators, split into time and space components,
withVectors
&x,`+`,`.`,ChangeBasis,ChangeCoordinates,Component,Curl,DirectionalDiff,Divergence,Gradient,Identify,Laplacian,∇,Norm,Setup,diff
d_t2−Nabla2= 0
∂t2−∇2=0
∂t−∇⁢∂t+∇=0
d_t2−d_j2 = 0
∂t2−∂j2=0
−∂j−∂t⁢∂j+∂t=0
The same functionality is implemented for 𝒟μ, the covariant derivative operator. Set the spacetime to be curved, for instance using Schwarzschild's metric and redefine the compact display to use the new (spherical) coordinates
A⁡r,θ,φ,t⁢will now be displayed as⁢A
B⁡r,θ,φ,t⁢will now be displayed as⁢B
The commutator of covariant derivatives
CommutatorD_mu, D_nu
𝒟μ,𝒟ν−
𝒟μ⁢𝒟ν−𝒟ν⁢𝒟μ
Multiply this result by a tensor function of the coordinates, say Aα⁡X defined in the lines above
AαX
𝒟μ⁢𝒟ν−𝒟ν⁢𝒟μ⁢Aα
Apply the differential operators
𝒟μ⁡𝒟ν⁡Aα−𝒟ν⁡𝒟μ⁡Aα
Compare with the expanded version before applying, i.e.: the same expression but expressed algebraically using multiplication instead of application
𝒟μ⁢𝒟ν⁢Aα−𝒟ν⁢𝒟μ⁢Aα
The Bianchi identity can be expressed in terms of commutators
CommutatorD_mu,CommutatorD_nu, D_rho + CommutatorD_nu,CommutatorD_rho, D_mu +CommutatorD_rho,CommutatorD_mu, D_nu =0
𝒟μ,𝒟ν,𝒟ρ−−+𝒟ν,𝒟ρ,𝒟μ−−+𝒟ρ,𝒟μ,𝒟ν−−=0
Expand the first commutator
expandop1,lhs
𝒟μ⁢𝒟ν⁢𝒟ρ−𝒟μ⁢𝒟ρ⁢𝒟ν−𝒟ν⁢𝒟ρ⁢𝒟μ+𝒟ρ⁢𝒟ν⁢𝒟μ
Expand the whole identity
0=0
Let D_[mu] be the covariant derivative of gauge theory with A[mu] representing the gauge field; for the current signature,
signature=- - - +
we have
interfaceimaginaryunit = i
I
D_mu = d_mu + i e AmuX
𝒟μ=∂μ+ⅈ⁢e⁢Aμ
Note that the gauge field is introduced depending on the coordinates, which are omitted from the display due to the use of PDEtools:-declare in (52). Introduce now this definition in the Bianchi identity
SubstituteTensor,
∂μ+ⅈ⁢e⁢Aμ,∂ν+ⅈ⁢e⁢Aν,∂ρ+ⅈ⁢e⁢Aρ−−+∂ν+ⅈ⁢e⁢Aν,∂ρ+ⅈ⁢e⁢Aρ,∂μ+ⅈ⁢e⁢Aμ−−+∂ρ+ⅈ⁢e⁢Aρ,∂μ+ⅈ⁢e⁢Aμ,∂ν+ⅈ⁢e⁢Aν−−=0
ⅈ⁢e⁢∂μ⁢∂ν⁢Aρ−ⅈ⁢e⁢∂μ⁢Aρ⁢∂ν−ⅈ⁢e⁢∂ν⁢Aρ⁢∂μ+ⅈ⁢e⁢Aρ⁢∂μ⁢∂ν
Apply the operatorial expression (65) to a function of the coordinates
PDEtools:-declarePhiX
Φ⁡r,θ,φ,t⁢will now be displayed as⁢Φ
⋅ PhiX
ⅈ⁢e⁢∂μ⁢∂ν⁢Aρ−ⅈ⁢e⁢∂μ⁢Aρ⁢∂ν−ⅈ⁢e⁢∂ν⁢Aρ⁢∂μ+ⅈ⁢e⁢Aρ⁢∂μ⁢∂ν⁢Φ
ⅈ⁢∂μ⁡∂ν⁡Aρ⁢Φ⁢e
Apply the inner commutator of the first term of (64)
∂ν+ⅈ⁢e⁢Aν⁡X,∂ρ+ⅈ⁢e⁢Aρ⁡X−⋅ PhiX
ⅈ⁢e⁢∂ν,Aρ−+ⅈ⁢e⁢Aν,∂ρ−⁢Φ
ⅈ⁢e⁢∂ν⁢Aρ⁢Φ+ⅈ⁢e⁢Aν⁢∂ρ⁢Φ−ⅈ⁢e⁢∂ρ⁢Aν⁢Φ−ⅈ⁢e⁢Aρ⁢∂ν⁢Φ
ⅈ⁢Φ⁢e⁢∂ν⁡Aρ−∂ρ⁡Aν
One of the interesting things about the Physics package is that it was designed from scratch to extend the domain of operations of the Maple system from commutative variables to one that includes commutative, anticommutative and noncommutative variables, as well as abstract vectors and related (nabla) differential operators. In this line we have, among others, the following Physics commands working with this extended domain:
A new command, Physics:-Factor was added to the family of Physics commands `*`, `.`, `^`, diff, Expand, Normal, Simplify, Gtaylor, and Coefficients that handle expressions with noncommutative variables. The approach used in Physics:-Factor is similar to the one used in the other commands of this kind, (see for instance PerformOnAnticommutativeSystem), that is, to transform the problem into one that can be treated with the commands that work only with commutative variables, and from there extract the result for expressions involving noncommutative variables. This approach works in well-defined and relevant cases, effectively extending the computational domain of previously existing commands.
Physics:-Factor is also useful when working with noncommutative symbols representing abstract matrices, that can have dependency, and so they can be differentiated before saying anything about their components, multiplied, and be present in expressions that in turn can be expanded, simplified and now also factorized. Physics:-Factor is useful as well with expressions that include differential operators, now treated within Physics as noncommutative variables (see the section on Operatorial algebraic expressions).
restart; withPhysics:Setupquantumoperators=a,b,c,d,e, mathematicalnotation = true
mathematicalnotation=true,quantumoperators=a,b,c,d,e
First example, because of using mathematical notation, noncommutative variables are displayed in different color (olive)
α2⁢a2+α⁢2⁢a⁢b+4⁢2⁢λ⁢b2⁢c+4⁢λ⁢α⁢b⁢c⁢a+4⁢λ⁢2⁢b⁢c⁢b+16⁢λ2⁢b c2+4⁢α⁢λ⁢a⁢b⁢c+2⁢α⁢b⁢a+2⁢b2
α2⁢a2+2⁢α⁢a⁢b+4⁢2⁢λ⁢b2⁢c+4⁢λ⁢α⁢b⁢c⁢a+4⁢2⁢λ⁢b⁢c⁢b+16⁢λ2⁢b⁢c2+4⁢λ⁢α⁢a⁢b⁢c+2⁢α⁢b⁢a+2⁢b2
4⁢λ⁢b⁢c+α⁢a+2⁢b2
A more involved example from a physics problem, illustrating that the factorization is also happening within the function's arguments, as well as that we can also correctly expand mathematical expressions involving noncommutative variables
PDEtools:-declarea,b,c,gx,y:
a⁡x,y⁢will now be displayed as⁢a
b⁡x,y⁢will now be displayed as⁢b
c⁡x,y⁢will now be displayed as⁢c
g⁡x,y⁢will now be displayed as⁢g
Intc4⁢Daggerbx,y cx,y λ+α⋅ft ax,y⋅Daggerax,y+2⁢⋅gx,y⋅bx,y2,x,y
∫−∞∞∫−∞∞4⁢λ⁢b†⁢c+α⁢f⁡t⁢a⁢a†+2⁢g⁢b2ⅆxⅆy
So first expand
∫−∞∞∫−∞∞16⁢λ2⁢b†⁢c⁢b†⁢c+4⁢λ⁢α⁢f⁡t⁢b†⁢c⁢a⁢a†+4⁢λ⁢2⁢g⁢b†⁢c⁢b+4⁢α⁢f⁡t⁢λ⁢a⁢a†⁢b†⁢c+α2⁢f⁡t2⁢a⁢a†⁢a⁢a†+α⁢f⁡t⁢2⁢g⁢a⁢a†⁢b+4⁢2⁢g⁢λ⁢b⁢b†⁢c+2⁢g⁢α⁢f⁡t⁢b⁢a⁢a†+2⁢g2⁢b2ⅆxⅆy
Now retrieve the original expression by recursing over the arguments in order to factor the integrand
This following one looks simpler but it is actually more complicated:
Commutatora,b⋅c
a,b−⁢c
a⁢b⁢c−b⁢a⁢c
The complication consists of the fact that the standard factor command, that assumes products are commutative, can never deal with an expression like a,b−=a⁢b−b⁢a because if products were commutative the sum of these terms is equal to 0. Through algebraic manipulations, however, the expression is also factorable
a⁢b−b⁢a⁢c
This other one is yet more complicated:
a⋅b−b⋅a⋅a+β⋅b+c2
a⁢b−b⁢a⁢a+β⁢b+c2
When you expand,
a⁢b⁢a+β⁢a⁢b2+a⁢b⁢c2−b⁢a2−β⁢b⁢a⁢b−b⁢a⁢c2
there are various terms involving the same noncommutative operands, just multiplied in a different order. Generally speaking the limitation of this approach (in Maple 2016) consists of: "there cannot be more than 2 terms in the expanded form containing the same operands" . For instance in (84) the 1st and 4th terms have the same operands, that are actually also present in the 5th term but there you also have β and for that reason (involving some additional manipulations) it can still be factorized:
Recalling, in all these examples, the task is actually accomplished by the standard factor command, and the manipulations consist of ingeniously rewriting the given problem as one that involves only commutative variables, and from the factorization of that auxiliary expression extract the correct result for the given expression containing noncommutative variables.
Here is an example where the approach implemented does not work (in Maple 2016) because of the limitation mentioned in the previous paragraph:
Commutatora,b+c2
a,b−+c2
a⁢b⁢a⁢b−a⁢b2⁢a+a⁢b⁢c−b⁢a2⁢b+b⁢a⁢b⁢a−b⁢a⁢c+c⁢a⁢b−c⁢b⁢a+c2
In this expression, the 1st, 2nd, 4th and 5th terms have the same operands a, b, a, b and then there are four terms containing the operands a, b, c. This type of expression is also factorable - work in progress.
As an example of the possibilities open with the combination of new functionality regarding operatorial algebraic expressions and factorization of algebraic expressions involving noncommutative objects, consider the factorization of Laplace equation in an Euclidean space
g_eu
The Euclidean metric in coordinates x1,x2,x3,x4
Setupspaceindices=lowercaselatin, coordinates=cartesian
coordinatesystems=X,spaceindices=lowercaselatin
A number of relevant changes happened in the tensor routines of the Physics package, towards making the routines pack more functionality both for special and general relativity, as well as working more efficiently and naturally, based on Maple's Physics users' feedback collected during 2015.
New functionality
Implement conversions to g_ from any of Ricci, Riemann, Einstein, etc. (all the general relativity tensors)
New optional argument, 'freeindices = ...', in TensorArray and in TransformCoordinates, to indicate the ordering of free indices in tensorial expressions - say "A[alpha, beta] + A[beta, alpha]", where this ordering is not obvious, including now a new subroutine to determine this ordering in a predictable way and regardless of whether the indices are covariant or contravariant.
Implement option 'specializeconstants' within Physics:-KillingVectors
Rewrite the general relativity tensors in terms of the metric (convert to g_)
Set the spacetime to something not flat, for instance Schwarzschild's solution
restart; withPhysics: g_sc
Riccimu,nu
Rμ,ν
This is the standard definition of the Ricci tensor in terms of Christoffel symbols
=convert, Christoffel
Rμ,ν=∂α⁡Γ⁢αμ,ν⁢αμ,ν−∂ν⁡Γ⁢αα,μ⁢αα,μ+Γ⁢βμ,ν⁢βμ,ν⁢Γ⁢αα,β⁢αα,β−Γ⁢βα,μ⁢βα,μ⁢Γ⁢αβ,ν⁢αβ,ν
When computing field equations, however, we need the expression of the Ricci tensor directly in terms of the metric
=convert, g_
Rμ,ν=∂α⁡g⁢α,κ⁢α,κ⁢∂ν⁡gκ,μ+∂μ⁡gκ,ν−∂κ⁡gμ,ν2+g⁢α,κ⁢α,κ⁢∂α⁡∂ν⁡gκ,μ+∂α⁡∂μ⁡gκ,ν−∂α⁡∂κ⁡gμ,ν2−∂ν⁡g⁢α,κ⁢α,κ⁢∂μ⁡gα,κ2−g⁢α,κ⁢α,κ⁢∂μ⁡∂ν⁡gα,κ2+g⁢β,λ⁢β,λ⁢∂ν⁡gλ,μ+∂μ⁡gλ,ν−∂λ⁡gμ,ν⁢g⁢α,κ⁢α,κ⁢∂β⁡gα,κ4−g⁢β,λ⁢β,λ⁢∂μ⁡gα,λ+∂α⁡gλ,μ−∂λ⁡gα,μ⁢g⁢α,κ⁢α,κ⁢∂ν⁡gβ,κ+∂β⁡gκ,ν−∂κ⁡gβ,ν4
This expression is obtained combining (97), with the definition of Christoffel in terms of the metric
Christoffelalpha,mu,nu
Γα,μ,ν
= convert,g_
Γα,μ,ν=∂ν⁡gα,μ2+∂μ⁡gα,ν2−∂α⁡gμ,ν2
This formula is also available as the definition of Christoffel entering Christoffel[definition].
All the General Relativity tensors can now be expressed directly in terms of the metric in the same way:
Riemanndefinition
Rμ,ν,α,β=gμ,λ⁢∂α⁡Γ⁢λν,β⁢λν,β−∂β⁡Γ⁢λν,α⁢λν,α+Γ⁢λκ,α⁢λκ,α⁢Γ⁢κν,β⁢κν,β−Γ⁢λκ,β⁢λκ,β⁢Γ⁢κν,α⁢κν,α
lhs = convertlhs,g_
Rα,β,μ,ν=gα,λ⁢∂μ⁡g⁢χ,λ⁢χ,λ⁢∂ν⁡gβ,χ+∂β⁡gχ,ν−∂χ⁡gβ,ν2+g⁢χ,λ⁢χ,λ⁢∂μ⁡∂ν⁡gβ,χ+∂β⁡∂μ⁡gχ,ν−∂χ⁡∂μ⁡gβ,ν2−∂ν⁡g⁢λ,υ⁢λ,υ⁢∂μ⁡gβ,υ+∂β⁡gμ,υ−∂υ⁡gβ,μ2−g⁢λ,υ⁢λ,υ⁢∂μ⁡∂ν⁡gβ,υ+∂β⁡∂ν⁡gμ,υ−∂ν⁡∂υ⁡gβ,μ2+g⁢λ,ψ⁢λ,ψ⁢∂μ⁡gκ,ψ+∂κ⁡gμ,ψ−∂ψ⁡gκ,μ⁢g⁢κ,τ⁢κ,τ⁢∂ν⁡gβ,τ+∂β⁡gν,τ−∂τ⁡gβ,ν4−g⁢λ,ω⁢λ,ω⁢∂ν⁡gκ,ω+∂κ⁡gν,ω−∂ω⁡gκ,ν⁢g⁢κ,σ⁢κ,σ⁢∂μ⁡gβ,σ+∂β⁡gμ,σ−∂σ⁡gβ,μ4
New option freeindices=... of TransformCoordinates and TensorArray
The new option, freeindices, to indicate the free indices in TransformCoordinates and TensorArray. Generally speaking, in a tensorial expression with more than one free index, there is no way to tell which free index comes first. The TransformCoordinates and TensorArray commands were using Maple's sort command, resulting in a deterministic, however non-obvious choice. To address this situation, a new optional argument, to indicate the ordering of the free indices, say as in freeindices = [~a, b] was implemented. This also allows for transforming for instance only one or a restricted number of free indices when using TransformingCoordinates. When the option is not used, if the tensorial expression is a tensor itself, then the ordering found in its indices is used, otherwise, sort is used.
Consider for instance a three-dimensional problem in a Euclidean space
Setupcoordinates = X = x1, x2, x3, dimension = 3, metric = Euclidean, spacetimeindices = lowercaselatin, quiet
coordinatesystems=X,dimension=3,metric=1,1=1,2,2=1,3,3=1,spacetimeindices=lowercaselatin
The metric:
g_
Define now two tensor with two indices, whose components are given by the following matrices:
Aa,b=213234121
Ba,b=236481551119
Define,
Aa,b,Ba,b,γa,σa,Xa,∂a,ga,b,δa,b,εa,b,c
Since the space is Euclidean, the covariant and contravariant components are the same
A
A~
A⁢a,b⁢a,b=213234121
Consider now the contracted product
expression ≔ Ac,b⁢Bc,a
expression≔Ac,b⁢Bc,a
This expression has the free indices a and b, in no particular order. For example, consider a coordinate linear transformation (x - old coordinates, y - new coordinates)
tr ≔ x1=y1+y2+y3,x2=y2+y3,x3=y3
tr≔x1=y1+y2+y3,x2=y2+y3,x3=y3
Transform the coordinates, the third argument indicates the new variables, and call Ca,b the transformed tensor, with the ordering a,b for the free indices
Ca,b=TransformCoordinatestr,expression,y1,y2,y3, freeindices = a,b
Ca,b=17416850123202111273449
Change the order of the freeindices
Ca,b=TransformCoordinatestr,expression,y1,y2,y3, freeindices = b,a
Ca,b=17501114112327368202449
Transform only one index, first a, then b, then in sequence
TransformCoordinatestr,expression,y1,y2,y3, freeindices = a
2⁢A1,b+4⁢A2,b+5⁢A3,b5⁢A1,b+12⁢A2,b+16⁢A3,b11⁢A1,b+27⁢A2,b+35⁢A3,b
Ha = TransformCoordinatestr,expression,y1,y2,y3, freeindices = b
Ha=2⁢B1,a+2⁢B2,a+B3,a3⁢B1,a+5⁢B2,a+3⁢B3,a6⁢B1,a+9⁢B2,a+4⁢B3,a
The same option is now available for TensorArray. Compute the tensor components of the tensorial expression (109) using the two possible orderings of its free indices
TensorArrayexpression, freeindices=a,b
172427334952618997
TensorArrayexpression, freeindices=b,a
173361244989275297
New option specializeconstants of KillingVectors
The design of KillingVectors was revised for Maple 2016 with regards to: a) return the Killing vectors using a vector format, not just the solution to the underlying PDE system, b) compute their contravariant components by default instead of covariant; c) introduce a new keyword specializeconstants to request the specialization of the constants that appear when solving the underlying linear PDE system.
Setup⁡mathematicalnotation=true
mathematicalnotation=true
Set a system of Coordinates
Setup⁡coordinates=X
coordinatesystems=X
Define a tensor with one index to represent the Killing vector
Define⁡V
V,γμ,σμ,Xμ,∂μ,gμ,ν,δμ,ν,εα,β,μ,ν
The components of the contravariant Vμ, directly in list format, ready to be forwarded to Define to compute furthermore with them:
KillingVectors⁡V
V⁢μ⁢μ=x2,−x1,0,0,V⁢μ⁢μ=0,0,1,0,V⁢μ⁢μ=x3,0,−x1,0,V⁢μ⁢μ=x4,0,0,x1,V⁢μ⁢μ=1,0,0,0,V⁢μ⁢μ=0,x4,0,x2,V⁢μ⁢μ=0,0,x4,x3,V⁢μ⁢μ=0,0,0,1,V⁢μ⁢μ=0,x3,−x2,0,V⁢μ⁢μ=0,1,0,0
The same result but this time for the covariant components (for that purpose, pass V with a covariant index), and without specializing the integration constants,
KillingVectors⁡Vμ,specialize=false
* Partial match of 'specialize' against keyword 'specializeconstants'
Vμ=_C1⁢x2+_C2⁢x3+_C3⁢x4+_C4,−_C1⁢x1+_C5⁢x3+_C6⁢x4+_C7,−_C2⁢x1−_C5⁢x2+_C8⁢x4+_C9,−_C3⁢x1−_C6⁢x2−_C8⁢x3+_C10
The new format for the output of KillingVectors facilitates computing with these results. For example, define V as a tensor using the first Killing vector solution in (120), check its contravariant and covariant components, and verify that it is indeed a Killing Vector by verifying the definition in terms of Lie derivatives.
Define (120)[1] as a tensor
1
V⁢μ⁢μ=x2,−x1,0,0
Define
γμ,σμ,V⁢μ⁢μ,Xμ,∂μ,gμ,ν,δμ,ν,εα,β,μ,ν
Check the covariant and contravariant components of V
V
Vμ=−x2x100
V~
V⁢μ⁢μ=x2−x100
Verify that V is indeed a Killing Vector, that is, that the Lie derivative of the metric with respect to the V is 0
LieDerivativeVg_mu,nu = 0
gα,ν⁢∂μ⁡V⁢α⁢α+gμ,α⁢∂ν⁡V⁢α⁢α=0
Compute the components of this tensorial equation
0=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=0
Improved functionality
Install new approach for computing the Weyl scalars ~10x faster; fix issue noticed during development (missing clearing a cache) and add test with difficult example (Kerr metric) for the computation of Weyl scalars
4x speedup in the computation of the Ricci scalars (testing example: the Kerr metric)
5x speedup in the computation of the components of the Ricci tensor in the case of an arbitrary spacetime metric (10 unknown functions of 4 independent variables each).
Depending on the form of the spacetime metric, the computation of the Weyl and Ricci scalars, or the components of the Ricci tensor, can be rather involved, requiring handling large algebraic expressions depending on mathematical functions. Improving the approach for these kinds of difficult algebraic computations is one area of constant development.
Consider the Kerr solution in terms of Boyer and Lindquist coordinates, shown in Chapter 5 (equation 5.29) of the book "The large scale structure of space-time" by S. W. Hawking and G. F. R. Ellis; the corresponding line element
ds2≔2⁢m⁢r−r2−a2⁢cos⁡θ2⁢dt2⁢1r2+a2⁢cos⁡θ2+r2+a2⁢cos⁡θ2⁢dr2⁢1a2−2⁢m⁢r+r2+r2+a2⁢cos⁡θ2⁢dθ2+dφ⁢sin⁡θ2⁢a2⁢a2−2⁢m⁢r+r2⁢cos⁡θ2+2⁢m⁢r+r2⁢a2+r4⁢dφ−4⁢m⁢r⁢a⁢dt⁢1r2+a2⁢cos⁡θ2:
Set the coordinates, and the metric using this line element all in one go
Setupcoordinates = X=t,r,θ,φ, metric = ds2
Detected `t`, the time variable, in position 1. Changing the signature of the spacetime metric accordingly, to: + - - -
Default differentiation variables for d_, D_ and dAlembertian are: X=t,r,θ,φ
Systems of spacetime Coordinates are: X=t,r,θ,φ
coordinatesystems=X,metric=1,1=2⁢m⁢r−r2−a2⁢cos⁡θ2r2+a2⁢cos⁡θ2,1,4=−2⁢sin⁡θ2⁢m⁢r⁢ar2+a2⁢cos⁡θ2,2,2=r2+a2⁢cos⁡θ2a2−2⁢m⁢r+r2,3,3=r2+a2⁢cos⁡θ2,4,4=sin⁡θ2⁢a2⁢a2−2⁢m⁢r+r2⁢cos⁡θ2+2⁢m⁢r+r2⁢a2+r4r2+a2⁢cos⁡θ2
Check the metric
The Weyl scalars for this metric are now computed 10x faster than in Maple 2015. Their definition in terms of the four vectors lμ, nμ, mμ, m&conjugate0;μ of the Newman-Penrose formalism
The five Weyl scalars defined above and the time to compute them
time: Weylscalars; time = time−%%;
ψ__0=−3⁢a2⁢cos⁡θ+1⁢m⁢2⁢a2⁢cos⁡θ2+2⁢r2⁢sin⁡θ2⁢sin⁡θ⁢cos⁡θ⁢a⁢a2⁢cos⁡θ2−3⁢r2⁢−2⁢a2⁢cos⁡θ2−2⁢r2−6⁢cos⁡θ+1⁢r2+a2⁢cos⁡θ2⁢a2⁢cos⁡θ2−r23⁢r⁢cos⁡θ−1⁢cos⁡θ−14⁢a2⁢cos⁡θ2−2⁢m⁢r+r2⁢sin⁡θ2⁢r2+a2⁢cos⁡θ24,ψ__1=−3⁢I2⁢a⁢cos⁡θ+1⁢a⁢cos⁡θ⁢sin⁡θ⁢a2⁢cos⁡θ2−3⁢r2⁢−2⁢a2⁢cos⁡θ2−2⁢r2+3⁢sin⁡θ2⁢a2⁢cos⁡θ2−r23⁢2⁢a2⁢cos⁡θ2+2⁢r2⁢r⁢m⁢cos⁡θ−1⁢a2−2⁢m⁢r+r22⁢a2⁢cos⁡θ2+2⁢r2⁢r2+a2⁢cos⁡θ23⁢a2⁢cos⁡θ2−2⁢m⁢r+r2⁢sin⁡θ2,ψ__2=a2⁢cos⁡θ2−3⁢a2+4⁢m⁢r−2⁢r2⁢m⁢2⁢a2⁢cos⁡θ2+2⁢r2⁢sin⁡θ2⁢sin⁡θ⁢cos⁡θ⁢a⁢a2⁢cos⁡θ2−3⁢r2⁢−2⁢a2⁢cos⁡θ2−2⁢r2−6⁢cos⁡θ+1⁢r2+a2⁢cos⁡θ2⁢a2⁢cos⁡θ2−r23⁢r⁢cos⁡θ−14⁢a2⁢cos⁡θ2−2⁢m⁢r+r2⁢sin⁡θ2⁢r2+a2⁢cos⁡θ24,ψ__3=3⁢I2⁢a⁢cos⁡θ+1⁢a⁢cos⁡θ⁢sin⁡θ⁢a2⁢cos⁡θ2−3⁢r2⁢−2⁢a2⁢cos⁡θ2−2⁢r2+3⁢sin⁡θ2⁢a2⁢cos⁡θ2−r23⁢2⁢a2⁢cos⁡θ2+2⁢r2⁢r⁢m⁢cos⁡θ−1⁢a2−2⁢m⁢r+r22⁢a2⁢cos⁡θ2+2⁢r2⁢r2+a2⁢cos⁡θ23⁢a2⁢cos⁡θ2−2⁢m⁢r+r2⁢sin⁡θ2,ψ__4=−3⁢a2⁢cos⁡θ+1⁢m⁢2⁢a2⁢cos⁡θ2+2⁢r2⁢sin⁡θ2⁢sin⁡θ⁢cos⁡θ⁢a⁢a2⁢cos⁡θ2−3⁢r2⁢−2⁢a2⁢cos⁡θ2−2⁢r2−6⁢cos⁡θ+1⁢r2+a2⁢cos⁡θ2⁢a2⁢cos⁡θ2−r23⁢r⁢cos⁡θ−1⁢cos⁡θ−14⁢a2⁢cos⁡θ2−2⁢m⁢r+r2⁢sin⁡θ2⁢r2+a2⁢cos⁡θ24
time=3.823
Set now the metric to be entirely arbitrary
g_arbitrary
PDEtools:-declare
_F1⁡t,r,θ,φ⁢will now be displayed as⁢_F1
_F10⁡t,r,θ,φ⁢will now be displayed as⁢_F10
_F2⁡t,r,θ,φ⁢will now be displayed as⁢_F2
_F3⁡t,r,θ,φ⁢will now be displayed as⁢_F3
_F4⁡t,r,θ,φ⁢will now be displayed as⁢_F4
_F5⁡t,r,θ,φ⁢will now be displayed as⁢_F5
_F6⁡t,r,θ,φ⁢will now be displayed as⁢_F6
_F7⁡t,r,θ,φ⁢will now be displayed as⁢_F7
_F8⁡t,r,θ,φ⁢will now be displayed as⁢_F8
_F9⁡t,r,θ,φ⁢will now be displayed as⁢_F9
In Maple 2015, on a typical fast machine, the computation of the Ricci tensor components was taking around 1 minute. After an optimization of the code it now takes around 12 seconds (avoid displaying the components themselves to not clutter the display with too large expressions)
time: Ricci: time = time−%%;
time=5.225
The computational length of all the algebraic expressions entering these components is
lengthRicci
36613509
A number of enhancements were performed in the Vectors subpackage:
You can now represent the scalar product of a vector with itself by a squaring (power 2) of the vector.
You can now add vectors of different bases and change basis in expressions that contain unit vectors of different orthonormal basis.
Consider the relativistic Hamiltonian of a particle of mass m; you can now enter the square of the momentum (scalar product of p→ with itself) directly as a power, as we do when computing with paper and pencil
H ≔ p_2 c2+m2 c412
H≔p→2⁢c2+m2⁢c4
The expansion of the power of a vector now returns the square of its norm
expandH
p→2⁢c2+m2⁢c4
Introduce now the components of p→
p_ ≔ p__x _i+p__y _j+p__3 _k;
p→≔p__x⁢i∧+p__y⁢j∧+p__3⁢k∧
Now H, or its expanded form, are given by
H
p__x⁢i∧+p__y⁢j∧+p__3⁢k∧2⁢c2+m2⁢c4
m2⁢c4+c2⁢p__32+c2⁢p__x2+c2⁢p__y2
Likewise, the expansion computed before entering the components of p→ now appears as
p__32+p__x2+p__y2⁢c2+m2⁢c4
Consider the following vectorial expression where the right-hand-side involves unit vectors and coordinates of both the cylindrical and spherical basis
CompactDisplayA_r, theta, phi
A→⁡r,θ,φ⁢will now be displayed as⁢A→
ee ≔ CurlA_r, θ, φ = _kr sinθ ρ+_thetasinθ r2−cosθ_rr2 sinθ2;
ee≔∇×A→=k∧r⁢sin⁡θ⁢ρ+θ∧sin⁡θ⁢r2−cos⁡θ⁢r∧r2⁢sin⁡θ2
ee ≔ CurlA_r, θ, φ = _kr sinθ ρ+_thetasinθ r
ee≔∇×A→=k∧r⁢sin⁡θ⁢ρ+θ∧r⁢sin⁡θ
Change all to the spherical basis, also the coordinates
ChangeBasisee, spherical, also
* Partial match of 'also' against keyword 'alsocomponents'
ChangeBasis⁡∇×A→,3=cos⁡θ⁢r∧r2⁢sin⁡θ2+−1+r⁢θ∧sin⁡θ⁢r2
The same operation to the cylindrical basis
ChangeBasisee, cylindrical, also
Four new commands, useful for programming and interactive computation, have been added to the Physics:-Library package, that now includes 142 documented commands. These new ones are:
ApplyProductsOfDifferentialOperators
DelayEvaluationOfTensors
PerformMatrixOperations
ShowTypeDefinition
Additionally, eight new types, related to the developments in Physics for Maple 2016, were added to the Physics:-Library:-PhysicsType subpackage of Physics types, for programming or interactive purposes. These are
DifferentialOperator, DifferentialOperatorIndexed, DifferentialOperatorSymbol, EuclideanIndex, ExtendedDifferentialOperator, ExtendedDifferentialOperatorIndexed, ExtendedDifferentialOperatorSymbol, TensorWithNumericalIndices
Redesign of D_[mu] to not prematurely evaluate the argument.
Reimplementing Physics:-Dgamma as a tensor with Array representation instead of an (old) matrix.
d_[mu](x1) used to return g_[mu,~1], which generally speaking is correct, but in a curved spacetime this result is incorrect because d_[mu](x1) is not a tensor while g_[mu,1] is used as a tensor. For example, taking the covariant derivative of d_[mu](X[`~1`]) = g_[mu, `~1`] one would get zero on the right-hand side but not zero on the left-hand side. This is corrected so that d_[mu](x1) does not return g_[mu,~1] anymore when the spacetime is curved.
Change default in KillingVectors: when the vector V is passed without indices, the equations for the contravariant V (not the covariant) are solved.
Change in default of Physics:-KillingVectors: now it returns with all the integration constants specialized, unless a (new) optional keyword 'specializeconstants = false' is passed.
Adjust design in Physics:-LieBrackets: when the related LieDerivative returns 0, LieBracket now returns an n-dimensional Array where n is the spacetime dimension and all of its components are equal to 0.
LieBracket now automatically maps over "mappable' structures, like relations, lists, sets, Matrix, or Arrays.
Change in design: avoid swapping the time variable from position 1 to position 4 when retrieving metrics from the database based on Stephani's book - instead reset the signature to be as in the book and keep the metric exactly as presented in the book.
Implement simplification of gauge tensorial indices.
Improve Physics:-Library:-Add to handle complicated examples.
Allow integrating the 'integral form of Dirac' into a Dirac function when Physics is loaded.
See Also
Index of New Maple 2016 Features
Computer Algebra for Theoretical Physics
The Physics project
The Physics Updates
Download Help Document