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.
Use metric signature throughout this solution. Stress-energy conservation for the perfect fluid is . Expanding it and using metric compatibility gives
The normalization of the four-velocity implies . Contracting with therefore gives the relativistic perfect-fluid energy equation,
while subtracting the component parallel to gives the relativistic Euler equation,
Equivalently, apply the orthogonal projection to the conservation equation. This form makes clear that a pressure gradient orthogonal to the four-velocity supplies the fluid's four-acceleration.
Contract for the perfect fluid in general relativity with . Using and gives the relativistic perfect-fluid energy equation
the local first law of thermodynamics. Project instead with to obtain the relativistic Euler equation