Let's say we're working with a particle being subjected to a conservative force $\vec{F}$. Using Newtonian mechanics, we know that the equation of motion $r(t)$ for the particle is found using Newton's Second Law: $$ m\ddot{\vec{r}} = \vec{F}\left(\vec{r}\right) = - \nabla U\left(\vec{r}\right) \tag{1} $$ where we used that the force is conservative, and hence, we can write it as the gradient of the one-dimensional potential.
On the other hand, by conservation of energy, we can say that $ E = K + U\left(\vec{r}\right) $, but recalling that $K = \frac{1}{2}m \lvert \dot{r}\rvert^2$ we can establish the following relationship as well $$ \frac{1}{2}m \big\lvert \dot{\vec{r}}\big\rvert^2 = E- U\left(\vec{r}\right) \tag{2} $$
Both $(1)$ and $(2)$ are differential equations for the same function $\vec{r}(t)$, so my question is, are both of these equations equivalent? And if so, how could I show that these equations are equivalent?