Kepler's first law states that planets orbit the Sun in elliptical paths with the Sun at one focus.Planets do not circle the Sun in perfect circles — their path resembles a slightly flattened circle, an ellipse. The Sun does not sit at the center of the ellipse but is offset to one of two special points — the foci. In winter the Earth is slightly closer to the star, in summer — farther away. The difference in distance is small, but it is precisely what makes the planet accelerate and decelerate. The same elliptical dance is performed by satellites around planets and even exoplanets around distant stars.
Johannes Kepler, working in Prague with the most precise observational data of his time from Tycho Brahe, focused on the mysterious behavior of Mars. After years of attempts to describe its motion with a combination of circles (epicycles), he encountered a discrepancy of 8 arcminutes — too large to dismiss as an error. Having abandoned the dogma of perfect circles, Kepler tried several oval curves and finally chose the ellipse. He placed the Sun at one of the foci, not at the center. The result was instantly confirmed by all positions of Mars. Thus in 1609 the first of three laws was born, later generalized by Newton and becoming the starting point of celestial mechanics.
The law is used to calculate ephemerides — positions of planets on the celestial sphere. In combination with the second law, it gives the complete kinematics of orbital motion. The orbit is determined by six elements, among which a and e are key. Modern applications include mission design (gravity assists, Hohmann transfers), analysis of light curves and radial velocities of exoplanets, and study of the dynamics of star clusters. The limit of applicability is weak gravitational fields and speeds far from the speed of light. Near black holes or in systems with strong relativistic corrections, the Kepler ellipse is replaced by a precessing ellipse of general relativity (Einstein effect).
Mars gave Kepler a real quest: eight years of calculations and about forty attempts to fit its orbit to a circle failed. Having discarded the perfect circle, he obtained an ellipse — and the discrepancy with observations reduced to a couple of arcminutes. Thus the first law was born, along with the habit of not trusting old dogmas.
| P | variable | orbital period — period second |
| a | variable | semi-major axis of the orbit — length metre |
| M | variable | mass of the central body — mass kilogram |
| G | constant | constant of universal gravitation — gravitational constant = 6.67430e-11 cubic metre per kilogram per second squared |
| sqrt | operator | takes the square root — square root |





