A Lagrangian and Hamiltonian formulation can be given for a damped harmonic oscillator with damping linear in the velocity. The canonical momentum is not equal to the kinetic momentum, and the Hamiltonian is not equal to the energy. On the other hand, a pendulum accreting mass has the same Lagrangian and equation of motion. However, in this case the canonical momentum is equal to the kinetic momentum, and the Hamiltonian is equal to the energy. No ambiguity arises if the physical situation is kept in mind.

This content is only available via PDF.
AAPT members receive access to the American Journal of Physics and The Physics Teacher as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.