# Levi-Civita connection

In Riemannian or pseudo-Riemannian geometry (in particular the Lorentzian geometry of general relativity), the Levi-Civita connection is the unique affine connection on the tangent bundle of a manifold that preserves the (pseudo-)Riemannian metric and is torsion-free.
The fundamental theorem of Riemannian geometry states that there is a unique connection that satisfies these properties.
In the theory of Riemannian and pseudo-Riemannian manifolds the term covariant derivative is often used for the Levi-Civita connection. The components (structure coefficients) of this connection with respect to a system of local coordinates are called Christoffel symbols.

## History

The Levi-Civita connection is named after Tullio Levi-Civita, although originally "discovered" by Elwin Bruno Christoffel. Levi-Civita, along with Gregorio Ricci-Curbastro, used Christoffel's symbols to define the notion of parallel transport and explore the relationship of parallel transport with the curvature, thus developing the modern notion of holonomy.
In 1869, Christoffel discovered that the components of the intrinsic derivative of a vector field, upon changing the coordinate system, transform as the components of a contravariant vector. This discovery was the real beginning of tensor analysis.
In 1906, L. E. J. Brouwer was the first mathematician to consider the parallel transport of a vector for the case of a space of constant curvature.
In 1917, Levi-Civita pointed out its importance for the case of a hypersurface immersed in a Euclidean space, i.e., for the case of a Riemannian manifold embedded in a "larger" ambient space. He interpreted the intrinsic derivative in the case of an embedded surface as the tangential component of the usual derivative in the ambient affine space. The Levi-Civita notions of intrinsic derivative and parallel displacement of a vector along a curve make sense on an abstract Riemannian manifold, even though the original motivation relied on a specific embedding $M^{n}\subset \mathbf {R} ^{n(n+1)/2}.$
In 1918, independently of Levi-Civita, Jan Arnoldus Schouten obtained analogous results. In the same year, Hermann Weyl generalized Levi-Civita's results.

## Notation

* (M, g) denotes a pseudo-Riemannian manifold.
* TM is the tangent bundle of M.
* g is the pseudo-Riemannian metric of M.
* X, Y, Z are smooth vector fields on M, i. e. smooth sections of TM.
* [X, Y] is the Lie bracket of X and Y. It is again a smooth vector field.
The metric g can take up to two vectors or vector fields X, Y as arguments. In the former case the output is a number, the (pseudo-)inner product of X and Y. In the latter case, the inner product of X$_p$, Y$_p$ is taken at all points p on the manifold so that g(X, Y) defines a smooth function on M. Vector fields act (by definition) as differential operators on smooth functions. In local coordinates $(x_{1},\ldots ,x_{n})$, the action reads
    $X(f)=X^{i}{\frac {\partial }{\partial x^{i}}}f=X^{i}\partial _{i}f$
where Einstein's summation convention is used.

## Formal definition

An affine connection $\nabla$ is called a Levi-Civita connection if
* it preserves the metric, i.e., $\nabla g=0$.
* it is torsion-free, i.e., for any vector fields $X$ and $Y$ we have $\nabla _{X}Y-\nabla _{Y}X=[X,Y]$, where $[X,Y]$ is the Lie bracket of the vector fields $X$ and $Y$.
Condition 1 above is sometimes referred to as compatibility with the metric, and condition 2 is sometimes called symmetry, cf. Do Carmo's text.

## Fundamental theorem of (pseudo-)Riemannian geometry

Theorem Every pseudo-Riemannian manifold $(M,g)$ has a unique Levi Civita connection $\nabla$.
Proof: To prove uniqueness, unravel the definition of the action of a connection on tensors to find
    $X{\biglg(Y,Z){\bigr )}=(\nabla _{X}g)(Y,Z)+g(\nabla _{X}Y,Z)+g(Y,\nabla _{X}Z)$.
Hence one can write the condition that $\nabla$ preserves the metric as
    $X{\biglg(Y,Z){\bigr )}=g(\nabla _{X}Y,Z)+g(Y,\nabla _{X}Z)$.
By the symmetry of $g$,
    $X{\biglg(Y,Z){\bigr )}+Y{\biglg(Z,X){\bigr )}-Z{\biglg(Y,X){\bigr )}=g(\nabla _{X}Y+\nabla _{Y}X,Z)+g(\nabla _{X}Z-\nabla _{Z}X,Y)+g(\nabla _{Y}Z-\nabla _{Z}Y,X)$.
By torsion-freeness, the right hand side is therefore equal to
    $2g(\nabla _{X}Y,Z)-g([X,Y],Z)+g([X,Z],Y)+g([Y,Z],X)$.
Thus, the Koszul formula
    $g(\nabla _{X}Y,Z)={\tfrac {1}{2}}{\Big \X{\biglg(Y,Z){\bigr )}+Y{\biglg(Z,X){\bigr )}-Z{\biglg(X,Y){\bigr )}+g([X,Y],Z)-g([Y,Z],X)-g([X,Z],Y){\Big \}}$
holds. Hence, if a Levi-Civita connection exists, it must be unique, because $Z$ is arbitrary, $g$ is non degenerate, and the right hand side does not depend on $\nabla$.
To prove existence, note that for given vector field $X$ and $Y$, the right hand side of the Koszul expression is linear over smooth functions in the vector field $Z$, not just real-linear. Hence by the non degeneracy of $g$, the right hand side uniquely defines some new vector field, which is suggestively denoted $\nabla _{X}Y$ as in the left hand side. By substituting the Koszul formula, one now checks that for all vector fields $X,Y,Z$ and all functions $f$,
    $g(\nabla _{X}(Y_{1}+Y_{2}),Z)=g(\nabla _{X}Y_{1},Z)+g(\nabla _{X}Y_{2},Z)$
    $g(\nabla _{X}(fY),Z)=X(f)g(Y,Z)+fg(\nabla _{X}Y,Z)$
    $g(\nabla _{X}Y,Z)+g(\nabla _{X}Z,Y)=X{\biglg(Y,Z){\bigr )}$
    $g(\nabla _{X}Y,Z)-g(\nabla _{Y}X,Z)=g([X,Y],Z).$
Hence the Koszul expression does, in fact, define a connection, and this connection is compatible with the metric and is torsion free, i.e. is a Levi-Civita connection.
With minor variation, the same proof shows that there is a unique connection that is compatible with the metric and has prescribed torsion.

## Christoffel symbols

Let $\nabla$ be an affine connection on the tangent bundle. Choose local coordinates $x^{1},\ldots ,x^{n}$ with coordinate basis vector fields $\partial _{1},\ldots ,\partial _{n}$ and write $\nabla _{j}$ for $\nabla _{\partial _{j}}$. The Christoffel symbols $\Gamma _{jk}^{l}$ of $\nabla$ with respect to these coordinates are defined as
    $\nabla _{j}\partial _{k}=\Gamma _{jk}^{l}\partial _{l}$
The Christoffel symbols conversely define the connection $\nabla$ on the coordinate neighbourhood because
    ${\begin{aligned}\nabla _{X}Y&=\nabla _{X^{j}\partial _{j}}(Y^{k}\partial _{k})\\&=X^{j}\nabla _{j}(Y^{k}\partial _{k})\\&=X^{j}{\bigl\partial _{j}(Y^{k})\partial _{k}+Y^{k}\nabla _{j}\partial _{k}{\bigr )}\\&=X^{j}{\bigl\partial _{j}(Y^{k})\partial _{k}+Y^{k}\Gamma _{jk}^{l}\partial _{l}{\bigr )}\\&=X^{j}{\bigl\partial _{j}(Y^{l})+Y^{k}\Gamma _{jk}^{l}{\bigr )}\partial _{l}\end{aligned}}$
that is,
    $(\nabla _{j}Y)^{l}=\partial _{j}Y^{l}+\Gamma _{jk}^{l}Y^{k}$
An affine connection $\nabla$ is compatible with a metric iff
    $\partial _{i}{\biglg(\partial _{j},\partial _{k}){\bigr )}=g(\nabla _{i}\partial _{j},\partial _{k})+g(\partial _{j},\nabla _{i}\partial _{k})=g(\Gamma _{ij}^{l}\partial _{l},\partial _{k})+g(\partial _{j},\Gamma _{ik}^{l}\partial _{l})$
i.e., if and only if
    $\partial _{i}g_{jk}=\Gamma _{ij}^{l}g_{lk}+\Gamma _{ik}^{l}g_{jl}.$
An affine connection ∇ is torsion free iff
    $\nabla _{j}\partial _{k}-\nabla _{k}\partial _{j}=(\Gamma _{jk}^{l}-\Gamma _{kj}^{l})\partial _{l}=[\partial _{j},\partial _{k}]=0.$
i.e., if and only if
    $\Gamma _{jk}^{l}=\Gamma _{kj}^{l}$
is symmetric in its lower two indices.
As one checks by taking for $X,Y,Z$, coordinate vector fields $\partial _{j},\partial _{k},\partial _{l}$ (or computes directly), the Koszul expression of the Levi-Civita connection derived above is equivalent to a definition of the Christoffel symbols in terms of the metric as
    $\Gamma _{jk}^{l}={\tfrac {1}{2}}g^{lr}\left(\partial _{k}g_{rj}+\partial _{j}g_{rk}-\partial _{r}g_{jk}\right)$
where as usual $g^{ij}$ are the coefficients of the dual metric tensor, i.e. the entries of the inverse of the matrix $g_{kl}$.

## Derivative along curve

The Levi-Civita connection (like any affine connection) also defines a derivative along curves, sometimes denoted by D.
Given a smooth curve γ on (M, g) and a vector field V along γ its derivative is defined by
    $D_{t}V=\nabla _{{\dot {\gamma }}(t)}V.$
Formally, D is the pullback connection γ*∇ on the pullback bundle γ*TM.
In particular, ${\dot {\gamma }}(t)$ is a vector field along the curve γ itself. If $\nabla _{{\dot {\gamma }}(t)}{\dot {\gamma }}(t)$ vanishes, the curve is called a geodesic of the covariant derivative. Formally, the condition can be restated as the vanishing of the pullback connection applied to ${\dot {\gamma }}$:
    $\left(\gamma ^{*}\nabla \right){\dot {\gamma }}\equiv 0.$
If the covariant derivative is the Levi-Civita connection of a certain metric, then the geodesics for the connection are precisely those geodesics of the metric that are parametrised proportionally to their arc length.

## Parallel transport

In general, parallel transport along a curve with respect to a connection defines isomorphisms between the tangent spaces at the points of the curve. If the connection is a Levi-Civita connection, then these isomorphisms are orthogonal – that is, they preserve the inner products on the various tangent spaces.
The images below show parallel transport induced by the Levi-Civita connection associated to two different Riemannian metrics on the punctured plane $\mathbf {R} ^{2}\backslash \{0,0\}$. The curve the parallel transport is done along is the unit circle. In polar coordinates, the metric on the left is the standard Euclidean metric $ds^{2}=dx^{2}+dy^{2}=dr^{2}+r^{2}d\theta ^{2}$, while the metric on the right is $ds^{2}=dr^{2}+d\theta ^{2}$. The first metric extends to the entire plane, but the second metric has a singularity at the origin:
    $dr={\frac {xdx+ydy}{\sqrt {x^{2}+y^{2}}}}$
    $d\theta ={\frac {xdy-ydx}{x^{2}+y^{2}}}$
    $dr^{2}+d\theta ^{2}={\frac {(xdx+ydy)^{2}}{x^{2}+y^{2}}}+{\frac {(xdy-ydx)^{2}}{(x^{2}+y^{2})^{2}}}$.
$ds^{2}=dr^{2}+r^{2}d\theta ^{2}$
$ds^{2}=dr^{2}+d\theta ^{2}$
Warning: This is parallel transport on the punctured plane along the unit circle, not parallel transport on the unit circle. Indeed, in the first image, the vectors fall outside of the tangent space to the unit circle.

## Example: the unit sphere in R$^3$

Let ⟨ , ⟩ be the usual scalar product on R$^3$. Let S$^2$ be the unit sphere in R$^3$. The tangent space to S$^2$ at a point m is naturally identified with the vector subspace of R$^3$ consisting of all vectors orthogonal to m. It follows that a vector field Y on S$^2$ can be seen as a map Y : S$^2$ → R$^3$, which satisfies ⟨Y(m), m⟩=0, ∀m∈S$^2$.{\bigl \langle }Y(m), m{\bigr \rangle }=0, \qquad \forall m\in \mathbf {S} ^{2}.
Denote as d$_m$Y the differential of the map Y at the point m. Then we have:
Lemma — The formula $\left(\nabla _{X}Y\right)(m)=d_{m}Y(X(m))+\langle X(m),Y(m)\rangle m$ defines an affine connection on S$^2$ with vanishing torsion.
It is straightforward to prove that ∇ satisfies the Leibniz identity and is C$^∞$(S$^2$) linear in the first variable. It is also a straightforward computation to show that this connection is torsion free. So all that needs to be proved here is that the formula above produces a vector field tangent to S$^2$. That is, we need to prove that for all m in S$^2$ ${\bigl \langle }\left(\nabla _{X}Y\right)(m),m{\bigr \rangle }=0\qquad (1).$ Consider the map f that sends every m in S$^2$ to ⟨Y(m), m⟩, which is always 0. The map f is constant, hence its differential vanishes. In particular $d_{m}f(X)={\bigl \langle }d_{m}Y(X),m{\bigr \rangle }+{\bigl \langle }Y(m),X(m){\bigr \rangle }=0.$ The equation (1) above follows. Q.E.D.
In fact, this connection is the Levi-Civita connection for the metric on S$^2$ inherited from R$^3$. Indeed, one can check that this connection preserves the metric.

## Behaviour under conformal rescaling

If the metric $g$ in a conformal class is replaced by the conformally rescaled metric of the same class ${\hat {g}}=e^{2\gamma }g$, then the Levi-Civita connection transforms according to the rule ${\widehat {\nabla }}_{X}Y=\nabla _{X}Y+X(\gamma )Y+Y(\gamma )X-g(X,Y)\mathrm {grad} _{g}(\gamma ).$ where $\mathrm {grad} _{g}(\gamma )$ is the gradient vector field of $\gamma$ i.e. the vector field $g$-dual to $d\gamma$, in local coordinates given by $g^{ik}(\partial _{i}\gamma )\partial _{k}$. Indeed, it is trivial to verify that ${\widehat {\nabla }}$ is torsion-free. To verify metricity, assume that $g(Y,Y)$ is constant. In that case, ${\hat {g}}({\widehat {\nabla }}_{X}Y,Y)=X(\gamma ){\hat {g}}(Y,Y)={\frac {1}{2}}X({\hat {g}}(Y,Y)).$
As an application, consider again the unit sphere, but this time under stereographic projection, so that the metric (in complex Fubini–Study coordinates $z,{\bar {z}}$) is: $g={\frac {4\,dz\,d{\bar {z}}}{(1+z{\bar {z}})^{2}}}.$ This exhibits the metric of the sphere as conformally flat, with the Euclidean metric $dz\,d{\bar {z}}$, with $\gamma =\ln(2)-\ln(1+z{\bar {z}})$. We have $d\gamma =-(1+z{\bar {z}})^{-1}({\bar {z}}\,dz+z\,d{\bar {z}})$, and so ${\widehat {\nabla }}_{\partial _{z}}\partial _{z}=-{\frac {2{\bar {z}}\partial _{z}}{1+z{\bar {z}}}}.$ With the Euclidean gradient $\mathrm {grad} _{Euc}(\gamma )=-(1+z{\bar {z}})^{-1}({\bar {z}}\partial _{z}+z\partial _{\bar {z}})$, we have ${\widehat {\nabla }}_{\partial _{z}}\partial _{\bar {z}}=0.$ These relations, together with their complex conjugates, define the Christoffel symbols for the two-sphere.