Skip to content

Harmonic-Oscillator Path Integral

The harmonic oscillator is the second canonical exact path integral after the free particle. Its action is quadratic, so the path integral is Gaussian after the path is decomposed into a classical solution plus fluctuations. The result is the exact coordinate-space kernel

Kho(xf,T;xi,0)=[mω2πiℏsin⁡ωT]1/2×exp⁡{imω2ℏsin⁡ωT[(xf2+xi2)cos⁡ωT−2xfxi]},\begin{aligned} K_{\rm ho}(x_f,T;x_i,0) &= \left[ \frac{m\omega}{2\pi i\hbar\sin\omega T} \right]^{1/2} \\ &\quad\times \exp\left\{ \frac{im\omega}{2\hbar\sin\omega T} \left[ (x_f^2+x_i^2)\cos\omega T -2x_fx_i \right] \right\}, \end{aligned}

for sin⁡ωT≠0\sin\omega T\neq0, with the usual phase prescription across caustics. The Harmonic-Oscillator Propagator page treats the same kernel from the spectral and Van Vleck viewpoints. This page makes the path-integral Gaussian structure explicit.

For the one-dimensional harmonic oscillator,

L=m2x˙2−mω22x2,L=\frac{m}{2}\dot x^2-\frac{m\omega^2}{2}x^2,

so

S[x]=∫0Tdt [m2x˙2−mω22x2].S[x] = \int_0^T dt\, \left[ \frac{m}{2}\dot x^2 - \frac{m\omega^2}{2}x^2 \right].

The fixed-endpoint path integral is

Kho(xf,T;xi,0)=∫x(0)=xix(T)=xfDx(t) eiS[x]/ℏ.K_{\rm ho}(x_f,T;x_i,0) = \int_{x(0)=x_i}^{x(T)=x_f} \mathcal D x(t)\, e^{iS[x]/\hbar}.

The important feature is not merely solvability of the Schrödinger equation. It is the quadratic dependence of S[x]S[x] on the path. After discretization, the path integral is an ordinary multidimensional Gaussian integral over intermediate positions. The continuum notation packages the same Gaussian determinant into a compact form.

Write each path as

x(t)=xcl(t)+η(t),x(t)=x_{\rm cl}(t)+\eta(t),

where xclx_{\rm cl} satisfies the endpoint conditions

xcl(0)=xi,xcl(T)=xf,x_{\rm cl}(0)=x_i, \qquad x_{\rm cl}(T)=x_f,

and the fluctuation obeys Dirichlet boundary conditions

η(0)=η(T)=0.\eta(0)=\eta(T)=0.

For sin⁡ωT≠0\sin\omega T\neq0, the classical solution is

xcl(t)=xisin⁡ω(T−t)+xfsin⁡ωtsin⁡ωT.x_{\rm cl}(t) = \frac{ x_i\sin\omega(T-t)+x_f\sin\omega t } {\sin\omega T}.

It solves

x¨cl+ω2xcl=0.\ddot x_{\rm cl}+\omega^2 x_{\rm cl}=0.

At the focal times T=nπ/ωT=n\pi/\omega, the endpoint problem is singular: many initial momenta focus to the same endpoint relation. The closed-form kernel must then be replaced by its delta-function caustic limit.

Substitute x=xcl+ηx=x_{\rm cl}+\eta into the action:

S[xcl+η]=S[xcl]+S[η]+Scross.S[x_{\rm cl}+\eta] = S[x_{\rm cl}] + S[\eta] + S_{\rm cross}.

The cross term is

Scross=m∫0Tdt (x˙clη˙−ω2xclη).S_{\rm cross} = m\int_0^T dt\, \left( \dot x_{\rm cl}\dot\eta - \omega^2x_{\rm cl}\eta \right).

Integrating by parts gives

Scross=mx˙clη∣0T−m∫0Tdt (x¨cl+ω2xcl)η.S_{\rm cross} = m\dot x_{\rm cl}\eta\bigg\rvert_0^T - m\int_0^T dt\, \left( \ddot x_{\rm cl} + \omega^2x_{\rm cl} \right)\eta.

The boundary term vanishes because η(0)=η(T)=0\eta(0)=\eta(T)=0, and the integral vanishes because xclx_{\rm cl} obeys the classical equation of motion. Hence

S[xcl+η]=Scl+S[η].S[x_{\rm cl}+\eta] = S_{\rm cl}+S[\eta].

The path integral factorizes:

Kho(xf,T;xi,0)=eiScl/ℏFω(T),K_{\rm ho}(x_f,T;x_i,0) = e^{iS_{\rm cl}/\hbar} F_\omega(T),

where

Fω(T)=∫η(0)=0η(T)=0Dη eiS[η]/ℏ.F_\omega(T) = \int_{\eta(0)=0}^{\eta(T)=0} \mathcal D\eta\, e^{iS[\eta]/\hbar}.

All endpoint dependence is in SclS_{\rm cl}; the fluctuation factor depends only on TT and ω\omega.

For the classical solution above, the action is

Scl(xf,T;xi,0)=mω2sin⁡ωT[(xf2+xi2)cos⁡ωT−2xfxi].S_{\rm cl}(x_f,T;x_i,0) = \frac{m\omega}{2\sin\omega T} \left[ (x_f^2+x_i^2)\cos\omega T - 2x_fx_i \right].

One efficient derivation uses the identity

ddt(xclx˙cl)=x˙cl2+xclx¨cl.\frac{d}{dt}(x_{\rm cl}\dot x_{\rm cl}) = \dot x_{\rm cl}^2 + x_{\rm cl}\ddot x_{\rm cl}.

Since x¨cl=−ω2xcl\ddot x_{\rm cl}=-\omega^2x_{\rm cl},

x˙cl2−ω2xcl2=ddt(xclx˙cl).\dot x_{\rm cl}^2-\omega^2x_{\rm cl}^2 = \frac{d}{dt}(x_{\rm cl}\dot x_{\rm cl}).

Therefore

Scl=m2[xclx˙cl]0T.S_{\rm cl} = \frac{m}{2} \left[ x_{\rm cl}\dot x_{\rm cl} \right]_0^T.

Substituting the endpoint velocities from the classical path gives the expression for SclS_{\rm cl}.

The fluctuation action is

S[η]=m2∫0Tdt (η˙2−ω2η2).S[\eta] = \frac{m}{2} \int_0^T dt\, \left( \dot\eta^2-\omega^2\eta^2 \right).

With Dirichlet boundary conditions, integration by parts gives

S[η]=m2∫0Tdt η(t)[−d2dt2−ω2]η(t).S[\eta] = \frac{m}{2} \int_0^T dt\, \eta(t) \left[ -\frac{d^2}{dt^2}-\omega^2 \right] \eta(t).

Expand the fluctuation in orthonormal Dirichlet modes:

η(t)=∑n=1∞qn2Tsin⁡nπtT.\eta(t) = \sum_{n=1}^{\infty}q_n \sqrt{\frac{2}{T}} \sin\frac{n\pi t}{T}.

Then

S[η]=m2∑n=1∞[(nπT)2−ω2]qn2.S[\eta] = \frac{m}{2} \sum_{n=1}^{\infty} \left[ \left(\frac{n\pi}{T}\right)^2-\omega^2 \right]q_n^2.

The fluctuation integral is a product of Gaussian integrals. Its absolute normalization is fixed by matching to the free-particle path integral when ω→0\omega\to0. Formally,

Fω(T)F0(T)=[det⁡(−d2/dt2)det⁡(−d2/dt2−ω2)]D1/2,\frac{F_\omega(T)}{F_0(T)} = \left[ \frac{ \det(-d^2/dt^2) }{ \det(-d^2/dt^2-\omega^2) } \right]^{1/2}_{\rm D},

where the subscript D{\rm D} reminds us that Dirichlet boundary conditions are used.

Using the eigenvalues above,

Fω(T)F0(T)=[∏n=1∞(nπ/T)2(nπ/T)2−ω2]1/2.\frac{F_\omega(T)}{F_0(T)} = \left[ \prod_{n=1}^{\infty} \frac{(n\pi/T)^2} {(n\pi/T)^2-\omega^2} \right]^{1/2}.

Euler’s product

sin⁡zz=∏n=1∞(1−z2n2π2)\frac{\sin z}{z} = \prod_{n=1}^{\infty} \left( 1-\frac{z^2}{n^2\pi^2} \right)

gives

Fω(T)F0(T)=[ωTsin⁡ωT]1/2.\frac{F_\omega(T)}{F_0(T)} = \left[ \frac{\omega T}{\sin\omega T} \right]^{1/2}.

Since the free fluctuation factor is

F0(T)=(m2πiℏT)1/2,F_0(T) = \left( \frac{m}{2\pi i\hbar T} \right)^{1/2},

the oscillator fluctuation factor is

Fω(T)=(mω2πiℏsin⁡ωT)1/2.F_\omega(T) = \left( \frac{m\omega}{2\pi i\hbar\sin\omega T} \right)^{1/2}.

This determinant formula is formal but extremely useful. A careful definition requires a discretization, regulator, or spectral prescription; the ratio is the stable object.

Combining the classical action and fluctuation factor gives

Kho(xf,T;xi,0)=[mω2πiℏsin⁡ωT]1/2×exp⁡{iℏmω2sin⁡ωT[(xf2+xi2)cos⁡ωT−2xfxi]}.\begin{aligned} K_{\rm ho}(x_f,T;x_i,0) &= \left[ \frac{m\omega}{2\pi i\hbar\sin\omega T} \right]^{1/2} \\ &\quad\times \exp\left\{ \frac{i}{\hbar} \frac{m\omega}{2\sin\omega T} \left[ (x_f^2+x_i^2)\cos\omega T - 2x_fx_i \right] \right\}. \end{aligned}

This is exact because the action is quadratic. No stationary-phase approximation has been made. In a nonquadratic potential, the same split x=xcl+ηx=x_{\rm cl}+\eta produces interactions among fluctuations, and the Gaussian determinant is only the leading semiclassical piece.

The determinant factor is singular when

sin⁡ωT=0.\sin\omega T=0.

At these times, the operator −d2/dt2−ω2-d^2/dt^2-\omega^2 has a zero mode under Dirichlet boundary conditions. The classical endpoint problem is also singular. For

T=nπω,T=\frac{n\pi}{\omega},

the kernel is the distributional limit

Kho(xf,nπ/ω;xi,0)=e−inπ/2δ(xf−(−1)nxi).K_{\rm ho}(x_f,n\pi/\omega;x_i,0) = e^{-in\pi/2} \delta\left(x_f-(-1)^n x_i\right).

The phase jumps are the one-dimensional Maslov phases. They are the exact counterpart of caustic phases in semiclassical propagation.

The fluctuation calculation already has the structure of a normal-mode decomposition. Each mode coefficient qnq_n contributes a Gaussian integral with eigenvalue

λn=(nπT)2−ω2.\lambda_n = \left(\frac{n\pi}{T}\right)^2-\omega^2.

The full determinant is the product of all mode contributions. This is the same structural fact that appears in free fields: after Fourier expansion, a free field becomes a collection of independent harmonic oscillators, and the Gaussian path integral becomes a product of mode determinants.

The oscillator also explains why zero modes and negative modes matter. When an eigenvalue crosses zero, the determinant vanishes and the naive square root is no longer a regular prefactor. In semiclassical and field-theoretic path integrals, zero modes signal collective coordinates or gauge redundancies; negative modes often signal instability or tunneling saddle structure.

Adding a source,

SJ[x]=S[x]+∫dt J(t)x(t),S_J[x]=S[x]+\int dt\,J(t)x(t),

keeps the oscillator path integral Gaussian. The result is a source functional whose derivatives generate the oscillator time-ordered correlators. In ground-state form,

Z0[J]=exp⁡[−12ℏ2∫dt dt′ J(t)GF(t,t′)J(t′)],\mathcal Z_0[J] = \exp\left[ -\frac{1}{2\hbar^2} \int dt\,dt'\, J(t)G_F(t,t')J(t') \right],

where

GF(t,t′)=ℏ2mωe−iω∣t−t′∣.G_F(t,t') = \frac{\hbar}{2m\omega} e^{-i\omega|t-t'|}.

This is the same Gaussian structure seen in the fluctuation determinant: quadratic actions produce exact Gaussian generating functionals. The details of source conventions are handled in Sources and Generating Functionals in QM, and the correlator interpretation is handled in Correlation Functions in Path Integrals.

A free scalar field in a box decomposes into normal modes:

ϕ(x,t)=∑kqk(t)uk(x),\phi(\mathbf x,t) = \sum_{\mathbf k} q_{\mathbf k}(t)u_{\mathbf k}(\mathbf x),

schematically. The free-field action becomes a sum of oscillator actions,

S[ϕ]=∑k∫dt [12q˙k2−12ωk2qk2],S[\phi] = \sum_{\mathbf k} \int dt\, \left[ \frac12\dot q_{\mathbf k}^2 - \frac12\omega_{\mathbf k}^2q_{\mathbf k}^2 \right],

up to normalization and reality constraints. Thus the harmonic-oscillator path integral is the finite-dimensional ancestor of the free-field Gaussian path integral.

In QFT, the determinant becomes a functional determinant over infinitely many spacetime modes, and the source functional encodes field correlation functions. Regularization and renormalization are then essential, not optional technicalities. The oscillator gives the algebraic pattern, while field theory supplies the continuum and locality issues.

  • Forgetting that the fluctuation η(t)\eta(t) has zero endpoints.
  • Keeping a cross term after the classical equation of motion and boundary conditions have already made it vanish.
  • Treating the determinant as an ordinary finite product without specifying a regulator or ratio.
  • Missing the ωT/sin⁡ωT\omega T/\sin\omega T determinant factor.
  • Using the closed form at sin⁡ωT=0\sin\omega T=0 instead of the caustic distribution.
  • Interpreting the exactness of the oscillator as evidence that stationary phase is exact for generic potentials.
  • Confusing the oscillator’s time-ordered source correlator with a retarded response function.
  • R. P. Feynman and A. R. Hibbs, Quantum Mechanics and Path Integrals, McGraw-Hill, 1965.
  • L. S. Schulman, Techniques and Applications of Path Integration, Wiley, 1981.
  • H. Kleinert, Path Integrals in Quantum Mechanics, Statistics, Polymer Physics, and Financial Markets, 5th ed., World Scientific, 2009.
  • J. Zinn-Justin, Path Integrals in Quantum Mechanics, Oxford University Press, 2005.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  • M. D. Schwartz, Quantum Field Theory and the Standard Model, Cambridge University Press, 2014.
  1. Verify the classical path formula.
Solution

The proposed path is

xcl(t)=xisin⁡ω(T−t)+xfsin⁡ωtsin⁡ωT.x_{\rm cl}(t) = \frac{ x_i\sin\omega(T-t)+x_f\sin\omega t } {\sin\omega T}.

At t=0t=0,

xcl(0)=xisin⁡ωTsin⁡ωT=xi.x_{\rm cl}(0) = \frac{x_i\sin\omega T}{\sin\omega T} = x_i.

At t=Tt=T,

xcl(T)=xfsin⁡ωTsin⁡ωT=xf.x_{\rm cl}(T) = \frac{x_f\sin\omega T}{\sin\omega T} = x_f.

Each sine term solves x¨+ω2x=0\ddot x+\omega^2x=0, so their linear combination solves the oscillator equation.

  1. Show that the cross term vanishes in the action split.
Solution

The cross term is

Scross=m∫0Tdt (x˙clη˙−ω2xclη).S_{\rm cross} = m\int_0^Tdt\, \left( \dot x_{\rm cl}\dot\eta-\omega^2x_{\rm cl}\eta \right).

Integrating the first term by parts gives

Scross=mx˙clη∣0T−m∫0Tdt (x¨cl+ω2xcl)η.S_{\rm cross} = m\dot x_{\rm cl}\eta\bigg\rvert_0^T - m\int_0^Tdt\, \left( \ddot x_{\rm cl}+\omega^2x_{\rm cl} \right)\eta.

The boundary term is zero because η(0)=η(T)=0\eta(0)=\eta(T)=0. The remaining integral is zero because xclx_{\rm cl} satisfies x¨cl+ω2xcl=0\ddot x_{\rm cl}+\omega^2x_{\rm cl}=0.

  1. Use Euler’s product to derive the determinant ratio.
Solution

The ratio is

Fω(T)F0(T)=[∏n=1∞(nπ/T)2(nπ/T)2−ω2]1/2.\frac{F_\omega(T)}{F_0(T)} = \left[ \prod_{n=1}^{\infty} \frac{(n\pi/T)^2} {(n\pi/T)^2-\omega^2} \right]^{1/2}.

Factor each denominator:

(nπ/T)2−ω2(nπ/T)2=1−ω2T2n2π2.\frac{(n\pi/T)^2-\omega^2}{(n\pi/T)^2} = 1-\frac{\omega^2T^2}{n^2\pi^2}.

Euler’s product gives

∏n=1∞(1−ω2T2n2π2)=sin⁡ωTωT.\prod_{n=1}^{\infty} \left( 1-\frac{\omega^2T^2}{n^2\pi^2} \right) = \frac{\sin\omega T}{\omega T}.

Taking the reciprocal square root yields

Fω(T)F0(T)=[ωTsin⁡ωT]1/2.\frac{F_\omega(T)}{F_0(T)} = \left[ \frac{\omega T}{\sin\omega T} \right]^{1/2}.
  1. Check the free-particle limit of the oscillator kernel.
Solution

As ω→0\omega\to0,

sin⁡ωT∼ωT,cos⁡ωT∼1.\sin\omega T\sim\omega T, \qquad \cos\omega T\sim1.

The prefactor becomes

[mω2πiℏsin⁡ωT]1/2⟶[m2πiℏT]1/2.\left[ \frac{m\omega}{2\pi i\hbar\sin\omega T} \right]^{1/2} \longrightarrow \left[ \frac{m}{2\pi i\hbar T} \right]^{1/2}.

The classical action becomes

mω2sin⁡ωT[(xf2+xi2)cos⁡ωT−2xfxi]⟶m(xf−xi)22T.\frac{m\omega}{2\sin\omega T} \left[ (x_f^2+x_i^2)\cos\omega T-2x_fx_i \right] \longrightarrow \frac{m(x_f-x_i)^2}{2T}.

Thus the kernel reduces to the free-particle kernel.

  1. Why is the harmonic-oscillator path integral exact while a generic potential is not?
Solution

The oscillator action is quadratic in x(t)x(t). After writing x=xcl+ηx=x_{\rm cl}+\eta, the fluctuation action is purely quadratic in η\eta, so the fluctuation integral is Gaussian and can be evaluated by a determinant.

For a generic potential,

V(xcl+η)=V(xcl)+V′(xcl)η+12V′′(xcl)η2+13!V′′′(xcl)η3+⋯ .V(x_{\rm cl}+\eta) = V(x_{\rm cl}) + V'(x_{\rm cl})\eta + \frac12V''(x_{\rm cl})\eta^2 + \frac{1}{3!}V'''(x_{\rm cl})\eta^3 +\cdots.

The terms cubic and higher in η\eta make the fluctuation integral non-Gaussian. The determinant then gives only the Gaussian approximation around a classical path, not the full exact answer.