Geodesics can be understood to be the
Hamiltonian flows of a special
Hamiltonian vector field defined on the
cotangent space of the manifold. The Hamiltonian is constructed from the metric on the manifold, and is thus a
quadratic form consisting entirely of the kinetic term. The geodesic equations are second-order differential equations; they can be re-expressed as first-order equations by introducing additional independent variables, as shown below. Note that a coordinate neighborhood
U with coordinates
xa induces a
local trivialization of :T^*M|_{U}\simeq U \times \mathbb{R}^n by the map which sends a point :\eta \in T_x^*M|_{U} of the form \eta = p_a dx^a to the point (x,p_a) \in U\times\mathbb{R}^n. Then introduce the
Hamiltonian as :H(x,p)=\frac{1}{2}g^{ab}(x)p_a p_b. Here,
gab(
x) is the inverse of the
metric tensor:
gab(
x)
gbc(
x) = \delta^a_c. The behavior of the metric tensor under coordinate transformations implies that
H is
invariant under a change of variable. The geodesic equations can then be written as :\dot{x}^a = \frac{\partial H}{\partial p_a} = g^{ab}(x) p_b and :\dot{p}_a = - \frac {\partial H}{\partial x^a} = -\frac{1}{2} \frac {\partial g^{bc}(x)}{\partial x^a} p_b p_c. The
flow determined by these equations is called the
cogeodesic flow; a simple substitution of one into the other obtains the Euler–Lagrange equations, which give the
geodesic flow on the tangent bundle
TM. The geodesic lines are the projections of integral curves of the geodesic flow onto the manifold
M. This is a
Hamiltonian flow, and the Hamiltonian is constant along the geodesics: :\frac{dH}{dt} = \frac {\partial H}{\partial x^a} \dot{x}^a + \frac{\partial H}{\partial p_a} \dot{p}_a = - \dot{p}_a \dot{x}^a + \dot{x}^a \dot{p}_a = 0. Thus, the geodesic flow splits the
cotangent bundle into
level sets of constant energy :M_E = \{ (x,p) \in T^*M : H(x,p)=E \} for each energy
E ≥ 0, so that :T^*M=\bigcup_{E \ge 0} M_E. ==References==