Skip to content

Hermite Polynomials

Hermite polynomials are the polynomial factors in the one-dimensional quantum harmonic oscillator eigenfunctions. They also form, after multiplication by a Gaussian, a complete orthonormal basis of L2(R)L^2(\mathbb R).

This page uses the physicists’ convention,

H0(x)=1,H1(x)=2x,H_0(x)=1, \qquad H_1(x)=2x,

which is the convention used in standard harmonic-oscillator wavefunctions. Some probability and statistics books use a different normalization, usually written He⁡n(x)\operatorname{He}_n(x). Mixing the two conventions is the most common source of factor-of-two errors.

The physicists’ Hermite polynomial of degree nn is

Hn(x)=(−1)nex2dndxne−x2,n=0,1,2,….H_n(x) = (-1)^n e^{x^2} \frac{d^n}{dx^n} e^{-x^2}, \qquad n=0,1,2,\ldots.

The first few are

H0(x)=1,H1(x)=2x,H2(x)=4x2−2,H3(x)=8x3−12x.\begin{aligned} H_0(x)&=1,\\ H_1(x)&=2x,\\ H_2(x)&=4x^2-2,\\ H_3(x)&=8x^3-12x. \end{aligned}

The leading term is

Hn(x)=2nxn+lower powers.H_n(x) = 2^n x^n+\text{lower powers}.

An equivalent definition is the generating function

e2xt−t2=∑n=0∞Hn(x)tnn!.e^{2xt-t^2} = \sum_{n=0}^{\infty} H_n(x)\frac{t^n}{n!}.

This formula is often the quickest way to derive identities. For example, differentiating with respect to xx gives

dHndx=2nHn−1,n≥1.\frac{dH_n}{dx} = 2nH_{n-1}, \qquad n\ge1.

Differentiating with respect to tt gives the three-term recurrence

Hn+1(x)=2xHn(x)−2nHn−1(x),n≥1.H_{n+1}(x) = 2xH_n(x)-2nH_{n-1}(x), \qquad n\ge1.

These relations are useful when evaluating matrix elements in the oscillator basis, deriving ladder identities, and checking numerical wavefunctions.

Hermite polynomials satisfy Hermite’s differential equation

d2Hndx2−2xdHndx+2nHn=0.\frac{d^2H_n}{dx^2} -2x\frac{dH_n}{dx} +2nH_n =0.

In Sturm–Liouville form this can be written as

−ddx(e−x2dHndx)=2ne−x2Hn(x).- \frac{d}{dx} \left( e^{-x^2} \frac{dH_n}{dx} \right) = 2n e^{-x^2}H_n(x).

The weight e−x2e^{-x^2} is therefore not optional. It is part of the orthogonality structure.

The Hermite polynomials are orthogonal on the real line with Gaussian weight:

∫−∞∞e−x2Hm(x)Hn(x) dx=π 2nn! δmn.\int_{-\infty}^{\infty} e^{-x^2} H_m(x)H_n(x)\,dx = \sqrt\pi\,2^n n!\,\delta_{mn}.

This is polynomial orthogonality, not ordinary unweighted orthogonality. The factor on the right fixes the standard normalization.

The underlying Gaussian integral and half-integer normalization constants are summarized in Gamma and Beta Functions.

For m≠nm\ne n, the integral vanishes. For m=nm=n, the norm is

∫−∞∞e−x2Hn(x)2 dx=π 2nn!.\int_{-\infty}^{\infty} e^{-x^2} H_n(x)^2\,dx = \sqrt\pi\,2^n n!.

Hermite polynomials have definite parity:

Hn(−x)=(−1)nHn(x).H_n(-x)=(-1)^nH_n(x).

Thus HnH_n is even for even nn and odd for odd nn. The polynomial HnH_n has nn simple real zeros. In the oscillator, those zeros become the nodes of the nnth energy eigenfunction.

The normalized Hermite functions are

φn(x)=1π1/42nn!Hn(x)e−x2/2.\varphi_n(x) = \frac{1}{ \pi^{1/4}\sqrt{2^n n!} } H_n(x)e^{-x^2/2}.

They obey

∫−∞∞φm(x)∗φn(x) dx=δmn.\int_{-\infty}^{\infty} \varphi_m(x)^* \varphi_n(x)\,dx = \delta_{mn}.

They form a complete orthonormal basis of L2(R)L^2(\mathbb R). Thus suitable square-integrable functions can be expanded as

f=∑n=0∞cnφn,cn=∫−∞∞φn(x)∗f(x) dx,f = \sum_{n=0}^{\infty} c_n\varphi_n, \qquad c_n = \int_{-\infty}^{\infty} \varphi_n(x)^*f(x)\,dx,

with convergence understood in the Hilbert-space norm when f∈L2(R)f\in L^2(\mathbb R).

The distinction between HnH_n and φn\varphi_n matters:

  • HnH_n is a polynomial and is not square-integrable on its own.
  • φn\varphi_n includes the Gaussian factor and is square-integrable.
  • The oscillator wavefunction is a scaled Hermite function.

For the one-dimensional harmonic oscillator, define the oscillator length

ℓ=ℏmω,\ell = \sqrt{\frac{\hbar}{m\omega}},

and the dimensionless coordinate

ξ=xℓ.\xi=\frac{x}{\ell}.

The normalized energy eigenfunctions are

ψn(x)=1ℓ φn(xℓ).\psi_n(x) = \frac{1}{\sqrt{\ell}}\, \varphi_n\left(\frac{x}{\ell}\right).

Equivalently,

ψn(x)=12nn!(1πℓ2)1/4Hn(xℓ)e−x2/(2ℓ2).\psi_n(x) = \frac{1}{\sqrt{2^n n!}} \left(\frac{1}{\pi\ell^2}\right)^{1/4} H_n\left(\frac{x}{\ell}\right) e^{-x^2/(2\ell^2)}.

The factor ℓ−1/2\ell^{-1/2} is required because

dx=ℓ dξ.dx=\ell\,d\xi.

The oscillator differential-equation derivation explains why the acceptable power series terminates and why the energy becomes

En=ℏω(n+12).E_n=\hbar\omega\left(n+\frac12\right).

That derivation belongs in Differential-Equation Solution. This page owns the Hermite-polynomial identities used by that solution.

Define the dimensionless lowering and raising operators

a=12(x+ddx),a†=12(x−ddx).a = \frac{1}{\sqrt2} \left( x+\frac{d}{dx} \right), \qquad a^\dagger = \frac{1}{\sqrt2} \left( x-\frac{d}{dx} \right).

On Hermite functions,

aφn=n φn−1,a†φn=n+1 φn+1.a\varphi_n = \sqrt n\,\varphi_{n-1}, \qquad a^\dagger\varphi_n = \sqrt{n+1}\,\varphi_{n+1}.

Equivalently,

(x+ddx)φn=2n φn−1,\left( x+\frac{d}{dx} \right)\varphi_n = \sqrt{2n}\,\varphi_{n-1},

and

(x−ddx)φn=2(n+1) φn+1.\left( x-\frac{d}{dx} \right)\varphi_n = \sqrt{2(n+1)}\,\varphi_{n+1}.

These formulas are the function-space version of the harmonic-oscillator ladder algebra.

The probabilists’ Hermite polynomials are commonly defined by

He⁡n(x)=(−1)nex2/2dndxne−x2/2.\operatorname{He}_n(x) = (-1)^n e^{x^2/2} \frac{d^n}{dx^n} e^{-x^2/2}.

They are related to the physicists’ convention by

He⁡n(x)=2−n/2Hn(x2),\operatorname{He}_n(x) = 2^{-n/2} H_n\left(\frac{x}{\sqrt2}\right),

or equivalently

Hn(x)=2n/2He⁡n(2 x).H_n(x) = 2^{n/2} \operatorname{He}_n(\sqrt2\,x).

The harmonic oscillator pages use HnH_n, not He⁡n\operatorname{He}_n.

Hermite functions are useful beyond the elementary oscillator:

  • as a basis for variational and numerical calculations on the real line;
  • as benchmark eigenfunctions for spectral and finite-difference methods;
  • in Gaussian wave-packet and coherent-state calculations;
  • in oscillator-mode decompositions for phonons, photons, and fields;
  • as eigenfunctions of the unitary Fourier transform, up to convention-dependent phases.

With the convention

(Ff)(k)=12π∫−∞∞e−ikxf(x) dx,(\mathcal F f)(k) = \frac{1}{\sqrt{2\pi}} \int_{-\infty}^{\infty} e^{-ikx}f(x)\,dx,

one has

Fφn=(−i)nφn.\mathcal F\varphi_n = (-i)^n\varphi_n.

If a different Fourier convention is used, the statement must be translated accordingly; see Fourier Transform Conventions.

  • Confusing physicists’ HnH_n with probabilists’ He⁡n\operatorname{He}_n.
  • Forgetting the Gaussian weight e−x2e^{-x^2} in polynomial orthogonality.
  • Treating HnH_n itself as a normalizable wavefunction.
  • Dropping the scale factor ℓ−1/2\ell^{-1/2} when passing from φn(ξ)\varphi_n(\xi) to ψn(x)\psi_n(x).
  • Writing the oscillator Gaussian as e−x2/ℓ2e^{-x^2/\ell^2} instead of e−x2/(2ℓ2)e^{-x^2/(2\ell^2)} in the wavefunction.
  • Assuming all Fourier-transform phase statements are convention-free.
  • NIST Digital Library of Mathematical Functions, Chapter 18, Orthogonal Polynomials.
  • F. W. J. Olver, D. W. Lozier, R. F. Boisvert, and C. W. Clark, eds., NIST Handbook of Mathematical Functions, Cambridge University Press, 2010.
  • M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, Dover, 1965.
  • G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, 7th ed., Academic Press, 2013.
  • D. J. Griffiths and D. F. Schroeter, Introduction to Quantum Mechanics, 3rd ed., Cambridge University Press, 2018.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  1. Use Rodrigues’ formula to compute H0H_0, H1H_1, and H2H_2.
Solution

For n=0n=0,

H0(x)=1.H_0(x)=1.

For n=1n=1,

H1(x)=−ex2ddxe−x2=2x.H_1(x) = -e^{x^2}\frac{d}{dx}e^{-x^2} = 2x.

For n=2n=2,

d2dx2e−x2=(4x2−2)e−x2,\frac{d^2}{dx^2}e^{-x^2} = (4x^2-2)e^{-x^2},

so

H2(x)=4x2−2.H_2(x)=4x^2-2.
  1. Use the recurrence relation to compute H3H_3 from H2H_2 and H1H_1.
Solution

With

Hn+1=2xHn−2nHn−1,H_{n+1}=2xH_n-2nH_{n-1},

set n=2n=2:

H3=2xH2−4H1=2x(4x2−2)−4(2x)=8x3−12x.H_3 = 2xH_2-4H_1 = 2x(4x^2-2)-4(2x) = 8x^3-12x.
  1. Derive the parity relation Hn(−x)=(−1)nHn(x)H_n(-x)=(-1)^nH_n(x) from the generating function.
Solution

The generating function gives

e−2xt−t2=∑n=0∞Hn(−x)tnn!.e^{-2xt-t^2} = \sum_{n=0}^{\infty} H_n(-x)\frac{t^n}{n!}.

But

e−2xt−t2=e2x(−t)−(−t)2=∑n=0∞Hn(x)(−t)nn!.e^{-2xt-t^2} = e^{2x(-t)-(-t)^2} = \sum_{n=0}^{\infty} H_n(x)\frac{(-t)^n}{n!}.

Matching powers of tt gives

Hn(−x)=(−1)nHn(x).H_n(-x)=(-1)^nH_n(x).
  1. Show that the normalized Hermite functions are orthonormal if the Hermite-polynomial orthogonality formula is assumed.
Solution

Using

φn(x)=1π1/42nn!Hn(x)e−x2/2,\varphi_n(x) = \frac{1}{ \pi^{1/4}\sqrt{2^n n!} } H_n(x)e^{-x^2/2},

one finds

∫−∞∞φm(x)∗φn(x) dx=∫−∞∞e−x2Hm(x)Hn(x) dxπ1/22mm!2nn!.\int_{-\infty}^{\infty} \varphi_m(x)^*\varphi_n(x)\,dx = \frac{ \int_{-\infty}^{\infty} e^{-x^2}H_m(x)H_n(x)\,dx }{ \pi^{1/2} \sqrt{2^m m!2^n n!} }.

The numerator is π 2nn! δmn\sqrt\pi\,2^n n!\,\delta_{mn}. If m≠nm\ne n, the result is zero. If m=nm=n, the denominator is π 2nn!\sqrt\pi\,2^n n!, so the result is one.

  1. Starting from ψn(x)=ℓ−1/2φn(x/ℓ)\psi_n(x)=\ell^{-1/2}\varphi_n(x/\ell), derive the usual normalized oscillator wavefunction.
Solution

Substitute ξ=x/ℓ\xi=x/\ell into

φn(ξ)=1π1/42nn!Hn(ξ)e−ξ2/2.\varphi_n(\xi) = \frac{1}{ \pi^{1/4}\sqrt{2^n n!} } H_n(\xi)e^{-\xi^2/2}.

Then

ψn(x)=1ℓ 1π1/42nn!Hn(xℓ)e−x2/(2ℓ2).\psi_n(x) = \frac{1}{\sqrt{\ell}}\, \frac{1}{ \pi^{1/4}\sqrt{2^n n!} } H_n\left(\frac{x}{\ell}\right) e^{-x^2/(2\ell^2)}.

Since

1ℓ π1/4=(1πℓ2)1/4,\frac{1}{\sqrt{\ell}\,\pi^{1/4}} = \left(\frac{1}{\pi\ell^2}\right)^{1/4},

this is

ψn(x)=12nn!(1πℓ2)1/4Hn(xℓ)e−x2/(2ℓ2).\psi_n(x) = \frac{1}{\sqrt{2^n n!}} \left(\frac{1}{\pi\ell^2}\right)^{1/4} H_n\left(\frac{x}{\ell}\right) e^{-x^2/(2\ell^2)}.
  1. Rewrite Hermite’s differential equation in Sturm–Liouville form.
Solution

Start from

Hn′′−2xHn′+2nHn=0.H_n''-2xH_n'+2nH_n=0.

Multiplying by e−x2e^{-x^2} gives

e−x2Hn′′−2xe−x2Hn′+2ne−x2Hn=0.e^{-x^2}H_n'' -2xe^{-x^2}H_n' +2ne^{-x^2}H_n =0.

The first two terms combine as

ddx(e−x2Hn′)=e−x2Hn′′−2xe−x2Hn′.\frac{d}{dx} \left( e^{-x^2}H_n' \right) = e^{-x^2}H_n'' -2xe^{-x^2}H_n'.

Therefore

−ddx(e−x2Hn′)=2ne−x2Hn.- \frac{d}{dx} \left( e^{-x^2}H_n' \right) = 2ne^{-x^2}H_n.

This is a singular Sturm–Liouville form on the real line with weight e−x2e^{-x^2}.