In geometry, the line element or length element can be informally thought of as a line segment associated with an infinitesimal displacement vector in a metric space. The length of the line element, which may be thought of as a differential arc length, is a function of the metric tensor and is denoted by d s {\displaystyle ds} .
Line elements are used in physics, especially in theories of gravitation (most notably general relativity) where spacetime is modelled as a curved Pseudo-Riemannian manifold with an appropriate metric tensor.[1]
The coordinate-independent definition of the square of the line element ds in an n-dimensional Riemannian or Pseudo Riemannian manifold (in physics usually a Lorentzian manifold) is the "square of the length" of an infinitesimal displacement d q {\displaystyle d\mathbf {q} } [2] (in pseudo Riemannian manifolds possibly negative) whose square root should be used for computing curve length: d s 2 = d q ⋅ d q = g ( d q , d q ) {\displaystyle ds^{2}=d\mathbf {q} \cdot d\mathbf {q} =g(d\mathbf {q} ,d\mathbf {q} )} where g is the metric tensor, · denotes inner product, and dq an infinitesimal displacement on the (pseudo) Riemannian manifold. By parametrizing a curve q ( λ ) {\displaystyle \mathbf {q} (\lambda )} , we can define the arc length of the curve length of the curve between q 1 = q ( λ 1 ) {\displaystyle \mathbf {q} _{1}=\mathbf {q} (\lambda _{1})} , and q 2 = q ( λ 2 ) {\displaystyle \mathbf {q} _{2}=\mathbf {q} (\lambda _{2})} as the integral:[3] s = ∫ q 1 q 2 | d s 2 | = ∫ λ 1 λ 2 d λ | g ( d q d λ , d q d λ ) | = ∫ λ 1 λ 2 d λ | g i j d q i d λ d q j d λ | . {\displaystyle s=\int _{\mathbf {q} _{1}}^{\mathbf {q} _{2}}{\sqrt {\left|ds^{2}\right|}}=\int _{\lambda _{1}}^{\lambda _{2}}d\lambda {\sqrt {\left|g\left({\frac {d\mathbf {q} }{d\lambda }},{\frac {d\mathbf {q} }{d\lambda }}\right)\right|}}=\int _{\lambda _{1}}^{\lambda _{2}}d\lambda {\sqrt {\left|g_{ij}{\frac {dq^{i}}{d\lambda }}{\frac {dq^{j}}{d\lambda }}\right|}}.}
To compute a sensible length of curves in pseudo Riemannian manifolds, it is best to assume that the infinitesimal displacements have the same sign everywhere. E.g. in physics the square of a line element along a timeline curve would (in the − + + + {\displaystyle -+++} signature convention) be negative and the negative square root of the square of the line element along the curve would measure the proper time passing for an observer moving along the curve. From this point of view, the metric also defines in addition to line element the surface and volume elements etc.
Since d q {\displaystyle d\mathbf {q} } is an arbitrary "square of the arc length", d s 2 {\displaystyle ds^{2}} completely defines the metric, and it is therefore usually best to consider the expression for d s 2 {\displaystyle ds^{2}} as a definition of the metric tensor itself, written in a suggestive but non tensorial notation: d s 2 = g {\displaystyle ds^{2}=g} This identification of the square of arc length d s 2 {\displaystyle ds^{2}} with the metric is even more easy to see in n-dimensional general curvilinear coordinates q = (q1, q2, q3, ..., qn), where it is written as a symmetric rank 2 tensor[3][4] coinciding with the metric tensor: d s 2 = g i j d q i d q j = g . {\displaystyle ds^{2}=g_{ij}dq^{i}dq^{j}=g.}
Here the indices i and j take values 1, 2, 3, ..., n and Einstein summation convention is used. Common examples of (pseudo) Riemannian spaces include three-dimensional space (no inclusion of time coordinates), and indeed four-dimensional spacetime.
Following are examples of how the line elements are found from the metric.
The simplest line element is in Cartesian coordinates - in which case the metric is just the Kronecker delta: g i j = δ i j {\displaystyle g_{ij}=\delta _{ij}} (here i, j = 1, 2, 3 for space) or in matrix form (i denotes row, j denotes column): [ g i j ] = ( 1 0 0 0 1 0 0 0 1 ) {\displaystyle [g_{ij}]={\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\end{pmatrix}}}
The general curvilinear coordinates reduce to Cartesian coordinates: ( q 1 , q 2 , q 3 ) = ( x , y , z ) ⇒ d r = ( d x , d y , d z ) {\displaystyle (q^{1},q^{2},q^{3})=(x,y,z)\,\Rightarrow \,d\mathbf {r} =(dx,dy,dz)} so d s 2 = g i j d q i d q j = d x 2 + d y 2 + d z 2 {\displaystyle ds^{2}=g_{ij}dq^{i}dq^{j}=dx^{2}+dy^{2}+dz^{2}}
For all orthogonal coordinates the metric is given by:[3] [ g i j ] = ( h 1 2 0 0 0 h 2 2 0 0 0 h 3 2 ) {\displaystyle [g_{ij}]={\begin{pmatrix}h_{1}^{2}&0&0\\0&h_{2}^{2}&0\\0&0&h_{3}^{2}\end{pmatrix}}} where h i = | ∂ r ∂ q i | {\displaystyle h_{i}=\left|{\frac {\partial \mathbf {r} }{\partial q^{i}}}\right|}
for i = 1, 2, 3 are scale factors, so the square of the line element is: d s 2 = h 1 2 ( d q 1 ) 2 + h 2 2 ( d q 2 ) 2 + h 3 2 ( d q 3 ) 2 {\displaystyle ds^{2}=h_{1}^{2}(dq^{1})^{2}+h_{2}^{2}(dq^{2})^{2}+h_{3}^{2}(dq^{3})^{2}}
Some examples of line elements in these coordinates are below.[2]
Given an arbitrary basis { b ^ i } {\displaystyle \{{\hat {b}}_{i}\}} of a space of dimension n {\displaystyle n} , the metric is defined as the inner product of the basis vectors. g i j = ⟨ b ^ i , b ^ j ⟩ {\displaystyle g_{ij}=\langle {\hat {b}}_{i},{\hat {b}}_{j}\rangle }
Where 1 ≤ i , j ≤ n {\displaystyle 1\leq i,j\leq n} and the inner product is with respect to the ambient space (usually its δ i j {\displaystyle \delta _{ij}} )
In a coordinate basis b ^ i = ∂ ∂ x i {\displaystyle {\hat {b}}_{i}={\frac {\partial }{\partial x^{i}}}}
The coordinate basis is a special type of basis that is regularly used in differential geometry.
The Minkowski metric is:[5][1] [ g i j ] = ± ( 1 0 0 0 0 − 1 0 0 0 0 − 1 0 0 0 0 − 1 ) {\displaystyle [g_{ij}]=\pm {\begin{pmatrix}1&0&0&0\\0&-1&0&0\\0&0&-1&0\\0&0&0&-1\\\end{pmatrix}}} where one sign or the other is chosen, both conventions are used. This applies only for flat spacetime. The coordinates are given by the 4-position: x = ( x 0 , x 1 , x 2 , x 3 ) = ( c t , r ) ⇒ d x = ( c d t , d r ) {\displaystyle \mathbf {x} =(x^{0},x^{1},x^{2},x^{3})=(ct,\mathbf {r} )\,\Rightarrow \,d\mathbf {x} =(cdt,d\mathbf {r} )}
so the line element is: d s 2 = ± ( c 2 d t 2 − d r ⋅ d r ) . {\displaystyle ds^{2}=\pm (c^{2}dt^{2}-d\mathbf {r} \cdot d\mathbf {r} ).}
In Schwarzschild coordinates coordinates are ( t , r , θ , ϕ ) {\displaystyle \left(t,r,\theta ,\phi \right)} , being the general metric of the form: [ g i j ] = ( − a ( r ) 2 0 0 0 0 b ( r ) 2 0 0 0 0 r 2 0 0 0 0 r 2 sin 2 θ ) {\displaystyle [g_{ij}]={\begin{pmatrix}-a(r)^{2}&0&0&0\\0&b(r)^{2}&0&0\\0&0&r^{2}&0\\0&0&0&r^{2}\sin ^{2}\theta \\\end{pmatrix}}}
(note the similitudes with the metric in 3D spherical polar coordinates).
so the line element is: d s 2 = − a ( r ) 2 d t 2 + b ( r ) 2 d r 2 + r 2 d θ 2 + r 2 sin 2 θ d ϕ 2 . {\displaystyle ds^{2}=-a(r)^{2}\,dt^{2}+b(r)^{2}\,dr^{2}+r^{2}\,d\theta ^{2}+r^{2}\sin ^{2}\theta \,d\phi ^{2}.}
The coordinate-independent definition of the square of the line element ds in spacetime is:[1] d s 2 = d x ⋅ d x = g ( d x , d x ) {\displaystyle ds^{2}=d\mathbf {x} \cdot d\mathbf {x} =g(d\mathbf {x} ,d\mathbf {x} )}
In terms of coordinates: d s 2 = g α β d x α d x β {\displaystyle ds^{2}=g_{\alpha \beta }dx^{\alpha }dx^{\beta }} where for this case the indices α and β run over 0, 1, 2, 3 for spacetime.
This is the spacetime interval - the measure of separation between two arbitrarily close events in spacetime. In special relativity it is invariant under Lorentz transformations. In general relativity it is invariant under arbitrary invertible differentiable coordinate transformations.