I am trying to do the integral $ \int_{-\infty}^{\infty} (1+\cos(t))\cosh(t)dt$. Doing this on Mathematica gives me that the integral is equal to 0. However, doing this on WolframAlpha gives me that the integral does not converge. Why are the results different?

  • 2
    $\begingroup$ I get it doesn't converge in Mathematica. $\endgroup$
    – 1729taxi
    Feb 23, 2022 at 17:37
  • 1
    $\begingroup$ Me too in 13 on Windows 10. $\endgroup$
    – user64494
    Feb 23, 2022 at 17:43
  • $\begingroup$ I see, I'm doing this in 11.3. I will try updating and seeing what happens. Thanks! $\endgroup$
    – Zonova
    Feb 23, 2022 at 17:44
  • 1
    $\begingroup$ It is obviously divergent $\endgroup$
    – mikado
    Feb 23, 2022 at 18:40
  • 1
    $\begingroup$ $\lim_{\delta \to \infty} \int_{-\delta}^{\delta}(1+\cos(t))\cosh(t) dt =0$ i.e. this is convergent in a very special sense. $\endgroup$
    – Artes
    Feb 23, 2022 at 19:26

1 Answer 1


This is a bug specific to version 11.3 of Mathematica. The correct answer is non-convergence. Indeed since the integrand is even, we can compute the integral as

Limit[2 Integrate[(1 + Cos[t]) Cosh[t], {t, 0, b}], b -> \[Infinity]]
(* \[Infinity] *)

which evaluates correctly even in version 11.3. BTW, this disproves the comment that the limit of the integral over symmetric domains is zero. That could only happen for an odd function such as the following one

Limit[Integrate[(1 + Cos[t]) Sinh[t], {t, -b, b}], b -> \[Infinity]]
(* 0 *)

Limit[Integrate[(1 + Cos[t]) Sinh[t], {t, a, b}], {a, b} -> {-\[Infinity], \[Infinity]}]
(* Indeterminate *)

Integrate[(1 + Cos[t]) Sinh[t], {t, -\[Infinity], \[Infinity]}]
(* returns unevaluated with non-convergence message *)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.