I'm trying to write the gravitational potential of two masses $m_1$ and $m_2$ using the multipolar expansion of the potential:
$$V = G\sum\frac{1}{r^{n+1}}\int r'^n P_n(\cos \theta) \rho(r') dV'$$
I was able to derive the expression for the expansion but my issue is when considering the terms alone (monopole, dipole, quadrupole term ...). I am aware that the terms come from the gravitational moments, but I don't understand how we achieved these relations. The monopole, dipole, quadrupole moments are respectively:
$$M = \int{\rho(r') dV'} = m_1 + m_2$$ $$P = \int r' \rho(r') dV' = \left(\frac{m_1m_2}{m_1 + m_2} - \frac{m_1m_2}{m_1 + m_2}\right)l = 0$$ $$Q = \int r'^2 \rho(r')dV' = \frac{m_1m_2}{m_1 + m_2}l^2$$
$l$ is the distance between the two masses. I get the left side of the equations, but it's the right side that I don't get.
Any explanation on this is much appreciated.