Use the Euler-Lagrange equation to show that the shortest path between two points on a plane is a straight line.
A particle of mass m moves in one dimension under the influence of a force F(x,t) = (k/x2)exp(-t/τ), where k and τ are positive constants. Compute the Lagrangian and the Hamiltonian, and discuss whether energy is conserved in this system.
Solution:
Aside: See a numerical solution for the equation of motion d2x/dt2
= (k/x2)exp(-t/τ).
It integrates the equation using the Numerov method O(dt4) and is
implemented in a
spreadsheet
(with a short explanation). You can implement it using any computer
language and also extend it to
higher order.
(a) Show that two Lagrangians L1 and L2, which differ
only by the total derivative of a function of q and t, i.e. L2 = L1
+ df(q,t)/dt, describe the same motion for q.
(b) Find the Lagrangian and Hamiltonian of a pendulum consisting of a mass m
attached to a massless rigid rod AB of length l free to move in a vertical
plane. The end A of the rod is forced to move vertically, so that its
displacement from the fixed point O is a given function of time γ(t).
Gravity acts vertically downward.
(c) Show that the vertical acceleration of the point A, d2γ(t)/dt2,
has the same effect on the equation of motion as a time varying gravitational
field.
Solution:
Two
pendulums of length L have masses m1 and m2 attached to
their ends. They are also connected to each other by a spring with spring
constant k, as shown in the figure. The equilibrium positions of
the pendulums are vertical as shown. Assume small displacements.
(a) Write down the Lagrangian for the system
(b) Find the normal mode
frequencies for the system.
(c) At t = 0, pendulum 1 is displaced by an angle θ1, while pendulum
2
is at its vertical position.
Find the subsequent angular position of each as a function of time.
Solution:
A point mass m1 is
constrained to move on a horizontal wire without friction.
A second point mass m2
is attached to it by a rod of negligible mass and length L.
(a) Write down the Lagrangian of
the system and find the equations of motion.
(b) Are there any equilibrium
points for the rotational motion? Are they stable? If yes, find the frequency
of small oscillations about the equilibrium points.
(c) Now assume the wire is not horizontal, but makes an angle φ with the
horizontal direction. Find the equations of motion. Are there any equilibrium
points for the rotational motion? Are they stable? If yes, find the frequency
of small oscillations about the equilibrium points.
Solution:
(b) equilibrium points: θ'' = θ' = 0, --> sinθ = 0, θ = 0 or θ = π.
The point θ = 0 is stable and the point θ = π is unstable.
To find the frequency of small oscillations about the θ = 0 point, keep only
first order terms in the small quantities in the equation of motion.
(m1/m2))θ'' = -(g/d)θ, ω2 = (m2/m1)g/d
= [(m1 + m2)/m1]g/L.
Different
approach for part (a):
Let x1 denote the position of m1 along the line and θ
denote the angle the rod makes with the vertical.
For the mass m2 we have x2 = x1 + L sinθ, y2
= -L cosθ.
T = ½m1x1'2 + ½m2(x2'2
+ y2'2) = ½(m1 + m2)x1'2
+ ½m2[L2θ'2 + 2Lx1'θ' cosθ].
U = -m2gLcosθ.
L = ½(m1 + m2)x1'2 + ½m2[L2θ'2
+ 2Lx1'θ' cosθ] + m2gL cosθ.
∂L/∂x1'
= (m1 + m2)x1' + m2Lθ 'cosθ.
d/dt(∂L/∂x1')
= (m1 + m2)x1'' + m2Lθ'' cosθ - m2L
θ'2 sinθ = 0. (equation of motion for x1)
∂L/∂θ'
= m2[L2θ' + Lx1'cosθ]. d/dt(∂L/∂θ')
= m2[L2θ'' + Lx1''cosθ - Lx1' sinθ
θ'].
∂L/∂θ
= -m2[Lx1' sinθ θ' + gL sinθ].
θ'' + (x1''/L)
cosθ + (g/L) sinθ = 0. (equation of motion for θ)
The equations of motion for x1 and θ are coupled differential
equations.
Insert x1'' into the equation of motion for θ.
θ'' - [m2/(m1 + m2)]θ'' cos2θ + [m2/(m1
+ m2)θ'2 sinθ cosθ + (g/L) sinθ = 0.
θ''(m1/(m1 + m2) + m2/(m1
+ m2)sin2θ] + [m2/(m1 + m2)]θ'2
sinθc osθ + (g/L) sinθ = 0.
θ''((m1/m2)
+ sin2θ] + θ')2 sinθ cosθ + ((m1 + m2)g/(m2L))
sinθ = 0.
We
arrive at the same equation of motion for the θ coordinate. θ is a coordinate for associate
with a normal mode for small oscillations, x1 is not. The other
normal coordinate is X, the x-coordinate of the CM. This normal mode has ω = 0.
(c) If we orient our coordinate system as shown in the figure, then only the expression for the potential energy changes.
U = -Mg sinφ X + Mg cosφ Y = -Mg sinφ X - Mg cosφ d cosθ.
L = ½MX'2 + ½(Md2sin2θ + I)θ'2
+ Mg sinφ X + Mg cosφ d cosθ.
∂L/∂X' = MX'. ∂L/∂X' = Mg sinφ.
X'' = -
g sinφ.
The acceleration of the CM
is constant.
d/dt(∂L/∂θ')
= (Md2sin2θ + I)θ'' + Md22 sinθ cosθ θ'2.
∂L/∂θ
= ½Md22 sinθ cosθ θ'2 - Mgd cosφ sinθ .
(Md2sin2θ
+ I)θ'' + Md22 sinθ cosθ θ'2 +
Mgd cosφ sinθ = 0.
(sin2θ + (m1/m2))θ''
+ sinθ cosθ θ'2 + ((m1 + m2)g/(m2L))
cosφ sinθ = 0.
equilibrium points: θ'' = θ' = 0
--> sinθ = 0, θ = 0 or θ = π.
The point θ = 0 is stable and the
point θ = π is unstable.
Small oscillations:
θ'' = -(Mgd
cosφ/I) θ = -[(m1 + m2)/m1](g/L)
cosφ θ.
Different
approach for part (c)
T = ½m1x1'2 + ½m2(x2'2
+ y2'2) = ½(m1 + m2)x1'2
+ ½m2[L2θ'2 + 2Lx1'θ' cosθ].
U = -(m2
+ m2)gL sinφ x1
- m2g L cos(θ - φ).
L = ½(m1 + m2)x1'2 + ½m2[L2θ'2
+ 2Lx1'θ' cosθ] + (m2 + m2)gL sinφ x1
+ m2g L cos(θ - φ).
∂L/∂x1' = (m1 + m2)x1' + m2Lθ
'cosθ.
d/dt(∂L/∂x1')
= (m1 + m2)x1'' + m2Lθ'' cosθ - m2L
θ'2 sinθ.
∂L/∂x1
= (m2 + m2)gL
sinφ.
(m1 + m2)x1''
+ m2Lθ'' cosθ - m2L
θ'2 sinθ - (m1 + m2)gL sinφ = 0. (equation
of motion for x1)
∂L/∂θ'
= m2[L2θ' + Lx1'cosθ]. d/dt(∂L/∂θ')
= m2[L2θ'' + Lx1''cosθ - Lx1' sinθ
θ'].
∂L/∂θ
= -m2Lx1' sinθ θ' - m2g L sin(θ - φ).
θ'' + (x1''/L) cosθ] + (g/L) sin(θ - φ) = 0
(equation of motion for θ)
Insert x1'' into
the equation of motion for θ.
Mθ'' + M(x1''/L) cosθ] + M(g/L) sin(θ - φ) = 0.
Mx1''/L = -m2θ'' cosθ + m2θ'2
sinθ +
M(g/L)sinφ.
Mθ'' - m2θ''cos2θ + m2θ'2
sinθ cosθ
+ M(g/L) sinφ cosθ + M(g/L) sin(θ - φ) = 0.
Mθ'' - m2θ''cos2θ + m2θ'2
sinθ cosθ
+ M(g/L) cosφ sinθ = 0.
(sin2θ + (m1/m2))θ'' + sinθ cosθ θ'2
+
((m1 + m2)g/(m2L)) cosφ sinθ = 0.
We arrive at
the same equation of motion for the θ coordinate.