Write the expression to find the work done\(W\)to move a body from\(a\)to\(b\).
\(\begin{aligned}W &= \mathop {\lim }\limits_{n \to \infty } \sum\limits_{i = 1}^n f \left( {x_i^*} \right)\Delta x\\ &= \int_a^b f (x)dx\end{aligned}\) …… (2)
Consider the mass of two bodies are\(m1\)and\(m2\).
Consider the mass\(m1\)is fixed and mass\(m2\)is moving.
According to Newton's Law of Gravitation, the two masses \(m1\)and \(m2\)attract each other with a force\(F\).
Calculate the work done to move the mass \(m2\)from a location \(r = a\)to \(r = b\) (against the attraction force of mass\(m1\)) using Equation (2).
Substitute \(F\)for \(f(x)\)and \(dr\)for \(dx\)in Equation (2).
\(W = \int_a^b F dr\) …… (3)
Modify equation (3) using equation (1).
\(W = \int_a^b {\left( {G\frac{{{m_1}{m_2}}}{{{r^2}}}} \right)} dr\)
\( = G{m_1}{m_2}\int_a^b {{r^{ - 2}}} dr\) ...... (4)
\( = G{m_1}{m_2}\left[ { - \frac{1}{r}} \right]_a^b\)
\( = G{m_1}{m_2}\left( {\frac{1}{a} - \frac{1}{b}} \right)\)
Thus, the work done to move the mass\(m2\)from the location\(r = a\) to\(r = b\), against the attraction force of mass\(m1\)is\(G{m_1}{m_2}\left( {\frac{1}{a} - \frac{1}{b}} \right)\).