 The above equations are valid in flat spacetime.In curved space spacetime, things become mathematically more complicated since there is no straight line; this is generalized and replaced by a "geodesic" of the curved spacetime (the shortest length of curve between two points).For curved manifolds with a metric tensor , the metric provides the notion of arc length (see line element for details).