The equations governing ordinary gravity in free space can be obtained from an action, by applying the variational principle to a certain action. Let M be a (pseudo-) Riemannian manifold, which may be taken as the spacetime of general relativity. If g is the metric on this manifold, one defines the action S (g) as