\begin{equation*}x_1 v_2\sqrt{(d-x_1)^2 + y_2^2} + (x_1 - d) v_1\sqrt{x_1^2 + y_1^2} =0.\end{equation*}