# What's with Fourier Transforms in Mathematica?

**URL:** <https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976>\
**Category:** Questions\
**Tags:** physics\
**Created:** [October 18, 2015, 3:33am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976 "2015-10-18T03:33:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yajnaval](https://avatars.discourse-cdn.com/v4/letter/y/8edcca/32.png) [@yajnaval](https://community.wolfram.com/u/yajnaval)\
**Post date:** [October 18, 2015, 3:33am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/1 "2015-10-18T03:33:03Z")

</div>

What’s the issue with Fourier Transforms in Mathematica? Why does it always have this DiracDelta?

```
In[1]:= << "FourierSeries`"

In[2]:= f[x_] := (2 b/\[Pi])^(3/4) E^-br^2

In[3]:= ft[k_] = FourierTransform[f[x], x, k]

Out[3]= 2 b^(3/4) E^-br^2 (2/\[Pi])^(1/4) DiracDelta[k]

In[4]:= ft[k_] = 
 FourierTransform[f[x], x, k, FourierParameters -> {-1, 1}]

Out[4]= b^(3/4) E^-br^2 (2/\[Pi])^(3/4) DiracDelta[k]

```

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [October 18, 2015, 4:21am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/2 "2015-10-18T04:21:06Z")

</div>

The expressions being transformed are constants. They do not depend on x. The delta function is from the Fourier transform of 1.

---

<div class="post-metadata">

**Author:** ![yajnaval](https://avatars.discourse-cdn.com/v4/letter/y/8edcca/32.png) [@yajnaval](https://community.wolfram.com/u/yajnaval)\
**Post date:** [October 18, 2015, 4:48am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/3 "2015-10-18T04:48:25Z")

</div>

OK, but why should Mathematica always give a DiracDelta when evaluating Fourier Transforms of functions?

For instance, `FourierTransform[Cos[bx], x, k]` gives

```
Sqrt[2 \[Pi]] Cos[bx] DiracDelta[k]

```

This is irritating – is there a way of suppressing this?

---

<div class="post-metadata">

**Author:** ![jpd](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jpd/32/34994_2.png) [@jpd](https://community.wolfram.com/u/jpd)\
**Post date:** [October 18, 2015, 4:59am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/4 "2015-10-18T04:59:44Z")

</div>

That one doesn’t depend on x either. Did you forget to put a space between **b** and **x**?

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [October 18, 2015, 5:09am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/5 "2015-10-18T05:09:31Z")

</div>

Hi Yaj,

In this example, the argument is also constant because the bx is a single symbol. for b\*x you need either the asterisk or, more commonly, a space between b and x. Mathematica outputs the delta when it is in fact correct. Consider:

```
In[1]:= FourierTransform[Exp[- x^2/b^2], x, k]

Out[1]= E^(-(1/4) b^2 k^2)/(Sqrt[2] Sqrt[1/b^2])

In[2]:= FourierTransform[UnitStep[x - 1] - UnitStep[x - 2], x, k]

Out[2]= -((I E^(I k) (-1 + E^(I k)))/(k Sqrt[2 \[Pi]]))

```

Best, David

---

<div class="post-metadata">

**Author:** ![henrikschachner](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/henrikschachner/32/32119_2.png) [@henrikschachner](https://community.wolfram.com/u/henrikschachner)\
**Post date:** [October 18, 2015, 10:13am UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/6 "2015-10-18T10:13:11Z")

</div>

How to suppress a correct result? - A truly interesting question! In your example you are transforming for `x` a function which does not depend on `x` but on `bx`. You probably meant:

```
FourierTransform[Cos[b x], x, k]
(* Out: Sqrt[\[Pi]/2] DiracDelta[-b+k]+Sqrt[\[Pi]/2] DiracDelta[b+k] *)

```

Again it contains this irritating Dirac-Deltafunction, but nevertheless this answer is correct. What would you like to get?

**EDIT:** @John: When I wrote the above I had not seen your response - sorry!

---

<div class="post-metadata">

**Author:** ![yajnaval](https://avatars.discourse-cdn.com/v4/letter/y/8edcca/32.png) [@yajnaval](https://community.wolfram.com/u/yajnaval)\
**Post date:** [October 18, 2015, 1:54pm UTC](https://community.wolfram.com/t/whats-with-fourier-transforms-in-mathematica/6976/7 "2015-10-18T13:54:33Z")

</div>

Thank you David.
