This simulation visualises the five Lagrange points of a two-body system in the co-rotating reference frame. Place test particles to observe how L4 and L5 are stable (Trojan-type libration) while L1, L2 and L3 are unstable saddle points.
Effective potential (rotating frame):
U = -(1-μ)/r₁ - μ/r₂ - ½(x²+y²)
L4 position: (½-μ, +√3/2) [equilateral triangle]
L5 position: (½-μ, -√3/2)
L1/L2 approx: x ≈ 1-μ ∓ (μ/3)^(1/3)
L3 approx: x ≈ -(1 + 5μ/12)
RK4 step: k1=f(t,y), k2=f(t+h/2, y+h·k1/2)
k3=f(t+h/2, y+h·k2/2), k4=f(t+h, y+h·k3)
y(t+h) = y + h(k1+2k2+2k3+k4)/6
The James Webb Space Telescope orbits the Sun–Earth L2 point at ~1.5 million km from Earth. It was placed there because L2 keeps the Sun, Earth, and Moon always on the same side, allowing the sunshield to block all their heat simultaneously — essential for JWST's infrared detectors to reach −233 °C.
Lagrange points are five special positions in a two-body orbital system (like the Earth-Sun system) where a small object can remain stationary relative to the two larger bodies. At these points, the gravitational forces of the two massive bodies and the centrifugal force in the rotating reference frame perfectly balance each other.
L4 and L5 are dynamically stable due to the Coriolis force in the rotating frame: when a particle is nudged away, the Coriolis force curves its path back into a libration orbit around the point. L1, L2, and L3 are saddle points in the effective potential — a small nudge in any direction causes the particle to drift away exponentially.
JWST (James Webb Space Telescope) orbits at L2 of the Sun-Earth system, giving it a stable thermal environment and unobstructed view of deep space. DSCOVR (Deep Space Climate Observatory) sits at L1 to monitor solar wind. SOHO and ACE also use L1. The L4 and L5 points of the Sun-Earth system host Trojan asteroids.
A halo orbit is a periodic, three-dimensional orbit around a Lagrange point (typically L1 or L2). Unlike sitting at the exact Lagrange point, spacecraft like JWST fly halo orbits to avoid eclipses, maintain communications, and use the gentle station-keeping forces available there. They appear to trace a halo around the point when viewed from the primary body.
The mass ratio μ is defined as m2/(m1+m2), where m1 and m2 are the masses of the two primary bodies. For the Earth-Sun system, μ ≈ 3×10⁻⁶. The Lagrange point positions depend only on this ratio: for small μ, L1 and L2 are roughly at distance (μ/3)^(1/3) from the smaller body.
In the co-rotating reference frame, a third body feels an effective potential combining gravity from both primaries and a centrifugal pseudo-potential: U_eff = -(1-μ)/r₁ - μ/r₂ - (1/2)(x²+y²). The five Lagrange points are the critical points (saddle points and local maxima) of this effective potential surface.
L1, L2, and L3 lie on the line connecting the two primaries. Their exact positions are found by solving a fifth-degree polynomial (the Euler equation). Approximate solutions are: L1 at x ≈ 1 - μ - (μ/3)^(1/3) from the centre, L2 at x ≈ 1 - μ + (μ/3)^(1/3), and L3 at x ≈ -(1 + 5μ/12) on the opposite side.
Trojan asteroids are small bodies that share an orbit with a larger planet, clustering around that planet's L4 and L5 Lagrange points with respect to the Sun. Jupiter's Trojan asteroids (over 1 million estimated) are the most famous. Earth also has at least one confirmed Trojan: 2010 TK7, located at Earth's L4 point.
RK4 (fourth-order Runge-Kutta) is a numerical method for solving ordinary differential equations. It evaluates the derivative at four intermediate points per time step, achieving fourth-order accuracy with manageable computational cost. For orbital mechanics, RK4 conserves energy far better than simpler Euler methods, making it the standard choice for educational simulations.
No. L1, L2, and L3 are unstable equilibria — any small perturbation causes an object to drift away exponentially. Spacecraft stationed there require periodic thruster firings (station-keeping manoeuvres) to maintain their position. JWST, for example, uses small thruster burns every ~3 weeks to stay in its halo orbit around L2.