What's wrong in this derivation of potential at any point? Its showing GPE at any point is +ve but its supposed to be negative right?
Supoose a object is being moved from infinity to a point at distance $r$ from the center of earth. What's the GPE?
Direction of $F_\text{ext}$ and $\mathrm{d}x$ is opposite. So, $$ \begin{aligned} W &= \int F_\text{ext} \cdot \mathrm{d}x \cdot \cos180° \\ &= \int -\frac{GMm}{x^2} \mathrm{d}x \\ &= \frac{GMm}{x} |_{\infty}^r \\ &= GMm\left(\dfrac{1}{r} - \frac{1}{\infty}\right) \\ &= \frac{GMm}{r} \end{aligned} $$
As GPE is defined as the energy to take any object from inifnity to asked point, I have taken
- External force in opposite direction ($+x$ axis) of Gravitational force as kinetic energy should not be changed.
- direction of $\mathrm{d}x$ is in $-x$ axis
- So,angle is 180°
- Upper limit : $r$ lower limit: Infinity
Still the ans is +ve. Please explain what's the wrong assumption here?