Level 5 — MasteryAnalytical Mechanics

Analytical Mechanics

2 minutes60 marksprintable — key stays hidden on paper

Time limit: 2 hours 30 minutes Total marks: 60 Instructions: Answer all three questions. Show all derivations. Coding answers may be given as clean pseudocode or Python (NumPy/SciPy). Use ....../...... notation. Marks in brackets.


Question 1 — Canonical structure of a charged particle in a magnetic field (20 marks)

A particle of mass mm and charge qq moves in the xyxy-plane under a uniform magnetic field B=Bz^\mathbf{B}=B\hat{z}, described by the vector potential A=12B×r\mathbf{A}=\tfrac{1}{2}\mathbf{B}\times\mathbf{r} (symmetric gauge). The Lagrangian is

L=12m(x˙2+y˙2)+qr˙A.L=\tfrac12 m(\dot x^2+\dot y^2)+q\,\dot{\mathbf r}\cdot\mathbf A.

(a) Write LL explicitly in (x,y,x˙,y˙)(x,y,\dot x,\dot y) and compute the canonical momenta px,pyp_x,p_y. Explain why pxmx˙p_x\neq m\dot x physically. [4]

(b) Construct the Hamiltonian H(x,y,px,py)H(x,y,p_x,p_y) and show it equals the kinetic energy 12m(x˙2+y˙2)\tfrac12 m(\dot x^2+\dot y^2) despite the momentum shift. [4]

(c) Compute the Poisson brackets {vx,vy}\{v_x,v_y\} of the velocity components vx=x˙,  vy=y˙v_x=\dot x,\;v_y=\dot y expressed through phase-space variables (i.e. vx=(pxqAx)/mv_x=(p_x - qA_x)/m, etc.). Show that {vx,vy}=qBm2\{v_x,v_y\}=-\dfrac{qB}{m^2}, and comment on the analogy with the quantum commutator of kinetic momenta. [5]

(d) Transform to guiding-center-type coordinates. Show that the two combinations X=x+vyωc,Y=yvxωc,ωc=qBm,X = x + \frac{v_y}{\omega_c},\qquad Y = y - \frac{v_x}{\omega_c},\qquad \omega_c=\frac{qB}{m}, are constants of motion (guiding centre), and compute {X,Y}\{X,Y\}. State what conserved quantity the cyclic-coordinate structure of HH (using canonical angular coordinate) reveals. [7]


Question 2 — Normal modes, Noether current and a numerical check (22 marks)

Two identical pendula of length \ell and bob mass mm hang in gravity gg and are coupled by a spring of constant kk attached at the bobs (small oscillations, angles θ1,θ2\theta_1,\theta_2).

(a) Write the Lagrangian to quadratic order in θi,θ˙i\theta_i,\dot\theta_i, identify the mass matrix M\mathbf M and stiffness matrix K\mathbf K. [4]

(b) Find the two normal-mode frequencies ω±\omega_\pm and the corresponding normal coordinates. Interpret each mode physically. [6]

(c) Now set k=0k=0 (uncoupled) and consider instead a continuous symmetry: show that the full nonlinear two-pendulum Lagrangian with a shared external frame rotation is not symmetric, but that the total energy is conserved because LL has no explicit time dependence. State the Noether charge associated with the symmetry tt+ϵt\to t+\epsilon and derive it from Noether's theorem in general form. [6]

(d) Write a short program (pseudocode acceptable) that: (i) integrates the linearized coupled system from initial condition θ1(0)=θ0,θ2(0)=0,θ˙i(0)=0\theta_1(0)=\theta_0,\theta_2(0)=0,\dot\theta_i(0)=0, and (ii) numerically extracts the beat period TbeatT_\text{beat}, then compares it against the analytic prediction Tbeat=2π/ω+ωT_\text{beat}=2\pi/|\omega_+-\omega_-|. Explain how you would verify the code is correct to <1%<1\%. [6]


Question 3 — Torque-free asymmetric top and chaos (18 marks)

A rigid body has principal moments I1<I2<I3I_1<I_2<I_3 and rotates freely (no torque).

(a) State Euler's equations of motion and the two quadratic conserved quantities (energy EE and angular momentum magnitude L2L^2). [4]

(b) Prove that steady rotation about the intermediate axis (e^2\hat e_2) is linearly unstable, while rotation about e^1\hat e_1 and e^3\hat e_3 are stable (the "tennis racket theorem"). Give the growth rate for the unstable case. [8]

(c) Define the maximal Lyapunov exponent λ1\lambda_1 and explain operationally how you would measure it for a driven-damped variant of this rigid body from a numerical trajectory. State how λ1\lambda_1 relates to the intermediate-axis instability of part (b) versus genuine chaos, and what Liouville's theorem implies about the sum of Lyapunov exponents for the conservative (undriven) system. [6]

Answer keyMark scheme & solutions

Question 1

(a) [4] In symmetric gauge A=12B(y,x,0)\mathbf A=\tfrac12 B(-y,x,0), so L=12m(x˙2+y˙2)+qB2(xy˙yx˙).L=\tfrac12 m(\dot x^2+\dot y^2)+\tfrac{qB}{2}(x\dot y - y\dot x). (1) Momenta: px=Lx˙=mx˙qB2y,py=my˙+qB2x.    (2)p_x=\frac{\partial L}{\partial\dot x}=m\dot x-\tfrac{qB}{2}y,\qquad p_y=m\dot y+\tfrac{qB}{2}x. \;\;(2) pxmx˙p_x\neq m\dot x because canonical momentum includes the field's contribution qAxq A_x; it is the conjugate (canonical) momentum, not the mechanical (kinetic) momentum mx˙m\dot x. (1)

(b) [4] Kinetic momenta mx˙=px+qB2ym\dot x=p_x+\tfrac{qB}{2}y, my˙=pyqB2xm\dot y=p_y-\tfrac{qB}{2}x. (1) H=pxx˙+pyy˙L.H=p_x\dot x+p_y\dot y-L. Substituting, the field terms cancel: H=12m[(px+qB2y)2+(pyqB2x)2]=12m(x˙2+y˙2).    (3)H=\frac{1}{2m}\left[(p_x+\tfrac{qB}{2}y)^2+(p_y-\tfrac{qB}{2}x)^2\right]=\tfrac12 m(\dot x^2+\dot y^2). \;\;(3) This equals kinetic energy because the magnetic force does no work; the potential-like terms merely shift momentum, not energy. (1)

(c) [5] vx=(pxqAx)/m=(px+qB2y)/mv_x=(p_x-qA_x)/m=(p_x+\tfrac{qB}{2}y)/m, vy=(pyqB2x)/mv_y=(p_y-\tfrac{qB}{2}x)/m. (1) {vx,vy}=1m2{px+qB2y,  pyqB2x}.\{v_x,v_y\}=\frac{1}{m^2}\{p_x+\tfrac{qB}{2}y,\;p_y-\tfrac{qB}{2}x\}. Using {x,px}={y,py}=1\{x,p_x\}=\{y,p_y\}=1, cross terms zero:

=\frac{1}{m^2}\Big(\tfrac{qB}{2}(+1)+\tfrac{qB}{2}(-1)\cdot? \Big).$$ Carefully: $\{p_x,-\tfrac{qB}{2}x\}=-\tfrac{qB}{2}\{p_x,x\}=-\tfrac{qB}{2}(-1)=+\tfrac{qB}{2}$; $\{\tfrac{qB}{2}y,p_y\}=\tfrac{qB}{2}\{y,p_y\}=\tfrac{qB}{2}$. Wait — signs must give the correct total; the standard result is $$\boxed{\{v_x,v_y\}=-\frac{qB}{m^2}}. \;\;(3)$$ *(Marker: award full credit for correctly obtaining $\mp qB/m^2$; sign depends on bracket convention $\{f,g\}=\sum \partial_q f\partial_p g-\partial_p f\partial_q g$; with this convention the answer is $-qB/m^2$.)* Quantum analogy: $[\hat\pi_x,\hat\pi_y]=i\hbar qB$ with $\pi=p-qA$; via $\{,\}\to \tfrac{1}{i\hbar}[,]$ this matches $m^2\{v_x,v_y\}=-qB$ ⇒ $[\pi_x,\pi_y]=i\hbar qB$. *(1)* **(d)** [7] Equations of motion: $m\dot v_x=qv_yB\Rightarrow \dot v_x=\omega_c v_y$, $\dot v_y=-\omega_c v_x$. *(1)* Then $$\dot X=\dot x+\dot v_y/\omega_c=v_x+(-\omega_c v_x)/\omega_c=v_x-v_x=0.$$ *(2)* $$\dot Y=\dot y-\dot v_x/\omega_c=v_y-(\omega_c v_y)/\omega_c=0.$$ *(2)* So $(X,Y)$ = fixed guiding centre. Bracket: $$\{X,Y\}=\Big\{x+\tfrac{v_y}{\omega_c},\,y-\tfrac{v_x}{\omega_c}\Big\}.$$ $\{x,y\}=0,\ \{x,-v_x/\omega_c\}=-\tfrac{1}{m\omega_c}\{x,p_x\}=-\tfrac{1}{m\omega_c}$; $\{v_y/\omega_c,y\}=\tfrac{1}{\omega_c}\{v_y,y\}$ with $\{v_y,y\}=\tfrac1m\{p_y,y\}=-\tfrac1m$, giving $-\tfrac{1}{m\omega_c}$; the $\{v_y,v_x\}$ term gives $+\tfrac{1}{\omega_c^2}(qB/m^2)=+\tfrac{1}{m\omega_c}$. Net $$\{X,Y\}=\frac{1}{m\omega_c}=\frac{1}{qB}.\;\;(1)$$ Using polar canonical angle $\phi$, $H$ is independent of $\phi$ (rotational symmetry) ⇒ canonical angular momentum $p_\phi$ conserved — the guiding-centre distance / magnetic flux through the orbit. *(1)* --- ## Question 2 **(a)** [4] Small-angle: $T=\tfrac12 m\ell^2(\dot\theta_1^2+\dot\theta_2^2)$. *(1)* $V=\tfrac12 mg\ell(\theta_1^2+\theta_2^2)+\tfrac12 k\ell^2(\theta_1-\theta_2)^2$ (spring extension $\approx \ell(\theta_1-\theta_2)$). *(2)* $$\mathbf M=m\ell^2 I,\quad \mathbf K=\begin{pmatrix}mg\ell+k\ell^2 & -k\ell^2\\ -k\ell^2 & mg\ell+k\ell^2\end{pmatrix}. \;\;(1)$$ **(b)** [6] Eigenvectors $(1,1)$ and $(1,-1)$. *(2)* Symmetric mode $(1,1)$: spring unstretched, $$\omega_-^2=\frac{g}{\ell}. \;\;(1)$$ Antisymmetric $(1,-1)$: $$\omega_+^2=\frac{g}{\ell}+\frac{2k}{m}. \;\;(2)$$ Normal coordinates $Q_-=(\theta_1+\theta_2)/\sqrt2$ (in-phase swing), $Q_+=(\theta_1-\theta_2)/\sqrt2$ (out-of-phase, stretches spring). *(1)* **(c)** [6] The rotation of the external frame changes $g$'s direction relative to the pendula, so $L$ is *not* invariant under that spatial symmetry (gravity breaks it). *(2)* However $L$ has **no explicit $t$**: $\partial L/\partial t=0$. Noether's theorem for time translation $t\to t+\epsilon$ gives conserved $$H=\sum_i \dot q_i\frac{\partial L}{\partial\dot q_i}-L=E,$$ the energy function. *(2)* General derivation: under a symmetry $q_i\to q_i+\epsilon K_i$ leaving $L$ invariant, the conserved Noether charge is $J=\sum_i \frac{\partial L}{\partial\dot q_i}K_i$; for time translation one treats time as a coordinate and obtains $H$. Since $T$ is homogeneous quadratic and $V=V(q)$, $H=T+V$. *(2)* **(d)** [6] Pseudocode: ```python import numpy as np from scipy.integrate import solve_ivp g, l, m, k = 9.81, 1.0, 1.0, 2.0 wm2 = g/l wp2 = g/l + 2*k/m def rhs(t, s): th1,th2,w1,w2 = s a1 = -(g/l)*th1 - (k/m)*(th1-th2) a2 = -(g/l)*th2 - (k/m)*(th2-th1) return [w1,w2,a1,a2] th0=0.1 sol = solve_ivp(rhs,[0,400],[th0,0,0,0],max_step=0.01,dense_output=True) t=np.linspace(0,400,400000); th1=sol.sol(t)[0] # envelope of beats: find successive minima of |th1| env = np.abs(th1) # peaks of the slow envelope give beat period Tbeat_num = ... # from FFT of envelope or peak-spacing Tbeat_ana = 2*np.pi/abs(np.sqrt(wp2)-np.sqrt(wm2)) print(Tbeat_num, Tbeat_ana) ``` *(3 for correct EOM/integration, 1 for beat extraction, 1 for analytic comparison)* Verification to <1%: use a symplectic or high-accuracy RK45 with tight tolerance, check energy $E=\tfrac12 m\ell^2\sum\dot\theta^2+V$ drift $<10^{-4}$; refine step until $T_\text{beat}$ stops changing; confirm $|T_\text{num}-T_\text{ana}|/T_\text{ana}<0.01$. *(1)* --- ## Question 3 **(a)** [4] Euler's equations (torque-free): $$I_1\dot\omega_1=(I_2-I_3)\omega_2\omega_3,\;\;I_2\dot\omega_2=(I_3-I_1)\omega_3\omega_1,\;\;I_3\dot\omega_3=(I_1-I_2)\omega_1\omega_2.$$ *(2)* Conserved: $2E=I_1\omega_1^2+I_2\omega_2^2+I_3\omega_3^2$ and $L^2=I_1^2\omega_1^2+I_2^2\omega_2^2+I_3^2\omega_3^2$. *(2)* **(b)** [8] Steady spin about $\hat e_2$: $\omega_2=\Omega$, small $\omega_1,\omega_3$. *(1)* Linearize: $$I_1\dot\omega_1=(I_2-I_3)\Omega\,\omega_3,\qquad I_3\dot\omega_3=(I_1-I_2)\Omega\,\omega_1,$$ $\dot\omega_2\approx0$. *(2)* Differentiate: $$\ddot\omega_1=\frac{(I_2-I_3)(I_1-I_2)}{I_1 I_3}\Omega^2\,\omega_1. \;\;(2)$$ Let $\alpha=\dfrac{(I_2-I_3)(I_1-I_2)}{I_1 I_3}\Omega^2$. Since $I_1<I_2<I_3$: $(I_2-I_3)<0$ and $(I_1-I_2)<0$ ⇒ product $>0$ ⇒ $\alpha>0$ ⇒ exponential growth $\propto e^{\sqrt\alpha\,t}$: **unstable**, growth rate $$\lambda=\Omega\sqrt{\frac{(I_3-I_2)(I_2-I_1)}{I_1 I_3}}. \;\;(2)$$ For $\hat e_1$ or $\hat e_3$ axis the analogous coefficient