I'm attempting to numerically solve the 3-body problem. Using Newton's second law, I've derived a system of 6 second order differential equations, the first three being:
$$ m_1\frac{d^2x_1}{dt^2} = -G \Bigg[ \frac{m_1m_2(x_1-x_2)}{[(x_1-x_2)^2+(y_1-y_2)^2]^{3/2}} + \frac{m_1m_3(x_1-x_3)}{[(x_1-x_3)^2+(y_1-y_3)^2]^{3/2}} \Bigg]$$
$$ m_2\frac{d^2x_2}{dt^2} = -G \Bigg[ \frac{m_1m_2(x_2-x_1)}{[(x_2-x_1)^2+(y_2-y_1)^2]^{3/2}} + \frac{m_2m_3(x_2-x_3)}{[(x_2-x_3)^2+(y_2-y_3)^2]^{3/2}} \Bigg]$$
$$ m_3\frac{d^2x_3}{dt^2} = -G \Bigg[ \frac{m_1m_3(x_3-x_1)}{[(x_3-x_1)^2+(y_3-y_1)^2]^{3/2}} + \frac{m_2m_3(x_3-x_2)}{[(x_3-x_2)^2+(y_3-y_2)^2]^{3/2}} \Bigg]$$
Likewise, I've found equations for $\frac{d^2y_i}{dt^2}$ and have cancelled out the repeated mass terms. I would like to nondimensionalize all of these equations before linearizing and solving, but am not sure how. I'd like to use $M$ as the nondimensional unit for mass and $d$ as the nondimensional unit of distance.
So far I've tried letting $u = x/L$, $v=y/L$, and $\tau=t/T$. Any ideas on how I could nondimensionalize this system? Thank you!