Lagrangian Mechanics

From Smithnet

Jump to: navigation, search

Contents

Principle of Stationary Action

Consider a physical system described by the generalised coordinates q_1 \dots q_N\, and matching velocities \dot{q}_1 \dots \dot{q}_N

The Lagragian is defined to be:

\mathcal{L}(q_i, \dot{q}_i) = T(q_i, \dot{q}_i) - U(q_i, \dot{q}_i)

where T is the Kinetic Energy and U is the Potential Energy. Typically, the Lagrangian is not a conserved quantity.

The Action is defined as:

\mathcal{S} = \int \mathcal{L}\, \mathrm{d}t

Hamilton's Principle of Stationary Action (sometimes refered to as "Least Action") states that a physical system evolves in time such that the Action is stationary functional of the generalised coordinates:

\frac{\partial \mathcal{S}}{\partial q_i} = 0

It can be shown that this leads to the Euler-Lagrange condition:

\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial \dot{q}_i} = \frac{\partial \mathcal{L}}{\partial q_i}

where \frac{\partial \mathcal{L}}{\partial q_i} is the Generalised Force and \Pi_i = \frac{\partial \mathcal{L}}{\partial \dot{q}_i} is the Momentum Canonically Conjugate to q_i\,.

Examples

Translational Symmetry and Linear Momentum

Consider the system of two particles constrained to move in a line, at positions x_1\, and x_2\,, with masses m_1\, and m_2\,. Their potential energy is only a function of the distance between them U(x_1, x_2)\,. That is, there is translational (continuous) symmetry in the system.

The Lagrangian is:

\mathcal{L} = \frac{1}{2} m_1 \dot{x}_1^2 + \frac{1}{2} m_2 \dot{x}_2^2 - U(x_1-x_2).

The Euler-Lagrange condition leads to:

\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial \dot{x}_1} = \frac{\partial \mathcal{L}}{\partial x_1} and
\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial \dot{x}_2} = \frac{\partial \mathcal{L}}{\partial x_2}

which is

\frac{\mathrm{d}p_1}{\mathrm{d}t} = - \frac{\partial U}{\partial x_1} and
\frac{\mathrm{d}p_2}{\mathrm{d}t} = - \frac{\partial U}{\partial x_2}

where p=m\dot{x} is the linear momentum.

Now, \frac{\partial U}{\partial x_1} = -\frac{\partial U}{\partial x_2}, so

\frac{\mathrm{d}p_1}{\mathrm{d}t} + \frac{\mathrm{d}p_2}{\mathrm{d}t} = 0

This states that the total linear momentum is constant, or momentum is conservered. Thus, we have shown that from the original translational symmetry in space of the system, one can derive conservation of linear momentum.

Rotational Symmetry and Angular Momentum

Consider a particle of mass m\, moving within a Central Force, where the potential energy depends only on the distace from the origin: U(r)\,. The radial and angular components of velocity are given by: v_r = \dot{r} and v_\theta = r\dot{\theta}.

The Lagrangian is:

\mathcal{L} = \frac{1}{2} m\dot{r}^2 + \frac{1}{2} mr^2\dot{\theta}^2 - U(r).

The Euler-Lagrange condition for r and θ is:

\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial \dot{r}} = \frac{\partial \mathcal{L}}{\partial r} and
\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial \dot{\theta}} = \frac{\partial \mathcal{L}}{\partial \theta}

which gives:

m\ddot{r} = mr \dot{\theta}^2 - \frac{\partial U}{\partial r}
\frac{\mathrm{d}}{\mathrm{d}t}mr^2\dot{\theta} = 0, noting that the angular momentum of the system is L=mr^2\dot{\theta}.

The first equation shows that the radial component of momentum is composed of a positive (repulsive) force that is not dependent on the potential energy, but is due to the rotation. This is the origin of the Centrifugal Force. The second equation states that the rate of change of angular momentum is zero. That is, following from the rotational invariance of the system, we have derived conservation of angular momentum.

We may also write the force on the particle in terms of L, which shows the centrifugal component depends inversely on r3:

m\ddot{r} = \frac{L^2}{mr^3} - \frac{\partial U}{\partial r}.

Double Pendulum

Consider the double pendulum consisting of two masses connected by to rigid massless rods, to a fixed point of rotation and each other in a frictionless manner, as shown above.

The kinetic energy is given by:

T = \tfrac{1}{2}m_1v_1^2 + \tfrac{1}{2}m_2v_2^2 = \tfrac{1}{2}m_1l_1^2\dot{\theta}_1^2 + \tfrac{1}{2}m_2(\dot{x}_2^2 + \dot{y}_2^2)

where

x_2 = l_1\sin{\theta_1} + l_2\sin{\theta_2} \quad ; \quad y_2 = -l_1\cos{\theta_1} - l_2\cos{\theta_2}\,

after substitution and use of a standard trig identity, we find:

T = \tfrac{1}{2}\dot{\theta}_1^2l_1^2(m_1 + m_2) + \tfrac{1}{2}m_2\dot{\theta}_2^2l_2^2 + m_2\dot{\theta_1}\dot{\theta_2}l_1l_2\cos{(\theta_1-\theta_2)}

The potential energy is given by:

U = -m_1gl_1\cos{\theta_1} - (l_1\cos{\theta_1} + l_2\cos{\theta_2})m_2g
= -(m_1 + m_2)gl_1\cos{\theta_1} - m_2gl_2\cos{\theta_2}\,

The Lagrangian is thus:

\mathcal{L} \equiv T - U
\mathcal{L} = 
\tfrac{1}{2}\dot{\theta}_1^2l_1^2(m_1 + m_2) + \tfrac{1}{2}m_2\dot{\theta}_2^2l_2^2 + m_2\dot{\theta_1}\dot{\theta_2}l_1l_2\cos{(\theta_1-\theta_2)}
+ (m_1 + m_2)gl_1\cos{\theta_1} + m_2gl_2\cos{\theta_2}

Using the Euler-Lagrange condition for θ1:


\frac{\partial \mathcal{L}}{\partial\dot{\theta}_1} = \dot{\theta_1}l_1^2(m_1 + m_2) + m_2\dot{\theta}_2l_1l_2\cos{(\theta_1 - \theta_2)}

thus:


\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial\dot{\theta}_1} = (m_1 + m_2)l_1^2\ddot{\theta}_1 -m_2l_1l_2\dot{\theta}_2(\dot{\theta}_1 - \dot{\theta}_2)\sin{(\theta_1 - \theta_2)} + m_2l_1l_2\ddot{\theta}_2\cos{(\theta_1 - \theta_2)}
\frac{\partial \mathcal{L}}{\partial\theta_1} = -m_2\dot{\theta}_1\dot{\theta}_2l_1l_2\sin{(\theta_1 - \theta_2)} - (m_1 + m_2)gl_1\sin{\theta_1}

Using the Euler-Lagrange condition for θ2:


\frac{\partial \mathcal{L}}{\partial\dot{\theta}_2} = m_2\dot{\theta_1}l_2^2 + m_2\dot{\theta}_1l_1l_2\cos{(\theta_1 - \theta_2)}

thus:


\frac{\mathrm{d}}{\mathrm{d}t} \frac{\partial \mathcal{L}}{\partial\dot{\theta}_2} = m_2l_2^2\ddot{\theta}_2 + m_2l_1l_2\ddot{\theta}_1\cos{(\theta_1 - \theta_2)} - m_2l_1l_2\dot{\theta}_1(\dot{\theta}_1 - \dot{\theta}_2)\sin{(\theta_1 - \theta_2)}
\frac{\partial \mathcal{L}}{\partial\theta_2} = m_2\dot{\theta}_1\dot{\theta}_2l_1l_2\sin{(\theta_1 - \theta_2)} - m_2gl_2\sin{\theta_2}

Now we can form the two equations of motion:


(m_1 + m_2)l_1\ddot{\theta}_1 + m_2l_2\cos{(\theta_1 - \theta_2)}\ddot{\theta}_2 + m_2l_2\sin{(\theta_1 - \theta_2)}\dot{\theta}_2^2 + (m_1 + m_2)g\sin{\theta_1} = 0

m_2l_1\cos{(\theta_1 - \theta_2)}\ddot{\theta}_1 + m_2l_2\ddot{\theta}_2 - m_2l_1\sin{(\theta_1 - \theta_2)}\dot{\theta}_1^2 + m_2g\sin{\theta_2} = 0

By defining \omega_1 = \dot{\theta}_1, \omega_2 = \dot{\theta}_2 and rearranging we can write:


\dot{\omega}_1 = \frac{-m_2l_1\sin{(\theta_1 - \theta_2)}\cos{(\theta_1 - \theta_2)}\omega_1^2 + m_2g\cos{(\theta_1 - \theta_2)\sin{\theta_2}} - l_2m_2\omega_2^2\sin{(\theta_1 - \theta_2)} - (m_1 + m_2)g\sin{\theta_1}} {l_1(m_1 + m_2\sin^2{(\theta_1 - \theta_2)})}

\dot{\omega}_2 = \frac{m_1 + m_2(l_1\omega_1^2\sin{(\theta_1 - \theta_2)} + \frac{m_2l_2\omega_2^2\sin{(\theta_1 - \theta_2)}\cos{(\theta_1 - \theta_2)}}{m_1 + m_2} + g\sin{\theta_1}\cos{(\theta_1 - \theta_2)} - g\sin{\theta_2})}{l_2(m_1 + m_2sin^2{(\theta_1 - \theta_2)})}
Personal tools