Skip to content

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.

The five Lagrange pointsA large body and a smaller one circling it. L1 lies between them, L2 beyond the smaller body, and L3 on the far side of the large body, all on the line through them. L4 and L5 lie on the smaller body's orbit, 60 degrees ahead and behind, each at the corner of an equilateral triangle with the two bodies.L1L2L3L4L5SunEarthL1, L2, L3on the line throughthe bodies: unstableL4, L560° ahead and behind,equilateral triangleswith them: stable
Not to scale: Sun-Earth L1 and L2 are 1.5 million km from Earth, a hundredth of the way to the Sun.

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.

ts
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 beyond

L4 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 μ=m2/(m1+m2) balances; 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, μ<0.03852. A body nudged there circles the point rather than drifting off, which is why Jupiter's Trojans have stayed for billions of years. For the Sun and Jupiter, μ≈0.000954; for Pluto and Charon, μ≈0.11.

ts
import { areTrojanPointsStable } from '@interstellar-tools/equations';

areTrojanPointsStable(GM_SUN, 1.26686534e17); // true: Sun-Jupiter
areTrojanPointsStable(8.69e11, 1.06e11); // false: Pluto-Charon

Hill 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.

ts
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 CJ, stays constant. It decides where the body can go at all: only where 2U≥CJ, inside walls called zero-velocity curves. The walls first open at L1, then L2, then L3, and last of all L4 and L5.

ts
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.1883

A spacecraft near Earth with CJ above 3.1883 can never reach the Moon; at 3.1722, the way past L2 opens too, and at 2.988, the walls are gone.

Next ​