Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2015/iii/paper-58/2/b/solution

Assemble the star from concentric shells. A shell of mass at radius has interaction energy with the already assembled interior. This counts each gravitational pair once. Hence the Newtonian gravitational potential energy is
Using gives
The negative sign expresses gravitational binding. A factor of one half should not be inserted again: the shell assembly already avoids double counting.

New to topics? Read the docs here!