Physics[Ricci] - The Ricci tensor
Calling Sequence
Ricci[μ,ν]
Ricci[keyword]
convert(expression, Ricci)
Parameters
mu, nu
-
the indices, as names representing integer numbers between 0 and the spacetime dimension, they can also be the numbers themselves
keyword
can be any of: scalars, definition, scalarsdefinition, nonzero, ~, to respectively get the Weyl scalars, definition of the tensor or of its scalars, a set with the nonzero components, or an Array with the contravariant components
Description
The Ricci[mu, nu], displayed as R__μ,ν, is a computational representation for the Ricci tensor, defined in terms of the Riemann tensor as
Rμ,ν=gα,β⁢Rα,μ,β,ν=R⁢⁢⁢⁢⁢μ,α,ν⁢α
From this definition, and because of the symmetries of the Riemann tensor with respect to interchanging the positions of its indices the Ricci tensor is symmetric with respect to interchanging the position of its indices.
Expressing the Riemann tensor in terms of the Christoffel symbols and its derivatives, an equivalent definition is
Rμ,ν=∂αΓ⁢⁢⁢⁢μ,ν⁢α−∂νΓ⁢⁢⁢⁢α,μ⁢α+Γ⁢⁢⁢⁢μ,ν⁢α⁢Γ⁢⁢⁢⁢α,β⁢β−Γ⁢⁢⁢⁢α,μ⁢β⁢Γ⁢⁢⁢⁢β,ν⁢α
During a Maple session, the value of any component of R__μ,ν is automatically determined by the value of the spacetime metric. When Physics is loaded, the spacetime is set to galilean, of Minkowski type, and so all the elements of Ricci are automatically zero. To set the spacetime metric to something different use Setup or g_. Also, at least one system of coordinates must be set in order to compute the derivatives entering the definition of the Christoffel symbols, used to construct the Ricci tensor. For that purpose see Setup or Coordinates.
When the indices of Ricci assume integer values they are expected to be between 0 and the spacetime dimension, prefixed by ~ when they are contravariant, and the corresponding value of Ricci is returned. The values 0 and 4, or for the case any dimension set for the spacetime, represent the same object. When the indices have symbolic values Ricci returns unevaluated after normalizing its indices taking into account their symmetry property.
Computations performed with the Physics package commands take into account Einstein's sum rule for repeated indices - see `.` and Simplify. The distinction between covariant and contravariant indices in the input of tensors is done by prefixing contravariant ones with ~, say as in ~mu; in the output, contravariant indices are displayed as superscripts. For contracted indices, you can enter them one covariant and one contravariant. Note however that - provided that the spacetime metric is galilean (Euclidean or Minkowski), or the object is a tensor also in curvilinear coordinates - this distinction in the input is not relevant, and so contracted indices can be entered as both covariant or both contravariant, in which case they will be automatically rewritten as one covariant and one contravariant. Tensors can have spacetime and space indices at the same time. To change the type of letter used to represent spacetime or space indices see Setup.
Besides being indexed with two indices, Ricci accepts other indexations (keywords) with special meaning:
matrix: (synonym: Matrix, array, Array, or no indices whatsoever, as in Ricci[]) returns a Matrix that when indexed with numerical values from 1 to the dimension of spacetime it returns the value of each of the components of Ricci. If this keyword is passed together with indices, that can be covariant or contravariant, the resulting matrix takes into account the character of the indices.
~: returns an Array with the all-contravariant components of the Ricci tensor
definition: returns the definition of the Ricci tensor in terms of the Christoffel symbols and their derivatives.
nonzero: returns a set of equations, with the left-hand-side as a sequence of two positive numbers identifying the element of R__μ,ν and the corresponding value on the right-hand-side. Note that this set is actually the output of the ArrayElems command when passing to it the Array obtained with the keyword array.
scalar: returns R⁢⁢⁢μ⁢μ, the trace of the Ricci tensor, also known as the Ricci scalar, an invariant.
scalars: returns the Ricci scalars of the Newman-Penrose formalism (see [2], sec. 2.7), Φ00,Φ01,Φ02,Φ11,Φ12,Φ22,Λ, relevant in the classification of the SegreType of a spacetime. The spinor components Φ10,Φ20,Φ21 are respectively obtained from Φ01,Φ02,Φ12 by exchanging mμ and m&conjugate0;μ in the definitions shown when using scalarsdefinition. For electrovacuum solutions, the NP curvature scalar Λ=0.
scalarsdefinition: returns the definition of the Ricci scalars in terms of the null vectors of the Newman-Penrose formalism, lμ,nμ,mμ,m&conjugate0;μ. Note that a general sign in this definition depends on the signature, that you can query entering Setup(signature) and change it using Setup to any of the four possible signatures predefined.
Some automatic checking and normalization are carried out each time you enter Ricci[...]. The checking is concerned with possible syntax errors. The automatic normalization takes into account the symmetry of Ricci[mu,nu] with respect to interchanging the positions of the indices mu and nu.
The %Ricci command is the inert form of Ricci, so it represents the same mathematical operation but without performing it. To perform the operation, use value.
Sometimes it is convenient to rewrite tensorial expressions involving the Einstein tensor in terms of the Ricci tensor. For this purpose use convert(expression, Ricci) - see the Examples section.
Examples
with⁡Physics:
Setup⁡mathematicalnotation=true
mathematicalnotation=true
Set up a coordinate system to work with - the first one to be set is automatically taken as the differentiation variables for d_, the covariant derivative D_ and the dAlembertian
Setup⁡coordinatesystems=cartesian
⁢Systems of spacetime coordinates are:⁢X=x,y,z,t
coordinatesystems=X
When Physics is initialized, the default spacetime metric is of Minkowski type. You can see the metric querying Setup, as in Setup(metric);, or directly entering the metric as g_[], with no indices
g_
gμ,ν=−10000−10000−100001
Check the nonzero components of Christoffel, used to construct the Ricci tensor entering the definition of Ricci: because the default spacetime is of Minkowski type, there are none
Christoffelnonzero
Γα,μ,ν=∅
Hence, from the definition of the Ricci tensor,
Riccidefinition
Rμ,ν=∂α⁡Γ⁢αμ,ν⁢αμ,ν−∂ν⁡Γ⁢αμ,α⁢αμ,α+Γ⁢βμ,ν⁢βμ,ν⁢Γ⁢αβ,α⁢αβ,α−Γ⁢βμ,α⁢βμ,α⁢Γ⁢αν,β⁢αν,β
it follows that
Ricciμ,ν
0
and the same is valid for all the general relativity tensors defined in terms of Christoffel and derivatives of the metric g_.
To set the scenario as a curved spacetime set the metric using Setup, for instance indicating the square of the spacetime interval. In this example, we also choose to work in spherical coordinates, so consider for instance the metric defined by
ds2≔r2⁢dtheta2+r2⁢sin⁡θ2⁢dphi2−2⁢dt⁢dr−2⁢k⁡r,t2⁢dt2
ds2≔r2⁢dθ2+r2⁢sin⁡θ2⁢dφ2−2⁢dt⁢dr−2⁢k⁡r,t2⁢dt2
Setup⁡coordinates=spherical,metric=ds2
⁢Systems of spacetime coordinates are:⁢X=r,θ,φ,t
⁢_______________________________________________________
Coordinates: r,θ,φ,t. Signature: - - - +
gμ,ν=000−10r20000r2⁢sin⁡θ20−100−2⁢k⁡r,t2
Setting lowercaselatin_is letters to represent space indices
_______________________________________________________
coordinatesystems=X,metric=1,4=−1,2,2=r2,3,3=r2⁢sin⁡θ2,4,4=−2⁢k⁡r,t2,spaceindices=lowercaselatin_is
To avoid the repeated display of the functionality in k⁡r,t in the following examples and have the display of derivatives in jet notation, indexed, use CompactDisplay
CompactDisplay⁡
k⁡r,t⁢will now be displayed as⁢k
Now when the indices are not numerical, Ricci returns itself after normalizing its second and third indices taking advantage of the symmetry of its indices
Ricciα,β
Rα,β
Ricciβ,α
−
The definition of the Ricci scalars in terms of the null vectors l_, n_, m_ and mb_ of the Newman-Penrose formalism (see Tetrads), and the scalars themselves for the spacetime metric (9)
Ricciscalarsdefinition
Φ__00=−R⁢μ,ν⁢μ,ν⁢lμ⁢lν2,Φ__01=−R⁢μ,ν⁢μ,ν⁢lμ⁢mν2,Φ__02=−R⁢μ,ν⁢μ,ν⁢mμ⁢mν2,Φ__11=−R⁢μ,ν⁢μ,ν⁢lμ⁢nν+mμ⁢m&conjugate0;ν4,Φ__12=−R⁢μ,ν⁢μ,ν⁢mμ⁢nν2,Φ__22=−R⁢μ,ν⁢μ,ν⁢nμ⁢nν2,Λ=Rμμμμ24
Ricciscalars
Φ__00=0,Φ__01=0,Φ__02=0,Φ__11=2⁢kr,r⁢k⁢r2+2⁢kr2⁢r2−2⁢k2+14⁢r2,Φ__12=0,Φ__22=2⁢k.k⁢r,Λ=−2⁢kr,r⁢k⁢r2−2⁢kr2⁢r2−8⁢k⁢r⁢kr−2⁢k2+112⁢r2
Note that these scalars depend on the choice of orientation for the axis of the tetrad system of references. To change the tetrad or that orientation of axis see Tetrads:-TransformTetrad.
To express Ricci in terms of the Christoffel symbols and its derivatives convert to Christoffel
=convert⁡,Christoffel
Rα,β=∂μ⁡Γ⁢μα,β⁢μα,β−∂β⁡Γ⁢μα,μ⁢μα,μ+Γ⁢να,β⁢να,β⁢Γ⁢μμ,ν⁢μμ,ν−Γ⁢να,μ⁢να,μ⁢Γ⁢μβ,ν⁢μβ,ν
Sometimes it is convenient to rewrite tensorial expressions involving the Einstein tensor in terms of the Ricci tensor
Einsteinα,β
Gα,β
convert⁡,Ricci
Rα,β−gα,β⁢Rμμμμ2
convert⁡,Ricci,evaluatetrace
Rα,β+gα,β⁢2⁢kr,r⁢k⁢r2+2⁢kr2⁢r2+8⁢k⁢r⁢kr+2⁢k2−1r2
Check the value of R__μ,ν for μ = ν = 1
Ricci1,1
Now for R⁢⁢⁢ν⁢μ with μ = ν = 1 (note you enter the value of the contravariant index prefixed by ~)
Ricci~1,1
−2⁢k⁢kr,r⁢r+kr2⁢r+2⁢k⁢krr
To compute with a representation for Ricci without actually performing the operation, use the inert form %Ricci. To afterwards perform the operation use value
%Ricci~1,1
R⁢11⁢11
value⁡
To have a more compact display in the following examples, suppress the display of the dependency of k and have the display of derivatives in jet notation, indexed (see Typesetting)
The Matrix form of the all-covariant and all-contravariant components of the Ricci tensor
Ricci
Rμ,ν=0002⁢k⁢kr,r⁢r+2⁢kr2⁢r+4⁢k⁢krr0−4⁢k⁢r⁢kr−2⁢k2+10000−4⁢k⁢r⁢kr−2⁢k2+1⁢sin⁡θ202⁢k⁢kr,r⁢r+2⁢kr2⁢r+4⁢k⁢krr004⁢k⁢k2⁢kr,r⁢r+k⁢kr2⁢r+2⁢k2⁢kr+k.r
Ricci`~`
R⁢μ,ν⁢μ,ν=4⁢k⁢−k2⁢kr,r⁢r−k⁢kr2⁢r−2⁢k2⁢kr+k.r002⁢k⁢kr,r⁢r+2⁢kr2⁢r+4⁢k⁢krr0−4⁢k⁢r⁢kr−2⁢k2+1r40000−4⁢k⁢r⁢kr−2⁢k2+1⁢csc⁡θ2r402⁢k⁢kr,r⁢r+2⁢kr2⁢r+4⁢k⁢krr000
The Ricci scalar can be computed entering Ricci[scalar] or Ricci[mu, mu]
Ricciscalar
−2⁢2⁢kr,r⁢k⁢r2+2⁢kr2⁢r2+8⁢k⁢r⁢kr+2⁢k2−1r2
The nonzero components of the Ricci tensor
Riccinonzero
Rμ,ν=1,4=2⁢k⁢kr,r⁢r+2⁢kr2⁢r+4⁢k⁢krr,2,2=−4⁢k⁢r⁢kr−2⁢k2+1,3,3=−4⁢k⁢r⁢kr−2⁢k2+1⁢sin⁡θ2,4,1=2⁢k⁢kr,r⁢r+2⁢kr2⁢r+4⁢k⁢krr,4,4=4⁢k⁢k2⁢kr,r⁢r+k⁢kr2⁢r+2⁢k2⁢kr+k.r
This is the matrix form of R⁢⁢⁢ν⁢μ (note the contravariant index μ, prefixed by ~)
Ricci~mu,ν,matrix
R⁢μν⁢μν=−2⁢k⁢kr,r⁢r−2⁢kr2⁢r−4⁢k⁢krr00−4⁢k⁢k.r0−4⁢k⁢r⁢kr−2⁢k2+1r20000−4⁢k⁢r⁢kr−2⁢k2+1r20000−2⁢k⁢kr,r⁢r−2⁢kr2⁢r−4⁢k⁢krr
To use this matrix, because its components were computed already taking into account the (covariant/contravariant) character of its indices, you do not need to indicate furthermore that character. So for R⁢11 we have
R≔rhs⁡:
R1,1
−2⁢k⁢kr,r⁢r−2⁢kr2⁢r−4⁢k⁢krr
Compare with the output obtained entering Ricci[~1, 1] in eq (16)
normal⁡−
In different contexts it is sometimes necessary to classify the spacetime, for instance performing a PetrovType classification, or the SegreType classification of the Ricci tensor. These classification commands are in the Tetrads package. For example, for the spacetime considered, we have
Tetrads:-PetrovType⁡
D
Tetrads:-SegreType⁡
D,[2,(11)]
See Also
`.`, Array, ArrayElems, Christoffel, CompactDisplay, Coordinates, d_, D_, DifferentialGeometry[Tensor][RicciTensor], Einstein, l_, m_, Matrix, mb_, n_, PetrovType, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Riemann, SegreeType, Setup, Tetrads, TransformTetrad, Typesetting, value
References
[1] Landau, L.D., and Lifshitz, E.M. The Classical Theory of Fields, Course of Theoretical Physics Volume 2, fourth revised English edition. Elsevier, 1975.
[2] Stephani, H., Kramer, D., MacCallum, M., Hoenselaers, C. Herlt, E. Exact Solutions of Einstein's Field Equations, Cambridge Monographs on Mathematical Physics, second edition. Cambridge University Press, 2003.
[3] Hawking, S.W., Israel, W., Chandrasekhar, S. General Relativity: an Einstein Centenary Survey, Chapter 7, Cambridge University Press, 2010.
[4] Letniowski, F.W., McLenaghan, R.G. An Improved Algorithm for Quartic Equation Classification and Petrov Classification, General Relativity and Gravitation, Vol.20, No. 5, 1988.
Compatibility
The Physics[Ricci] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
The Physics[Ricci] command was updated in Maple 2017.
Download Help Document