Solve an oscillator two ways
Can changing coordinates turn an oscillation into uniform motion? For a classical harmonic oscillator, the answer is yes: its action stays fixed while its angle increases at a constant rate. You will obtain that description from the Hamiltonian, match the same initial position and momentum in both methods, and identify where the angle coordinate fails. The calculation concerns one undriven, undamped oscillator with positive mass and frequency.
Required background. Differentiate sine and cosine and use Hamilton’s equations. The Hamiltonian-bracket bridge explains the canonical bracket and how to test a change of coordinates.
Helpful background. The differential-equation bridge connects initial data to a phase portrait. The model record collects the physical parameters; the Liouville–Arnold reference places this explicit example within a theorem with stated hypotheses.
The oscillator and its initial data
Section titled “The oscillator and its initial data”Let be displacement, its conjugate momentum, the mass, and the angular frequency. On the phase plane use
The initial conditions are arbitrary real numbers and . The bracket gives
In particular, momentum is . Energy is constant because . These are the Hamiltonian conventions of Cannas da Silva, January 2006 revision, § 18.2, p. 107, PDF. If using differential forms, they correspond to and ; the frequency remains .
Entry check and repair
Section titled “Entry check and repair”
Suppose and . A proposed solution has and . Both initial values match. Is it a solution?
Repair. No: , with the opposite sign. The force initially points toward the origin, so the momentum must become negative. Matching initial data is necessary, but the equations of motion must also hold. We will check both and in every representation.
First method: solve the differential equation
Section titled “First method: solve the differential equation”Differentiate and use the second Hamilton equation:
Write its general solution as . The initial position gives , and gives . Hence
Direct differentiation checks both Hamilton equations, and substituting checks both initial values. The conserved energy is
At , the orbit is an ellipse in the plane. The displacement amplitude and period are
The amplitude depends on the initial data; the period does not. The exact formula also covers , when .
Second method: construct the action and angle
Section titled “Second method: construct the action and angle”For , define
and parameterize the ellipse by
Here is an angle modulo . With horizontal and vertical, is the top of the ellipse. Increasing moves rightward from there, following the clockwise physical motion.
The action is more than a rescaled energy: it measures an oriented phase-space area. Traverse a positive-energy orbit once in the direction of increasing physical time. Since is fixed on this cycle,
The integral is positive for this orientation. Reversing the cycle reverses its sign. In Torrielli 2016, § 2.2, pp. 6–7, equations (2.18) and (2.23)–(2.32), v1 PDF, the unit-mass, unit-frequency oscillator is instead parameterized counterclockwise by , . His chosen cycle gives . Our variables are related by and modulo at those units. The orientation and angle are changed together.
The figure makes the angle orientation visible. Choose a fixed action scale and use dimensionless coordinates
Then , and . Follow the clockwise arrows from the positive axis; the center belongs to no positive-action orbit.
Exact phase curves in the normalized plane for . The dashed orbit has and radius ; the solid orbit has and radius . Both advance with , while the origin is stationary and its angle is undefined. Arrow lengths do not encode speed.
Check the canonical bracket
Section titled “Check the canonical bracket”Drawing an ellipse does not prove that its parameters are canonical. On any smooth local branch of the angle, write
Our notation means the quadrant-aware angle whose sine and cosine are proportional to and , respectively. The two arguments here have the same momentum units. Differentiation on a branch gives
Therefore
Equivalently, substitution gives . Thus is the new coordinate and its conjugate momentum. The Hamiltonian becomes
Integration now yields and modulo . The nonlinear change of coordinates has converted the elliptical motion into uniform angular motion.
Match the same position and momentum
Section titled “Match the same position and momentum”For nonzero initial data, the matching constants are
In particular,
Both relations matter. An inverse sine alone cannot distinguish the sign of momentum, and a one-argument inverse tangent loses the quadrant.
Substitute into the position formula and use the sine addition rule:
The cosine addition rule similarly gives
The two methods now produce exactly the same trajectory, including the momentum and its sign.
A quadrant-sensitive example
Section titled “A quadrant-sensitive example”Take and . Then
The solution is
Using would reproduce the initial position but reverse the initial momentum. At the correct trajectory crosses with , giving a further direction check.
Dimensions and the missing angle at equilibrium
Section titled “Dimensions and the missing angle at equilibrium”If has units of length, then has units of momentum and has units of energy times time, or action. The angle is dimensionless and measured in radians. Consequently has energy units and has inverse-time units. There is no quantization assumption: every real occurs in this classical model.
At , the ellipse collapses to the equilibrium . Every angle in the parameterization gives the same point, so the angle cannot be recovered and the change of coordinates is not invertible there. This is a coordinate singularity, not a divergent physical solution.
Even away from the origin, a single real-valued angle cannot be continuous around a complete cycle: following the cycle once increases a lifted angle by . The punctured phase plane is globally parameterized by , while a real-valued branch of uses a cut. Along one chosen trajectory, an unwrapped real angle can be continued for all time.
Positive-energy ellipses are compact, connected regular levels of ; the origin has and is not a regular level. This is the simplest setting for the compact-torus conclusion of Cannas da Silva, § 18.4, pp. 110–111, Lemma 18.11 and Theorem 18.12, PDF. The theorem reference explains why its local action–angle conclusion does not supply one real coordinate chart through all equilibria and all cycles.
Exercises
Section titled “Exercises”Guided practice: start at a turning point
Section titled “Guided practice: start at a turning point”
Let and . Determine and , write the direct and action–angle solutions, and compute after one quarter-period. Check the sign of the momentum.
Hint
The initial sine is positive and the initial cosine is zero. Use and advance the angle by during .
Solution
The constants are and modulo . Thus
At , . The particle has moved from the positive turning point toward the origin, so negative momentum is required. Its energy remains .
Independent practice: recover the quadrant
Section titled “Independent practice: recover the quadrant”
For , take and . Find the energy , amplitude , initial action , and phase . Produce both solution forms and their quarter-period values. Explain why using only gives the wrong initial state.
Hint
Both sine and cosine must be negative. After finding , calculate their individual values before selecting an angle.
Solution
The energy is , so and . The sine and cosine are and , giving . With ,
At , the state is . The one-argument arctangent instead returns , because the ratio is ; that phase reverses both initial signs. Checking and independently exposes the error.
Transfer: let the restoring frequency vanish
Section titled “Transfer: let the restoring frequency vanish”
Keep and a finite observation time fixed, with , and let . Find the limit of the direct solution. What happens to and ? Explain why substituting into the action–angle formulas is invalid even though the physical limit exists.
Hint
Use . Compare the positive-energy level sets of with the ellipses of a positive-frequency oscillator.
Solution
The limiting solution is free motion:
Meanwhile
At zero frequency, each connected positive-energy level is a noncompact line with constant nonzero momentum. There is no closed orbit over which to define this oscillator action. The transformation degenerates although the direct solution has a regular fixed-time limit. This limit is not uniform over times that grow like . If , the fixed-time limit is stationary instead, and the stated divergence of does not apply.
Use the example beyond the oscillator
Section titled “Use the example beyond the oscillator”The calculation has established an explicit canonical transformation on the punctured phase plane, uniform angle evolution, and agreement with arbitrary initial data. Its failures at the equilibrium and at zero restoring frequency illustrate why regularity and compactness belong in an action–angle theorem. Continue with Build actions and angles to derive a nonlinear oscillator’s energy-dependent frequency, the Liouville–Arnold reference for the theorem’s hypotheses, or the open Toda sequence to study an interacting system.
References
Section titled “References”- Cannas da Silva, Ana. Lectures on Symplectic Geometry. Lecture Notes in Mathematics 1764, Springer, 2001. DOI. Author revision January 2006; MIT-hosted PDF. Locators above use the printed pages of this revision.
- Torrielli, Alessandro. Lectures on Classical Integrability. arXiv:1606.02946v1 [hep-th], 2016. Version record. Open PDF. The action-cycle orientation is translated explicitly above.