In new mathematica 12 there is a new function AsymptoticIntegrate
. However, it seems that it gives me incorrect results in some cases. To be completely honest, it is hard to tell if those results are indeed incorrect because the mathematical expressions are quite complex. So, I'm interested if someone else from this website has had similar experience? I want to know with what degree of certainty can I believe that the mathematica output in this case is indeed correct, having in mind that this function is quite new.
I do know that there are some examples where mathematica gives the wrong result, that's why I'm posting this question in the first place.
For example:
Integrate[Cos[x]*BesselJ[0, 2 x], {x, 0, Infinity}]
gives $\frac{1}{\sqrt 3}$. However
AsymptoticIntegrate[Cos[x]*BesselJ[0, 2 x], {x, 0, t}, {t, Infinity, 1}]
gives BesselJ[0, 2 t] Sin[t]
which is zero in the limit $t\to \infty$.
But these two examples should give the same result in the limit $t \to \infty$, right?
Integrate[Cos[x]*BesselJ[0, 2 x], {x, 0, Infinity}]
is not found as the limit ofIntegrate[Cos[x]*BesselJ[0, 2 x], {x, 0, t}, Assumptions -> t > 0]
ast
tends to infinity in Mathematica since the latter command returns the input. $\endgroup$Integrate[Cos[x]*BesselJ[0, 2 x], {x, 0, t}]
is1/Sqrt[3] - (-(Cos[t]/(2 Sqrt[2 \[Pi]] Sqrt[t])) - Sin[t]/( 2 Sqrt[2 \[Pi]] Sqrt[t]))
ast
approaches infinity along the real axis, This can be found with help of Mathematica. $\endgroup$Cos[t]/(2 Sqrt[2 \[Pi]] Sqrt[t]) - Cos[3 t]/( 6 Sqrt[2 \[Pi]] Sqrt[t]) + Sin[t]/(2 Sqrt[2 \[Pi]] Sqrt[t]) + Sin[3 t]/(6 Sqrt[2 \[Pi]] Sqrt[t])
. It does not change the matter. $\endgroup$