Tensor[RicciTensor] - calculate the Ricci tensor of a linear connection on the tangent bundle
Calling Sequences
RicciTensor(g)
RicciTensor(R)
Parameters
g - the metric tensor on the tangent bundle of a manifold
R - the curvature tensor of a connection on the tangent bundle of a manifold
Description
Examples
See Also
Let C be a connection on the tangent bundle of a manifold M with a curvature tensor C. The Ricci tensor R is the contraction of C over the 1st and 3rd indices. In terms of index notation, Rij=R ihjh .
With the first calling sequence, the Ricci tensor for the Christoffel connection of the metric g is computed. With the second calling sequence, the Ricci tensor is computed directly from the given curvature tensor.
This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form RicciTensor(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order. It can always be used in the long form DifferentialGeometry:-Tensor:-RicciTensor.
with⁡DifferentialGeometry:with⁡Tensor:
Example 1.
First create a 3-dimensional manifold M and define a connection on the tangent space of M.
DGsetup⁡x,y,z,M
frame name: M
C1≔Connection⁡x2⁢D_x&tdx&tdy−y2⁢D_x&tdy&tdy+y⁢z⁢D_x&tdz&tdy
C1:=x2⁢D_x⁢dx⁢dy−y2⁢D_x⁢dy⁢dy+y⁢z⁢D_x⁢dz⁢dy
Calculate the curvature tensor.
R1≔CurvatureTensor⁡C1
R1:=2⁢x⁢D_x⁢dx⁢dx⁢dy−2⁢x⁢D_x⁢dx⁢dy⁢dx−y⁢D_x⁢dz⁢dy⁢dz+y⁢D_x⁢dz⁢dz⁢dy
Calculate the Ricci tensor. Note that in general the Ricci tensor is not symmetric.
Ric1≔RicciTensor⁡R1
Ric1:=2⁢x⁢dx⁢dy
Example 2.
Define a frame on M and use this frame to specify a connection on the tangent space of M.
FR≔FrameData⁡x2y⁢dx,zx⁢dy,x⁢y⁢dz,M1:
DGsetup⁡FR
frame name: M1
C2≔Connection⁡E2&tΘ1&tΘ2
C2:=E2⁢Θ1⁢Θ2
R2≔CurvatureTensor⁡C2
R2:=−y⁢E2⁢Θ1⁢Θ1⁢Θ2x3+y⁢E2⁢Θ1⁢Θ2⁢Θ1x3−E2⁢Θ1⁢Θ2⁢Θ3z⁢x⁢y+E2⁢Θ1⁢Θ3⁢Θ2z⁢x⁢y
Calculate the Ricci tensor.
Ric2≔RicciTensor⁡R2
Ric2:=y⁢Θ1⁢Θ1x3−Θ1⁢Θ3z⁢x⁢y
Example 3.
In this example we calculate the Ricci tensor for a metric and note that in this case the Ricci tensor is symmetric.
g≔evalDG⁡y⁢dx&tdx+z⁢dy&tdy+dz&tdz
g:=dx⁢dx⁢y+dy⁢dy⁢z+dz⁢dz
Calculate the Ricci tensor for the metric directly.
Ric3≔RicciTensor⁡g
Ric3:=14⁢dx⁢dxy⁢z+14⁢y2+z⁢dy⁢dyy2⁢z+14⁢dy⁢dzy⁢z+14⁢dz⁢dyy⁢z+14⁢dz⁢dzz2
DifferentialGeometry, Tensor, Christoffel, Physics[Christoffel], CovariantDerivative, Physics[D_], CurvatureTensor, Physics[Riemann], DGinfo, DirectionalCovariantDerivative, SectionalCurvature, RicciScalar, Physics[Ricci]
Download Help Document