This notebook introduces planetary resonance through orbital variables, a Fourier expansion of the interaction Hamiltonian, and integer relations among angular rates. A constant-rate approximation illustrates how the interaction phase controls harmonic cancellation and accumulation. Mean-motion, secular, and spin–orbit resonances are presented through concise definitions and examples. Wolfram Language animations visualize the accumulation of individual harmonics, with the corresponding code provided in the Appendix. This project constitutes one of the lectures for Planetary Theory I in the preliminary PhD program in Mathematical Astronomy, Department of Astronomy, Space Science and Meteorology, Faculty of Science, Cairo University, under the supervision of Professor Walid Rahoma.

1 Orbital Variables

The Newtonian two-body problem describes the motion of two point masses interacting only through their mutual gravitational attraction. Let
r
be the distance between the masses. For a noncircular elliptical orbit, the true anomaly
θ
is measured at the occupied focus
F
2
from periapsis to the relative position vector in the direction of motion, as illustrated in Fig. 1.
​Figure 1. Geometry of an elliptical orbit, showing the occupied focus
F
2
, the radial distance
r
, the true anomaly
θ
, and the semilatus rectum
p
.
The trajectory is expressed as:
r=
p
1+ecosθ
,
(
1
)
where
p=a(1−
2
e
)
is the semilatus rectum,
a
is the semimajor axis, and
e
is the eccentricity. Elliptical motion is considered here, with
0≤e<1
. The orbital geometry is specified by Eq. (1), but the position at a given time is not obtained directly from it. To establish the connection between time and position, two additional angular variables are introduced: the mean anomaly
M
and the eccentric anomaly
E
. The mean anomaly is defined as a uniformly increasing orbital phase:
M=n(t−τ),
(
2
)
where
t
is time,
τ
is the time of periapsis passage, and
n
is the mean motion. For an unperturbed two-body orbit, the mean motion is given by:
n=
μ
3
a
,
(
3
)
where
μ=G(
m
0
+m)
is the gravitational parameter,
G
is the gravitational constant, and
m
0
and
m
are the two masses. The orbital period
T
is related to the mean motion through
n=2π/T
. Although
M
is expressed as an angle, the actual direction of the body from the focus is specified by
θ
. To connect this time-dependent phase to the orbital geometry, an auxiliary circle of radius
a
is drawn about the center
O
of the ellipse, as illustrated in Fig. 2. From the orbital position
P
, a line perpendicular to the major axis is extended to the corresponding point
Q
on the circle. The eccentric anomaly
E
is measured at
O
from the periapsis direction to
OQ
.
​Figure 2. Geometric construction of the eccentric anomaly
E
, showing the semimajor axis
a
, the semiminor axis
b
, and the true anomaly
θ
measured at the focus.
The mean and eccentric anomalies are related by Kepler’s equation:
M=E−esinE.
(
4
)
Once
E
has been obtained from
M
, the orbital distance is calculated from:
r=a(1−ecosE).
(
5
)
The true anomaly is then obtained using:
tan
θ
2
=
1+e
1−e
tan
E
2
.
(
6
)
Thus, with the appropriate angular quadrant retained, the position at a given time is obtained through the sequence
t→M→E→(r,θ)
. The orientation of this planar orbit in three-dimensional space must also be specified. A reference plane and a fixed reference direction
X≡Υ
are adopted, as illustrated in Fig. 3. The intersection of the orbital and reference planes defines the line of nodes. The ascending node is identified where the body crosses the reference plane toward its positive normal.
​Figure 3. Orientation of the orbital plane, showing the inclination
i
, longitude of the ascending node
Ω
, argument of periapsis
ω
, and true anomaly
θ
.
The orbital size and shape are specified by
a
and
e
, respectively. The inclination
i
is the angle between the orbital angular-momentum vector and the positive normal to the reference plane. The longitude of the ascending node
Ω
is measured in the reference plane from the reference direction
X≡Υ
to the ascending node
N
. The argument of periapsis
ω
is measured in the orbital plane from the ascending node
N
to periapsis in the direction of motion. A complete set of orbital elements therefore consists of
a,e,i,Ω,ω
, and an orbital phase at a specified epoch. The mean anomaly
M
is adopted as the sixth element here. An equivalent phase specification may be provided by
θ
or by the periapsis-passage time
τ
. The angular geometry shown in Fig. 3 is further illustrated in the accompanying Demonstration, Geometry of Keplerian Orbital Parameters, in which
i,Ω,ω
, and
θ
can be varied interactively.
Observe the variation of the four angular parameters (
i,Ω,ω,θ
) and examine their effect on the spatial orientation of the orbit and the position of the satellite:
In[]:=
ResourceObject["Demonstration: Geometry of Keplerian Orbital Parameters"]
Out[]=
ResourceObject
Name: Demonstration: Geometry of Keplerian Orbital Parameters
»
Type: Demonstration
Description:
This Demonstration provides an interactive geometric representation of the angul

ResourceData["Demonstration: Geometry of Keplerian Orbital Parameters"]
Out[]=
​
i
0.785398
Ω
0.785398
ω
1.5708
θ
0.523599
For the prograde configurations considered here, additional angular variables are constructed from the orbital elements. The longitude of periapsis
ϖ
is defined by:
ϖ=Ω+ω.
(
7
)
The mean longitude,
λ
, is defined by:
λ=ϖ+M.
(
8
)
For inclined orbits,
Ω
and
ω
are measured in different planes. The longitude of periapsis
ϖ
is a composite angle rather than the projected geometric direction of periapsis. The angular rates used below are:
◼
  • 
    M
    : Mean-Anomaly Rate.
  • ◼
  • n
    : Keplerian Mean Motion (In the unperturbed Keplerian problem:
    n=
    
    M
    ).
  • ◼
  • 
    θ
    : True-Anomaly Rate (Generally nonuniform even in an elliptical Keplerian orbit).
  • ◼
  • g=
    
    ϖ
    : Apsidal Precession Rate.
  • ◼
  • s=
    
    Ω
    : Nodal Precession Rate.
  • ◼
  • 
    ω
    : Argument-of-Periapsis Rate.
  • ◼
  • 
    λ
    : Mean-Longitude Rate.
  • ◼
  • 
    ψ
    : Spin Angular Frequency.
  • The dot denotes a time derivative. The spin angle
    ψ
    describes the rotation of the body about its own axis (spin). As illustrated in Fig. 4,
    ψ
    is measured from a fixed reference direction to a direction fixed in the body. In the planar model considered here, the spin axis is assumed to be perpendicular to the orbital plane, and both directions used to measure
    ψ
    lie in that plane.
    ​Figure 4. Definition of the spin angle
    ψ
    , showing the fixed reference direction, the direction fixed in the body, and the spin axis perpendicular to the orbital plane.

    2 Resonance Mechanism

    Display the harmonic accumulation animations with nonzero and zero final accumulations, respectively:

    3 Resonance Types

    References

    [1] Murray, C. D., and Dermott, S. F. (1999). Solar System Dynamics. Cambridge University Press.
    [2] Lee, T., Leok, M., and McClamroch, N. H. (2007). Lie group variational integrators for the full body problem. Computer Methods in Applied Mechanics and Engineering, 196, 2907–2924. DOI: 10.1016/j.cma.2007.01.017.
    [3] Gkolias, I., Celletti, A., Efthymiopoulos, C., and Pucacco, G. (2016). The theory of secondary resonances in the spin–orbit problem. Monthly Notices of the Royal Astronomical Society, 459, 1327–1339. DOI: 10.1093/mnras/stw752.
    [4] Forgács-Dajka, E., Sándor, Zs., and Érdi, B. (2018). A fast method to identify mean motion resonances. Monthly Notices of the Royal Astronomical Society, 477, 3383–3389. DOI: 10.1093/mnras/sty641.
    [5] Barnes, R., and Greenberg, R. (2006). Extrasolar planetary systems near a secular separatrix. ApJ, 638, 478–487. DOI: 10.1086/498736.
    [6] Petrovich, C., Wu, Y., and Ali-Dib, M. (2019). Secular transport during disk dispersal: the case of Kepler-419. AJ, 157, 5. DOI: 10.3847/1538-3881/aaeed9.
    [7] Fejoz, J., and Guardia, M. (2023). A remark on the onset of resonance overlap. arXiv: 2308.15222.