If we start with,

d = r1t1                d = r2t2 

 

then,

r1 = d/ t1                       r2 = d/ t2

 

and

t1 = d/ r1              t2 = d/ r2

 

Total distance is 2d because both equations travel over the same distance.

Therefore,

2d  =  ravg. rate (t1+ t2)

 

then,

2d  =  ravg. rate (d/ r1 + d/ r2)

 

distance can be removed and the equation is

2 = ravg. rate (1/ r1 + 1/ r2)

 

ravg. rate = 2/(1/ r1 + 1/ r2) =  (2 r1 r2)/ ( r1 + r2) =

(r1 r2)/ ( r1/2 + r2/2) = (GM)2 /AM