Everything computed in orbital mechanics — the period of the Space Station, the moment a Molniya satellite passes over Siberia, the hyperbola on which a probe escapes towards Mars — rests on a single solved problem: two point masses attracting each other according to Newton's law. This lesson actually solves it. We start from the equation of relative motion, derive the orbit equation and Kepler's three laws, solve Kepler's equation to find where the spacecraft is at any instant, and extend everything to hyperbolic escape and flyby trajectories. By the end you will be able to go from "time" to "position" and back, which is the basic operation of any mission-analysis software. The starting results (vis-viva, circular velocity, orbit types) are summarized in expert-level orbital mechanics; here they are proved and put to work.
From the two-body problem to the one-body problem
Let two masses m₁ and m₂ be at positions R₁ and R₂ in an inertial frame. The only force is their mutual gravitational attraction:
m₁ · R̈₁ = + G·m₁·m₂ · r / r³
m₂ · R̈₂ = − G·m₁·m₂ · r / r³ with r = R₂ − R₁
Adding them, m₁R̈₁ + m₂R̈₂ = 0: the center of mass moves in a straight line at constant velocity and can be taken as an inertial origin. Dividing each equation by its mass and subtracting gives the equation of relative motion:
r̈ = − μ · r / r³, μ = G · (m₁ + m₂)
This is the fundamental equation of the two-body problem. Three details are worth keeping in mind:
- μ is the sum of both masses. For an artificial satellite the difference is irrelevant (the ISS, at about 420 t, changes μ by one part in 10¹⁹), but for the Moon it is not.
- A problem with six degrees of freedom per body has been reduced to a single three-degree-of-freedom problem: the reduced mass orbiting a fixed center.
- The assumptions are strong: point masses (or spherically symmetric bodies) and no other force. Anything that violates them — Earth's oblateness, drag, the Sun — is a perturbation, treated in orbital elements.
The two integrals of motion
Taking the cross product of the equation with r, since r × r = 0:
d/dt (r × ṙ) = 0 → h = r × v = constant
The specific angular momentum h is constant in magnitude and direction. Immediate consequences: the motion is planar (r and v are always perpendicular to h) and, splitting v into a radial and a transverse component, h = r · v_⊥ = r² · ν̇, where ν is the polar angle.
Taking the dot product with ṙ yields conservation of specific energy:
ε = v²/2 − μ/r = constant
That makes four scalar constants (three from h, one from ε). A fifth comes from the Laplace–Runge–Lenz vector, which we look at next, and the sixth is the time of periapsis passage. Six constants for six initial conditions (r₀, v₀): the problem is completely solved.
The orbit equation and the eccentricity vector
Taking the cross product of the equation of motion with h and using the vector triple product identity leads to d/dt (v × h) = μ · d/dt (r / r). Integrating:
v × h = μ · (r/r + e) → e = (v × h)/μ − r/r
The constant vector e is the eccentricity vector: it points towards periapsis and its magnitude is the eccentricity. Taking the dot product with r and calling ν (the true anomaly) the angle between e and r:
r = p / (1 + e · cos ν), p = h² / μ (semi-latus rectum, or parameter)
This is the polar equation of a conic section with its focus at the center of attraction. The four families:
| Eccentricity | Conic | Energy ε | Semi-major axis a | Example |
|---|---|---|---|---|
| e = 0 | Circle | −μ/(2r) | r | ISS, GPS, GEO (approx.) |
| 0 < e < 1 | Ellipse | −μ/(2a) < 0 | > 0 | GTO, Molniya, orbit of a periodic comet |
| e = 1 | Parabola | 0 | ∞ | Bare escape (C3 = 0) |
| e > 1 | Hyperbola | +μ/(2 | a | ) > 0 |
Useful relations, all following from the above:
r_p = p/(1 + e) = a(1 − e) r_a = p/(1 − e) = a(1 + e)
h = √(μ·p) = √(μ·a·(1 − e²))
v² = μ·(2/r − 1/a) (vis-viva, from ε = −μ/2a)
tan γ = e·sin ν / (1 + e·cos ν) (flight-path angle above the local horizontal)
Kepler's first law (orbits are ellipses with the Sun at one focus) is thus proved, and generalized: with positive energy the trajectory is a hyperbola.
The second and third laws: areas and periods
The area swept by the radius vector in a time dt is dA = ½ · r² · dν, so:
dA/dt = ½ · r² · ν̇ = h / 2 = constant
This is the second law: equal areas in equal times. It does not depend on the force being 1/r²; it only needs to be central. Integrating over one revolution, the area of the ellipse π·a·b, with b = a·√(1 − e²), divided by h/2 gives the period:
T = 2π·a·b / h = 2π · √(a³ / μ)
This is the third law: the square of the period is proportional to the cube of the semi-major axis. The period depends only on a, as does the energy. A 400 × 400 km orbit and a 200 × 600 km orbit have the same period. This apparent curiosity is the basis of phasing in orbital rendezvous and of the choice of transfer orbits.
The mean motion n = √(μ/a³) = 2π/T is the mean angular velocity. For the ISS at 420 km (a = 6,798 km): T = 92.97 min and n = 1.126·10⁻³ rad/s. Its areal velocity is h/2 ≈ 26,000 km²/s.
Game
Newton’s cannon
Position as a function of time: Kepler's equation
The orbit equation gives r(ν), but not ν(t). To obtain it, Kepler introduced the eccentric anomaly E: the point on the ellipse is projected perpendicularly onto the circumscribed circle of radius a, and the angle is measured from the center (not from the focus). With it:
r = a · (1 − e · cos E)
tan(ν/2) = √((1 + e)/(1 − e)) · tan(E/2)
M = n · (t − t_p) = E − e · sin E (Kepler's equation)
M, the mean anomaly, grows uniformly with time. The direct problem (given E, find t) is immediate; the inverse (given t, find E) has no solution in elementary functions. It is solved by Newton–Raphson:
E_{k+1} = E_k − (E_k − e·sin E_k − M) / (1 − e·cos E_k)
With the initial guess E₀ = M (or E₀ = M + e/2 if M < π and M − e/2 if M > π, which is more robust at high eccentricities) it converges quadratically: three to five iterations reach machine precision. There are better starters (Danby, Markley) used in high-performance propagators, but the principle is the same.
Kepler's second law is on full display here: at perigee the satellite travels at 10.05 km/s; at apogee, at 1.49 km/s. The ratio is exactly r_a/r_p, because h = r_p·v_p = r_a·v_a.
Hyperbolic orbits: escape and hyperbolic excess speed
If ε > 0, the trajectory is a hyperbola and the spacecraft reaches infinity with a residual speed, the hyperbolic excess speed v∞:
ε = v∞²/2 = v²/2 − μ/r → v² = v∞² + 2μ/r = v∞² + v_esc²
a = − μ / v∞² (negative by convention)
e = 1 + r_p · v∞² / μ
ν∞ = arccos(−1/e) (true anomaly of the asymptote)
The quantity interplanetary mission designers use is the characteristic energy C3 = v∞² (km²/s²): it is what the launch vehicle delivers and what appears on its performance curves. A Mars departure in a good window requires a C3 of order 8-16 km²/s²; missions to the outer Solar System, much more.
Time is obtained from the hyperbolic Kepler equation, with the hyperbolic anomaly F in place of E:
M_h = e · sinh F − F, M_h = √(μ / (−a)³) · (t − t_p)
tan(ν/2) = √((e + 1)/(e − 1)) · tanh(F/2)
The flyby: turning the velocity for free
In a flyby, the spacecraft enters the planet's sphere of influence with relative velocity v∞ and leaves with the same magnitude, but turned through an angle δ:
sin(δ/2) = 1 / e = 1 / (1 + r_p · v∞² / μ)
Δv_equivalent = 2 · v∞ · sin(δ/2)
In the planet's frame no energy is gained; in the Sun's frame it is, because turning v∞ changes its vector sum with the planet's velocity. This is the gravity assist, without which there would have been no Voyager, Galileo, Cassini, New Horizons or Juno (which swung past Earth again in 2013 to gain speed towards Jupiter).
| Planet | μ (km³/s²) | Radius (km) | Mean orbital speed (km/s) |
|---|---|---|---|
| Venus | 324,859 | 6,052 | 35.0 |
| Earth | 398,600 | 6,378 | 29.8 |
| Mars | 42,828 | 3,396 | 24.1 |
| Jupiter | 1.267·10⁸ | 71,492 | 13.1 |
Jupiter, with a μ about 318 times Earth's, is the great slingshot of the Solar System.

Beyond the formulas: propagating an orbit in practice
Flight and analysis software does not solve each conic separately. Two tools are used:
- Lagrange coefficients f and g: given r₀ and v₀, the position at time t is
r = f·r₀ + g·v₀,v = ḟ·r₀ + ġ·v₀, with f and g scalar functions of ΔE (or of a universal variable). This is the compact way to propagate without going through the elements. - Universal-variable formulation (Battin, Goodyear): a single Kepler equation valid for ellipses, parabolas and hyperbolas, using the Stumpff functions C(z) and S(z). It avoids the numerical trouble of near-parabolic orbits and is the formulation implemented by Curtis and Vallado.
For everything that is not two-body — oblateness, the Moon, the Sun, drag — one integrates r̈ = −μr/r³ + a_pert numerically with variable-step integrators (Runge–Kutta–Fehlberg, Dormand–Prince) or high-order ones (Gauss–Jackson, used by US space surveillance). The Keplerian model remains the skeleton: Cowell's and Encke's perturbation methods use it as a reference and integrate only the difference.
Trade-offs and limits of the model
| Situation | Is two-body good enough? | What is added |
|---|---|---|
| Preliminary design of a LEO or GEO | Yes, for size, period and Δv | J2 for the drift of the plane |
| Prediction days ahead in LEO | No | J2 and higher harmonics, drag, Sun and Moon |
| Earth–Moon transfer | Piecewise (patched conics) | Integration with ephemerides |
| Halo orbits, Lagrange points | No | Circular restricted three-body problem |
| Mercury over centuries | Almost | General relativity: 43″ per century of perihelion advance |
The patched-conic error for a lunar mission is a few percent in delta-v, enough for sizing; navigation needs the rest (see navigation and orbit determination).

Key points
- Relative motion obeys
r̈ = −μr/r³, with μ = G(m₁ + m₂); the mass of the secondary only matters in systems such as Earth–Moon. - h and ε are conserved: the orbit is planar, it is a conic
r = p/(1 + e cos ν), and its energy and period depend only on a. - The second law is conservation of angular momentum:
r_p·v_p = r_a·v_a. - Finding where the spacecraft is at a given instant requires solving
M = E − e sin Eby iteration (Newton–Raphson, 3-5 steps). - On a hyperbola,
v_p² = v∞² + v_esc²: injecting at perigee exploits the Oberth effect; a flyby turns v∞ through an angle given bysin(δ/2) = 1/e.
Further reading
- H. D. Curtis, Orbital Mechanics for Engineering Students, Butterworth-Heinemann (4th ed., 2020), chapters 2 and 3.
- D. A. Vallado, Fundamentals of Astrodynamics and Applications, Microcosm Press (4th ed., 2013), chapter 2.
- R. H. Battin, An Introduction to the Mathematics and Methods of Astrodynamics, AIAA Education Series (revised ed., 1999).
- R. R. Bate, D. D. Mueller, J. E. White, Fundamentals of Astrodynamics, Dover (1971; 2nd ed., 2020).
- NASA Jet Propulsion Laboratory, Basics of Space Flight (science.nasa.gov/learn/basics-of-space-flight).
Test yourself
In the two-body problem, which gravitational parameter appears in the equation of relative motion?
Which conservation law does Kepler's second law (equal areas in equal times) express?
An orbit has a = 26,578 km. With μ = 398,600 km³/s², what is its approximate period?
Why is Kepler's equation, M = E − e·sin E, solved by iteration?
In a planetary flyby, what sets the angle δ through which the velocity vector relative to the planet is turned?
