The Two Body Problem: Kepler's Harmonic Law
For simplicity we assume circular orbits.
In the center of gravity frame we have m1 at distance r1 and m2 at distance r2 from the center of gravity and
m1 r1 = m2 r2.
Note that a=r1+r2 is the semimajor axis.
Both bodies have the same sidereal period w=2p/p (and of course a line through the bodies always includes the center of gravity).
The magnitude of the gravitational force on both bodies is Gm1m2/a2
(action=reaction).
The centripital force on body 1 is
m1w2r1 so setting gravitational = centripetal we have
Gm1m2/a2 = m1w2r1 for m1
Gm1m2/a2 = m2w2r2 for m2
or
Gm2/a2 = w2r1
Gm1/a2 = w2r2
Adding the two gives G(m1+m2)/a2 = w2a (a=r1+r2)
or (w=2p/p)
(m1+m2)p2 = (4p2/G)a3
If we measure m in solar masses, p in years and a in AU the
(4p2/G) factor is unity and we get
(m1+m2)p2 = a3
a form used in getting stellar masses from binary stars. In fact this is the only way we can get stellar masses!
If m2 is much less than m1 we can simplify the equation to
mp2 = a3
a form used to estimate the distances to planets in other stellar systems if p is known (from spectroscopic line shifts like in spectroscopic binary stars or from periodic light dimming like in eclipsing binary stars). It is interesting to note that while the mass m can be reliably estimated from the spectrum of the star, the distance obtained is only sensitive to the cube root of the mass so the estimate can be quite accurate.
Finally, if we can take m1+m2 to be one we get Kepler's harmonic law, quite accurate for solar system objects,
p2 = a3.