Kepler's second law states:
A line joining a planet and the Sun sweeps out equal areas during equal intervals of time .
In a small time the planet sweeps out a small triangle having base line and height. The area of this triangle is given by:
and so the constant areal velocity is:
Now as the first law states that the planet follows an ellipse, the planet is at different distances from the Sun at different parts in its orbit. So the planet has to move faster when it is closer to the Sun so that it sweeps equal areas in equal times.
The total area enclosed by the elliptical orbit is:
Therefore the period
Where
See below for an illustration of this effect. The planet traverses the distance between A and B, C and D, and E and F in equal times. When the planet is close to the Sun it has a larger velocity, making the base of the triangle larger, but the height of the triangle smaller, than when the planet is far from the Sun. One can see that the planet will travel fastest at perihelion and slowest at aphelion.
Kepler's Second Law
The shaded regions have equal areas. It takes equal times for m to go from A to B, from C to D, and from E to F. The mass m moves fastest when it is closest to M. Kepler's second law was originally devised for planets orbiting the Sun, but it has broader validity.