The purely intrinsic approach, using only the induced metric.
Given a real valued function f(x,y), its graph defines a surface which inherits an intrinsic geometry from the ambient E3. In this note, we compute the geodesic equations for this surface.
Geodesics on a Graph
If γ(t)=(x(t),y(t)) is a geodesic on the graph (x,y,f(x,y)) of a function f:R2→R, then
x¨=−fx1+fx2+fy2fxxx˙2+2fxyx˙y˙+fyyy˙2
y¨=−fy1+fx2+fy2fxxx˙2+2fxyx˙y˙+fyyy˙2
In this note we approach the calculation intrinsically, by expanding out the defining equation ∇γ˙γ˙=0 in coordinates. This involves some preliminary calculation of Christoffel symbols, which are recorded in generality in the note ‘2D Geometry Cheatsheet’. Here we focus on specializing this generality to the case of a surface (x,y,f(x,y)) in R3.
The Metric & Christoffel Symbols
From general calculations for a 2D Riemannian metric, we have the following form for the Christoffel symbols.
General Christoffel Symbols in 2 Dimensions
The Christoffel symbols of a general metric g=(EFFG) are
Γxxx=2DGEx−F(2Fx−Ey)Γxxy=2DE(2Fx−Ey)−FEx
Γyyx=2DG(2Fy−Gx)−FGyΓyyy=2DEGy−F(2Fy−Gx)
Γxyx=Γyxx=2DGEy−FGxΓxyy=Γyxy=2DEGx−FEy
For D=detg=EG−F2
The Metric Components
Specializing to a surface parametrized by the function F:(x,y)↦(x,y,f(x,y)), the metric is computed in coordinates (x,y) by pullback. Specifically, let Tx and Ty be the x- and y− partial derivatives of the parameterization
Tx=⟨1,0,fx⟩Ty=⟨0,1,fy⟩
Then the components of the metric g=(EFFG) are the pairwise dot-products of these
E=Tx⋅TxF=Tx⋅TyG=Ty⋅Ty
Below we compute these, and their derivatives (which show up in the Christoffel formulas referenced above).
EExEy=1+fx2=2fxfxx=2fxfxyFFxFy=fxfy=fxxfy+fxfxy=fxyfy+fxfyyGGxGy=1+fy2=2fyfxy=2fyfyy
With these in hand, we compute the three independent Christoffel symbols with upper index x. Under the symmetry exchanging variables x and y (and thus simultaneously exchanging E and G) these determine all Christoffel symbols, which then determine the geodesic equations. All Christoffel symbols have the same denominator 2D, so its helpful to compute this quickly here:
D=EG−F2=(1+fx2)(1+fy2)−(fxfy)2=1+fx2+fy2+fx2fy2−fx2fy2=1+fx2+fy2
Computing Γxxx
The numerator of this Christoffel symbol is GEx−F(2Fx−Ey). Simplifying with what we know,
GEx−F(2Fx−Ey)=(1+fy2)2fxfxx−fxfy(2fxxfy+2fxfxy−2fxfxy)=(1+fy2)2fxfxx−fxfy(2fxxfy)=2fxfxx+2fxfy2fxx−2fxfy2fxx=2fxfxx
This gives the full Christoffel symbol upon division by 2D:
Γxxx=2D2fxfxx=1+fx2+fy2fxfxx
Computing Γxyx
The numerator of this Christoffel symbol is GEy−FGx. Simplifying with what we know,
GEy−FGx=(1+fy2)2fxfxy−fxfy⋅2fyfxy=2fxfxy+2fxfy2fxy−2fxfy2fxy=2fxfxy
This gives the full Christoffel symbol upon division by 2D:
Γxyx=2D2fxfxy=1+fx2+fy2fxfxy
Computing Γxxy
The numerator of this Christoffel symbol is G(2Fy−Gx)−FGy. Simplifying with what we know,
G(2Fy−Gx)−FGy=(1+fy2)(2fxyfy+2fxfyy−2fyfxy)−fxfy⋅2fyfyy=(1+fy2)(2fxfyy)−2fxfy2fyy=2fxfyy+2fxfy2fyy−2fxfy2fyy=2fxfyy
This gives the full Christoffel symbol upon division by 2D:
Γyyx=2D2fxfyy=1+fx2+fy2fxfyy
The Geodesic Equations
We again reference the 2D geometry ‘cheatsheet’ where the geodesics of a general metric are calculated to satisfy the following ODEs:
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=0y¨+x˙2Γxxy+2x˙y˙Γxyy+y˙2Γyyy=0}
With our calculation of the Christoffel symbols Γxxx,Γxyx and Γyyx, we have everything to write down the first equation. Noting that all share the same denominator 1+fx2+fy2 we combine fractions to
x¨+1+fx2+fy2x˙2(fxfxx)+2x˙y˙(fxfxy)+y˙2(fxfyy)=0
Each term of the fraction contains a multiple of fx, so factoring this out and moving to the other side gives
x¨=−fx1+fx2+fy2fxxx˙2+2fxyx˙y˙+fyyy˙2
This entire situation is symmetric under the exchanges of x and y, and performing this swap gives the second equation. Of interest is that the entire fraction is itself invariant under this interchange, so the only changes are to the second derivative and the single-partial-derivative prefactor.
y¨=−fy1+fx2+fy2fxxx˙2+2fxyx˙y˙+fyyy˙2