Having formulated the relativistic, geometric version of the effects of gravity, the question of gravity's source remains. In Newtonian gravity, the source is mass. In special relativity, mass turns out to be part of a more general quantity called the energy-momentum tensor, which includes both energy and momentum densities as well as stress (that is, pressure and shear). Using the equivalence principle, this tensor is readily generalized to curved space-time. Drawing further upon the analogy with geometric Newtonian gravity, it is natural to assume that the field equation for gravity relates this tensor and the Ricci tensor, which describes a particular class of tidal effects: the change in volume for a small cloud of test particles that are initially at rest, and then fall freely. In special relativity, conservation of energy-momentum corresponds to the statement that the energy-momentum tensor is divergence-free. This formula, too, is readily generalized to curved spacetime by replacing partial derivatives with their curved-manifold counterparts, covariant derivatives studied in differential geometry. With this additional condition—the covariant divergence of the energy-momentum tensor, and hence of whatever is on the other side of the equation, is zero— the simplest set of equations are what are called Einstein's (field) equations:
On the left-hand side is a specific divergence-free combination of the Ricci tensor Rab and the metric known as the Einstein tensor. In particular,
is the curvature scalar. The Ricci tensor itself is related to the more general Riemann curvature tensor as
On the right-hand side, Tab is the energy-momentum tensor. All tensors are written in abstract index notation. Matching the theory's prediction to observational results for planetary orbits (or, equivalently, assuring that the weak-gravity, low-speed limit is Newtonian mechanics), the proportionality constant can be fixed as κ = 8πG/c4, with G the gravitational constant and c the speed of light. When there is no matter present, so that the energy-momentum tensor vanishes, the result are the vacuum Einstein equations,
There are alternatives to general relativity built upon the same premises, which include additional rules and/or constraints, leading to different field equations. Examples are Brans-Dicke theory, teleparallelism, and Einstein-Cartan theory.