| |||||||||
In mathematics, in Riemannian geometry, the metric tensor is a tensor of rank 2 that is used to measure distance and angle in a space.
Once a local coordinate system <math> x^i <math> is chosen, the metric tensor appears as a matrix, conventionally notated as G. The notation <math>g_{ij}<math> is conventionally used for the components of the metric tensor (i.e. the elements of the matrix). In the following, we use the Einstein notation for implicit sums.
The length of a segment of a curve parameterized by t, from a to b, is defined as:
The angle <math> \theta <math> between two tangent vectors, <math>u=u^i{\partial\over \partial x_i}<math> and <math>v=v^i{\partial\over \partial x_i}<math>, is defined as:
\cos \theta = \frac{g_{ij}u^iv^j} {\sqrt{ \left| g_{ij}u^iu^j \right| \left| g_{ij}v^iv^j \right|}} <math>
The induced metric tensor for a smooth embedding of a manifold into Euclidean space can be computed by the formula
where <math>J <math> denotes the Jacobian of the the embedding and <math>J^T <math> its transpose.
Given a two-dimensional Euclidean metric tensor:
The length of a curve reduces to the familiar Calculus formula:
Polar coordinates: <math>(x^1, x^2)=(r, \theta)<math>
Cylindrical coordinates: <math>(x^1, x^2, x^3)=(r, \theta, z)<math>
Spherical coordinates: <math>(x^1, x^2, x^3)=(r, \phi, \theta)<math>