Article 5FEV2 Fourier transforms in Mathematica

Fourier transforms in Mathematica

by
John
from John D. Cook on (#5FEV2)

Unfortunately there are many slightly different ways to define the Fourier transform. So the first two questions when using Mathematica (or any other software) to compute Fourier transforms are what definition of Fourier transform does it use, and what to do if you want to use a different definition.

The answer to the first question is that Mathematica defines the Fourier transform of f as

mmca_fourier0.svg

The answer to the second question is that Mathematica defines a parameterized Fourier transform by

mmca_fourier1.svg

where a defaults to 0 and b defaults to 1.

Examples

For example, if (x) = exp(-x^2/2), then we can compute Mathematica's default Fourier transform with

 [x_] := Exp[-x^2/2] FourierTransform[[x], x, ]

This computes

mmca_fourier4.svg

But if we set (a, b) to (0, 2) with

 FourierTransform[[x], x,  FourierParameters -> {0, 2 Pi}]

we compute

mmca_fourier5.svg

Theorems under various conventions

Several years ago I got frustrated enough with the multitude of Fourier transform conventions that I made a sort of Rosetta stone, giving several of the most basic theorems under each of eight definitions. I used the parameterization

mmca_fourier2.svg

where m is either 1 or 2, is either 1 or -1, and q is either 1 or 2.

My and q are the sign and absolute value of Mathematica's b. The relation between my m and Mathematica's a is slightly more complicated and given in the table below.

mmca_fourier3.svg

The post Fourier transforms in Mathematica first appeared on John D. Cook._jdnyDhDFAM
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments