# Kepler's laws of planetary motion

Illustration of Kepler's three laws with two planetary orbits. (1) The orbits are ellipses, with focal points f1 and f2 for the first planet and f1 and f3 for the second planet. The sun is placed in focal point f1. (2) The two shaded sectors A1 and A2 have the same surface area and the time for planet 1 to cover segment A1 is equal to the time to cover segment A2. (3) The total orbit times for planet 1 and planet 2 have a ratio a13 / 2:a23 / 2.

In astronomy, Kepler's Laws of Planetary Motion are three mathematical laws that describe the motion of planets in the Solar System. German mathematician and astronomer Johannes Kepler ( 1571– 1630) discovered them.

Kepler studied the observations of the legendarily precise Danish astronomer Tycho Brahe. Around 1605, Kepler found that Brahe's observations of the planets' positions followed three relatively simple mathematical laws.

Kepler's laws challenged Aristotelean and Ptolemaic astronomy and physics. His assertion that the Earth moved, his use of ellipses rather than epicycles, and his proof that the planets' speeds varied, changed astronomy and physics. Nevertheless, the physical explanation of the planets' behaviour came almost a century later, when Isaac Newton was able to deduce Kepler's laws from Newton's own laws of motion and his law of universal gravitation, using his invention of calculus. Other models of gravitation would give empirically false results.

Kepler's three laws are:

1. The orbit of every planet is an ellipse with the sun at one of the foci. An ellipse is characterized by its two focal points; see illustration. Thus, Kepler rejected the ancient Aristotelean, Ptolemaic,and Copernican belief in circular motion.
2. A line joining a planet and the sun sweeps out equal areas during equal intervals of time as the planet travels along its orbit. This means that the planet travels faster while close to the sun and slows down when it is farther from the sun. With his law, Kepler destroyed the Aristotelean astronomical theory that planets have uniform velocity.
3. The squares of the orbital periods of planets are directly proportional to the cubes of the semi-major axes (the "half-length" of the ellipse) of their orbits. This means not only that larger orbits have longer periods, but also that the speed of a planet in a larger orbit is lower than in a smaller orbit.

Kepler's laws are formulated below, and are derived from Newton's laws, using heliocentric polar coordinates $\ (r,\theta)$. However, Kepler's laws can alternatively be formulated and derived using Cartesian coordinates.

## Mathematical description

### First law

Kepler's first law

The first law says: "The orbit of every planet is an ellipse with the sun at one of the foci."

The mathematics of the ellipse is as follows.

The equation is

$r=\frac{p}{1+\epsilon\cdot\cos\theta}$

where (r,θ) are heliocentric polar coordinates for the planet, p is the semi-latus rectum, and ε is the eccentricity, which is greater than or equal to zero, and less than one.

For θ=0 the planet is at the perihelion at minimum distance:

$r_\mathrm{min}=\frac{p}{1+\epsilon}$

for θ=90°: r=p, and for θ=180° the planet is at the aphelion at maximum distance:

$r_\mathrm{max}=\frac{p}{1-\epsilon}$

The semi-major axis is the arithmetic mean between rmin and rmax:

$a=\frac{p}{1-\epsilon^2}$

The semi-minor axis is the geometric mean between rmin and rmax:

$b=\frac p{\sqrt{1-\epsilon^2}}$

and it is also the geometric mean between the semimajor axis and the semi latus rectum:

$\frac a b=\frac b p$

### Second law

Illustration of Kepler's second law.

The second law: "A line joining a planet and the sun sweeps out equal areas during equal intervals of time."

This is also known as the law of equal areas. It is a direct consequence of the law of conservation of angular momentum; see the derivation below.

Suppose a planet takes one day to travel from point A to B. The lines from the Sun to A and B, together with the planet orbit, will define a (roughly triangular) area. This same amount of area will be formed every day regardless of where in its orbit the planet is. This means that the planet moves faster when it is closer to the sun.

This is because the sun's gravity accelerates the planet as it falls toward the sun, and decelerates it on the way back out, but Kepler did not know that reason.

The two laws permitted Kepler to calculate the position, (r,θ), of the planet, based on the time since perihelion, t, and the orbital period, P. The calculation is done in four steps.

1. Compute the mean anomaly M from the formula
$M=\frac{2\pi t}{P}$
2. Compute the eccentric anomaly E by numerically solving Kepler's equation:
$\ M=E-\epsilon\cdot\sin E$
3. Compute the true anomaly θ by the equation:
$\tan\frac \theta 2 = \sqrt{\frac{1+\epsilon}{1-\epsilon}}\cdot\tan\frac E 2$
4. Compute the heliocentric distance r from the first law:
$r=\frac p {1+\epsilon\cdot\cos\theta}$

The proof of this procedure is shown below.

### Third law

The third law : "The squares of the orbital periods of planets are directly proportional to the cubes of the semi-major axis of the orbits." Thus, not only does the length of the orbit increase with distance, the orbital speed decreases, so that the increase of the orbital period is more than proportional.

$P^2 \propto a^3$
P = orbital period of planet
a = semimajor axis of orbit

So the expression P2·a–3 has the same value for all planets in the Solar System as it has for Earth. When certain units are chosen, namely P is measured in sidereal years and a in astronomical units, P2·a–3 has the value 1 for all planets in the Solar System.

In SI units: $\frac{P^{2}}{a^{3}} = 3.00\times 10^{-19} \frac{s^{2}}{m^{3}} \pm \ 0.7%\,$.

The law, when applied to circular orbits where the acceleration is proportional to a·P−2, shows that the acceleration is proportional to a·a−3 = a−2, in accordance with Newton's law of gravitation.

The general equation, which Kepler did not know, is

$\left({\frac{P}{2\pi}}\right)^2 = {a^3 \over G (M+m)},$

where G is the gravitational constant, M is the mass of the sun, and m is the mass of planet. The latter appears in the equation since the equation of motion involves the reduced mass. Note that P is time per orbit and P/2π is time per radian.

See the actual figures: attributes of major planets.

This law is also known as the harmonic law.

### Position as a function of time

The Keplerian problem assumes an elliptical orbit and the four points:

• s the sun (at one focus of ellipse);
• z the perihelion
• c the centre of the ellipse
• p the planet

and

$\ a=|cz|,$ distance from centre to perihelion, the semimajor axis,
$\ \varepsilon={|cs|\over a},$ the eccentricity,
$\ b=a\sqrt{1-\varepsilon^2},$ the semiminor axis,
$\ r=|sp| ,$ the distance from sun to planet.

and the angle

$\nu=\angle zsp,$ 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 began by adding the orbit's auxiliary circle (that with the major axis as a diameter) and defined these points:

• x is the projection of the planet to the auxiliary circle; then the area $|zsx|=\frac a b \cdot|zsp|$
• y is a point on the auxiliary circle such that the area $\ |zcy|=|zsx|$

and

$M=\angle zcy$, y as seen from the centre, the mean anomaly.

The area of the circular sector $\ |zcy| = \frac{a^2 M}2$, and 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 {a b M}{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={2 \pi t \over T},$

where T is the orbital period.

The mean anomaly M is first 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.

$\ |zcy|=|zsx|=|zcx|-|scx|$
$\frac{a^2 M}2=\frac{a^2 E}2-\frac {a\varepsilon\cdot a\sin E}2$

Division by a²/2 gives Kepler's equation

$M=E-\varepsilon\cdot\sin E$.

The catch is that Kepler's equation cannot be rearranged to isolate E. The function E=f(M) is not an elementary formula. Kepler's equation is solved either iteratively by a root-finding algorithm or, as derived in the article on eccentric anomaly, by an infinite series

$E\approx M+\left(\varepsilon-\frac18\varepsilon^3\right)\sin M+\frac12\varepsilon^2\sin 2M+\frac38\varepsilon^3\sin 3M+ \cdots$

For the small ε typical of the planets (except Pluto), such series are quite accurate with only a few terms.

Having computed the eccentric anomaly E from Kepler's equation, the next step is to calculate the true anomaly ν from the eccentric anomaly E.

Note from the geometry of the problem that

$a\cdot\cos E=a\cdot\varepsilon+r\cdot\cos \nu.$

Dividing by a and inserting from Kepler's first law

$\ \frac r a =\frac{1-\varepsilon^2}{1+\varepsilon\cdot\cos \nu}$

to get

$\cos E =\varepsilon+\frac{1-\varepsilon^2}{1+\varepsilon\cdot\cos \nu}\cdot\cos \nu =\frac{\varepsilon\cdot(1+\varepsilon\cdot\cos \nu)+(1-\varepsilon^2)\cdot\cos \nu}{1+\varepsilon\cdot\cos \nu} =\frac{\varepsilon +\cos \nu}{1+\varepsilon\cdot\cos \nu}.$

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

$\tan^2\frac{E}{2} =\frac{1-\cos E}{1+\cos E} =\frac{1-\frac{\varepsilon+\cos \nu}{1+\varepsilon\cdot\cos \nu}}{1+\frac{\varepsilon+\cos \nu}{1+\varepsilon\cdot\cos \nu}} =\frac{(1+\varepsilon\cdot\cos \nu)-(\varepsilon+\cos \nu)}{(1+\varepsilon\cdot\cos \nu)+(\varepsilon+\cos \nu)} =\frac{1-\varepsilon}{1+\varepsilon}\cdot\frac{1-\cos \nu}{1+\cos \nu}=\frac{1-\varepsilon}{1+\varepsilon}\cdot\tan^2\frac{\nu}{2}.$

Multiplying by (1+ε)/(1−ε) and taking the square root gives the result

$\tan\frac \nu2=\sqrt\frac{1+\varepsilon}{1-\varepsilon}\cdot\tan\frac E2.$

We have now completed the third step in the connection between time and position in the orbit.

One could even develop a series computing ν directly from M.

The fourth step is to compute the heliocentric distance r from the true anomaly ν by Kepler's first law:

$\ r=a\cdot\frac{1-\varepsilon^2}{1+\varepsilon\cdot\cos \nu}.$

## Derivation from Newton's laws

Kepler's laws are about the motion of the planets around the sun, while Newton's laws more generally are about the motion of point particles attracting each other by the force of gravitation. In the special case where there are only two particles, and one of them is much lighter than the other, and the distance between the particles remains limited, then the lighter particle moves around the heavy particle as a planet around the sun according to Kepler's laws, as shown below. Newton's laws however also admit other solutions, where the trajectory of the lighter particle is a parabola or a hyperbola. These solutions show that there is a limitation to the applicability of Kepler's first law, which states that the trajectory will always be an ellipse. In the case where one particle is not much lighter than the other, it turns out that each particle moves around their common centre of mass, so that the general two body problem is reduced to the special case where one particle is much lighter than the other. While Kepler's laws are expressed either in geometrical language or as equations connecting the coordinates of the planet and the time variable with the orbital elements, Newton's second law is a differential equation. So the derivations below involve the art of solving differential equations. The second law is derived first, as the derivation of the first law depends on the derivation of the second law.

### Deriving Kepler's second law

Newton's law of gravitation says that "every object in the universe attracts every other object along a line of the centers of the objects, proportional to each object's mass, and inversely proportional to the square of the distance between the objects," and his second law of motion says that "the mass times the acceleration is equal to the force." So the mass of the planet times the acceleration vector of the planet equals the mass of the sun times the mass of the planet, divided by the square of the distance, times minus the radial unit vector, times a constant of proportionality. This is written:

$m\cdot\ddot\mathbf{r} = \frac{M\cdot m}{r^2}\cdot(-\hat{\mathbf{r}})\cdot G$

where a dot on top of the variable signifies differentiation with respect to time, and the second dot indicates the second derivative.

Assume that the planet is so much lighter than the sun that the acceleration of the sun can be neglected.

$\dot\hat{\mathbf{r}} = \dot\theta \hat{\boldsymbol\theta}$

where $\hat{\boldsymbol\theta}$ is the tangential unit vector, and

$\dot\hat{\boldsymbol\theta} = -\dot\theta \hat{\mathbf{r}}.$

So the position vector

$\mathbf{r} = r \hat{\mathbf{r}}$

is differentiated twice to give the velocity vector and the acceleration vector

$\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} = (\ddot r \hat{\mathbf{r}} +\dot r \dot\hat{\mathbf{r}} ) + (\dot r\dot\theta \hat{\boldsymbol\theta} + r\ddot\theta \hat{\boldsymbol\theta} + r\dot\theta \dot\hat{\boldsymbol\theta}) = (\ddot r - r\dot\theta^2) \hat{\mathbf{r}} + (r\ddot\theta + 2\dot r \dot\theta) \hat{\boldsymbol\theta}.$

Note that for constant distance, $\ r$, the planet is subject to the centripetal acceleration, $r\dot\theta^2$, and for constant angular speed, $\dot\theta$, the planet is subject to the coriolis acceleration, $2\dot r \dot\theta$.

Inserting the acceleration vector into Newton's laws, and dividing by m, gives the vector equation of motion

$(\ddot r - r\dot\theta^2) \hat{\mathbf{r}} + (r\ddot\theta + 2\dot r \dot\theta) \hat{\boldsymbol\theta}= -GMr^{-2}\hat{\mathbf{r}}$

Equating component, we get the two ordinary differential equations of motion, one for the radial acceleration and one for the tangential acceleration:

$\ddot r - r\dot\theta^2 = -GMr^{-2},$
$r\ddot\theta + 2\dot r\dot\theta = 0.$

In order to derive Kepler's second law only the tangential acceleration equation is needed. Divide it by $\ r \dot\theta:$

$\frac{\ddot\theta}{\dot\theta} +2\frac{\dot r}{r}=0$

and integrate:

$\log\dot\theta +2\log r = \log\ell,$

where $\log\ell$ is a constant of integration, and exponentiate:

$r^2\dot \theta =\ell .$

This says that the specific angular momentum $r^2 \dot \theta$ is a constant of motion, even if both the distance $\ r$ and the angular speed $\dot\theta$ vary.

The area swept out from time t1 to time t2,

$\ \int_{t_1}^{t_2}\frac 1 2 \cdot base\cdot height\cdot dt = \int_{t_1}^{t_2}\frac 1 2 \cdot r\cdot r\dot \theta\cdot dt=\frac 1 2 \cdot\ell \cdot(t_2-t_1)$

depends only on the duration t2t1. This is Kepler's second law.

### Deriving Kepler's first law

The expression

$p=\ell ^2 G^{-1}M^{-1}$

has the dimension of length and is used to make the equations of motion dimensionless. We define

$\ u =pr^{-1}$

and get

$-GMr^{-2}=-\ell^2 p^{-3}u^{2}$

and

$\ \dot \theta =\ell r^{-2}=\ell p^{-2}u^2.$

Differentiation with respect to time is transformed into differentiation with respect to angle:

$\ \dot X=\frac {dX}{d \theta}\cdot \dot\theta=\frac {dX}{d \theta}\cdot\ell p^{-2}u^2.$

Differentiate

$\ r =pu^{-1}$

twice:

$\dot r = \frac{d(pu^{-1})}{d\theta}\cdot\ell p^{-2}u^{2} = -pu^{-2}\frac{du}{d\theta}\cdot\ell p^{-2}u^{2}= -\ell p^{-1}\frac{du}{d\theta}$
$\ddot r = \frac{d\dot r}{d\theta}\cdot\ell p^{-2}u^{2}= \frac{d}{d\theta}(-\ell p^{-1}\frac{du}{d\theta})\cdot\ell p^{-2}u^{2}= -\ell^2 p^{-3}u^{2}\frac{d^2 u}{d\theta^2}$

Substitute into the radial equation of motion

$\ddot r - r\dot\theta^2 = -GMr^{-2}$

and get

$(-\ell^2 p^{-3}u^2\frac{d^2u}{d\theta^2}) - (pu^{-1})(\ell p^{-2}u^2)^2 = -\ell ^2 p^{-3} u^2$

Divide by $-\ell^2 p^{-3}u^2$ to get a simple non-homogeneous linear differential equation for the orbit of the planet:

$\frac{d^2u}{d\theta^2} + u = 1 .$

An obvious solution to this equation is the circular orbit

$\ u = 1.$

Other solutions are obtained by adding solutions to the homogeneous linear differential equation with constant coefficients

$\frac{d^2u}{d\theta^2} + u = 0$

These solutions are

$\ u = \epsilon\cdot\cos(\theta-A)$

where $\ \epsilon$ and $\ A$ are arbitrary constants of integration. So the result is

$\ u = 1+ \epsilon\cdot\cos(\theta-A)$

Choosing the axis of the coordinate system such that $\ A=0$, and inserting $\ u=pr^{-1}$, gives:

$\ pr^{-1 } = 1+ \epsilon\cdot\cos\theta .$

If $\ \epsilon<1 ,$ this is Kepler's first law.

### Kepler's third law

Newton used the third law as one of the pieces of evidence used to build the conceptual and mathematical framework of his Law of Gravitation. If we take Newton's laws of motion as given, and consider a hypothetical planet that happens to be in a perfectly circular orbit of radius r, then we have F = mv2 / r for the sun's force on the planet. The velocity is proportional to r/T, which by Kepler's third law varies as one over the square root of r. Substituting this into the equation for the force, we find that the gravitational force is proportional to one over r squared. Newton's actual historical chain of reasoning is not known with certainty, because in his writing he tended to erase any traces of how he had reached his conclusions. Reversing the direction of reasoning, we can consider this as a proof of Kepler's third law based on Newton's law of gravity, and taking care of the proportionality factors that were neglected in the argument above, we have:

$T^2 = \frac{4\pi^2}{GM} \cdot r^3$

where:

• T = planet's sidereal period
• r = radius of the planet's circular orbit
• G = the gravitational constant
• M = mass of the sun

The same arguments can be applied to any object orbiting any other object. This discussion implicitly assumed that the planet orbits around the stationary sun, although in reality both the planet and the sun revolve around their common centre of mass. Newton recognized this, and modified this third law, noting that the period is also affected by the orbiting body's mass. However typically the central body is so much more massive that the orbiting body's mass may be ignored. Newton also proved that in the case of an elliptical orbit, the semimajor axis could be substituted for the radius. The most general result is:

$T^2 = \frac{4\pi^2}{G(M + m)} \cdot a^3$

where:

• T = object's sidereal period
• a = object's semimajor axis
• G = the gravitational constant = 6.67 × 10−11 N • m²/kg²
• M = mass of one object
• m = mass of the other object

For objects orbiting the sun, it can be convenient to use units of years, AU, and solar masses, so that G, 4π² and the various conversion factors cancel out. Also with m<<M we can set m+M = M, so we have simply T2 = a3. Note that the values of G and planetary masses are not known with good accuracy; however, the products GM (the Keplerian attraction) are known to extremely high precision.

Define point A to be the periapsis, and point B as the apoapsis of the planet when orbiting the sun.

Kepler's second law states that the orbiting body will sweep out equal areas in equal quantities of time. If we now look at a very small periods of time at the moments when the planet is at points A and B, then we can approximate the area swept out as a triangle with an altitude equal to the distance between the planet and the sun, and the base equal to the time times the speed of the planet.

$\begin{matrix}\frac{1}{2}\end{matrix} \cdot(1-\epsilon)a\cdot V_A\,dt= \begin{matrix}\frac{1}{2}\end{matrix} \cdot(1+\epsilon)a\cdot V_B\,dt$
$(1-\epsilon)\cdot V_A=(1+\epsilon)\cdot V_B$
$V_A=V_B\cdot\frac{1+\epsilon}{1-\epsilon}$

Using the law of conservation of energy for the total energy of the planet at points A and B,

$\frac{mV_A^2}{2}-\frac{GmM}{(1-\epsilon)a} =\frac{mV_B^2}{2}-\frac{GmM}{(1+\epsilon)a}$
$\frac{V_A^2}{2}-\frac{V_B^2}{2} =\frac{GM}{(1-\epsilon)a}-\frac{GM}{(1+\epsilon)a}$
$\frac{V_A^2-V_B^2}{2}=\frac{GM}{a}\cdot \left ( \frac{1}{(1-\epsilon)}-\frac{1}{(1+\epsilon)} \right )$
$\frac{\left ( V_B\cdot\frac{1+\epsilon}{1-\epsilon}\right ) ^2-V_B^2}{2}=\frac{GM}{a}\cdot \left ( \frac{1+\epsilon-1+\epsilon}{(1-\epsilon)(1+\epsilon)} \right )$
$V_B^2 \cdot \left ( \frac{1+\epsilon}{1-\epsilon}\right ) ^2-V_B^2=\frac{2GM}{a}\cdot \left ( \frac{2\epsilon}{(1-\epsilon)(1+\epsilon)} \right )$
$V_B^2 \cdot \left ( \frac{(1+\epsilon)^2-(1-\epsilon)^2}{(1-\epsilon)^2}\right )=\frac{4GM\epsilon}{a\cdot(1-\epsilon)(1+\epsilon)}$
$V_B^2 \cdot \left ( \frac{1+2\epsilon+\epsilon^2-1+2\epsilon-\epsilon^2}{(1-\epsilon)^2} \right) =\frac{4GM\epsilon}{a\cdot(1-\epsilon)(1+\epsilon)}$
$V_B^2 \cdot 4\epsilon =\frac{4GM\epsilon\cdot (1-\epsilon)^2}{a\cdot(1-\epsilon)(1+\epsilon)}$
$V_B =\sqrt{\frac{GM\cdot(1-\epsilon)}{a\cdot(1+\epsilon)}}.$

Now that we have VB, we can find the rate at which the planet is sweeping out area in the ellipse. This rate remains constant, so we can derive it from any point we want, specifically from point B.

$\frac{dA}{dt}=\frac{\frac{1}{2}\cdot(1+\epsilon)a\cdot V_B \,dt}{dt}= \begin{matrix}\frac{1}{2}\end{matrix} \cdot(1+\epsilon)a\cdot V_B$
$= \begin{matrix}\frac{1}{2}\end{matrix} \cdot(1+\epsilon)a\cdot \sqrt{\frac{GM\cdot(1-\epsilon)}{a\cdot(1+\epsilon)}} = \begin{matrix}\frac{1}{2}\end{matrix} \cdot\sqrt{GMa\cdot(1-\epsilon)(1+\epsilon)}$

However, the total area of the ellipse is equal to $\pi a \sqrt{(1-\epsilon^2)}a$. (That's the same as πab, because $b=\sqrt{(1-\epsilon^2)}a$). The time the planet take out to sweep out the entire area of the ellipse equals the ellipse's area, so,

$T\cdot \frac{dA}{dt}=\pi a \sqrt{(1-\epsilon^2)}a$
$T\cdot \begin{matrix}\frac{1}{2}\end{matrix} \cdot\sqrt{GMa\cdot(1-\epsilon)(1+\epsilon)}=\pi \sqrt{(1-\epsilon^2)}a^2$
$T=\frac{2\pi \sqrt{(1-\epsilon^2)}a^2}{\sqrt{GMa\cdot(1-\epsilon)(1+\epsilon)}} =\frac{2\pi a^2}{\sqrt{GMa}}= \frac{2\pi}{\sqrt{GM}}\sqrt{a^3}$
$T^2=\frac{4\pi^2}{GM}a^3.$

However, if the mass m is not negligible in relation to M, then the planet will orbit the sun with the exact same velocity and position as a very small body orbiting an object of mass M + m (see reduced mass). To integrate that in the above formula, M must be replaced with M + m, to give

$T^2=\frac{4\pi^2}{G(M+m)}a^3.$

Q.E.D.