Ma · Mathematics

How to Integrate a Physicists’ Hermite Polynomial with e^(-x²)

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the convention

    Physicists’ Hermite polynomials use Hₙ(x) = (−1)ⁿe^(x²) dⁿ(e^(−x²))/dxⁿ.

  2. 2. Use the derivative identity

    For n ≥ 1, the derivative of e^(−x²)Hₙ₋₁(x) is −e^(−x²)Hₙ(x).

  3. 3. Write the antiderivative

    For n ≥ 1, integrate to get −e^(−x²)Hₙ₋₁(x) + C.

  4. 4. Handle n = 0 separately

    Since H₀(x) = 1, its integral against e^(−x²) is √π/2 erf(x) + C.

If the integrand is the physicists’ Hermite polynomial multiplied by its standard Gaussian weight, the integral has a simple antiderivative. The key is to differentiate the product of the weight and the Hermite polynomial of one lower degree.

For n ≥ 1,

∫Hn(x)e−x2 dx=−Hn−1(x)e−x2+C.\int H_n(x)e^{-x^2}\,dx=-H_{n-1}(x)e^{-x^2}+C.

The case n = 0 must be treated separately: its integral involves the error function. The result also gives definite integrals over finite intervals and, by taking limits, over the whole real line.

The physicists’ convention

The physicists’ Hermite polynomials are defined by Rodrigues’ formula

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

The first few are H0(x)=1H_0(x)=1, H1(x)=2xH_1(x)=2x, and H2(x)=4x2−2H_2(x)=4x^2-2. They satisfy the derivative relation

Hn′(x)=2nHn−1(x)H_n'(x)=2nH_{n-1}(x)

and the recurrence Hn(x)=2xHn−1(x)−2(n−1)Hn−2(x)H_n(x)=2xH_{n-1}(x)-2(n-1)H_{n-2}(x) for n≥2n\ge 2.

Different conventions exist for Hermite polynomials. The formula here uses the physicists’ version, whose Gaussian weight is e−x2e^{-x^2}. The probabilists’ version uses a different scaling and the weight e−x2/2e^{-x^2/2}.

Derive the antiderivative

For n≥2n\ge 2, differentiate the product e−x2Hn−1(x)e^{-x^2}H_{n-1}(x):

ddx(e−x2Hn−1(x))=e−x2(Hn−1′(x)−2xHn−1(x))=e−x2(2(n−1)Hn−2(x)−2xHn−1(x))=−e−x2Hn(x).\begin{aligned} \frac{d}{dx}\left(e^{-x^2}H_{n-1}(x)\right) &=e^{-x^2}\left(H_{n-1}'(x)-2xH_{n-1}(x)\right)\\ &=e^{-x^2}\left(2(n-1)H_{n-2}(x)-2xH_{n-1}(x)\right)\\ &=-e^{-x^2}H_n(x). \end{aligned}

The last equality follows from the Hermite recurrence. For n=1n=1, the identity follows directly from H1(x)=2xH_1(x)=2x and H0(x)=1H_0(x)=1, so no H−1H_{-1} is needed. Integrating the derivative gives the stated antiderivative.

For n=0n=0, the integrand is just e−x2e^{-x^2}. Its antiderivative is not an elementary function; using the error function,

∫e−x2 dx=π2erf⁡(x)+C,\int e^{-x^2}\,dx=\frac{\sqrt{\pi}}{2}\operatorname{erf}(x)+C,

where erf⁡(x)=2π∫0xe−t2 dt\operatorname{erf}(x)=\frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2}\,dt.

Worked example: integrate H3(x)e−x2H_3(x)e^{-x^2}

The physicists’ polynomial of degree three is H3(x)=8x3−12xH_3(x)=8x^3-12x. Applying the formula with n=3n=3 uses H2(x)=4x2−2H_2(x)=4x^2-2:

∫(8x3−12x)e−x2 dx=−(4x2−2)e−x2+C.\int (8x^3-12x)e^{-x^2}\,dx=-(4x^2-2)e^{-x^2}+C.

You can check it by differentiating the right-hand side. The result is (8x3−12x)e−x2(8x^3-12x)e^{-x^2}, as required.

For a finite interval [a,b][a,b] and n≥1n\ge 1, the same antiderivative gives

∫abHn(x)e−x2 dx=Hn−1(a)e−a2−Hn−1(b)e−b2.\int_a^b H_n(x)e^{-x^2}\,dx =H_{n-1}(a)e^{-a^2}-H_{n-1}(b)e^{-b^2}.

For example, the integral for n=1n=1 from 00 to 11 is 1−e−11-e^{-1}, since H0=1H_0=1.

Integrating over the whole real line

For each fixed polynomial Hn−1(x)H_{n-1}(x), the product Hn−1(x)e−x2H_{n-1}(x)e^{-x^2} tends to zero as x→±∞x\to\pm\infty. Therefore, for every n≥1n\ge 1,

∫−∞∞Hn(x)e−x2 dx=0.\int_{-\infty}^{\infty}H_n(x)e^{-x^2}\,dx=0.

For n=0n=0, the Gaussian integral instead gives

∫−∞∞e−x2 dx=π.\int_{-\infty}^{\infty}e^{-x^2}\,dx=\sqrt{\pi}.

These statements concern the integral against the constant function. They are consistent with Hermite orthogonality: HnH_n is orthogonal to lower-degree polynomials under the weight e−x2e^{-x^2}.

Common mistakes

  • Using the wrong Hermite convention. The physicists’ convention has H1(x)=2xH_1(x)=2x and weight e−x2e^{-x^2}. The probabilists’ convention has He1(x)=xHe_1(x)=x and weight e−x2/2e^{-x^2/2}.
  • Applying the formula at n=0n=0. There is no polynomial H−1H_{-1} in this formula. Integrate the Gaussian with the error function instead.
  • Dropping the minus sign. The derivative of e−x2Hn−1(x)e^{-x^2}H_{n-1}(x) is −e−x2Hn(x)-e^{-x^2}H_n(x), not its positive.
  • Confusing an indefinite and a definite integral. For finite limits, evaluate the endpoint expression; the integral is not generally zero. The zero result applies to the whole real line when n≥1n\ge 1.

If the exponential in your integrand is not e−x2e^{-x^2}—for example, if it is e−x2/2e^{-x^2/2}—this product identity does not directly give the same formula. Check both the polynomial convention and the precise exponential before applying it.

References

  1. NIST Digital Library of Mathematical Functions, Chapter 18: Orthogonal Polynomials

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.