How does one integrate $\cos(x^{-1})$?
I understand that the function is not defined at zero, but it is well defined, continuous, and real over the rest of $\mathbb{R}$. Nonetheless, when I put $\int \cos(x^{-1})\; dx$ into a computer algebra system, the result is in terms of imaginary units and special functions with which I'm not familiar.
Surely this function has been addressed (else how would the CAS know the answer) but I don't see it on integration tables anywhere and Google turns up empty-handed. Can someone derive the answer for me? or at least point me to a good resource for it?