# A 'complicated' integral: $\int \limits_{-\infty}^{\infty}\frac{\sin(x)}{x}$ [duplicate]

This question already has an answer here:

I am calculating an integral $\displaystyle \int \limits_{-\infty}^{\infty}\dfrac{\sin(x)}{x}$ and I dont seem to be getting an answer.

When I integrate by parts twice, I get:
$$\displaystyle \int \limits _{-\infty}^{\infty}\frac{\sin(x)}{x}dx = \left[\frac{\sin(x)\ln(x) - \frac{\cos(x)}{x}}{2}\right ]_{-\infty}^{+\infty}$$

What will be the answer to that ?

-

## marked as duplicate by L.G., Git Gud, Maisam Hedyelloo, Ayman Hourieh, AmzotiJul 17 '13 at 20:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You could use double integrals and switch limits. It is an improper integral. The answer is $\pi$. –  Torsten Hĕrculĕ Cärlemän Jul 17 '13 at 20:09
@AnuragPallaprolu I looked it up on Wolfram Alpha and it said $\pi$. WHat is an improper integral ? :) –  Little Child Jul 17 '13 at 20:11
@LittleChild I think we could use a bit of wiki here. :) Its an integral whose limits reach either infinities. –  Torsten Hĕrculĕ Cärlemän Jul 17 '13 at 20:12
@AnuragPallaprolu Double integral = split the integral into two ?? –  Little Child Jul 17 '13 at 20:13
@LittleChild Accepting answers is (of course) entirely up to the OP. However, in the present case, since you admitted in a comment that the posted answer did not help you, I wonder why you accepted this answer (... 7 minutes after it got posted!). A consequence is that it makes other, perhaps more satisfying, answers less likely to be posted. –  Did Jul 29 '13 at 15:58

## 1 Answer

Hint: From the viewpoint of improper Lebesgue integrals or in sense of Cauchy principal value is integral is legitimate. Integration by parts. \begin{align} \int \limits_{-\infty}^{\infty}\dfrac{\sin(x)}{x} \mbox{d} x = & \lim_{t\to\infty}\int \limits_{-t}^{\frac{1}{t}}\dfrac{\sin(x)}{x} \mbox{d} x + \lim_{t\to\infty}\int \limits_{\frac{1}{t}}^{t}\dfrac{\sin(x)}{x} \mbox{d} x \\ = & \lim_{t\to\infty}\int \limits_{-t}^{\frac{1}{t}}\sin(x)(\log x)^\prime \mbox{d} x + \lim_{t\to\infty}\int \limits_{\frac{1}{t}}^{t}\sin(x)(\log x)^\prime\mbox{d} x \\ \end{align}

-
I don't think you're allowed to take the limit that way. You can't take to 0 and to infinity in the same limit. Perhaps there's a rule that says when that's okay? –  Adar Hefer Jul 17 '13 at 20:13
Yeah, it is bad form to compute these as a single limit. Once you know the integral converges, you can get the answer this way; but, without proving convergence, this can give you unfortunate results in some cases. –  Nick Peterson Jul 17 '13 at 20:16
Oh, if I already know convergence then this will reproduce the result had I taken the limit using two limits? –  Adar Hefer Jul 17 '13 at 20:20
How does this help to go toward the answer? –  i707107 Jul 17 '13 at 20:38
@LittleChild: Well.. if this answer helped you very little, then why would you accept it? Using integration by parts on this integral only makes it more complicated. So, I even doubt that this answer helped you "very little". I recommend following the link and read answers there. –  i707107 Jul 18 '13 at 7:22