Bug introduced in 8.0.4 or earlier and fixed in 9.0.1 or earlier
I am trying to compute the inverse Fourier transform of this expression
fhat[w_] = (Exp[-2*I*w] + Exp[2*I*w])
using
f[x_] = InverseFourierTransform[fhat[w], w, x, FourierParameters -> {1, -1}]
Here, Mathematica correctly returns
DiracDelta[-2 + x] + DiracDelta[2 + x]
However, when (when using Mathematica 8) I try to compute this
fhat[w_] = 5*(Exp[-2*I*w] + Exp[2*I*w])
I get 0
as the inverse Fourier Transform, which is clearly incorrect. The result should be 5*(DiracDelta[-2 + x] + DiracDelta[2 + x])
.
Can anyone explain to me this behavior? Do you know a way to circumvent this problem?