where Ric is the Ricci tensor (defined by contracting the first and third indices of the Riemann tensor), R is the scalar curvature, g is the Riemannian metric, J = 1 2 ( n − − 1 ) R is the trace of P and n is the dimension of the manifold.