Lagrange points
Two bodies circling each other, such as the Sun and Earth, have five points where a third, small body can keep its place relative to both: where the two pulls and the turning of the frame balance. JWST and Gaia orbit Sun-Earth L2, SOHO sits at L1, and thousands of Trojan asteroids gather at Sun-Jupiter L4 and L5. The functions are in @interstellar-tools/equations.
Where they are
lagrangePoints takes the two bodies' masses, or their gravitational parameters, and the distance between them, and returns the five points in metres, in the frame turning with the bodies, from their barycentre: x points from the larger body to the smaller.
import { AU_METERS } from '@interstellar-tools/constants';
import { lagrangePoints } from '@interstellar-tools/equations';
const GM_SUN = 1.32712440041e20; // m³/s²
const GM_EARTH_MOON = 4.0350323e14; // Earth and the Moon together
const { L1, L2 } = lagrangePoints(GM_SUN, GM_EARTH_MOON, AU_METERS);
// Earth at (1 − μ) au: L1 1 497 621 km sunward of it, L2 1 507 683 km beyondL4 and L5 sit at the corners of equilateral triangles with the two bodies. L1, L2 and L3 lie on the line through them, where a quintic equation in the mass ratio lagrangePoints solves it with Newton's method. For Earth and the Moon, 384 400 km apart, L1 is 326 381 km from Earth and L2 448 915 km.
Which ones hold
L1, L2 and L3 are unstable: a spacecraft parked there drifts off unless it corrects its course every few weeks. JWST and SOHO don't sit on the points themselves, but fly halo orbits around them, hundreds of thousands of kilometres across.
L4 and L5 are stable if the larger body outweighs the smaller about 25 times or more: Routh's criterion,
import { areTrojanPointsStable } from '@interstellar-tools/equations';
areTrojanPointsStable(GM_SUN, 1.26686534e17); // true: Sun-Jupiter
areTrojanPointsStable(8.69e11, 1.06e11); // false: Pluto-CharonHill spheres
A body's Hill sphere is how far its gravity can hold a moon against the pull of the body it orbits. It reaches about as far as its L1 and L2.
import { hillSphereRadius } from '@interstellar-tools/equations';
// Earth's, against the Sun: ≈ 1 471 566 km
hillSphereRadius(AU_METERS, 0.0167, 3.986004418e14, GM_SUN);The Moon is a quarter of the way out. Stable orbits stay within about a half to a third of it.
The Jacobi constant
In the frame turning with the two bodies, a small body's energy, the Jacobi constant
import { jacobiConstant } from '@interstellar-tools/equations';
// Earth and the Moon, in normalised units: L1 at rest
jacobiConstant([0.83692, 0, 0, 0, 0, 0], 0.012150584); // ≈ 3.1883A spacecraft near Earth with
Next
- Satellites and probes: where the spacecraft at these points are.
- The three-body reference has the functions, with their formulas, and the equations of motion in the rotating frame.