0
$\begingroup$

Is there a way to get Mathematica to integrate imaginary exponential functions to give delta functions? Analytically, we obtain:

$$\int_{-\infty}^{\infty} e^{i kx} dk = 2 \pi \delta(x)$$

Code:

Integrate[E^(I k x), {k, -\[Infinity], \[Infinity]}]

However, an error saying that the integral does not converge in these limits stops the integral from being evaluated.

$\endgroup$
2
$\begingroup$

For Fourier integrals like this one, use FourierTransform.

FourierTransform[1, k, x, FourierParameters -> {1, 1}]
(* 2 \[Pi] DiracDelta[x] *)

FourierTransform understands that it can use generalized functions like DiracDelta to represent some integrals that don't converge. Integrate can't do that.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.