I'm looking at the problem of a mass moving under the affect of a central potential $V(r)$. I can get find the force equation in two ways, and it seems to me like I'm getting two different equations... Why is that?
The force equation from energy conservation:
$$\frac{1}{2}m(\dot{r}^2+r^2\dot{\theta}^2)+V(r)=E_0$$ Where the first term is the kinetic energy, the second is the potential energy of the central force, $E_0$ is the conserved energy, and we work in polar coordinates where the force points to the origin. If we take a time derivative and divide the result by $\dot{r}$ we get the force equation:
$$m(\dot{r}\ddot{r}+r\dot{r}\dot{\theta}^2+r^2\dot{\theta}\ddot{\theta})+\frac{\partial V(r)}{\partial r}\dot{r}=0$$ $$m\ddot{r}+mr\dot{\theta}^2+m\frac{r^2}{\dot{r}}\dot{\theta}\ddot{\theta}+\frac{\partial V(r)}{\partial r}=0$$
On the other hand we may write the Lagrangian: $$L=\frac{1}{2}m(\dot{r}^2+r^2\dot{\theta}^2)-V(r)$$ And use the Euler–Lagrange equations to find the force equation: $$Euler–Lagrange:\frac{d}{dt}\frac{\partial L}{\partial \dot{q_i}}-\frac{\partial L}{\partial q_i}=0$$ Where $q_i$ are the coordinates: $r,\theta$. We get: $$m\ddot{r}+2mr\dot{r}\dot{\theta}+mr^2\ddot{\theta}-mr\dot{\theta}^2+\frac{\partial V}{\partial r}=0$$
Which is not the same as the force equation we got from the conservation of energy!
** edit: Notice that I have a mistake in the last equation. Euler–Lagrange is a set of two equations, and I thought it was a summation over i. that is not true, obviously, from unit considerations.... I'm keeping the mistake in the question in case someone else does the same mistake **