For the following integral,
Integrate[x^2 Exp[-a x^2 - b x^4], {x, -∞, ∞}, Assumptions -> {a > 0, b > 0}]
Mathematica gives the following analytic result:
-(Exp[a^2/(8b)] π (a^2 BesselI[-1/4, a^2/(8b)] - (a^2 + 4b) BesselI[1/4, a^2/(8b)] + a^2 (BesselI[3/4, a^2/(8b)] - BesselI[5/4, a^2/(8b)]))) / (8 Sqrt[2] Sqrt[a b^3])
Plotting this as a function of $a$ (with $b = 1.0$, say) along with the numerical integration result
NIntegrate[x^2 Exp[-a x^2 - b x^4] /. b -> 1.0, {x, -∞, ∞}]
we obtain the following:
My question is: why does this occur with the analytic function? The exponential $\exp(a^2/8b)$ grows very large as $a^2/8b$ increases, so my guess is that the analytic result given by Mathematica is not valid everywhere -- but there is no indication of this given. Is there some way that I can see what is going on here so that I can obtain the correct analytic result for all values of $a^2/8b$?
Edit
While the solution may be similar to that given in the other question that this has been marked as a potential duplicate of, this question is not a duplicate, as it is not obvious that this expression involving Bessel functions would require the same sort of "finessing" as high-degree polynomials.