# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

Represent the Riemann curvature tensor (field) for a Riemannian or pseudo-Riemannian manifold

Contributed by:
Jonathan Gorard

ResourceFunction["RiemannTensor"][ResourceFunction["RiemannTensor"][…], transforms a specified ResourceFunction["RiemannTensor"] into the new coordinate system | |

ResourceFunction["RiemannTensor"][ResourceFunction["RiemannTensor"][…], transforms a specified RiemannTensor into one with new indices | |

ResourceFunction["RiemannTensor"][ResourceFunction["RiemannTensor"][…], transforms a specified ResourceFunction["RiemannTensor"] into one with new coordinate system |

Formally, the Riemann curvature tensor is a (highly symmetrical) rank-4 tensor defined on the tangent space at a specified point of a manifold, and the Riemann curvature tensor *field* associates a Riemann curvature tensor to every such point in that manifold. Informally, the Riemann curvature tensor quantifies both the volume deformation and the tidal deformation (i.e. deformation of shape/angle) experienced by a small geodesic cone as it moves along a geodesic in the manifold.

Strictly speaking, ResourceFunction["RiemannTensor"] represents a Riemann curvature tensor field rather than a single Riemann curvature tensor (this terminological ambiguity is commonplace in both geometry and physics, and ResourceFunction["RiemannTensor"] generally does not make any such distinction).

By default, ResourceFunction["RiemannTensor"][MetricTensor[…],*i*_{1},*i*_{2},*i*_{3},*i*_{4}] represents a Riemann curvature tensor by a highly symmetrical array representation of linear combinations of second (covariant) derivatives of the metric tensor in a given coordinate basis, such that the entries of this array transform either covariantly or contravariantly, or some mixture of the two, with respect to transformations of the coordinates. The indices *i*_{1}, *i*_{2}, *i*_{3} and *i*_{4} can either be set to True (covariant) or False (contravariant). By default, the first index is set to False (i.e. contravariant) and the remaining three are set to True (i.e. covariant).

In differential geometry, the mathematical significance of the Riemann curvature tensor is that it quantifies the degree to which geometrical information (i.e. information regarding the directions of certain tangent vectors) fails to be preserved when tangent vectors are parallel transported around a closed curve in the manifold. Algebraically, the Riemann curvature tensor thus quantifies the extent to which the covariant derivative operator (i.e. the derivative operator along tangent vectors in the manifold) fails to commute, or, equivalently, the degree to which the connection fails to be exact. It constitutes the canonical (and, in some sense, most general) way of expressing the curvature of a (pseudo-)Riemannian manifold.

In general relativity, the physical significance of the Riemann curvature tensor is that it quantifies the overall gravitational force exerted on a small rigid body (including both the compressive/expansive forces distorting the object's volume and the tidal forces distorting the object's shape/angles) as it moves along a spacetime geodesic. It constitutes the canonical and, in some sense, most general way of expressing the total curvature of spacetime. By contracting the Riemann curvature tensor along the first and third indices, one obtains the Ricci curvature tensor, as it appears in the Einstein field equations.

ResourceFunction["RiemannTensor"] does not assume any particular number of dimensions, nor any particular metric convention, for the underlying manifold (although some properties, such as "LorentzianConditions", implicitly assume a (-,+,+,+,…) signature). ResourceFunction["RiemannTensor"] also does not require the metric to be strictly symmetric (i.e. spin and torsion connections are also supported), although the computation of the Riemann curvature tensor implicitly assumes the torsion-free Levi-Civita connection by default.

ResourceFunction["RiemannTensor"] implicitly keeps track of all known algebraic equivalences between tensor expressions, and can apply them for simplification purposes where necessary. Requesting any property with "Reduced" in its name has the effect of applying all known tensor equivalences and simplifying (note that this can have the effect of increasing computation time significantly).

By default, ResourceFunction["RiemannTensor"] evaluates all partial derivatives of the metric tensor automatically. In certain cases, however, these partial derivatives may be difficult or even impossible to compute, in which case the evaluation may not terminate in a reasonable time. Requesting any property with "Symbolic" in its name has the effect of leaving all partial derivative operators unevaluated instead (note that this can have the effect of increasing expression length significantly).

If the function succeeds in constructing the specified Riemann curvature tensor, it will return a ResourceFunction["RiemannTensor"] expression.

Calling ResourceFunction["RiemannTensor"][…][*i*,*j*,*k*,*l*] returns the entry at the *i*-th depth, the *j*-th layer, the *k*-th column and the *l*-th row of the array representation of the Riemann curvature tensor.

ResourceFunction["RiemannTensor"][ResourceFunction["RiemannTensor"][…],*coords*] has the effect of transforming the metric tensor (and hence the Riemann curvature tensor) to the new coordinate system *coords*. ResourceFunction["RiemannTensor"][ResourceFunction["RiemannTensor"][…],*i*_{1},*i*_{2},*i*_{3},*i*_{4}] has the effect of raising and lowering appropriate indices of the Riemann curvature tensor to match *i*_{1}, *i*_{2}, *i*_{3} and *i*_{4} (with True representing lowered/covariant and False representing raised/contravariant). ResourceFunction["RiemannTensor"][ResourceFunction["RiemannTensor"][…],*coords*,*i*_{1},*i*_{2},*i*_{3},*i*_{4}] has the effect of performing both transformations simultaneously.

By default, ResourceFunction["RiemannTensor"] keeps track of the positions of all indices and performs all raising and lowering operations automatically, as required for a given computation.

Based on the eigenvalues of the matrix representation of the underlying metric tensor in covariant form, the underlying manifold will be classified by ResourceFunction["RiemannTensor"] as either Riemannian (all eigenvalues positive or all eigenvalues negative), pseudo-Riemannian (some eigenvalues positive and some eigenvalues negative), Lorentzian (all eigenvalues positive except for one negative, or all eigenvalues negative except for one positive) or Indeterminate.

The property "RiemannianConditions" returns the conditions necessary to guarantee that the eigenvalues of the matrix representation of the underlying metric tensor are strictly positive; "PseudoRiemannianConditions" returns the conditions necessary to guarantee that the eigenvalues of the matrix representation of the underlying metric tensor are all non-zero; "LorentzianConditions" returns the conditions necessary to guarantee that the eigenvalue corresponding to the {1,0,0,…} eigenvector of the underlying metric tensor (if it exists) is negative, with all other eigenvalues being positive. Note that this is strictly less general than the behavior of properties such as "RiemannianQ" (described in the point above), since it assumes certain features of the metric signature.

In ResourceFunction["RiemannTensor"], the following properties are supported:

"TensorRepresentation" | Riemann curvature tensor represented in explicit array form |

"ReducedTensorRepresentation" | Riemann curvature tensor represented in explicit array form, modulo all tensor equivalences |

"SymbolicTensorRepresentation" | Riemann curvature tensor represented in explicit array form, with purely symbolic partial derivative operators |

"KretschmannScalar" | Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor) |

"ReducedKretschmannScalar" | Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor), modulo all tensor equivalences |

"SymbolicKretschmannScalar" | Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor), with purely symbolic partial derivative operators |

"ChernPontryaginScalar" | Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number) |

"ReducedChernPontryaginScalar" | Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number), modulo all tensor equivalences |

"SymbolicChernPontryaginScalar" | Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number), with purely symbolic partial derivative operators |

"EulerScalar" | Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic) |

"ReducedEulerScalar" | Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic), modulo all tensor equivalences |

"SymbolicEulerScalar" | Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic), with purely symbolic partial derivative operators |

"MetricTensor" | underlying metric tensor associated to the Riemann curvature tensor |

"Coordinates" | list of coordinate symbols associated to the Riemann curvature tensor |

"CoordinateOneForms" | list of differential 1-form symbols for the coordinates of the Riemann curvature tensor |

"Indices" | list of booleans specifying whether each index of the Riemann curvature tensor is lowered/covariant (True) or raised/contravariant (False) |

"CovariantQ" | whether the Riemann curvature tensor is covariant (i.e. all indices are lowered/covariant) |

"ContravariantQ" | whether the Riemann curvature tensor is contravariant (i.e. all indices are raised/contravariant) |

"MixedQ" | whether the Riemann curvature tensor is mixed (i.e. some indices are lowered/covariant and some indices are raised/contravariant) |

"Symbol" | symbolic representation of the Riemann curvature tensor with appropriately raised/lowered indices |

"RiemannFlatQ" | whether the underlying manifold is Riemann-flat (i.e. all components of the Riemann curvature tensor vanish) |

"VanishingKretschmannScalarQ" | whether the Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor) vanishes |

"VanishingChernPontryaginScalarQ" | whether the Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number) vanishes |

"VanishingEulerScalarQ" | whether the Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic) vanishes |

"RiemannFlatConditions" | list of conditions required to guarantee that the underlying manifold is Riemann-flat (i.e. all components of the Riemann curvature tensor vanish) |

"VanishingKretschmannScalarCondition" | condition required to guarantee that the underlying manifold has a vanishing Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor) |

"VanishingChernPontryaginScalarCondition" | condition required to guarantee that the underlying manifold has a vanishing Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number) |

"VanishingEulerScalarCondition" | condition required to guarantee that the underlying manifold has a vanishing Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic) |

"IndexContractions" | association of possible index contractions of the Riemann curvature tensor |

"ReducedIndexContractions" | association of possible index contractions of the Riemann curvature tensor, modulo all tensor equivalences |

"SymbolicIndexContractions" | association of possible index contractions of the Riemann curvature tensor, with purely symbolic partial derivative operators |

"CovariantDerivatives" | association of covariant derivatives (i.e. derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor |

"ReducedCovariantDerivatives" | association of covariant derivatives (i.e. derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor, modulo all tensor equivalences |

"SymbolicCovariantDerivatives" | association of covariant derivatives (i.e. derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor, with purely symbolic partial derivative operators |

"BianchiIdentities" | list of Bianchi identities asserting the symmetries of the covariant derivative of the Riemann curvature tensor |

"SymbolicBianchiIdentities" | list of Bianchi identities asserting the symmetries of the covariant derivative of the Riemann curvature tensor, with purely symbolic partial derivative operators |

"Dimensions" | number of dimensions of the underlying manifold/spacetime described by the Riemann curvature tensor |

"Signature" | list of +1s and -1s designating the signature of the underlying manifold described by the Riemann curvature tensor (+1 for each positive eigenvalue of the metric, -1 for each negative eigenvalue of the metric) |

"RiemannianQ" | whether the underlying manifold described by the Riemann curvature tensor is Riemannian (i.e. all eigenvalues of the metric have the same sign) |

"PseudoRiemannianQ" | whether the underlying manifold described by the Riemann curvature tensor is pseudo-Riemannian (i.e. all eigenvalues of the metric are non-zero, but not all have the same sign) |

"LorentzianQ" | whether the underlying manifold described by the Riemann curvature tensor is Lorentzian (i.e. all eigenvalues of the metric have the same sign, except for one eigenvalue which has the opposite sign) |

"RiemannianConditions" | list of conditions required to guarantee that the underlying manifold described by the Riemann curvature tensor is Riemannian (i.e. all eigenvalues of the metric are positive) |

"PseudoRiemannianConditions" | list of conditions required to guarantee that the underlying manifold described by the Riemann curvature tensor is pseudo-Riemannian (i.e. all eigenvalues of the metric are non-zero) |

"LorentzianConditions" | list of conditions required to guarantee that the underlying manifold described by the Riemann curvature tensor is Lorentzian (i.e. the "time" eigenvalue of the metric is negative and all other eigenvalues are positive) |

"CurvatureSingularities" | list of possible coordinate values that cause the Riemann curvature tensor to become singular |

"KretschmannSingularities" | list of possible coordinate values that cause the Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor) to become singular |

"ChernPontryaginSingularities" | list of possible coordinate values that cause the Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number) to become singular |

"EulerSingularities" | list of possible coordinate values that cause the Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic) to become singular |

"CovariantRiemannTensor" | covariant form of the Riemann curvature tensor (i.e. both indices are lowered/covariant) |

"ContravariantRiemannTensor" | contravariant form of the Riemann curvature tensor (i.e. both indices are raised/contravariant) |

"Properties" | list of properties |

Construct the Riemann curvature tensor for the Schwarzschild metric (e.g. for an uncharged, non-rotating black hole with symbolic mass "M") in standard spherical polar coordinates:

In[1]:= |

Out[1]= |

In[2]:= |

Out[2]= |

Show the Riemann curvature tensor for the Schwarzschild metric in explicit (mixed) array form:

In[3]:= |

Out[3]= |

Show the Riemann curvature tensor for the Schwarzschild metric in explicit (mixed) array form, with all algebraic equivalences imposed:

In[4]:= |

Out[4]= |

Deduce that the Schwarzschild metric is not Riemann-flat:

In[5]:= |

Out[5]= |

Show the list of Schwarzschild coordinate symbols:

In[6]:= |

Out[6]= |

Show the list of differential 1-form symbols for each of the Schwarzschild coordinates:

In[7]:= |

Out[7]= |

Show the list of coordinate conditions that must hold for the Schwarzschild metric to be Lorentzian:

In[8]:= |

Out[8]= |

Construct the Riemann curvature tensor for the Friedmann-Lemaître-Robertson-Walker (FLRW) metric (for a homogeneous, isotropic and uniformly-expanding/contracting universe, with symbolic curvature parameter "k" and symbolic scale factor "a") in standard spherical polar coordinates:

In[9]:= |

Out[9]= |

In[10]:= |

Out[10]= |

In[11]:= |

Out[11]= |

Show the explicit array form, with all algebraic equivalences imposed:

In[12]:= |

Out[12]= |

Deduce that the FLRW metric is not Riemann-flat:

In[13]:= |

Out[13]= |

Show the list of conditions that must hold for the FLRW metric to be Riemann-flat:

In[14]:= |

Out[14]= |

Show the first principal invariant (i.e. the Kretschmann quadratic scalar invariant) of the Riemann curvature tensor for the FLRW metric:

In[15]:= |

Out[15]= |

Show the first principal invariant (i.e. the Kretschmann quadratic scalar invariant) of the Riemann curvature tensor for the FLRW metric, with all algebraic equivalences imposed:

In[16]:= |

Out[16]= |

Deduce that the Kreschmann scalar for the FLRW metric is non-vanishing:

In[17]:= |

Out[17]= |

Show the condition that must hold for the FLRW metric to have a vanishing Kretschmann scalar:

In[18]:= |

Out[18]= |

Show the second principal invariant (i.e. the Chern-Pontryagin quadratic scalar invariant, whose integral is related to the instanton number) of the Riemann curvature tensor for the FLRW metric:

In[19]:= |

Out[19]= |

Deduce that the Chern-Pontryagin scalar for the FLRW metric vanishes:

In[20]:= |

Out[20]= |

Show the third principal invariant (i.e. the Euler quadratic scalar invariant, whose integral is related to the Euler characteristic) of the Riemann curvature tensor for the FLRW metric:

In[21]:= |

Out[21]= |

Show the third principal invariant (i.e. the Euler quadratic scalar invariant, whose integral is related to the Euler characteristic) of the Riemann curvature tensor for the FLRW metric, with all algebraic equivalences imposed:

In[22]:= |

Out[22]= |

Deduce that the Euler scalar for the FLRW metric is non-vanishing:

In[23]:= |

Out[23]= |

Show the condition that must hold for the FLRW metric to have a vanishing Euler scalar:

In[24]:= |

Out[24]= |

Show the list of coordinate values that cause the Riemann curvature tensor for the FLRW metric to become singular:

In[25]:= |

Out[25]= |

Show the list of coordinate values that cause the first principal invariant (i.e. the Kretschmann quadratic scalar invariant) of the Riemann curvature tensor for the FLRW metric to become singular:

In[26]:= |

Out[26]= |

Show the list of coordinate values that cause the third principal invariant (i.e. the Euler quadratic scalar invariant, whose integral is related to the Euler characteristic) of the Riemann curvature tensor for the FLRW metric to become singular:

In[27]:= |

Out[27]= |

Show the association of all possible index contractions of the Riemann curvature tensor for the FLRW metric:

In[28]:= |

Out[28]= |

Show the association of all possible index contractions of the Riemann curvature tensor for the FLRW metric, with all algebraic equivalences imposed:

In[29]:= |

Out[29]= |

Show the association of all covariant derivatives (i.e. derivatives along tangent vectors of the manifold) of the Riemann curvature tensor for the FLRW metric:

In[30]:= |

Out[30]= |

Show the association of all covariant derivatives of the Riemann curvature tensor for the FLRW metric, with all algebraic equivalences imposed:

In[31]:= |

Out[31]= |

Show the list of all Bianchi identities asserting the symmetries of the covariant derivative of the Riemann curvature tensor for the FLRW metric:

In[32]:= |

Out[32]= |

Show that the Bianchi identities for the FLRW metric all hold identically:

In[33]:= |

Out[33]= |

In[34]:= |

Out[34]= |

Raise the second index of the Riemann curvature tensor for the FLRW metric:

In[35]:= |

Out[35]= |

In[36]:= |

Out[36]= |

Show the explicit array form, with all algebraic equivalences imposed:

In[37]:= |

Out[37]= |

Show the association of all possible index contractions of the Riemann curvature tensor (with second index raised) for the FLRW metric:

In[38]:= |

Out[38]= |

Show the association of all possible index contractions of the Riemann curvature tensor (with second index raised) for the FLRW metric, with all algebraic equivalences imposed:

In[39]:= |

Out[39]= |

Show the association of all covariant derivatives (i.e. derivatives along tangent vectors of the manifold) of the Riemann curvature tensor (with second index raised) for the FLRW metric:

In[40]:= |

Out[40]= |

Show the association of all covariant derivatives of the Riemann curvature tensor (with second index raised) for the FLRW metric, with all algebraic equivalences imposed:

In[41]:= |

Out[41]= |

Construct the Riemann curvature tensor for the Kerr-Newman metric (e.g. for a charged, spinning black hole with symbolic mass "M", symbolic angular momentum "J" and symbolic electric charge "Q") in Boyer-Lindquist/oblate spheroidal coordinates:

In[42]:= |

Out[42]= |

In[43]:= |

Out[43]= |

In[44]:= |

Out[44]= |

Extract (and simplify) the time-radial-time-radial component of the Riemann curvature tensor for the Kerr-Newman metric:

In[45]:= |

Out[45]= |

Compute the covariant form of the Riemann curvature tensor (with all indices lowered):

In[46]:= |

Out[46]= |

In[47]:= |

Out[47]= |

In[48]:= |

Out[48]= |

In[49]:= |

Out[49]= |

Show that no index contractions are possible for the Riemann curvature tensor in covariant form:

In[50]:= |

Out[50]= |

Compute the contravariant form of the Riemann curvature tensor (with all indices raised):

In[51]:= |

Out[51]= |

In[52]:= |

Out[52]= |

In[53]:= |

Out[53]= |

In[54]:= |

Out[54]= |

Show that no index contractions are possible for the Riemann curvature tensor in contravariant form:

In[55]:= |

Out[55]= |

Compute a mixed form of the Riemann curvature tensor with first and last indices raised/contravariant and the second and third indices lowered/covariant:

In[56]:= |

Out[56]= |

In[57]:= |

Out[57]= |

In[58]:= |

Out[58]= |

In[59]:= |

Out[59]= |

Show that index contractions are only possible for the Riemann curvature tensor in mixed form:

In[60]:= |

Out[60]= |

Transform to use the new coordinate symbols t, r, a1 and a2:

In[61]:= |

Out[61]= |

In[62]:= |

Out[62]= |

Transform to use the new coordinate symbols t, r, a1 and a2, and raise all indices, simultaneously:

In[63]:= |

Out[63]= |

In[64]:= |

Out[64]= |

Riemann curvature tensors can be constructed directly from a MetricTensor expression:

In[65]:= |

Out[65]= |

In[66]:= |

Out[66]= |

Additional arguments can be used to specify the coordinate symbols (otherwise default symbols will be chosen automatically):

In[67]:= |

Out[67]= |

In[68]:= |

Out[68]= |

Or the indices (True for lowered/covariant and False for raised/contravariant - otherwise the first index will be set as raised/contravariant and the remaining three as lowered/covariant by default):

In[69]:= |

Out[69]= |

In[70]:= |

Out[70]= |

Or both simultaneously:

In[71]:= |

Out[71]= |

In[72]:= |

Out[72]= |

New coordinate symbols can be specified for any Riemann curvature tensor:

In[73]:= |

Out[73]= |

In[74]:= |

Out[74]= |

In[75]:= |

Out[75]= |

In[76]:= |

Out[76]= |

Indices can also be raised and lowered on any Riemann curvature tensor:

In[77]:= |

Out[77]= |

In[78]:= |

Out[78]= |

New coordinate symbols and new index positions can also be specified simultaneously:

In[79]:= |

Out[79]= |

In[80]:= |

Out[80]= |

In[81]:= |

Out[81]= |

Construct the Riemann curvature tensor for the FLRW metric, with symbolic curvature parameter "k" and symbolic scale factor "a":

In[82]:= |

Out[82]= |

In[83]:= |

Out[83]= |

Show the list of properties:

In[84]:= |

Out[84]= |

Show the explicit array representation of the Riemann curvature tensor:

In[85]:= |

Out[85]= |

Show the explicit array representation of the Riemann curvature tensor, with all algebraic equivalences imposed:

In[86]:= |

Out[86]= |

Show the explicit array representation of the Riemann curvature tensor, with all partial derivative operators left purely symbolic:

In[87]:= |

Out[87]= |

Show the Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor):

In[88]:= |

Out[88]= |

Show the Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor), with all algebraic equivalences imposed:

In[89]:= |

Out[89]= |

Show the Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor), with all partial derivative operators left purely symbolic:

In[90]:= |

Out[90]= |

Show the Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number):

In[91]:= |

Out[91]= |

Show the Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number), with all algebraic equivalences imposed:

In[92]:= |

Out[92]= |

Show the Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number), with all partial derivative operators left purely symbolic:

In[93]:= |

Out[93]= |

Show the Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic):

In[94]:= |

Out[94]= |

Show the Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic), with all algebraic equivalences imposed:

In[95]:= |

Out[95]= |

Show the Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic), with all partial derivative operators left purely symbolic:

In[96]:= |

Out[96]= |

Show the metric tensor for the underlying manifold represented by the Riemann curvature tensor:

In[97]:= |

Out[97]= |

Show the list of coordinate symbols for the Riemann curvature tensor:

In[98]:= |

Out[98]= |

Show the list of differential 1-form symbols for the coordinates of the Riemann curvature tensor:

In[99]:= |

Out[99]= |

Show the list of booleans specifying the positions of the indices of the Riemann curvature tensor (True for lowered/covariant and False for raised/contravariant):

In[100]:= |

Out[100]= |

Determine whether the Riemann curvature tensor is covariant (i.e. all indices are lowered/covariant):

In[101]:= |

Out[101]= |

Determine whether the Riemann curvature tensor is contravariant (i.e. all indices are raised/contravariant):

In[102]:= |

Out[102]= |

Determine whether the Riemann curvature tensor is mixed (i.e. some indices are lowered/covariant and some indices are raised/contravariant):

In[103]:= |

Out[103]= |

Show a symbolic representation of the Riemann curvature tensor with appropriately raised/lowered indices:

In[104]:= |

Out[104]= |

Determine whether the underlying manifold is Riemann-flat (i.e. all components of the Riemann curvature tensor vanish):

In[105]:= |

Out[105]= |

Determine whether the underlying manifold has a vanishing Kretschmann quadratic scalar invariant (i.e. whether the first principal invariant of the Riemann curvature tensor vanishes):

In[106]:= |

Out[106]= |

Determine whether the underlying manifold has a vanishing Chern-Pontryagin quadratic scalar invariant (i.e. whether the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number, vanishes):

In[107]:= |

Out[107]= |

Determine whether the underlying manifold has a vanishing Euler quadratic scalar invariant (i.e. whether the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic, vanishes):

In[108]:= |

Out[108]= |

Show the list of conditions required to guarantee that the underlying manifold is Riemann-flat (i.e. all components of the Riemann curvature tensor vanish):

In[109]:= |

Out[109]= |

Show the condition required to guarantee that the underlying manifold has a vanishing Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor vanishes):

In[110]:= |

Out[110]= |

Show the condition required to guarantee that the underlying manifold has a vanishing Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number, vanishes):

In[111]:= |

Out[111]= |

Show the condition required to guarantee that the underlying manifold has a vanishing Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic, vanishes):

In[112]:= |

Out[112]= |

Show the association of all possible index contractions of the Riemann curvature tensor:

In[113]:= |

Out[113]= |

Show the association of all possible index contractions of the Riemann curvature tensor, with all algebraic equivalences imposed:

In[114]:= |

Out[114]= |

Show the association of all possible index contractions of the Riemann curvature tensor, with all partial derivative operators left purely symbolic:

In[115]:= |

Out[115]= |

Show the association of all covariant derivatives (i.e. all derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor:

In[116]:= |

Out[116]= |

Show the association of all covariant derivatives (i.e. all derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor, with all algebraic equivalences imposed:

In[117]:= |

Out[117]= |

Show the association of all covariant derivatives (i.e. all derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor, with all partial derivative operators left purely symbolic:

In[118]:= |

Out[118]= |

Show the list of all Bianchi identities asserting the symmetries of the covariant derivative of the Riemann curvature tensor:

In[119]:= |

Out[119]= |

Show the list of all Bianchi identities asserting the symmetries of the covariant derivative of the Riemann curvature tensor, with all partial derivative operators left purely symbolic:

In[120]:= |

Out[120]= |

Show the number of dimensions of the underlying manifold represented by the Riemann curvature tensor:

In[121]:= |

Out[121]= |

Show the signature of the underlying manifold represented by the Riemann curvature tensor (with +1s representing positive eigenvalues and -1s representing negative eigenvalues of the metric tensor):

In[122]:= |

Out[122]= |

Determine whether the underlying manifold represented by the Riemann curvature tensor is Riemannian (i.e. all eigenvalues of the metric tensor have the same sign):

In[123]:= |

Out[123]= |

Determine whether the underlying manifold represented by the Riemann curvature tensor is pseudo-Riemannian (i.e. all eigenvalues are non-zero, but not all have the same sign):

In[124]:= |

Out[124]= |

Determine whether the underlying manifold represented by the Riemann curvature tensor is Lorentzian (i.e. all eigenvalues of the metric tensor have the same sign, except for one eigenvalue which has the opposite sign):

In[125]:= |

Out[125]= |

Show the list of conditions on the coordinates required to guarantee that the underlying manifold represented by the Riemann curvature tensor is Riemannian (i.e. all eigenvalues of the metric tensor are positive):

In[126]:= |

Out[126]= |

Show the list of conditions on the coordinates required to guarantee that the underlying manifold represented by the Riemann curvature tensor is pseudo-Riemannian (i.e. all eigenvalues of the metric tensor are non-zero):

In[127]:= |

Out[127]= |

Show the list of conditions on the coordinates required to guarantee that the underlying manifold represented by the Riemann curvature tensor is Lorentzian (i.e. the "time" eigenvalue is negative, and all other eigenvalues are positive):

In[128]:= |

Out[128]= |

Show the list of coordinate values that cause the Riemann curvature tensor to become singular:

In[129]:= |

Out[129]= |

Show the list of coordinate values that cause the Kretschmann quadratic scalar invariant (i.e. the first principal invariant of the Riemann curvature tensor) to become singular:

In[130]:= |

Out[130]= |

Show the list of coordinate values that cause the Chern-Pontryagin quadratic scalar invariant (i.e. the second principal invariant of the Riemann curvature tensor, whose integral is related to the instanton number) to become singular:

In[131]:= |

Out[131]= |

Show the list of coordinate values that cause the Euler quadratic scalar invariant (i.e. the third principal invariant of the Riemann curvature tensor, whose integral is related to the Euler characteristic) to become singular:

In[132]:= |

Out[132]= |

Compute the covariant form of the Riemann curvature tensor (with all indices lowered/covariant):

In[133]:= |

Out[133]= |

Compute the contravariant form of the Riemann curvature tensor (with all indices raised/contravariant):

In[134]:= |

Out[134]= |

Plot the so-called "monkey saddle" surface:

In[135]:= |

Out[135]= |

Construct the metric tensor for the monkey saddle surface:

In[136]:= |

Out[136]= |

In[137]:= |

Out[137]= |

Construct the Riemann curvature tensor for the monkey saddle surface:

In[138]:= |

Out[138]= |

In[139]:= |

Out[139]= |

Show the association of all covariant derivatives (i.e. all derivatives along tangent vectors of the underlying manifold) of the Riemann curvature tensor for the monkey saddle surface, with all algebraic equivalences imposed:

In[140]:= |

Out[140]= |

Compute the covariant form of the Riemann curvature tensor for the monkey saddle surface (with all indices lowered):

In[141]:= |

Out[141]= |

In[142]:= |

Out[142]= |

Show the association of all covariant derivatives of the Riemann curvature tensor for the monkey saddle surface (with all indices lowered), with all algebraic equivalences imposed:

In[143]:= |

Out[143]= |

- Riemann Tensor - Wolfram MathWorld
- The Wolfram Physics Project
- Stephen Wolfram's A New Kind of Science | Online
- Multiway System–Wolfram MathWorld

- 2.0.0 – 01 May 2023
- 1.0.0 – 06 October 2020

This work is licensed under a Creative Commons Attribution 4.0 International License