In most GR textbooks, one derives the stress energy tensor for relativistic dust: $$ T_{\mu\nu} = \rho v_\mu v_\nu $$ And then one puts this on the right hand side of the Einstein's equations. I would like to derive this from some action. I have read through all standard GR textbooks, and the only one which talks about this is General Theory of Relativity by P. Dirac. If you don't have the book, let me quickly reproduce the derivation here. The action for the relativistic dust is: $$ S_M = -\int \rho c \sqrt{v_\mu v^\mu} \sqrt{ |\det g| } d^4 x = -\int c \sqrt{p_\mu p^\mu} d^4 x $$ where $p^\mu=\rho v^\mu \sqrt{ |\det g| }$ is the 4-momentum density. Now we vary with respect to $g^{\mu\nu}$ as follows: $$ \delta S_M = - \delta \int c \sqrt{{p}_\mu {p}^\mu} d^4 x = $$ $$ = - \int c {\delta(g^{\mu\nu} {p}_\mu {p}_\nu) \over 2\sqrt{{p}_\alpha {p}^\alpha}} d^4 x = $$ $$ = - \int c { {p}_\mu {p}_\nu \over 2\sqrt{{p}_\alpha {p}^\alpha}} \delta(g^{\mu\nu}) d^4 x = $$ $$ = - \int c { \rho v_\mu \rho v_\nu \sqrt{ |\det g| }^2 \over 2 \rho c \sqrt{ |\det g| } } \delta(g^{\mu\nu}) d^4 x = $$ $$ = - \int {1\over2} \rho v_\mu v_\nu \delta(g^{\mu\nu}) \sqrt{ |\det g| } d^4 x $$ From which we calculate the stress energy tensor using the standard GR formula for it: $$ T_{\mu\nu} = - {2\over\sqrt{ |\det g| }}{\delta S_M\over\delta g^{\mu\nu}} = $$ $$ = - {2\over\sqrt{ |\det g| }} \left( -{1\over2} \rho v_\mu v_\nu \sqrt{ |\det g| } \right)= $$ $$ = \rho v_\mu v_\nu $$
If we vary with respect to $x^\mu$, we obtain the geodesic equation (the calculation is lengthy, see for example here, or the Dirac book). I'll be happy to clarify any of the derivations above if needed. Now my questions:
1) Why isn't this in every GR textbook? Is there some problem with the derivation?
2) The geodesic equation follows from this action $S_M$. Standard way to derive the geodesic equation is to maximize the proper time $$\tau = \int d \tau = \int \sqrt{-{1\over c^2} d s^2} = \int \sqrt{-{1\over c^2} g_{\mu\nu} d x^\mu d x^\nu} .$$ Is there some relation between this $\tau$ and $S_M$ since both give us the same geodesic equation?
3) Is it correct to simply say, that all GR for relativistic dust (without electromagnetism) follows from this action: $$ S = {c^4\over 16\pi G} \int R \sqrt{ |\det g_{\mu\nu}| } d^4 x -\int c \sqrt{p_\mu p^\mu} d^4 x $$ when varied with respect to $g^{\mu\nu}$ it gives the Einstein's equations with the $T_{\mu\nu} = \rho v_\mu v_\nu$ tensor on the right hand side, when varied with respect to $x^\mu$ it gives us the geodesic equation (for each particle of the dust).
4) Why do we need to hide the $\sqrt{ |\det g_{\mu\nu}| }$ in the 4-momentum density and do not vary it? Dirac says that it is because $\rho$ and $v^\mu$ are not independent quantities when varying, but I don't understand the argument.
5) The standard way is to use the Hilbert action, the action for the elmag field, the stress energy tensor for dust and derive the geodesic equation as a conservation of the stress energy tensor, that follows from the conservation of the Einstein's tensor. How is this approach related to the above? Isn't it physically better to simply postulate the total action and derive everything from it?
Note: Dirac shows how to incorporate electromagnetism by simply using the standard action for it and the procedure above then gives the correct elmag. tensor on the right hand side of Einstein's equations and the Lorentz force at the right hand side of the geodesic equation, as well as Maxwell's equations for the elmag field.