How can I take partial derivatives of four vectors in Mathematica? For instance I need to evaluate following simple terms;
$\frac{\partial x^\beta}{\partial x^\delta} = g^{\beta \delta}$
$\frac{\partial }{\partial x^\delta} (\frac{x^\beta}{x^2}) = \frac{g^{\beta \delta} x^2 - 2x^\delta x^\beta}{x^4}$ ; where $x^2$ is actually $x_\mu x^\mu$
Is there a package that does these calculations? If yes, what are the codes in that package? In this way one could decide the simplest way (optimal tool) to evaluate basic derivatives as above.
If there is not such a package, how could I do it by defining my own functions?