I'm evaluating an oscillatory integral numerically, and ran into a weirdness with NIntegrate, which I've boiled down to a simple case for this question.
Consider NIntegrate[Sin[100 k]/k^5, {k, 100, 250}]
, which evaluates to -9.59482*10^-13
. Mathematica can handle this integral analytically, writing the solution in terms of Sine integrals. Doing numerical evaluation of the result yields the same answer to 13 digits (N[Integrate[Sin[100 k]/k^5, {k, 100, 250}], 15]
).
Now, consider writing the Sin function instead as a Sinc function: NIntegrate[100 Sinc[100 k]/k^4 , {k, 100, 250}]
. Same result.
Finally, consider writing the Sinc function as a SphericalBesselJ function: NIntegrate[100 SphericalBesselJ[0, 100 k]/k^4 , {k, 100, 250}]
. Note that SphericalBesselJ[0,x] == Sinc[x]
. Here, Mathematica complains bitterly about doing this integral numerically, before offering the answer of 6.43722*10^-11
.
Why isn't Mathematica choosing the same method to numerically integrate SphericalBesselJ as it is for Sin and Sinc?