Learning Trajectories in Math