Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8709

Re: Why the FourierTransform gives two different answers?

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Why the FourierTransform gives two different answers?
Date 2012-02-23 10:49 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ji55kd$79k$1@smc.vnet.net> (permalink)
References <jhvupg$893$1@smc.vnet.net>

Show all headers | View raw


On 2/21/2012 5:22 AM, Алексей wrote:
> Why the FourierTransform gives two different answers?
>
> In[1]     FourierTransform[ (t - 5.0)^2*Exp[-(t - 5.0)^2 ], t, w]
>
> In[2]     FourierTransform[ (t - 5)^2*  Exp[-(t - 5)^2 ], t, w]
>

It seems to be in integration part. In this below I used
the text book definition of the F.T. itself, and instead
of integrating to infinity, integrate to 'k', then take the limit
as k->Infinity of the result of the integration, and I get the
same result of both the symbolic and the numerical version.

So, the problem is with the limit to infinity with the numerical
version inside the integration code.

-----------------numerical ------------------
ClearAll[t, w, k]
f = (t - 5.0)^2*Exp[-(t - 5.0)^2];
res = Integrate[f*Exp[-I w t], {t, -k, k}];
res = Limit[res, k -> Infinity];
Plot[{Re[res], Im[res]}, {w, -5, 5}]
-------------------------


------------ symbolic -----------
ClearAll[t, w, k]
f = (t - 5)^2*Exp[-(t - 5)^2];
res = Integrate[f*Exp[-I w t], {t, -k, k}];
res = Limit[res, k -> Infinity];
Plot[{Re[res], Im[res]}, {w, -5, 5}]
-----------------------------

same result, as what one would expect.

If I change the numerical integration above to be

     Integrate[f*Exp[-I w t], {t, -Infinity, Infinity}]

Then it become zero again. So, I think it is a bug
in the integration with the limit to infinity for this
integrand.


--Nasser

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why the FourierTransform gives two different answers? Алексей <avderov@gmail.com> - 2012-02-21 11:22 +0000
  Re: Why the FourierTransform gives two different answers? "Nasser M. Abbasi" <nma@12000.org> - 2012-02-23 10:49 +0000
  Re: Why the FourierTransform gives two different answers? "Nasser M. Abbasi" <nma@12000.org> - 2012-02-23 10:50 +0000

csiph-web