I would like to integate this equation:
Integrate[Exp[I*(t1-t2)*ω, {ω, -∞, ∞}]
According to a textbook, I know the answer is $2\pi\delta(t_1 - t_2)$, where $\delta$ is the DiracDelta function. But how can prove this directly in Mathematica?
I would like to integate this equation:
Integrate[Exp[I*(t1-t2)*ω, {ω, -∞, ∞}]
According to a textbook, I know the answer is $2\pi\delta(t_1 - t_2)$, where $\delta$ is the DiracDelta function. But how can prove this directly in Mathematica?
It's a Fourier integral. With those, Mathematica can confidently venture into generalized function territory and yield things like DiracDelta (hazardous in general). However, it doesn't recognize this unless you formulate the integral as a Fourier transform.
InverseFourierTransform[1, \[Omega], t, FourierParameters -> {-1, 1}] /. t -> t1 - t2
(* 2 \[Pi] DiracDelta[t1 - t2] *)
it Diverge look at examples here http://courses.washington.edu/ph227814/228/nb/Green.nb.pdf
Thus you must do it by FourierTransform
k = t1 - t2;
FourierTransform[Exp[I k w], w, 0, FourierParameters -> {1, 1}]
Try this simple code which will do exactly what you wanted:
rule = Integrate[Exp[I*t_*x_], {x_, -∞, ∞}] :> 2 Pi DirectDelta[t];
Integrate[Exp[I*(t1-t2)*ω, {ω, -∞, ∞}] /. rule // Quiet
The purpose of Quiet is to ignore the error message from the Integrate which will return an unevaluted Integrate expression and then the replacement rule is to tell Mathematica we want to give the integral the value we want.
FourierTransform[Exp[I (x) w], w, t]. – march Apr 17 '19 at 15:32Integratedoes not avail itself of these alternatives, whereas,FourierTransformuses one, one that yields the desired output. – Michael E2 Apr 19 '19 at 03:39