Relativistic Hamiltonian for a charged particle

The relativistic Hamiltonian for a charged particle in an external electromagnetic (EM) field can be derived from the relativistic Lagrangian

where vector P = generalised momentum.

The generalized momentum is

mvi = particle momentum

Squaring both sides

This is the required Hamiltonian and is the total energy W

This note is a part of the Physics Repository.