The time (t1) taken by the person to travel distance x with velocity v1 is given by
t1=v1x...(1)
The time (t2) taken by the person to travel distance x with velocity v2 is given by
t2=v2x...(2)
The formula to calculate the average speed (v) of the person is given by
v=t1+t22x...(3)
Substitute the expressions from equations (1) and (2) into equation (3) to obtain the required relation.
v=⇒⇒(v1x+v2x)2xv1x+v2x=v2xv2=v11+v21