Hamiltonian
From Physics wiki
In the Lagrangian formulation of a system, one deals with
generalized coordinates
, their velocities
, and a Lagrangian
, and one is tasked with solving the Euler-Lagrange equations which are generally second order in time:
.
The canonical momentum conjugate to
is
.
Let us rephrase the problem to consider
and
to be independent variables. Being
variables, we expect that this should be an equally valid description of the system. We perform a Legendre transformation of
with respect to
. First, we formally invert the previous expression to obtain each
in terms of
and
. Then we define the Hamiltonian to be
.
Note that
,
which, by virtue of the definition of
becomes
.
Furthermore,
| ,
|
,
| |
.
|
by virtue of the Euler-Lagrange equations. We can therefore state Hamilton's equations
,
.
Although we now have
independent variables, the equations of motion are generally first order and consequently easier to solve.
,
,
.

