Tuesday, May 4, 2021

Lagrangian Dynamics Revisited (1)

1.The Lagrangian and Hamilton’s Principle

We begin by considering the simple mechanical system shown below:

We note that h2 is the starting height for the initiation of the pendulum’s oscillation and the mass m passes through the minimum height h1 at the middle of the oscillation.  Ideally, the loss in potential energy equals the gain in kinetic energy or:

mg(D y) =  ½ m v2 

Then the velocity at the point at height D y  (h2 – h1) is: 

 v = [2g (D y)]1/2 = [2g (h2 – h1)] 1/2

This can also be developed in terms of the angle q.

The change in potential energy of the system is:

mg (h2 – h1)  = mg ℓ (1 - cos q)

It is also possible to work out a key quantity called “the Lagrangian” which has supreme importance in mechanics, as the difference between kinetic (T) and potential (V) energies, hence:

L = T – V

In this case: V = mg ℓ (1 - cos q)   and:  T = ½ m v2

So: L = ½ m v2   -   mg (1 - cos q)

Here, either of two coordinates ( , q)  may be used to describe the motion or energy of the system.  Two methods are often used: i) the Lagrangian, and ii) the Hamiltonian,  e.g.

 H = T + V = ½ m v2   +  mg ℓ (1 - cos q

For open dynamical systems, e.g. a ball tossed into the air  from a tall building, e.g. 

We know the motion is under effects of gravity.

It is also possible to describe an important quantity called the action, S.

We compute the action by calculating the average potential energy V and kinetic energy T at each point of the ball’s  motion – from its maximum height, to its minimum (where it has maximum T). We then take the Lagrangian (L = T- V) for each point and average that then integrate.

 We may write here:  T  =   ½ m  dx 2/ dt 2  

Acknowledging the position x(t) is a function of time t. Similarly, V =  mgx(t).

 Then for the action S:

S    =   ò  t2   t1      [½ m  dx(t) 2/ dt 2    -  mgx(t)] dt

Say between time t = t1 and t = t2.   More exactly we need to introduce the symbol  S to denote variation in S  e.g. that occurs when we arbitrarily vary the coordinates of the natural path (say x, t) as shown in the diagram.  Generally we take such variations to occur in infinitesimal amounts.  The end result is an equation that requires that the time integral of the Lagrangian function for the natural path assume a stationary value.  Thus:

d S =   ò  t2   t1  [½ m  dx(t) 2/ dt 2    -  mgx(t)] dt  =


ò  t2   t1  [T  -  V] dt  =    ò  t2   t1      [L ] dt  

This stationary value is always a minimum or maximum, say relative to a neighboring path traversed n the same time, with the same terminal points (t1, t2).  Now, an interesting aspect we find is when we graph the position vs. time t.

To fix ideas, suppose that three identical balls (particles) start from the same point at coordinate (x1, t1) and end at the point (x2, t2), as shown in the sketch below:

We will take the “natural” path to be S2 and the neighbors to be S1 and S3.  Again, irrespective of the path the balls (particles) arrive simultaneously at x2, t2.  Then Hamilton’s Principle of Least Action states that the time integral of the Lagrangian L must be either less or greater for the natural trajectory than for any alternate path.  This actually gives an alternative way of stating Newton’s 2nd law, F = ma.

In the last case, we would integrate using a second variational time, say tau [ τ]  instead of t.  Then:

d S =   ò  t2   t1  [- m  dx 2/ dt 2    -  V’(x)] τ (t) dt  

We know the bracketed quantity is zero, i.e.

 [- m  dx 2/ dt 2    -  V’(x)]  =  0

So we can  show equivalence to Newton’s 2nd law.

2.Generalized Momenta

These can be angular or linear, but described in general notation:

x/ q’  =  p q

For generalized forces: consider a particle which has moved an incremental amount  d r   where:

d r    =   d x i   +   d  y j       +  d jk   

 This is an actual displacement but so small that the forces don’t change, say for a vertical displacement. For N particles we have:

d W    =  å N i   (F i x d x +  F i y d y    + F i z d z )

The preceding can then be referred to generalized coordinates: q 1  , q 2  ……..  q n  

d x = ( x/ q 1) d q 1   +  ( x/ q 2) d q 2    + 

( x/ q 3) d q 3   

Or in polar coordinates:

d x = cos q d r  - r sin d q

d y = sin q d r  - r cos d q

In general, we may write:  d W   =  Q k  d q k   

=   Q r   y r    +  Q q  d q    

Consider now the transformation of:

 F   =  F  x  i +  F  y  j    =   F r    +  F q  q

The generalized force is:

Q r       = -  V / r  =

 -  V / x   (-  x / r  )  -  V / y   (-  x / y  )

=   F x  ( x / r  )   +    F  y   ( y / r )

= F x   cos q   +  F  y   sin q   =   F r

We may  use the diagram below:


To derive  Q q : 

Q q   =   F x  ( x / q )   +    F  y   ( y / q ) 

=    F x   r sin q   +  F  y  r cos  q   =  r F q

Note from the diagram this is a component in the direction of  q.

It is of interest here to obtain the Lagrangian in polar coordinates.  We know: 

x   = r cos q   and  y =  r  sin q 

 So that:

x’   = r’ cos q   -   r sin q  q’   

y’ =  r’  sin q  +   r’ cos q q’  

The kinetic energy T is:

T  =  ½ m ( r’ 2    +   r 2 q2 )

The potential energy:  V =  mg r sin q    

Therefore:, the Lagrangian:

L =   T  - V  =

½ m ( r’ 2    +   r 2 q 2 )  - mg r sin q 


 Suggested Problem:

 Consider the trajectory for a missile shown below where the vectors show the changes in velocity for x and y-components at different points.:


Explain qualitatively how Hamilton’s principle of least action would apply to its motion if the path can be described by an equation of the form y = A sin x.  If this equation defines the “natural path” write one other equation that represents a variation from it.   Find the Lagrangian for the natural path, the action S and the variation in the action  d S .  

Take V = mgy, and  T  = ½  m x’ 2 .   

(Hint: for least action analysis, change the ordinate y  to x(t)  and the abscissa to t  (time).)


No comments: