formula for relative motion - Search