Goldstein page 342,
Consider a single particle (non-relativisitic) of mass $m$ and charge $q$ moving in an electromagnetic field.
The Lagrangian is $$ L = T-V = \frac{1}{2}mv^2-q\phi +q\vec{A}\cdot \vec{v}. \tag{p.341}$$
Using Cartesian coordinates as generalized coordinates, the Lagrangian is $$ L = \frac{m}{2}\dot{x_i}\dot{x_i} + qA_i\dot{x_i}-q\phi \tag{8.32}$$
Because of the linear term in the generalized velocities, $qA_i\dot{x_i}$, the Hamiltonian is not $T+V$.
Then what really confused me is the following:
The Hamiltonian is still the total energy since the "potential" energy in an electromagnetic field is determined by $\phi$ alone.
I have known that there are two conditions must be satisfied if the Hamiltonian is the total energy:
- the equations defining the generalized coordinates don't depend on time explicitly.
- the forces are derivable from a conservative potential $V$.
From Eq.(8.32), I think the potential $V$ should be $q\phi-\sum_i qA_i\dot{x_i}$, and since the potential is not an explicit function of time, I think it is conservative.
I want to know how to understand "the potential energy in an EM field is determined by $\phi$ alone"? I think this potential $V$ should be the function of the position and velocity. $$ V(x_i,\dot{x_i}) = q\phi-qA_i\dot{x_i}$$
And there may be some mistakes, please point them out and correct me.