Hamilton's Equations
Hamilton's Equations
As discussed before, Hamiltonian is defined as
H≡∑αpα˙qα−L
The total differential of the Lagrangian is
dL=∑α(∂L∂qαdqα+∂L∂˙qαd˙qα)+∂L∂tdt.
The total differential of the Hamiltonian is
dH=∑α(˙qαdpα+pαd˙qα)−dL.
So,
dH=∑α(˙qαdpα+pαd˙qα−∂L∂qαdqα−∂L∂˙qαd˙qα)−∂L∂tdt=∑α[˙qαdpα+(pα−∂L∂˙qα)]−∂L∂tdt.
Define the generalized momentum as
pα≡∂L∂˙qα.
Note that the generalized momentum may not be the same as momentum if the potential energy depends on the generalized velocity, i.e. the rate of change of the generalized coordinates ˙q.
As the generalized momentum is defined as
pα≡∂L∂˙qα⟹pα−∂L∂˙qα=0,
the total derivative of the Hamiltonian becomes
dH=∑α(˙qαdpα−∂L∂qαdqα)−∂L∂tdt.
The total derivative of the Hamiltonian can also be expressed as
dH=∑α(∂H∂qαdqα+∂H∂pαdpα)+∂H∂tdt.
Compare the terms, we have
˙qα=∂H∂pα˙pα=∂L∂qα=−∂H∂qα∂H∂t=−∂L∂t
These equations are called Hamilton's equations, or canonical equations.
Find the equations of motion of a spherical pendulum of mass m and length l.
Solution: The kinetic energy is T=12ml2˙θ2+12ml2sin2θ˙ϕ2. The potential energy is U=−mglcosθ. The Lagrangian is L=12ml2˙θ2+12ml2sin2θ˙ϕ2+mglcosθ The generalized momenta are pθ=∂L∂˙θ=ml2˙θpϕ=∂L∂˙ϕ=ml2sin2θ˙ϕ. The Hamiltonian is H=T+U=12ml2p2θm2l4+12ml2sin2θp2ϕm2l4sin4θ−mglcosθ=p2θ2ml2+p2ϕ2ml2sin2θ−mglcosθ. The Hamilton's equations are ˙θ=∂H∂pθ=pθml2˙ϕ=∂H∂pϕ=1ml2sin2θpϕ˙pθ=−∂H∂θ=p2ϕcosθml2sin3θ−mglsinθ˙pϕ=−∂H∂ϕ=0
A pendulum consists of a mass m and a massless spring with unextended length b and force constant k. The pendulum's point of support is rising vertically at a constant acceleration a. Find the Hamilton's equations.
The coordinates are x=lsinθy=12at2−lcosθ. So, the velocity components are ˙x=˙lsinθ+l˙θcosθ˙y=at−˙lcosθ+l˙θsinθ. The kinetic energy is T=12m(˙x2+˙y2). The potential energy is U=mgy+12k(l−b)2. The Lagrangian is L=T−U=12m[˙l2+l2˙θ2+a2t2+2at(l˙θsinθ−˙lcosθ)]+mg(lcosθ−12at2)−k2(l−b)2. The generalized momenta are pl=∂L∂˙l=m˙l−matcosθpθ=∂L∂˙θ=ml2˙θ+matlsinθ. Invert the generalized momenta, we have ˙l=plm+atcosθ˙θ=pθml2−atsinθl. The Hamiltonian is H=∑pi˙qi−L=pl˙l+pθ˙θ−L=p2l2m+p2θ2ml2−atlpθsinθ+atplcosθ+12k(l−b)2+12mgat2−mglcosθ. The Hamilton's equations are ˙pl+atl2pθsinθ+k(l−b)−mgcosθ+p2θml3=0˙pθ−atlpθcosθ−atplsinθ+mglsinθ=0
Time derivative of Hamiltonian
From the Hamilton's equations, we know that ∂H∂t=−∂L∂t. From the definition of the Hamiltonian, dHdt=−∂L∂t. That means ∂H∂t=dHdt. Analyze the total time derivative of Hamiltonian, dHdt=∑α(∂H∂qα˙qα+∂H∂pα)+∂H∂t=∑α[∂H∂qα(∂H∂pα)+∂H∂pα(−∂H∂qα)]+∂H∂t=∂H∂t.
Legendre Tranformation
Suppose a function f(x,y) is known. Define a new function with new variable x,p, g(x,y,p)≡py−f(x,y) The total differential of g(x,y,p) is dg=pdy+ydp−∂f∂xdx−∂f∂ydy=(p−∂f∂y)dy+ydp−∂f∂xdx. Define p=p(x,y)≡∂f∂y such that dg=ydp−∂f∂xdx. As the total differential of g is dg=∂g∂xdx+∂g∂pdp, we have ∂g∂p=y and ∂g∂x=−∂f∂x. We can use these kind of transformation to get back f if g is given or g if f is give. That is to say, we can use Legendre transformation to obtain Lagrangian if Hamiltonian is given, or obtain Hamiltonian if Lagrangian is given.
Given a function L(x,y)≡12my2−V(x). Apply Legendre transformation to generate a new function. Show that apply the Legendre transformation again will obtain the original function.
Solution: p≡∂L∂y=my Then, y=pm. A new function is defined as H(x,p)≡py−L=p22m+V(x). To get back to original function, define y≡∂H∂p=pm. Then, p=my. A new function is defined as Lnew(x,y)≡yp−H=12my2−V(x)=L(x,y), which is equivalent to the original function L(x,y).
Comments
Post a Comment