If I have an object-1 at $p_1$ with velocity $v_1$ and object-2 at $p_2$ with velocity $v_2$. How would you determine if the objects are moving towards each other?
The requirement is that it must be proved in a single expression.
All I know is that the dot product must be involved.
One idea that simplifies this kind of problem greatly is to take the viewpoint of an observer sitting on one of the object. Suppose we put an observer on Object 1.
In that frame of reference, Object 1 is at the origin of coordinates (the observer's position) and is not moving at all, but Object 2 is (possibly) somewhere else and is (possibly) moving.
Mathematically, we change coordinates so that Object 1 is at the origin by subtracting $p_1$ from all positions. So Object 1 is at $p_1 - p_1 = 0$, and Object 2 is at $p_2 - p_1$. We also change all velocities by subtracting $v_1$, so object 1 has velocity $v_1 - v_1 = 0$, and Object 2 has velocity $v_2 - v_1$.
Using the observer's frame of reference, then, does the observer see Object 2 approaching or receding?