Important: The tensor package has been deprecated. Use the superseding commands DifferentialGeometry[Tensor][CovariantDerivative] and Physics[D_] instead.
Define the coordinate variables and the Schwarzchild covariant metric tensor:
>
|
|
| (1) |
>
|
|
>
|
|
>
|
|
>
|
|
| (2) |
Compute the Christoffel symbols of the second kind using the appropriate routines:
>
|
|
>
|
|
>
|
|
>
|
|
Now given a tensor, you can compute its covariant derivatives using cov_diff. First, compute the covariant derivatives of the metric. Expect to get zero.
>
|
|
>
|
|
Now compute the Riemann tensor and find its covariant derivatives:
>
|
|
>
|
|
>
|
|
Show the covariant derivative of the 1212 component with respect to x2: