A quasi-satellite is in a 1:1 mean-motion resonance. It shares the planet's average orbital period, but is not gravitationally bound to it.
PLANAR CIRCULAR RESTRICTED THREE-BODY EQUATIONS
ẍ − 2ẏ = x − (1−μ)(x+μ)/r₁³ − μ(x−1+μ)/r₂³
ÿ + 2ẋ = y − (1−μ)y/r₁³ − μy/r₂³
KEPLER INITIAL CONDITIONS & HILL SCALE
M = E − e sin E
rH ≈ aJ (μ / 3)^(1/3)
JACOBI INTEGRAL
C = x² + y² + 2(1−μ)/r₁ + 2μ/r₂ − ẋ² − ẏ²
The 1:1 resonant angle is φ = λ − λJ, the difference between the particle's osculating mean longitude and Jupiter's. A quasi-satellite keeps this angle bounded (librating) rather than circulating. Coordinates are barycentric and rotate with Jupiter. Distances are measured in the Sun–Jupiter separation, time in the inverse mean motion, and velocities in the corresponding rotating-frame unit. The initial particle state is built from Kepler's equation, then integrated with fixed-step fourth-order Runge–Kutta (RK4).
Sun and Jupiter move on circular, coplanar orbits.
The test particle has zero mass and does not perturb either primary.
Other planets, inclination, relativity and non-gravitational forces are omitted.
Illustrative educational model, not affiliated with any real institution or manufacturer.