determine the equation of the trajectory