Note: 2D Geodesic Cheatsheet

Steve Trettel

|

Lots of computations start with the dreaded task of computing christoffel symbols. This short note does the calculation once and for all for 2-dimensional Riemannian metrics, so I don’t have to keep repeating it.

(General Christoffel Symbols in 2 Dimensions) For the metric ds2=Edx2+2Fdxdy+Gdy2 with determinant D=EGF2, the Christoffel symbols are Γxxx=GExF(2FxEy)2DΓxxy=E(2FxEy)FEx2D Γyyx=G(2FyGx)FGy2DΓyyy=EGyF(2FyGx)2D Γxyx=Γyxx=GEyFGx2DΓxyy=Γyxy=EGxFEy2D

Using these one can directly compute the geodesic equations, by expanding out the definition γ˙γ˙ for a curve γ(t)=(u(t),v(t)).

(Geodesics) A curve γ(t)=(x(t),y(t)) is a geodesic if it satisfies the following ODEs: x¨+x˙2Γxxx+2x˙y˙Γxyx+y˙2Γyyx=0 y¨+x˙2Γxxy+2x˙y˙Γxyy+y˙2Γyyy=0

In general plugging in the Christoffel symbols here is quite messy, and its best to rather wait until you’ve computed them and do it indivdually in each special case. We record two common and useful special cases here:

(Geodesics of Diagonal Metrics) The geodesics of a diagonal metric ds2=Edx2+Gdy2 satisfy x¨+Exx˙2+2Eyx˙y˙Gxy˙22E=0 y¨+Gyy˙2+2Gxx˙y˙Eyx˙22G=0
(Geodesics of Conformally Flat Metrics) The geodesics of the conformally flat metric ds2=e2ψ(dx2+dy2) satisfy x¨+ψx(x˙2y˙2)+2ψyx˙y˙=0 y¨+ψy(y˙2x˙2)+2ψxx˙y˙=0

Notation

Setting some notation, we will use coordinates named x,y in which our metric can be written as

g=(EF FG)

or as a line element, ds2=Edx2+2Fdxdy+Gdy2. We will often have use to discuss the inverse of the metric tensor, and so it will be useful to have a nice notation for working with it mid-computation. Here, we will use script letters to represent the components of the inverse

g1=(EF FG)

To expand this out in terms of the original E,F,G it is useful to give a name to the metric determinant:

D=EGF2

in which case we can write

E=GDF=FDG=ED

General Christoffel Symbols

General christoffel symbols can be computed as functions of the metric tensor via the identity

Γki=12mgim(gmk+kgmmgk)

Our goal here is to expand this out in two dimensions (where i,k,,mx,y). A priori there are eight possible Christoffel symbols here (three choices of x,y), but the symbols enjoy a symmetry in their lower indices Γxy=Γyx which reduces the number of independent possibilites to six. By the notational symmetry swapping all x’s and y’s, it then suffices to compute three Christoffel symbols directly from the definition: we choose Γxxx,Γxxy and Γxyx.

Γxxx Computation

Γxxx=12mgxm(xgmx+xgmxmgxx) =12mgxm(2xgmxmgxx) =12[gxx(2xgxxxgxx)+gxy(2xgyxygxx)] =12[gxxxgxx+gxy(2xgxyygxx)] =12[ExE+F(2xFyE)] =12[EEx+F(2FxEy)]

Rewriting in terms of E,F,G and D=EGF2:

Γxxx=GExF(2FxEy)2D

Swapping all instances x and y (which also swaps E and G) gives the Christoffel symbol Γyyy:

Γyyy=EGyF(2FyGx)2D

Γxxy Computation

Γxxy=12mgym(xgmx+xgmxmgxx) =12mgym(2xgmxmgxx) =12[gyx(2xgxxxgyx)+gyy(2xgyxygxx)] =12[gyx(xgxx)+gyy(2xgyxygxx)] =12[FxE+G(2xFyE)] =12[FEx+G(2FxEy)]

Rewriting in terms of E,F,G and D=EGF2:

Γxxy=E(2FxEy)FEx2D

Swapping all instances x and y gives the Christoffel symbol Γyyx:

Γyyx=G(2FyGx)FGy2D

Γxyx Computation

Γxyx=12mgxm(ygmx+xgmymgxy) =12[gxx(ygxx+xgxyxgxy)+gxy(ygyx+xgyyygxy)] =12[gxx(ygxx)+gxy(xgyy)] =12[EyE+FxG] =12[EEy+FGx]

Rewriting in terms of E,F,G and D=EGF2:

Γxyx=GEyFGx2D

Swapping all instances x and y gives the Christoffel symbol Γyxy:

Γyxy=EGxFEy2D

Expanding the Geodesic Equation

The geodesic equation stipulates that the acceleration along the curve is zero. Given a curve γ(t)=(x(t),y(t)) its first derivative is calculable by usual differentiation

γ˙=x˙x+y˙y

But the second derivative is now a derivative not of a function, but of a vector field along a curve. This requires covariant differentiation - specifically the generalization D/dt of the usual covariant derivative of vector fields to fields along curves. Computing

Dγ˙dt=Ddt(x˙x+y˙y) =Ddtx˙x+Ddty˙y =(Dx˙dtx+x˙Ddtx)+(Dy˙dty+y˙Ddty) =x¨x+x˙(γ˙x)+y¨y+y˙(γ˙y)

where we have used linearity and the Leibniz rule, together with the fact that D/dt agrees with the time derivative along coordinate functions and the covariant derivative in direction γ along vector fields. Continuing we expand occurances of γ˙ using the tensorality of the covariant derivative: for any vector field V,

γ˙V=x˙x+y˙yV =x˙x+y˙yV =x˙Vx+y˙Vy =x˙xV+y˙yV

Plugging this in for both V=x and V=y, yields the following, where in the second line we have used the symmetry that xy=yx for coordinate vector fields.

Dγ˙dt=x¨x+x˙(x˙xx+y˙yx)+y¨y+y˙(x˙xy+y˙yy) =x¨x+y¨y+x˙2xx+2x˙y˙yx+y˙2yy

Finally, it has come time for the Christoffel symbols to make their appearance, as the the coefficients of covariantly differentiating coordinate fields:

xx=Γxxxx+Γxxyy xy=Γxyxx+Γxyyy yy=Γyyxx+Γyyyy

Plugging these in,

Dγ˙dt=x¨x+y¨y +x˙2(Γxxxx+Γxxyy) +2x˙y˙(Γxyxx+Γxyyy) +y˙2(Γyyxx+Γyyyy)

and re-grouping terms by basis vector,

Dγ˙dt=(x¨+x˙2Γxxx+2x˙y˙Γxyx+y˙2Γyyx)x +(y¨+x˙2Γxxy+2x˙y˙Γxyy+y˙2Γyyy)y

This gives a full expression for the acceleration along a curve γ. Because geodesics have vanishing acceleration, setting both components to zero gives a pair of coupled nonlinear differential equations specifying geodesics:

x¨+x˙2Γxxx+2x˙y˙Γxyx+y˙2Γyyx=0 y¨+x˙2Γxxy+2x˙y˙Γxyy+y˙2Γyyy=0

Diagonal Metrics

A diagonal metric has F=0, which simplfies many of the Christoffel symbols. We compute three such simplifications here:

Γxxx=GExF(2FxEy)2(EGF2)=GEx2EG=Ex2E Γxxy=E(2FxEy)FEx2(EGF2)=EEy2EG=Ey2G Γxyx=GEyFGx2(EGF2)=GEy2EG=Ey2E

Switching x and y as previously gives the other three. We summarize all in the table below

Γxxx=Ex2EΓxxy=Ey2G Γyyx=Gx2EΓyyy=Gy2G Γxyx=Ey2EΓxyy=Gx2G

To get the geodesic equations, we simply plug these in and simplify. Note that all with a superscript x (which occur in the x¨ equation) have denominator 2E and all terms for the y¨ equation share denominator 2G.

The geodesics of a diagonal metric ds2=Edx2+Gdy2 satisfy x¨+Exx˙2+2Eyx˙y˙Gxy˙22E=0 y¨+Gyy˙2+2Gxx˙y˙Eyx˙22G=0

Conformally Flat Metrics

A conformally flat metric is a positive scalar multiple of the Euclidean metric ds2=Ψ(dx2+dy2). In the terminology above this is F=0 and E=G. This makes the Christoffel symbols easy to compute from the diagonal metric case

Γxxx=Ψx2ΨΓxxy=Ψy2Ψ Γyyx=Ψx2ΨΓyyy=Ψy2Ψ Γxyx=Ψy2ΨΓxyy=Ψx2Ψ

Plugging these in and simplifying gives the geodesic equations

x¨+Ψx(x˙2y˙2)+2Ψyx˙y˙2Ψ=0 y¨+Ψy(y˙2x˙2)+2Ψxx˙y˙2Ψ=0

Since the function Ψ is always positive, it is often convenient to express it as an exponential, indeed as Ψ=e2ψ for some lowercase ψ. ds2=e2ψ(dx2+dy2)

This notation results in particularly simple forms of the Christoffel symbols: for instance

Γxxx=Ψx2Ψ=xe2ψ2e2ψ=e2ψ2ψx2e2ψ=ψx

The result of all such Christoffel symbols are summarized below:

Γxxx=ψxΓxxy=ψy Γyyx=ψxΓyyy=ψy Γxyx=ψyΓxyy=ψx

The geodesic equations in this case become

x¨+ψx(x˙2y˙2)+2ψyx˙y˙=0 y¨+ψy(y˙2x˙2)+2ψxx˙y˙=0