Professional Documents
Culture Documents
1. Let T be the kinetic energy and U the potential energy of a mechanical system. Let
qk (t), k = 1, . . . , n be generalized coordinates. According to Hamilton’s principle, the
trajectory of q(t) = (q1 (t), . . . , qn (t)) through the configuration space C satisfies the
Euler-Lagrange equations
∂L d ∂L
− = 0, k = 1, . . . , n, (1)
∂qk dt ∂ q̇k
where the Lagranigian is L = T − U .
(5) gives the Hamiltonian as a function of t, p and q. The partial derivatives of H with
respect to the qj and pj are
n n
∂H X ∂L ∂ q̇k X ∂ q̇k
=− + pk + q̇j
∂pj ∂ q̇k ∂pj ∂pj
k=1 k=1
n n
X ∂ q̇k X ∂ q̇k
=− pk + pk + q̇j
∂pj ∂pj
k=1 k=1
= q̇j , (6)
and
n n
∂H ∂L X ∂L ∂ q̇k X ∂ q̇k
=− − + pk
∂qj ∂qj ∂ q̇k ∂qj ∂qj
k=1 k=1
n n
d ∂L X ∂ q̇k X ∂ q̇k
=− − pk + pk
dt ∂ q̇j ∂qj ∂qj
k=1 k=1
= −ṗj . (7)
Thus,
∂H ∂H
q̇j = and ṗj = − , for j = 1, . . . , n. (8)
∂pj ∂qj
These are Hamilton’s equations.
4. Example: Consider a pendulum with string of length l and negligible mass and and a
bob of mass m. The generalized coordinate is the angle θ made by the string and the
pendulum. The kinetic and potential energies are
1
T = m(lθ̇)2 and U = mgl(1 − cos θ).
2
1
L(θ, θ̇) = m(lθ̇)2 − mgl(1 − cos θ). (9)
2
∂L
p= = ml2 θ̇,
∂ θ̇
so that
1
θ̇ = θ̇(p) = p.
ml2
Finally, by (5), the Hamiltonian is
H = −L + pq̇
1 k
= − mq̇ 2 + q 2 + pq̇
2 2
1 2 k 2 1
=− p + q + p2
2m 2 m
1 2 k 2
= p + q . (13)
2m 2
So Hamilton’s equations are
∂H p
q̇ = = ,
∂p m
and
∂H
ṗ = − = −kq.
∂q
You can get the equations of motion in Lagrangian form from (11):
d
Lq − Lq̇ = −(kq − mq̈) = 0,
dt
or
k
q̈ + q = 0,
m
which is the familiar simple harmonic oscillator.
6. The derivative of H along the path traced by (q(t), p(t)) in the phase space is
n
d ∂H X ∂H ∂H
H(t, q(t), p(t)) = + q̇k + ṗk
dt ∂t ∂qk ∂pk
k=1
n
∂H X ∂H ∂H ∂H ∂H
= + −
∂t ∂qk ∂pk ∂pk ∂qk
k=1
∂H
= . (14)
∂t
1 2
T (q̇) = mq̇ . (17)
2
In each case, T was a quadratic form in the generalized velocities. The coefficients
of the quadratic form were functions of the generalized coordinates. Following these
examples, we will take the kinetic energy to have the form
n
X
T (q, q̇) = aij (q)q̇i q̇j , (18)
i,j=1
where aij (q) = aji (q). In (16), for example, q = (r, θ), and the coefficients are
1 1 2
a11 (q) = m, a12 (q) = a21 (q) = 0, and a22 (q) = mr . (19)
2 2
We will also assume that the potential U does not depend on q̇. Under these assump-
tions, the Lagrangian has the form
n
X
L(t, q, q̇) = aij (q)q̇i q̇j − U (q, t). (20)
i,j=1
= −T + U + 2T
= T + U. (21)
So if L has the form (20), then H is the total energy of the mechanical system.
d
H(q(t), p(t)) = 0. (22)
dt
Thus the total energy is conserved.