Can you compute geodesics by treating it as a problem where you want to minimize the length of a curve through two points on a specified surface while having the constraint that the curve must reside on the specified surface?
If so, can you explain how one could do so for a cylinder?
Or is the calculus of variations the only method by which to do so?
I tried setting up the constrained optimization problem for a cylinder but was unable to make any progress, leading me to think that maybe it's impossible to solve the problem without the calculus of variations.