Newton's law of universal gravitation states that every massive particle in the universe attracts every other massive particle with a force which is directly proportional to the product of their masses and inversely proportional to the square of the distance between them. (Separately it was shown that large sphericallysymmetrical masses attract and are attracted as if all their mass were concentrated at their centers.) This is a general physical law derived from empirical observations by what Newton called induction.^{[1]} It is a part of classical mechanics and was formulated in Newton's work Philosophiae Naturalis Principia Mathematica ("the Principia"), first published on 5 July 1687. (When Newton's book was presented in 1686 to the Royal Society, Robert Hooke made a claim that Newton had obtained the inverse square law from him – see History section below.) In modern language, the law states the following:
Every point mass attracts every single other point mass by a force pointing along the line intersecting both points. The force is directly proportional to the product of the two masses and inversely proportional to the square of the distance between the point masses:^{[2]}
where:
 ,
 F is the magnitude of the gravitational force between the two point masses,
 G is the gravitational constant,
 m_{1} is the mass of the first point mass,
 m_{2} is the mass of the second point mass, and
 r is the distance between the two point masses.
Assuming SI units, F is measured in newtons (N), m_{1} and m_{2} in kilograms (kg), r in meters (m), and the constant G is approximately equal to 6.673×10^{−11} N m^{2} kg^{−2}. The value of the constant G was first accurately determined from the results of the Cavendish experiment conducted by the British scientist Henry Cavendish in 1798, although Cavendish did not himself calculate a numerical value for G^{[3]}. This experiment was also the first test of Newton's theory of gravitation between masses in the laboratory. It took place 111 years after the publication of Newton's Principia and 71 years after Newton's death, so none of Newton's calculations could use the value of G; instead he could only calculate a force relative to another force.
Newton's law of gravitation resembles Coulomb's law of electrical forces, which is used to calculate the magnitude of electrical force between two charged bodies. Both are inversesquare laws, in which force is inversely proportional to the square of the distance between the bodies. Coulomb's Law has the product of two charges in place of the product of the masses, and the electrostatic constant in place of the gravitational constant.
Newton's law has since been superseded by Einstein's theory of general relativity, but it continues to be used as an excellent approximation of the effects of gravity. Relativity is only required when there is a need for extreme precision, or when dealing with gravitation for extremely massive and dense objects.
Contents 
In 1686, when the first book of Newton's 'Principia' was presented to the Royal Society, Robert Hooke claimed that Newton had from him the "notion" of "the rule of the decrease of Gravity, being reciprocally as the squares of the distances from the Center". At the same time (according to Edmond Halley's contemporary report) Hooke agreed that "the Demonstration of the Curves generated therby" was wholly Newton's.^{[4]}
In this way arose the question what, if anything, did Newton owe to Hooke? – a subject extensively discussed since that time, and on which some points still excite some controversy.
Robert Hooke published his ideas about the "System of the World" in the 1660s, when he read to the Royal Society on 21 March 1666 a paper "On gravity", "concerning the inflection of a direct motion into a curve by a supervening attractive principle", and he published them again in somewhat developed form in 1674, as an addition to "An Attempt to Prove the Motion of the Earth from Observations".^{[5]} Hooke announced in 1674 that he planned to "explain a System of the World differing in many particulars from any yet known", based on three "Suppositions": that "all Coelestial Bodies whatsoever, have an attraction or gravitating power towards their own Centers" [and] "they do also attract all the other Coelestial Bodies that are within the sphere of their activity"; that "all bodies whatsoever that are put into a direct and simple motion, will so continue to move forward in a straight line, till they are by some other effectual powers deflected and bent..."; and that "these attractive powers are so much the more powerful in operating, by how much the nearer the body wrought upon is to their own Centers". Thus Hooke clearly postulated mutual attractions between the Sun and planets, in a way that increased with nearness to the attracting body, together with a principle of linear inertia.
Hooke's statements up to 1674 made no mention, however, that an inverse square law applies or might apply to these attractions. Hooke's gravitation was also not yet universal, though it approached universality more closely than previous hypotheses.^{[6]} He also did not provide accompanying evidence or mathematical demonstration. On the latter two aspects, Hooke himself stated in 1674: "Now what these several degrees [of attraction] are I have not yet experimentally verified"; and as to his whole proposal: "This I only hint at present", "having my self many other things in hand which I would first compleat, and therefore cannot so well attend it" (i.e. "prosecuting this Inquiry").^{[5]} It was later on, in writing on 6 January 167980 to Newton, that Hooke communicated his "supposition ... that the Attraction always is in a duplicate proportion to the Distance from the Center Reciprocall, and Consequently that the Velocity will be in a subduplicate proportion to the Attraction and Consequently as Kepler Supposes Reciprocall to the Distance."^{[7]} (The inference about the velocity was incorrect.^{[8]})
Hooke's correspondence of 16791680 with Newton mentioned not only this inverse square supposition for the decline of attraction with increasing distance, but also, in Hooke's opening letter to Newton, of 24 November 1679, an approach of "compounding the celestiall motions of the planetts of a direct motion by the tangent & an attractive motion towards the centrall body".^{[9]}
A recent assessment (by Ofer Gal) about the early history of the inverse square law is that "by the late 1660s," the assumption of an "inverse proportion between gravity and the square of distance was rather common and had been advanced by a number of different people for different reasons".^{[10]} (The same author does credit Hooke with a significant and even seminal contribution, but he treats Hooke's claim of priority on the inverse square point as uninteresting since several individuals besides Newton and Hooke had at least suggested it, and he points instead to the idea of "compounding the celestiall motions" and the conversion of Newton's thinking away from 'centrifugal' and towards 'centripetal' force as Hooke's significant contributions.)
Newton, faced in May 1686 with Hooke's claim on the inverse square law, denied that Hooke was to be credited as author of the idea, giving reasons. Among these, Newton recalled that the idea had been known to and discussed with Sir Christopher Wren previous to Hooke's 1679 letter.^{[11]}. Newton also pointed out and acknowledged prior work of others,^{[12]} including Bullialdus,^{[13]} (who suggested, but without demonstration, that there was an attractive force from the Sun in the inverse square proportion to the distance), and Borelli^{[14]} (who suggested, also without demonstration, that there was a centrifugal tendency in counterbalance with a gravitational attraction towards the Sun so as to make the planets move in ellipses). D T Whiteside has described the contribution to Newton's thinking that came from Borelli's book (a copy of which was in Newton's library at his death).^{[15]}
Newton also firmly claimed that even if it had happened that he had first heard of the inverse square proportion from Hooke, which it had not, he would still have some rights to it in view of his demonstrations of its accuracy, because Hooke, without evidence in favour of the supposition, could only guess that it was approximately valid "at great distances from the center": According to Newton, writing while the 'Principia' was still at prepublication stage, there were so many apriori reasons to doubt the accuracy of the inversesquare law (especially close to an attracting sphere) that "without my" (Newton's) "Demonstrations, to which Mr Hook is yet a stranger, it cannot be beleived by a judicious Philosopher to be any where accurate."^{[16]} (This remark refers among other things to Newton's finding, supported by mathematical demonstration, that if the inverse square law applies to tiny particles, then even a large spherically symmetrical mass also attracts masses external to its surface, even close up, exactly as if all its own mass were concentrated at its center. Thus Newton gave a justification, otherwise lacking, for applying the inverse square law to large spherical planetary masses as if they were tiny particles.^{[17]} In addition, Newton had formulated in Propositions 4345 of Book 1,^{[18]} and associated sections of Book 3, a sensitive test of the accuracy of the inverse square law, in which he showed that only where the law of force is accurately as the inverse square of the distance will the directions of orientation of the planets' orbital ellipses stay constant as they are observed to do apart from small effects attributable to interplanetary perturbations.)
In regard to evidence that still survives of the earlier history, manuscripts written by Newton in the 1660s show that Newton himself had arrived by 1669 at proofs that in a circular case of planetary motion, 'endeavour to recede' (centrifugal force by another name) had an inversesquare relation with distance from the center.^{[19]} At that time, Newton was thinking and writing in terms of 'endeavour to recede' from a center, i.e. what was later called centrifugal force. After his 16791680 correspondence with Hooke, Newton adopted the language of inward or centripetal force. According to Newton scholar J Bruce Brackenridge, although much has been made of the change in language and difference of point of view, as between centrifugal or centripetal forces, the actual computations and proofs remained the same either way. They also involved the combination of tangential and radial displacements, which Newton was making in the 1660s. The lesson offered by Hooke to Newton here, although significant, was one of perspective and did not change the analysis.^{[20]} This background shows there was basis for Newton to deny deriving the inverse square law from Hooke.
Newton also clearly expressed the concept of linear inertia long before his correspondence with Hooke: for this Newton was indebted to Descartes' work published in 1644.^{[21]}
On the other hand, Newton did accept and acknowledge, in all editions of the 'Principia', that Hooke (but not exclusively Hooke) had separately appreciated the inverse square law in the solar system. Newton acknowledged Wren, Hooke and Halley in this connection in the Scholium to Proposition 4 in Book 1.^{[22]} Newton also acknowledged to Halley that his correspondence with Hooke in 167980 had reawakened his dormant interest in astronomical matters, but that did not mean, according to Newton, that Hooke had told Newton anything new or original: "yet am I not beholden to him for any light into that business but only for the diversion he gave me from my other studies to think on these things & for his dogmaticalness in writing as if he had found the motion in the Ellipsis, which inclined me to try it ...".^{[12]})
Since the time of Newton and Hooke, scholarly discussion has also touched on the question whether Hooke's 1679 mention of 'compounding the motions' gave Newton with something new and valuable, even though that was not a claim actually voiced by Hooke at the time. As described above, Newton's manuscripts of the 1660s do show him actually combining tangential motion with the effects of radially directed force or endeavour, for example in his derivation of the inverse square relation for the circular case. They also show Newton clearly expressing the concept of linear inertia—for which he was indebted to Descartes' work published 1644 (as Hooke probably was).^{[21]} These matters do not appear to have been learned by Newton from Hooke.
Nevertheless, a number of authors have had more to say about what Newton gained from Hooke and some aspects remain controversial.^{[23]} The fact that most of Hooke's private papers had been destroyed or disappeared does not help to establish the truth.
Newton's role in relation to the inverse square law was not as it has sometimes been represented, he did not claim to think it up as a bare idea. What Newton did was to show how the inversesquare law of attraction had many necessary mathematical connections with observable features of the motions of bodies in the solar system; and that they were related in such a way that the observational evidence and the mathematical demonstrations, taken together, gave reason to believe that the inverse square law was not just approximately true but exactly true (to the accuracy achievable in Newton's time and for about two centuries afterwards – and with some loose ends of points that could not yet be certainly examined, where the implications of the theory had not yet been adequately identified or calculated).^{[24]}^{[25]}
In the light of the background described above, it becomes understandable how, about thirty years after Newton's death in 1727, Alexis Clairaut, a mathematical astronomer eminent in his own right in the field of gravitational studies, wrote after reviewing what Hooke published, that "One must not think that this idea ... of Hooke diminishes Newton's glory"; and that "the example of Hooke" serves "to show what a distance there is between a truth that is glimpsed and a truth that is demonstrated".^{[26]}^{[27]}
If the bodies of question have spatial extent (rather than being theoretical point masses), then the gravitational force between them is calculated by summing the contributions of the notional point masses which constitute the bodies. In the limit, as the component point masses become "infinitely small", this entails integrating the force (in vector form, see below) over the extents of the two bodies.
In this way it can be shown that an object with a sphericallysymmetric distribution of mass exerts the same gravitational attraction on external bodies as if all the object's mass were concentrated at a point at its centre.^{[2]} (This is not generally true for nonsphericallysymmetrical bodies.)
For points inside a sphericallysymmetric distribution of matter, Newton's Shell theorem can be used to find the gravitational force. The theorem tells us how different parts of the mass distribution affect the gravitational force measured at a point located a distance r_{0} from the center of the mass distribution:^{[28]}
As a consequence, for example, within a shell of uniform thickness and density there is no net gravitational acceleration anywhere within the hollow sphere.
Furthermore, inside a uniform sphere the gravity increases linearly with the distance to the center; the increase due to the additional mass is 1.5 times the decrease due to the larger distance to the center. Thus, if a spherically symmetric body has a uniform core and a uniform mantle with a density that is less than 2/3 of that of the core, then the gravity initially decreases outwardly beyond the boundary, and if the sphere is large enough, further outward the gravity increases again, and eventually it exceeds the gravity at the core/mantle boundary. The gravity of the Earth may be highest at the core/mantle boundary.
Newton' law of universal gravitation can be written as a vector equation to account for the direction of the gravitational force as well as its magnitude. In this formula, quantities in bold represent vectors.
where
It can be seen that the vector form of the equation is the same as the scalar form given earlier, except that F is now a vector quantity, and the right hand side is multiplied by the appropriate unit vector. Also, it can be seen that F_{12} = −F_{21}.
The gravitational field is a vector field that describes the gravitational force which would be applied on an object in any given point in space, per unit mass. It is actually equal to the gravitational acceleration at that point.
It is a generalization of the vector form, which becomes particularly useful if more than 2 objects are involved (such as a rocket between the Earth and the Moon). For 2 objects (e.g. object 2 is a rocket, object 1 the Earth), we simply write r instead of r_{12} and m instead of m_{2} and define the gravitational field g(r) as:
so that we can write:
This formulation is dependent on the objects causing the field. The field has units of acceleration; in SI, this is m/s^{2}.
Gravitational fields are also conservative; that is, the work done by gravity from one position to another is pathindependent. This has the consequence that there exists a gravitational potential field V(r) such that
If m_{1} is a point mass or the mass of a sphere with homogeneous mass distribution, the force field g(r) outside the sphere is isotropic, i.e., depends only on the distance r from the center of the sphere. In that case
Newton's description of gravity is sufficiently accurate for many practical purposes and is therefore widely used. Deviations from it are small when the dimensionless quantities φ/c^{2} and (v/c)^{2} are both much less than one, where φ is the gravitational potential, v is the velocity of the objects being studied, and c is the speed of light.^{[29]} For example, Newtonian gravity provides an accurate description of the Earth/Sun system, since
where r_{orbit} is the radius of the Earth's orbit around the Sun.
In situations where either dimensionless parameter is large, then general relativity must be used to describe the system. General relativity reduces to Newtonian gravity in the limit of small potential and low velocities, so Newton's law of gravitation is often said to be the lowgravity limit of general relativity.
The observed fact that the gravitational mass and the inertial mass is the same for all objects is unexplained within Newton's Theories. General Relativity takes this as a basic principle. See the Equivalence Principle. In point of fact, the experiments of Galileo Galilei, decades before Newton, established that objects that have the same air or fluid resistance are accelerated by the force of the Earth's gravity equally, regardless of their different inertial masses. Yet, the forces and energies that are required to accelerate various masses is completely dependent upon their different inertial masses, as can be see from Newton's Second Law of Motion, F = ma.
The problem is that Newton's Theories and his mathematical formulas explain and permit the (inaccurate) calculation of the effects of the precession of the perhelions of the orbits and the deflection of light rays. However, they did not and do not explain the equivalence of the behavior of various masses under the influence of gravity, independent of the quantities of matter involved.
While Newton was able to formulate his law of gravity in his monumental work, he was deeply uncomfortable with the notion of "action at a distance" which his equations implied. In 1692, in his third letter to Bentley, he wrote: "That one body may act upon another at a distance through a vacuum without the mediation of anything else, by and through which their action and force may be conveyed from one another, is to me so great an absurdity that, I believe, no man who has in philosophic matters a competent faculty of thinking could ever fall into it."
He never, in his words, "assigned the cause of this power". In all other cases, he used the phenomenon of motion to explain the origin of various forces acting on bodies, but in the case of gravity, he was unable to experimentally identify the motion that produces the force of gravity (although he invented two mechanical hypotheses in 1675 and 1717). Moreover, he refused to even offer a hypothesis as to the cause of this force on grounds that to do so was contrary to sound science. He lamented that "philosophers have hitherto attempted the search of nature in vain" for the source of the gravitational force, as he was convinced "by many reasons" that there were "causes hitherto unknown" that were fundamental to all the "phenomena of nature". These fundamental phenomena are still under investigation and, though hypotheses abound, the definitive answer has yet to be found. And in Newton's 1713 General Scholium in the second edition of Principia: "I have not yet been able to discover the cause of these properties of gravity from phenomena and I feign no hypotheses... It is enough that gravity does really exist and acts according to the laws I have explained, and that it abundantly serves to account for all the motions of celestial bodies."^{[31]}
These objections were mooted by Einstein's theory of general relativity, in which gravitation is an attribute of curved spacetime instead of being due to a force propagated between bodies. In Einstein's theory, masses distort spacetime in their vicinity, and other particles move in trajectories determined by the geometry of spacetime. This allowed a description of the motions of light and mass that was consistent with all available observations.
