Let (M, g) be a
Riemannian or
pseudo-Riemannian manifold, and \mathfrak{X}(M) be the space of all
vector fields on M. We define the
Riemann curvature tensor as a map \mathfrak{X}(M)\times\mathfrak{X}(M)\times\mathfrak{X}(M)\rightarrow\mathfrak{X}(M) by the following formula where \nabla is the
Levi-Civita connection: : R(X, Y)Z = \nabla_X\nabla_Y Z - \nabla_Y \nabla_X Z - \nabla_{[X, Y]} Z or equivalently : R(X, Y) = [\nabla_X,\nabla_Y] - \nabla_{[X, Y]} where [X,Y] is the
Lie bracket of vector fields and [\nabla_X,\nabla_Y] is a commutator of differential operators. It turns out that the right-hand side actually only depends on the value of the vector fields X, Y, Z at a given point, which is notable since the covariant derivative of a vector field also depends on the field values in a neighborhood of the point. Hence, R is a (1,3)-tensor field. For fixed X,Y, the linear transformation Z \mapsto R(X, Y)Z is also called the
curvature transformation or
endomorphism. Occasionally, the curvature tensor is defined with the opposite sign. The curvature tensor measures
noncommutativity of the covariant derivative, and as such is the
integrability obstruction for the existence of an isometry with Euclidean space (called, in this context,
flat space). Since the Levi-Civita connection is torsion-free, its curvature can also be expressed in terms of the
second covariant derivative : \nabla^2_{X,Y} Z = \nabla_X\nabla_Y Z - \nabla_{\nabla_X Y}Z which depends only on the values of X, Y at a point. The curvature can then be written as : R(X, Y) = \nabla^2_{X,Y} - \nabla^2_{Y,X} Thus, the curvature tensor measures the noncommutativity of the second covariant derivative. In
abstract index notation, R^d{}_{cab} Z^c = \nabla_a \nabla_b Z^d - \nabla_b \nabla_a Z^d . The Riemann curvature tensor is also the
commutator of the covariant derivative of an arbitrary covector A_{\nu} with itself: : A_{\nu;\rho\sigma} - A_{\nu;\sigma\rho} = A_{\beta} R^{\beta}{}_{\nu\rho\sigma}. This formula is often called the
Ricci identity. This is the classical method used by
Ricci and
Levi-Civita to obtain an expression for the Riemann curvature tensor. This identity can be generalized to get the commutators for two covariant derivatives of arbitrary tensors as follows : \begin{align} &\nabla_\delta \nabla_\gamma T^{\alpha_1 \cdots \alpha_r}{}_{\beta_1 \cdots \beta_s} - \nabla_\gamma \nabla_\delta T^{\alpha_1 \cdots \alpha_r}{}_{\beta_1 \cdots \beta_s} \\[3pt] ={} &R^{\alpha_1}{}_{\rho\delta\gamma} T^{\rho\alpha_2 \cdots \alpha_r}{}_{\beta_1 \cdots \beta_s} + \ldots + R^{\alpha_r}{}_{\rho\delta\gamma} T^{\alpha_1 \cdots \alpha_{r-1}\rho}{}_{\beta_1 \cdots \beta_s} - R^{\sigma}{}_{\beta_1\delta\gamma} T^{\alpha_1 \cdots \alpha_r}{}_{\sigma\beta_2 \cdots \beta_s} - \ldots - R^{\sigma}{}_{\beta_s\delta\gamma} T^{\alpha_1 \cdots \alpha_r}{}_{\beta_1 \cdots \beta_{s-1}\sigma} \end{align} This formula also applies to
tensor densities without alteration, because for the Levi-Civita (
not generic) connection one gets: : \nabla_{\mu}\left(\sqrt{g}\right) \equiv \left(\sqrt{g}\right)_{;\mu} = 0, where : g = \left|\det\left(g_{\mu\nu}\right)\right|. It is sometimes convenient to also define the purely covariant version of the curvature tensor by :R_{\sigma\mu\nu\rho} = g_{\rho\zeta} R^{\zeta}{}_{\sigma\mu\nu}. == Geometric meaning ==