14.6 Variational Methods and the Euler–Lagrange Equations 645
This is the equation of the simple pendulum.
To derive the same equation from the Hamilton equations, we choose
q
1
= l (˙q
1
=0) and q
2
= θ as the generalized (polar) coordinates. The
kinetic and potential energies are
T =
1
2
ml
2
˙q
2
2
,V= mgl (1 − cos q
2
) . (14.6.72ab)
Thus, H = T + V and L = T − V are given by
(H, L)=
1
2
ml
2
˙q
2
2
+
mgl (1 − cos q
2
) . (14.6.73ab )
From the definition of the generalized momentum, we find that
p
2
=
∂L
∂ ˙q
2
= ml
2
˙q
2
so that the Hamiltonian H in terms of p
2
and q
2
is
H =
1
2
p
2
2
ml
2
+ mgl (1 − cos q
2
) .
Thus, the Hamilton equation (14.6.61ab) gives
¨
θ + ω
2
sin θ =0,ω
2
=
g
l
. (14.6.74)
The variational methods can b e further extended for function als de-
pending on functions or more independent variables in the form
I [u (x, y)] =
D
F (x, y, u, u
x
,u
y
) dx dy (14.6.75)
where the values of the f unction u (x, y) are prescribed on the boundary
∂D of a finit e domain D in the (x, y)-plane. We assume that F is differen-
tiable and the surface u = u (x, y) giving an extremum is also continuously
differentiable twice.
The first variation δI of I is defined by
δI [u, ε]=I (u + ε) − I (u) (14.6.76)
which is, by Taylor’s expansion theorem
=
D
[εF
u
+ ε
x
F
p
+ ε
y
F
q
] dx dy (14.6.77)
where ε ≡ ε (x, y) is small and p = u
x
and q = u
y
.Accordingtothe
variational pri nciple, δI = 0 for all admissible values of ε. The partial
integration of (14.6.77) combi ned with ε =0on∂D gives