Lagrangian Method
Lagrangian Method
Classical Mechanics
By
Barger and Olsson
• Different forms of Newton’s equations of motion depends on
coordinates
Rectangular Components – Cartesian Coordinates
( Fx î Fy ˆj Fz k̂ ) m( a x î a y ˆj a z k̂ )
or
Fx max mx
Fy may my
Fz maz mz
Tangential and Normal Components
Ft mat y F
mat
Fn man F
m
an m
x
And as a reminder O
z
2
dv v
Ft m Fn m
dt
EQUATIONS OF MOTION IN TERMS OF
RADIAL AND TRANSVERSE
COMPONENTS
Consider particle at r and q, in polar
coordinates,
F ma m(r rq 2 r 2 sin 2 q )rˆ
m(rq 2rq r 2 sin q cos q )qˆ
m(rsin q 2rq cos q 2r sin q )ˆ
• The Lagrangian method makes it simple to write the equations of
motion in any coordinate system.
• It makes it simpler to work with constraints and to identify conserved
quantities.
• The Lagrangian method makes it easier to find the equations of
motions for certain problems.
• Lagrange’s equations and the related Hamilton’s equations are of
fundamental importance to classical mechanics and quantum
mechanics.
Lagrange Equation
• Consider a system of N particles in three dimensional space.
• There are 3N cartesian coordinates needed to describe their motions.
• There is a Newton’s equation for each of these coordinates.
• A first step to the Lagrange method is to choose a new set of coordinates called
general coordinates.
r1 r1 (q1 , q2 ,......q3 N ; t )
r2 r2 (q1 , q2 ,......q3 N ; t )
•
•
•
rN rN (q1•, q2 ,......q3 N ; t ) (3.1)
• The set of {qj} collectively describe the configuration of the system.
• These coordinates are not necessarily of distance dimensions. Often
they are angles.
• Example of one particle in spherical polar coordinates (r, q, ).
x r sin q cos
y r sin q sin (3.2)
z r cos q
• If particle moves on the surface of a sphere of radius l centered at the
origin, then only q and vary in time.
• A relation of this type is called a constraint.
• Equations of motion which result directly from the substitutions of
(3.1) in Newton’s equations are usually messy.
• Lagrange’s equations are much nicer. They show explicitly the
simplifications of symmetries and constraints.
• Lagrange equations are not the same as Newton ‘s but are equivalent.
• In fact each Lagrange equation is a linear combination of Newton’s
equations, and vice versa.
Lagrange’s Equations in One Dimension
• We introduce a general coordinate q(t) expressed in terms of x by
q (t ) q[ x(t ), t ] (3.3)
or
dx
x
dt
• Chain differentiation
x x
x q (3.5)
q t
K
• p (t ) (q, q , t )
q
(3.7)
dK x x
• Where p p
dx q q
(3.8)
x x
• From (3.4) and (3.5)
q q (3.9)
• Therefore
x
pp
q
(3.10)
d x x
(3.13)
dt q q
• We digress to show 3.13
d x x x
q (3.14)
dt q q q t q
x x x
q
q q q q t
(3.15)
• Since the right-hand sides of 3.14 and 3.15 are identical, then 3.13
follows.
d x x x
q (3.14)
dt q q q t q
d x x
(3.13)
dt q q
• Multiple 3.13 times p and replace p on right-hand side with 3.6.
d x x
(3.13)
dt q q
2
dK d ( 1
m
x )
p 2 (3.6)
dx dx
d x dK x K
p (3.16)
dt q dx q q
Substitute 3.11 and 3.16 into 3.12
p F ( x, x , t ) (3.11)
d x dK x K
p (3.16)
dt q dx q q
x d x
p p p (3.12)
q dt q
x K
p F (3.17)
q q
x K
p F (3.17)
q q
The first term on the right-hand side is called the general force
x
Q(q, q , t ) F (3.18)
q
Then the equation of motion
K
p Q (3.19)
q
The last term in this equation represents a “fictitious” force which x x
appears whenever the coefficients in 3.5 vary with q. x q
q t
If the force F is separated into a part
dV ( x)
dx
and a part that is not, then the general force can be separated into
corresponding parts.
dV ( x) x x dV (q )
Q F Q
dx q q
(3.20)
dq
3.20 into 3.19
L
p Q
q (3.21)
Where
L(q, q , t ) K (q, q , t ) V (q) (3.22)
q q
• follows from 3.7 and
V (q )
0
q
Then 3.21 can be written
d L L
Q
dt q q (3.24)
The general force for Q’ must include all forces F’ on the particle which
are not included in the potential energy.
Lagrange’s Equations in Several Dimensions
• For 3D follow previous procedure, step by step
• There are now 3N cartesian components and likewise 3N general
coordinates
• In analogy to (3.6) we have
K
pk (3.24)
xk
K K xk xk
pj pk (3.25)
qk xk q j q j
xk xk
p j pk pk (3.26)
q j q j
• In parallel to the derivation in one dimension we find (see (3.17 and 3.18))
V xk K xk
pj Fk
xk q j xk q j
V K
Qj
q j q j (3.27)
K V Qj
q j
L Qj
q j
• Where L is the Lagrangian
xi V
Q pot
Fi (3.29)
q j q j
j
• and
xi
Qj Fi (3.30)
q j
V
0
q j
d L L
= Qj (3.32)
dt q j q j
Elementary application of Lagrangian techniques
Determine the r and q equations of motion for a particle moving in a
plane under the influence of a central potential energy V(r). As general
coordinates we take
q1 r , q2 q (3.33)
x r cos q
(3.34)
y r sin q
K 12 m( x 2 y 2 ) (3.35)
• Easy to express in polar coordinates by taking time derivatives.
x r cos q rq sin q
(3.36)
y r sin q rq cos q
K 12 m(r 2 r 2q 2 ) (3.37)
K 12 m(vr2 vq2 )
• The Lagrangian is (also see (3.32))
L K V 12 m(r 2 r 2q 2 ) V (r ) (3.38)
d L L
dt r r
(3.39)
d L L
dt q q
d V V
mr mrq
2
or mr mrq
2
dt r r (3.40)
d
dt
mr q 0 or
2 d
dt
mr 2q r (mrq 2mrq ) 0
• The previous were obtained from direct application of Newton’s laws
with
V
Fr and Fq 0
r
L
pq mr 2q constant (3.41)
q
• This conservation law is an example of a general principle that can be
deduced from the Lagrange equation. If a general coordinate q j does
not appear in the Lagrangian and Qj 0
• The corresponding general momentum
L
pj
q j
q 02q 0 2
q a cos(0t ) 2 l
2
g
Fr m(l lq ) mg cos q T
2
dq d q 2
q q
dq dq 2
q 2 g q
d 2 l q0 sin q dq
T mg cos q mlq 2
2g T 3mg cos q 2mg cos q 0
q
2
(cosq cosq 0 )
l
Now using Lagrangian Method
Lagrangian in polar coordinates, with r = l
1
L m(r 2 r 2q 2 ) mgr cos q V constraint (r )
2
V (r ,q ) mgr cos q
is the gravitational potential energy
V constraint (r )
the potential energy that will
enforce the constraint, r l
Radial Lagrangian equation
d L L
0
dt r r
Remember
1
L m(r 2 r 2q 2 ) mgr cos q V constraint (r )
2
constraint
dV (r )
mr mrq mg cos q
2
0
dr
constraint
dV (r )
mr mrq mg cosq
2
0
dr
constraint
dV (r )
constraint
Qr mrq 2 mg cos q
dr
The constraint force is the
negative of the tension.
T mg cosq mlq 2
T 3mg cosq 2mg cosq0
Angular Lagrangian equation
d L L
0
dt q q
Remember
1
L m(r 2 r 2q 2 ) mgr cos q V constraint (r )
2
mr 2q mgr sin q 0
g
q sin q 0
r
• The result of the above exercise is that:
• 1. We can impose constraints directly in the Lagrangian and determine
the correct equations of motion without ever explicitly referring
to the constraint forces.
• 2. If we wish to find the force required to enforce a constraint, we
choose an additional general coordinate (in this case r) so that
when it is held to a particular constant (r = l here) the constraint is
maintained. The constraint force then follows as in (3.46).
Hamiltonian Dynamics*
• If the potential energy of a system is velocity independent, then the linear
momentum components in rectangular coordinates are given by
L
pi
xi
• In general coordinates
L
pj
q j
H = p j q j L
H = p j q j L
H
pk =
qk
• Using the Hamiltonian method, find the equations of motion for a
spherical pendulum of mass m and length b.
• The generalized coordinates are q and .
q b
T= mb q + mb sin q
1
2
2 2 1
2
2 2 2
V=-mgbcosq
• The generalized momenta are then
L
pq mb 2q
q
L
p mb 2 sin 2 q
L pq
pq mb q or q
2
q mb 2
L p
p mb sin q or
2 2
mb 2 sin 2 q q b
pq 2
p2
T= mb q + mb sin q
1 2 2 1 2
2 2
2mb 2mb sin q
2 2 2 2 2
V=-mgbcosq
pq 2
p2
H mgb cos q
2mb 2mb sin q
2 2 2
H H
• The equations of motion are qk = pk =
pk qk
H pq
q
pq mb 2 b
q
H p
p mb sin q
2 2
H p 2
p 2
H
pq
mgb cosq
p mb2 sin 2 q 2mb 2mb sin q
2 2 2
H H
• The equations of motion are qk = pk =
pk qk
H p cos q
pq mgb sin q
q mb sin q
2 3
q b
H
p 0
2 2
pq p
H mgb cosq
2mb 2mb sin q
2 2 2