Bug introduced in 8.0 or earlier and persisting through 13.2 or later
There is a rather simple integral ($K_0$ is the 0-th order MacDonald function) $$\int_0^\infty e^{-x \cosh\xi}\, d\xi = K_0(x)$$ which mathematica cannot solve. This even though the documentation claims that Integrate can give results in terms of many special functions. In fact it can solve the integral obtained by substituting $r=\cosh \xi$, $$\int_1^\infty \frac{e^{-x r}}{\sqrt{r^2-1}}\,dr=K_0(x).$$ In fact it also failed in solving the more general integral $$\int_0^\infty e^{-x \cosh\xi} \cosh(\alpha \xi)\, d\xi = K_\alpha(x).$$
I am using "8.0 for Mac OS X x86 (64-bit) (October 5, 2011)". Are there more recent or older versions of Mathematica which can solve this class of integrals?
Edit:
I want to stress that this is not an arbitrary integral but can be thought of as a definition of $K_0$ (the corresponding integral $\int_0^{2\pi} \!e^{i x \cos \xi}\,d\xi$ for $J_0$ mathematica handles very well). I am just curious how it can happen that a system as developed as Mathematica cannot handle this "elementary" integral.
Here is the Mathematica code for those who want to test:
Integrate[Exp[-x Cosh[ξ]],{ξ,0,Infinity}]
Now I found a related integral which indeed is a bug in mathematica. If you try to evaluate ($x \in \mathbb{R}$) $$\int_0^\infty \cos(x \sinh \xi)\,d\xi = K_0(|x|)$$ then Mathematica claims that the integral diverges.
\[Xi]– b.gates.you.know.what Apr 25 '12 at 08:57Integratebehaves improperly, look e.g. here http://mathematica.stackexchange.com/questions/3568/bug-in-integrate-for-mathematica/3571#3571 +1 for perspicacity. – Artes Apr 25 '12 at 09:40Integrateis buggy I presented an example; the second, since it computes the same integral after a pretty simple transformation, if find its behavior not quite proper. – Artes Apr 25 '12 at 11:03Integrateintended it to work, but something is going wrong internally. Or maybe not. We'll never know. Of course you're right that it's not the kind of bug that can bite users. – Szabolcs Apr 25 '12 at 13:05Integrateis one of the most difficult to get right functions, especially when it comes to definite integration. You'll find similar problems in other systems as well. – Szabolcs Apr 25 '12 at 13:09Integrate[Exp[-x r ]/Sqrt[r^2 - 1], {r, 1, \[Infinity]}]produces in ver.8ConditionalExpression[BesselK[0, x], Re[x] > 0], while in ver. 7If[Re[x] > 0, BesselK[0, x], Integrate[E^(-r x)/Sqrt[-1 + r^2], {r, 1, \[Infinity]}, Assumptions -> Re[x] <= 0]]just becauseConditionalExpressionis new in ver.8. I believe whenWRIupdatedIntegratethey did something wrong what you could find in the post which I included earlier. – Artes Apr 25 '12 at 13:59DSolveis even more difficult,Reduceprobably too. – Artes Apr 25 '12 at 14:03Let then know you are suggesting that this integral should evaluate to the value you suggested here.
– Searke Apr 25 '12 at 14:52