Use metric signature and a bulk four-velocity normalized by . A perfect fluid in general relativity is isotropic in its local rest frame, with no rest-frame energy flux or anisotropic stress. In an orthonormal frame in spacetime comoving with that fluid,
Here is rest-frame energy density divided by , including random kinetic energy, and is isotropic pressure. For a particle gas, and , with the rest-frame particle distribution. Isotropy makes the off-diagonal spatial stresses and net energy flux vanish.
Introduce the spatial projector of a timelike congruence
The only isotropic decomposition with the preceding components is
Since both sides are tensors, equality in the comoving orthonormal frame in spacetime establishes
Coordinate-independent definitions of the two scalar fields are
Thus is not, in general, only the sum of the particle rest masses per volume.
The microscopic averaging notation needs a normalization qualification. The normalization of an averaged four-velocity matters because a literal average of normalized microscopic four-velocities is not normally a normalized bulk four-velocity. For example, six equally weighted streams with the same ordinary speed , directed along the positive and negative coordinate axes, have an isotropic velocity distribution and
The physical rest-frame bulk four-velocity is , not this unnormalized average. Even taking the source's schematic kinetic expression literally with prefactor gives
Substituting and the same into the claimed fluid expression would instead increase by . The standard result therefore requires a normalized bulk velocity and a carefully defined rest-frame total energy density; it does not follow with both microscopic identifications interpreted literally. More generally the bulk velocity can be defined as the future-directed timelike energy eigenvector of the stress-energy tensor.
The equation is local stress-energy conservation. In a weak gravitational field and the nonrelativistic limit its leading energy component gives mass conservation,
while its spatial components give momentum conservation, or the inviscid Euler equations
The next energy order gives conservation of internal plus kinetic energy, including pressure work and gravitational work. These are local conservation laws, not an assertion that arbitrary curved spacetimes possess a global conserved total energy.
Write , for the expansion scalar, for the four-acceleration, and for the spatial projector of a timelike congruence. The normalization of the four-velocity gives and . The product rule and metric compatibility give the covariant derivative of the perfect fluid in general relativity stress-energy tensor:
Its tensor contraction with the four-velocity is
and its projection with the spatial projector of a timelike congruence is
Thus stress-energy conservation implies the relativistic perfect-fluid energy equation and the relativistic Euler equation:
Conversely, the two displayed equations set both projections of to zero. Since , they imply . This establishes equivalence, including points where , without dividing by that quantity.
First differentiate the unit normalization . Metric compatibility gives
The timelike geodesic vector field equation gives the other contraction,
For the spatial projector of a timelike congruence,
and symmetry also gives . Thus
Splitting the deformation tensor of a timelike geodesic congruence into symmetric and antisymmetric parts and substituting the definitions gives
Moreover, the orthogonality of implies
while in four dimensions
It follows that
Hence
which is the kinematic decomposition of a timelike geodesic congruence.
Use Minkowski metric and units with the speed of light equal to one. Thus , and is the spatial projector of a timelike congruence. Keep the medium velocity fixed when varying the electromagnetic four-potential. Since the electromagnetic field tensor is , its variation gives
Both tensors are antisymmetric. Integration by parts, with variations vanishing at the boundary, therefore gives
The Euler-Lagrange field equation is . Renaming the free index and using antisymmetry gives
These are the inhomogeneous Maxwell equations with the bound charge and bound current encoded by the polarization-magnetization tensor.