Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I run into the following problem, I tried to evaluate a very simple integral:

Assuming[ a > 0  , Integrate[Sin[a*s]/(s - I)^2, {s, -Infinity, Infinity}]]

Mathematica claims the answer is zero, even though you can evaluate it by hand using residues to convince yourself that the answer is:

$I\ a\ \pi\ e^{-a}$

What is weird, is that if you substitute some numerical value instead of a the answer is correct. Also if you switch the pole to be +I Mathematica gives an incorrect answer:

$-2\ I\ a\ \pi\cosh(a)$

instead of simply minus the previous result. Anyone had a problem like this?

share|improve this question
I get E^-a Pi. Mma v –  belisarius Aug 21 '12 at 16:52
what version of Mathematica are you using? I get the same result as others above on 8.04 (OSX) –  rm -rf Aug 21 '12 at 18:22
Emksajot, welcome to Mathematica.SE! Please consider registering your account so that any upvotes you get on this question are added to those you might get on future questions and answers. That way, over time you will be able to do more on the site (post graphics, edit things, etc). Another tip: after posting a question stay around for a little while, to answer questions raised by commenters. This will streamline the Q&A process considerably. –  Sjoerd C. de Vries Aug 21 '12 at 19:53
Well ... so it seems there was bug in v7.0.0 corrected in v7.0.1 onwards. There is not much else to do. –  belisarius Aug 22 '12 at 11:32
@Verde then maybe we mark it as a bug and tag it v.7. –  rcollyer Aug 22 '12 at 13:51
show 10 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.