I have a problem where I need to find the point of intersection of two vehicles given their initial positions and velocities. Here's what I have:
Vehicle 1:
- Departure time: $t=0$
- Initial position: $\vec {P_1}$
- Velocity vector: $\vec {V_1}$
At any time $t$, the position of Vehicle1 is given by:
$\vec{P_1}+t\ \vec {V_1}$
Vehicle 2:
- Departure time: $t= K$ ($K$ any delta of time $\ge 0$)
- Initial position: $\vec {P_2}$
- Velocity: $|V_2|$ (components unknown)
At any time $t$, the position of Vehicle 2 is given by:
$\vec {P_2}+(t−K)\ \vec {V_2}$
where $V_2$ is the velocity vector of Vehicle 2 with an unknown direction but a known magnitude.
Example:
Vehicle 1 has trajectory red. Vehicle 2 has trajectory green. The intersection point is (1)
$\vec {P_1} = (-2,1)$
$\vec {P_2} = (2,-4)$
$\vec {V_1} = (5,1)$
$|V_2| = 2\sqrt{37}$
$K = 0.5$
Expected result: $\vec I = (3,2)$
I want to find the point where these two vehicles intersect, considering they will intersect at the same time (if they do).
The arithmetic solution become a huge quartic equation, difficult to manage.
$P_1.x + V_1.x \ t_1 = P_2.x + x \ t_2$
$P_1.y + V_1.y \ t_1= P_2.y + y \ t_2$
$\sqrt{x^2 + y^2} = |V_2|$
$t_2 = t_1-K$
I could also probably solve this with numerical methods, but I would like to explore if there is a algebraic solution which does not explode in complexity.

You can determine the second vehicle's direction along the way if you're interested in that.
Vehicle 1's position at time $t$:
$$\vec A(t) = \vec P_1 + \vec V_1 t = (p_{1x} + v_{1x}t)\,\vec\imath + (p_{1y}+v_{1y}t) \, \vec\jmath$$
Vehicle 2's position at time $t$:
$$\vec B(t) = \vec P_2 + \vec V_2 (t-K) = \left(p_{2x} + \left\|\vec V_2\right\| \cos\theta \, (t-K)\right) \, \vec\imath + \left(p_{2y} + \left\|\vec V_2\right\| \sin\theta \, (t-K)\right) \, \vec\jmath$$
Solve for $t$; the two vehicles will meet at
$$t = \frac{p_{2x}-p_{1x} - \left\|\vec V_2\right\| K \cos\theta}{v_{1x} - \left\|\vec V_2\right\| \cos\theta} = \frac{p_{2y}-p_{1y} - \left\|\vec V_2\right\| K \sin\theta}{v_{1y} - \left\|\vec V_2\right\| \sin\theta}$$
Now you can solve for $\theta$, then find a general solution for $t$ and the intersection.
Re. your cooked up example, the above formula leads to
$$t = \frac{4 - \sqrt{37} \cos\theta}{5 - 2\sqrt{37} \cos\theta} = - \frac{5 + \sqrt{37}\sin\theta}{1 - 2\sqrt{37} \sin\theta} \\ \implies 11\sqrt{37}\cos\theta + 3\sqrt{37}\sin\theta = 29\\ \implies \theta = 2\arctan\frac{\sqrt{37}-1}6 \approx 80.54^\circ$$
and we can confirm that $t=1$ and the intersection is $(3,2)$ in this case.