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


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

Re: Fourier Transform of a "step" function

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Fourier Transform of a "step" function
Date 2012-10-26 03:35 +0000
Message-ID <k6d0dd$26c$1@smc.vnet.net> (permalink)
References <20121025054335.0BFEB68B5@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On Oct 25, 2012, at 1:43 AM, etaghtron@gmail.com wrote:

> I have a function, which is defined in this form
>
> F(x) = a + b x + c x^2(0 < x < x0)
> F(x) = 0 (x > x0)
>
> This function is simple. However, its Fourier transform is not straightforward due to the limits of the function. I probably can do it manually, but I have a few other functions that are more complex than this one, which also requires Fourier transform. So I'd like to know if Mathematica can handle this.

You may construct the function in Mathematica as a Piecewise expression:

  f[x_] := Piecewise[{{a + b x + c x^2, 0 < x < x0}, {0, x0 < x}}]

Then:

  FourierTransform[f[x], x, y]

If you have specific numeric values for the coefficients or the dividing point x0, you may of course insert those directly -- or, instead, in the definition of f[x_] just append an expression such as:

  /. {a - >2.1, b -> -1, c -> 3.2, x0 ->1.5}

In this example you could also use an If expression to define the function --

  f[x_] := If[0 < x < x0, a + b x + c x^2, 0]

-- but typically a piecewise-defined function will be treated more consistently by other Mathematica operations than one defined using If.

---
Murray Eisenberg                          murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                      413 545-2838 (W)
710 North Pleasant Street                  fax   413 545-1801
Amherst, MA 01003-9305





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


Thread

Re: Fourier Transform of a "step" function Murray Eisenberg <murray@math.umass.edu> - 2012-10-26 03:35 +0000

csiph-web