7

Bug introduced in 10.0 and fixed in 10.0.2


Mathematica 10 fails to solve the following integral, saying that it does not converge.

Integrate[HermiteH[5, x] HermiteH[6, x] HermiteH[5,x] Exp[-x^2], {x, -Infinity, Infinity}]

This is clearly wrong. The same evaluated in Mathematica 9 returns

36864000 Sqrt[Pi]

Is there a solution for this issue, except going back to version 9?

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
simon
  • 73
  • 5

2 Answers2

4

One can use Expectation on a NormalDistribution, as I've shown before in Mathematica complaints that convergent integral diverges. (Indeed this question is nearly a duplicate of that one.) The expectation of polynomials in a normally distributed variable is a special case in Expectation and are evaluated very quickly.

The argument is integrated against the pdf:

PDF[NormalDistribution[0, 1/Sqrt[2]], x]
(* E^-x^2/Sqrt[π] *)

To get the OP's integral we have to multiply by the constant factor Sqrt[π]:

Sqrt[π] Expectation[HermiteH[5, x] HermiteH[6, x] HermiteH[5, x], 
  x \[Distributed] NormalDistribution[0, 1/Sqrt[2]]]
(* 36864000 Sqrt[π] *)
Michael E2
  • 235,386
  • 17
  • 334
  • 747
3
Integrate[
 HermiteH[5, x] HermiteH[6, x] HermiteH[5, 
   x] Exp[-x^2], {x, -Infinity, Infinity}, PrincipalValue -> True]

(*36864000 Sqrt[\[Pi]]*)
Basheer Algohi
  • 19,917
  • 1
  • 31
  • 78
  • 1
    "PrincipalValue is an option for Integrate that specifies whether the Cauchy principal value should be found for a definite integral." - Does that make sense here? – Domi Nov 07 '14 at 17:27