Problems involving the Hamiltonian
Problem:
In a problem with one degree of freedom, a particle of mass m is subject to a
force F(x,t) = F0t. The force is derivable from a potential.
(a) Find the potential energy of the particle and the Lagrangian and
Hamiltonian of the particle.
(b) Solve Hamilton's equations of motion.
Solution:
- Concepts:
The Lagrangian and the Hamiltonian, Hamilton's
equations of motion
- Reasoning:
We are asked to find the Lagrangian and the Hamiltonian and to solve
Hamilton's equations of motion.
- Details of the calculation:
(a) F(x,t) = -∂U/∂x = F0t, U(x,t) = -F0tx. (We can
arbitrarily choose the zero of the potential energy.)
L = T - U = ½m(dx/dt)2
+ F0tx. ∂L/∂(dx/dt)
= px = m(dx/dt).
H = (dx/dt)px
- L = px2/2m - F0tx.
(b) dx/dt = ∂H/∂px,
dpx/dt =
-∂H/∂x, dx/dt = px/m, dpx/dt = F0t, d2x/dt2
= F0t/m.
dx/dt = F0t2/(2m) + v0, x = F0t3/(6m)
+ v0t + x0.
Problem:
A block of mass m moves on a frictionless surface with a
displacement x under the influence of a spring force F = -kx, where k is the
spring constant.
(a) Calculate the potential energy U(x), and the Lagrangian.
(b) Find Lagrange's equations of motion.
(c) Find the Hamiltonian.
(d) Find Hamilton's equations of motion.
Solution:
- Concepts:
Lagrange's and Hamilton's Equations
d/dt(∂L/∂(dqi/dt)) -
∂L/∂qi = 0.
∂L/∂(dqi/dt) = pj.
H(q, p, t) = ∑i(dqi/dt)pi - L.
dqi/dt = ∂H/∂pi, dpi/dt = -∂H/∂qi/
- Reasoning:
F is a conservative force. It is derivable from a potential. We can use
the Lagrangian and Hamiltonian formalism.
- Details of the calculations:
(a) Hooke's law: U = ½kx2, L = T - U = ½m(dx/dt)2
- ½kx2.
(We have one generalized coordinate.)
(b) ∂L/∂(dx/dt) = m(dx/dt),
∂L/∂x = kx, d2x/dt2 = -(k/m)x.
(c) Px = ∂L/∂(dx/dt)
= m(dx/dt).
m(dx/dt)2
- L = ½m2(dx/dt)2
+ ½kx2 = Px2/(2m) + ½kx2.
H = Px2/(2m) + ½kx2.
(d) dx/dt = ∂H/∂Px
= Px/m,
dPx/dt = -∂H/∂x
= -kx.
Problem:
A point particle of mass m is constrained to move in one dimension on the
x-axis.
The force acting on the particle can be derived from the
velocity-dependent potential
U = F(dx/dt)t.
Write down
(a) the
Lagrangian,
(b) the Hamiltonian,
(c) Hamilton's equations.
Solution:
- Concepts:
The Lagrangian and the Hamiltonian, Hamilton's equations of
motion
- Reasoning:
We are asked to find the Lagrangian and the Hamiltonian
and Hamilton's equations of motion for a particle, given that force acting
on the particle it can be derived from a generalized potential U =
F(dx/dt)t.
- Details of the calculation:
(a) T = ½m(dx/dt)2 , U =
F(dx/dt)t, we have a velocity-dependent potential.
L = ½m(dx/dt)2
- F(dx/dt)t.
(b) px = ∂L/∂(dx/dt) = m(dx/dt) - Ft.
dx/dt =
(px + Ft)/m.
H = (dx/dt)px - L
= px(px
+ Ft)/m - (px + Ft)2/(2m) + Ft(px + Ft)/m
= (px + Ft)2/(2m).
The Hamiltonian is a function of
the coordinates and the canonical momenta.
(c) Hamilton's equations:
dx/dt = ∂H/∂px = (px + Ft)/m, dpx/dt =
-∂H/∂x = 0.
This yields the second order differential equation for the
coordinate x,
d2x/dt2 = F/m.
Problem:
A particle of mass m moves in one dimension under the influence of a force
F(x,t) = -k x exp(-t/τ),
where k and τ are positive constants. (Note carefully the dependence on x to
the first power).
(a) Compute the Lagrangian function.
(b) Use Lagrange's equation to determine the equation of motion explicitly.
(c) Compute the Hamiltonian function in terms of the generalized coordinate and
generalized momentum. (Show clearly how you get this.)
(d) Determine Hamilton's equations of motion explicitly for this particular
problem (not just general formulae).
(e) Does the Hamiltonian equal the total energy?
(f) Is the total energy of the mass conserved?
(g) What is it about the force F which supports your answer to part f?
Solution:
- Concepts:
Lagrangian and Hamiltonian mechanics
- Reasoning:
We are asked to find the Lagrangian and Hamiltonian for the system.
- Details of the calculation:
(a) F(x,t) = - ∂U(x,t)/∂x. U(x,t) = k(x2/2)exp(-t/τ).
L = T - U = ½ m(dx/dt)2 -
k(x2/2)exp(-t/τ).
(b)
d/dt(∂L/∂(dx/dt)) -
∂L/∂x = 0.
∂L/∂(dx/dt) = m dx/dt,
d/dt(∂L/∂(dx/dt)) = m d2x/dt2.
∂L(x,t)/ ∂x = -kxexp(-t/τ).
m d2x/dt2 = -kx exp(-t/τ).
(c) H(x, p, t) = (dx/dt)p - L.
p = ∂L/∂(dx/dt)= m dx/dt.
H = p2/(2m) + k(x2/2)exp(-t/τ).
(d) dx/dt = ∂H/∂p =
p/m. dp/dt = -∂H/∂x
= -kxexp(-t/τ).
d2x/dt2=
(dp/dt)/m = -(k/m)xexp(-t/τ).
(e) Yes. If the generalized coordinates do not explicitly depend on time,
then H = T + U = E, the total energy of the system.
(f) No. If H does explicitly depend on time, H = H(t), then H is not a
constant of motion.
(g) The force F is a function of position and time. It is derivable from a
time dependent potential energy function. F = -k(t)x, it is a Hooke's law
type force with a spring constant that decreases exponentially. Assume a
particle has kinetic energy E0 = ½mv02 as
it moves through the origin at t = 0 and comes to a stop at position x. It
then accelerates back towards the origin. Since the magnitude of the force
decreases with time, the magnitude of the positive work done by F on the
return trip is smaller than the magnitude of the negative work done by F on
the trip from the origin to x. The potential energy at the origin is zero,
the kinetic energy of the particle has decreased, the particle has lost
energy.
Problem:
The Lagrangian for a simple spring is given by L = ½m(dx/dt)2
- ½kx2.
Find the Hamiltonian and the equations of motion using the Hamiltonian
formulation. Identify any conserved quantities.
Solution:
- Concepts:
The Lagrangian and the Hamiltonian, Hamilton's
equations of motion
- Reasoning:
We are asked to find the Lagrangian and the Hamiltonian and Hamilton's
equations of motion.
- Details of the calculation:
H = p2/(2m) + ½kx2. H is a function of x and p,
while the Lagrangian is a function of x and v.
Equations of motion: dx/dt = ∂H/∂p, dp/dt = -∂H/∂x.
dx/dt = p/m, dp/dt = -kx. We have two first-order differential equations
which can be combined to yield the second order differential equation d2x/dt2
= -(k/m)x.
The coordinates and the Hamiltonian do not contain time explicitly, so H =
E, and E = constant. The energy E is a conserved quantity.
Problem:
Consider the Lagrangian L = m(dx/dt)(dy/dt) - mω02xy.
(a) Write down Lagrange's
equations associated with this Lagrangian and solve them. What physical system
does this Lagrangian describe?
(b) Determine the Hamiltonian of the system.
(c) Define new generalized coordinates x' and y' such that
x = 2-½ (x' + iy'), y = 2-½ (x' - iy').
Write down the Lagrangian and Lagrange's equations in terms of the new
generalized coordinates and velocities and solve them.
(d) Express the total energy of the system in terms of the new generalized
coordinates and velocities, assuming these coordinates are real.
Solution:
- Concepts:
Lagrangian mechanics
- Reasoning:
We are asked to find the Lagrangian and Hamiltonian of the system.
- Details of the calculation:
d/dt(∂L/∂(dq/dt)) - ∂L/∂q = 0.
(a) For q1 = x we obtain d2y/dt2
+ ω02
y = 0,
and for q2 = y we obtain d2x/dt2
+ ω02
x = 0.
The solutions are x = X0exp(iω0t)
and y = Y0exp(iω0t),
with X0 and Y0 complex constants that depend on the
initial conditions,
The problem is that of a two-dimensional, isotropic, harmonic oscillator.
(b)
H(q, p, t) = ∑i(dqi/dt)pi - L. px =
∂L/∂(dx/dt) = mdy/dt, py = ∂L/∂(dy/dt) = mdx/dt.
H = pxpy/m + mω02xy.
(c)
xy = ½((dx'/dt)2 + (dy'/dt)2), L = ½m((dx'/dt)2
+ (dy'/dt)2 - ω02(x'2 + y'2).
Using these coordinates, we recognize the Lagrangian of a two-dimensional,
isotropic,harmonic oscillator.
Lagrange's equations are d2x'/dt2
+ ω02
x' = 0, d2y'/dt2 + ω02
y' = 0.
Real solutions are x' = Ccos(ω0t + Φx'),
y' = Dcos(ω0t + Φy').
C, D, Φx',
and Φy'
depend on the initial conditions.
p'x= ∂L/∂(dx/'dt) = m dx'/dt, p'y= ∂L/∂(dy/'dt)
= m dy'/dt,
H = (p'x2 + p'y2)/(2m)
+ mω02(x'2
+ y'2)/2.
(d) E = mω02(C2
+ D2)/2.
Problem:
Consider a simple plane pendulum consisting of a mass m attached to a
string of length l. After the pendulum is set into motion, the
length of the string is shortened at a constant rate
dl/dt = -Θ = constant.
The suspension point remains fixed. Consider only times for which l0
- Θt > 0, i.e. for which the mass has not yet contacted the suspension point.
(a) Compute the Lagrangian and write down Lagrange's equation of motion for small displacements from equilibrium.
(b) Compute the
Hamiltonian function.
(c) Compare the Hamiltonian and the total energy
and discuss the conservation of energy for this system.
Solution:
- Concepts:
Lagrangian Mechanics
- Reasoning:
We are asked to compute the Lagrangian and the
Hamiltonian and find and solve Lagrange's equations.
- Details of the calculation:
(a) L = T - U.
As long as (l0
- Θt) > 1 we have
T = ½m(l0 - Θt)2(dθ/dt)2
+ ½mΘ2, U = - mg(l0 - Θt) cosθ.
L = ½m(l0
- Θt)2(dθ/dt)2 + ½mΘ2 + mg(l0
- Θt)cosθ is the Lagrangian of the system.
∂L/∂(dθ/dt) =
m(l0 - Θt)2dθ/dt, d/dt(∂L/∂(dθ/dt))
= m(l0 - Θt)2d2θ/dt2 -
2mΘ(l0 - Θt)dθ/dt.
∂L/∂θ = -mg(l0 -
Θt)sinθ.
(l0 - Θt)d2θ/dt2 - 2Θdθ/dt
= -gsinθ is the equation of motion.
For small angular displacement θ: (l0
- Θt)d2θ/dt2 - 2Θdθ/dt = -gθ.
(b) H(pθ, θ) = pθ
(dθ/dt) - L, pθ = ∂L/∂(dθ/dt) = m(l0 - Θt)2dθ/dt,
H = pθ2/(m(l0
- Θt)2) - L
H(pθ, θ) = pθ2/(2m(l0
- Θt)2) - mg(l0 - Θt)cosθ - ½mΘ2 ≠ T + U.(c) The
constraints do explicitly depend on time, so H ≠ T + U,
the total energy of the system.
H = H(t), H is not a constant
of motion.
The energy is not conserved.
dE/dt = pθ2Θ/(m(l0
- Θt)3) + mgΘcosθ = m(l0 - Θt)(dθ/dt)2Θ
+ mgΘcosθ is the rate that work is done on the system.
dE/dt = FΘ = where
F is the tension in the string. F = m(l0 - Θt)(dθ/dt)2
+ mgcosθ.
Problem:
Consider the 2D problem of a free particle of mass m moving in the xy plane.
(a) Use the Lagrangian formalism to find the equations of motion of the
particle using Cartesian coordinates (x, y) in an inertial reference frame.
(b) Now switch to explicitly time dependent coordinates.
X = xcos(ωt) + ysin(ωt), Y = -xsin(ωt) + ycos(ωt).
These would be the Cartesian coordinates of the particle in a reference frame
rotating with constant angular speed ω counterclockwise about the z-axis of the
inertial reference frame, i.e. ω = ωk. Write down the Lagrangian
in terms of the coordinate X and Y and the corresponding velocities. Note: x = Xcos(ωt) - Ysin(ωt), y = Xsin(ωt) + Ycos(ωt).
(c) Find the equations of motion in terms of the new coordinates. Identify the
fictitious forces appearing in the rotating frame.
(d) What are the conditions for a circular orbit of radius R = (X2
+ Y2)½ about the origin in the rotating frame?
(d) Find the Hamiltonian H, and use Hamilton's equations to find the
equations of motion.
Solution:
- Concepts:
The Lagrangian formalism
- Reasoning:
We are asked to use explicitly time-dependent coordinates.
- Details of the calculation:
(a) L = T = ½m(vx2 + vy2), d/dt(∂L/∂vi)
= 0, vx = constant, vy = constant.
(b) x = Xcos(ωt) - Ysin(ωt), y = Xsin(ωt) + Ycos(ωt).
vx = vX cos(ωt) - ω X sin(ωt) - vY
sin(ωt) - ω Y cos(ωt).
vy = vX sin(ωt) + ω X cos(ωt) + vY
cos(ωt) - ω Y sin(ωt).
vx2 + vy2 = vX2
+ vY2 + ω2(X2 + Y2) -
2ω(vXY - vYX)
L = ½m(vX2 + vY2 + ω2(X2
+ Y2) - 2ω(vXY - vYX))
(c) d/dt(∂L/∂vX) - ∂L/∂X = 0, d/dt(∂L/∂vY) - ∂L/∂Y =
0.
The equations of motions are aX = ω2X + 2ω vY,
ay = ω2Y - 2ω vX,
mω2X and mω2Y are the X- and Y-component of the
centrifugal force, respectively.
m2ω vY and - m2ω vX are the X-t and Y-component of the
Coriolis force, respectively.
(c) Circular orbit: X2 + Y2 = R2. For a
circular orbit of radius R we need
d2X/dt2 = -ω2X, d2Y/dt2
= -ω2Y,
ω2X + 2ω vY = -ω2X, vY =
-ωX,
ω2Y - 2ω vX = -ω2Y, vX = ωY.
The angular velocity of the particle in the rotating frame must be
ω = -ωk
.
(d) H = PX vX + PY vY - L. PX
= ∂L/∂vX = mvX - mωY, PY = ∂L/∂vY =
mvY + mωX,
H = ½m(vX2 + vY2 - ω2(X2
+ Y2)) = (PX2 + PY2)/(2m)
+ ω(PXY - PYX)
∂H/∂X = -dPX/dt = -ωPY, ∂H/∂Y = -dPY/dt =
ωPX.
∂H/∂PX = dX/dt = PX/m + ωY , ∂H/∂ PY = dY/dt
= PY/m - ωX .
aX = (dPX/dt)/m + ωdY/dt = ωPY/m + ωdY/dt =
2ωvY + ω2X,
aY = (dPy/dt)/m - ωdX/dt = -ωPX/m - ωdX/dt = -
2ωvX + ω2Y.
The Hamiltonian H = (PX2 + PY2)/(2m)
+ ω(PXY - PYX) does not explicitly depend on time, so it
is conserved. Since the coordinates explicitly depend on time, the Hamiltonian
is not equal to the total energy.
Problem:
Consider a system described by the Lagrangian L = ½mv2 - ½kx2,
where v = dx/dt.
(a) Express L in terms of the generalized coordinate q = (km)¼x
and the associated generalized velocity.
(b) In terms of q and its canonical momentum p derive the form of the
Hamiltonian H. Is H a constant of motion? Is it the energy E of the system?
(c) Derive Hamilton's equations of motion and solve for q(t) and p(t).
(d) Elaborate on the trajectories of the system in phase space.
Solution: