In the year 1666, Newton was sitting in his garden at Woolsthorpe, reflecting on the nature of gravity, that remarkable power which causes all bodies to descend towards the centre of the earth. As this power does not sensibly diminish at the greatest height we can reach he conceived it possible that it might reach to the moon and affect its motion, and even hold it in its orbit. At such a distance, however, he considered some diminution of the force probable, and in order to estimate the diminution, he supposed that the primary planets were carried round the sun by the same force. On this assumption, by comparing the periods of the different planets with their distances from the sun, he found that the force must decrease as the squares of the distances from the sun. In drawing this conclusion he supposed the planets to move in circular orbits round the sun.

Having thus obtained a law, he next tried to ascertain if it applied to the moon and the earth, to determine if the force emanating from the earth was sufficient, if diminished in the duplicate ratio of the moon's distance, to retain the moon in its orbit. For this purpose it was necessary to compare the space through which heavy bodies fall in a second at the surface of the earth with the space through which the moon, as it were, falls to the earth in a second of time, while revolving in a circular orbit. Owing to an erroneous estimate of the earth's diameter, he found the facts not quite in accordance with the supposed law; he found that the force which on this assumption would act upon the moon would be one-sixth more than required to retain it in its orbit.

Because of this incongruity he let the matter drop for a time. But, in 1679, his mind again reverted to the subject; and in 1682, having obtained a correct measurement of the diameter of the earth, he repeated his calculations of 1666. In the progress of his calculations he saw that the result which he had formerly expected was likely to be produced, and he was thrown into such a state of nervous irritability that he was unable to carry on the calculation. In this state of mind he entrusted it to one of his friends, and he had the high satisfaction of finding his former views amply realised. The force of gravity which regulated the fall of bodies at the earth's surface, when diminished as the square of the moon's distance from the earth, was found to be exactly equal to the centrifugal force of the moon as deduced from her observed distance and velocity.

The influence of such a result upon such a mind may be more easily conceived than described. The whole material universe was opened out before him; the sun with all his attending planets; the planets with all their satellites; the comets wheeling in every direction in their eccentric orbits; and the system of the fixed stars stretching to the remotest limits of space. All the varied and complicated movements of the heavens, in short, must have been at once presented to his mind as the necessary result of that law which he had established in reference to the earth and the moon.

After extending this law to the other bodies of the system, he composed a series of propositions on the motion of the primary planets about the sun, which was sent to London about the end of 1683, and was soon afterwards communicated to the Royal Society.

Newton's discovery was claimed by Hooke, who certainly aided Newton to reach the truth, and was certainly also on the track of the same law.

Between 1686 and 1687 appeared the three books of Newton's immortal work, known as the "Principia." The first and second book are entitled "On the Motion of Bodies," and the third "On the System of the World."

In this great work Newton propounds the principle that "every particle of matter in the universe is attracted by, or gravitates to, every other particle of matter with a force inversely proportional to the squares of their distances." From the second law of Kepler, namely, the proportionality of the areas to the times of their description, Newton inferred that the force which keeps a planet in its orbit is always directed to the sun. From the first law of Kepler, that every planet moves in an ellipse with the sun in one of its foci, he drew the still more general inference that the force by which the planet moves round that focus varies inversely as the square of its distance from the focus. From the third law of Kepler, which connects the distances and periods of the planets by a general rule, Newton deduced the equality of gravity in them all towards the sun, modified only by their different distances from its centre; and in the case of terrestrial bodies, he succeeded in verifying the equality of action by numerous and accurate experiments.

By taking a more general view of the subject, Newton showed that a conic section was the only curve in which a body could move when acted upon by a force varying inversely as the square of the distance; and he established the conditions depending on the velocity and the primitive position of the body which were requisite to make it describe a circular, an elliptical, a parabolic, or a hyperbolic orbit.

It still remained to show whether the force resided in the centre of planets or in their individual particles; and Newton demonstrated that if a spherical body acts upon a distant body with a force varying as the distance of this body from the centre of the sphere, the same effect will be produced as if each of its particles acted upon the distant body according to the same law.