Could anyone help me with this question?-
Suppose a particle of mass m with position $x>0$ moves in 1D space under the influence of the gravitational force of another point particle with mass $M$ sitting at $x=0$.
The question gives
$$\mathbf F=-\frac{GmM}{x^2}i$$
And asks to prove $$\frac{d}{dt}(\frac{m \dot{x}^2}{2}- \frac{GmM}{x})=0 $$
Using Newton’s second law. I understand that $\mathbf F= ma = m\frac{dv}{dt}$ and that $ \frac{m \dot{x}^2}{2}$ is the formula for kinetic energy but I can’t figure out how to put all of this together to get the form the question is asking for.
Any help would be much appreciated!