An interactive website about Lagrange points in a Sun-Earth system. A Sun-Earth co-rotating reference frame is used, in which the Sun and Earth are stationary. You can move a test particle and inspect acceleration vectors from the Sun (g_sun), Earth (g_earth), the centrifugal term, and their vector sum, while tracking where L1-L5 appear for different mass ratios.
- Move the test particle around the scene and inspect local vector balance.
- Lock/unlock the particle to freeze a point and compare vectors precisely.
- Change the Earth mass using the slider.
- Use quick presets for Earth and Jupiter-like mass ratios.
- Toggle grid, Lagrange points, force vectors, and orbit overlays.
- This is an educational, normalized model intended for intuition and visual exploration.
- Labels
SunandEarthare used as intuitive naming to make the scene immediately readable; physically this is just a two-body system where one body is more massive than the other. CMmeans center of mass.- The default Earth mass is set to
25%of the Sun mass on purpose to keep the visualization readable. With realistic Sun-Earth ratios, the mass contrast is so extreme that many effects become hard to notice at a glance.
Mouse / touch:
- Move pointer to move the particle (when unlocked).
- Click/tap canvas to lock or unlock the particle.
Keyboard hotkeys:
1Toggleg_sun2Toggleg_earth3Toggle centrifugal4Toggle vector sumLToggle Lagrange pointsGToggle gridSpaceLock/unlock particleOToggle Sun-Earth orbitCToggle CM-Earth orbitRReset state
One night around 2 a.m., I was already half asleep when my brain suddenly resurrected a random podcast fragment from about two weeks earlier: Lagrange points. Naturally, that was the perfect moment to become curious.
I started digging in. L1, L2, and L3 clicked pretty quickly, but L4 and L5 still felt slippery. The equilateral-triangle part looked almost like cheating, and the fact that these points stay in place regardless of the two-body mass ratio felt like pure mathematical black magic.
So instead of sleeping like a reasonable person, I built this visualization to see the vector balance with my own eyes. It finally made everything click. Then I went to bed.
Next day I was tired. Absolute mystery.