Remove the acceleration shared by star and planet
Let the companion’s displacement from the primary be the outer vector, and the planet’s displacement be the inner vector. The primary is accelerating toward its companion. In a nonrotating frame centered on the primary, an indirect potential must remove that common acceleration.
Expand the companion potential for an inner distance much smaller than the outer distance. The term linear in the inner position cancels the indirect potential. A constant changes no force. The first surviving term is quadratic in the inner position, the quadrupole tidal potential.
Now average over a circular outer orbit. Its direction sweeps uniformly in a plane. The average of its squared projection onto any inner position is half the squared part of that position lying in the outer plane. This gives an axisymmetric potential about the outer normal. At this step we have averaged the outer clock but have not yet averaged the inner orbit.
Reading: Tremaine & Yavetz, Why do Earth satellites stay up?, arXiv:1309.5244v1 · Liu, Muñoz & Lai, Short-range forces in triple systems, arXiv:1409.6717v2
Average around the ellipse with the right clock
Choose a unit vector along periapsis and a second unit vector in the ellipse plane perpendicular to it. Eccentric anomaly parameterizes the position using these two vectors. Equal steps of eccentric anomaly do not represent equal amounts of time: the averaging measure contains the extra factor below.
For example, integrate the squared distance over this measure. Odd cosine terms vanish, while the average of cosine squared is one-half. The result contains an eccentricity-squared correction. Applying the same procedure to the squared projection onto the outer axis yields the second identity.
Substitute both integrals into the outer-averaged potential, divide by the potential scale defined in L1, and collect terms. The resulting dimensionless Hamiltonian depends only on the eccentricity vector and the angular-momentum vector. The eccentricity vector points toward periapsis and has eccentricity as its length. Its direction therefore carries the orientation of the ellipse that a scalar eccentricity alone would lose.
Reading: Tremaine & Yavetz, Why do Earth satellites stay up?, arXiv:1309.5244v1
Turn one Hamiltonian into two vector equations
The angular-momentum and eccentricity vectors describe the same ellipse, so their components are constrained. They are perpendicular, and their squared lengths add to one. Their orbital Poisson brackets produce the cross-product evolution written below; using ordinary Cartesian position-momentum Hamilton equations on these constrained vectors would give the wrong dynamics.
Differentiate the polynomial Hamiltonian with respect to both vectors, insert the derivatives into the cross-product rule and normalize time by the secular time. The explicit equations below are exactly the averaged equations integrated in the Lab.
Taking scalar products verifies the constraints directly: a vector has zero scalar product with its own cross product. The same calculation preserves the axial angular momentum, while the autonomous Hamiltonian preserves its value. The numerical solver retains the raw vectors so these conditions can test the integration; it does not project an inaccurate state back onto the constraints.
Reading: Tremaine & Yavetz, Why do Earth satellites stay up?, arXiv:1309.5244v1 · Liu, Muñoz & Lai, Short-range forces in triple systems, arXiv:1409.6717v2
Recover the critical angle and an eccentricity maximum
Take the limit of an initially almost circular orbit. Its axial angular momentum approaches the initial inclination cosine. On the growing branch, the eccentricity maximum occurs with periapsis ninety degrees from the line of nodes. The eccentricity vector’s axial projection then has the magnitude of eccentricity times the inclination sine.
Use the conserved axial momentum to eliminate inclination from the Hamiltonian. Equating its value at the initial state and at the maximum gives the factored expression below. The nonzero solution exists above the critical mutual inclination of about 39.23 degrees, on the prograde branch.
For an initial inclination of sixty degrees the predicted maximum is about 0.763763, giving a periapsis of about 0.236237 times the semimajor axis. This is an analytic limiting example. The default finite initial eccentricity of 0.05 has a slightly different conserved Hamiltonian and reaches about 0.838909 at sixty-five degrees. The zero-seed limit gives 0.838047.
An exactly circular vector state remains exactly circular under these equations. The unstable solution grows from an arbitrarily small perturbation, and its growth time depends on that seed. A solver that silently adds eccentricity would change the initial-value problem. The Lab displays and saves its finite initial seed.
Reading: Tremaine & Yavetz, Why do Earth satellites stay up?, arXiv:1309.5244v1
Which slow angle can resonate?
The argument of periapsis measures the direction of the eccentricity vector from the ascending node within the inner orbit plane. The ascending node is where the planet crosses the outer plane toward its positive normal. With that convention, the eccentricity vector’s axial component is eccentricity times the inclination sine times the periapsis-angle sine.
Substitution puts the Hamiltonian into an eccentricity-and-angle form. Contours of fixed Hamiltonian describe the allowed slow motion. Some trajectories circulate through every periapsis direction; others librate around ninety or two hundred seventy degrees. Libration means the slow angle swings around a preferred value instead of winding through full turns, the resonance behavior usually associated with the Kozai–Lidov mechanism.
A large eccentricity cycle alone does not distinguish these possibilities. With the finite seed and periapsis direction used here, the default averaged record circulates: its unwrapped periapsis angle advances about 408 degrees over twelve secular times. The exported eccentricity and angular-momentum vectors contain the information needed to reconstruct that angle. Close to a circle, the vector remains useful even while the angle itself becomes poorly defined.
Reading: Tremaine & Yavetz, Why do Earth satellites stay up?, arXiv:1309.5244v1 · Liu, Muñoz & Lai, Short-range forces in triple systems, arXiv:1409.6717v2
Add conservative relativistic periapsis precession
An additional potential inversely proportional to angular-momentum length generates the leading orbit-averaged relativistic periapsis precession. It contributes no angular-momentum torque and rotates the eccentricity vector within the orbit plane. At high eccentricity its rate becomes rapid, interrupting the coherent Newtonian torque in this doubly averaged model.
The default orbit with the dimensionless relativistic strength set to 0.8 reaches a maximum eccentricity about 0.629278. This value follows from the modified conserved Hamiltonian and agrees with a separately solved energy root in the tests. No relativistic force is added to the saved direct reference; the amber curve remains the explicitly labelled Newtonian comparison.
The precession term assumes a weak gravitational field and slow motion. The inner orbit must remain far outside the gravitational radius, and the integration stops before the stated near-primary boundary or before the gravitational radius reaches one percent of periapsis. The latter is a conservative chosen validity cutoff, not a sharp physical transition. Dissipative tides and gravitational radiation are omitted. Beyond double averaging, the outer orbital phase can interact with precession and change the peak from one cycle to the next. The final paper guide follows this behavior.
Reading: Liu, Muñoz & Lai, Short-range forces in triple systems, arXiv:1409.6717v2 · Klein & Hamilton, Short-range forces beyond double averaging, arXiv:2606.19456v1