Analytical mechanics
Generalized momentum and the Hamiltonian
Study the harmonic oscillator in the Hamiltonian picture: the surface and its phase-space orbits. Verify that the level curve is an ellipse with , .
Equipment
- «1. Mặt H(q, p)» canvas: the oscillator's 3D energy surface, rotatable by dragging or arrow keys
- «2. Quỹ đạo trên mặt phẳng pha» canvas: the phase ellipse for one energy level
- «Tần số góc ω» (angular frequency) slider, 50–200 rad/s
- «Năng lượng E» (energy) slider, 20–180 J
- Readouts «H(q,p)=…, ω=…, E=…» and «qmax = √(2E/mω²) = …; pmax = √(2mE) = …»
Procedure
Read the Hamiltonian on the energy surface
In section 1, move «Tần số góc ω» and «Năng lượng E» and read «H(q,p)=p²/(2m)+mω²q²/2; m=1 kg, ω=…, E=…». Rotate the surface by dragging to see its curvature grow with ω: the potential steepens, and planes H = const cut the surface along ellipses.
Measure the phase-ellipse semi-axes
Go to section 2 and read «qmax = √(2E/mω²)» and «pmax = √(2mE)». Check yourself: at ω = 100 rad/s, E = 80 J (m = 1 kg) you should get m and kg·m/s. Compare with the ellipse extents on the canvas and record.
Check the tangent flow of Hamilton's equations
Watch the phase ellipse: at q = qmax, p = 0 and , so the state point moves downward; at p = pmax, , so it moves right — the orbit circulates clockwise in the (q, p) plane. Change ω and E: the ellipse rescales but the flow direction and are preserved.
Predict the effect of ω and E
Predict before sliding: doubling ω halves qmax but leaves pmax unchanged (it depends only on E); raising E scales both semi-axes by . The ellipse area — check by holding E, changing ω, and re-reading the two values: the product qmax·pmax must shrink exactly as 1/ω.