⚽ Goal: lets derive the Hamiltonian from the Lagrangian formalism of classical electrodynamics

Lagrangian formalism

🍎 Classical: for now we are in classical non-relativistic regime

💼 Case: particle of mass $m$ and charge $q$ in an external electric and magnetic field $\vec E(\vec r,t)$$,\,\vec B(r,t)$

Canonical momentum

<aside> 🥫

Canonical momentum: we define it from the Lagrangian as

$$ p_i \equiv \frac{\partial L}{\partial \dot r_i} $$

</aside>

Classical Hamiltonian

<aside> 🗿

Classical Hamiltonian: is defined as

$$ H\equiv \vec p\cdot \dot{\vec r}-L $$

</aside>

Quantum Hamiltonian

🫐 Quantum: here we are in the quantum and non-relativistic regime

Conservation of momentum

💼 Case: lets consider $\Phi(\hat {\vec r},t)=0$

💎 Conclusion: the canconical momentum $\hat{\vec p}$ is not generally a constant of motion