If you ask Mathematica to provide the Fourier Transform of a singular functions it is likely to provide an answer that while nearly correct, is technically incorrect and it will do so without a word of warning. Are there any ways to guard for this other than telling the user to beware?
Below I show what happens when you ask for the Fourier Transform of the absolute value function.
Mathematica defines the Fourier transform, $F(\omega)$, of the function $f(t)$, to be: $$F(w) = \frac{1}{\sqrt{2 \pi}}\int_{-\infty}^\infty Exp({i w t})\ f(t)\ dt $$ which is a standard normalization. If you ask for the Fourier Transform of $|t|$,
FourierTransform[Abs[t], t, w]
Mathematica returns: $$F(w)=-\frac{\sqrt{2/\pi}}{w^2}$$ which is fine except at $w=0$ where it gives $F(0)=-\infty$. For $w=0$ we have, by definition, $$F(0) = \frac{1}{\sqrt{2 \pi}}\int_{-\infty}^\infty |t| \ dt = +\infty \ .$$
Thus it is WAY OFF at $w=0$. The correct transform is of the form:
$$ A \delta(w) - \frac{\sqrt{2/\pi}}{w^2} $$ where $A$ is a divergent integral. I expect that $|t|$ is not the only function for which Mathematica returns an incorrect Fourier Transform with no warning.
FourierTransform[Abs[t], t, w, GenerateConditions -> True]
returns unevaluated $\endgroup$SameQ @@ FourierTransform[{Abs[t], t Sign[t], Sqrt[t^2], Piecewise[{{-t, t < 0}, {t, t >= 0}}]}, t, w]
returnsTrue
. Although, usingGenerateConditions -> True
evaluates witht Sign[t]
; however, returns the same result, i.e., no conditions. $\endgroup$FourierTransform[Abs[t], t, w]
does not exist as a usual Fourier transform becauseAbs[t]
is not integrable over (−∞,∞). Also see Wiki, formula 311. Kammler, David (2000), A First Course in Fourier Analysis, Prentice Hall, presents this formula in Appendix A-6 without any reference. Erdélyi, Arthur, ed. (1954), Tables of Integral Transforms, 1, McGraw-Hill. does not contain it. $\endgroup$