>
|
|
Example 1.
In this example we calculate the trace-free Ricci tensor for a metric.
M1 >
|
|
M >
|
|
| (2.2) |
Calculate the trace-free Ricci tensor for the metric directly.
M >
|
|
| (2.3) |
We check that is trace-free by computing the inverse metric and using the ContractIndices command.
| (2.4) |
M >
|
|
The same calculation can be done with the TensorInnerProduct command.
M >
|
|
Example 2.
The third calling sequence can be applied to any rank 2 symmetric tensor to construct a trace-free, rank 2 symmetric tensor.
| (2.7) |
| (2.8) |
The tensor is already trace-free, so its trace-free part is itself.
M >
|
|
The trace-free part of the metric itself is always 0.
M >
|
|
The trace-free part of is
M >
|
|
| (2.12) |
M >
|
|