Skip to content

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.

Let q∈Rq\in\mathbb R be displacement, p∈Rp\in\mathbb R its conjugate momentum, m>0m\gt0 the mass, and ω0>0\omega_0\gt0 the angular frequency. On the phase plane use

H(q,p)=p22m+mω02q22,{f,g}=fqgp−fpgq.H(q,p)=\frac{p^2}{2m}+\frac{m\omega_0^2q^2}{2}, \qquad \{f,g\}=f_qg_p-f_pg_q.

The initial conditions are arbitrary real numbers q(0)=q0q(0)=q_0 and p(0)=p0p(0)=p_0. The bracket gives

q˙={q,H}=pm,p˙={p,H}=−mω02q.\dot q=\{q,H\}=\frac pm, \qquad \dot p=\{p,H\}=-m\omega_0^2q.

In particular, momentum is mq˙m\dot q. Energy is constant because H˙={H,H}=0\dot H=\{H,H\}=0. These are the Hamiltonian conventions of Cannas da Silva, January 2006 revision, § 18.2, p. 107, PDF. If using differential forms, they correspond to ω=dq∧dp\omega=dq\wedge dp and ιXHω=dH\iota_{X_H}\omega=dH; the frequency remains ω0\omega_0.

Suppose q(0)=a>0q(0)=a\gt0 and p(0)=0p(0)=0. A proposed solution has q(t)=acos⁡(ω0t)q(t)=a\cos(\omega_0t) and p(t)=+mω0asin⁡(ω0t)p(t)=+m\omega_0a\sin(\omega_0t). Both initial values match. Is it a solution?

Repair. No: mq˙=−mω0asin⁡(ω0t)m\dot q=-m\omega_0a\sin(\omega_0t), 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 qq and pp in every representation.

First method: solve the differential equation

Section titled “First method: solve the differential equation”

Differentiate q˙=p/m\dot q=p/m and use the second Hamilton equation:

q¨+ω02q=0.\ddot q+\omega_0^2q=0.

Write its general solution as q(t)=Ccos⁡(ω0t)+Dsin⁡(ω0t)q(t)=C\cos(\omega_0t)+D\sin(\omega_0t). The initial position gives C=q0C=q_0, and mq˙(0)=p0m\dot q(0)=p_0 gives D=p0/(mω0)D=p_0/(m\omega_0). Hence

q(t)=q0cos⁡(ω0t)+p0mω0sin⁡(ω0t),p(t)=p0cos⁡(ω0t)−mω0q0sin⁡(ω0t).\boxed{ \begin{aligned} q(t)&=q_0\cos(\omega_0t)+\frac{p_0}{m\omega_0}\sin(\omega_0t),\\ p(t)&=p_0\cos(\omega_0t)-m\omega_0q_0\sin(\omega_0t). \end{aligned}}

Direct differentiation checks both Hamilton equations, and substituting t=0t=0 checks both initial values. The conserved energy is

E=p022m+mω02q022.E=\frac{p_0^2}{2m}+\frac{m\omega_0^2q_0^2}{2}.

At E>0E\gt0, the orbit is an ellipse in the (q,p)(q,p) plane. The displacement amplitude and period are

A=q02+(p0mω0)2,T=2πω0.A=\sqrt{q_0^2+\left(\frac{p_0}{m\omega_0}\right)^2}, \qquad T=\frac{2\pi}{\omega_0}.

The amplitude depends on the initial data; the period does not. The exact formula also covers E=0E=0, when q(t)=p(t)=0q(t)=p(t)=0.

Second method: construct the action and angle

Section titled “Second method: construct the action and angle”

For E>0E\gt0, define

I=Hω0=p22mω0+mω0q22>0I=\frac H{\omega_0} =\frac{p^2}{2m\omega_0}+\frac{m\omega_0q^2}{2}\gt0

and parameterize the ellipse by

q=2Imω0sin⁡θ,p=2mω0Icos⁡θ.\boxed{ q=\sqrt{\frac{2I}{m\omega_0}}\sin\theta, \qquad p=\sqrt{2m\omega_0I}\cos\theta.}

Here θ\theta is an angle modulo 2π2\pi. With qq horizontal and pp vertical, θ=0\theta=0 is the top of the ellipse. Increasing θ\theta 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 II is fixed on this cycle,

12π∮p dq=12π∫02π2Icos⁡2θ dθ=I=Eω0.\begin{aligned} \frac1{2\pi}\oint p\,dq &=\frac1{2\pi}\int_0^{2\pi}2I\cos^2\theta\,d\theta\\ &=I=\frac E{\omega_0}. \end{aligned}

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 q=Rcos⁡αq=R\cos\alpha, p=Rsin⁡αp=R\sin\alpha. His chosen cycle gives IT=−EI_{\mathrm T}=-E. Our variables are related by I=−ITI=-I_{\mathrm T} and θ=π/2−α\theta=\pi/2-\alpha modulo 2π2\pi at those units. The orientation and angle are changed together.

The figure makes the angle orientation visible. Choose a fixed action scale I∗>0I_*\gt0 and use dimensionless coordinates

X=mω02I∗ q,Y=p2mω0I∗.X=\sqrt{\frac{m\omega_0}{2I_*}}\,q, \qquad Y=\frac{p}{\sqrt{2m\omega_0I_*}}.

Then X2+Y2=I/I∗X^2+Y^2=I/I_*, X˙=ω0Y\dot X=\omega_0Y and Y˙=−ω0X\dot Y=-\omega_0X. Follow the clockwise arrows from the positive YY axis; the center belongs to no positive-action orbit.

Positive-action oscillator orbits circulate clockwise, with angle measured from the upward axis; the central zero-action equilibrium has no defined angle.

Exact phase curves in the normalized (X,Y)(X,Y) plane for m,ω0,I∗>0m,\omega_0,I_*\gt0. The dashed orbit has I=I∗I=I_* and radius 11; the solid orbit has I=2I∗I=2I_* and radius 2\sqrt2. Both advance with θ˙=ω0\dot\theta=\omega_0, while the origin is stationary and its angle is undefined. Arrow lengths do not encode speed.

Drawing an ellipse does not prove that its parameters are canonical. On any smooth local branch of the angle, write

θ=atan2⁡(mω0q,p),D=p2+m2ω02q2>0.\theta=\operatorname{atan2}(m\omega_0q,p), \qquad D=p^2+m^2\omega_0^2q^2\gt0.

Our notation atan2⁡(Y,X)\operatorname{atan2}(Y,X) means the quadrant-aware angle whose sine and cosine are proportional to YY and XX, respectively. The two arguments here have the same momentum units. Differentiation on a branch gives

θq=mω0pD,θp=−mω0qD,Iq=mω0q,Ip=pmω0.\begin{aligned} \theta_q&=\frac{m\omega_0p}{D}, &\theta_p&=-\frac{m\omega_0q}{D},\\ I_q&=m\omega_0q, &I_p&=\frac p{m\omega_0}. \end{aligned}

Therefore

{θ,I}=θqIp−θpIq=p2+m2ω02q2D=1.\{\theta,I\} =\theta_qI_p-\theta_pI_q =\frac{p^2+m^2\omega_0^2q^2}{D}=1.

Equivalently, substitution gives dq∧dp=dθ∧dIdq\wedge dp=d\theta\wedge dI. Thus θ\theta is the new coordinate and II its conjugate momentum. The Hamiltonian becomes

H=ω0I,I˙=−∂H∂θ=0,θ˙=∂H∂I=ω0.H=\omega_0 I, \qquad \dot I=-\frac{\partial H}{\partial\theta}=0, \qquad \dot\theta=\frac{\partial H}{\partial I}=\omega_0.

Integration now yields I(t)=I0I(t)=I_0 and θ(t)=θ0+ω0t\theta(t)=\theta_0+\omega_0t modulo 2π2\pi. The nonlinear change of coordinates has converted the elliptical motion into uniform angular motion.

For nonzero initial data, the matching constants are

I0=p022mω0+mω0q022,θ0=atan2⁡(mω0q0,p0)(mod2π).\begin{aligned} I_0&=\frac{p_0^2}{2m\omega_0}+\frac{m\omega_0q_0^2}{2},\\ \theta_0&=\operatorname{atan2}(m\omega_0q_0,p_0)\pmod{2\pi}. \end{aligned}

In particular,

sin⁡θ0=q0A,cos⁡θ0=p0mω0A.\sin\theta_0=\frac{q_0}{A}, \qquad \cos\theta_0=\frac{p_0}{m\omega_0A}.

Both relations matter. An inverse sine alone cannot distinguish the sign of momentum, and a one-argument inverse tangent loses the quadrant.

Substitute θ0+ω0t\theta_0+\omega_0t into the position formula and use the sine addition rule:

q(t)=Asin⁡θ0cos⁡(ω0t)+Acos⁡θ0sin⁡(ω0t)=q0cos⁡(ω0t)+p0mω0sin⁡(ω0t).\begin{aligned} q(t)&=A\sin\theta_0\cos(\omega_0t) +A\cos\theta_0\sin(\omega_0t)\\ &=q_0\cos(\omega_0t)+\frac{p_0}{m\omega_0}\sin(\omega_0t). \end{aligned}

The cosine addition rule similarly gives

p(t)=mω0Acos⁡θ0cos⁡(ω0t)−mω0Asin⁡θ0sin⁡(ω0t)=p0cos⁡(ω0t)−mω0q0sin⁡(ω0t).\begin{aligned} p(t)&=m\omega_0A\cos\theta_0\cos(\omega_0t) -m\omega_0A\sin\theta_0\sin(\omega_0t)\\ &=p_0\cos(\omega_0t)-m\omega_0q_0\sin(\omega_0t). \end{aligned}

The two methods now produce exactly the same trajectory, including the momentum and its sign.

Take q0=a>0q_0=a\gt0 and p0=−mω0ap_0=-m\omega_0a. Then

A=2a,I0=mω0a2,θ0=3π4.A=\sqrt2a, \qquad I_0=m\omega_0a^2, \qquad \theta_0=\frac{3\pi}{4}.

The solution is

q(t)=a[cos⁡(ω0t)−sin⁡(ω0t)],p(t)=−mω0a[cos⁡(ω0t)+sin⁡(ω0t)].\begin{aligned} q(t)&=a\bigl[\cos(\omega_0t)-\sin(\omega_0t)\bigr],\\ p(t)&=-m\omega_0a\bigl[\cos(\omega_0t)+\sin(\omega_0t)\bigr]. \end{aligned}

Using θ0=π/4\theta_0=\pi/4 would reproduce the initial position but reverse the initial momentum. At t=π/(4ω0)t=\pi/(4\omega_0) the correct trajectory crosses q=0q=0 with p=−2mω0ap=-\sqrt2m\omega_0a, giving a further direction check.

Dimensions and the missing angle at equilibrium

Section titled “Dimensions and the missing angle at equilibrium”

If qq has units of length, then pp has units of momentum and II has units of energy times time, or action. The angle is dimensionless and measured in radians. Consequently H=ω0IH=\omega_0I has energy units and θ˙=ω0\dot\theta=\omega_0 has inverse-time units. There is no quantization assumption: every real I≥0I\geq0 occurs in this classical model.

At I=0I=0, the ellipse collapses to the equilibrium (q,p)=(0,0)(q,p)=(0,0). 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 2π2\pi. The punctured phase plane is globally parameterized by (I,θ)∈(0,∞)×(R/2πZ)(I,\theta)\in(0,\infty)\times(\mathbb R/2\pi\mathbb Z), while a real-valued branch of θ\theta 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 HH; the origin has dH=0dH=0 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.

Let q0=a>0q_0=a\gt0 and p0=0p_0=0. Determine I0I_0 and θ0\theta_0, write the direct and action–angle solutions, and compute (q,p)(q,p) after one quarter-period. Check the sign of the momentum.

Hint

The initial sine is positive and the initial cosine is zero. Use T=2π/ω0T=2\pi/\omega_0 and advance the angle by π/2\pi/2 during T/4T/4.

Solution

The constants are I0=mω0a2/2I_0=m\omega_0a^2/2 and θ0=π/2\theta_0=\pi/2 modulo 2π2\pi. Thus

q(t)=asin⁡(π/2+ω0t)=acos⁡(ω0t),p(t)=mω0acos⁡(π/2+ω0t)=−mω0asin⁡(ω0t).\begin{aligned} q(t)&=a\sin(\pi/2+\omega_0t)=a\cos(\omega_0t),\\ p(t)&=m\omega_0a\cos(\pi/2+\omega_0t) =-m\omega_0a\sin(\omega_0t). \end{aligned}

At T/4T/4, (q,p)=(0,−mω0a)(q,p)=(0,-m\omega_0a). The particle has moved from the positive turning point toward the origin, so negative momentum is required. Its energy remains mω02a2/2m\omega_0^2a^2/2.

Independent practice: recover the quadrant

Section titled “Independent practice: recover the quadrant”

For a>0a\gt0, take q0=−aq_0=-a and p0=−3mω0ap_0=-\sqrt3m\omega_0a. Find the energy EE, amplitude AA, initial action I0I_0, and phase θ0∈[0,2π)\theta_0\in[0,2\pi). Produce both solution forms and their quarter-period values. Explain why using only arctan⁡(mω0q0/p0)\arctan(m\omega_0q_0/p_0) gives the wrong initial state.

Hint

Both sine and cosine must be negative. After finding AA, calculate their individual values before selecting an angle.

Solution

The energy is E=2mω02a2E=2m\omega_0^2a^2, so A=2aA=2a and I0=2mω0a2I_0=2m\omega_0a^2. The sine and cosine are −1/2-1/2 and −3/2-\sqrt3/2, giving θ0=7π/6\theta_0=7\pi/6. With s=ω0ts=\omega_0t,

q(t)=2asin⁡(s+7π/6)=−acos⁡s−3asin⁡s,p(t)=2mω0acos⁡(s+7π/6)=−3mω0acos⁡s+mω0asin⁡s.\begin{aligned} q(t)&=2a\sin(s+7\pi/6) =-a\cos s-\sqrt3a\sin s,\\ p(t)&=2m\omega_0a\cos(s+7\pi/6)\\ &=-\sqrt3m\omega_0a\cos s+m\omega_0a\sin s. \end{aligned}

At T/4T/4, the state is (−3a,mω0a)(-\sqrt3a,m\omega_0a). The one-argument arctangent instead returns π/6\pi/6, because the ratio is 1/31/\sqrt3; that phase reverses both initial signs. Checking q(0)q(0) and p(0)p(0) independently exposes the error.

Transfer: let the restoring frequency vanish

Section titled “Transfer: let the restoring frequency vanish”

Keep m,q0,p0m,q_0,p_0 and a finite observation time tt fixed, with p0≠0p_0\ne0, and let ω0→0+\omega_0\to0^+. Find the limit of the direct solution. What happens to I0I_0 and TT? Explain why substituting ω0=0\omega_0=0 into the action–angle formulas is invalid even though the physical limit exists.

Hint

Use sin⁡(ω0t)/ω0→t\sin(\omega_0t)/\omega_0\to t. Compare the positive-energy level sets of p2/(2m)p^2/(2m) with the ellipses of a positive-frequency oscillator.

Solution

The limiting solution is free motion:

q(t)⟶q0+p0mt,p(t)⟶p0.q(t)\longrightarrow q_0+\frac{p_0}{m}t, \qquad p(t)\longrightarrow p_0.

Meanwhile

I0=p022mω0+mω0q022⟶∞,T=2πω0⟶∞.I_0=\frac{p_0^2}{2m\omega_0}+\frac{m\omega_0q_0^2}{2} \longrightarrow\infty, \qquad T=\frac{2\pi}{\omega_0}\longrightarrow\infty.

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 1/ω01/\omega_0. If p0=0p_0=0, the fixed-time limit is stationary instead, and the stated divergence of I0I_0 does not apply.

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.

  • 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.