Message Boards Message Boards

0
|
2335 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Solve the integral Cos(x)/x at the interval (0,infinite)

Dear All,

I am trying to find Integral[Cos[x]/x,{x,0,infinite}]. Integrate can not give a result since the expression is divergent. However, NIntegrate gives a result that I do not trust.

Integrate[1/x Cos[x], {x, 0, \[Infinity]}]
NIntegrate[1/x Cos[x], {x, 0, \[Infinity]}]

Does anyone know if this integral can be taken? And how can we trust the result?

Best wishes,

İsa

POSTED BY: Isa Comez
3 Replies

It is somewhat disappointing that NIntegrate does not decide at once that the integral diverges.

POSTED BY: Gianluca Gorni
 int = Integrate[Cos[x]/(x + e), {x, 0, \[Infinity]}, Assumptions -> e >= 0]
 Limit[int, e -> 0]

(* \[Infinity] *)
POSTED BY: Mariusz Iwaniuk

The integral diverges because of the singularity at x==0. NIntegrate does not commit, but it gives serious warnings. Compare with converging integrals:

Integrate[1/x Sin[x], {x, 0, \[Infinity]}]
NIntegrate[1/x Sin[x], {x, 0, \[Infinity]}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract