For example, let's say I want to compute the (continuous-time) Fourier transform of the signal/function $\cos{(3t)}$, which is given by the following improper integral:
$\displaystyle\int_{-\infty}^{\infty} \cos{(3t)} e^{-j\omega t} \, \mathrm{dt} \tag 1$
whose value is:
$\pi \, \delta{(\omega - 3)} + \pi \, \delta{(\omega + 3)} \tag 2$
The corresponding Mathematica code to compute the integral of (1) would be Integrate[Cos[3*t]*Exp[-I*w*t], {t, -Infinity, Infinity}, Assumptions -> {w \[Element] Reals}]
. However, after executing such code Mathematica returns the message "Integrate: Integral of $e^{-i t w} \text{Cos}{[3 t]}$ does not converge on {$-\infty$,$\infty$}." How can I tell Mathematica to use the impulse/Dirac delta function during the computation of the integral, in order to return (2) or something similar?
FourierTransform[Cos[3 t], t, w, FourierParameters -> {1, 1}]
. $\endgroup$FourierTransform[Cos[3 t], t, w, FourierParameters -> {1, 1}]
is not an proper divergent integral, but uses another definition (e.g. see Fourier transform or/and Encyclopedia of Mathematics). I think this is impemented in Mathematica as a table value. $\endgroup$InverseFourierTransform[ Integrate[ FourierTransform[Cos[3*t] Exp[-I \[Omega] t], \[Omega], s], {t, -Infinity, Infinity}, Assumptions -> s \[Element] Reals], s, \[Omega]]
$\endgroup$