E_i=\frac{\partial L}{\partial \dot{\vec{r_i}}}\dot{\vec{r_i}}-L