Tensor[EinsteinTensor] - calculate the Einstein tensor for a metric
Calling Sequences
EinsteinTensor(g, R)
Parameters
g - a metric tensor
R - (optional) the curvature tensor of the metric g
Description
Examples
See Also
Let and be the Ricci tensor and Ricci scalar for the metric , respectively. The covariant form of the Einstein tensor is . The contravariant form is obtained by raising both indices of the covariant Einstein tensor with the metric . In terms of components,
.
The program EinsteinTensor(g, R) returns the contravariant form of the Einstein tensor. This tensor is symmetric and its covariant divergence vanishes.
This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form EinsteinTensor(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order. It can always be used in the long form DifferentialGeometry:-Tensor:-EinsteinTensor.
Example 1.
Create a 4 dimensional manifold , define a metric , and calculate the Einstein tensor .
Calculate the Christoffel symbols for the metric .
Calculate the Einstein tensor for the metric .
Check that the covariant divergence of the Einstein tensor vanishes.
Physics[Einstein], DifferentialGeometry, Tensor, Christoffel, Physics[Christoffel], ContractIndices, CovariantDerivative, Physics[D_], CurvatureTensor, Physics[Riemann], SectionalCurvature, RicciScalar, RicciTensor, Physics[Ricci]
Download Help Document