Difference between revisions of "Forest UCM LEq"
(164 intermediate revisions by the same user not shown) | |||
Line 194: | Line 194: | ||
:<math> -\frac{\partial U }{\partial \phi} = \frac{d}{dt} \left ( mr^2 \dot \phi \right ) </math> | :<math> -\frac{\partial U }{\partial \phi} = \frac{d}{dt} \left ( mr^2 \dot \phi \right ) </math> | ||
:<math> rF_{\phi} = \frac{d}{dt} \left ( L \phi \right ) </math> | :<math> rF_{\phi} = \frac{d}{dt} \left ( L \phi \right ) </math> | ||
− | :<math> \mathcal \ | + | :<math> \mathcal \tau = \frac{d L }{dt} </math> |
==Examples using Lagrange's Equation == | ==Examples using Lagrange's Equation == | ||
Line 327: | Line 327: | ||
: <math>l = \frac{1}{2} \ddot q_1 t^2</math> | : <math>l = \frac{1}{2} \ddot q_1 t^2</math> | ||
− | : <math>\Rightarrow t = \sqrt{\frac{2l}{\ddot q_1}} = \sqrt{\frac{2l}\frac{ g \sin \alpha}{\left (1 - \frac{m}{M+m} \cos^2 \alpha \right )}}</math> | + | : <math>\Rightarrow t = \sqrt{\frac{2l}{\ddot q_1}} = \sqrt{\frac{2l}{ \frac{ g \sin \alpha}{\left (1 - \frac{m}{M+m} \cos^2 \alpha \right )}}}</math> |
::<math>= \sqrt{\frac{2l \left (1 - \frac{m}{M+m} \cos^2 \alpha \right )}{g \sin \alpha}}</math> | ::<math>= \sqrt{\frac{2l \left (1 - \frac{m}{M+m} \cos^2 \alpha \right )}{g \sin \alpha}}</math> | ||
Line 381: | Line 381: | ||
:<math>\frac{d f}{dt} = \sum \frac{\partial f}{\partial q_i} + \frac{\partial f}{\partial t} =0</math> | :<math>\frac{d f}{dt} = \sum \frac{\partial f}{\partial q_i} + \frac{\partial f}{\partial t} =0</math> | ||
− | since the total | + | since the total derivative with respect to time is zero , the function is a constant in time |
− | : <math>f(q_i,t) = \mbox{constant} \Rightarrow</math> A holonomic constraint | + | : <math>f(q_i,t) = \mbox{constant} \Rightarrow</math> A holonomic constraint (doesn't depend on other variables) |
Line 405: | Line 405: | ||
− | we | + | we could add (or subtract) the Lagrange multiplier to the above equation without changing it |
− | |||
− | |||
− | |||
but this is more than just equating terms that are equal to zero. | but this is more than just equating terms that are equal to zero. | ||
Line 477: | Line 474: | ||
:<math>T = \frac{1}{2} \dot s^2 + \frac{1}{2} I \dot \theta^2 \;\;\;\;\;\;\; I = \frac{1}{2}MR^2</math> | :<math>T = \frac{1}{2} \dot s^2 + \frac{1}{2} I \dot \theta^2 \;\;\;\;\;\;\; I = \frac{1}{2}MR^2</math> | ||
− | :<math>U = Mg(l-s) \sin \ | + | :<math>U = Mg(l-s) \sin \phi</math> |
− | :<math>L = T - U = \frac{1}{2} \dot s^2 + \frac{1}{4} MR^2 \dot \theta^2 - Mg(l-s) \sin \ | + | :<math>L = T - U = \frac{1}{2} \dot s^2 + \frac{1}{4} MR^2 \dot \theta^2 - Mg(l-s) \sin \phi</math> |
Line 486: | Line 483: | ||
− | :<math> \left [ \left ( \frac{\partial \mathcal {L} }{\partial q} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot q} \right ) \right ] =\ | + | :<math> \left [ \left ( \frac{\partial \mathcal {L} }{\partial q} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot q} \right ) \right ] = \sum_{\ell} \lambda_{\ell} \frac{\partial f_{\ell} }{\partial q_i}</math> |
:<math>\Rightarrow</math> | :<math>\Rightarrow</math> | ||
Line 499: | Line 496: | ||
::<math> \left [ \left ( \frac{\partial \mathcal {L} }{\partial s} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot s} \right ) \right ] - \lambda \frac{\partial f }{\partial s}=0</math> | ::<math> \left [ \left ( \frac{\partial \mathcal {L} }{\partial s} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot s} \right ) \right ] - \lambda \frac{\partial f }{\partial s}=0</math> | ||
− | :<math> Mg \sin \ | + | :<math> Mg \sin \phi - M\ddot s - \lambda = Mg \sin \phi -M\ddot s -\frac{1}{2} MR^2 \ddot s^2 = 0</math> |
− | ::<math>\Rightarrow \ddot s^2 = \frac{2}{3}g \sin \ | + | ::<math>\Rightarrow \ddot s^2 = \frac{2}{3}g \sin \phi</math> |
substituting | substituting | ||
− | : <math>\Rightarrow \lambda =\frac{1}{2} MR^2 \ddot s^2=\frac{1}{2} MR^2\frac{2}{3}g \sin \ | + | : <math>\Rightarrow \lambda =\frac{1}{2} MR^2 \ddot s^2=\frac{1}{2} MR^2\frac{2}{3}g \sin \phi = \frac{1}{3}Mg \sin \phi</math> |
and | and | ||
− | :<math>\frac{1}{2} MR^2 \ddot \theta^2 - \lambda R = 0 \Rightarrow \ddot \theta^2 = \frac{2}{3R}g \sin \ | + | :<math>\frac{1}{2} MR^2 \ddot \theta^2 - \lambda R = 0 \Rightarrow \ddot \theta^2 = \frac{2}{3R}g \sin \phi </math> |
− | :<math>Q_s = \lambda \frac{\partial f}{\partial y} = \lambda = \frac{1}{3}Mg \sin \ | + | :<math>Q_s = \lambda \frac{\partial f}{\partial y} = \lambda = \frac{1}{3}Mg \sin \phi = F_f</math> |
− | :<math>Q_{\theta} = \lambda \frac{\partial f}{\partial \theta} = -\lambda R = \frac{1}{3}MgR \sin \ | + | :<math>Q_{\theta} = \lambda \frac{\partial f}{\partial \theta} = -\lambda R = \frac{1}{3}MgR \sin \phi = -\tau</math> |
=== Falling ladder=== | === Falling ladder=== | ||
Line 528: | Line 525: | ||
There are 2 constraint equations | There are 2 constraint equations | ||
− | : <math>f_1 = x - \frac{L}{2} \ | + | : <math>f_1 = x - \frac{L}{2} \cos \theta</math> |
: <math>f_2 = y - \frac{L}{2} \sin \theta</math> | : <math>f_2 = y - \frac{L}{2} \sin \theta</math> | ||
Line 536: | Line 533: | ||
: <math>U = mgy</math> | : <math>U = mgy</math> | ||
− | : <math>L = \frac{1}{2} m(\dot x^2 + \dot y^2) + \frac{1}{2} I \dot \theta^2 -mgy</math> | + | : <math>\mathcal L = \frac{1}{2} m(\dot x^2 + \dot y^2) + \frac{1}{2} I \dot \theta^2 -mgy</math> |
:<math> \left [ \left ( \frac{\partial \mathcal {L} }{\partial q} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot q} \right ) \right ] =\lambda_{\ell} \sum_{\ell} \frac{\partial f_{\ell} }{\partial q_i}</math> | :<math> \left [ \left ( \frac{\partial \mathcal {L} }{\partial q} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot q} \right ) \right ] =\lambda_{\ell} \sum_{\ell} \frac{\partial f_{\ell} }{\partial q_i}</math> | ||
Line 590: | Line 587: | ||
==More Examples== | ==More Examples== | ||
+ | |||
+ | === 2-D Central Force=== | ||
+ | |||
+ | Consider a particle of mass <math>m</math> that is constrained to move in 2-D due to a potential U(2). | ||
+ | |||
+ | Since this is a 2-D problem, lets use polar coordinates. | ||
+ | |||
+ | : <math>T = \frac{1}{2} m \left ( \dot r^2 + r^2 \dot \phi^2\right )</math> | ||
+ | |||
+ | : <math>\mathcal L = \frac{1}{2} m \left ( \dot r^2 + r^2 \dot \phi^2\right ) - U(r)</math> | ||
+ | |||
+ | For the <math>\phi</math> generalized coordinate parameter | ||
+ | |||
+ | :<math> \frac{\partial \mathcal {L} }{\partial \phi} = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \phi} \right ) </math> | ||
+ | |||
+ | :<math> 0 = \frac{d}{dt} \left ( m r^2 \dot \phi \right ) \Rightarrow m r^2 \dot \phi = </math>constant | ||
+ | |||
+ | |||
+ | |||
+ | for the <math>r</math> generalized coordinate parameter | ||
+ | |||
+ | :<math> \frac{\partial \mathcal {L} }{\partial r} = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot r} \right ) </math> | ||
+ | :<math> m r \dot \phi^2 - \frac{\partial U(r)}{\partial r} = m \ddot r </math> | ||
+ | |||
+ | let | ||
+ | |||
+ | :<math>p_{\phi} \equiv m r^2 \dot \phi = </math>constant | ||
+ | |||
+ | then | ||
+ | |||
+ | :<math> m \ddot r= m r \dot \phi^2 - \frac{\partial U(r)}{\partial r} </math> | ||
+ | ::<math> = \frac{p_{\phi}^2}{m} \frac{1}{r^3}- \frac{\partial U(r)}{\partial r}</math> | ||
===Particle confined on a cylinder=== | ===Particle confined on a cylinder=== | ||
− | Consider a particle of mass m that is experiencing a force <math>\vec F=-k \vec r</math> and is constrained to move on a frictionless cylinder of radius <math>R</math>. | + | Consider a particle of mass <math>m</math> that is experiencing a force <math>\vec F=-k \vec r</math> and is constrained to move on a frictionless cylinder of radius <math>R</math>. |
Find the equation(s) to describe its motion. | Find the equation(s) to describe its motion. | ||
Line 610: | Line 639: | ||
− | : <math>\vec F = - k \vec r = -k ( | + | : <math>\vec F = - k \vec r = -k (R \hat{r} + z \hat{k})</math> |
Line 621: | Line 650: | ||
− | : <math>\vec \nabla \times \vec F = \left ( \begin{matrix} \hat r & \hat \phi & \hat k \\ \frac{\partial}{\partial r} & \frac{1}{r} \frac{\partial}{\partial \phi} & \frac{\partial}{\partial z} \\-kr & 0 &-kz \end{matrix} \right )</math> | + | : <math>\vec \nabla \times \vec F = \left ( \begin{matrix} \hat r & \hat \phi & \hat k \\ \frac{\partial}{\partial r} & \frac{1}{r} \frac{\partial}{\partial \phi} & \frac{\partial}{\partial z} \\-kr & 0 &-kz \end{matrix} \right ) = 0 </math> |
+ | |||
+ | |||
+ | The potential energy for this force may be defined according to the work integral | ||
+ | |||
+ | :<math>U(r) = - W = - \int \vec F \cdot d \vec r = - \int -k ( r \hat{r} + z \hat{k}) \cdot (dr \hat r + r d \phi \hat \phi + dz \hat k) </math> | ||
+ | ::<math>=\frac{1}{2} k ( R^2 +z^2)</math> | ||
+ | |||
+ | :<math>\mathcal L = \frac{1}{2} m \left ( R^2 \dot \phi^2 + \dot z^2\right ) - \frac{1}{2} k ( R^2 +z^2)</math> | ||
+ | |||
+ | |||
+ | :<math> \frac{\partial \mathcal {L} }{\partial z} = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot z} \right ) </math> | ||
+ | |||
+ | |||
+ | : <math>-kz = m\ddot z</math> | ||
+ | :<math> \Rightarrow z = A \cos(\omega t - \delta)</math> simple harmonic motion in the z coordinate | ||
+ | |||
+ | :<math> \frac{\partial \mathcal {L} }{\partial \phi} = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \phi} \right ) </math> | ||
+ | : <math>0 = \frac{d}{dt} \left ( mR^2 \dot \phi \right ) </math> | ||
+ | :<math>\Rightarrow</math> angular momentum is conserved | ||
+ | |||
+ | === ball in a bowl=== | ||
+ | |||
+ | consider a ball of mass <math>m</math> and radius <math> r</math> is constrained to roll without slipping spherical bowl of radius <math>R</math> that is in a gravitational field. | ||
− | |||
− | + | The generalized coordinate functions for this problem are <math> \phi</math> and <math>\theta</math> where <math>\phi</math> is the rotation angle of the ball and <math>\theta</math> is the angle of inclination of the ball with respect to the cylinders central axis. | |
− | |||
+ | :<math> T = \frac{1}{2} \left ( (R-r)^2 \dot \theta^2 + I \dot \phi^2 \right )</math> | ||
− | : <math>\frac{ | + | :<math>I_{ball} = \frac{2}{5} mr^2</math> |
− | :: <math> | + | |
− | </math> | + | :<math>U = mg \left ( R - (R-r) \cos \theta \right )</math> |
+ | |||
+ | |||
+ | : <math>\mathcal L = \frac{1}{2} \left ( m(R-r)^2 \dot \theta^2 + I \dot \phi^2 \right ) - mg \left ( R - (R-r) \cos \theta \right )</math> | ||
+ | |||
+ | constraint equation | ||
+ | |||
+ | :<math>f_1(\theta, \phi) = R \theta -r \phi = 0</math> | ||
+ | |||
+ | :<math> \left ( \frac{\partial \mathcal {L} }{\partial q} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot q} \right ) = \sum_{\ell} \lambda_{\ell} \frac{\partial f_{\ell} }{\partial q_i}</math> | ||
+ | |||
+ | for the <math>\phi</math> generalized coordinate function: | ||
+ | |||
+ | :<math> \left ( \frac{\partial \mathcal {L} }{\partial \phi} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \phi} \right )= \lambda_1 \frac{\partial f_1 }{\partial \phi}</math> | ||
+ | |||
+ | :<math> 0 - I\ddot \phi = \lambda_1(-r) \Rightarrow \lambda_1 = \frac{I \ddot \phi}{r}</math> | ||
+ | |||
+ | |||
+ | for the <math>\theta</math> generalized coordinate function: | ||
− | : <math> | + | :<math> \left ( \frac{\partial \mathcal {L} }{\partial \theta} \right ) - \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \theta} \right )= \lambda_1 \frac{\partial f_1 }{\partial \theta}</math> |
+ | :<math> -mg(R-r) \sin \theta - m(R-r)^2\ddot \theta = \lambda_1R </math> | ||
+ | :<math> -mg \sin \theta - m(R-r)\ddot \theta = \lambda_1 \frac{r}{R-r} = \frac{I \ddot \phi}{r}\frac{r}{R-r}</math> | ||
− | + | The constraint equation | |
− | |||
− | === | + | :<math>f_1(\theta, \phi) = R\theta -r \phi = 0 \Rightarrow R\ddot \theta = r \ddot \phi</math> |
− | |||
− | :<math> | + | :<math> -mg \sin \theta - m(R-r) \ddot \theta = \frac{I \ddot \phi}{R-r} = \frac{\frac{2}{5}mr^2}{R-r} \frac{R\ddot \theta}{r}</math> |
+ | :<math> g \sin \theta + (R-r)\ddot \theta = -\frac{2}{5} \frac{r R \ddot \theta}{R-r}</math> | ||
+ | :<math> \left ( R-r+ \frac{2rR}{5(R-r)} \right ) \ddot \phi = -g \sin \theta </math> | ||
+ | :<math> \ddot \phi = -\left(\frac{g}{ R-r+ \frac{2rR}{5(R-r)}}\right )\sin \theta \approx - \omega^2 \theta </math> | ||
− | = | + | :<math>\omega = </math>oscillation frequency |
===Double Pendulum=== | ===Double Pendulum=== | ||
Line 672: | Line 744: | ||
: <math>T = \frac{1}{2}( m_1 \dot x_1^2 + m_2 \dot x_2^2)</math> | : <math>T = \frac{1}{2}( m_1 \dot x_1^2 + m_2 \dot x_2^2)</math> | ||
::<math>= \frac{1}{2} (m_1 l_1^2 \dot \phi_1^2 + m_2 ( l_1^2 \dot \phi_1^2 + 2 l_1 l_2 \cos(\phi_1-\phi_2) \dot \phi_1 \dot \phi_2 + l_2^2 \dot \phi_2^2))</math> | ::<math>= \frac{1}{2} (m_1 l_1^2 \dot \phi_1^2 + m_2 ( l_1^2 \dot \phi_1^2 + 2 l_1 l_2 \cos(\phi_1-\phi_2) \dot \phi_1 \dot \phi_2 + l_2^2 \dot \phi_2^2))</math> | ||
+ | ::<math>= \frac{1}{2} (m_1+m_1) l_1^2 \dot \phi_1^2 + m_2 l_1 l_2 \cos(\phi_1-\phi_2) \dot \phi_1 \dot \phi_2 + \frac{1}{2} m_2 l_2^2 \dot \phi_2^2</math> | ||
: <math>U = m_1y_1 + m_2y_2</math> | : <math>U = m_1y_1 + m_2y_2</math> | ||
− | :: <math>= -m_1gl_1 \cos(\ | + | :: <math>= -m_1gl_1 \cos(\phi_1) - m_2g(l_1\cos \phi_1 + l_2 \cos \phi_2)</math> |
+ | :: <math>= -(m_1+m_2)gl_1 \cos \phi_1 - m_2g l_2 \cos \phi_2</math> | ||
+ | |||
+ | : <math>\mathcal L =\frac{1}{2} (m_1+m_1) l_1^2 \dot \phi_1^2 + m_2 l_1 l_2 \cos(\phi_1-\phi_2) \dot \phi_1 \dot \phi_2 + \frac{1}{2} m_2 l_2^2 \dot \phi_2^2 + (m_1+m_2)gl_1 \cos \phi_1 + m_2gl_2 \cos \phi_2</math> | ||
+ | |||
+ | :<math> \left ( \frac{\partial \mathcal {L} }{\partial q} \right ) = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot q} \right ) </math> | ||
+ | |||
+ | |||
+ | for the <math>\phi_1</math> generalize coordinate paramter | ||
+ | |||
+ | :<math> \left ( \frac{\partial \mathcal {L} }{\partial \phi_1} \right ) = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \phi_1} \right ) </math> | ||
+ | :<math>-m_2 l_1 l_2 \sin(\phi_1-\phi_2) \dot \phi_1 \dot \phi_2 - (m_1+m_2)gl_1 \sin \phi_1 = \frac{d}{dt} \left ( (m_1+m_1) l_1^2 \dot \phi_1 + m_2 l_1 l_2 \cos(\phi_1-\phi_2) \dot \phi_2 \right ) </math> | ||
+ | ::<math>= (m_1+m_1) l_1^2 \ddot \phi_1 - m_2 l_1 l_2 \sin(\phi_1-\phi_2) (\dot \phi_1-\dot \phi_2) \dot \phi_2+ m_2 l_1 l_2 \cos(\phi_1-\phi_2) \ddot \phi_2 </math> | ||
+ | |||
+ | |||
+ | ;if I assume small oscillations | ||
+ | |||
+ | :<math>- (m_1+m_2)gl_1 \phi_1= (m_1+m_1) l_1^2 \ddot \phi_1 + m_2 l_1 l_2 \cos(\phi_1-\phi_2) \ddot \phi_2 </math> | ||
+ | :<math>- gl_1 \phi_1= l_1^2 \ddot \phi_1 + \frac{m_2}{(m_1+m_2)} l_1 l_2 \ddot \phi_2 </math> | ||
+ | :<math>\ddot \phi_1 + \alpha \beta \ddot \phi_2 + \omega_0^2 \phi_1= 0</math> | ||
+ | |||
+ | |||
+ | where | ||
+ | |||
+ | : <math>\alpha = \frac{m_2}{(m_1+m_2)} \;\;\;\; \beta = \frac{l_2}{l_1} \;\;\;\;\; \omega_0^2 = \frac{g}{l_1}</math> | ||
+ | |||
+ | for the <math>\phi_2</math> generalize coordinate paramter | ||
+ | |||
+ | :<math> \left ( \frac{\partial \mathcal {L} }{\partial \phi_2} \right ) = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \phi_2} \right ) </math> | ||
+ | :<math>m_2 l_1 l_2 \sin(\phi_1-\phi_2) \dot \phi_1 \dot \phi_2 - m_2gl_2 \sin \phi_2 = \frac{d}{dt} \left ( m_2 l_1 l_2 \cos(\phi_1-\phi_2) \dot \phi_1 + m_2 l_2^2 \dot \phi_2 \right ) </math> | ||
+ | ::<math>= m_2 l_1 l_2 \cos(\phi_1-\phi_2) \ddot \phi_1 - m_2 l_1 l_2 \sin(\phi_1-\phi_2)(\dot \phi_1- \dot \phi_2) \dot \phi_1 + m_2 l_2^2 \ddot \phi_2 </math> | ||
+ | |||
+ | |||
+ | ;assuming small oscillations | ||
+ | |||
+ | :<math> - m_2gl_2 \sin \phi_2 = m_2 l_1 l_2 \ddot \phi_1 + m_2 l_2^2 \ddot \phi_2 </math> | ||
+ | :<math>\ddot \phi_1 + \beta \ddot \phi_2 + \omega_0^2 \phi_2 = 0</math> | ||
+ | |||
+ | ====Solving coupled ODEs==== | ||
+ | |||
+ | The double pendulum's motion for small angles is described by a set of coupled , non-linear, second order ordinary differential equations. | ||
+ | |||
+ | |||
+ | :<math>\ddot \phi_1 + \alpha \beta \ddot \phi_2 + \omega_0^2 \phi_1= 0</math> | ||
+ | :<math>\ddot \phi_1 + \beta \ddot \phi_2 + \omega_0^2 \phi_2 = 0</math> | ||
+ | |||
+ | |||
+ | where | ||
+ | |||
+ | : <math>\alpha = \frac{m_2}{(m_1+m_2)} \;\;\;\; \beta = \frac{l_2}{l_1} \;\;\;\;\; \omega_0^2 = \frac{g}{l_1}</math> | ||
+ | |||
+ | create a linear combination of the ODEs by adding them together using an arbitrary constant | ||
+ | |||
+ | :<math>\ddot \phi_1 + \alpha \beta \ddot \phi_2 + \omega_0^2 \phi_1= 0</math> | ||
+ | :<math>+ \gamma \left ( \ddot \phi_1 + \beta \ddot \phi_2 + \omega_0^2 \phi_2 = 0 \right ) </math> | ||
+ | |||
+ | :<math>\Rightarrow (1+\gamma)\ddot \phi_1 + ( \alpha + \gamma ) \beta \ddot \phi_2 + \omega_0^2 \left ( \phi_1 + \gamma \phi_2 \right )=0 </math> | ||
+ | |||
+ | |||
+ | Now require that the raio of the coefficients for the non-differential terms <math>\frac{r}{1}</math> | ||
+ | be equal to the ratio of the coefficients for the double differential terms | ||
+ | |||
+ | :<math>\frac{ ( \alpha + \gamma ) \beta}{(1+\gamma)} = \frac{\gamma}{1} </math> | ||
+ | |||
+ | :<math> ( \alpha + \gamma ) \beta = \gamma(1+\gamma) </math> | ||
+ | :<math> \alpha \beta+ \gamma \beta = \gamma +\gamma^2</math> | ||
+ | :<math>\gamma^2 + ( 1- \beta)\gamma -\alpha \beta =0 </math> | ||
+ | |||
+ | :<math> \Rightarrow \gamma = \frac{-( 1- \beta) \pm \sqrt{( 1- \beta)^2-4(-\alpha \beta)}}{2}</math> | ||
+ | |||
+ | The differential equation for this linear combination may be written as | ||
+ | |||
+ | :<math>(1+\gamma)\ddot \phi_1 + ( \alpha + \gamma ) \beta \ddot \phi_2 + \omega_0^2 \left ( \phi_1 + \gamma \phi_2 \right )</math> | ||
+ | :<math> \ddot \phi_1 + \frac{( \alpha + \gamma )}{(1+\gamma)} \beta \ddot \phi_2 + \frac{\omega_0^2 }{(1+\gamma)}\left ( \phi_1 + \gamma \phi_2 \right )</math> | ||
+ | :<math>\frac{d^2}{dt^2}\left ( \phi_1 + \gamma \phi_2 \right )= - \frac{\omega_0^2}{1+\gamma} ( \phi_1 + \gamma \phi_2)</math> | ||
+ | |||
+ | |||
+ | A normal coordinate is defined such that | ||
+ | |||
+ | :<math>\xi \equiv \phi_1 + \gamma \phi_2 </math> | ||
+ | |||
+ | |||
+ | Then the ODE looks like an oscillator | ||
+ | |||
+ | : <math>\ddot \xi = - \frac{\omega_0^2}{1+\gamma} \xi</math> | ||
+ | |||
+ | :<math>\Rightarrow \omega = \frac{\omega_0}{\sqrt{1+\gamma}}</math> | ||
+ | |||
+ | We have two possible solutions | ||
+ | |||
+ | |||
+ | |||
+ | "in phase" | ||
+ | :<math>\xi_+ \equiv \phi_1 + \gamma_+ \phi_2 \;\;\;\;\; \omega = \frac{\omega_0}{\sqrt{1+\gamma_+}} </math> | ||
+ | |||
+ | :<math> \Rightarrow \gamma_+ = \frac{-( 1- \frac{l_2}{l_1}) + \sqrt{( 1- \frac{l_2}{l_1})^2-4(-\frac{m_2}{(m_1+m_2)} \frac{l_2}{l_1})}}{2}</math> | ||
+ | |||
+ | "out of phase" | ||
+ | |||
+ | :<math>\xi_- \equiv \phi_1 + \gamma_- \phi_2 \;\;\;\;\; \omega = \frac{\omega_0}{\sqrt{1+\gamma_-}} </math> | ||
+ | |||
+ | :<math> \Rightarrow \gamma_- = \frac{-( 1- \frac{l_2}{l_1}) - \sqrt{( 1- \frac{l_2}{l_1})^2-4(-\frac{m_2}{(m_1+m_2)} \frac{l_2}{l_1})}}{2}</math> | ||
+ | |||
+ | ;if <math>l_1=l_2=l</math> & <math> m_1=m_2=m</math> | ||
+ | |||
+ | Then | ||
+ | |||
+ | :<math>\alpha= \frac{1}{2} \;\;\;\; \beta = 1 \;\;\;\; \gamma = \pm \frac{1}{\sqrt 2}</math> | ||
+ | |||
+ | |||
+ | the "in phase" oscillation | ||
+ | |||
+ | :<math>\xi = \phi_1 + \frac{1}{\sqrt 2} \phi_2 \;\;\;\; \omega = \sqrt{\frac{2}{\sqrt{2}+1}} \frac{g}{l}</math> | ||
+ | |||
+ | the "out of phase" oscillation | ||
+ | |||
+ | :<math>\xi = \phi_1 - \frac{1}{\sqrt 2} \phi_2 \;\;\;\; \omega = \sqrt{\frac{2}{\sqrt{2}-1}} \frac{g}{l}</math> | ||
+ | |||
+ | ;Note: The frequency for the case when the two pendulums are oscillating in phase is lower than when they are out of phase. | ||
+ | |||
+ | === Bead on a spinning hoop=== | ||
+ | |||
+ | A bead of mass <math>m</math> is threaded on a frictionless circular wire hoop or radius <math>R</math> that is rotating at a constant velocity <math>\dot \phi</math> | ||
+ | |||
+ | |||
+ | The bead makes and angle <math>\theta</math> with respect to the vertical. | ||
+ | |||
+ | Find equilibrium positions for the bead where it remains at a constant <math>\theta</math> in terms of the centripetal acceleration ( <math> \omega^2r</math> ) | ||
+ | |||
+ | The bead has two velocity components. | ||
+ | |||
+ | If the bead is moving up or down the circular hoop then | ||
+ | |||
+ | :<math>v_t = R \dot \theta</math> | ||
+ | |||
+ | The bead is moving with the circular hoop as the hoop is rotated at a constant angular velocity <math>\omega</math> | ||
+ | |||
+ | :<math>v_{\phi} = R \sin \theta \omega</math> | ||
+ | |||
+ | :<math>T = \frac{1}{2} m \left ( R^2 \dot \theta^2 + R^2 \sin^2 \theta \omega^2 \right )</math> | ||
+ | |||
+ | |||
+ | : <math>U = mgy = mgR(1-\cos \theta)</math> | ||
+ | |||
+ | The Lagrangian for the bead is | ||
+ | |||
+ | |||
+ | :<math>\mathcal L = \frac{1}{2} m \left ( R^2 \dot \theta^2 + R^2 \sin^2 \theta \omega^2 \right ) - mgR(1-\cos \theta)</math> | ||
+ | |||
+ | |||
+ | :<math> \frac{\partial \mathcal {L} }{\partial \theta } = \frac{d}{dt} \left ( \frac{\partial \mathcal {L} }{\partial \dot \theta} \right ) </math> | ||
+ | :<math>m R^2 \omega^2 \sin \theta \cos \theta - mgR \sin \theta = mR^2 \ddot \theta</math> | ||
+ | :<math>\Rightarrow \ddot \theta = \left ( \omega^2 \cos \theta - \frac{g}{R} \right ) \sin \theta</math> | ||
− | + | For the bead to be in equilibrium the acceleration should be zero | |
+ | |||
+ | :<math>\ddot \theta = 0 \Rightarrow \left ( \omega^2 \cos \theta - \frac{g}{R} \right ) \sin \theta = 0</math> | ||
+ | |||
+ | |||
+ | if <math>\theta = 0 or \pi </math> degrees then the bead is at the top or bottom of the hoop | ||
+ | |||
+ | |||
+ | another way is if | ||
+ | :<math>\left ( \omega^2 \cos \theta - \frac{g}{R} \right )=0</math> | ||
+ | or | ||
+ | : <math>\cos \theta = \frac{g}{\omega^2 R}</math> | ||
+ | |||
+ | if | ||
+ | : <math>\cos \theta = \frac{g}{\omega^2 R}> 1 \Rightarrow \frac{g}{ R}> \omega^2 </math> | ||
+ | |||
+ | Then only <math>\theta = 0</math> and <math>\pi</math> are equilibrium positions, <math>\omega</math> is too small , the circular ring is rotating too slowly. | ||
+ | |||
+ | |||
+ | if | ||
+ | : <math> \omega^2 \ge \frac{g}{ R}</math> | ||
+ | |||
+ | then | ||
+ | |||
+ | : <math>\theta = \cos^{-1} \left ( \frac{g}{\omega^2 R} \right )</math> | ||
+ | |||
+ | ====stability==== | ||
+ | |||
+ | There are two cases depending on <math>\omega</math> | ||
+ | |||
+ | ; When <math>\omega^2 < \frac{g}{ R}</math> and <math> \theta \approx 0</math> | ||
+ | |||
+ | then | ||
+ | |||
+ | :<math>\Rightarrow \ddot \theta = \left ( \omega^2 \cos \theta - \frac{g}{R} \right ) \sin \theta= \left ( \omega^2 (1)- \frac{g}{R} \right ) \theta = - \omega^{\prime\;\;2}\theta</math> | ||
+ | |||
+ | :<math>\Rightarrow</math> oscillating motion due to gravity pulling it down any movement away from the bottom of the hoop will result in a net force back towards the bottom of the hoop to | ||
+ | |||
+ | : <math> \omega^{\prime} = \sqrt{\frac{g}{R} - \omega^2}</math> oscillation frequency if bead is displaced a small amount from the bottom of the hoop | ||
+ | |||
+ | If<math> \theta \approx \pi</math> | ||
+ | |||
+ | Then | ||
+ | :<math> \ddot \theta = \left ( -\omega^2 - \frac{g}{R} \right ) \theta = - \omega^{\prime\;\;2}\theta</math> | ||
+ | |||
+ | If the bead moves away from <math>\theta=\pi</math> then you will have oscillation again but you won't return to <math>\theta= \pi</math> as gravity is pulling the bead down and the normal force only cancels this at <math>\theta = \pi</math>. This is an unstable critical point. | ||
+ | |||
+ | <math> \omega^{\prime} = \sqrt{\frac{g}{R} + \omega^2}</math> | ||
+ | |||
+ | |||
+ | ; When <math>\omega^2 \ge \frac{g}{ R}</math> and : <math>\theta = \cos^{-1} \left ( \frac{g}{\omega^2 R} \right ) \equiv \theta_0</math> | ||
+ | |||
+ | then | ||
+ | |||
+ | :<math>\ddot \theta = \left ( \omega^2 \cos \theta - \frac{g}{R} \right ) \sin \theta </math> | ||
+ | |||
+ | consider a small displacement from the above angle by and amount \epsilon | ||
+ | |||
+ | :<math> \theta = \theta_0 + \epsilon</math> | ||
+ | |||
+ | :<math>\cos(\theta_0 + \epsilon) = \cos \theta_0 \cos \epsilon - \sin \theta_0 \sin \epsilon</math> | ||
+ | ::<math>= \cos \theta_0 (1) - \epsilon \sin \theta_0</math> :: <math>\epsilon</math> is close to zero | ||
+ | |||
+ | similarly | ||
+ | |||
+ | :<math>\sin(\theta_0 + \epsilon) = \sin \theta_0 \cos \epsilon + \cos \theta_0 \sin \epsilon</math> | ||
+ | ::<math>= \sin \theta_0 (1) + \epsilon \cos \theta_0</math> :: <math>\epsilon</math> is close to zero | ||
+ | |||
+ | |||
+ | :<math>\ddot \theta = \left [ \omega^2 \cos \theta - \frac{g}{R} \right ]\sin \theta </math> | ||
+ | ::<math>= \left [ \omega^2 \left ( \cos \theta_0 - \epsilon \sin \theta_0 \right ) - \frac{g}{R} \right ] \left (\sin \theta_0 + \epsilon \cos \theta_0 \right ) </math> | ||
+ | ::<math>= \left [ \left ( \omega^2 \cos \theta_0 - \frac{g}{R}\right ) - \epsilon \omega^2 \sin \theta_0 \right ] \left (\sin \theta_0 + \epsilon \cos \theta_0 \right ) </math> | ||
+ | |||
+ | but | ||
+ | |||
+ | <math>\left ( \omega^2 \cos \theta_0 - \frac{g}{R}\right ) =0 </math> given equilibrium condition | ||
+ | |||
+ | |||
+ | :<math>\ddot \theta = \left [ - \epsilon \omega^2 \sin \theta_0 \right ] \left (\sin \theta_0 + \epsilon \cos \theta_0 \right ) </math> | ||
+ | ::<math>= - \epsilon \omega^2 \sin^2 \theta_0 - \epsilon^2 \omega^2 \sin \theta_0 \cos \theta_0 </math> | ||
+ | ::<math>\approx - \epsilon \omega^2 \sin^2 \theta_0 </math> | ||
+ | |||
+ | :<math>\ddot \theta \approx - \epsilon \omega^2 \sin^2 \theta_0 </math> | ||
+ | |||
+ | since | ||
+ | |||
+ | :<math> \theta = \theta_0 + \epsilon \Rightarrow \ddot \theta = \ddot \epsilon</math> | ||
+ | |||
+ | :<math>\ddot \epsilon= - \omega^2 \sin^2 \theta_0 \epsilon = - \omega^{\prime \;2} \epsilon </math> | ||
+ | |||
+ | :<math>\omega^{\prime \;2} = \sqrt{ \omega^2 \sin^2 \theta_0 } </math> | ||
+ | ::<math> =\omega \sin^ \theta_0 = \omega \sin^ \theta_0 </math> | ||
+ | |||
+ | ::<math> =\omega \sin^ \theta_0 = \omega \sin^ \theta_0 = \sqrt {}</math> | ||
+ | |||
+ | |||
+ | :<math>\left ( \omega^2 \cos \theta_0 - \frac{g}{R}\right ) =0 </math> given equilibrium condition | ||
+ | |||
+ | :<math>\sin \theta_0 = \sqrt{1-\cos^2 \theta_0} = \sqrt{1-\left ( \frac{g}{\omega^2 R}\right )^2}</math> | ||
+ | |||
+ | |||
+ | |||
+ | :<math>\omega^{\prime \;2} = \omega \sqrt{1-\left ( \frac{g}{\omega^2 R}\right )^2} = \sqrt{\omega^2 -\left ( \frac{g}{\omega R}\right )^2}</math> | ||
+ | |||
+ | ====Bifurcation==== | ||
+ | |||
+ | Bifurcation: The splitting of a main body into two parts. | ||
+ | In the example above, as the hoop begins to rotate in the presence of a gravitational field we have one stable equilibrium at the bottom of the hoop. When the hoops rotating frequency reaches a critical value <math>\omega^2 = \frac{g}{ R}</math> then the bead will be unstable at the bottom and seek to move up the hoop. There are two possible directions equilibrium points on either side of the hoop. The system is said to have bifricated at this point. | ||
+ | http://www-physics.ucsd.edu/students/courses/fall2010/physics110a/LECTURES/CH06.pdf | ||
[[Forest_Ugrad_ClassicalMechanics]] | [[Forest_Ugrad_ClassicalMechanics]] |
Latest revision as of 20:59, 10 November 2021
Lagrange's Foramlism for Classical Mechanics
Hamilton's principle
Hamilton's principle falls out of the calculus of variations in that seeking the shortest time interval is the focus of the variations.
- Of all possible paths along which a dynamical system may move from on point to another within a specified time interval, the actual path followed is that which minimizes the time integral of the difference between the kinetic and potential energies.
Casting this in the language of the calculus of variations
if you want the above "action" integral to be stationary then according to the calculus of variations you want the Euler-Lagrange equation to be satisfied where
or
here
- the generalized force if I have conservative forces
- Newton's second law in an Inertial reference frame = time derivative of the generalized momentum
thus
Lagrange's Equations in generalized coordinates
Generalized coordinates
are a set of parameters that uniquely specify the instantaneous state of a dynamical system.The number of independent generalized coordinates
is given by subtracting the number of constraints from the number of degrees of freedom .Pedulum example
Consider the 2-D pendulum where an object of mass
is constrained by a rod of length . The object is at one end of the rod and the rod is fixed to rotate about the other end.- There are 32 degrees of freedom for the 2-D problem
- The particle is constrained to a rod
- The motion of the particle may be described using one component
The constraint may be expressed in cartesian coordinates as
you can express the position of the object on the end of a rod as a function of just one generalized coordinate
- is the generalized coordinate
You could also express the position as a function of the deflection angle
in cartesian coordinates- is the generalized coordinate
- Note
- If you were to start using Polar coordinates right away such that
then the dependence of the function on
would not be obvious as this dependence is implicit to changes in the directionThe number of generalized coordinates becomes more obvious when you begin expressing the Potential and Kinetic Energy
Motion on Sphere example
Consider a particle constrained to move on a sphere of radius
.- There are 3 degrees of freedom for the 3-D problem
- The particle is constrained to the surface of the sphere
- The motion of the particle may be described using two components
The constraint expressed in terms of cartesian coordinates is
The above constraint equation can be used to reduce the degrees of freedom by using the constraint to eliminate one of the above components
for Example
or if you chose the angles and from spherical coordinates
Generalized Force and Momentum
- Generalized Force
- Generalized Momentum
As shown above, Hamilton's principle leads to a re-expression of Newton's second law through the Euler-Lagrange Equation in a differential form known as Lagrange's equations.
Below is the Euler-Lagrange equations expressed in terms of generalized coordinates.
Holonomic
If each coordinate used to describe a system can vary independently of the others, then the system is said to be holonomic.
A Non-holonomic system, has a lest one coordinate that depends on one of the others thereby reducing the number of degrees of freedom.
Example: Consider a sphere constrained to roll on a plane (ball on the floor). A spheres position on the plane can be specified using 2 coordinates and the orientation ( rotation) of a point on the sphere can be described by 3 coordinates. Thus, this system has 5 degrees of freedom.
The coordinates are not independent since as the sphere rolls without slipping then at least two coordinates must change making the system nonholonomic.
other examples: car, bicycle
Example: Lagrangian for object in 2-D moving in a conservative field
In cartesian coordinates
In cartesian coordinates the generalized coordinates are represented as the parameters x and y
- for the generalized coordinate labeled
- for the generalized coordinate labeled
In polar coordinates
In cartesian coordinates the generalized coordinates are represented as the parameters
and
The parameter
recall
The parameter
In polar coordinates
Examples using Lagrange's Equation
Pendulum
Returning to the problem of an object of mass
attached to a weightless rod of length that is constrained to rotate at the end of the rod where there is no mass.The number of generalized coordinates = 2-1 = 1.
Selecting polar coordinates to describe this system allows a description using generalized coordinates of only one parameter,
.
Atwoods Machine
Let represent the distance of from the pulley and the distance of from the pulley.
The problem has 2 masses hat can move up and down giving us 2 degrees of freedom.
There is a constraint due to the masses being joined by a string of length l.
The number of generalized coordinate = 2-1 = 1.
One may define the potential arbitrarily such that the above constant is zero.
Block Sliding on a Wedge
A block slides down an incline of elevation
that is free to move on the table.How long does it take the block to reach the bottom if it is released a distance
from the top.Let
- distance of block from the top of the incline
- distance incline moves from its starting point.
- Kinetic energy of the block of mass m
- kinetic energy of the incline of mass M
The kinetic energy of the block is a combination of the velocity of the block down the incline and the velocity of the incline. As the block moves down the inline, the incline moves.
for q_1
for q_2
substituting q_2 into q_1
- Note
- If is 90 degrees then
The acceleration is constant so one may use constant acceleration equations to find the fall time
- Note
- If M is infinite then
Lagrange Multipliers
The method of Lagrange multipliers is a means to incorporate the constraints of a system into the Euler-Lagrange equation.
consider the problem of a disk rolling down an incline plane without slipping.
If we assume the incline does not move then we have 2 degrees of freedom for the disk. Let
represent the distance from the top of the incline and an angle of disk rotation.
The "no-slip" constraint means that there is a force of friction; which does no work by the way.
To roll without slipping requires that
let
then
The above constraint is holonomic since the constraint on the velocities can be integrated to give a relationship between the coordinates. Non-holonomic constraints do not have this property.
Constraints in Differential form
Using the above example we can generalize the constraint equation to take the form of a differential equation.
let
where
then
since the total derivative with respect to time is zero , the function is a constant in time
- A holonomic constraint (doesn't depend on other variables)
The advantage of having the constraint in differential form is that instead of incorporating their integrated form into the problem we add them to the Euler-Lagrange equation.
Incorporate the constraints into Euler-Lagrange Equations
Consider a system having
constraints with generalized coordinate parameters.For the case of time independent constraints, the
-th constraint equation equation for the constraint function may be represented aslet
be an undetermined coefficient such thatThe Euler-Lagrange equation is
we could add (or subtract) the Lagrange multiplier to the above equation without changing it
but this is more than just equating terms that are equal to zero.
consider a system in cartesian coordinates such that
the above coordinates may be written in term of generalized coordinates or in other words they can be expressed as functions of q_i such that
- the same is try for y and z
the total derivative with respect to time is given by the chain rule as
since
then
- only the jth term survives the derivative of the sum
take derivative of both sides with respect to time
since
- here the total and partial derivatives are interchangeable
and
Then
- Lagrange's equations of motion
where
Generalized forces of constraint
disk rolling down incline place using multipliers
Returning to the problem of a disk rolling without slipping down an incline place
substituting
and
Falling ladder
consider a ladder of length L leaning against a frictionless wall and sitting on a frictionless floor.
Since everything is frictionless the ladder will begin to fall.
Find the equation of motion for the ladder.
There are 3 degrees of freedom; The the
and position of the ladder and the angle, , the ladder makes with respect to the floor.
There are 2 constraint equations
for
:
But from the constraint equation f_1
thus
For
:But from the constraint equation f_2
thus
for
:substituting in for
and- = torque resulting from normal force of wall on ladder ( choose point of ladder's contact with floor as the point of rotation)
More Examples
2-D Central Force
Consider a particle of mass
that is constrained to move in 2-D due to a potential U(2).Since this is a 2-D problem, lets use polar coordinates.
For the
generalized coordinate parameter- constant
for the
generalized coordinate parameterlet
- constant
then
Particle confined on a cylinder
Consider a particle of mass
that is experiencing a force and is constrained to move on a frictionless cylinder of radius .Find the equation(s) to describe its motion.
Since the particle is constrained by a cylinder it seems worthwhile to use cylindrical coordinates to describe its motion.
to determine if the force is conservative.
Test if
The potential energy for this force may be defined according to the work integral
- simple harmonic motion in the z coordinate
- angular momentum is conserved
ball in a bowl
consider a ball of mass
and radius is constrained to roll without slipping spherical bowl of radius that is in a gravitational field.
The generalized coordinate functions for this problem are and where is the rotation angle of the ball and is the angle of inclination of the ball with respect to the cylinders central axis.
constraint equation
for the
generalized coordinate function:
for the generalized coordinate function:
The constraint equation
- oscillation frequency
Double Pendulum
The double pendulum problem in 2-D has two objects (4 degrees of freedom) and two constraints.
The number of generalized coordinates = 4-2 = 2
Choosing the two angles
and
In cartesian coordinates one may write the position and velocity of the two objects as
- Object 1
- Object 2 is a little more complicated as its position depends on object 1
for the generalize coordinate paramter
- if I assume small oscillations
where
for the
generalize coordinate paramter
- assuming small oscillations
Solving coupled ODEs
The double pendulum's motion for small angles is described by a set of coupled , non-linear, second order ordinary differential equations.
where
create a linear combination of the ODEs by adding them together using an arbitrary constant
Now require that the raio of the coefficients for the non-differential terms
be equal to the ratio of the coefficients for the double differential terms
The differential equation for this linear combination may be written as
A normal coordinate is defined such that
Then the ODE looks like an oscillator
We have two possible solutions
"in phase"
"out of phase"
- if &
Then
the "in phase" oscillation
the "out of phase" oscillation
- Note
- The frequency for the case when the two pendulums are oscillating in phase is lower than when they are out of phase.
Bead on a spinning hoop
A bead of mass
is threaded on a frictionless circular wire hoop or radius that is rotating at a constant velocity
The bead makes and angle with respect to the vertical.
Find equilibrium positions for the bead where it remains at a constant
in terms of the centripetal acceleration ( )The bead has two velocity components.
If the bead is moving up or down the circular hoop then
The bead is moving with the circular hoop as the hoop is rotated at a constant angular velocity
The Lagrangian for the bead is
For the bead to be in equilibrium the acceleration should be zero
if degrees then the bead is at the top or bottom of the hoop
another way is if
or
if
Then only
and are equilibrium positions, is too small , the circular ring is rotating too slowly.
if
then
stability
There are two cases depending on
- When and
then
- oscillating motion due to gravity pulling it down any movement away from the bottom of the hoop will result in a net force back towards the bottom of the hoop to
- oscillation frequency if bead is displaced a small amount from the bottom of the hoop
If
Then
If the bead moves away from
then you will have oscillation again but you won't return to as gravity is pulling the bead down and the normal force only cancels this at . This is an unstable critical point.
- When and
then
consider a small displacement from the above angle by and amount \epsilon
- :: is close to zero
similarly
- :: is close to zero
but
given equilibrium condition
since
- given equilibrium condition
Bifurcation
Bifurcation: The splitting of a main body into two parts.
In the example above, as the hoop begins to rotate in the presence of a gravitational field we have one stable equilibrium at the bottom of the hoop. When the hoops rotating frequency reaches a critical value
then the bead will be unstable at the bottom and seek to move up the hoop. There are two possible directions equilibrium points on either side of the hoop. The system is said to have bifricated at this point.
http://www-physics.ucsd.edu/students/courses/fall2010/physics110a/LECTURES/CH06.pdf