I have a function of three variables $f(x,y,z)$, and it obeys a linear partial differential equation. I'm checking my by-hand calculations with Mathematica. I want to convert the PDE into the Fourier-spectral domain, but Mathematica isn't playing nice. I find the following behavior baffling.

Essentially, it's like Mathematica uses $\mathcal{F}\left[\frac{\partial f}{\partial x}\right]=-i k_x \mathcal{F}\left[f\right]$ for the first argument $x$, but does not use the same rules/identities for partials w.r.t. second and third arguments, i.e. $\mathcal{F}\left[\frac{\partial f}{\partial y}\right]$ and $\mathcal{F}\left[\frac{\partial f}{\partial z}\right]$ are not simplified.

What's going on here? How can I force Mathematica to do this simplification for the other variables?

1 Answer
1

I also would expect Mathematica to simplify all Fourier transformed derivatives equally, but it may be understandable that the simplifications are harder to see when the derivative is not taken with respect to the innermost Fourier transform variable.

To work around this problem, you could change the order of integrations for the Fourier transform to always have the differentiation variable as the innermost integration variable, too. For example,

Here I've made use of the assumption that the above order of integrations is equal to

FourierTransform[D[f[x, y, z], y], {x, y, z}, {kx, ky, kz}]

To explain why the different treatment happens, one would have to know more about the internals of the FourierTransform algorithm. That's not so trivial because this includes dealing with functions that may not be square-integrable (which Mathematica is able to do). For square-integrable functions, the relation you're expecting comes from the fact that the derivative can be removed using an integration by parts, where the boundary term at infinity is zero:

However, when the differentiation is not with respect to the innermost integration variable, then the corresponding boundary term is itself a Fourier integral (say over $x$ in the above example), which must be evaluated in the limits for $y \to \pm \infty$:

This involves an assumption not about the square-integrability of $f$ alone, but of its Fourier integral with respect to a different variable. So maybe this is why Mathematica doesn't like to make that simplification. As I said, things are more complicated if I want to include non-normalizable functions whose transforms involve Dirac delta functions etc. Therefore, this isn't a complete explanation.

Yes, thank you for the exposition. Any ideas about "Assumptions->" on the integrals in question to force Mathematica to recognize that the boundary terms vanish?
–
rajb245Jul 16 '13 at 13:46

I think any kind of assumptions or rules that one could come up with would be much more complex than the simple manual approach I suggested in the answer. One may as well just take the replacement of D[__,y] by - I ky as a definition in itself to get around this limitation of FourierTransform.
–
JensJul 16 '13 at 21:35

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.