Metric tensor

In the mathematical field of differential geometry, a **metric tensor** is a type of function which takes as input a pair of tangent vectors v and w at a point of a surface (or higher dimensional differentiable manifold) and produces a real number scalar *g*(*v*, *w*) in a way that generalizes many of the familiar properties of the dot product of vectors in Euclidean space. In the same way as a dot product, metric tensors are used to define the length of and angle between tangent vectors. Through integration, the metric tensor allows one to define and compute the length of curves on the manifold.

A metric tensor is called *positive-definite* if it assigns a positive value *g*(*v*, *v*) > 0 to every nonzero vector v. A manifold equipped with a positive-definite metric tensor is known as a Riemannian manifold. On a Riemannian manifold, the curve connecting two points that (locally) has the smallest length is called a geodesic, and its length is the distance that a passenger in the manifold needs to traverse to go from one point to the other. Equipped with this notion of length, a Riemannian manifold is a metric space, meaning that it has a distance function *d*(*p*, *q*) whose value at a pair of points p and q is the distance from p to q. Conversely, the metric tensor itself is the derivative of the distance function (taken in a suitable manner). Thus the metric tensor gives the *infinitesimal* distance on the manifold.

While the notion of a metric tensor was known in some sense to mathematicians such as Carl Gauss from the early 19th century, it was not until the early 20th century that its properties as a tensor were understood by, in particular, Gregorio Ricci-Curbastro and Tullio Levi-Civita, who first codified the notion of a tensor. The metric tensor is an example of a tensor field.

The components of a metric tensor in a coordinate basis take on the form of a symmetric matrix whose entries transform covariantly under changes to the coordinate system. Thus a metric tensor is a covariant symmetric tensor. From the coordinate-independent point of view, a metric tensor field is defined to be a nondegenerate symmetric bilinear form on each tangent space that varies smoothly from point to point.

## Introduction

Carl Friedrich Gauss in his 1827 *Disquisitiones generales circa superficies curvas* (*General investigations of curved surfaces*) considered a surface parametrically, with the Cartesian coordinates x, y, and z of points on the surface depending on two auxiliary variables u and v. Thus a parametric surface is (in today's terms) a vector-valued function

r
→

(
u
,

v
# )

(

x
(
u
,

v
)
,

y
(
u
,

v
)
,

z
(
u
,

v
)

)

{\displaystyle \vec{r}(u,\,v) = \bigl( x(u,\,v),\, y(u,\,v),\, z(u,\,v) \bigr)}

depending on an ordered pair of real variables (*u*, *v*), and defined in an open set D in the uv-plane. One of the chief aims of Gauss's investigations was to deduce those features of the surface which could be described by a function which would remain unchanged if the surface underwent a transformation in space (such as bending the surface without stretching it), or a change in the particular parametric form of the same geometrical surface.

One natural such invariant quantity is the length of a curve drawn along the surface. Another is the angle between a pair of curves drawn along the surface and meeting at a common point. A third such quantity is the area of a piece of the surface. The study of these invariants of a surface led Gauss to introduce the predecessor of the modern notion of the metric tensor.

### Arc length

If the variables u and v are taken to depend on a third variable, t, taking values in an interval [*a*, *b*], then *r*→(*u*(*t*), *v*(*t*)) will trace out a parametric curve in parametric surface M. The arc length of that curve is given by the integral

s

=

∫
a
b

‖

d

d
t

r
→

(
u
(
t
)
,
v
(
t
)
)

‖

d
t

=

∫
a
b

u
′

(
t

)
2

r
→

u

⋅

r
→

u

2

u
′

(
t
)

v
′

(
t
)

r
→

u

⋅

r
→

v

v
′

(
t

)
2

r
→

v

⋅

r
→

v

d
t

,

{\displaystyle \begin{align}
 s &= \int\_a^b\left\|\frac{d}{dt}\vec{r}(u(t),v(t))\right\|\,dt \\[5pt]
 &= \int\_a^b \sqrt{u'(t)^2\,\vec{r}\_u\cdot\vec{r}\_u + 2u'(t)v'(t)\, \vec{r}\_u\cdot\vec{r}\_v + v'(t)^2\,\vec{r}\_v\cdot\vec{r}\_v}\, dt \,,
\end{align}}

where

‖
⋅
‖

{\displaystyle \left\| \cdot \right\| }

 represents the Euclidean norm. Here the chain rule has been applied, and the subscripts denote partial derivatives:

r
→

u

=

∂

r
→

∂
u

,

r
→

v

=

∂

r
→

∂
v

.

{\displaystyle \vec{r}\_u = \frac{\partial \vec{r}}{\partial u}\,, \quad \vec{r}\_v = \frac{\partial \vec{r}}{\partial v}\,.}

The integrand is the restriction to the curve of the square root of the (quadratic) differential

(
d
s

)
2

=
E

(
d
u

)
2

2
F

d
u

d
v
G

(
d
v

)
2

,

{\displaystyle (ds)^2 = E \,(du)^2 + 2F \,du\, dv + G\, (dv)^2 ,}

where

# E

r
→

u

⋅

r
→

u

,

# F

r
→

u

⋅

r
→

v

,

# G

r
→

v

⋅

r
→

v

.

{\displaystyle
 E = \vec r\_u \cdot \vec r\_u, \quad
 F = \vec r\_u \cdot \vec r\_v , \quad
 G = \vec r\_v \cdot \vec r\_v .
}

The quantity ds in (**1**) is called the line element, while *ds*2 is called the first fundamental form of M. Intuitively, it represents the principal part of the square of the displacement undergone by *r*→(*u*, *v*) when u is increased by du units, and v is increased by dv units.

Using matrix notation, the first fundamental form becomes

d

s
2

=

[

d
u

d
v

]

[

E

F

F

G

]

[

d
u

d
v

]

{\displaystyle ds^2 =
 \begin{bmatrix} du & dv \end{bmatrix}
 \begin{bmatrix} E & F \\ F & G \end{bmatrix}
 \begin{bmatrix} du \\ dv \end{bmatrix}
}

### Coordinate transformations

Suppose now that a different parameterization is selected, by allowing u and v to depend on another pair of variables *u*′ and *v*′. Then the analog of (**2**) for the new variables is

E
′

=

r
→

u
′

⋅

r
→

u
′

,

F
′

=

r
→

u
′

⋅

r
→

v
′

,

G
′

=

r
→

v
′

⋅

r
→

v
′

.

{\displaystyle
 E' = \vec r\_{u'} \cdot \vec r\_{u'}, \quad
 F' = \vec r\_{u'} \cdot \vec r\_{v'}, \quad
 G' = \vec r\_{v'} \cdot \vec r\_{v'}.
}

The chain rule relates *E*′, *F*′, and *G*′ to E, F, and G via the matrix equation

[

E
′

F
′

F
′

G
′

]

=

[

∂
u

∂

u
′

∂
u

∂

v
′

∂
v

∂

u
′

∂
v

∂

v
′

]

T

[

E

F

F

G

]

[

∂
u

∂

u
′

∂
u

∂

v
′

∂
v

∂

u
′

∂
v

∂

v
′

]

{\displaystyle \begin{bmatrix} E' & F' \\ F' & G' \end{bmatrix} =
 \begin{bmatrix}
 \frac{\partial u}{\partial u'} & \frac{\partial u}{\partial v'} \\
 \frac{\partial v}{\partial u'} & \frac{\partial v}{\partial v'}
 \end{bmatrix}^\mathsf{T}
 \begin{bmatrix} E & F \\ F & G \end{bmatrix}
 \begin{bmatrix}
 \frac{\partial u}{\partial u'} & \frac{\partial u}{\partial v'} \\
 \frac{\partial v}{\partial u'} & \frac{\partial v}{\partial v'}
 \end{bmatrix}
}

where the superscript T denotes the matrix transpose. The matrix with the coefficients E, F, and G arranged in this way therefore transforms by the Jacobian matrix of the coordinate change

# J

[

∂
u

∂

u
′

∂
u

∂

v
′

∂
v

∂

u
′

∂
v

∂

v
′

]

.

{\displaystyle
 J = \begin{bmatrix}
 \frac{\partial u}{\partial u'} & \frac{\partial u}{\partial v'} \\
 \frac{\partial v}{\partial u'} & \frac{\partial v}{\partial v'}
\end{bmatrix}\,.}

A matrix which transforms in this way is one kind of what is called a tensor. The matrix

[

E

F

F

G

]

{\displaystyle \begin{bmatrix} E & F \\ F & G \end{bmatrix}}

with the transformation law (**3**) is known as the metric tensor of the surface.

### Invariance of arclength under coordinate transformations

Ricci-Curbastro & Levi-Civita (1900) first observed the significance of a system of coefficients E, F, and G, that transformed in this way on passing from one system of coordinates to another. The upshot is that the first fundamental form (**1**) is *invariant* under changes in the coordinate system, and that this follows exclusively from the transformation properties of E, F, and G. Indeed, by the chain rule,

[

d
u

d
v

]

=

[

∂
u

∂

u
′

∂
u

∂

v
′

∂
v

∂

u
′

∂
v

∂

v
′

]

[

d

u
′

d

v
′

]

{\displaystyle \begin{bmatrix} du \\ dv \end{bmatrix} =
 \begin{bmatrix}
 \dfrac{\partial u}{\partial u'} & \dfrac{\partial u}{\partial v'} \\
 \dfrac{\partial v}{\partial u'} & \dfrac{\partial v}{\partial v'}
 \end{bmatrix}
 \begin{bmatrix} du' \\ dv' \end{bmatrix}
}

so that

d

s
2

=

[

d
u

d
v

]

[

E

F

F

G

]

[

d
u

d
v

]

=

[

d

u
′

d

v
′

]

[

∂
u

∂

u
′

∂
u

∂

v
′

∂
v

∂

u
′

∂
v

∂

v
′

]

T

[

E

F

F

G

]

[

∂
u

∂

u
′

∂
u

∂

v
′

∂
v

∂

u
′

∂
v

∂

v
′

]

[

d

u
′

d

v
′

]

=

[

d

u
′

d

v
′

]

[

E
′

F
′

F
′

G
′

]

[

d

u
′

d

v
′

]

=
(
d

s
′

)
2

.

{\displaystyle \begin{align}
 ds^2
 &=
 \begin{bmatrix} du & dv \end{bmatrix}
 \begin{bmatrix} E & F \\ F & G \end{bmatrix}
 \begin{bmatrix} du \\ dv \end{bmatrix} \\[6pt]
 &=
 \begin{bmatrix} du' & dv' \end{bmatrix}
 \begin{bmatrix}
 \dfrac{\partial u}{\partial u'} & \dfrac{\partial u}{\partial v'} \\[6pt]
 \dfrac{\partial v}{\partial u'} & \dfrac{\partial v}{\partial v'}
 \end{bmatrix}^\mathsf{T}
 \begin{bmatrix} E & F \\ F & G \end{bmatrix}
 \begin{bmatrix}
 \dfrac{\partial u}{\partial u'} & \dfrac{\partial u}{\partial v'} \\[6pt]
 \dfrac{\partial v}{\partial u'} & \dfrac{\partial v}{\partial v'}
 \end{bmatrix}
 \begin{bmatrix} du' \\ dv' \end{bmatrix} \\[6pt]
 &=
 \begin{bmatrix} du' & dv' \end{bmatrix}
 \begin{bmatrix} E' & F' \\ F' & G' \end{bmatrix}
 \begin{bmatrix} du' \\ dv' \end{bmatrix}\\[6pt]
 &= (ds')^2 \,.
\end{align}}

### Length and angle

Another interpretation of the metric tensor, also considered by Gauss, is that it provides a way in which to compute the length of tangent vectors to the surface, as well as the angle between two tangent vectors. In contemporary terms, the metric tensor allows one to compute the dot product of tangent vectors in a manner independent of the parametric description of the surface. Any tangent vector at a point of the parametric surface M can be written in the form

p

=

p
1

r
→

u

p
2

r
→

v

{\displaystyle \mathbf{p} = p\_1\vec{r}\_u + p\_2\vec{r}\_v}

for suitable real numbers *p*1 and *p*2. If two tangent vectors are given:

a

=

a
1

r
→

u

a
2

r
→

v

b

=

b
1

r
→

u

b
2

r
→

v

{\displaystyle \begin{align}
 \mathbf{a} &= a\_1\vec{r}\_u + a\_2\vec{r}\_v \\
 \mathbf{b} &= b\_1\vec{r}\_u + b\_2\vec{r}\_v
\end{align}}

then using the bilinearity of the dot product,

a

⋅

b

=

a
1

b
1

r
→

u

⋅

r
→

u

a
1

b
2

r
→

u

⋅

r
→

v

b
1

a
2

r
→

v

⋅

r
→

u

a
2

b
2

r
→

v

⋅

r
→

v

=

a
1

b
1

E

a
1

b
2

F

b
1

a
2

F

a
2

b
2

G

=

[

a
1

a
2

]

[

E

F

F

G

]

[

b
1

b
2

]

.

{\displaystyle \begin{align}
 \mathbf{a} \cdot \mathbf{b}
 &= a\_1 b\_1 \vec{r}\_u\cdot\vec{r}\_u + a\_1b\_2 \vec{r}\_u\cdot\vec{r}\_v + b\_1a\_2 \vec{r}\_v\cdot\vec{r}\_u + a\_2 b\_2 \vec{r}\_v\cdot\vec{r}\_v \\[8pt]
 &= a\_1 b\_1 E + a\_1b\_2 F + b\_1a\_2 F + a\_2b\_2G \\[8pt]
 &= \begin{bmatrix} a\_1 & a\_2 \end{bmatrix}
 \begin{bmatrix} E & F \\ F & G \end{bmatrix}
 \begin{bmatrix} b\_1 \\ b\_2 \end{bmatrix} \,.
\end{align}}

This is plainly a function of the four variables *a*1, *b*1, *a*2, and *b*2. It is more profitably viewed, however, as a function that takes a pair of arguments **a** = [*a*1 *a*2] and **b** = [*b*1 *b*2] which are vectors in the uv-plane. That is, put

g
(

a

,

b

# )

a
1

b
1

E

a
1

b
2

F

b
1

a
2

F

a
2

b
2

G

.

{\displaystyle g(\mathbf{a}, \mathbf{b}) = a\_1b\_1 E + a\_1b\_2 F + b\_1a\_2 F + a\_2b\_2G \,.}

This is a symmetric function in **a** and **b**, meaning that

g
(

a

,

b

# )
g
(

b

,

a

)

.

{\displaystyle g(\mathbf{a}, \mathbf{b}) = g(\mathbf{b}, \mathbf{a})\,.}

It is also bilinear, meaning that it is linear in each variable **a** and **b** separately. That is,

g

(

λ

a

μ

a

′

,

b

)

=
λ
g
(

a

,

b

)
μ
g

(

a

′

,

b

)

,

and

g

(

a

,
λ

b

μ

b

′

)

=
λ
g
(

a

,

b

)
μ
g

(

a

,

b

′

)

{\displaystyle \begin{align}
 g\left(\lambda\mathbf{a} + \mu\mathbf{a}', \mathbf{b}\right) &= \lambda g(\mathbf{a}, \mathbf{b}) + \mu g\left(\mathbf{a}', \mathbf{b}\right),\quad\text{and} \\
 g\left(\mathbf{a}, \lambda\mathbf{b} + \mu\mathbf{b}'\right) &= \lambda g(\mathbf{a}, \mathbf{b}) + \mu g\left(\mathbf{a}, \mathbf{b}'\right)
\end{align}}

for any vectors **a**, **a**′, **b**, and **b**′ in the uv plane, and any real numbers μ and λ.

In particular, the length of a tangent vector **a** is given by

‖

a

‖

=

g
(

a

,

a

)

{\displaystyle \left\| \mathbf{a} \right\| = \sqrt{g(\mathbf{a}, \mathbf{a})}}

and the angle θ between two vectors **a** and **b** is calculated by

cos
⁡
(
θ
# )

g
(

a

,

b

)

‖

a

‖

‖

b

‖

.

### Area

The surface area is another numerical quantity which should depend only on the surface itself, and not on how it is parameterized. If the surface M is parameterized by the function *r*→(*u*, *v*) over the domain D in the uv-plane, then the surface area of M is given by the integral

∬
D

r
→

u

×

r
→

v

d
u

d
v

{\displaystyle \iint\_D \left|\vec{r}\_u \times \vec{r}\_v\right|\,du\,dv}

where × denotes the cross product, and the absolute value denotes the length of a vector in Euclidean space. By Lagrange's identity for the cross product, the integral can be written

∬
D

(

r
→

u

⋅

r
→

u

)

(

r
→

v

⋅

r
→

v

)

−

(

r
→

u

⋅

r
→

v

)

2

d
u

d
v

=

∬
D

E
G
−

F
2

d
u

d
v

=

∬
D

det

[

E

F

F

G

]

d
u

d
v

{\displaystyle \begin{align}
 &\iint\_D \sqrt{\left(\vec{r}\_u\cdot\vec{r}\_u\right) \left(\vec{r}\_v\cdot\vec{r}\_v\right) - \left(\vec{r}\_u\cdot\vec{r}\_v\right)^2}\,du\,dv \\[5pt]
 ={} &\iint\_D \sqrt{EG - F^2}\,du\,dv\\[5pt]
 ={} &\iint\_D \sqrt{\det \begin{bmatrix} E & F \\ F & G \end{bmatrix}}\, du\, dv
\end{align}}

where det is the determinant.

## Definition

Let M be a smooth manifold of dimension n; for instance a surface (in the case *n* = 2) or hypersurface in the Cartesian space **ℝ***n* + 1. At each point *p* ∈ *M* there is a vector space T*p**M*, called the tangent space, consisting of all tangent vectors to the manifold at the point p. A metric tensor at p is a function *g**p*(*X**p*, *Y**p*) which takes as inputs a pair of tangent vectors *X**p* and *Y**p* at p, and produces as an output a real number (scalar), so that the following conditions are satisfied:

* *g**p* is bilinear. A function of two vector arguments is bilinear if it is linear separately in each argument. Thus if *U**p*, *V**p*, *Y**p* are three tangent vectors at p and a and b are real numbers, then

g
p

(

a

U
p

b

V
p

,

Y
p

)

=
a

g
p

(

U
p

,

Y
p

)

b

g
p

(

V
p

,

Y
p

)

,

and

g
p

(

Y
p

,
a

U
p

b

V
p

)

=
a

g
p

(

Y
p

,

U
p

)

b

g
p

(

Y
p

,

V
p

)

.

{\displaystyle \begin{align}
 g\_p\left(aU\_p + bV\_p, Y\_p\right) &= ag\_p\left(U\_p, Y\_p\right) + bg\_p\left(V\_p, Y\_p\right) \,, \quad \text{and} \\
 g\_p\left(Y\_p, aU\_p + bV\_p\right) &= ag\_p\left(Y\_p, U\_p\right) + bg\_p\left(Y\_p, V\_p\right) \,.
\end{align}}
* *g**p* is symmetric. A function of two vector arguments is symmetric provided that for all vectors *X**p* and *Y**p*,

g
p

(

X
p

,

Y
p

)

=

g
p

(

Y
p

,

X
p

)

.

{\displaystyle g\_p\left(X\_p, Y\_p\right) = g\_p\left(Y\_p, X\_p\right)\,.}
* *g**p* is nondegenerate. A bilinear function is nondegenerate provided that, for every tangent vector *X**p* ≠ 0, the function

Y
p

↦

g
p

(

X
p

,

Y
p

)

{\displaystyle Y\_p\mapsto g\_p\left(X\_p,Y\_p\right)}

obtained by holding *X**p* constant and allowing *Y**p* to vary is not identically zero. That is, for every *X**p* ≠ 0 there exists a *Y**p* such that *g**p*(*X**p*, *Y**p*) ≠ 0.
A metric tensor field g on M assigns to each point p of M a metric tensor *g**p* in the tangent space at p in a way that varies smoothly with p. More precisely, given any open subset U of manifold M and any (smooth) vector fields X and Y on U, the real function

g
(
X
,
Y
)
(
p
# )

g
p

(

X
p

,

Y
p

)

{\displaystyle g(X, Y)(p) = g\_p\left(X\_p, Y\_p\right)}

is a smooth function of p.

## Components of the metric

This section assumes some familiarity with coordinate vectors.
The components of the metric in any basis of vector fields, or frame, **f** = (*X*1, ..., *X**n*) are given by

g

i
j

[

f

# ]
g

(

X
i

,

X
j

)

.

{\displaystyle g\_{ij}[\mathbf{f}] = g\left(X\_i, X\_j\right).}

The *n*2 functions *g**ij*[**f**] form the entries of an *n* × *n* symmetric matrix, *G*[**f**]. If

# i
1

n

v
i

X
i

,

# i
1

n

w
i

X
i

{\displaystyle v = \sum\_{i=1}^n v^iX\_i \,, \quad w = \sum\_{i=1}^n w^iX\_i}

are two vectors at *p* ∈ *U*, then the value of the metric applied to v and w is determined by the coefficients (**4**) by bilinearity:

g
(
v
,
w
# )

∑

i
,
# j
1

n

v
i

w
j

g

(

X
i

,

X
j

)

=

∑

i
,
# j
1

n

v
i

w
j

g

i
j

[

f

]

{\displaystyle g(v, w) = \sum\_{i,j=1}^n v^iw^jg\left(X\_i,X\_j\right) = \sum\_{i,j=1}^n v^iw^jg\_{ij}[\mathbf{f}]}

Denoting the matrix (*g**ij*[**f**]) by *G*[**f**] and arranging the components of the vectors v and w into column vectors **v**[**f**] and **w**[**f**],

g
(
v
,
w
# )

v

[

f

]

T

G
[

f

]

w

[

f

# ]

w

[

f

]

T

G
[

f

]

v

[

f

]

{\displaystyle g(v,w) = \mathbf{v}[\mathbf{f}]^\mathsf{T} G[\mathbf{f}] \mathbf{w}[\mathbf{f}] = \mathbf{w}[\mathbf{f}]^\mathsf{T} G[\mathbf{f}]\mathbf{v}[\mathbf{f}]}

where **v**[**f**]T and **w**[**f**]T denote the transpose of the vectors **v**[**f**] and **w**[**f**], respectively. Under a change of basis of the form

f

↦

f

′

=

(

∑
k

X
k

a

k
1

,
…
,

∑
k

X
k

a

k
n

)

=

f

A

{\displaystyle \mathbf{f}\mapsto \mathbf{f}' = \left(\sum\_k X\_ka\_{k1},\dots,\sum\_k X\_ka\_{kn}\right) = \mathbf{f}A}

for some invertible *n* × *n* matrix *A* = (*a**ij*), the matrix of components of the metric changes by A as well. That is,

G
[

f

A
# ]

A

T

G
[

f

]
A

{\displaystyle G[\mathbf{f}A] = A^\mathsf{T} G[\mathbf{f}]A}

or, in terms of the entries of this matrix,

g

i
j

[

f

A
# ]

∑

k
,
# l
1

n

a

k
i

g

k
l

[

f

]

a

l
j

.

{\displaystyle g\_{ij}[\mathbf{f}A] = \sum\_{k,l=1}^n a\_{ki}g\_{kl}[\mathbf{f}]a\_{lj} \, .}

For this reason, the system of quantities *g**ij*[**f**] is said to transform covariantly with respect to changes in the frame **f**.

### Metric in coordinates

A system of n real-valued functions (*x*1, ..., *x**n*), giving a local coordinate system on an open set U in M, determines a basis of vector fields on U

f

=

(

X
1

=

∂

∂

x
1

,
…
,

X
n

=

∂

∂

x
n

)

.

{\displaystyle \mathbf{f} = \left(X\_1 = \frac{\partial}{\partial x^1}, \dots, X\_n = \frac{\partial}{\partial x^n}\right) \,.}

The metric g has components relative to this frame given by

g

i
j

[

f

]

=
g

(

∂

∂

x
i

,

∂

∂

x
j

)

.

{\displaystyle g\_{ij}\left[\mathbf{f}\right] = g\left(\frac{\partial}{\partial x^i}, \frac{\partial}{\partial x^j}\right) \,.}

Relative to a new system of local coordinates, say

y
i

=

y
i

(

x
1

,

x
2

,
…
,

x
n

)
,

# i
1
,
2
,
…
,
n

{\displaystyle y^i = y^i(x^1, x^2, \dots, x^n),\quad i=1,2,\dots,n}

the metric tensor will determine a different matrix of coefficients,

g

i
j

[

f

′

]

=
g

(

∂

∂

y
i

,

∂

∂

y
j

)

.

{\displaystyle g\_{ij}\left[\mathbf{f}'\right] = g\left(\frac{\partial}{\partial y^i}, \frac{\partial}{\partial y^j}\right).}

This new system of functions is related to the original *g**ij*(**f**) by means of the chain rule

∂

∂

y
i

=

∑

# k
1

n

∂

x
k

∂

y
i

∂

∂

x
k

{\displaystyle \frac{\partial}{\partial y^i} = \sum\_{k=1}^n \frac{\partial x^k}{\partial y^i}\frac{\partial}{\partial x^k}}

so that

g

i
j

[

f

′

]

=

∑

k
,
# l
1

n

∂

x
k

∂

y
i

g

k
l

[

f

]

∂

x
l

∂

y
j

.

{\displaystyle g\_{ij}\left[\mathbf{f}'\right] = \sum\_{k,l=1}^n \frac{\partial x^k}{\partial y^i} g\_{kl}\left[\mathbf{f}\right]\frac{\partial x^l}{\partial y^j}.}

Or, in terms of the matrices *G*[**f**] = (*g**ij*[**f**]) and *G*[**f**′] = (*g**ij*[**f**′]),

G

[

f

′

]

=

(

(
D
y

)

−
1

)

T

G

[

f

]

(
D
y

)

−
1

{\displaystyle G\left[\mathbf{f}'\right] = \left((Dy)^{-1}\right)^\mathsf{T} G\left[\mathbf{f}\right] (Dy)^{-1}}

where Dy denotes the Jacobian matrix of the coordinate change.

### Signature of a metric

Main articles: Metric signature
Associated to any metric tensor is the quadratic form defined in each tangent space by

q
m

(

X
m

# )

g
m

(

X
m

,

X
m

)

,

X
m

∈

T
m

M
.

{\displaystyle q\_m(X\_m) = g\_m(X\_m,X\_m) \,, \quad X\_m\in T\_mM.}

If *q**m* is positive for all non-zero *X**m*, then the metric is positive-definite at m. If the metric is positive-definite at every *m* ∈ *M*, then g is called a Riemannian metric. More generally, if the quadratic forms *q**m* have constant signature independent of m, then the signature of g is this signature, and g is called a pseudo-Riemannian metric. If M is connected, then the signature of qm does not depend on m.

By Sylvester's law of inertia, a basis of tangent vectors *X**i* can be chosen locally so that the quadratic form diagonalizes in the following manner

q
m

(

∑
i

ξ
i

X
i

)

=

(

ξ
1

)

2

(

ξ
2

)

2

⋯

(

ξ
p

)

2

−

(

ξ

p
1

)

2

−
⋯
−

(

ξ
n

)

2

{\displaystyle q\_m\left(\sum\_i\xi^iX\_i\right) = \left(\xi^1\right)^2+\left(\xi^2\right)^2+\cdots+\left(\xi^p\right)^2 - \left(\xi^{p+1}\right)^2-\cdots-\left(\xi^n\right)^2}

for some p between 1 and n. Any two such expressions of q (at the same point m of M) will have the same number p of positive signs. The signature of g is the pair of integers (*p*, *n* − *p*), signifying that there are p positive signs and *n* − *p* negative signs in any such expression. Equivalently, the metric has signature (*p*, *n* − *p*) if the matrix *g**ij* of the metric has p positive and *n* − *p* negative eigenvalues.

Certain metric signatures which arise frequently in applications are:

* If g has signature (*n*, 0), then g is a Riemannian metric, and M is called a Riemannian manifold. Otherwise, g is a pseudo-Riemannian metric, and M is called a pseudo-Riemannian manifold (the term semi-Riemannian is also used).
* If M is four-dimensional with signature (1, 3) or (3, 1), then the metric is called Lorentzian. More generally, a metric tensor in dimension n other than 4 of signature (1, *n* − 1) or (*n* − 1, 1) is sometimes also called Lorentzian.
* If M is 2*n*-dimensional and g has signature (*n*, *n*), then the metric is called ultrahyperbolic.

### Inverse metric

Let **f** = (*X*1, ..., *X**n*) be a basis of vector fields, and as above let *G*[**f**] be the matrix of coefficients

g

i
j

[

f

# ]
g

(

X
i

,

X
j

)

.

{\displaystyle g\_{ij}[\mathbf{f}] = g\left(X\_i,X\_j\right) \,.}

One can consider the inverse matrix *G*[**f**]−1, which is identified with the **inverse metric** (or *conjugate* or *dual metric*). The inverse metric satisfies a transformation law when the frame **f** is changed by a matrix A via

G
[

f

A

]

−
1

=

A

−
1

G
[

f

]

−
1

(

A

−
1

)

T

.

{\displaystyle G[\mathbf{f}A]^{-1} = A^{-1}G[\mathbf{f}]^{-1}\left(A^{-1}\right)^\mathsf{T}.}

The inverse metric transforms *contravariantly*, or with respect to the inverse of the change of basis matrix A. Whereas the metric itself provides a way to measure the length of (or angle between) vector fields, the inverse metric supplies a means of measuring the length of (or angle between) covector fields; that is, fields of linear functionals.

To see this, suppose that α is a covector field. To wit, for each point p, α determines a function *α**p* defined on tangent vectors at p so that the following linearity condition holds for all tangent vectors *X**p* and *Y**p*, and all real numbers a and b:

α
p

(

a

X
p

b

Y
p

)

=
a

α
p

(

X
p

)

b

α
p

(

Y
p

)

.

{\displaystyle \alpha\_p \left(aX\_p + bY\_p\right) = a\alpha\_p \left(X\_p\right) + b\alpha\_p \left(Y\_p\right)\,.}

As p varies, α is assumed to be a smooth function in the sense that

p
↦

α
p

(

X
p

)

{\displaystyle p \mapsto \alpha\_p \left(X\_p\right)}

is a smooth function of p for any smooth vector field X.

Any covector field α has components in the basis of vector fields **f**. These are determined by

α
i

=
α

(

X
i

)

,

# i
1
,
2
,
…
,
n

.

{\displaystyle \alpha\_i = \alpha \left(X\_i\right)\,,\quad i = 1, 2, \dots, n\,.}

Denote the row vector of these components by

α
[

f

# ]

[

α
1

α
2

…

α
n

]

.

{\displaystyle \alpha[\mathbf{f}] = \big\lbrack\begin{array}{cccc} \alpha\_1 & \alpha\_2 & \dots & \alpha\_n \end{array}\big\rbrack \,.}

Under a change of **f** by a matrix A, *α*[**f**] changes by the rule

α
[

f

A
# ]
α
[

f

]
A

.

{\displaystyle \alpha[\mathbf{f}A] = \alpha[\mathbf{f}]A \,.}

That is, the row vector of components *α*[**f**] transforms as a *covariant* vector.

For a pair α and β of covector fields, define the inverse metric applied to these two covectors by

g
~

(
α
,
β
# )
α
[

f

]
G
[

f

]

−
1

β
[

f

]

T

.

{\displaystyle \tilde{g}(\alpha,\beta) = \alpha[\mathbf{f}]G[\mathbf{f}]^{-1}\beta[\mathbf{f}]^\mathsf{T}.}

The resulting definition, although it involves the choice of basis **f**, does not actually depend on **f** in an essential way. Indeed, changing basis to **f***A* gives

α
[

f

A
]
G
[

f

A

]

−
1

β
[

f

A

]

T

=

(

α
[

f

]
A

)

(

A

−
1

G
[

f

]

−
1

(

A

−
1

)

T

)

(

A

T

β
[

f

]

T

)

=

α
[

f

]
G
[

f

]

−
1

β
[

f

]

T

.

{\displaystyle \begin{align}
 &\alpha[\mathbf{f}A] G[\mathbf{f}A]^{-1} \beta[\mathbf{f}A]^\mathsf{T} \\
 ={} &\left(\alpha[\mathbf{f}]A\right) \left(A^{-1}G[\mathbf{f}]^{-1} \left(A^{-1}\right)^\mathsf{T}\right) \left(A^\mathsf{T}\beta[\mathbf{f}]^\mathsf{T}\right) \\
 ={} &\alpha[\mathbf{f}] G[\mathbf{f}]^{-1} \beta[\mathbf{f}]^\mathsf{T}.
\end{align}
}

So that the right-hand side of equation (**6**) is unaffected by changing the basis **f** to any other basis **f***A* whatsoever. Consequently, the equation may be assigned a meaning independently of the choice of basis. The entries of the matrix *G*[**f**] are denoted by *g**ij*, where the indices i and j have been raised to indicate the transformation law (**5**).

### Raising and lowering indices

See also: Raising and lowering indices
In a basis of vector fields **f** = (*X*1, ..., *X**n*), any smooth tangent vector field X can be written in the form

# X

v
1

[

f

]

X
1

v
2

[

f

]

X
2

⋯

v
n

[

f

]

X
n

=

f

[

v
1

[

f

]

v
2

[

f

]

⋮

v
n

[

f

]

]

=

f

v
[

f

]

{\displaystyle X =
 v^1[\mathbf{f}]X\_1 + v^2 [\mathbf{f}]X\_2 + \dots + v^n[\mathbf{f}]X\_n =
 \mathbf{f} \begin{bmatrix}v^1[\mathbf{f}] \\ v^2[\mathbf{f}] \\ \vdots \\ v^n[\mathbf{f}]\end{bmatrix} =
 \mathbf{f} v[\mathbf{f}]
}

for some uniquely determined smooth functions *v*1, ..., *v**n*. Upon changing the basis **f** by a nonsingular matrix A, the coefficients *v**i* change in such a way that equation (**7**) remains true. That is,

# X

f
A

v
[

f
A

# ]

f

v
[

f

]

.

{\displaystyle X = \mathbf{fA}v[\mathbf{fA}] = \mathbf{f}v[\mathbf{f}]\,.}

Consequently, *v*[**f***A*] = *A*−1*v*[**f**]. In other words, the components of a vector transform *contravariantly* (that is, inversely or in the opposite way) under a change of basis by the nonsingular matrix A. The contravariance of the components of *v*[**f**] is notationally designated by placing the indices of *v**i*[**f**] in the upper position.

A frame also allows covectors to be expressed in terms of their components. For the basis of vector fields **f** = (*X*1, ..., *X**n*) define the dual basis to be the linear functionals (*θ*1[**f**], ..., *θ**n*[**f**]) such that

θ
i

[

f

]
(

X
j

# )

{

1

i
f

# i
j

0

i
f

i
≠
j
.

{\displaystyle \theta^i[\mathbf{f}](X\_j) = \begin{cases} 1 & \mathrm{if}\ i=j\\ 0&\mathrm{if}\ i\not=j.\end{cases}}

That is, *θ**i*[**f**](*X**j*) = *δ**j**i*, the Kronecker delta. Let

θ
[

f

# ]

[

θ
1

[

f

]

θ
2

[

f

]

⋮

θ
n

[

f

]

]

.

{\displaystyle \theta[\mathbf{f}] = \begin{bmatrix}\theta^1[\mathbf{f}] \\ \theta^2[\mathbf{f}] \\ \vdots \\ \theta^n[\mathbf{f}]\end{bmatrix}.}

Under a change of basis **f** ↦ **f***A* for a nonsingular matrix *A*, *θ*[**f**] transforms via

θ
[

f

A
# ]

A

−
1

θ
[

f

]
.

{\displaystyle \theta[\mathbf{f}A] = A^{-1}\theta[\mathbf{f}].}

Any linear functional α on tangent vectors can be expanded in terms of the dual basis θ

α

=

a
1

[

f

]

θ
1

[

f

]

a
2

[

f

]

θ
2

[

f

]
⋯

a
n

[

f

]

θ
n

[

f

]

=

[

a
1

[

f

]

a
2

[

f

]

…

a
n

[

f

]

]

θ
[

f

]

=
a
[

f

]
θ
[

f

]

{\displaystyle \begin{align}
 \alpha &= a\_1[\mathbf{f}] \theta^1[\mathbf{f}] + a\_2[\mathbf{f}] \theta^2[\mathbf{f}] + \cdots + a\_n[\mathbf{f}] \theta^n[\mathbf{f}] \\[8pt]
 &= \big\lbrack\begin{array}{cccc}a\_1[\mathbf{f}] & a\_2[\mathbf{f}] & \dots & a\_n[\mathbf{f}]\end{array}\big\rbrack \theta[\mathbf{f}] \\[8pt]
 &= a[\mathbf{f}] \theta[\mathbf{f}]
\end{align}}

where *a*[**f**] denotes the row vector [ *a*1[**f**] ... *a**n*[**f**] ]. The components *a**i* transform when the basis **f** is replaced by **f***A* in such a way that equation (**8**) continues to hold. That is,

# α
a
[

f

A
]
θ
[

f

A
# ]
a
[

f

]
θ
[

f

]

{\displaystyle \alpha = a[\mathbf{f}A]\theta[\mathbf{f}A] = a[\mathbf{f}]\theta[\mathbf{f}]}

whence, because *θ*[**f***A*] = *A*−1*θ*[**f**], it follows that *a*[**f***A*] = *a*[**f**]*A*. That is, the components a transform *covariantly* (by the matrix A rather than its inverse). The covariance of the components of *a*[**f**] is notationally designated by placing the indices of *a**i*[**f**] in the lower position.

Now, the metric tensor gives a means to identify vectors and covectors as follows. Holding *X**p* fixed, the function

g
p

(

X
p

,
−
)
:

Y
p

↦

g
p

(

X
p

,

Y
p

)

{\displaystyle g\_p(X\_p, -) : Y\_p \mapsto g\_p(X\_p, Y\_p)}

of tangent vector *Y**p* defines a linear functional on the tangent space at p. This operation takes a vector *X**p* at a point p and produces a covector *g**p*(*X**p*, −). In a basis of vector fields **f**, if a vector field X has components *v*[**f**], then the components of the covector field *g*(*X*, −) in the dual basis are given by the entries of the row vector

a
[

f

# ]
v
[

f

]

T

G
[

f

]
.

{\displaystyle a[\mathbf{f}] = v[\mathbf{f}]^\mathsf{T} G[\mathbf{f}].}

Under a change of basis **f** ↦ **f***A*, the right-hand side of this equation transforms via

v
[

f

A

]

T

G
[

f

A
# ]
v
[

f

]

T

(

A

−
1

)

T

A

T

G
[

f

]
# A
v
[

f

]

T

G
[

f

]
A

{\displaystyle
 v[\mathbf{f}A]^\mathsf{T} G[\mathbf{f}A] =
 v[\mathbf{f}]^\mathsf{T} \left(A^{-1}\right)^\mathsf{T} A^\mathsf{T} G[\mathbf{f}]A =
 v[\mathbf{f}]^\mathsf{T} G[\mathbf{f}]A
}

so that *a*[**f***A*] = *a*[**f**]*A*: a transforms covariantly. The operation of associating to the (contravariant) components of a vector field *v*[**f**] = [ *v*1[**f**] *v*2[**f**] ... *v**n*[**f**] ]T the (covariant) components of the covector field *a*[**f**] = [ *a*1[**f**] *a*2[**f**] … *a**n*[**f**] ], where

a
i

[

f

# k
1

n

v
k

[

f

]

g

k
i

[

f

]

{\displaystyle a\_i[\mathbf{f}] = \sum\_{k=1}^n v^k[\mathbf{f}]g\_{ki}[\mathbf{f}]}

is called **lowering the index**.

To *raise the index*, one applies the same construction but with the inverse metric instead of the metric. If *a*[**f**] = [ *a*1[**f**] *a*2[**f**] ... *a**n*[**f**] ] are the components of a covector in the dual basis *θ*[**f**], then the column vector

v
[

f

# ]

G

−
1

[

f

]
a
[

f

]

T

{\displaystyle v[\mathbf{f}] = G^{-1}[\mathbf{f}]a[\mathbf{f}]^\mathsf{T}}

has components which transform contravariantly:

v
[

f

A
# ]

A

−
1

v
[

f

]
.

{\displaystyle v[\mathbf{f}A] = A^{-1}v[\mathbf{f}].}

Consequently, the quantity *X* = **f***v*[**f**] does not depend on the choice of basis **f** in an essential way, and thus defines a vector field on M. The operation (**9**) associating to the (covariant) components of a covector *a*[**f**] the (contravariant) components of a vector *v*[**f**] given is called **raising the index**. In components, (**9**) is

v
i

[

f

# k
1

n

g

i
k

[

f

]

a
k

[

f

]
.

{\displaystyle v^i[\mathbf{f}] = \sum\_{k=1}^n g^{ik}[\mathbf{f}] a\_k[\mathbf{f}].}

### Induced metric

Let U be an open set in **ℝ***n*, and let φ be a continuously differentiable function from U into the Euclidean space **ℝ***m*, where *m* > *n*. The mapping φ is called an immersion if its differential is injective at every point of U. The image of φ is called an immersed submanifold. More specifically, for *m*=3, which means that the ambient Euclidean space is **ℝ***3*, the induced metric tensor is called the first fundamental form.

Suppose that φ is an immersion onto the submanifold *M* ⊂ **R***m*. The usual Euclidean dot product in **ℝ***m* is a metric which, when restricted to vectors tangent to M, gives a means for taking the dot product of these tangent vectors. This is called the **induced metric**.

Suppose that v is a tangent vector at a point of U, say

# v

v
1

e

1

⋯

v
n

e

n

{\displaystyle v = v^1\mathbf{e}\_1 + \dots + v^n\mathbf{e}\_n}

where **e***i* are the standard coordinate vectors in **ℝ***n*. When φ is applied to U, the vector v goes over to the vector tangent to M given by

φ
∗

(
v

# i
1

n

∑

# a
1

m

v
i

∂

φ
a

∂

x
i

e

a

.

{\displaystyle \varphi\_\*(v) = \sum\_{i=1}^n \sum\_{a=1}^m v^i\frac{\partial \varphi^a}{\partial x^i}\mathbf{e}\_a\,.}

(This is called the pushforward of v along φ.) Given two such vectors, v and w, the induced metric is defined by

g
(
v
,
w
# )

φ
∗

(
v
)
⋅

φ
∗

(
w
)
.

{\displaystyle g(v,w) = \varphi\_\*(v)\cdot \varphi\_\*(w).}

It follows from a straightforward calculation that the matrix of the induced metric in the basis of coordinate vector fields **e** is given by

G
(

e

# )
(
D
φ

)

T

(
D
φ
)

{\displaystyle G(\mathbf{e}) = (D\varphi)^\mathsf{T}(D\varphi)}

where Dφ is the Jacobian matrix:

D
# φ

[

∂

φ
1

∂

x
1

∂

φ
1

∂

x
2

…

∂

φ
1

∂

x
n

∂

φ
2

∂

x
1

∂

φ
2

∂

x
2

…

∂

φ
2

∂

x
n

⋮

⋮

⋱

⋮

∂

φ
m

∂

x
1

∂

φ
m

∂

x
2

…

∂

φ
m

∂

x
n

]

.

{\displaystyle D\varphi = \begin{bmatrix}
 \frac{\partial\varphi^1}{\partial x^1} & \frac{\partial\varphi^1}{\partial x^2} &
 \dots & \frac{\partial\varphi^1}{\partial x^n} \\[1ex]
 \frac{\partial\varphi^2}{\partial x^1} & \frac{\partial\varphi^2}{\partial x^2} &
 \dots & \frac{\partial\varphi^2}{\partial x^n} \\
 \vdots & \vdots &
 \ddots & \vdots \\
 \frac{\partial\varphi^m}{\partial x^1} & \frac{\partial\varphi^m}{\partial x^2} &
 \dots & \frac{\partial\varphi^m}{\partial x^n}
\end{bmatrix}.}

## Intrinsic definitions of a metric

The notion of a metric can be defined intrinsically using the language of fiber bundles and vector bundles. In these terms, a **metric tensor** is a function

g
:

T

M

×
M

T

M
→

R

{\displaystyle g : \mathrm{T}M\times\_M \mathrm{T}M\to \mathbf{R}}

from the fiber product of the tangent bundle of M with itself to **R** such that the restriction of g to each fiber is a nondegenerate bilinear mapping

g
p

:

T

p

M
×

T

p

M
→

R

.

{\displaystyle g\_p : \mathrm{T}\_pM\times \mathrm{T}\_pM \to \mathbf{R}.}

The mapping (**10**) is required to be continuous, and often continuously differentiable, smooth, or real analytic, depending on the case of interest, and whether M can support such a structure.

### Metric as a section of a bundle

By the universal property of the tensor product, any bilinear mapping (**10**) gives rise naturally to a section *g*⊗ of the dual of the tensor product bundle of T*M* with itself

g
⊗

∈
Γ

(

(

T

M
⊗

T

M

)
∗

)

.

{\displaystyle g\_\otimes \in \Gamma\left((\mathrm{T}M \otimes \mathrm{T}M)^\*\right).}

The section *g*⊗ is defined on simple elements of T*M* ⊗ T*M* by

g
⊗

(
v
⊗
w
# )
g
(
v
,
w
)

{\displaystyle g\_\otimes(v \otimes w) = g(v, w)}

and is defined on arbitrary elements of T*M* ⊗ T*M* by extending linearly to linear combinations of simple elements. The original bilinear form g is symmetric if and only if

g
⊗

∘
# τ

g
⊗

{\displaystyle g\_\otimes \circ \tau = g\_\otimes}

where

τ
:

T

M
⊗

T

M

→

≅

T
M
⊗
T
M

{\displaystyle \tau : \mathrm{T}M \otimes \mathrm{T}M \stackrel{\cong}{\to} TM \otimes TM}

is the braiding map.

Since M is finite-dimensional, there is a natural isomorphism

(

T

M
⊗

T

M

)
∗

≅

T

∗

M
⊗

T

∗

M
,

{\displaystyle (\mathrm{T}M \otimes \mathrm{T}M)^\* \cong \mathrm{T}^\*M \otimes \mathrm{T}^\*M,}

so that *g*⊗ is regarded also as a section of the bundle T\**M* ⊗ T\**M* of the cotangent bundle T\**M* with itself. Since g is symmetric as a bilinear mapping, it follows that *g*⊗ is a symmetric tensor.

### Metric in a vector bundle

More generally, one may speak of a metric in a vector bundle. If E is a vector bundle over a manifold M, then a metric is a mapping

g
:
E

×
M

E
→

R

{\displaystyle g : E\times\_M E\to \mathbf{R}}

from the fiber product of E to **R** which is bilinear in each fiber:

g
p

:

E
p

×

E
p

→

R

.

{\displaystyle g\_p : E\_p \times E\_p\to \mathbf{R}.}

Using duality as above, a metric is often identified with a section of the tensor product bundle *E*\* ⊗ *E*\*. (See metric (vector bundle).)

### Tangent–cotangent isomorphism

See also: Musical isomorphism
The metric tensor gives a natural isomorphism from the tangent bundle to the cotangent bundle, sometimes called the musical isomorphism. This isomorphism is obtained by setting, for each tangent vector *X**p* ∈ T*p**M*,

S
g

X
p

=

def

g
(

X
p

,
−
)
,

{\displaystyle S\_gX\_p\, \stackrel{\text{def}}{{=}}\, g(X\_p, -),}

the linear functional on T*p**M* which sends a tangent vector *Y**p* at p to *g**p*(*X**p*,*Y**p*). That is, in terms of the pairing [−, −] between T*p**M* and its dual space T∗
*p**M*,

[

S
g

X
p

,

Y
p

# ]

g
p

(

X
p

,

Y
p

)

{\displaystyle [S\_gX\_p, Y\_p] = g\_p(X\_p, Y\_p)}

for all tangent vectors *X**p* and *Y**p*. The mapping *S**g* is a linear transformation from T*p**M* to T∗
*p**M*. It follows from the definition of non-degeneracy that the kernel of *S**g* is reduced to zero, and so by the rank–nullity theorem, *S**g* is a linear isomorphism. Furthermore, *S**g* is a symmetric linear transformation in the sense that

[

S
g

X
p

,

Y
p

# ]
[

S
g

Y
p

,

X
p

]

{\displaystyle [S\_gX\_p, Y\_p] = [S\_gY\_p, X\_p] }

for all tangent vectors *X**p* and *Y**p*.

Conversely, any linear isomorphism *S* : T*p**M* → T∗
*p**M* defines a non-degenerate bilinear form on T*p**M* by means of

g
S

(

X
p

,

Y
p

# )
[
S

X
p

,

Y
p

]

.

{\displaystyle g\_S(X\_p, Y\_p) = [SX\_p, Y\_p]\,.}

This bilinear form is symmetric if and only if S is symmetric. There is thus a natural one-to-one correspondence between symmetric bilinear forms on T*p**M* and symmetric linear isomorphisms of T*p**M* to the dual T∗
*p**M*.

As p varies over M, *S**g* defines a section of the bundle Hom(T*M*, T\**M*) of vector bundle isomorphisms of the tangent bundle to the cotangent bundle. This section has the same smoothness as g: it is continuous, differentiable, smooth, or real-analytic according as g. The mapping *S**g*, which associates to every vector field on M a covector field on M gives an abstract formulation of "lowering the index" on a vector field. The inverse of *S**g* is a mapping T\**M* → T*M* which, analogously, gives an abstract formulation of "raising the index" on a covector field.

The inverse *S*−1
*g* defines a linear mapping

S
g

−
1

:

T

∗

M
→

T

M

{\displaystyle S\_g^{-1} : \mathrm{T}^\*M \to \mathrm{T}M}

which is nonsingular and symmetric in the sense that

[

S
g

−
1

α
,
β

]

=

[

S
g

−
1

β
,
α

]

{\displaystyle \left[S\_g^{-1}\alpha, \beta\right] = \left[S\_g^{-1}\beta, \alpha\right]}

for all covectors α, β. Such a nonsingular symmetric mapping gives rise (by the tensor-hom adjunction) to a map

T

∗

M
⊗

T

∗

M
→

R

{\displaystyle \mathrm{T}^\*M \otimes \mathrm{T}^\*M \to \mathbf{R}}

or by the double dual isomorphism to a section of the tensor product

T

M
⊗

T

M
.

{\displaystyle \mathrm{T}M \otimes \mathrm{T}M.}

## Arclength and the line element

Suppose that g is a Riemannian metric on M. In a local coordinate system *x**i*, *i* = 1, 2, …, *n*, the metric tensor appears as a matrix, denoted here by **G**, whose entries are the components *g**ij* of the metric tensor relative to the coordinate vector fields.

Let *γ*(*t*) be a piecewise-differentiable parametric curve in M, for *a* ≤ *t* ≤ *b*. The arclength of the curve is defined by

# L

∫
a
b

∑

i
,
# j
1

n

g

i
j

(
γ
(
t
)
)

(

d

d
t

x
i

∘
γ
(
t
)

)

(

d

d
t

x
j

∘
γ
(
t
)

)

d
t

.

{\displaystyle L = \int\_a^b \sqrt{ \sum\_{i,j=1}^n g\_{ij}(\gamma(t)) \left(\frac{d}{dt}x^i \circ \gamma(t)\right) \left(\frac{d}{dt} x^j \circ \gamma(t)\right)}\,dt \,.}

In connection with this geometrical application, the quadratic differential form

d

s
2

=

∑

i
,
# j
1

n

g

i
j

(
p
)
d

x
i

d

x
j

{\displaystyle ds^2 = \sum\_{i,j=1}^n g\_{ij}(p) dx^i dx^j}

is called the first fundamental form associated to the metric, while ds is the line element. When *ds*2 is pulled back to the image of a curve in M, it represents the square of the differential with respect to arclength.

For a pseudo-Riemannian metric, the length formula above is not always defined, because the term under the square root may become negative. We generally only define the length of a curve when the quantity under the square root is always of one sign or the other. In this case, define

# L

∫
a
b

∑

i
,
# j
1

n

g

i
j

(
γ
(
t
)
)

(

d

d
t

x
i

∘
γ
(
t
)

)

(

d

d
t

x
j

∘
γ
(
t
)

)

d
t

.

{\displaystyle L = \int\_a^b \sqrt{ \left|\sum\_{i,j=1}^ng\_{ij}(\gamma(t)) \left(\frac{d}{dt}x^i \circ \gamma(t)\right)\left(\frac{d}{dt}x^j \circ \gamma(t)\right)\right|}\,dt \, .}

Note that, while these formulas use coordinate expressions, they are in fact independent of the coordinates chosen; they depend only on the metric, and the curve along which the formula is integrated.

### The energy, variational principles and geodesics

Given a segment of a curve, another frequently defined quantity is the (kinetic) **energy** of the curve:

# E

1
2

∫
a
b

∑

i
,
# j
1

n

g

i
j

(
γ
(
t
)
)

(

d

d
t

x
i

∘
γ
(
t
)

)

(

d

d
t

x
j

∘
γ
(
t
)

)

d
t

.

{\displaystyle E = \frac{1}{2} \int\_a^b \sum\_{i,j=1}^ng\_{ij}(\gamma(t)) \left(\frac{d}{dt}x^i \circ \gamma(t)\right)\left(\frac{d}{dt}x^j \circ \gamma(t)\right)\,dt \,. }

This usage comes from physics, specifically, classical mechanics, where the integral E can be seen to directly correspond to the kinetic energy of a point particle moving on the surface of a manifold. Thus, for example, in Jacobi's formulation of Maupertuis' principle, the metric tensor can be seen to correspond to the mass tensor of a moving particle.

In many cases, whenever a calculation calls for the length to be used, a similar calculation using the energy may be done as well. This often leads to simpler formulas by avoiding the need for the square-root. Thus, for example, the geodesic equations may be obtained by applying variational principles to either the length or the energy. In the latter case, the geodesic equations are seen to arise from the principle of least action: they describe the motion of a "free particle" (a particle feeling no forces) that is confined to move on the manifold, but otherwise moves freely, with constant momentum, within the manifold.

## Canonical measure and volume form

In analogy with the case of surfaces, a metric tensor on an n-dimensional paracompact manifold M gives rise to a natural way to measure the n-dimensional volume of subsets of the manifold. The resulting natural positive Borel measure allows one to develop a theory of integrating functions on the manifold by means of the associated Lebesgue integral.

A measure can be defined, by the Riesz representation theorem, by giving a positive linear functional Λ on the space *C*0(*M*) of compactly supported continuous functions on M. More precisely, if M is a manifold with a (pseudo-)Riemannian metric tensor g, then there is a unique positive Borel measure *μ**g* such that for any coordinate chart (*U*, *φ*),

Λ
# f

∫
U

f

d

μ
g

=

∫

φ
(
U
)

f
∘

φ

−
1

(
x
)

det
g

d
x

{\displaystyle \Lambda f = \int\_U f\,d\mu\_g = \int\_{\varphi(U)} f\circ\varphi^{-1}(x) \sqrt{|\det g|}\,dx}

for all f supported in U. Here det *g* is the determinant of the matrix formed by the components of the metric tensor in the coordinate chart. That Λ is well-defined on functions supported in coordinate neighborhoods is justified by Jacobian change of variables. It extends to a unique positive linear functional on *C*0(*M*) by means of a partition of unity.

If M is in addition oriented, then it is possible to define a natural volume form from the metric tensor. In a positively oriented coordinate system (*x**1*, ..., *x**n*) the volume form is represented as

# ω

det
g

d

x
1

∧
⋯
∧
d

x
n

{\displaystyle \omega = \sqrt{|\det g|}\, dx^1\wedge\cdots\wedge dx^n}

where the *dx**i* are the coordinate differentials and ∧ denotes the exterior product in the algebra of differential forms. The volume form also gives a way to integrate functions on the manifold, and this geometric integral agrees with the integral obtained by the canonical Borel measure.

## Examples

### Euclidean metric

The most familiar example is that of elementary Euclidean geometry: the two-dimensional Euclidean metric tensor. In the usual (*x*, *y*) coordinates, we can write

# g

[

1

0

0

1

]

.

{\displaystyle g = \begin{bmatrix} 1 & 0 \\ 0 & 1\end{bmatrix} \,. }

The length of a curve reduces to the formula:

# L

∫
a
b

(
d
x

)
2

(
d
y

)
2

.

{\displaystyle L = \int\_a^b \sqrt{ (dx)^2 + (dy)^2} \,. }

The Euclidean metric in some other common coordinate systems can be written as follows.

Polar coordinates (*r*, *θ*):

x

=
r
cos
⁡
θ

y

=
r
sin
⁡
θ

J

=

[

cos
⁡
θ

−
r
sin
⁡
θ

sin
⁡
θ

r
cos
⁡
θ

]

.

{\displaystyle \begin{align}
 x &= r \cos\theta \\
 y &= r \sin\theta \\
 J &= \begin{bmatrix}\cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta\end{bmatrix} \,.
\end{align}}

So

# g

J

T

# J

[

cos
2

⁡
θ

sin
2

⁡
θ

−
r
sin
⁡
θ
cos
⁡
θ
r
sin
⁡
θ
cos
⁡
θ

−
r
cos
⁡
θ
sin
⁡
θ
r
cos
⁡
θ
sin
⁡
θ

r
2

sin
2

⁡
θ

r
2

cos
2

⁡
θ

]

=

[

1

0

0

r
2

]

{\displaystyle g = J^\mathsf{T}J =
 \begin{bmatrix}
 \cos^2\theta + \sin^2\theta & -r\sin\theta \cos\theta + r\sin\theta\cos\theta \\
 -r\cos\theta\sin\theta + r\cos\theta\sin\theta & r^2 \sin^2\theta + r^2\cos^2\theta
 \end{bmatrix} = \begin{bmatrix}
 1 & 0 \\
 0 & r^2
 \end{bmatrix}
}

by trigonometric identities.

In general, in a Cartesian coordinate system *x**i* on a Euclidean space, the partial derivatives ∂ / ∂*xi* are orthonormal with respect to the Euclidean metric. Thus the metric tensor is the Kronecker delta δ*ij* in this coordinate system. The metric tensor with respect to arbitrary (possibly curvilinear) coordinates *qi* is given by

g

i
j

=

∑

k
l

δ

k
l

∂

x
k

∂

q
i

∂

x
l

∂

q
j

=

∑
k

∂

x
k

∂

q
i

∂

x
k

∂

q
j

.

{\displaystyle g\_{ij} =
 \sum\_{kl}\delta\_{kl}\frac{\partial x^k}{\partial q^i} \frac{\partial x^l}{\partial q^j} =
 \sum\_k\frac{\partial x^k}{\partial q^i}\frac{\partial x^k}{\partial q^j}.
}

#### The round metric on a sphere

The unit sphere in **ℝ**3 comes equipped with a natural metric induced from the ambient Euclidean metric, through the process explained in the induced metric section. In standard spherical coordinates (*θ*, *φ*), with *θ* the colatitude, the angle measured from the z-axis, and φ the angle from the x-axis in the xy-plane, the metric takes the form

# g

[

1

0

0

sin
2

⁡
θ

]

.

{\displaystyle g = \begin{bmatrix} 1 & 0 \\ 0 & \sin^2 \theta\end{bmatrix} \,.}

This is usually written in the form

d

s
2

=
d

θ
2

sin
2

⁡
θ

d

φ
2

.

{\displaystyle ds^2 = d\theta^2 + \sin^2\theta\,d\varphi^2\,.}

### Lorentzian metrics from relativity

Main articles: Metric tensor (general relativity)
In flat Minkowski space (special relativity), with coordinates

r
μ

→

(

x
0

,

x
1

,

x
2

,

x
3

)

=
(
c
t
,
x
,
y
,
z
)

,

{\displaystyle r^\mu \rightarrow \left(x^0, x^1, x^2, x^3\right) = (ct, x, y, z) \, ,}

the metric is, depending on choice of metric signature,

# g

[

1

0

0

0

0

−
1

0

0

0

0

−
1

0

0

0

0

−
1

]

or

# g

[

−
1

0

0

0

0

1

0

0

0

0

1

0

0

0

0

1

]

.

{\displaystyle g = \begin{bmatrix} 1 & 0 & 0 & 0\\ 0 & -1 & 0 & 0 \\ 0 & 0 & -1 & 0 \\ 0 & 0 & 0 & -1 \end{bmatrix} \quad \text{or} \quad g = \begin{bmatrix} -1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \,. }

For a curve with—for example—constant time coordinate, the length formula with this metric reduces to the usual length formula. For a timelike curve, the length formula gives the proper time along the curve.

In this case, the spacetime interval is written as

d

s
2

=

c
2

d

t
2

−
d

x
2

−
d

y
2

−
d

z
2

=
d

r
μ

d

r
μ

=

g

μ
ν

d

r
μ

d

r
ν

.

{\displaystyle ds^2 = c^2 dt^2 - dx^2 - dy^2 - dz^2 = dr^\mu dr\_\mu = g\_{\mu \nu} dr^\mu dr^\nu\,. }

The Schwarzschild metric describes the spacetime around a spherically symmetric body, such as a planet, or a black hole. With coordinates

(

x
0

,

x
1

,

x
2

,

x
3

)

=
(
c
t
,
r
,
θ
,
φ
)

,

{\displaystyle \left(x^0, x^1, x^2, x^3\right) = (ct, r, \theta, \varphi) \,,}

we can write the metric as

g

μ
ν

=

[

(

1
−

2
G
M

r

c
2

)

0

0

0

0

−

(

1
−

2
G
M

r

c
2

)

−
1

0

0

0

0

−

r
2

0

0

0

0

−

r
2

sin
2

⁡
θ

]

,

{\displaystyle g\_{\mu\nu} =
 \begin{bmatrix}
 \left(1 - \frac{2GM}{rc^2}\right) & 0 & 0 & 0 \\
 0 & -\left(1 - \frac{2GM}{r c^2}\right)^{-1} & 0 & 0 \\
 0 & 0 & -r^2 & 0 \\
 0 & 0 & 0 & -r^2 \sin^2 \theta
 \end{bmatrix}\,,
}

where G (inside the matrix) is the gravitational constant and M represents the total mass-energy content of the central object.