EULER-LAGRANGE TO HAMILTON

advertisement
EULER-LAGRANGE TO HAMILTON
LANCE D. DRAGER
The goal of these notes is to give one way of getting from the Euler-Lagrange
equations to Hamilton’s equations.
1. Euler-Lagrange to Hamilton
We will often write elements of a Euclidean space R2š‘ as a pair of š‘ -vectors,
(š‘„, š‘¦) = (š‘„1 , . . . , š‘„š‘ , š‘¦1 , . . . , š‘¦š‘ ).
We start with a lemma.
Lemma 1.1. Let š¹ : R2š‘ → R2š‘ be a diffeomorphism of the form š¹ (š‘„, š‘¦) =
(š‘„, š“(š‘„, š‘¦)), for some function š“ : R2š‘ → Rš‘ . Then the inverse function šŗ has
the form šŗ(š‘¢, š‘£) = (š‘¢, Γ(š‘¢, š‘£)) and we have the following identifies:
(1)
š“(š‘¢, Γ(š‘¢, š‘£)) = š‘£
(2)
Γ(š‘„, š“(š‘„, š‘¦)) = š‘¦.
Proof. The function šŗ can be written as (šŗ1 (š‘¢, š‘£), šŗ2 (š‘¢, š‘£)), and similarly for š¹ .
Since š¹ and šŗ are inverses, we have
(š‘¢, š‘£) = (š¹ āˆ˜ šŗ)š‘¢, š‘£
= š¹ (šŗ1 (š‘¢, š‘£), šŗ2 (š‘¢, š‘£))
= (šŗ1 (š‘¢, š‘£), š“(šŗ1 (š‘¢, š‘£), šŗ2 (š‘¢, š‘£))).
Comparing the first slots, we find šŗ1 (š‘¢, š‘£) = š‘¢. Plugging this into the second slots
gives š‘£ = š“(š‘¢, šŗ2 (š‘¢, š‘£)) and we have šŗ(š‘¢, š‘£) = (š‘¢, šŗ2 (š‘¢, š‘£)). Set Γ = šŗ2 , and we
have š‘£ = š“(š‘¢, Γ(š‘¢, š‘£)).
The identity in equation (2) is derived in a similar fashion from šŗ(š¹ (š‘„, š‘¦)) =
(š‘„, š‘¦).
Let šæ : R2š‘ → R be a Lagrangian, which we write as
šæ(š‘ž, š‘ž)
Ė™ = šæ(š‘ž1 , . . . , š‘žš‘ , š‘žĖ™1 , . . . , š‘žĖ™š‘ )
where the š‘žĖ™š‘– are just variables.
If š‘(š‘”) is a path in Rš‘ , the position of the system, we follow classical tradition
and write š‘(š‘”) = š‘ž(š‘”). If we add the velocity, we get a path š‘ˆ(š‘”) = (š‘ž(š‘”), š‘ž(š‘”))
Ė™
in
R2š‘ . In this notation we do mean that š‘ž(š‘”)
Ė™ = š‘ž ′ (š‘”) is the derivative of š‘ž(š‘”).
The path satisfies the Euler-Lagrange equations if
šœ•šæ
š‘‘ šœ•šæ
(3)
(š‘ž(š‘”), š‘ž(š‘”))
Ė™
=
(š‘ž(š‘”), š‘ž(š‘”)),
Ė™
š‘– = 1, . . . , š‘.
š‘‘š‘” šœ• š‘žĖ™š‘–
šœ•š‘žš‘–
For brevity, we sometimes write expressions for partial derivatives like
šœ•šæ (ļø€ šœ•šæ
šœ•šæ )ļø€
=
,...,
.
šœ•š‘ž
šœ•š‘ž1
šœ•š‘žš‘
Version Time-stamp: ”2014-10-01 15:56:09 drager”.
1
2
LANCE D. DRAGER
Define a map š¹ : R2š‘ → R2š‘ by
(ļø€ šœ•šæ
š¹ (š‘ž, š‘ž)
Ė™ = š‘ž,
(š‘ž, š‘ž)).
Ė™
šœ•š‘ž
The Lagrangian šæ is called hyperregular if this map is a diffeomorphism.
For the rest of these notes, we deal with hyperregular Lagrangian.
Let šŗ(š‘ž, š‘) = (š‘ž, Γ(š‘ž, š‘)) be the inverse of š¹ . By our Lemma, we have
(4)
(5)
šœ•šæ
(š‘ž, Γ(š‘ž, š‘)) = š‘
šœ• š‘žĖ™
(ļø€ šœ•šæ
)ļø€
Γ š‘ž,
(š‘ž, š‘ž)
Ė™ = š‘žĖ™
šœ• š‘žĖ™
The quantify
(6)
š‘š‘– =
šœ•šæ
(š‘ž, š‘ž)
Ė™
šœ• š‘žĖ™š‘–
is called the (generalized) momentum conjugate to š‘žš‘– .
Given a path š‘ˆ(š‘”) = (š‘ž(š‘”), š‘ž(š‘”)),
Ė™
we get a path š›¾(š‘”) = š¹ (š‘ž(š‘”), š‘ž(š‘”))
Ė™
= (š‘ž(š‘”), š‘(š‘”)),
where
š‘(š‘”) =
šœ•šæ
(š‘ž(š‘”), š‘ž(š‘”)).
Ė™
šœ• š‘žĖ™
If š‘ is a solution of the Euler-Lagrange equations, we want to find the differential
equations satisfied by š›¾.
From the Euler-Lagrange equations, we have
(7)
š‘‘
šœ•šæ
š‘(š‘”) =
(š‘ž(š‘”), š‘ž(š‘”))
Ė™
š‘‘š‘”
šœ•š‘ž
and we have
(8)
š‘‘
š‘ž(š‘”) = š‘ž(š‘”)
Ė™ = Γ(š‘ž(š‘”), š‘(š‘”)),
š‘‘š‘”
We need to eliminate the š‘ž(š‘”)
Ė™ in (7), which we can do using (8),
(9)
š‘‘
šœ•šæ
š‘(š‘”) =
(š‘ž(š‘”), Γ(š‘ž(š‘”), š‘(š‘”))).
š‘‘š‘”
šœ•š‘ž
The equations (9) and (8) give us our desired differential equations. A path
(š‘ž(š‘”), š‘(š‘”)) satisfies these equations if and only if the corresponding path (š‘ž(š‘”), š‘ž(š‘”))
Ė™
satisfies the Euler-Lagrange equations.
However, we can write the equations in a more informative form. Define the
Ģƒļø€ š‘) by
function šæ(š‘ž,
Ģƒļø€ š‘) = šæ(š‘ž, Γ(š‘ž, š‘)),
šæ(š‘ž,
the Lagrangian expressed in terms of š‘ and š‘ž.
EULER-LAGRANGE TO HAMILTON
3
Using the chain rule, we get
Ģƒļø€
]ļø€
šœ•šæ
šœ• [ļø€
(š‘ž, š‘) =
šæ(š‘ž, Γ(š‘ž, š‘))
šœ•š‘žš‘–
šœ•š‘žš‘–
š‘
∑ļø
šœ•šæ
šœ•Γš‘—
šœ•šæ
=
(š‘ž, Γ(š‘ž, š‘)) +
(š‘ž, Γ(š‘ž, š‘)))
(š‘ž, š‘)
šœ•š‘žš‘–
šœ• š‘žĖ™š‘—
šœ•š‘žš‘–
š‘—=1
=
š‘
∑ļø
šœ•šæ
šœ•Γš‘—
(š‘ž, Γ(š‘ž, š‘)) +
(š‘ž, š‘),
š‘š‘—
šœ•š‘žš‘–
šœ•š‘žš‘–
š‘—=1
using (4). We can solve this equation for šœ•šæ/šœ•š‘žš‘– to get
š‘
∑ļø
Ģƒļø€
šœ•šæ
šœ•Γš‘—
šœ•šæ
(š‘ž, Γ(š‘ž, š‘)) =
(š‘ž, š‘) −
š‘š‘—
(š‘ž, š‘)
šœ•š‘žš‘–
šœ•š‘žš‘–
šœ•š‘žš‘–
š‘—=1
=−
šœ•
šœ•š‘žš‘–
{ļø‚ ∑ļø
š‘
}ļø‚
Ģƒļø€ š‘ž)
š‘š‘— Γš‘— (š‘ž, š‘) − šæ(š‘,
š‘—=1
šœ•š»
=−
(š‘ž, š‘),
šœ•š‘žš‘–
where
(10)
š»(š‘, š‘ž) =
š‘
∑ļø
Ģƒļø€ š‘ž)
š‘š‘— Γš‘— (š‘ž, š‘) − šæ(š‘,
š‘—=1
is the Hamiltonian of the problem. The minus sign is conventional.
Thus, by (7), we have
(11)
š‘‘š‘š‘–
šœ•š»
(š‘”) = −
(š‘ž(š‘”), š‘(š‘”))
š‘‘š‘”
šœ•š‘žš‘–
which is one of Hamilton’s equations. This equation holds only when the EulerLagrange equations are satisfied.
For the other equation, we can calculate as follows:
]ļø‚
[ļø‚ š‘
šœ•š»
šœ• ∑ļø
Ģƒļø€
(š‘ž, š‘) =
š‘š‘— Γš‘— (š‘ž, š‘) − šæ(š‘, š‘ž)
šœ•š‘š‘–
šœ•š‘š‘– š‘—=1
(12)
š‘
∑ļø
Ģƒļø€
šœ•Γš‘—
šœ•šæ
= Γš‘– (š‘, š‘ž) +
š‘š‘—
(š‘ž, š‘) −
(š‘ž, š‘).
šœ•š‘š‘–
šœ•š‘š‘–
š‘—=1
Ģƒļø€ we have
To calculate the partial derivatives of šæ,
Ģƒļø€
]ļø€
šœ•šæ
šœ• [ļø€
(š‘ž, š‘) =
šæ(š‘ž, Γ(š‘ž, š‘))
šœ•š‘š‘–
šœ•š‘š‘–
š‘
∑ļø
šœ•šæ
šœ•Γš‘—
=
(š‘ž, Γ(š‘ž, š‘))
(š‘, š‘ž)
šœ•
š‘ž
Ė™
šœ•š‘š‘–
š‘—
š‘—=1
=
š‘
∑ļø
š‘—=1
š‘š‘—
šœ•Γš‘—
(š‘, š‘ž),
šœ•š‘š‘–
4
LANCE D. DRAGER
using equation (4). Plugging this into (12), we have
š‘
∑ļø
Ģƒļø€
šœ•š»
šœ•šæ
šœ•Γš‘—
(š‘ž, š‘) = Γš‘– (š‘, š‘ž) +
(š‘ž, š‘) −
(š‘ž, š‘)
š‘š‘—
šœ•š‘š‘–
šœ•š‘š‘–
šœ•š‘š‘–
š‘—=1
š‘
∑ļø
šœ•Γš‘—
šœ•Γš‘—
(š‘ž, š‘) −
(š‘, š‘ž)
= Γš‘– (š‘, š‘ž) +
š‘š‘—
š‘š‘—
šœ•š‘
šœ•š‘š‘–
š‘–
š‘—=1
š‘—=1
š‘
∑ļø
= Γš‘– (š‘ž, š‘),
in other words
šœ•š»
= Γ(š‘ž, š‘),
šœ•š‘
(13)
so (8) becomes
šœ•š»
š‘‘š‘ž
(š‘”) =
(š‘ž(š‘”), š‘(š‘”)).
š‘‘š‘”
šœ•š‘
(14)
This equation holds for any path.
Putting this together, we have Hamilton’s Equations
šœ•š»
š‘‘š‘ž
(š‘”) =
(š‘ž(š‘”), š‘(š‘”))
š‘‘š‘”
šœ•š‘
šœ•š»
š‘‘š‘
(š‘”) = −
(š‘ž(š‘”), š‘(š‘”)),
š‘‘š‘”
šœ•š‘ž
(15)
or, to put in the indices,
(16)
š‘‘š‘žš‘–
šœ•š»
(š‘”) =
(š‘ž(š‘”), š‘(š‘”))
š‘‘š‘”
šœ•š‘š‘–
š‘‘š‘š‘–
šœ•š»
(š‘”) = −
(š‘ž(š‘”), š‘(š‘”)),
š‘‘š‘”
šœ•š‘žš‘–
š‘– = 1, . . . , š‘.
In the classical literature, the formula for š»,
š»(š‘, š‘ž) =
š‘
∑ļø
Ģƒļø€ š‘ž)
š‘š‘— Γš‘— (š‘ž, š‘) − šæ(š‘,
š‘—=1
is often written as
š»(š‘ž, š‘) =
š‘
∑ļø
Ģƒļø€ š‘),
š‘š‘— š‘žĖ™š‘— − šæ(š‘ž,
š‘—=1
in view of our formula š‘žĖ™ = Γ(š‘ž, š‘), but this is a bit obscure, since you have to
remember that š‘žĖ™ here is a function of š‘ž and š‘, not an independent variable.
Example 1.2. Consider a particle moving in the plane, subject to a force that
comes from a potential. We’ll use the coordinates (š‘ž1 , š‘ž2 ) on the plane and follow
the notation above. The Lagrangian is
šæ(š‘ž, š‘ž)
Ė™ =
1
š‘š(š‘žĖ™12 + š‘žĖ™22 ) − š‘‰ (š‘ž1 , š‘ž2 ).
2
EULER-LAGRANGE TO HAMILTON
5
The conjugate momenta are
šœ•šæ
(š‘ž, š‘ž)
Ė™ = š‘šš‘žĖ™1
šœ• š‘žĖ™1
šœ•šæ
(š‘ž, š‘ž)
Ė™ = š‘šš‘žĖ™2
š‘2 =
šœ• š‘žĖ™2
š‘1 =
We can easily solve this for the š‘ž’s
Ė™ in terms of the š‘’s:
š‘žĖ™1 = š‘1 /š‘š
š‘žĖ™2 = š‘2 /š‘š,
in other words
Γ(š‘ž, š‘) =
1
š‘.
š‘š
Substituting in the Lagrangian, we get
Ģƒļø€ š‘) = šæ(š‘ž, Γ(š‘ž, š‘))
šæ(š‘ž,
[ļø‚(ļø‚ )ļø‚2 (ļø‚ )ļø‚2 ]ļø‚
š‘1
š‘2
1
+
− š‘‰ (š‘ž)
= š‘š
2
š‘š
š‘š
1 2
=
(š‘ + š‘22 ) − š‘‰ (š‘ž).
2š‘š 1
Then we get
š»(š‘ž, š‘) =
š‘
∑ļø
Ģƒļø€ š‘)
š‘š‘— š‘žĖ™š‘— − šæ(š‘ž,
š‘—=1
Ģƒļø€ š‘)
= š‘1 š‘žĖ™1 + š‘2 š‘žĖ™2 − šæ(š‘ž,
{ļø‚
}ļø‚
š‘1
1 2
š‘2
2
= š‘1 + š‘2 −
(š‘ + š‘2 ) − š‘‰ (š‘ž)
š‘š
š‘š
2š‘š 1
1 2
=
(š‘ + š‘22 ) + š‘‰ (š‘ž)
2š‘š 1
If we write this on the Lagrangian side as
šø(š‘ž, š‘ž)
Ė™ = (š» āˆ˜ š¹ )(š‘ž, š‘ž)
Ė™
1
=
((š‘šš‘žĖ™1 )2 + (š‘šš‘žĖ™2 )2 ) + š‘‰ (š‘ž)
2š‘š
1
= š‘š(š‘žĖ™12 + š‘žĖ™22 ) + š‘‰ (š‘ž),
2
we get the kinetic energy plus the potential energy, so šø(š‘ž, š‘ž)
Ė™ is the total energy of
the system and š» is the total energy of the system expressed in terms of position
and momentum.
Going back to the Hamiltonian side, Hamilton’s equations would be
šœ•š»
šœ•š‘‰
š‘‘š‘š‘–
(š‘”) = −
(š‘ž, š‘) = −
š‘‘š‘”
šœ•š‘žš‘–
šœ•š‘žš‘–
š‘‘š‘žš‘–
šœ•š»
(š‘”) =
(š‘ž, š‘) = š‘š‘– /š‘š
š‘‘š‘”
šœ•š‘š‘–
We’ll leave it as an exercise to substitute š‘š‘– = š‘šš‘žĖ™š‘– and put the equations into one
second order equation to get Newton’s equations.
6
LANCE D. DRAGER
Since š» or šø represents the total energy, we expect that it should be conserved
(when the Lagrangian and Hamiltonian are not time dependent, as in our discussion,
i.e., we don’t have šæ(š‘”, š‘ž, š‘ž)).
Ė™
Theorem 1.3. If (š‘ž(š‘”), š‘(š‘”)) is a solution of Hamilton’s equations (16), then š»(š‘ž(š‘”), š‘(š‘”))
is a constant function of š‘”, i.e., “Energy is conserved.”
Proof. We just differentiate š»(š‘ž(š‘”), š‘(š‘”)) and plug in Hamilton’s equations:
š‘
š‘
∑ļø
∑ļø
š‘‘
š‘‘š‘žš‘—
š‘‘š‘š‘—
šœ•š»
šœ•š»
š»(š‘ž(š‘”), š‘(š‘”)) =
(š‘ž(š‘”), š‘(š‘”))
(š‘”) +
(š‘ž(š‘”), š‘(š‘”))
(š‘”)
š‘‘š‘”
šœ•š‘ž
š‘‘š‘”
šœ•š‘
š‘‘š‘”
š‘—
š‘—
š‘—=1
š‘—=1
=
š‘
∑ļø
šœ•š»
š‘—=1
šœ•š‘žš‘—
(š‘ž(š‘”), š‘(š‘”))
šœ•š»
(š‘ž(š‘”), š‘(š‘”))+
šœ•š‘š‘—
š‘
∑ļø
šœ•š»
š‘—=1
[ļø‚
]ļø‚
šœ•š»
(š‘ž(š‘”), š‘(š‘”)) −
(š‘ž(š‘”), š‘(š‘”))
šœ•š‘š‘—
šœ•š‘žš‘—
= 0.
The derivative of š»(š‘ž(š‘”), š‘(š‘”)) is zero, so it’s a constant function.
Exercise 1.4. Show directly from the Euler-Lagrange equations that the energy
šø(š‘ž(š‘”), š‘ž(š‘”))
Ė™
is constant on solutions (š‘ž(š‘”), š‘ž(š‘”))
Ė™
of the Euler-Lagrange equations.
Exercise 1.5. What happens for time dependent Lagrangians šæ(š‘”, š‘ž, š‘ž)?
Ė™
Department of Mathematics and Statistics, Texas Tech University, Lubbock, TX
79409-1042
E-mail address: lance.drager@ttu.edu
Download