E=\frac{\partial L}{\partial \dot{\vec{r}}}\dot{\vec{r}}-L=\frac{\partial L}{\partial \dot{x}}\vec{e_x}\dot{x}\vec{e_x}-L