I'm a little stuck on a physics question. Here it is:
We have two particles p1 and p2 in space. We know the velocity \(v_1\) and bearing \(\theta_1\) of p1, and we know the velocity \(v_2\) of p2. Find the bearing \(\theta_2\) that p2 should be so p1 and p2 will collide.
You can assume that \(p_1\) is on the point \((x_1,y_1)\) and \(p_2\) is at the origin.
I got a huge messy answer (courtesy of Wolfram Alpha for equation bashing):
And I am doubtful of its correctness.
A computer science approach is also welcome.
Any help is appreciated!