Jacobi coordinates

In the theory of many-particle systems, Jacobi coordinates often are used to simplify the mathematical formulation. These coordinates are particularly common in treating polyatomic molecules and chemical reactions, and in celestial mechanics. An algorithm for generating the Jacobi coordinates for "N" bodies may be based upon binary trees. In words, the algorithm is described as follows:
Let "m""j" and "m""k" be the masses of two bodies that are replaced by a new body of virtual mass "M" = "m""j" + "m""k". The position coordinates x"j" and x"k" are replaced by their relative position r"jk" = x"j" − x"k" and by the vector to their center of mass R"jk" = ("m""j" "q""j" + "m""k""q""k")/("m""j" + "m""k"). The node in the binary tree corresponding to the virtual body has "m""j" as its right child and "m""k" as its left child. The order of children indicates the relative coordinate points from x"k" to x"j". Repeat the above step for "N" − 1 bodies, that is, the "N" − 2 original bodies plus the new virtual body. 
For the "N"-body problem the result is:
with
The vector formula_4 is the center of mass of all the bodies:
The result one is left with is thus a system of "N"-1 translationally invariant coordinates formula_5 and a center of mass coordinate formula_6, from iteratively reducing two-body systems within the many-body system.
This change of coordinates has associated Jacobian equal to formula_7.
If one is interested in evaluating a free energy operator in these coordinates, one obtains
In the calculations can be useful the following identity