Theory:

How did Newton predict the inverse-square rule?
 
By the 16th century, sufficient data on the movement of planets had been collected by many astronomers. Based on those data, Johannes Kepler derived three laws, which govern the motion of planets. These are called Kepler's laws.
They are
 
Kepler's first law:
 
The orbit of a planet is an ellipse with the sun at one of its foci.
 
Kepler's second law:
 
The line joining the sun and the planet sweeps out equal areas in equal intervals of time. Therefore, if the travel time from \( A\) to \(B\) is the same as from \(C\) to \(D\), then \(OAB\) and \(OCD\) are equal.
 
Kepler's third law:
 
The cube of a planet's mean distance from the sun is directly proportional to the square root of its orbital period (\(T\)).
 
It is mathematically given by,
 
r3T2r3T2=Constant
 
Assume that the planetary orbits are circular. Assume the orbital velocity is \(v\), and the radius of the orbit is \(r\).
 
Then the force acting on an orbiting planet is given by
 
F=mv2r1
 
If T is time period, then its velocity is given by
 
v=2πrTThiscanberewrittenas,v21r×r3T2Since,r3T2isaconstantbyKeplersthirdlaw,Therefore,theequationbecomesv21r2
 
Combing, the equation \(1\) and \(2\)
 
Fv2r(Weknow,v21r)F1r2
 
Thus, Newton got the inverse square rule from Kepler.