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=α(Lqαdqα+L˙qαd˙qα)+Ltdt. The total differential of the Hamiltonian is dH=α(˙qαdpα+pαd˙qα)dL. So, dH=α(˙qαdpα+pαd˙qαLqαdqαL˙qαd˙qα)Ltdt=α[˙qαdpα+(pαL˙qα)]Ltdt. 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αLqαdqα)Ltdt. The total derivative of the Hamiltonian can also be expressed as dH=α(Hqαdqα+Hpαdpα)+Htdt. Compare the terms, we have ˙qα=Hpα˙pα=Lqα=HqαHt=Lt These equations are called Hamilton's equations, or canonical equations.

Example

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 ˙θ=Hpθ=pθml2˙ϕ=Hpϕ=1ml2sin2θpϕ˙pθ=Hθ=p2ϕcosθml2sin3θmglsinθ˙pϕ=Hϕ=0

Checkpoint (Marion, Thornton Q7.29)

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=12at2lcosθ. 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(lb)2. The Lagrangian is L=TU=12m[˙l2+l2˙θ2+a2t2+2at(l˙θsinθ˙lcosθ)]+mg(lcosθ12at2)k2(lb)2. The generalized momenta are pl=L˙l=m˙lmatcosθpθ=L˙θ=ml2˙θ+matlsinθ. Invert the generalized momenta, we have ˙l=plm+atcosθ˙θ=pθml2atsinθl. The Hamiltonian is H=pi˙qiL=pl˙l+pθ˙θL=p2l2m+p2θ2ml2atlpθsinθ+atplcosθ+12k(lb)2+12mgat2mglcosθ. The Hamilton's equations are ˙pl+atl2pθsinθ+k(lb)mgcosθ+p2θml3=0˙pθatlpθcosθatplsinθ+mglsinθ=0

Time derivative of Hamiltonian

From the Hamilton's equations, we know that Ht=Lt. From the definition of the Hamiltonian, dHdt=Lt. That means Ht=dHdt. Analyze the total time derivative of Hamiltonian, dHdt=α(Hqα˙qα+Hpα)+Ht=α[Hqα(Hpα)+Hpα(Hqα)]+Ht=Ht.

Legendre Tranformation

Suppose a function f(x,y) is known. Define a new function with new variable x,p, g(x,y,p)pyf(x,y) The total differential of g(x,y,p) is dg=pdy+ydpfxdxfydy=(pfy)dy+ydpfxdx. Define p=p(x,y)fy such that dg=ydpfxdx. As the total differential of g is dg=gxdx+gpdp, we have gp=y and gx=fx. 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.

Example

Given a function L(x,y)12my2V(x). Apply Legendre transformation to generate a new function. Show that apply the Legendre transformation again will obtain the original function.

Solution: pLy=my Then, y=pm. A new function is defined as H(x,p)pyL=p22m+V(x). To get back to original function, define yHp=pm. Then, p=my. A new function is defined as Lnew(x,y)ypH=12my2V(x)=L(x,y), which is equivalent to the original function L(x,y).

Comments

Popular Posts