Text this: A generalization of the geodesic differential equation