Title: The variational theory of geodesics