Differential Geometry - 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 : System : Information : Updates : Maple 16 : Differential Geometry

Updates to Differential Geometry in Maple 16

DifferentialGeometry for Maple 16, with 28 new commands, contains important new functionality for working with abstractly defined differential forms, Lie algebras and general relativity.


Abstractly defined differential forms


 The functionality of the command DGsetup has been extended to create a new computational environment for working with abstract differential forms, that is, differential forms which are defined without reference to any underlying system of coordinates.  Structure equations for the abstract differential forms can be included in the new calling sequences for DGsetup. The capabilities of other commands in the DifferentialGeometry package, notably DGinfo, ExteriorDerivative, Hook and LieDerivative, have been extended to work with abstract differential forms.  These capabilities extend those available in the difforms package.  For an introduction to this new functionality in DifferentialGeometry, see Working with Abstract Forms.


The Maplet MetricSearch


The Library sub-package contains a new command MetricSearch which provides a simple method for searching the DifferentialGeometry database of  solutions to the Einstein equations.


General Relativity


The Tensor sub-package contains 4 new commands for analyzing the geometric properties of space-times.  


 The commands RainichConditions and RainichElectromagneticField can be used to determine if a given space-time is an electro-vac space-time and to find the electromagnetic field for that space-time.  


Line congruences play a distinguished role in the study of space-times and the properties of such congruences can now be easily calculated with the command CongruenceProperties.


The signature of a metric can now be computed with QuadraticFormSignature.  This procedure uses a simple algorithm which does not require eigenvalue computation and works well with the Maple assuming feature.


For General Relativity students and researchers new to Maple, see Overview of General Relativity in DifferentialGeometry.


Integration of the sub-packages LieAlgebraCohomology and LieAlgebraRepresentations


The sub-package LieAlgebras:-LieAlgebraCohomology has been deprecated and the 3 commands in that package [Cohomology, CohomologyDecomposition, RelativeChains] have been integrated directly into the LieAlgebras package.


The sub-package LieAlgebras:-LieAlgebraRepresentations has been deprecated and the 11 commands in that package [ApplyRepresentation, AscendingIdealsBasis, ChangeBasis, DirectSum, Invariants, QuotientRepresentation, Representation, RepresentationEigenvector, SolvableRepresentation, SubRepresentation, TensorProduct] have been integrated directly into the LieAlgebras package.


Structure Theory of Semi-simple Lie Algebras


Twenty-four new commands have been added to the LieAlgebra package for working with simple (and semi-simple) Lie algebras. The DifferentialGeometry software now contains the commands for the complete analysis of the structure theory for any semi-simple Lie algebra (defined perhaps as a matrix algebra, a Lie algebra of symmetries of a differential equation, the isometries of a metric, the automorphisms of a Lie algebra, etc).


The command SimpleLieAlgebraData can be used define the structure equations for any of the classical real simple Lie algebras  sln,  sup,  q, su*n, sop,  q, so*n, spn, , spp,  q,  spn. There are three companion procedures to SimpleLieAlgebraData. The procedure StandardRepresentation gives a basis for the standard representation of these Lie algebras as matrices. The procedure  SimpleLieAlgebraProperties returns a table of properties for any one of these simple Lie algebras - these properties include Cartan subalgebra, root space decomposition, simple roots, positive roots, Cartan decomposition, etc. The command MatrixSubalgebra is used to create subalgebras of these classic matrix algebras.


 The command CartanSubalgebra finds a Cartan subalgebra for any given Lie algebra.


The command RootSpaceDecomposition uses the Cartan subalgebra to produce a table which gives the root space decomposition of the Lie algebra. The roots can be extracted from the table with LieAlgebraRoots. The compact roots (purely imaginary) are found with CompactRoots. The root space decomposition is performed assuming that the Lie algebra is defined over the complex numbers. A real root space decomposition is obtained from RestrictedRootSpaceDecomposition.


 The command PositiveRoots will determine a set of positive roots from the root space decomposition. The command SimpleRoots finds the basis of simple roots from the positive roots.


 The Cartan matrix is found from the simple roots and the root space decomposition with CartanMatrix. The command CartanMatrixToStandardForm produces a re-ordering of the simple roots which transforms the Cartan matrix to standard form and identifies the complex type of the Lie algebra as "A", "B", "C",  "D", "E", or "F". The command SatakeAssociate can be used to determine the real type of a given simple Lie algebra.


The commands CartanDecomposition and CartanInvolution are available for semi-simple Lie algebras with a given matrix representation.


The root space decomposition can be used to create gradings of a semi-simple Lie algebra or to find parabolic subalgebras.


The signature of the Killing form can be computed with the KillingForm and QuadraticFormSignature commands.


The Dynkin and Satake diagrams for a simple Lie algebra can be plotted with the commands DynkinDiagram and SatakeDiagram.


Query command


 The LieAlgebra Query command now supports keyword arguments "CartanDecomposition", "CartanInvolution", "CartanSubalgebra", "MatrixAlgebra", "NilRepresentation", "ParabolicSubalgebra", "RegularElement", "RootSpaceDecomposition", "SolvableRepresentation".


Example 1.

In this example we shall initialize the Lie algebra  𝔰𝔩3 ( the algebra of  3×3  trace-free matrices).  For this algebra we then calculate [i] a Cartan subalgebra, [ii] the root space decomposition, [iii] the positive and simple roots, and [iv] the Cartan matrix.


LD ≔ SimpleLieAlgebraDatasl(3),sl3



Initialize this algebra.


Lie algebra: sl3


Calculate a Cartan subalgebra.

sl3 > 

CSA ≔ CartanSubalgebrasl3



Find the root space decomposition for this algebra.

sl3 > 

RSD ≔ RootSpaceDecompositionCSA



Find the positive roots and the simple roots.

sl3 > 

Rts ≔ LieAlgebraRootsRSD


sl3 > 

PosRts ≔ PositiveRootsRts,1,0,0,1


sl3 > 

Δ â‰” SimpleRootsPosRts



Find the Cartan matrix.

sl3 > 




Example 2.

A space-time is called an electro-vac spacetime if there exists an electromagnetic field which solves the Einstein-Maxwell field equations. The problem of deciding if a spacetime is electro-vac can be solved using the command RainichConditions and RainichElectromagneticField

M > 


frame name: M

M > 

g ≔ evalDG4t2dx &t dx3+tⅇ2xdy &t dy+ⅇ2xdz &t dzdt &t dt



Test to see if the Rainich conditions for this spacetime hold.

M > 




We conclude the spacetime is an electro-vac spacetime. Here is the electro-magnetic field.

M > 

F ≔ RainichElectromagneticFieldg


M > 

F ≔ simplifyFassuming0<t



We check that the Einstein equations are satisfied (See EinsteinTensor, EnergyMomentumTensor).

M > 

T ≔ EnergyMomentumTensorElectromagnetic&comma;g&comma;F


M > 

E ≔ EinsteinTensorg


M > 

E &minus T



We check that the Maxwell equations (see MatterFieldEquations)  are satisfied.

M > 




Example 3.

The DifferentialGeometry package now supports extended functionality for working with abstract differential forms

Create an abstract manifold M with a function f&comma;   1-forms &alpha;&comma; &beta; and a 2-form &sigma;.


frame name: M


The command DGinfo gives the names of all scalars and forms which are defined.

M > 




Scalar products, wedge products and sums of abstract forms can be defined.

M > 

&omega; ≔ evalDG2&alpha; &wedge &beta;&plus;4&sigma;



The command DGinfo can also be used to extract information about the form &omega;.

M > 



M > 



M > 



M > 




New forms can be defined on M.

M > 


updated frame: M

M > 




We can use the DGzip and GetComponents commands with abstract forms.

M > 

&Omega; ≔ evalDG&alpha; &w &beta;&comma;&sigma;


M > 

zeta ≔ DGzip3&comma;5&comma;&Omega;&comma;plus


M > 




We can take the exterior derivative of a form.

M > 

&rho; ≔ ExteriorDerivative&alpha;



The 2-form d &alpha; has been added to list of defined forms and is now available for subsequent computations.

M > 



M > 




Exterior derivatives of defined forms can be specified.

M > 

DGsetupM&comma;&comma;df&equals;f&alpha;&comma;d&beta;&equals;4&sigma;&plus;5&alpha; &wedge &beta;

updated frame: M

M > 




See Also

Index of New Maple 16 Features