This note gives the derivations for the addendum on the Lagrangian equations of motion.
To derive the nonrelativistic Lagrangian, consider the system to be
build up from elementary particles numbered by an index
. You may
think of these particles as the atoms you would use if you would do a
molecular dynamics computation of the system. Because the system is
assumed to be fully determined by the generalized coordinates, the
position of each individual particle is fully fixed by the generalized
coordinates and maybe time. (For example, it is implicit in a solid
body approximation that the atoms are held rigidly in their relative
position. Of course, that is approximate; you pay some price
for avoiding a full molecular dynamics simulation.)
Newton’s second law says that the motion of each individual
particle
is governed by
Now consider an infinitesimal virtual displacement of the system from
its normal evolution in time. It produces an infinitesimal change in
position
for each particle. After such a
displacement,
of course no longer satisfies
the correct equations of motion, but the kinetic and potential
energies still exist.
In the equation of motion for the correct position
above,
take the mass times acceleration to the other side, multiply by the
virtual displacement, sum over all particles
, and integrate over
an arbitrary time interval:
Recognize the first two terms within the brackets as the virtual
change in the Lagrangian due to the virtual displacement at that time.
Note that this requires that the potential energy depends only on the
position coordinates and time, and not also on the time derivatives of
the position coordinates. You get
![]() |
(D.3) |
In case that the additional forces
are zero, this produces
the action principle: the time integral of the Lagrangian is unchanged
under infinitesimal virtual displacements of the system, assuming that
they vanish at the end points of integration. More generally, for the
virtual work by the additional forces to be zero will require that the
virtual displacements respect the rigid constraints, if any. The
infinite work done in violating a rigid constraint is not modeled by
the potential
in any normal implementation.
Unchanging action is an integral equation involving the Lagrangian.
To get ordinary differential equations, take the virtual change in
position to be that due to an infinitesimal change
in
a single generic generalized coordinate. Represent the change in the
Lagrangian in the expression above by its partial derivatives, and the
same for
:
Now suppose that there is any time at which the expression within the
square brackets is nonzero. Then a virtual change
that
is only nonzero in a very small time interval around that time, and
everywhere positive in that small interval, would produce a nonzero
right hand side in the above equation, but it must be zero. Therefore,
the expression within brackets must be zero at all times. That gives
the Lagrangian equations of motion, because the expression between
parentheses is defined as the canonical momentum.
To derive the Hamiltonian equations, consider the general differential
of the Hamiltonian function (regardless of any motion that may go on).
According to the given definition of the Hamiltonian function, and
using a total differential for
,
Now consider an actual motion. For an actual motion,
is
the time derivative of
, so the second partial derivative gives
the first Hamiltonian equation of motion. The first partial
derivative gives the second equation when combined with the
Lagrangian equation of motion (A.2).
It is still to be shown that the Hamiltonian of a classical system is
the sum of kinetic and potential energy if the position of the system
does not depend explicitly on time. The Lagrangian can be written out
in terms of the system particles as
As discussed in {A.1.5}, the Lagrangian for fields
takes the form
The action is
Consider now first an infinitesimal deviation
in a discrete variable
. The change
in action that must be zero is then
Next consider an infinitesimal deviation
in field
. The change in action that must be zero is then
The canonical momenta are defined as
For Hamilton’s equations, assume at first that there are no
discrete variables. In that case, the Hamiltonian can be written in
terms of a Hamiltonian density
:
If there are discrete variables, this no longer works. The full
Hamiltonian is then
The differential of this approximate Hamiltonian is

The
term allows the time derivative of
to be
identified with the partial derivative of
with respect
to
. And the Lagrangian expression for the time
derivative of
, as given in (1), may be rewritten in
terms of corresponding derivatives of the approximate Hamiltonian.
Together that gives, in the limit
,
For the field, consider an position
corresponding to the center
of an arbitrary little volume
. Then the
term allows the time derivative of
at this arbitrary position to be identified in terms
of the partial derivative of the approximate Hamiltonian with respect
to
at the same location. And the Lagrangian
expression for the time derivative of
, as given
by (2), may be rewritten in terms of corresponding derivatives of the
approximate Hamiltonian. Together that gives, in the limit
, and leaving
away since it can be any position,
Of course, in real life you would not actually write out these limits.
Instead you simply differentiate the normal Hamiltonian
until you
have to start differentiating inside an integral, like maybe,