Skip to main content
Chemistry LibreTexts

8.9: Harmonic Oscillator

  • Page ID
    518088
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Introduction

    The harmonic oscillator is a model which has several important applications in both classical and quantum mechanics. It serves as a prototype in the mathematical treatment of such diverse phenomena as elasticity, acoustics, AC circuits, molecular and crystal vibrations, electromagnetic fields and optical properties of matter.

    Classical Oscillator

    A simple realization of the harmonic oscillator in classical mechanics is a particle which is acted upon by a restoring force proportional to its displacement from its equilibrium position. Considering motion in one dimension, this means

    \[ F = −kx \label{1}\]

    Such a force might originate from a spring which obeys Hooke’s law, as shown in Figure \(\PageIndex{1}\). According to Hooke’s law, which applies to real springs for sufficiently small displacements, the restoring force is proportional to the displacement—either stretching or compression—from the equilibrium position.

    Screen shot 2014-02-19 at 8.19.49 PM.png
    Figure \(\PageIndex{1}\): Spring obeying Hooke’s law.

    The force constant \(k\) is a measure of the stiffness of the spring. The variable \(x\) is chosen equal to zero at the equilibrium position, positive for stretching, negative for compression. The negative sign in Equation \(\ref{1}\) reflects the fact that \(F\) is a restoring force, always in the opposite sense to the displacement \(x\).

    Applying Newton’s second law to the force from Equation \(\ref{1}\), we find \(x\)

    \[ F = m \dfrac{d^2 x}{dx^2} = -kx \label{2} \]

    where \(m\) is the mass of the body attached to the spring, which is itself assumed massless. This leads to a differential equation of familiar form, although with different variables:

    \[ \ddot{x}(t)+ \omega^2x(t)= 0 \label{3}\]

    with

    \[\omega^2 \equiv \dfrac{k}{m}\]

    The dot notation (introduced by Newton himself) is used in place of primes when the independent variable is time. The general solution to Equation \(\ref{3}\) is

    \[ x(t) = A\sin ωt + B\cos ωt \label{4}\]

    which represents periodic motion with a sinusoidal time dependence. This is known as simple harmonic motion and the corresponding system is known as a harmonic oscillator. The oscillation occurs with a constant angular frequency

    \[ \omega = \sqrt{\dfrac{k}{m}}\; \text{radians per second} \label{5} \]

    This is called the natural frequency of the oscillator. The corresponding circular (or angular) frequency in Hertz (cycles per second) is

    \[ \nu = \dfrac{\omega}{2\pi } = \dfrac{1}{2\pi} \sqrt{\dfrac{k}{m}}\; \text{Hz} \label{6}\]

    The general relation between force and potential energy in a conservative system in one dimension is

    \[ F =\dfrac{−dV}{dx} \label{7}\]

    Thus the potential energy of a harmonic oscillator is given by

    \[ V(x) = \dfrac{1}{2}kx^2 \label{8}\]

    which has the shape of a parabola, as drawn in Figure \(\PageIndex{2}\). A simple computation shows that the oscillator moves between positive and negative turning points \(\pm x_{max}\) where the total energy \(E\) equals the potential energy \(\dfrac{1}{2} k x_{max}^{2}\) while the kinetic energy is momentarily zero. In contrast, when the oscillator moves past \(x = 0\), the kinetic energy reaches its maximum value while the potential energy equals zero.

    Screen shot 2014-02-19 at 8.26.05 PM.png
    Figure \(\PageIndex{2}\): Potential energy function and first few energy levels for harmonic oscillator.

    Harmonic Oscillator in Quantum Mechanics

    Given the potential energy in Equation \(\ref{8}\), we can write down the Schrödinger equation for the one-dimensional harmonic oscillator:​

    \[ -\frac{\hbar^{2}}{2m} \frac{d^2\psi(x)}{dx^2} + \frac{1}{2}kx^2 \psi(x) = E \psi(x) \label{9}\]

    This equation is challenging to solve for \(\psi\) because the potential varies with position and is less than infinity in all of space. This means the particle can be found at any x between \(\pm\infty\). Solutions for it have been found by others by what are essentially sophisticated guess and check methods. The results are:

    \[\psi_{n}(x)=\left(\frac{\sqrt{\alpha}}{2^{n}n!\sqrt{\pi}}\right)^{1/2} H_{n}(\sqrt{\alpha}x) e^{-\alpha x^{2}/2} \label{26}\]

    where 

    \[\alpha = \sqrt{\frac{mk}{\hbar^2}}\]

    and \(H_{n}(\xi)\), with \(\xi = \sqrt{\alpha}x\) represents the Hermite polynomial of degree \(n\). The first few Hermite polynomials are

    \[H_{0}(\xi)=1\]

    \[H_{1}(\xi)=2\xi\]

    \[H_{2}(\xi)=4\xi^{2}-2\]

    \[H_{3}(\xi)=8\xi^{3}-12\xi \label{27}\]

    The four lowest harmonic-oscillator eigenfunctions are plotted in Figure \(\PageIndex{3}\). Note the topological resemblance to the corresponding particle-in-a-box eigenfunctions.

    Picture3.png

    Figure \(\PageIndex{3}\): Harmonic oscillator eigenfunctions for n=0, 1, 2, 3 and probability densities. Two things to note: these wavefunctions do not reach zero until x = \(\pm\infty\); a particle represented by any of these wavefunctions have a probability of being in the classically forbidden regions where the energy is less than the potential energy (the particle exhibits tunneling).

    The eigenvalues are given by the simple formula

    \[E_{n}=\left(n+\dfrac{1}{2}\right)\hbar\omega \label{28}\]

    where \(\omega\) is as defined in equation \(\ref{5}\). These energy levels are drawn in Figure \(\PageIndex{2}\), on the same scale as the potential energy. The ground-state energy \(E_{0}=\dfrac{1}{2}\hbar\omega\) is greater than the classical value of zero, again a consequence of the uncertainty principle. This means that the oscillator is always oscillating.

    Note that the difference between successive energy eigenvalues has a constant value

    \[\Delta E=E_{n+1}-E_{n}=\hbar\omega=h\nu \label{29}\]

    This is reminiscent of Planck’s formula for the energy of a photon. It comes as no surprise then that the quantum theory of radiation has the structure of an assembly of oscillators, with each oscillator representing a mode of electromagnetic waves of a specified frequency.

     

    Contributors and Attributions


    This page titled 8.9: Harmonic Oscillator was last modified on Mon, 30 Jun 2025 15:26:18 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Jonathan Gutow.