Metric tensor
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 basis is chosen, the metric tensor appears as a matrix, conventionally notated as G (see also metric). The notation gij is conventionally used for the components of the metric tensor. (i.e. the elements of the matrix.) (In the following, we use the Einstein summation convention.)
The length of a segment of a curve parameterized by t, from a to b, is defined as:
Example
Given a two-dimensional Euclidean metric tensor:
Some basic Euclidean metrics
Polar coordinates: