Solving the geodesic equations