find the Christoffel symbols of the first or second kind for a metric tensor - Maple Programming Help

Home : Support : Online Help : Mathematics : DifferentialGeometry : Tensor : DifferentialGeometry/Tensor/Christoffel

Tensor[Christoffel] - find the Christoffel symbols of the first or second kind for a metric tensor

Calling Sequences

Christoffel(g, h, keyword)

Parameters

g       - a metric tensor on the tangent bundle of a manifold

h       - (optional) the inverse of the metric g

keyword - (optional) a keyword string, either "FirstKind" or "SecondKind"

Description

 • The Christoffel symbol of the second kind for a metric $g$ is the unique torsion-free connection such that the associated covariant derivative operator $\nabla$ satisfies $\nabla g=0$. It can be represented as a 3-index set of coefficients:

where  and ${g}^{\mathrm{ij}}$ are the components of the metric and its inverse, respectively, and where a comma indicates a partial derivative.

 • The Christoffel symbol of the first kind is the non-tensorial quantity obtained from the Christoffel symbol of the second kind by lowering its upper index with the metric:

 • The default value for the keyword is "SecondKind", that is, the calling sequence Christoffel(g) computes the Christoffel symbol of the second kind.
 • The inverse of the metric can be computed using InverseMetric.
 • This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form Christoffel(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order.  It can always be used in the long form DifferentialGeometry:-Tensor:-Christoffel.

Examples

 > with(DifferentialGeometry): with(Tensor):

Example 1.

First create a 2 dimensional manifold $M$ and define a metric $\mathrm{g1}$ on the tangent space of $M$.

 > DGsetup([x, y], M);
 ${\mathrm{frame name: M}}$ (2.1)
 > g1 := evalDG((1/y^2)*(dx &t dx + dy &t dy));
 ${\mathrm{g1}}{:=}\frac{{\mathrm{dx}}{}{\mathrm{dx}}}{{{y}}^{{2}}}{+}\frac{{\mathrm{dy}}{}{\mathrm{dy}}}{{{y}}^{{2}}}$ (2.2)

Calculate the Christoffel symbols of the first and second kind for $\mathrm{g1}$.

 > C1 := Christoffel(g1, "FirstKind");
 ${\mathrm{C1}}{:=}{-}\frac{{\mathrm{dx}}{}{\mathrm{dx}}{}{\mathrm{dy}}}{{{y}}^{{3}}}{-}\frac{{\mathrm{dx}}{}{\mathrm{dy}}{}{\mathrm{dx}}}{{{y}}^{{3}}}{+}\frac{{\mathrm{dy}}{}{\mathrm{dx}}{}{\mathrm{dx}}}{{{y}}^{{3}}}{-}\frac{{\mathrm{dy}}{}{\mathrm{dy}}{}{\mathrm{dy}}}{{{y}}^{{3}}}$ (2.3)
 > C2 := Christoffel(g1, "SecondKind");
 ${\mathrm{C2}}{:=}{-}\frac{{\mathrm{D_x}}{}{\mathrm{dx}}{}{\mathrm{dy}}}{{y}}{-}\frac{{\mathrm{D_x}}{}{\mathrm{dy}}{}{\mathrm{dx}}}{{y}}{+}\frac{{\mathrm{D_y}}{}{\mathrm{dx}}{}{\mathrm{dx}}}{{y}}{-}\frac{{\mathrm{D_y}}{}{\mathrm{dy}}{}{\mathrm{dy}}}{{y}}$ (2.4)
 > CovariantDerivative(g1, C2);
 ${0}{}{\mathrm{dx}}{}{\mathrm{dx}}{}{\mathrm{dx}}$ (2.5)
 > TorsionTensor(C2);
 ${0}{}{\mathrm{D_x}}{}{\mathrm{dx}}{}{\mathrm{dx}}$ (2.6)

Example 2.

Define an anholonomic frame on $M$ and use this frame to calculate the Christoffel symbol for a metric on the tangent space of $M$.

 > FR := FrameData([dx/(1+x^2+y^2), dy/(1+x^2+y^2)], M1);
 ${\mathrm{FR}}{:=}\left[{d}{}{\mathrm{Θ1}}{=}{2}{}{y}{}{\mathrm{Θ1}}{}{\bigwedge }{}{\mathrm{Θ2}}{,}{d}{}{\mathrm{Θ2}}{=}{-}{2}{}{x}{}{\mathrm{Θ1}}{}{\bigwedge }{}{\mathrm{Θ2}}\right]$ (2.7)
 > DGsetup(FR, [E], [sigma]);
 ${\mathrm{frame name: M1}}$ (2.8)
 > g2 := evalDG(sigma1 &t sigma1 + sigma2 &t sigma2);
 ${\mathrm{g2}}{:=}{\mathrm{σ1}}{}{\mathrm{σ1}}{+}{\mathrm{σ2}}{}{\mathrm{σ2}}$ (2.9)
 > C := Christoffel(g2);
 ${C}{:=}{-}{2}{}{y}{}{\mathrm{E1}}{}{\mathrm{σ2}}{}{\mathrm{σ1}}{+}{2}{}{x}{}{\mathrm{E1}}{}{\mathrm{σ2}}{}{\mathrm{σ2}}{+}{2}{}{y}{}{\mathrm{E2}}{}{\mathrm{σ1}}{}{\mathrm{σ1}}{-}{2}{}{x}{}{\mathrm{E2}}{}{\mathrm{σ1}}{}{\mathrm{σ2}}$ (2.10)
 > CovariantDerivative(g2, C);
 ${0}{}{\mathrm{σ1}}{}{\mathrm{σ1}}{}{\mathrm{σ1}}$ (2.11)
 > TorsionTensor(C);
 ${0}{}{\mathrm{E1}}{}{\mathrm{σ1}}{}{\mathrm{σ1}}$ (2.12)