Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Lagrangian Mechanics, Study Guides, Projects, Research of Mechanics

Lagrangian Mechanics. 6.1 Generalized Coordinates. A set of generalized coordinates q1,...,qn completely describes the positions of all particles.

Typology: Study Guides, Projects, Research

2021/2022

Uploaded on 09/27/2022

unknown user
unknown user 🇬🇧

1 / 17

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 6
Lagrangian Mechanics
6.1 Generalized Coordinates
A set of generalized coordinates q1,...,qncompletely describes the positions of all particles
in a mechanical system. In a system with dfdegrees of freedom and kconstraints, n=dfk
independent generalized coordinates are needed to completely specify all the positions. A
constraint is a relation among coordinates, such as x2+y2+z2=a2for a particle moving
on a sphere of radius a. In this case, df= 3 and k= 1. In this case, we could eliminate z
in favor of xand y,i.e. by writing z=±pa2x2y2, or we could choose as coordinates
the polar and azimuthal angles θand φ.
For the moment we will assume that n=dfk, and that the generalized coordinates are
independent, satisfying no additional constraints among them. Later on we will learn how
to deal with any remaining constraints among the {q1,...,qn}.
The generalized coordinates may have units of length, or angle, or perhaps something totally
different. In the theory of small oscillations, the normal coordinates are conventionally
chosen to have units of (mass)1/2×(length). However, once a choice of generalized coordinate
is made, with a concomitant set of units, the units of the conjugate momentum and force
are determined:
pσ=ML2
T·1
qσ,Fσ=ML2
T2·1
qσ,(6.1)
where Ameans ‘the units of A’, and where M,L, and Tstand for mass, length, and time,
respectively. Thus, if qσhas dimensions of length, then pσhas dimensions of momentum
and Fσhas dimensions of force. If qσis dimensionless, as is the case for an angle, pσhas
dimensions of angular momentum (ML2/T ) and Fσhas dimensions of torque (ML2/T 2).
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Lagrangian Mechanics and more Study Guides, Projects, Research Mechanics in PDF only on Docsity!

Chapter 6

Lagrangian Mechanics

6.1 Generalized Coordinates

A set of generalized coordinates q 1

,... , q n

completely describes the positions of all particles

in a mechanical system. In a system with d f

degrees of freedom and k constraints, n = d f

−k

independent generalized coordinates are needed to completely specify all the positions. A

constraint is a relation among coordinates, such as x

2

  • y

2

  • z

2 = a

2 for a particle moving

on a sphere of radius a. In this case, d f

= 3 and k = 1. In this case, we could eliminate z

in favor of x and y, i.e. by writing z = ±

a

2 − x

2 − y

2 , or we could choose as coordinates

the polar and azimuthal angles θ and φ.

For the moment we will assume that n = d f

− k, and that the generalized coordinates are

independent, satisfying no additional constraints among them. Later on we will learn how

to deal with any remaining constraints among the {q 1

,... , q n

The generalized coordinates may have units of length, or angle, or perhaps something totally

different. In the theory of small oscillations, the normal coordinates are conventionally

chosen to have units of (mass)

1 / 2 ×(length). However, once a choice of generalized coordinate

is made, with a concomitant set of units, the units of the conjugate momentum and force

are determined:

[

p σ

]

M L

2

T

[

q σ

] ,

[

F

σ

]

M L

2

T

2

[

q σ

] , (6.1)

where

[

A

]

means ‘the units of A’, and where M , L, and T stand for mass, length, and time,

respectively. Thus, if q σ

has dimensions of length, then p σ

has dimensions of momentum

and F σ

has dimensions of force. If q σ

is dimensionless, as is the case for an angle, p σ

has

dimensions of angular momentum (M L

2 /T ) and F σ

has dimensions of torque (M L

2 /T

2 ).

2 CHAPTER 6. LAGRANGIAN MECHANICS

6.2 Hamilton’s Principle

The equations of motion of classical mechanics are embodied in a variational principle,

called Hamilton’s principle. Hamilton’s principle states that the motion of a system is such

that the action functional

S

[

q(t)

]

t ∫^2

t 1

dt L(q, q, t˙ ) (6.2)

is an extremum, i.e. δS = 0. Here, q = {q 1

,... , q n

} is a complete set of generalized

coordinates for our mechanical system, and

L = T − U (6.3)

is the Lagrangian, where T is the kinetic energy and U is the potential energy. Setting the

first variation of the action to zero gives the Euler-Lagrange equations,

d

dt

momentum pσ

∂L

∂ q˙ σ

force Fσ

∂L

∂q σ

Thus, we have the familiar ˙p σ

= F

σ

, also known as Newton’s second law. Note, however,

that the {qσ} are generalized coordinates, so pσ may not have dimensions of momentum,

nor F σ

of force. For example, if the generalized coordinate in question is an angle φ, then

the corresponding generalized momentum is the angular momentum about the axis of φ’s

rotation, and the generalized force is the torque.

6.2.1 Invariance of the equations of motion

Suppose

L(q, q, t˙ ) = L(q, q, t˙ ) +

d

dt

G(q, t). (6.5)

Then

S[q(t)] = S[q(t)] + G(q b

, t b

) − G(q a

, t a

Since the difference

S − S is a function only of the endpoint values {qa, q b

}, their variations

are identical: δ

S = δS. This means that L and

L result in the same equations of motion.

Thus, the equations of motion are invariant under a shift of L by a total time derivative of

a function of coordinates and time.

6.2.2 Remarks on the order of the equations of motion

The equations of motion are second order in time. This follows from the fact that L =

L(q, q, t˙ ). Using the chain rule,

d

dt

∂L

∂ q˙σ

2 L

∂ q˙σ ∂ q˙σ′

q ¨ σ

2 L

∂ q˙σ ∂qσ′

q ˙ σ

2 L

∂ q˙σ ∂t

4 CHAPTER 6. LAGRANGIAN MECHANICS

however, as we shall see, velocity-dependent potentials appear in the case of charged parti-

cles interacting with electromagnetic fields. In general, though,

L = T − U , (6.13)

where T is the kinetic energy, and U is the potential energy.

6.3 Conserved Quantities

A conserved quantity Λ(q, q, t˙ ) is one which does not vary throughout the motion of the

system. This means

dt

q=q(t)

We shall discuss conserved quantities in detail in the chapter on Noether’s Theorem, which

follows.

6.3.1 Momentum conservation

The simplest case of a conserved quantity occurs when the Lagrangian does not explicitly

depend on one or more of the generalized coordinates, i.e. when

F

σ

∂L

∂q σ

We then say that L is cyclic in the coordinate qσ. In this case, the Euler-Lagrange equations

p˙ σ

= F

σ

say that the conjugate momentum p σ

is conserved. Consider, for example, the

motion of a particle of mass m near the surface of the earth. Let (x, y) be coordinates

parallel to the surface and z the height. We then have

T =

1

2

m

2

  • ˙y

2

  • ˙z

2

U = mgz (6.17)

L = T − U =

1

2

m

2

  • ˙y

2

  • ˙z

2

− mgz. (6.18)

Since

F

x

∂L

∂x

= 0 and F y

∂L

∂y

we have that p x

and p y

are conserved, with

p x

∂L

∂ x˙

= m x˙ , p y

∂L

∂ y˙

= m y .˙ (6.20)

These first order equations can be integrated to yield

x(t) = x(0) +

px

m

t , y(t) = y(0) +

py

m

t. (6.21)

6.3. CONSERVED QUANTITIES 5

The z equation is of course

p˙ z

= mz¨ = −mg = F z

with solution

z(t) = z(0) + ˙z(0) t −

1

2

gt

2

. (6.23)

As another example, consider a particle moving in the (x, y) plane under the influence of

a potential U (x, y) = U

x

2

  • y

2

which depends only on the particle’s distance from

the origin ρ =

x

2

  • y

2

. The Lagrangian, expressed in two-dimensional polar coordinates

(ρ, φ), is

L =

1

2

m

ρ˙

2

  • ρ

2 ˙ φ

2

− U (ρ). (6.24)

We see that L is cyclic in the angle φ, hence

p φ

∂L

φ

= mρ

2 ˙ φ (6.25)

is conserved. p φ

is the angular momentum of the particle about the ˆz axis. In the language

of the calculus of variations, momentum conservation is what follows when the integrand of

a functional is independent of the independent variable.

6.3.2 Energy conservation

When the integrand of a functional is independent of the dependent variable, another con-

servation law follows. For Lagrangian mechanics, consider the expression

H(q, q, t˙ ) =

n ∑

σ=

p σ

q˙ σ

− L. (6.26)

Now we take the total time derivative of H:

dH

dt

n ∑

σ=

p σ

¨q σ

  • ˙p σ

q˙ σ

∂L

∂q σ

q ˙ σ

∂L

∂ q˙ σ

q ¨ σ

∂L

∂t

We evaluate

H along the motion of the system, which entails that the terms in the curly

brackets above cancel for each σ:

p σ

∂L

∂ q˙σ

, p˙ σ

∂L

∂qσ

Thus, we find

dH

dt

∂L

∂t

which means that H is conserved whenever the Lagrangian contains no explicit time depen-

dence. For a Lagrangian of the form

L =

a

1

2

m a

2

a

− U (r 1

,... , r N

6.5. HOW TO SOLVE MECHANICS PROBLEMS 7

The kinetic energy is

T =

1

2

m

2

  • ˙y

2

  • ˙z

2

1

2

m

2

  • r

θ

2

  • r

2 sin

2 θ

φ

2

6.5 How to Solve Mechanics Problems

Here are some simple steps you can follow toward obtaining the equations of motion:

  1. Choose a set of generalized coordinates {q 1

,... , q n

  1. Find the kinetic energy T (q, q, t˙ ), the potential energy U (q, t), and the Lagrangian

L(q, q, t˙ ) = T − U. It is often helpful to first write the kinetic energy in Cartesian

coordinates for each particle before converting to generalized coordinates.

  1. Find the canonical momenta p σ

∂L

∂ q˙ σ

and the generalized forces F σ

∂L

∂q σ

  1. Evaluate the time derivatives ˙p σ

and write the equations of motion ˙p σ

= F

σ

. Be careful

to differentiate properly, using the chain rule and the Leibniz rule where appropriate.

  1. Identify any conserved quantities (more about this later).

6.6 Examples

6.6.1 One-dimensional motion

For a one-dimensional mechanical system with potential energy U (x),

L = T − U =

1

2

m x˙

2 − U (x). (6.40)

The canonical momentum is

p =

∂L

∂ x˙

= m x˙ (6.41)

and the equation of motion is

d

dt

∂L

∂ x˙

∂L

∂x

⇒ mx¨ = −U

′ (x) , (6.42)

which is of course F = ma.

Note that we can multiply the equation of motion by ˙x to get

0 = ˙x

mx¨ + U

(x)

d

dt

1

2

m x˙

2

  • U (x)

dE

dt

where E = T + U.

8 CHAPTER 6. LAGRANGIAN MECHANICS

6.6.2 Central force in two dimensions

Consider next a particle of mass m moving in two dimensions under the influence of a

potential U (ρ) which is a function of the distance from the origin ρ =

x

2

  • y

2

. Clearly

cylindrical (2d polar) coordinates are called for:

L =

1

2

m

ρ˙

2

  • ρ

2 ˙ φ

2

− U (ρ). (6.44)

The equations of motion are

d

dt

∂L

∂ ρ˙

∂L

∂ρ

⇒ mρ¨ = mρ

φ

2 − U

′ (ρ) (6.45)

d

dt

∂L

φ

∂L

∂φ

d

dt

2 ˙ φ

Note that the canonical momentum conjugate to φ, which is to say the angular momentum,

is conserved:

p φ

= mρ

φ = const. (6.47)

We can use this to eliminate

φ from the first Euler-Lagrange equation, obtaining

mρ¨ =

p

2

φ

3

− U

′ (ρ). (6.48)

We can also write the total energy as

E =

1

2

m

ρ˙

2

  • ρ

φ

2

  • U (ρ)

1

2

m ρ˙

2

p

2

φ

2 mρ

2

  • U (ρ) , (6.49)

from which it may be shown that E is also a constant:

dE

dt

m ρ¨ −

p

2

φ

3

+ U

′ (ρ)

ρ ˙ = 0. (6.50)

We shall discuss this case in much greater detail in the coming weeks.

6.6.3 A sliding point mass on a sliding wedge

Consider the situation depicted in Fig. 6.1, in which a point object of mass m slides

frictionlessly along a wedge of opening angle α. The wedge itself slides frictionlessly along a

horizontal surface, and its mass is M. We choose as generalized coordinates the horizontal

position X of the left corner of the wedge, and the horizontal distance x from the left corner

to the sliding point mass. The vertical coordinate of the sliding mass is then y = x tan α,

10 CHAPTER 6. LAGRANGIAN MECHANICS

Figure 6.2: The spring–pendulum system.

6.6.4 A pendulum attached to a mass on a spring

Consider next the system depicted in Fig. 6.2 in which a mass M moves horizontally while

attached to a spring of spring constant k. Hanging from this mass is a pendulum of arm

length ℓ and bob mass m.

A convenient set of generalized coordinates is (x, θ), where x is the displacement of the mass

M relative to the equilibrium extension a of the spring, and θ is the angle the pendulum

arm makes with respect to the vertical. Let the Cartesian coordinates of the pendulum bob

be (x 1

, y 1

). Then

x 1

= a + x + ℓ sin θ , y 1

= −l cos θ. (6.57)

The kinetic energy is

T =

1

2

M x˙

2

1

2

m ( ˙x

2

  • ˙y

2

)

1

2

M x˙

2

1

2

m

[

( ˙x + ℓ cos θ

θ)

2

  • (ℓ sin θ

θ)

2

]

1

2

(M + m) ˙x

2

1

2

mℓ

2 ˙ θ

2

  • mℓ cos θ x˙

θ , (6.58)

and the potential energy is

U =

1

2

kx

2

  • mgy 1

1

2

kx

2 − mgℓ cos θ. (6.59)

Thus,

L =

1

2

(M + m) ˙x

2

1

2

mℓ

2 ˙ θ

2

  • mℓ cos θ x˙

θ −

1

2

kx

2

  • mgℓ cos θ. (6.60)

6.6. EXAMPLES 11

The canonical momenta are

p x

∂L

∂ x˙

= (M + m) ˙x + mℓ cos θ

θ

p θ

∂L

θ

= mℓ cos θ x˙ + mℓ

θ , (6.61)

and the canonical forces are

F

x

∂L

∂x

= −kx

F

θ

∂L

∂θ

= −mℓ sin θ x˙

θ − mgℓ sin θ. (6.62)

The equations of motion then yield

(M + m) ¨x + mℓ cos θ

θ − mℓ sin θ

θ

2

= −kx (6.63)

mℓ cos θ ¨x + mℓ

θ = −mgℓ sin θ. (6.64)

Small Oscillations : If we assume both x and θ are small, we may write sin θ ≈ θ and

cos θ ≈ 1, in which case the equations of motion may be linearized to

(M + m) ¨x + mℓ

θ + kx = 0 (6.65)

mℓ x¨ + mℓ

2 ¨ θ + mgℓ θ = 0. (6.66)

If we define

u ≡

x

, α ≡

m

M

, ω

2

0

k

M

, ω

2

1

g

then

(1 + α) ¨u + α

θ + ω

2

0

u = 0 (6.68)

u¨ +

θ + ω

2

1

θ = 0. (6.69)

We can solve by writing (

u(t)

θ(t)

a

b

e

−iωt

, (6.70)

in which case (

ω

2

0

− (1 + α) ω

2 −α ω

2

−ω

2 ω

2

1

− ω

2

a

b

In order to have a nontrivial solution (i.e. without a = b = 0), the determinant of the above

2 × 2 matrix must vanish. This gives a condition on ω

2 , with solutions

ω

2

±

1

2

ω

2

0

  • (1 + α) ω

2

1

1

2

ω

2

0

− ω

2

1

2

  • 2α (ω

2

0

  • ω

2

1

) ω

2

1

6.6. EXAMPLES 13

and

L = T − U =

1

2

(m 1

  • m 2

2

1

θ

2

1

  • m 2

1

2

cos(θ 1

− θ 2

θ 1

θ 2

1

2

m 2

2

2

θ

2

2

  • (m 1

  • m 2

) g ℓ 1

cos θ 1 + m 2

g ℓ 2

cos θ 2

The generalized (canonical) momenta are

p 1

∂L

θ 1

= (m 1

  • m 2

2

1

θ 1

  • m 2

1

2

cos(θ 1

− θ 2

θ 2

p 2

∂L

θ 2

= m 2

1

2

cos(θ 1

− θ 2

θ 1

  • m 2

2

2

θ 2

and the equations of motion are

p˙ 1

= (m 1

  • m 2

2

1

θ 1 + m 2

1

2

cos(θ 1

− θ 2

θ 2

− m 2

1

2

sin(θ 1

− θ 2

θ 1

θ 2

θ 2

= −(m 1

  • m 2

) g ℓ 1

sin θ 1

− m 2

1

2

sin(θ 1

− θ 2

θ 1

θ 2

∂L

∂θ 1

and

p˙ 2

= m 2

1

2

cos(θ 1

− θ 2

θ 1

− m 2

1

2

sin(θ 1

− θ 2

θ 1

θ 2

θ 1

  • m 2

2

2

θ 2

= −m 2

g ℓ 2

sin θ 2

  • m 2

1

2

sin(θ 1

− θ 2

θ 1

θ 2

∂L

∂θ 2

We therefore find

1

θ 1

m 2

2

m 1 + m 2

cos(θ 1

− θ 2

θ 2

m 2

2

m 1 + m 2

sin(θ 1

− θ 2

θ

2

2

  • g sin θ 1

1

cos(θ 1

− θ 2

θ 1 + ℓ 2

θ 2

1

sin(θ 1

− θ 2

θ

2

1

  • g sin θ 2

Small Oscillations : The equations of motion are coupled, nonlinear second order ODEs.

When the system is close to equilibrium, the amplitudes of the motion are small, and we

may expand in powers of the θ 1

and θ 2

. The linearized equations of motion are then

θ 1

  • αβ

θ 2

  • ω

2

0

θ 1

θ 1

  • β

θ 2

  • ω

2

0

θ 2

where we have defined

α ≡

m 2

m 1

  • m 2

, β ≡

2

1

, ω

2

0

g

1

14 CHAPTER 6. LAGRANGIAN MECHANICS

We can solve this coupled set of equations by a nifty trick. Let’s take a linear combination

of the first equation plus an undetermined coefficient, r, times the second:

(1 + r)

θ 1

  • (α + r)β

θ 2

  • ω

2

0

(θ 1

  • r θ 2

We now demand that the ratio of the coefficients of θ 2

and θ 1

is the same as the ratio of

the coefficients of

θ 2

and

θ 1

(α + r) β

1 + r

= r ⇒ r ±

1

2

(β − 1) ±

1

2

(1 − β)

2

  • 4αβ (6.92)

When r = r ±

, the equation of motion may be written

d

2

dt

2

θ 1

  • r ±

θ 2

ω

2

0

1 + r ±

θ 1

  • r ±

θ 2

and defining the (unnormalized) normal modes

ξ ±

θ 1

  • r ±

θ 2

we find

ξ ±

  • ω

2

±

ξ ±

with

ω ±

ω 0

1 + r ±

Thus, by switching to the normal coordinates, we decoupled the equations of motion, and

identified the two normal frequencies of oscillation. We shall have much more to say about

small oscillations further below.

For example, with ℓ 1

2

= ℓ and m 1

= m 2

= m, we have α =

1

2

, and β = 1, in which case

r ±

1 √

2

, ξ ±

= θ 1

1 √

2

θ 2

, ω ±

g

Note that the oscillation frequency for the ‘in-phase’ mode ξ

is low, and that for the ‘out

of phase’ mode ξ −

is high.

6.6.6 The thingy

Four massless rods of length L are hinged together at their ends to form a rhombus. A

particle of mass M is attached to each vertex. The opposite corners are joined by springs

of spring constant k. In the square configuration, the strings are unstretched. The motion

is confined to a plane, and the particles move only along the diagonals of the rhombus.

Introduce suitable generalized coordinates and find the Lagrangian of the system. Deduce

the equations of motion and find the frequency of small oscillations about equilibrium.

16 CHAPTER 6. LAGRANGIAN MECHANICS

The equations of motion are

d

dt

∂L

φ

∂L

∂φ

⇒ M a

2 ¨ φ =

2 ka

2

(cos φ − sin φ)

It’s always smart to expand about equilibrium, so let’s write φ =

π

4

  • δ, which leads to

δ + ω

2

0

sin δ = 0 ,

with ω 0

2 k/M. This is the equation of a pendulum! Linearizing gives

δ + ω

2

0

δ = 0, so

the small oscillation frequency is just ω 0

6.7 Appendix : Virial Theorem

The virial theorem is a statement about the time-averaged motion of a mechanical system.

Define the virial,

G(q, p) =

σ

p σ

q σ

Then

dG

dt

σ

p˙ σ

q σ

  • p σ

q˙ σ

σ

q σ

F

σ

σ

q ˙ σ

∂L

∂ q˙σ

Now suppose that T =

1

2

σ,σ

′ T

σσ

q˙ σ

q˙ σ

is homogeneous of degree k = 2 in ˙q, and that U

is homogeneous of degree zero in ˙q. Then

σ

q ˙ σ

∂L

∂ q˙ σ

σ

q ˙ σ

∂T

∂ q˙ σ

= 2 T, (6.100)

which follows from Euler’s theorem on homogeneous functions.

Now consider the time average of

G over a period τ :

dG

dt

τ

τ ∫

0

dt

dG

dt

τ

[

G(τ ) − G(0)

]

If G(t) is bounded, then in the limit τ → ∞ we must have 〈

G〉 = 0. Any bounded motion,

such as the orbit of the earth around the Sun, will result in 〈

G〉

τ →∞

= 0. But then

dG

dt

= 2 〈T 〉 +

σ

q σ

F

σ

6.7. APPENDIX : VIRIAL THEOREM 17

which implies

〈T 〉 = −

1

2

σ

q σ

F

σ

1

2

σ

q σ

∂U

∂q σ

1

2

i

r i

i

U

r 1

,... , r N

1

2

k 〈U 〉 , (6.104)

where the last line pertains to homogeneous potentials of degree k. Finally, since T +U = E

is conserved, we have

〈T 〉 =

k E

k + 2

, 〈U 〉 =

2 E

k + 2