since gravitational force is attractive in nature, so if there are two particles of m1 & m2 .
So One Force will be on m1 which will be directed towards m 2. i.e
And other force wiil be on m2 which will be directed towards m 1 i.e
Clearly, It can be seen that Because thsese forces are attracted to each other and direction of each force is opposite to other one.
Work done is given by
W = (Fcos)d
here Fcos is the component of applied force in direction of displacement and d is magnitude of displacement.
Multiplying a vector by a negative real number
If a vector is multiplied by a negative number (for example -2, -3 ,-5, -60 unit etc.) or a scalar not only its magnitude is changed but its direction also reversed.