Astronomy and Space Exploration ES

Higher Education / Celestial mechanics

The restricted three-body problem and the Lagrange points

Equations in the rotating frame, Jacobi integral, Hill's zero-velocity curves, computation of L1–L5 and linear stability of the triangular points (Routh's criterion), with applications to the Jupiter Trojans, the Earth–Moon system and the orbit of JWST at Sun–Earth L2.

⏱ 150 min non-inertial framesfirst integralsequilibrium pointslinearizationcharacteristic equationbisectionRK4 and order of an integrator revision

By the end you will be able to:
  • Derive the equations of motion of the circular restricted three-body problem in the synodic frame.
  • Prove the existence of the Jacobi integral and use it to bound accessible regions (zero-velocity curves).
  • Compute the five Lagrange points and prove that there are exactly three collinear ones.
  • Linearize around the equilibria and derive Routh's criterion 27μ(1−μ) < 1.
  • Interpret the Jupiter Trojans and the orbit of JWST at Sun–Earth L2, and measure the order of an integrator with the Jacobi constant.

1. Setting up the problem

Illustration: Setting up the problem

Two massive bodies, the primaries of masses m1≥m2m_1 \ge m_2, describe circular orbits around their center of mass. A third body of negligible mass (the test particle) moves in their gravitational field without perturbing them. We restrict the motion to the orbital plane of the primaries.

We choose dimensionless units (Szebehely 1967, ch. 1):

  • unit of mass: m1+m2=1m_1 + m_2 = 1, and we define the mass ratio μ=m2/(m1+m2)∈(0,12]\mu = m_2/(m_1+m_2) \in (0, \tfrac12];
  • unit of length: the constant separation of the primaries;
  • unit of time: such that G=1G = 1. By Kepler’s third law, n2⋅13=G(m1+m2)=1n^2 \cdot 1^3 = G(m_1+m_2) = 1, so the mean motion of the primaries is n=1n = 1 and their period is 2π2\pi.

In the synodic frame (which rotates with angular velocity n=1n=1 about the center of mass) the primaries are at rest at (−μ,0)(-\mu, 0) and (1−μ,0)(1-\mu, 0). The distances from the particle (x,y)(x,y) to them are

r1=(x+μ)2+y2,r2=(x−1+μ)2+y2.r_1 = \sqrt{(x+\mu)^2 + y^2}, \qquad r_2 = \sqrt{(x-1+\mu)^2 + y^2}.

This is the problem that Euler (1767) and Lagrange (1772) studied in search of particular solutions of the three-body problem; Lagrange found the five equilibrium configurations that bear his name, and a century later the first Jupiter Trojans were discovered exactly where he had predicted.

2. Equations of motion in the rotating frame

Illustration: Equations of motion in the rotating frame

Let r\mathbf r be the position of the particle in the rotating frame and ω=z^\boldsymbol\omega = \hat{\mathbf z} its constant angular velocity. The inertial acceleration decomposes as

r¨in=r¨+2 ω×r˙+ω×(ω×r),\ddot{\mathbf r}_{\text{in}} = \ddot{\mathbf r} + 2\,\boldsymbol\omega\times\dot{\mathbf r} + \boldsymbol\omega\times(\boldsymbol\omega\times\mathbf r),

where 2ω×r˙2\boldsymbol\omega\times\dot{\mathbf r} is the Coriolis term and ω×(ω×r)=−(x,y,0)\boldsymbol\omega\times(\boldsymbol\omega\times\mathbf r) = -(x, y, 0) the centrifugal one. Setting this equal to the gravitational force per unit mass, −∇(−1−μr1−μr2)-\nabla\big(-\tfrac{1-\mu}{r_1} - \tfrac{\mu}{r_2}\big), and absorbing the centrifugal term into a potential, one obtains

  x¨−2y˙=∂Ω∂x,y¨+2x˙=∂Ω∂y  \boxed{\;\ddot x - 2\dot y = \frac{\partial \Omega}{\partial x}, \qquad \ddot y + 2\dot x = \frac{\partial \Omega}{\partial y}\;}

with the effective potential (or pseudo-potential)

Ω(x,y)=12 (x2+y2)+1−μr1+μr2.\Omega(x,y) = \tfrac12\,(x^2+y^2) + \frac{1-\mu}{r_1} + \frac{\mu}{r_2}.

Explicitly,

Ωx=x−(1−μ)(x+μ)r13−μ(x−1+μ)r23,Ωy=y(1−1−μr13−μr23).\Omega_x = x - \frac{(1-\mu)(x+\mu)}{r_1^3} - \frac{\mu(x-1+\mu)}{r_2^3}, \qquad \Omega_y = y\left(1 - \frac{1-\mu}{r_1^3} - \frac{\mu}{r_2^3}\right).

Convention: Murray & Dermott (1999, §3.3) use the same Ω\Omega (there UU); some authors add the constant 12μ(1−μ)\tfrac12\mu(1-\mu), which shifts all values of CJC_J by that amount.

3. The Jacobi integral

Illustration: The Jacobi integral

Proposition. The quantity CJ=2Ω(x,y)−(x˙2+y˙2)C_J = 2\Omega(x,y) - (\dot x^2 + \dot y^2) is conserved along any solution.

Proof. We multiply the first equation by x˙\dot x, the second by y˙\dot y and add. The Coriolis terms cancel, −2x˙y˙+2y˙x˙=0-2\dot x\dot y + 2\dot y\dot x = 0 (the Coriolis force is perpendicular to the velocity and does no work):

x˙x¨+y˙y¨=Ωxx˙+Ωyy˙=dΩdt,\dot x\ddot x + \dot y\ddot y = \Omega_x\dot x + \Omega_y\dot y = \frac{d\Omega}{dt},

because Ω\Omega does not depend explicitly on tt. Integrating, 12(x˙2+y˙2)=Ω−12CJ\tfrac12(\dot x^2+\dot y^2) = \Omega - \tfrac12 C_J. ■\blacksquare

CJC_J is the only known first integral of the problem; Poincaré proved that no other uniform analytic integrals exist, which is the root of the non-integrability of the three-body problem. Note that in the inertial frame neither the energy nor the angular momentum of the particle is conserved (the field depends on time); CJC_J is the combination −2(E−ωLz)-2(E - \omega L_z) of both, which is.

4. Zero-velocity curves (Hill)

Illustration: Zero-velocity curves (Hill)

Since v2=2Ω−CJ≥0v^2 = 2\Omega - C_J \ge 0, a particle with constant CJC_J can only occupy the Hill region {(x,y):2Ω(x,y)≥CJ}\{(x,y) : 2\Omega(x,y) \ge C_J\}. Its boundary, 2Ω(x,y)=CJ2\Omega(x,y) = C_J, is the zero-velocity curve.

  • Large CJC_J: the allowed region consists of three disjoint pieces — two “bubbles” around each primary and the far exterior. A particle trapped near m2m_2 cannot escape: this is the basis of Hill’s stability criterion.
  • As CJC_J decreases, the bubbles first touch at L1L_1 (when CJ=CL1C_J = C_{L_1}), then the inner region opens to the exterior through L2L_2, afterwards through L3L_3, and finally the forbidden region disappears at L4L_4 and L5L_5.

For μ≤12\mu \le \tfrac12 one has CL1>CL2≥CL3>CL4=CL5=3−μ(1−μ)C_{L_1} > C_{L_2} \ge C_{L_3} > C_{L_4} = C_{L_5} = 3 - \mu(1-\mu). With μ=0.01215\mu = 0.01215 (Earth–Moon) the values computed with src/lib/math/crtbp.ts are

L1L_1L2L_2L3L_3L4,5L_{4,5}
xx0.836921.15568−1.005060.48785
CJC_J3.188343.172163.012152.98800
Click on the map to launch a particle with the chosen velocity. Red zone: forbidden (2Ω < C_J); red line: zero-velocity curve. C(L1) = 3.1883 · C(L2) = 3.1722 · C(L3) = 3.0121 · C(L4,5) = 2.9880. 27μ(1−μ) = 0.3241 → L4/L5 linearly stable (μ_R ≈ 0.03852).

In the simulator, the red zone is the forbidden region for the chosen CJC_J. Try launching a particle at rest near the Moon with CL2<CJ<CL1C_{L_2} < C_J < C_{L_1}: it can pass through the L1L_1 “neck” toward the Earth, but it cannot escape to the exterior.

5. The equilibrium points

Illustration: The equilibrium points

The equilibria in the rotating frame satisfy x˙=y˙=0\dot x = \dot y = 0 and ∇Ω=0\nabla\Omega = 0.

5.1 Triangular points L4L_4, L5L_5

If y≠0y \ne 0, Ωy=0\Omega_y = 0 requires 1=1−μr13+μr231 = \frac{1-\mu}{r_1^3} + \frac{\mu}{r_2^3}. Writing xx and y2y^2 in terms of r1r_1 and r2r_2 (one has r12−r22=2x+2μ−1r_1^2 - r_2^2 = 2x + 2\mu - 1, and x2+y2=(1−μ)r12+μr22−μ(1−μ)x^2+y^2 = (1-\mu)r_1^2 + \mu r_2^2 - \mu(1-\mu)), it is immediate to check that

Ω=12[(1−μ)r12+μr22−μ(1−μ)]+1−μr1+μr2.\Omega = \tfrac12\left[(1-\mu)r_1^2 + \mu r_2^2 - \mu(1-\mu)\right] + \frac{1-\mu}{r_1} + \frac{\mu}{r_2}.

In the variables (r1,r2)(r_1, r_2), ∂Ω/∂r1=(1−μ)(r1−r1−2)=0\partial\Omega/\partial r_1 = (1-\mu)(r_1 - r_1^{-2}) = 0 and ∂Ω/∂r2=μ(r2−r2−2)=0\partial\Omega/\partial r_2 = \mu(r_2 - r_2^{-2}) = 0, whence r1=r2=1r_1 = r_2 = 1: the particle forms an equilateral triangle with the primaries,

L4,5=(12−μ, ±32).L_{4,5} = \left(\tfrac12 - \mu,\ \pm\tfrac{\sqrt3}{2}\right).

(The change (x,y)↦(r1,r2)(x,y)\mapsto(r_1,r_2) is a local diffeomorphism away from the axis y=0y=0, so the critical points coincide.)

5.2 Collinear points L1L_1, L2L_2, L3L_3

On y=0y = 0, Ωy≡0\Omega_y \equiv 0 and the equilibria are the roots of

f(x)≡x−(1−μ)(x+μ)∣x+μ∣3−μ(x−1+μ)∣x−1+μ∣3=0.f(x) \equiv x - \frac{(1-\mu)(x+\mu)}{|x+\mu|^3} - \frac{\mu(x-1+\mu)}{|x-1+\mu|^3} = 0.

Proposition. ff has exactly one root in each interval (−∞,−μ)(-\infty,-\mu), (−μ,1−μ)(-\mu, 1-\mu), (1−μ,∞)(1-\mu,\infty).

Proof. In each interval, f′(x)=1+2(1−μ)∣x+μ∣3+2μ∣x−1+μ∣3>0f'(x) = 1 + \dfrac{2(1-\mu)}{|x+\mu|^3} + \dfrac{2\mu}{|x-1+\mu|^3} > 0, so ff is strictly increasing. At the endpoints: f→+∞f \to +\infty as a primary is approached from the left and f→−∞f \to -\infty from the right, whereas f(x)∼x→±∞f(x) \sim x \to \pm\infty as x→±∞x \to \pm\infty. By the intermediate value theorem there is a root in each interval and, by monotonicity, only one. ■\blacksquare

This proof justifies the library’s algorithm: bisection in each interval, which converges with a guarantee (the error is halved at each iteration; ~50 iterations give machine precision). Calling ρ=1−μ−xL1\rho = 1 - \mu - x_{L_1} the distance from L1L_1 to m2m_2, the expansion for μ≪1\mu \ll 1 gives

ρ≈rH(1−13 rH1),rH=(μ3)1/3,\rho \approx r_H \left(1 - \tfrac13 \,\frac{r_H}{1}\right), \qquad r_H = \left(\frac{\mu}{3}\right)^{1/3},

where rHr_H is the Hill radius; L2L_2 lies at ≈rH(1+13rH)\approx r_H(1 + \tfrac13 r_H) on the other side of m2m_2.

6. Linear stability

Illustration: Linear stability

Let (x0,y0)(x_0,y_0) be an equilibrium and x=x0+ξx = x_0 + \xi, y=y0+ηy = y_0 + \eta. To first order,

ξ¨−2η˙=Ωxx ξ+Ωxy η,η¨+2ξ˙=Ωxy ξ+Ωyy η,\ddot\xi - 2\dot\eta = \Omega_{xx}\,\xi + \Omega_{xy}\,\eta, \qquad \ddot\eta + 2\dot\xi = \Omega_{xy}\,\xi + \Omega_{yy}\,\eta,

with the second derivatives evaluated at the equilibrium. Seeking solutions ∝eλt\propto e^{\lambda t}, the determinant

∣λ2−Ωxx−2λ−Ωxy2λ−Ωxyλ2−Ωyy∣=0\begin{vmatrix} \lambda^2 - \Omega_{xx} & -2\lambda - \Omega_{xy} \\ 2\lambda - \Omega_{xy} & \lambda^2 - \Omega_{yy} \end{vmatrix} = 0

gives the characteristic equation

λ4+(4−Ωxx−Ωyy) λ2+ΩxxΩyy−Ωxy2=0.\lambda^4 + (4 - \Omega_{xx} - \Omega_{yy})\,\lambda^2 + \Omega_{xx}\Omega_{yy} - \Omega_{xy}^2 = 0.

It is biquadratic: with Λ=λ2\Lambda = \lambda^2, Λ2+bΛ+c=0\Lambda^2 + b\Lambda + c = 0. Linear stability (all λ\lambda purely imaginary and distinct) requires both roots Λ\Lambda to be real, negative and distinct: b>0b > 0, c>0c > 0, b2−4c>0b^2 - 4c > 0.

Collinear points. On y=0y=0, Ωxy=0\Omega_{xy} = 0 and, with A=1−μr13+μr23A = \frac{1-\mu}{r_1^3} + \frac{\mu}{r_2^3}, Ωxx=1+2A>0\Omega_{xx} = 1 + 2A > 0 and Ωyy=1−A\Omega_{yy} = 1 - A. The equilibrium condition f(x)=0f(x)=0 implies A>1A > 1 (Problem 2), so Ωyy<0\Omega_{yy} < 0 and c=ΩxxΩyy<0c = \Omega_{xx}\Omega_{yy} < 0: one root Λ\Lambda is positive and there is a real positive λ\lambda. L1L_1, L2L_2, L3L_3 are unstable for every μ\mu (they are saddle × center points).

Triangular points. At L4L_4, with r1=r2=1r_1 = r_2 = 1:

Ωxx=34,Ωyy=94,Ωxy=334(1−2μ),\Omega_{xx} = \tfrac34, \qquad \Omega_{yy} = \tfrac94, \qquad \Omega_{xy} = \tfrac{3\sqrt3}{4}(1 - 2\mu),

so that b=1b = 1, c=274μ(1−μ)>0c = \tfrac{27}{4}\mu(1-\mu) > 0 and

λ4+λ2+274μ(1−μ)=0,Λ±=−1±1−27μ(1−μ)2.\lambda^4 + \lambda^2 + \tfrac{27}{4}\mu(1-\mu) = 0, \qquad \Lambda_\pm = \frac{-1 \pm \sqrt{1 - 27\mu(1-\mu)}}{2}.

Routh’s criterion (1875). L4L_4 and L5L_5 are linearly stable if and only if 27μ(1−μ)<127\mu(1-\mu) < 1, that is,

μ<μR=12(1−2327)≈0.038521.\mu < \mu_R = \frac12\left(1 - \sqrt{\frac{23}{27}}\right) \approx 0.038521.

For μ<μR\mu < \mu_R there are two frequencies, ω±=−Λ∓\omega_\pm = \sqrt{-\Lambda_\mp}. For μ≪1\mu \ll 1: the slow libration frequency ωs≈27μ/4\omega_s \approx \sqrt{27\mu/4} and the fast one ωf≈1\omega_f \approx 1 (epicycle). That L4L_4 is a maximum of Ω\Omega and is nevertheless stable is a genuine effect of the Coriolis force (gyroscopic stability). Linear stability does not imply nonlinear stability; the complete analysis (Deprit & Deprit-Bartholomé 1967, via KAM) excludes two resonant values of μ\mu (those for which ωf/ωs=2\omega_f/\omega_s = 2 and 33) and proves stability for the rest (Murray & Dermott 1999, §3.8).

7. Applications

Illustration: Applications

Jupiter Trojans. For Sun–Jupiter, μ=GMJ/(GM⊙+GMJ)=9.54×10−4≪μR\mu = GM_J/(GM_\odot + GM_J) = 9.54\times10^{-4} \ll \mu_R (GM from Horizons): L4L_4 and L5L_5 are stable and host thousands of Trojan asteroids that librate in “tadpole” orbits around 60°60° ahead of and behind Jupiter. The linear libration period is Ts=2π/ωs≈2π/27μ/4T_s = 2\pi/\omega_s \approx 2\pi/\sqrt{27\mu/4} in dimensionless units; divided by Jupiter’s period (2π2\pi) it gives 1/27μ/4=12.51/\sqrt{27\mu/4} = 12.5 Jovian periods, about 148 years. Click “Trojan orbit (L4)” in the simulator with the Sun–Jupiter preset.

Earth–Moon. With μ=0.01215\mu = 0.01215, the Moon is 384 400384\,400 km from the Earth, and L1L_1, L2L_2 lie 58 00058\,000 km and 64 50064\,500 km from the Moon (values obtained from the abscissas of the table above: 384 400×(1−μ−0.83692)384\,400\times(1 - \mu - 0.83692) and 384 400×(1.15568−1+μ)384\,400\times(1.15568 - 1 + \mu)). Since μ>μR\mu > \mu_R does not hold (0.01215<0.03850.01215 < 0.0385), the Earth–Moon L4L_4 and L5L_5 are linearly stable, but the solar perturbation prevents them from accumulating material durably (the “Kordylewski clouds” remain a matter of debate).

JWST at Sun–Earth L2. For the Sun–(Earth+Moon) system, μ≈3.04×10−6\mu \approx 3.04\times10^{-6} and L2L_2 lies at ≈0.01004 (1+0.00335)\approx 0.01004\,(1 + 0.00335) au =0.01008= 0.01008 au ≈1.5×106\approx 1.5\times10^{6} km from the Earth, in the anti-solar direction (rH=0.01004r_H = 0.01004 au), in agreement with the “1.5 million kilometers” quoted by NASA. Since L2L_2 is unstable (a real positive λ\lambda with an ee-folding time of a few weeks), JWST is not at L2L_2 but in a halo orbit around it which, according to NASA, “takes about 6 months to complete” and is “similar in size to the Moon’s orbit around the Earth”; the drift is corrected with small periodic station-keeping maneuvers. In this way the Sun, the Earth and the Moon always stay on the same side of the sunshield and the telescope never enters the Earth’s shadow.

8. Numerical note

Illustration: Numerical note

The simulator integrates with RK4 (rk4Step) with a step adapted to the distance to the nearest primary, h=min⁡(hmax⁡, η rmin⁡3/2)h = \min(h_{\max},\ \eta\, r_{\min}^{3/2}), with hmax⁡=5×10−3h_{\max} = 5\times10^{-3} and η=0.02\eta = 0.02. RK4 is not symplectic: the error in CJC_J grows slowly (typically linearly in tt, ∝h4\propto h^4). The “ΔC/C” readout of the simulator is the natural measure of the error: with these parameters it stays below 10−910^{-9} over hundreds of time units for orbits that do not approach the primaries. Two observations:

  • The step adapted to rmin⁡3/2r_{\min}^{3/2} follows the local free-fall time scale, r3/μ\sqrt{r^3/\mu}: near a primary the field varies rapidly and must be resolved. Without that adaptation, a fixed step that works far from the primaries produces errors in CJC_J of order unity during a close encounter.
  • The Jacobi constant is a necessary but not sufficient diagnostic: an integration can conserve CJC_J to 10−910^{-9} and still have large phase errors in chaotic orbits (lesson 5). To measure the order of the method one must compare with a reference solution (much smaller step) and verify that the error scales as h4h^4 (Problem 6).

Problems

  1. (Coriolis does no work) Show that if the angular velocity of the frame nn were a function of tt, CJC_J would no longer be conserved, and identify the term responsible.
Show solution

With ω(t)\omega(t) the Euler force −ω˙×r-\dot{\boldsymbol\omega}\times\mathbf r appears and Ω\Omega depends on tt through 12ω2(x2+y2)\tfrac12\omega^2(x^2+y^2); then ddt(12v2−Ω)=−∂tΩ−ω˙(xy˙−yx˙)≠0\frac{d}{dt}\big(\tfrac12 v^2 - \Omega\big) = -\partial_t\Omega - \dot\omega(x\dot y - y\dot x) \ne 0 in general. Both terms vanish if and only if ω˙=0\dot\omega = 0.

  1. (Instability of the collinear points) Show that at L1L_1, L2L_2, L3L_3 one has A=1−μr13+μr23>1A = \frac{1-\mu}{r_1^3} + \frac{\mu}{r_2^3} > 1.
Show solution

At L1L_1 it is immediate: r1,r2<1r_1, r_2 < 1 (since r1+r2=1r_1 + r_2 = 1), so A>(1−μ)+μ=1A > (1-\mu) + \mu = 1. For L2L_2 and L3L_3, rewrite f(x)=0f(x) = 0 as x(1−A)=μ(1−μ)(r1−3−r2−3)x(1-A) = \mu(1-\mu)\big(r_1^{-3} - r_2^{-3}\big) (expand x+μx+\mu and x−1+μx-1+\mu). At L2L_2, x>0x > 0 and r1>r2r_1 > r_2, so the right-hand side is negative and 1−A<01-A < 0; at L3L_3, x<0x < 0 and r1<r2r_1 < r_2, the right-hand side is positive and again 1−A<01 - A < 0.

  1. (Routh) Check that Ωxx+Ωyy=3\Omega_{xx}+\Omega_{yy} = 3 at L4L_4 for every μ\mu and deduce b=1b = 1. Show that cc is maximal at μ=12\mu = \tfrac12 and that 27μ(1−μ)=127\mu(1-\mu) = 1 has a unique root in (0,12)(0, \tfrac12).
Show solution

In general Ωxx+Ωyy=2+1−μr13+μr23\Omega_{xx}+\Omega_{yy} = 2 + \frac{1-\mu}{r_1^3} + \frac{\mu}{r_2^3} (use ∇2(1/r)=1/r3\nabla^2(1/r) = 1/r^3 in the plane); at L4L_4 it equals 2+1=32 + 1 = 3. g(μ)=27μ(1−μ)g(\mu) = 27\mu(1-\mu) is increasing on (0,12)(0,\tfrac12), with g(0)=0g(0) = 0 and g(12)=27/4>1g(\tfrac12) = 27/4 > 1: by the intermediate value theorem and monotonicity there is a unique root, μR=12(1−23/27)\mu_R = \tfrac12(1 - \sqrt{23/27}).

  1. (Hill radius) From f(x)=0f(x) = 0 with x=1−μ−ρx = 1-\mu-\rho, ρ≪1\rho \ll 1, μ≪1\mu \ll 1, show that ρ3≈μ/3\rho^3 \approx \mu/3 at lowest order, and obtain the correction ρ≈rH(1−rH/3)\rho \approx r_H(1 - r_H/3).
Show solution

With x=1−μ−ρx = 1 - \mu - \rho: x+μ=1−ρx + \mu = 1 - \rho, x−1+μ=−ρx - 1 + \mu = -\rho. f=1−μ−ρ−(1−μ)(1−ρ)−2+μρ−2f = 1 - \mu - \rho - (1-\mu)(1-\rho)^{-2} + \mu\rho^{-2}. Expanding (1−ρ)−2=1+2ρ+3ρ2+…(1-\rho)^{-2} = 1 + 2\rho + 3\rho^2 + \dots: f≈1−μ−ρ−(1−μ)(1+2ρ+3ρ2)+μ/ρ2=−3ρ−3ρ2+μ/ρ2+O(μρ)f \approx 1 - \mu - \rho - (1-\mu)(1 + 2\rho + 3\rho^2) + \mu/\rho^2 = -3\rho - 3\rho^2 + \mu/\rho^2 + O(\mu\rho). At lowest order, μ/ρ2=3ρ⇒ρ3=μ/3\mu/\rho^2 = 3\rho \Rightarrow \rho^3 = \mu/3. At the next order, μ/ρ2=3ρ(1+ρ)\mu/\rho^2 = 3\rho(1 + \rho), that is ρ3(1+ρ)=rH3\rho^3(1+\rho) = r_H^3, and ρ≈rH(1+ρ)−1/3≈rH(1−rH/3)\rho \approx r_H(1 + \rho)^{-1/3} \approx r_H(1 - r_H/3).

  1. (Simulator) With the Earth–Moon preset, launch a particle at rest near the Moon with CJC_J between CL1C_{L_1} and CL2C_{L_2}. Measure how long it takes to cross into the Earth region. Explain why, even though the crossing through L1L_1 is energetically allowed, the particle may take many orbits to find it.
Show solution

The time depends strongly on the initial position (the typical sensitivity of a non-integrable system). The “neck” at L1L_1 is narrow for CJC_J just below CL1C_{L_1} (its width scales as CL1−CJ\sqrt{C_{L_1} - C_J}), and the particle only passes through it if it arrives with the right phase: the set of initial conditions that cross within a given time is bounded by the invariant manifolds of the Lyapunov orbit around L1L_1, the basis of the low-energy “highways” used in mission design.

  1. (Computational: order of the integrator) Integrate with RK4 and fixed step hh an orbit that does not approach the primaries (for example, a Trojan orbit with the Sun–Jupiter preset) for t=50t = 50 and measure ∣ΔCJ∣|\Delta C_J| for h=0.02,0.01,0.005,0.0025h = 0.02, 0.01, 0.005, 0.0025. Plot log⁡∣ΔCJ∣\log|\Delta C_J| against log⁡h\log h and estimate the slope. Repeat with leapfrog and comment.
Show solution
import numpy as np
def f(s, mu):
    x, y, vx, vy = s; r1 = np.hypot(x+mu, y); r2 = np.hypot(x-1+mu, y)
    Ox = x - (1-mu)*(x+mu)/r1**3 - mu*(x-1+mu)/r2**3; Oy = y - (1-mu)*y/r1**3 - mu*y/r2**3
    return np.array([vx, vy, 2*vy + Ox, -2*vx + Oy])
def CJ(s, mu):
    x, y, vx, vy = s; r1 = np.hypot(x+mu, y); r2 = np.hypot(x-1+mu, y)
    return x*x + y*y + 2*(1-mu)/r1 + 2*mu/r2 - vx*vx - vy*vy
mu = 9.54e-4; s0 = np.array([0.5 - mu + 0.02, np.sqrt(3)/2, 0.0, 0.0])  # near L4
for h in [0.02, 0.01, 0.005, 0.0025]:
    s = s0.copy(); C0 = CJ(s, mu)
    for _ in range(int(50/h)):
        k1 = f(s, mu); k2 = f(s + h/2*k1, mu); k3 = f(s + h/2*k2, mu); k4 = f(s + h*k3, mu)
        s = s + h/6*(k1 + 2*k2 + 2*k3 + k4)
    print(h, abs(CJ(s, mu) - C0))

The slope of the log-log fit is ≈4\approx 4 (each time hh is divided by 2 the error is divided by ≈16\approx16), until the round-off level (∼10−14\sim10^{-14}) is reached. With leapfrog the slope is 2 and the error does not grow with tt (it oscillates, bounded), whereas that of RK4 grows linearly with tt: for long integrations the symplectic method wins even though it is of lower order. Note: the Coriolis term depends on the velocity, so the standard kick-drift-kick leapfrog is not directly applicable; one uses a variant for gyroscopic forces or integrates in the inertial frame (numerical methods lesson).

Self-assessment

✦ Self-assessment

  1. 1. In the synodic frame of the restricted problem, the Jacobi integral is conserved because…
  2. 2. The zero-velocity curves bound…
  3. 3. The collinear points L₁, L₂, L₃…
  4. 4. Routh's criterion for the linear stability of L₄ and L₅ is…
  5. 5. That L₄ is a maximum of the effective potential and is nevertheless stable is due to…
  6. 6. JWST stays near Sun–Earth L₂ because…
Answer all the questions to check.

Further reading

  • Murray & Dermott (1999), ch. 3: complete derivation of the equations, the Jacobi integral, the Lagrange points, stability (§3.6–3.8) and the tadpole and horseshoe orbits (§3.9–3.12).
  • Szebehely (1967), Theory of Orbits: the reference treatise on the restricted problem, with the equilibrium points (ch. 4) and their stability (ch. 5).
  • Danby (1988), ch. 8: classical presentation with emphasis on periodic orbits.
  • Routh (1875), DOI 10.1112/plms/s1-6.1.86: the original criterion; Deprit & Deprit-Bartholomé (1967), DOI 10.1086/110213: nonlinear stability of the triangular points.
  • NASA Science, “Webb’s Orbit”: official description of the orbit of JWST around L₂.
🍎 Teacher guide
Time
2 classes of 90 min
Learning outcome
By the end, the student derives the equations of the restricted problem in the rotating frame, proves the conservation of the Jacobi constant, computes the five Lagrange points justifying the bisection algorithm, derives Routh's criterion and applies it to real systems, and measures the order of an integrator with the Jacobi constant.
Evidence of learning
Submission of computational problem 6 (log-log plot of the error in C_J versus h with the estimated slope) and of proof 2 or 4.

Materials

  • Python 3 with NumPy and Matplotlib
  • Simulator "Lagrange points" with the Earth–Moon and Sun–Jupiter presets
  • Table of GM for the Sun, Jupiter, the Earth and the Moon (JPL Horizons)
  • Optional: list of Trojan asteroids from the Minor Planet Center to count L₄ versus L₅

Suggested sequence

Class 1. Dimensionless units and rotating frame; derivation of the equations with Coriolis and centrifugal terms (30 min). Jacobi integral and zero-velocity curves, exploring in the simulator how the necks open as CJC_J decreases (30 min). Triangular points via the change to (r1,r2)(r_1, r_2) and collinear points with the uniqueness proof (30 min).

Class 2. Linearization and characteristic equation; instability of the collinear points and Routh’s criterion (40 min). Applications: Trojans (libration period), Earth–Moon and JWST (20 min). Numerical note and start of problem 6: measuring the order of RK4 live (30 min).

Common mistakes

  • Interpreting the centrifugal and Coriolis forces as "real" forces: insist that they are kinematic terms of the change of frame and that they disappear in the inertial frame.
  • Believing that C_J is the energy: in the inertial frame the energy of the particle is not conserved; C_J combines energy and angular momentum.
  • Thinking that L₄ is stable "because it is a minimum of the potential": it is a maximum; the stability is gyroscopic.
  • Confusing linear stability with stability: mention the resonant values of μ excluded by Deprit & Deprit-Bartholomé.
Key terms in this lesson (12)

Glossary terms that appear in the text. Each one links to its full entry.

  • Lagrange point Five special places near two bodies (such as the Sun and Earth) where a spacecraft can stay "still" with respect to them. The James Webb telescope is at one of them, L2, 1.5 million km away.
  • Orbit The path one body follows around another because of gravity: the Moon around Earth, Earth around the Sun. Almost all are ellipses, slightly flattened ovals.
  • Differential equation An equation that does not say where something is, but how it changes: "the acceleration of Earth points toward the Sun and has this value". Solving it step by step is what an orbit simulator does.
  • Runge–Kutta method An improvement on Euler's method that "samples" the slope at several intermediate points of each step and averages them. The fourth-order version (RK4) is thousands of times more accurate for the same step size.
  • Leapfrog A simulation method that alternates a "kick" (changing the velocity) and a "drift" (moving the position), like a frog jumping. It is simple, time-reversible and conserves energy very well.
  • Astronomical unit The average distance between Earth and the Sun. It works as a "ruler" for measuring the Solar System: Jupiter is about 5 au from the Sun.
  • Symplectic integrator A numerical method designed so that, when simulating orbits over millions of years, energy neither leaks away nor builds up little by little. That is why it is used to study the stability of the Solar System.
  • Euler's method The simplest way to simulate a motion: advance in small time steps assuming the velocity does not change during each step. With small steps it works, but the error builds up.
  • Logarithm The question "to what power must 10 be raised to get this number?". log(1000) = 3. It turns multiplications into additions and compresses huge numbers: that is why stellar magnitudes use logarithms.
  • Derivative How fast something changes at an instant: the derivative of position is velocity, and the derivative of velocity is acceleration. It is the slope of the graph at each point.
  • Deterministic chaos Motion that follows exact rules but is impossible to predict in the long run, because a tiny change at the start produces completely different results. The orbits of the planets are chaotic on scales of millions of years.
  • Horizon The line where the sky seems to touch the land or the sea. A celestial object "rises" when it crosses the horizon going up and "sets" when it crosses it going down.

See the whole glossary →

References

  • Murray, C. D. & Dermott, S. F. (1999). Solar System Dynamics. Cambridge University Press, ch. 3 (§3.1–3.8).
  • Szebehely, V. (1967). Theory of Orbits: The Restricted Problem of Three Bodies. Academic Press, chs. 1, 4 and 5.
  • Danby, J. M. A. (1988). Fundamentals of Celestial Mechanics, 2nd ed. Willmann-Bell, ch. 8.
  • Routh, E. J. (1875). On Laplace's three particles, with a supplement on the stability of steady motion. Proceedings of the London Mathematical Society s1-6, 86–97. DOI 10.1112/plms/s1-6.1.86
  • Deprit, A. & Deprit-Bartholomé, A. (1967). Stability of the triangular Lagrangian points. The Astronomical Journal 72, 173–179. DOI 10.1086/110213
  • Lagrange, J.-L. (1772). Essai sur le problème des trois corps. Prix de l'Académie Royale des Sciences de Paris, vol. IX.
  • NASA Science, "Webb's Orbit" (science.nasa.gov/mission/webb/orbit): orbit around L2 at 1.5 million km from Earth, period of about 6 months, size comparable to the Moon's orbit; queried 2026-10-29.
  • JPL Horizons, GM of Jupiter 126686531.9 km³/s² and of the Sun 1.32712440041e11 km³/s² (μ_Sun–Jupiter = 9.54e-4); queried 2026-10-29.

Simulators for this lesson: Lagrange points (restricted three-body problem)