According to Newton's theory of gravitation, the gravitational interaction between two bodies can be expressed by a force directly proportional to the product of the masses of the bodies and inversely proportional to the square of the distance that separates them, this means that the force of attraction can be calculated taking the mass of the bodies and the distance that separates them.
It is expressed with the following formula:
where (F) is force (G) is universal gravitational constant (m1) is mass of the body1 (m2) is mass of the body2 and (r) is the distance between the bodies.