Skip to content

Also indexed under simple harmonic oscillator

The harmonic oscillator is a classical system whose restoring force is proportional to displacement. Its positive-energy trajectories are closed ellipses, and a canonical change to action and angle turns their motion into a uniform rotation. This record fixes the one-degree-of-freedom, undamped, undriven model, summarizes its exact observables, and identifies the domain on which its action–angle description is valid. The oscillator lesson derives both solution methods and matches arbitrary initial data.

Required background. Position, momentum, derivatives, and a finite-dimensional Hamiltonian. The Hamiltonian-bracket bridge develops the canonical equations. Helpful background. The Liouville–Arnold reference explains regular levels and compact invariant tori.

At a glance.

FeatureThis record
DefinitionH=p2/(2m)+mω02q2/2H=p^2/(2m)+m\omega_0^2q^2/2 with {q,p}=1\{q,p\}=1, so q¨+ω02q=0\ddot q+\omega_0^2q=0: one undamped, undriven degree of freedom
Space and datathe phase plane R2\mathbb R^2 with coordinates (q,p)(q,p) and ω=dq∧dp\omega=dq\wedge dp; arbitrary real initial data (q0,p0)(q_0,p_0); the configuration space is the whole line, with no periodic identification
Parameters and regimesmass m>0m\gt0 and angular frequency ω0>0\omega_0\gt0; E>0E\gt0 gives closed ellipses and E=0E=0 the equilibrium; ω0→0+\omega_0\to0^+ gives the free particle, where the action diverges and the levels become noncompact; near a stable minimum of a smooth potential the model is an approximation whose error must be assessed
Integrable structurethe single integral HH has dH≠0dH\ne0 off the origin, which gives Liouville integrability on the punctured plane; explicit action–angle variables there give H=ω0IH=\omega_0I (this record)
Conserved quantitiesthe energy EE, equivalently the action I=E/ω0I=E/\omega_0
Exact resultsq(t)=q0cos⁡ω0t+[p0/(mω0)]sin⁡ω0tq(t)=q_0\cos\omega_0t+[p_0/(m\omega_0)]\sin\omega_0t; the period 2π/ω02\pi/\omega_0 is independent of amplitude; kinetic and potential energy each average E/2E/2 over a period; at a uniformly random time the position has density 1/(πA2−q2)1/(\pi\sqrt{A^2-q^2}), so the central half of the range holds probability 1/31/3
Relativesthe planar pendulum, whose small oscillations it describes with ω0=g/ℓ\omega_0=\sqrt{g/\ell}; the quartic well of the action–angle lesson, where the frequency depends on energy; two uncoupled oscillators, whose joint orbit closes exactly when ω1/ω2\omega_1/\omega_2 is rational; semiclassical quantization, which recovers the zero-point energy
Conventions{f,g}=fqgp−fpgq\{f,g\}=f_qg_p-f_pg_q and ιXHω=dH\iota_{X_H}\omega=dH; with qq horizontal and pp vertical the motion is clockwise, and the action I=(2π)−1∮p dqI=(2\pi)^{-1}\oint p\,dq along the motion is positive; q=2I/(mω0)sin⁡θq=\sqrt{2I/(m\omega_0)}\sin\theta and p=2mω0Icos⁡θp=\sqrt{2m\omega_0I}\cos\theta; Torrielli’s counterclockwise cycle gives action −E-E for the unit oscillator
Originthe linear restoring force in Hooke (1678); isochronous oscillation, for the cycloidal pendulum, in Huygens (1673)

Let the phase space be R2\mathbb R^2 with coordinates (q,p)(q,p), where qq is displacement and pp momentum. Fix a mass m>0m\gt0 and angular frequency ω0>0\omega_0\gt0. The Hamiltonian and bracket are

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.

Time is real, and df/dt={f,H}df/dt=\{f,H\} for observables without explicit time dependence. The equivalent symplectic convention is ω=dq∧dp\omega=dq\wedge dp, ιXHω=dH\iota_{X_H}\omega=dH. It gives

q˙=pm,p˙=−mω02q,q¨+ω02q=0.\dot q=\frac pm, \qquad \dot p=-m\omega_0^2q, \qquad \ddot q+\omega_0^2q=0.

These signs agree with Cannas da Silva, January 2006 revision, §§ 18.1–18.2, pp. 105–107, PDF. The force constant is k=mω02>0k=m\omega_0^2\gt0. With length, mass and time units, [p]=[p]= mass × length/time, [H]=[H]= energy, and [ω0]=[\omega_0]= inverse time. Radians are dimensionless.

Specify arbitrary real initial data q(0)=q0q(0)=q_0, p(0)=p0p(0)=p_0. There is no spatial boundary or periodic identification of qq: the configuration space is the real line. Periodicity below is a property of the trajectory. The linear equations have a unique solution for all real times.

The initial-value solution is

q(t)=q0cos⁡(ω0t)+p0mω0sin⁡(ω0t),p(t)=p0cos⁡(ω0t)−mω0q0sin⁡(ω0t).\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}

Differentiation checks both Hamilton equations, and evaluation at t=0t=0 recovers both initial data. The conserved energy, displacement amplitude and maximal momentum magnitude are

E=p022m+mω02q022,A=2Emω02,pmax⁡=2mE=mω0A.\begin{aligned} E&=\frac{p_0^2}{2m}+\frac{m\omega_0^2q_0^2}{2},\\ A&=\sqrt{\frac{2E}{m\omega_0^2}}, \qquad p_{\max}=\sqrt{2mE}=m\omega_0A. \end{aligned}

For E>0E\gt0, the orbit has minimal period T=2π/ω0T=2\pi/\omega_0. The period is independent of amplitude, a property called isochrony. At E=0E=0, the solution is the equilibrium q=p=0q=p=0; it has no distinguished minimal positive oscillation period.

Over one nontrivial period, the mean position and momentum vanish. The time averages of kinetic and potential energy are both E/2E/2, because the averages of sin⁡2\sin^2 and cos⁡2\cos^2 are both 1/21/2. These are time averages along a deterministic orbit; no statistical ensemble is assumed.

Where would a randomly timed exposure find the oscillator?

Section titled “Where would a randomly timed exposure find the oscillator?”

Choose the observation time uniformly over one period at fixed positive energy. The oscillator traverses each interior position twice. Its speed there is ω0A2−q2\omega_0\sqrt{A^2-q^2}, so the time spent in a short interval dqdq on the two visits is 2 dq/∣q˙∣2\,dq/|\dot q|. Dividing by the period gives the position density

f(q)=1πA2−q2,−A<q<A.f(q)=\frac{1}{\pi\sqrt{A^2-q^2}},\qquad -A\lt q\lt A .

The oscillator spends more time near the ends of its travel, where it moves slowly. For example, integrating over the central half of the spatial range, from −A/2-A/2 to A/2A/2, gives probability 1/31/3. The apparent divergences are integrable and there is zero probability at either single turning point. The same result follows by counting the angles for which ∣sin⁡θ∣≤1/2|\sin\theta|\le1/2 on one uniform cycle. A camera synchronized to fire once every period would instead record the same position every time.

For E>0E\gt0, define the action using a closed orbit CEC_E oriented in the direction of physical time:

I=12π∮CEp dq=Eω0>0.I=\frac1{2\pi}\oint_{C_E}p\,dq =\frac E{\omega_0}\gt0.

The canonical parameterization used here is

q=2Imω0sin⁡θ,p=2mω0Icos⁡θ,θ∈R/2πZ.q=\sqrt{\frac{2I}{m\omega_0}}\sin\theta, \qquad p=\sqrt{2m\omega_0I}\cos\theta, \qquad \theta\in\mathbb R/2\pi\mathbb Z.

On a smooth local angle branch, {θ,I}=1\{\theta,I\}=1 and dq∧dp=dθ∧dIdq\wedge dp=d\theta\wedge dI. Thus

H=ω0I,I(t)=I0,θ(t)=θ0+ω0t(mod2π).H=\omega_0I, \qquad I(t)=I_0, \qquad \theta(t)=\theta_0+\omega_0t\pmod{2\pi}.

The action has energy × time units; the angle is dimensionless. For nonzero initial data,

I0=Eω0,θ0=atan2⁡(mω0q0,p0)(mod2π),I_0=\frac E{\omega_0}, \qquad \theta_0=\operatorname{atan2}(m\omega_0q_0,p_0)\pmod{2\pi},

where atan2⁡(Y,X)\operatorname{atan2}(Y,X) retains the signs of both sine and cosine. The lesson checks the bracket and reconstructs both q(t)q(t) and p(t)p(t), including initial data for which a one-argument inverse tangent gives the wrong quadrant.

With qq horizontal and pp vertical, physical motion is clockwise: at q=0,p>0q=0,p\gt0, displacement increases. Along the stated parameterization, p dq=2Icos⁡2θ dθp\,dq=2I\cos^2\theta\,d\theta, proving the positive integral. Torrielli 2016, § 2.2, pp. 6–7, equations (2.23)–(2.32), v1 PDF uses a counterclockwise cycle for the unit oscillator and obtains action −E-E. Reversing the cycle and changing the angle together gives the positive-action convention above.

For example, take (q0,p0)=(A,0)(q_0,p_0)=(A,0) or (0,mω0A)(0,m\omega_0 A) at the same A>0A\gt0. The initial phases are π/2\pi/2 and 00, respectively. The ellipse encloses area πA(mω0A)\pi A(m\omega_0 A) in the phase plane, so both points give I=mω0A2/2I=m\omega_0 A^2/2. The action identifies the orbit. The phase chooses which of these points starts the clock.

The sole integral HH suffices for one-degree-of-freedom Liouville integrability on the regular set: {H,H}=0\{H,H\}=0 and

dH=mω02q dq+pm dp≠0when (q,p)≠(0,0).dH=m\omega_0^2q\,dq+\frac pm\,dp\ne0 \qquad\text{when }(q,p)\ne(0,0).

Every positive-energy level is a compact connected ellipse, topologically a circle. It is therefore a one-dimensional Liouville torus; compare Cannas da Silva, § 18.4, pp. 110–111, Theorem 18.12, PDF. Here the explicit transformation proves the action–angle representation directly.

The transformation is globally defined on the punctured phase plane if the angle is circle-valued. A single continuous real-valued angle cannot cover an entire closed cycle. At the origin, dH=0dH=0, I=0I=0, and all angle values represent the same point; there is no invertible angle coordinate there. The original solution remains smooth.

For fixed m,q0,p0,tm,q_0,p_0,t, the limit ω0→0+\omega_0\to0^+ of the direct solution is

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

This is the free-particle problem. At nonzero p0p_0, I0I_0 diverges and T→∞T\to\infty; the closed ellipse becomes a noncompact free-motion level in the limiting problem. The oscillator action–angle coordinates cannot simply be evaluated at ω0=0\omega_0=0.

The quadratic Hamiltonian is exact for the model defined here. It can also arise as an approximation near a stable minimum of a smooth potential with positive second derivative, but the size of neglected nonlinear terms and the resulting error must be assessed for that potential. The quartic action–angle lesson gives an integrable oscillator whose frequency depends on energy and whose minimum has zero second derivative. Its transfer exercise shows when adding a positive quadratic term restores a low-energy harmonic approximation. Damping, driving, a negative force constant, or time-dependent parameters change the equations and their conservation laws.

For the planar pendulum, expanding its potential at the bottom gives this oscillator with ω0=g/ℓ\omega_0=\sqrt{g/\ell}. Its full return period increases with launch speed, so a period measurement at two amplitudes tests the range of the quadratic approximation.

For several uncoupled positive-frequency oscillators, the same construction applies separately to each pair, giving H=∑jωjIjH=\sum_j\omega_j I_j. On a common level with all Ij>0I_j\gt0, the motion lies on a product of circles. A two-oscillator trajectory closes precisely when ω1/ω2\omega_1/\omega_2 is rational. An irrational ratio gives quasiperiodic motion dense in that two-torus. Torrielli, § 2.2, pp. 5–6, Eq. (2.17), v1 PDF · Liouville–Arnold reference

To pass from this classical motion to a quantum level, follow an individual cycle around its two turning points. Its phase shift gives the oscillator’s zero-point energy. The same calculation in a quartic well produces an approximation whose error can be measured. Semiclassical quantization on a regular torus

  • 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 refer to its printed pages.
  • Torrielli, Alessandro. Lectures on Classical Integrability. arXiv:1606.02946v1 [hep-th], 2016. Version record. Open PDF.