thumb|Figure 1: Illustration of Kepler's three laws with two planetary orbits.
In astronomy, Kepler's laws of planetary motion, published by Johannes Kepler between 1609 and 1619, describe the orbits of planets around the Sun.
The laws modified the heliocentric theory of Nicolaus Copernicus, replacing its circular orbits and epicycles with elliptical trajectories, and explaining how planetary velocities vary.
The three laws state that:
The orbit of a planet is an ellipse with the Sun at one of the two foci.
A line segment joining a planet and the Sun sweeps out equal areas during equal intervals of time.
The square of a planet's orbital period is proportional to the cube of the length of the semi-major axis of its orbit.
The elliptical orbits of planets were indicated by calculations of the orbit of Mars.
From this, Kepler inferred that other bodies in the Solar System, including those farther away from the Sun, also have elliptical orbits.
The second law helps to establish that when a planet is closer to the Sun, it travels faster.
The third law expresses that the farther a planet is from the Sun, the slower its orbital speed, and vice versa.
Isaac Newton showed in 1687 that relationships like Kepler's would apply in the Solar System as a consequence of his own laws of motion and law of universal gravitation.
Comparison to Copernicus
Johannes Kepler's laws improved the model of Copernicus.
If the eccentricities of the planetary orbits are taken as zero, then Kepler basically agreed with Copernicus:
The planetary orbit is a circle with epicycles.
The Sun is approximately at the center of the orbit.
The speed of the planet in the main orbit is constant.
The eccentricities of the orbits of those planets known to Copernicus and Kepler are small, so the foregoing rules give fair approximations of planetary motion, but Kepler's laws fit the observations better than does the model proposed by Copernicus.
Kepler's corrections are:
The planetary orbit is not a circle with epicycles, but an ellipse.
The Sun is not near the center but at a focal point of the elliptical orbit.
Neither the linear speed nor the angular speed of the planet in the orbit is constant, but the area speed (closely linked historically with the concept of angular momentum) is constant.
The eccentricity of the orbit of the Earth makes the time from the March equinox to the September equinox, around 186 days, unequal to the time from the September equinox to the March equinox, around 179 days.
A diameter would cut the orbit into equal parts, but the plane through the Sun parallel to the equator of the Earth cuts the orbit into two parts with areas in a 186 to 179 ratio, so the eccentricity of the orbit of the Earth is approximately
e \approx \frac{\pi}{4} \frac{186 - 179}{186 + 179} \approx 0.015,
which is close to the correct value (0.016710218).
The accuracy of this calculation requires that the two dates chosen be along the elliptical orbit's minor axis and that the midpoints of each half be along the major axis.
As the two dates chosen here are equinoxes, this will be correct when perihelion, the date the Earth is closest to the Sun, falls on a solstice.
The current perihelion, near January 4, is fairly close to the solstice of December 21 or 22.
Nomenclature
It took nearly two centuries for current formulation of Kepler's work to take on its settled form.
Voltaire's Eléments de la philosophie de Newton (Elements of Newton's Philosophy) of 1738 was the first publication to use the terminology of "laws".Voltaire, Eléments de la philosophie de Newton [Elements of Newton's Philosophy] (London, England: 1738).
See, for example:
* From p. 162:  "Par une des grandes loix de Kepler, toute Planete décrit des aires égales en temp égaux : par une autre loi non-moins sûre, chaque Planete fait sa révolution autour du Soleil en telle sort, que si, sa moyenne distance au Soleil est 10.
prenez le cube de ce nombre, ce qui sera 1000., & le tems de la révolution de cette Planete autour du Soleil sera proportionné à la racine quarrée de ce nombre 1000."
(By one of the great laws of Kepler, each planet describes equal areas in equal times ; by another law no less certain, each planet makes its revolution around the sun in such a way that if its mean distance from the sun is 10, take the cube of that number, which will be 1000, and the time of the revolution of that planet around the sun will be proportional to the square root of that number 1000.)
* From p. 205:  "Il est donc prouvé par la loi de Kepler & par celle de Neuton, que chaque Planete gravite vers le Soleil, ... "
(It is thus proved by the law of Kepler and by that of Newton, that each planet revolves around the sun ... )
The Biographical Encyclopedia of Astronomers in its article on Kepler (p. 620) states that the terminology of scientific laws for these discoveries was current at least from the time of Joseph de Lalande.De la Lande, Astronomie, vol. 1 (Paris, France:  Desaint & Saillant, 1764).
See, for example: *  From page 390:  " ... mais suivant la fameuse loi de Kepler, qui sera expliquée dans le Livre suivant (892), le rapport des temps périodiques est toujours plus grand que celui des distances, une planete cinq fois plus éloignée du soleil, emploie à faire sa révolution douze fois plus de temps ou environ; ... " ( ... but according to the famous law of Kepler, which will be explained in the following book [i.e., chapter] (paragraph 892), the ratio of the periods is always greater than that of the distances [so that, for example,] a planet five times farther from the sun, requires about twelve times or so more time to make its revolution [around the sun] ... )
*  From page 429:  "Les Quarrés des Temps périodiques sont comme les Cubes des Distances.
892.
La plus fameuse loi du mouvement des planetes découverte par Kepler, est celle du repport qu'il y a entre les grandeurs de leurs orbites, & le temps qu'elles emploient à les parcourir; ... "
(The squares of the periods are as the cubes of the distances.
892.
The most famous law of the movement of the planets discovered by Kepler is that of the relation between the sizes of their orbits and the times that the [planets] require to traverse them; ... )
*  From page 430:  "Les Aires sont proportionnelles au Temps.
895.
Cette loi générale du mouvement des planetes devenue si importante dans l'Astronomie, sçavior, que les aires sont proportionnelles au temps, est encore une des découvertes de Kepler; ... "
(Areas are proportional to times.  895.
This general law of the movement of the planets [which has] become so important in astronomy, namely, that areas are proportional to times, is one of Kepler's discoveries; ... )
*  From page 435:  "On a appellé cette loi des aires proportionnelles aux temps, Loi de Kepler, aussi bien que celle de l'article 892, du nome de ce célebre Inventeur; ... "
(One called this law of areas proportional to times (the law of Kepler) as well as that of paragraph 892, by the name of that celebrated inventor; ... )
It was the exposition of Robert Small, in An account of the astronomical discoveries of Kepler (1814) that made up the set of three laws, by adding in the third.Robert Small, An account of the astronomical discoveries of Kepler (London, England:  J Mawman, 1804), pp.
298–299.
Small also claimed, against the history, that these were empirical laws, based on inductive reasoning.Robert Small, An account of the astronomical discoveries of Kepler (London, England:  J. Mawman, 1804).
Further, the current usage of "Kepler's Second Law" is something of a misnomer.
Kepler had two versions, related in a qualitative sense: the "distance law" and the "area law".
The "area law" is what became the Second Law in the set of three; but Kepler did himself not privilege it in that way.
History
Kepler published his first two laws about planetary motion in 1609,Astronomia nova Aitiologitis, seu Physica Coelestis tradita Commentariis de Motibus stellae Martis ex observationibus G.V. Tychnonis.Prague 1609; Engl.
tr.
W.H. Donahue, Cambridge 1992.
having found them by analyzing the astronomical observations of Tycho Brahe.In his Astronomia nova, Kepler presented only a proof that Mars' orbit is elliptical.
Evidence that the other known planets' orbits are elliptical was presented only in 1621.
<br> See:  Johannes Kepler, Astronomia nova ... (1609), p. 285.
After having rejected circular and oval orbits, Kepler concluded that Mars' orbit must be elliptical.
From the top of page 285:  "Ergo ellipsis est Planetæ iter; ... "
(Thus, an ellipse is the planet's [i.e., Mars'] path; ... )
Later on the same page:  " ... ut sequenti capite patescet:  ubi simul etiam demonstrabitur, nullam Planetæ relinqui figuram Orbitæ, præterquam perfecte ellipticam; ... " ( ... as will be revealed in the next chapter:  where it will also then be proved that any figure of the planet's orbit must be relinquished, except a perfect ellipse; ... )
And then:  "Caput LIX.
Demonstratio, quod orbita Martis, ... , fiat perfecta ellipsis: ... "
(Chapter 59.
Proof that Mars' orbit, ... is a perfect ellipse: ... )
The geometric proof that Mars' orbit is an ellipse appears as Protheorema XI on pages 289–290.
<br> Kepler stated that every planet travels in elliptical orbits having the Sun at one focus in:  Johannes Kepler,  Epitome Astronomiae Copernicanae [Summary of Copernican Astronomy] (Linz ("Lentiis ad Danubium"), (Austria): Johann Planck, 1622), book 5, part 1, III.
De Figura Orbitæ (III.
On the figure [i.e., shape] of orbits), pages 658–665.
From p. 658:  "Ellipsin fieri orbitam planetæ ... "
(Of an ellipse is made a planet's orbit ... ).
From p. 659:  " ... Sole (Foco altero huius ellipsis) ... " ( ... the Sun (the other focus of this ellipse) ... ).In his Astronomia nova ... (1609)
, Kepler did not present his second law in its modern form.
He did that only in his Epitome of 1621.
Furthermore, in 1609, he presented his second law in two different forms, which scholars call the "distance law" and the "area law".
*  His "distance law" is presented in:  "Caput XXXII.
Virtutem quam Planetam movet in circulum attenuari cum discessu a fonte."
(Chapter 32.
The force that moves a planet circularly weakens with distance from the source.)
See:  Johannes Kepler, Astronomia nova ... (1609), pp.
165–167.
On page 167, Kepler states:  " ... , quanto longior est αδ quam αε, tanto diutius moratur Planeta in certo aliquo arcui excentrici apud δ, quam in æquali arcu excentrici apud ε." ( ... , as αδ is longer than αε, so much longer will a planet remain on a certain arc of the eccentric near δ than on an equal arc of the eccentric near ε.)
That is, the farther a planet is from the Sun (at the point α), the slower it moves along its orbit, so a radius from the Sun to a planet passes through equal areas in equal times.
However, as Kepler presented it, his argument is accurate only for circles, not ellipses.
*  His "area law" is presented in:  "Caput LIX.
Demonstratio, quod orbita Martis, ... , fiat perfecta ellipsis: ... "
(Chapter 59.
Proof that Mars' orbit, ... , is a perfect ellipse: ... )
, Protheorema XIV and XV, pp.
291–295.
On the top p. 294, it reads:   "Arcum ellipseos, cujus moras metitur area AKN, debere terminari in LK, ut sit AM."
(The arc of the ellipse, of which the duration is delimited [i.e., measured] by the area AKM, should be terminated in LK, so that it [i.e., the arc] is AM.)
In other words, the time that Mars requires to move along an arc AM of its elliptical orbit is measured by the area of the segment AMN of the ellipse (where N is the position of the Sun), which in turn is proportional to the section AKN of the circle that encircles the ellipse and that is tangent to it.
Therefore, the area that is swept out by a radius from the Sun to Mars as Mars moves along an arc of its elliptical orbit is proportional to the time that Mars requires to move along that arc.
Thus, a radius from the Sun to Mars sweeps out equal areas in equal times.
In 1621, Kepler restated his second law for any planet:  Johannes Kepler, Epitome Astronomiae Copernicanae [Summary of Copernican Astronomy] (Linz ("Lentiis ad Danubium"), (Austria):  Johann Planck, 1622), book 5, page 668.
From page 668:  "Dictum quidem est in superioribus, divisa orbita in particulas minutissimas æquales:  accrescete iis moras planetæ per eas, in proportione intervallorum inter eas & Solem."
(It has been said above that, if the orbit of the planet is divided into the smallest equal parts, the times of the planet in them increase in the ratio of the distances between them and the sun.)
That is, a planet's speed along its orbit is inversely proportional to its distance from the Sun.
(The remainder of the paragraph makes clear that Kepler was referring to what is now called angular velocity.)
Kepler's third law was published in 1619.Johannes Kepler, Harmonices Mundi [The Harmony of the World] (Linz, (Austria):  Johann Planck, 1619), book 5, chapter 3, p. 189.
From the bottom of p. 189:  "Sed res est certissima exactissimaque quod proportio qua est inter binorum quorumcunque Planetarum tempora periodica, sit præcise sesquialtera proportionis mediarum distantiarum, ... "
(But it is absolutely certain and exact that the proportion between the periodic times of any two planets is precisely the sesquialternate proportion [i.e., the ratio of 3:2] of their mean distances, ... ")<br> An English translation of Kepler's Harmonices Mundi is available as:  Johannes Kepler with E. J. Aiton, A. M. Duncan, and J. V. Field, trans.
, The Harmony of the World (Philadelphia, Pennsylvania:  American Philosophical Society, 1997); see especially p. 411.
Kepler had believed in the Copernican model of the Solar System, which called for circular orbits, but he could not reconcile Brahe's highly precise observations with a circular fit to Mars' orbit – Mars coincidentally having the highest eccentricity of all planets except Mercury.
His first law reflected this discovery.
In 1621, Kepler noted that his third law applies to the four brightest moons of Jupiter.In 1621, Johannes Kepler noted that Jupiter's moons obey (approximately) his third law in his Epitome Astronomiae Copernicanae [Epitome of Copernican Astronomy] (Linz ("Lentiis ad Danubium"), (Austria):  Johann Planck, 1622), book 4, part 2, pages 554–555.
From pp.
554–555:  " ... plane ut est cum sex planet circa Solem, ... prodit Marius in suo mundo Ioviali ista 3.5.8.13 (vel 14. Galilæo) ...
Periodica vero tempora prodit idem Marius ... sunt maiora simplis, minora vero duplis."
(... just as it is clearly [true] among the six planets around the Sun, so also it is among the four [moons] of Jupiter, because around the body of Jupiter any [satellite] that can go farther from it, orbits slower, and even that [orbit's period] is not in the same proportion, but greater [than the distance from Jupiter]; that is, 3/2 (sescupla) of the proportion of each of the distances from Jupiter, which is clearly the very [proportion] as is used for the six planets above.
In his [book] The World of Jupiter [Mundus Jovialis, 1614], [Simon Mayr or] "Marius"  [1573–1624] presents these distances, from Jupiter, of the four [moons] of Jupiter: 3, 5, 8, 13 (or 14 [according to] Galileo) [Note: The distances of Jupiter's moons from Jupiter are expressed as multiples of Jupiter's diameter.]
...
Mayr presents their time periods: 1 day 18 1/2 hours, 3 days 13 1/3 hours, 7 days 2 hours, 16 days 18 hours: for all [of these data] the proportion is greater than double, thus greater than [the proportion] of the distances 3, 5, 8, 13 or 14, although less than [the proportion] of the squares, which double the proportions of the distances, namely 9, 25, 64, 169 or 196, just as [a power of] 3/2 is also greater than 1 but less than 2.)
Godefroy Wendelin also made this observation in 1643.Godefroy Wendelin wrote a letter to Giovanni Battista Riccioli about the relationship between the distances of the Jovian moons from Jupiter and the periods of their orbits, showing that the periods and distances conformed to Kepler's third law.
See:  Joanne Baptista Riccioli, Almagestum novum ... (Bologna (Bononia), (Italy):  Victor Benati, 1651), volume 1, page 492 Scholia III.
In the margin beside the relevant paragraph is printed: Vendelini ingeniosa speculatio circa motus & intervalla satellitum Jovis.
(Wendelin's clever speculation about the movement and distances of Jupiter's satellites.)
From p. 492:  "III.
Non minus Kepleriana ingeniosa est Vendelini ...
& D. 7.
164/1000. pro penextimo, & D. 16.
756/1000. pro extimo."
(No less clever [than] Kepler's is the most keen astronomer Wendelin's investigation of the proportion of the periods and distances of Jupiter's satellites, which he had communicated to me with great generosity [in] a very long and very learned letter.
So, just as in [the case of] the larger planets, the planets' mean distances from the Sun are respectively in the 3/2 ratio of their periods ; so the distances of these minor planets of Jupiter from Jupiter (which are 3, 5, 8, and 14) are respectively in the 3/2 ratio of [their] periods (which are 1.769 days for the innermost [Io], 3.554 days for the next to the innermost [Europa], 7.164 days for the next to the outermost [Ganymede], and 16.756 days for the outermost [Callisto]).)
The second law, in the "area law" form, was contested by Nicolaus Mercator in a book from 1664, but by 1670 his Philosophical Transactions were in its favour.
Mercator criticized Cassini's method of finding, from three observations, an orbit's line of apsides.
Cassini had assumed (wrongly) that planets move uniformly along their elliptical orbits.
From p. 1174:  "Sed cum id Observationibus nequaquam congruere animadverteret, mutavit sententiam, & lineam veri motus Planetæ æqualibus temporibus æquales areas Ellipticas verrere professus est: ...  "
(But when he noticed that it didn't agree at all with observations, he changed his thinking, and he declared that a line [from the Sun to a planet, denoting] a planet's true motion, sweeps out equal areas of an ellipse in equal periods of time: ... [which is the "area" form of Kepler's second law]
) As the century proceeded it became more widely accepted.
The reception in Germany changed noticeably between 1688, the year in which Newton's Principia was published and was taken to be basically Copernican, and 1690, by which time work of Gottfried Leibniz on Kepler had been published.
Newton was credited with understanding that the second law is not special to the inverse square law of gravitation, being a consequence just of the radial nature of that law, whereas the other laws do depend on the inverse square form of the attraction.
Carl Runge and Wilhelm Lenz much later identified a symmetry principle in the phase space of planetary motion (the orthogonal group O(4) acting) which accounts for the first and third laws in the case of Newtonian gravitation, as conservation of angular momentum does via rotational symmetry for the second law.
Formulary
The mathematical model of the kinematics of a planet subject to the laws allows a large range of further calculations.
First law
The orbit of every planet is an ellipse with the Sun at one of the two foci.
thumb|Figure 2: Kepler's first law placing the Sun at the focus of an elliptical orbit
thumb|Figure 3: Heliocentric coordinate system (r,θ) for ellipse.
Also shown are: semi-major axis a, semi-minor axis b and semi-latus rectum p; center of ellipse and its two foci marked by large dots.
For ,  and for , .
Mathematically, an ellipse can be represented by the formula:
r = \frac{p}{1 + \varepsilon\, \cos\theta},
where  p is the semi-latus rectum, ε is the eccentricity of the ellipse, r is the distance from the Sun to the planet, and θ is the angle to the planet's current position from its closest approach, as seen from the Sun.
So (r, θ) are polar coordinates.
For an ellipse 0 < ε < 1 ; in the limiting case ε = 0, the orbit is a circle with the Sun at the centre (i.e. where there is zero eccentricity).
At θ = 0°, perihelion, the distance is minimum
r_\min = \frac{p}{1 + \varepsilon}
At θ = 90° and at θ = 270° the distance is equal to p.
At θ = 180°, aphelion, the distance is maximum (by definition, aphelion is – invariably – perihelion plus 180°)
r_\max = \frac{p}{1 - \varepsilon}
The semi-major axis a is the arithmetic mean between rmin and rmax:
\begin{align}   r_\max - a &= a - r_\min \\[3pt]            a &= \frac{p}{1 - \varepsilon^2} \end{align}
The semi-minor axis b is the geometric mean between rmin and rmax:
\begin{align}   \frac{r_\max}{b} &= \frac{b}{r_\min} \\[3pt]                  b &= \frac{p}{\sqrt{1 - \varepsilon^2}} \end{align}
The semi-latus rectum p is the harmonic mean between rmin and rmax:
\begin{align}   \frac{1}{r_\min} - \frac{1}{p} &= \frac{1}{p} - \frac{1}{r_\max} \\[3pt]                               pa &= r_\max r_\min = b^2\, \end{align}
The eccentricity ε is the coefficient of variation between rmin and rmax:
\varepsilon = \frac{r_\max - r_\min}{r_\max + r_\min}.
The area of the ellipse is
A = \pi a b\,.
The special case of a circle is ε = 0, resulting in r = p =  rmin = rmax = a = b and A = πr2.
Second law
A line joining a planet and the Sun sweeps out equal areas during equal intervals of time.Bryant, Jeff; Pavlyk, Oleksandr.
"Kepler's Second Law", Wolfram Demonstrations Project.
Retrieved December 27, 2009.
thumb|The same (blue) area is swept out in a fixed time period.
The green arrow is velocity.
The purple arrow directed towards the Sun is the acceleration.
The other two purple arrows are acceleration components parallel and perpendicular to the velocity.
The orbital radius and angular velocity of the planet in the elliptical orbit will vary.
This is shown in the animation: the planet travels faster when closer to the Sun, then slower when farther from the Sun.
Kepler's second law states that the blue sector has constant area.
In a small time dt the planet sweeps out a small triangle having base line r and height r \, d\theta and area dA = \frac{1}{2} \cdot r \cdot r \, d\theta, so the constant areal velocity is \frac{dA}{dt} = \frac{r^2}{2} \frac{d\theta}{dt}.
The area enclosed by the elliptical orbit is \pi ab.
So the period P satisfies
P \cdot \frac{r^2}{2} \frac{d\theta}{dt} = \pi ab
and the mean motion of the planet around the Sun
n = \frac{2\pi}{P}
satisfies
r^2\,d\theta = abn\,dt.
And so, \frac{dA}{dt} = \frac{a b n}{2} = \frac{\pi a b}{P}.
Third law
The ratio of the square of an object's orbital period with the cube of the semi-major axis of its orbit is the same for all objects orbiting the same primary.
This captures the relationship between the distance of planets from the Sun, and their orbital periods.
Kepler enunciated in 1619 this third law in a laborious attempt to determine what he viewed as the "music of the spheres" according to precise laws, and express it in terms of musical notation.Burtt, Edwin.
The Metaphysical Foundations of Modern Physical Science.
p.
52. It was therefore known as the harmonic law.
Using Newton's law of gravitation (published 1687), this relation can be found in the case of a circular orbit by setting the centripetal force equal to the gravitational force:
mr\omega^2 = G\frac{mM}{r^2}
Then, expressing the angular velocity in terms of the orbital period and then rearranging, we find Kepler's Third Law:
mr\left(\frac{2\pi}{T}\right)^2 = G\frac{mM}{r^2} \rightarrow T^2 = \left(\frac{4\pi^2}{GM} \right)r^3 \rightarrow  T^2 \propto r^3
A more detailed derivation can be done with general elliptical orbits, instead of circles, as well as orbiting the center of mass, instead of just the large mass.
This results in replacing a circular radius, r, with the semi-major axis, a, of the elliptical relative motion of one mass relative to the other, as well as replacing the large mass M with M + m.
However, with planet masses being so much smaller than the Sun, this correction is often ignored.
The full corresponding formula is:
\frac{a^3}{T^2} = \frac{G(M + m)}{4\pi^2} \approx \frac{GM}{4\pi^2} \approx 7.496 \cdot 10^{-6} \left(\frac{\text{AU}^3}{\text{days}^2}\right) \text{ is constant}
where M is the mass of the Sun, m is the mass of the planet, G is the gravitational constant, T is the orbital period and a is the elliptical semi-major axis, and \text{AU}  is the Astronomical Unit, the average distance from earth to the sun.
The following table shows the data used by Kepler to empirically derive his law:
Data used by Kepler (1618)
Upon finding this pattern Kepler wrote:
For comparison, here are modern estimates:
Modern data (Wolfram Alpha Knowledgebase 2018)
Planetary acceleration
Isaac Newton computed in his Philosophiæ Naturalis Principia Mathematica the acceleration of a planet moving according to Kepler's first and second law.
The direction of the acceleration is towards the Sun.
The magnitude of the acceleration is inversely proportional to the square of the planet's distance from the Sun (the inverse square law).
This implies that the Sun may be the physical cause of the acceleration of planets.
However, Newton states in his Principia that he considers forces from a mathematical point of view, not a physical, thereby taking an instrumentalist view.I. Newton, Principia, p. 408 in the translation of I.B. Cohen and A. Whitman Moreover, he does not assign a cause to gravity.I. Newton, Principia, p. 943 in the translation of I.B. Cohen and A. Whitman
Newton defined the force acting on a planet to be the product of its mass and the acceleration (see Newton's laws of motion).
So:
Every planet is attracted towards the Sun.
The force acting on a planet is directly proportional to the mass of the planet and is inversely proportional to the square of its distance from the Sun.
The Sun plays an unsymmetrical part, which is unjustified.
So he assumed, in Newton's law of universal gravitation:
All bodies in the Solar System attract one another.
The force between two bodies is in direct proportion to the product of their masses and in inverse proportion to the square of the distance between them.
As the planets have small masses compared to that of the Sun, the orbits conform approximately to Kepler's laws.
Newton's model improves upon Kepler's model, and fits actual observations more accurately.
(See two-body problem.)
Below comes the detailed calculation of the acceleration of a planet moving according to Kepler's first and second laws.
Acceleration vector
From the heliocentric point of view consider the vector to the planet \mathbf{r} = r\hat{\mathbf{r}}  where  r is the distance to the planet and \hat{\mathbf{r}} is a unit vector pointing towards the planet.
\frac{d\hat{\mathbf{r}}}{dt} = \dot{\hat{\mathbf{r}}} = \dot{\theta}\hat{\boldsymbol\theta},\qquad   \frac{d\hat{\boldsymbol\theta}}{dt} = \dot{\hat{\boldsymbol\theta}} = -\dot{\theta}\hat{\mathbf{r}}
where \hat{\boldsymbol\theta} is the unit vector whose direction is 90 degrees counterclockwise of \hat{\mathbf{r}}, and \theta is the polar angle, and where a dot on top of the variable signifies differentiation with respect to time.
Differentiate the position vector twice to obtain the velocity vector and the acceleration vector: \begin{align}    \dot{\mathbf{r}} &= \dot{r}\hat{\mathbf{r}} + r\dot{\hat{\mathbf{r}}}                      = \dot{r}\hat{\mathbf{r}} + r\dot{\theta}\hat{\boldsymbol{\theta}}, \\   \ddot{\mathbf{r}} &= \left(\ddot{r}\hat{\mathbf{r}}                              + \dot{r}\dot{\hat{\mathbf{r}}}                        \right)                        + \left(\dot{r}\dot{\theta} \hat{\boldsymbol{\theta}}                                + r\ddot{\theta}\hat{\boldsymbol{\theta}}                                + r\dot{\theta}\dot{\hat{\boldsymbol{\theta}}}                          \right)                     = \left(\ddot{r} - r\dot{\theta}^2\right)\hat{\mathbf{r}}                       + \left(r\ddot{\theta} + 2\dot{r}\dot{\theta}\right)\hat{\boldsymbol{\theta}}.
\end{align}
So \ddot{\mathbf{r}} = a_r \hat{\boldsymbol{r}}+a_\theta\hat{\boldsymbol{\theta}} where the radial acceleration is a_r = \ddot{r} - r\dot{\theta}^2 and the transversal acceleration is a_\theta = r\ddot{\theta} + 2\dot{r}\dot{\theta}.
Inverse square law
Kepler's second law says that r^2\dot{\theta} = nab is constant.
The transversal acceleration a_\theta is zero: \frac{d\left(r^2\dot{\theta}\right)}{dt}   = r\left(2\dot{r}\dot{\theta} + r{\ddot{\theta}}\right)   = ra_\theta = 0.
So the acceleration of a planet obeying Kepler's second law is directed towards the Sun.
The radial acceleration a_\text{r} is a_\text{r}   = \ddot{r} - r\dot{\theta}^2   = \ddot{r} - r\left(\frac{nab}{r^2}\right)^2   = \ddot{r} - \frac{n^2 a^2 b^2}{r^3}.
Kepler's first law states that the orbit is described by the equation: \frac{p}{r} = 1 + \varepsilon\cos(\theta).
Differentiating with respect to time -\frac{p\dot{r}}{r^2} = -\varepsilon\sin(\theta)\,\dot{\theta} or p\dot{r} = nab\,\varepsilon\sin(\theta).
Differentiating once more p\ddot{r}   = nab\varepsilon\cos(\theta)\, \dot{\theta}   = nab\varepsilon\cos(\theta)\, \frac{nab}{r^2}   = \frac{n^2 a^2 b^2}{r^2}\varepsilon\cos(\theta).
The radial acceleration a_\text{r} satisfies pa_\text{r}   = \frac{n^2 a^2 b^2}{r^2}\varepsilon\cos(\theta) - p\frac{n^2 a^2 b^2}{r^3}   = \frac{n^2 a^2 b^2}{r^2}\left(\varepsilon\cos(\theta) - \frac{p}{r}\right).
Substituting the equation of the ellipse gives pa_\text{r} = \frac{n^2 a^2 b^2}{r^2}\left(\frac{p}{r} - 1 - \frac{p}{r}\right) = -\frac{n^2 a^2}{r^2}b^2.
The relation b^2 = pa gives the simple final result a_\text{r} = -\frac{n^2 a^3}{r^2}.
This means that the acceleration vector \mathbf{\ddot{r}} of any planet obeying Kepler's first and second law satisfies the inverse square law \mathbf{\ddot{r}} = -\frac{\alpha}{r^2}\hat{\mathbf{r}} where \alpha = n^2 a^3 is a constant, and \hat{\mathbf{r}} is the unit vector pointing from the Sun towards the planet, and r\, is the distance between the planet and the Sun.
Since mean motion n=\frac{2\pi}{T} where T is the period, according to Kepler's third law, \alpha has the same value for all the planets.
So the inverse square law for planetary accelerations applies throughout the entire Solar System.
The inverse square law is a differential equation.
The solutions to this differential equation include the Keplerian motions, as shown, but they also include motions where the orbit is a hyperbola or parabola or a straight line.
(See Kepler orbit.)
Newton's law of gravitation
By Newton's second law, the gravitational force that acts on the planet is: \mathbf{F} = m_\text{planet} \mathbf{\ddot{r}} = - m_\text{planet} \alpha r^{-2} \hat{\mathbf{r}}
where m_\text{planet} is the mass of the planet and \alpha has the same value for all planets in the Solar System.
According to Newton's third law, the Sun is attracted to the planet by a force of the same magnitude.
Since the force is proportional to the mass of the planet, under the symmetric consideration, it should also be proportional to the mass of the Sun, m_\text{Sun}.
So \alpha = Gm_\text{Sun} where G is the gravitational constant.
The acceleration of solar system body number i is, according to Newton's laws: \mathbf{\ddot{r}}_i = G\sum_{j \ne i} m_j r_{ij}^{-2} \hat{\mathbf{r}}_{ij}  where m_j  is the mass of body j, r_{ij}  is the distance between body i and body j, \hat{\mathbf{r}}_{ij}  is the unit vector from body i towards body j, and the vector summation is over all bodies in the Solar System, besides i itself.
In the special case where there are only two bodies in the Solar System, Earth and Sun, the acceleration becomes \mathbf{\ddot{r}}_\text{Earth} = Gm_\text{Sun} r_{\text{Earth},\text{Sun}}^{-2} \hat{\mathbf{r}}_{\text{Earth},\text{Sun}} which is the acceleration of the Kepler motion.
So this Earth moves around the Sun according to Kepler's laws.
If the two bodies in the Solar System are Moon and Earth the acceleration of the Moon becomes \mathbf{\ddot{r}}_\text{Moon} = Gm_\text{Earth} r_{\text{Moon},\text{Earth}}^{-2} \hat{\mathbf{r}}_{\text{Moon},\text{Earth}}
So in this approximation, the Moon moves around the Earth according to Kepler's laws.
In the three-body case the accelerations are \begin{align}     \mathbf{\ddot{r}}_\text{Sun} &=       Gm_\text{Earth} r_{\text{Sun},\text{Earth}}^{-2} \hat{\mathbf{r}}_{\text{Sun},\text{Earth}} +       Gm_\text{Moon} r_{\text{Sun},\text{Moon}}^{-2} \hat{\mathbf{r}}_{\text{Sun},\text{Moon}} \\   \mathbf{\ddot{r}}_\text{Earth} &=       Gm_\text{Sun} r_{\text{Earth},\text{Sun}}^{-2} \hat{\mathbf{r}}_{\text{Earth},\text{Sun}} +       Gm_\text{Moon} r_{\text{Earth},\text{Moon}}^{-2} \hat{\mathbf{r}}_{\text{Earth},\text{Moon}} \\    \mathbf{\ddot{r}}_\text{Moon} &=       Gm_\text{Sun} r_{\text{Moon},\text{Sun}}^{-2} \hat{\mathbf{r}}_{\text{Moon},\text{Sun}} +       Gm_\text{Earth} r_{\text{Moon},\text{Earth}}^{-2} \hat{\mathbf{r}}_{\text{Moon},\text{Earth}} \end{align}
These accelerations are not those of Kepler orbits, and the three-body problem is complicated.
But Keplerian approximation is the basis for perturbation calculations.
(See Lunar theory.)
Position as a function of time {{anchor|position_function_time}}
Kepler used his two first laws to compute the position of a planet as a function of time.
His method involves the solution of a transcendental equation called Kepler's equation.
The procedure for calculating the heliocentric polar coordinates (r,θ) of a planet as a function of the time t since perihelion, is the following five steps:
Compute the mean motion , where P is the period.
Compute the mean anomaly , where t is the time since perihelion.
Compute the eccentric anomaly E by solving Kepler's equation: M = E - \varepsilon\sin E , where \varepsilon is the eccentricity.
Compute the true anomaly θ by solving the equation: (1 - \varepsilon) \tan^2 \frac{\theta}{2} = (1 + \varepsilon)\tan^2\frac{E}{2}
Compute the heliocentric distance r: r = a(1 - \varepsilon\cos E) , where a is the semimajor axis.
The Cartesian velocity vector can then be calculated as \mathbf{v} = \frac{\sqrt{\mu a}}{r} \left\langle -\sin{E}, \sqrt{1-\varepsilon^2} \cos{E}\right\rangle, where \mu is the standard gravitational parameter.
The important special case of circular orbit, ε = 0, gives .
Because the uniform circular motion was considered to be normal, a deviation from this motion was considered an anomaly.
The proof of this procedure is shown below.
Mean anomaly, ''M''
thumb|200px| Figure 5: Geometric construction for Kepler's calculation of θ.
The Sun (located at the focus) is labeled S and the planet P.
The auxiliary circle is an aid to calculation.
Line xd is perpendicular to the base and through the planet P.
The shaded sectors are arranged to have equal areas by positioning of point y.
The Keplerian problem assumes an elliptical orbit and the four points:
s the Sun (at one focus of ellipse);
z the perihelion
c the center of the ellipse
p the planet
and
a = |cz|, distance between center and perihelion, the semimajor axis,
\varepsilon = {|cs| \over a}, the eccentricity,
b = a\sqrt{1 - \varepsilon^2}, the semiminor axis,
r = |sp| , the distance between Sun and planet.
\theta = \angle zsp, the direction to the planet as seen from the Sun, the true anomaly.
The problem is to compute the polar coordinates (r,θ) of the planet from the time since perihelion, t.
It is solved in steps.
Kepler considered the circle with the major axis as a diameter, and
x, the projection of the planet to the auxiliary circle
y, the point on the circle such that the sector areas |zcy| and |zsx| are equal,
M = \angle zcy, the mean anomaly.
The sector areas are related by |zsp| = \frac{b}{a} \cdot |zsx|.
The circular sector area |zcy| = \frac{a^2 M}2.
The area swept since perihelion, |zsp| = \frac{b}{a} \cdot|zsx| = \frac{b}{a} \cdot |zcy| = \frac{b}{a} \cdot \frac{a^2 M}{2} = \frac{abM}{2}, is by Kepler's second law proportional to time since perihelion.
So the mean anomaly, M, is proportional to time since perihelion, t.
M = nt, where n is the mean motion.
Eccentric anomaly, ''E''
When the mean anomaly M is computed, the goal is to compute the true anomaly θ.
The function θ = f(M) is, however, not elementary.
Kepler's solution is to use E = \angle zcx, x as seen from the centre, the eccentric anomaly as an intermediate variable, and first compute E as a function of M by solving Kepler's equation below, and then compute the true anomaly θ from the eccentric anomaly E.
Here are the details.
\begin{align}             |zcy| &= |zsx| = |zcx| - |scx| \\   \frac{a^2 M}{2} &= \frac{a^2 E}2 - \frac{a\varepsilon \cdot a\sin E}{2} \end{align}
Division by a2/2 gives Kepler's equation M = E - \varepsilon\sin E.
This equation gives M as a function of E. Determining E for a given M is the inverse problem.
Iterative numerical algorithms are commonly used.
Having computed the eccentric anomaly E, the next step is to calculate the true anomaly θ.
But note:  Cartesian position coordinates with reference to the center of ellipse are (a cos E, b sin E)
With reference to the Sun (with coordinates (c,0) = (ae,0) ), r = (a cos E – ae, b sin E)
True anomaly would be arctan(ry/rx), magnitude of r would be .
True anomaly, ''θ''
Note from the figure that \overrightarrow{cd} = \overrightarrow{cs} + \overrightarrow{sd} so that a\cos E = a \varepsilon + r\cos\theta.
Dividing by a and inserting from Kepler's first law \frac{r}{a} = \frac{1 - \varepsilon^2}{1 + \varepsilon\cos\theta} to get
\cos E = \varepsilon + \frac{1 - \varepsilon^2}{1 + \varepsilon\cos\theta} \cos\theta          = \frac{\varepsilon (1 + \varepsilon\cos\theta) + \left(1 - \varepsilon^2\right)\cos\theta}{1 + \varepsilon\cos\theta}          = \frac{\varepsilon + \cos\theta}{1 + \varepsilon\cos\theta}.
The result is a usable relationship between the eccentric anomaly E and the true anomaly θ.
A computationally more convenient form follows by substituting into the trigonometric identity: \tan^2\frac{x}{2} = \frac{1 - \cos x}{1 + \cos x}.
Get \begin{align}   \tan^2\frac{E}{2}     &= \frac{1 - \cos E}{1 + \cos E}      = \frac{1 - \frac{\varepsilon + \cos\theta}{1 + \varepsilon\cos\theta}}{1 + \frac{\varepsilon + \cos \theta}{1 + \varepsilon\cos\theta}} \\[8pt]     &= \frac{(1 + \varepsilon\cos\theta) - (\varepsilon + \cos\theta)}{(1 + \varepsilon\cos\theta) + (\varepsilon + \cos\theta)}     = \frac{1 - \varepsilon}{1 + \varepsilon} \cdot \frac{1 - \cos\theta}{1 + \cos\theta}     = \frac{1 - \varepsilon}{1 + \varepsilon} \tan^2\frac{\theta}{2}.
\end{align}
Multiplying by 1 + ε gives the result (1 - \varepsilon)\tan^2\frac{\theta}{2} = (1 + \varepsilon)\tan^2\frac{E}{2}
This is the third step in the connection between time and position in the orbit.
Distance, ''r''
The fourth step is to compute the heliocentric distance r from the true anomaly θ by Kepler's first law: r(1 + \varepsilon\cos\theta) = a\left(1 - \varepsilon^2\right)
Using the relation above between θ and E the final equation for the distance r is: r = a(1 - \varepsilon\cos E).
See also
Circular motion
Free-fall time
Gravity
Kepler orbit
Kepler problem
Kepler's equation
Laplace–Runge–Lenz vector
Specific relative angular momentum, relatively easy derivation of Kepler's laws starting with conservation of angular momentum
Explanatory notes
Citations
General bibliography
Kepler's life is summarized on pages 523–627 and Book Five of his magnum opus, Harmonice Mundi (harmonies of the world), is reprinted on pages 635–732 of On the Shoulders of Giants: The Great Works of Physics and Astronomy (works by Copernicus, Kepler, Galileo, Newton, and Einstein).
Stephen Hawking, ed. 2002
A derivation of Kepler's third law of planetary motion is a standard topic in engineering mechanics classes.
See, for example, pages 161–164 of .
Murray and Dermott, Solar System Dynamics, Cambridge University Press 1999,
V. I. Arnold, Mathematical Methods of Classical Mechanics, Chapter 2.
Springer 1989,
External links
B.Surendranath Reddy; animation of Kepler's laws:  applet
"Derivation of Kepler's Laws" (from Newton's laws) at Physics Stack Exchange.
Crowell, Benjamin, Light and Matter, an online book that gives a proof of the first law without the use of calculus (see section 15.7)
David McNamara and Gianfranco Vidali, Kepler's Second Law – Java Interactive Tutorial, https://web.archive.org/web/20060910225253/http://www.phy.syr.edu/courses/java/mc_html/kepler.html, an interactive Java applet that aids in the understanding of Kepler's Second Law.
Audio – Cain/Gay (2010) Astronomy Cast Johannes Kepler and His Laws of Planetary Motion
University of Tennessee's Dept. Physics & Astronomy: Astronomy 161 page on Johannes Kepler: The Laws of Planetary Motion
Equant compared to Kepler: interactive model
Kepler's Third Law:interactive model
Solar System Simulator (Interactive Applet)
Kepler and His Laws, educational web pages by David P. Stern
