 The function is determined by the requirement that the covariant derivative of along is 0.This is similar to the fact that a constant function is one whose derivative is constantly 0.The equation for the covariant derivative can be written in terms of Christoffel symbols.