Given an extended gravitating mass, let the observer be located at a distance R and angle from a reference
point. The multipole expansion of the gravitational potential is then given by
(1)
where G is the gravitational constant, and dm is a differential element of mass at position r, so to second order in ,