Write and . The leading Keplerian shear is
The distinction between total mass and the individual planet's two-body central mass is order , below the retained order .
At one common reference epoch, the local Kepler orbit expansion takes the form
where is the initial mean longitude relative to the rotating reference ray. Comparing its sine and cosine coefficients with the free solution of Hill equations gives
The required orbital elements from Hill coordinates are therefore
These equalities have the first-order accuracy of the local approximation. If , the longitude of periapsis is undefined. The combination fixes the initial true longitude divided by . The special initial alignment imposed in part v would require , but the general two-planet solution need not impose it.
Substitution also verifies and : these are the unforced Hill equations. Close encounters add mutual-gravity forcing and can change the constants. Replacing by in the oscillation is consistent at leading order over local orbital times; accumulated phase differences must be retained when following much longer evolution.