In the process of formation of a body, work has to be done by an external agent bit by bit to build up the body. This energy of the external agent is stored as gravitational energy. This is called the self-gravitation potential energy or gravitational energy of mutual gravitational interaction.
a. Consider a sphere of any radius x.
Mass of the sphere =4π/3 x3ρ where ρ= density of mass
Gravitational potential of the surface =−4π/3 G ρx2
This is also the work done in adding unit mass to the sphere by the external agent. When the thickness is increased by dx, mass added by the agent is 4πx2dxρ.
Therefore, work done by the agent in increasing the surface from x to x is dx
(−4π3Gρx2)(4πx2dxρ)=16π23Gρ2x6dx
Therefore, total work done by the agent
=−16π2Gρ23∫R0x4dx=−16π2Gρ2R515
Now, ρ=m4π3R3=3m4πR3
Therefore, U(self-energy)=−16π2R5G15×9m216π2R6
=−35GM2R
b. Consider the shell when mass m has already been piled up by the agent.
Then, potential of the shell=−GM/R
This is also the work done by the agent in adding another unit mass to the shell. Therefore, the elementary work done in adding an elementary mass dm is −Gm/R dm. Therefore, net work done by the agent in piling the entire mass
=−∫m0GMdmR=−Gm22R
Therefore, U(self-potential energy)=−12Gm2/R.