Jump to content

Advanced Classical Mechanics/Constraints and Lagrange's Equations

From Wikiversity

There is more to classical mechanics than F=ma. Often the motion of a system is constrained in some way.

What are constraints?

[edit | edit source]
  • The particles could be restricted to travel along a curve or surface. Specifically one could have some function of the coordinates of each particle and time vanish. These restrictions are either kinematical or geometrical in nature.

f(r→1,r→2,r→3,⋯,t)=0

This is called a holonomic constraint. For example we could have

(r→i−r→j)2−cij2=0

which expresses that the distances between two particles that make up a rigid body are fixed.

  • There are non-holonomic constraints. For example, one could have

r2−a2≥0 for a particle travelling outside the surface of a sphere or constraints that depend on velocities as well,

f(r→1,r→2,r→3,⋯,v→1,v→2,v→3,⋯,t)=0.

A familar example of the latter is a ball rolling on a surface.

We will be dealing exclusively with holonomic constraints in this course.

What are the consequences?

[edit | edit source]
  • The coordinates are no longer independent. They are related through the equations of constraint.
  • The force of constraint are not given so they must be determined from the solution (if you actually want them at all).
  • If the constraints are holonomic, the equations of constraint can be used to eliminate some of the coordinates to get a set of generalized independent coordinates.

These generalized coordinates usually will not fall into pairs or triples that transform as vectors, e.g. the natural coordinates for motion restricted to a sphere are spherical coordinates (θ,ϕ).

D'Alembert's Principle

[edit | edit source]

D'Alembert's principle relies on the concept of virtual displacements. The idea is that you can imagine freezing the system in time and jiggling each of the particles in a way consistent with the various constraints at that particular time and determine the work (virtual work) needed to perform these virtual displacements.

We will denote the virtual displacement of a particle as δr→i. The virtual displacement must be consistent with the constraints.

For each particle we have

F→i=p→˙i so F→−p→˙i=0

and summing over the particles we have

∑i(F→i−p→˙i)⋅δr→i=0.

Let's divide the force on each particle into applied forces and constraints

F→i=F→i(a)+f→i

so we have

∑i(F→i−p→˙i)⋅δr→i=∑i(F→i(a)−p→˙i)⋅δr→i+∑if→i⋅δr→i=0.

If we assume that the forces of constraint do no virtual work, then the last term vanishes. This is a reasonable assumption because the force of constraint to restrict a particle to a surface is normal to that surface but a displacement consistent with the constraints is tangent to the surface so the dot product will vanish and the force of constraint performs no virtual work. If the constraints are a function of time, the forces of constraint can perform work on the particles but the whole idea of D'Alembert's principle is that we have frozen time.

This leaves us with

∑i(F→i(a)−p→˙i)⋅δr→i=0,

D'Alembert's principle. The forces of constraints are gone! However, the coordinates are not independent, so the equation is only a statement about the sum of the various forces, momenta and virtual displacements.

Generalized Coordinates

[edit | edit source]

We can try to find a set of independent coordinates given the constraints. Let's write

r→i=r→i(q1,q2,q3,⋯,t)

and so

v→i=dr→idt=∑k∂r→i∂qkq˙k+∂r→i∂t

and a virtual displacement is

δr→i=∑j∂r→i∂qjδqj.

Notice that there is no dt in the virtual displacement because time is held fixed. Now let's look at the first term in D'Alembert's equation

∑iF→i⋅δr→i=∑iF→i⋅(∑j∂r→i∂qjδqj)=∑j(∑iF→i⋅∂r→i∂qj)δqj=∑jQjδqj

where Qj is called a generalized force.

The second term takes a bit more work. We have

∑ip→˙i⋅δr→i=∑imir→¨i⋅δr→i=∑imir→¨i(∑j∂r→i∂qjδqj).

Let's focus on a particular one of the generalized coordinates j. We have

∑imir→¨i⋅∂r→i∂qj=∑i[ddt(mir→˙i⋅∂r→i∂qj)−mir→˙i⋅ddt(∂r→i∂qj)]

                              =∑i[ddt(miv→i⋅∂r→i∂qj)−mir→˙i⋅∂v→i∂qj]

We can use the fact that

∂v→i∂q˙j=∂r→i∂qk

from the defintion of v→i to get

                              =∑i[ddt(miv→i⋅∂v→i∂q˙j)−mir→˙i⋅∂v→i∂qj]

                              =ddt[∂∂q˙j∑i(12mivi2)]−∂∂qj[∑i(12mivi2)].

Notice that the quantity in the innermost parenthesis is just the total kinetic energy of the system T so we have

∑j{[ddt(∂T∂q˙j)−∂T∂qj]−Qj}δqj=0.

Lagrange's Equations

[edit | edit source]

If the constraints are holonomic, we can pick the qj to be independent so the various δqj are completely arbitrary and the quantity in braces must vanish to yield

[ddt(∂T∂q˙j)−∂T∂qj]=Qj.

These expressions are sometimes called Lagrange's equations, but the term Lagrange's equations is often reserved for the case of a conservative force. In this case we have

F→i=−∇→iV so

Qj=∑iF→i⋅∂r→i∂qj=−∑i∇→iV⋅∂r→i∂qj=−∂V∂qj

In this case we can rearrange the equation to give

[ddt(∂T∂q˙j)−∂(T−V)∂qj]=0.

Furthermore, if the forces do not depend explicitly on the velocities we can define, the Lagrangian to be L=T−V

and write Lagrange's equations in their traditional form

[ddt(∂L∂q˙j)−∂L∂qj]=0.

Conserved Quantities

[edit | edit source]

For each coordinate we can define a conjugate momentum to be

pi=∂L∂q˙i.

This is called the generalized momentum conjugate to the coordinate qi. Let's look at Lagrange's equations with this definition

dpidt=∂L∂qi

so if the Lagrangian does not depend on a particular coordinate qi, then the momentum conjugate to the coordinate does not change with time; it is conserved. This conserved momentum is called a first integral. The coordinate that doesn't affect the Lagrangian is called a cyclic coordinate.

In general the Lagrangian will depend on the coordinates, velocities and time; what happens if ∂L/∂t vanishes? Is there a conserved quantity similar to the momenta?

Let calculate the total derivative of the Lagrangian with respect to time,

dLdt=∑i[∂L∂qiq˙i+∂L∂q˙iq¨i]+∂L∂t.

Now let's use the definition of the momenta and the Lagrange's equation to simplify things a bit,

dLdt=∑i[dpidtq˙i+piq¨i]+∂L∂t=∑id(piq˙i)dt+∂L∂t

and rearranging

∂L∂t=ddt(L−∑ipiq˙i).

So if

∂L/∂t=0

then the Hamiltonian,

H=L−∑ipiq˙i,

is conserved.

Lagrangians with Non-Conservative Forces

[edit | edit source]

From the analysis so far it would appear that one can only construct a Lagrangian when the forces that act on a particle are conservative (they can be derived from a potential V). It is indeed the case that truly dissipative forces such as friction cannot be directly included in a Lagrangian formulation, but forces that can be written in the form d/dt(∂L/∂q˙) may be included in the Lagrangian. Although this seems very restrictive, an important force of this class is the magnetic force on a charged particle.

F→=q(E→+v→×B→).

In electrostatics the electric field is simply the gradient of the electrostatic potential, but for more general fields we have

E→=−∇→ϕ−∂A→∂t

where A→ is the vector potential. The magnetic field may be written as

B→=∇→×A→.

Let's consider the function

V=qϕ(r→,t)−qr→˙⋅A→(r→,t)

and calculate

ddt(∂V∂x˙)−∂V∂x=−qdAxdt−q∂ϕ∂x+q(x˙∂Ax∂x+y˙∂Ay∂x+z˙∂Az∂x).

The total time derivative of the vector potential generates several terms (due to the chain rule) to yield

ddt(∂V∂x˙)−∂V∂x=−q(∂Ax∂t+x˙∂Ax∂x+y˙∂Ax∂y+z˙∂Ax∂z)−q∂ϕ∂x+q(x˙∂Ax∂x+y˙∂Ay∂x+z˙∂Az∂x).

Notice that the terms proportional to x˙ cancel leaving

ddt(∂V∂x˙)−∂V∂x=−q(∂ϕ∂x+∂Ax∂t)+q[y˙(∂Ax∂y−∂Ay∂x)+z˙(∂Ax∂z−∂Az∂x)].

The first term is simply the charge of the particle times the x-component of the electric field. The second term is the charge of the particles times the x-component of v→×B→, so the following Lagrangian will yield the equations of motion

L=12mr˙2+qr˙→⋅A→(r→,t)−qϕ(r→,t).

If the vector potential and the scalar potential do not depend on time, then ∂L/∂t=0 and

H=∂L∂r→˙⋅r→˙−L=12mr˙2+qϕ(r→,t)

is conserved. The force is not conservative but the system is.