Example 1.
First create a 3 dimensional manifold M and define a metric g on M.
Use the program InverseMetric to find the inverse of the metric g.
Use g to lower the index of a vector field X.
Use g to lower the 1st and 3rd indices of a rank 4 tensor T.
Use h to raise the 2nd and 4th indices of the tensor T.
Example 2.
We can also raise and lower indices for tensors associated with a vector bundle other than the tangent bundle. First let us construct a rank 2 vector bundle over a 2 dimensional base.
Define a fiber metric g on E.
Define a tensor field on the fibers of E.
Lower the 1st index of T with g.
Lower the 1st and 2nd indices of T with g.