Mentz114 said:
Anant, if you're still following this, look at post 29. Country Boy has given the method.
Start with D^2 = x^2 + y^2, differentiate wrt time and you're there.
I don't think that this gives the relative speed. The relative speed is the magnitude of the derivative of the relative position vector, not the derivative of of the magnitude of the relative position vector. Post #29 and the above use the part of the relative velocity that is (edit) parallel to the relative position vector, but neglect the part of the relative velocity that is perpendicular to the relative position vector.
Let [itex]\vec{D}[/itex] be the relative position of B with respect to A. Then,
[tex]\vec{V} = \dot{\vec{D}} = \dot{D} \hat{D} + D \dot{\hat{D}}.[/tex]
The relative of B with respect to A is
[tex]\vec{D} = \vec{r_B} - \vec{r_A};[/tex]
differentiating gives
[tex]\vec{V} = \vec{v_B} - \vec{v_A};[/tex]
dotting this with itself gives
[tex]\vec{V} \cdot \vec{V} = \left( \vec{v_B} - \vec{v_A} \right) \cdot \left( \vec{v_B} - \vec{v_A} \right).[/tex]
Finally,
[tex]V^2 = v^2_A + v^2_B,[/tex]
since [itex]\vec{v}_A[/itex] is perpendicular to [itex]\vec{v}_B.[/itex]
country boy said:
However, the relation above is only correct for the case where A and B were at the origin at the same time.
The above non-relativistic stuff is: modified by relativity; not dependent on whether the observers go through the spatial origin. I think my relativistic version also is independent of spacetime origin, but I could be wrong. A good check would be a derivation using methods similar to those used in the standard derivation of the sums of parallel and anti-parallel (in C's frame) velocities.