I try to calculate the Einstein tensor of Kaluza-Klein model from this paper. It is given by Equation (55)
$ G_{\alpha\beta} = \frac{\nabla_\beta (\partial_\alpha \phi)}{\phi} - \frac{1}{2\phi^2} \left[ \frac{\partial_4 \phi \partial_4 g_{\alpha\beta}}{\phi} - \partial_4 (\partial_4 g_{\alpha\beta} ) + g^{\gamma\delta} \partial_4 g_{\alpha\gamma} \partial_4 g_{\beta\delta} - \frac{g^{\gamma\delta} \partial_4 g_{\gamma\delta} \partial_4 g_{\alpha \beta}}{2}+ \frac{g_{\alpha\beta}}{4}\left( \partial_4 g^{\gamma\delta} \partial_4 g_{\gamma\delta} + ( g^{\gamma\delta} \partial_4 g_{\gamma\delta})^2 \right) \right], $
where $\alpha,\beta=0, 1, 2,3$. $g_{\alpha\beta} = a^2(t) (-1,1,1,1)~ e^y$, and $\partial_4 = \frac{\partial}{\partial x^4}= \frac{\partial}{\partial x^y}$ is the derivative with respect to an extra fifth dimension.
Here is my trial:
n := 4
coord := {t, r, d, m}
coord[[1]] := t;
metric := {{-a[t]^2 Exp[y], 0, 0, 0}, {0, a[t]^2 Exp[y], 0, 0}, {0, 0,
a[t]^2 Exp[y], 0}, {0, 0, 0, a[t]^2 Exp[y]}}
inversemetric = Simplify[Inverse[metric]]
Gtensor := Gtensor = Simplify[Table[Sum[D[D[f[t, y], i] j]/f[t, y] - 1/(2 f[t, y]^2 ) (metric[[i, j]]/4 (( inversemetric[[k, s]]D[metric[[k, s]], y])^2 +
D[inversemetric[[k, s]], y]D[metric[[k, s]], y]) +
inversemetric[[k, s]]D[metric[[i, k]], y]
D[metric[[j, s]], y] - 1/2 inversemetric[[k, s]]D[metric[[i, j]], y]
D[metric[[k, s]], y] +(1/f[t, y]) (D[f[t, y], y]*D[metric[[i, j]], y]) -
D[D[metric[[i, j]], y], y]),
{s, 1, n}], {i, 1, n}, {j, 1, n}, {k, 1, n}]]
Then to make a table of the tensor components I used :
listGtensor := Table[If[UnsameQ[Gtensor[[i, j]]], {ToString[G[i, j]], Gtensor[[i, j]]}] , {i, 1, n}, {j, 1, n}, {k, 1, j}]
TableForm[Partition[DeleteCases[Flatten[listGtensor], Null], 2],
TableSpacing -> {2, 2}]
However I think the output has some problems: I expect to get three tensor components $G_{00}$ and $G_{ij}$ in terms of $g_{00}= -a^2 e^y$ and $g_{ij}= a^2 e^y $, respectively, while $G_{0i}$ will be a function of $f(t,y)$. But I get many different components. Also the table list is messed.
So any help to adjust Gtensor equation and the tabel list.
