Notice that the condition is just another way of saying (because the only way that could be equal to 2 would be if f(x) and g(x) are antipodal points on the sphere). So the line joining f(x) and g(x) does not pass through the origin. Therefore we can define . That's the required homotopy.