I am trying to evaluate the following integral with Mathematica:
\begin{align} I = \int_{0}^{\infty} da \, \frac{e^{-\frac{a ^2}{4s^2}} }{a^2} \mbox{sinc}\left(\tfrac{w}{2} a \right) \delta' \left( \frac{D^2}{a}- a \right), \end{align} where the prime on the delta function denotes differentiation with respect to the argument of the Delta function. When I evaluate this integral with Mathematica as:
Integrate[Exp[-a^2/(4 s^2)]/a^2 Sinc[w a / 2] Derivative[1][DiracDelta][D^2/a - a],{a,0,Infinity}, Assumptions -> s > 0 && w > 0 && D > 0]
I get the result: \begin{align} I_{Mathematica} = \frac{e^{-\frac{D^2}{4 s ^2}} }{4 D^4 s ^2 w } \left[\left(D^2+6 s ^2\right) \sin \left(\frac{D w }{2}\right)-D s ^2 w \cos \left(\frac{D w }{2}\right)\right]. \end{align}
However, if I evaluate this integral analytically, using the fact that \begin{align} \frac{d}{da} \delta\left( \frac{D^2}{a}- a \right) = - \delta' \left( \frac{D^2}{a}- a \right) \left(\frac{D^2}{a^2}+1\right) \implies \delta' \left( \frac{D^2}{a}- a \right) = - \left[\frac{d}{da} \delta\left( \frac{D^2}{a}- a \right) \right] \left(\frac{D^2}{a^2}+1\right)^{-1}, \end{align} I get the following result: \begin{align} I_{analytic} &= \int_{0}^{\infty} da \, \frac{e^{-\frac{a ^2}{4s^2}} }{a^2} \frac{\sin \left(\tfrac{w}{2} a \right) }{\tfrac{w}{2} a} \delta' \left( \frac{D^2}{a}- a \right) \\ &=- \int_{0}^{\infty} da \, \left[\frac{d}{da} \delta\left( \frac{D^2}{a}- a \right) \right] \left(\frac{D^2}{a^2}+1\right)^{-1} \frac{e^{-\frac{a ^2}{4s^2}} }{a^2} \frac{\sin \left(\tfrac{w}{2} a \right) }{\tfrac{w}{2} a} \\ &= \int_{0}^{\infty} da \, \delta\left( \frac{D^2}{a}- a \right) \left[\frac{d}{da} \left(\frac{D^2}{a^2}+1\right)^{-1} \frac{e^{-\frac{a ^2}{4s^2}} }{a^2} \frac{\sin \left(\tfrac{w}{2} a \right) }{\tfrac{w}{2} a} \right] \\ &= \int_{0}^{\infty} da \, \frac{\delta\left( D - a \right)}{2} \left[\frac{d}{da} \left(\frac{D^2}{a^2}+1\right)^{-1} \frac{e^{-\frac{a ^2}{4s^2}} }{a^2} \frac{\sin \left(\tfrac{w}{2} a \right) }{\tfrac{w}{2} a} \right] \\ &= - \frac{e^{-\frac{ D^2 }{ 4s^{2}}}}{4 D^{4} s^{2} w} \left[ \left(D^{2}+4 s^{2}\right)\sin\left( \frac{ Dw}{2} \right) - D s^{2} w \cos \left( \frac{ Dw}{2} \right) \right], \end{align} which differs from $I_{Mathematica}$ by an overall negative sign and the prefactor in front of $s^2$ in the first term.
I'm not sure if the issue is with the way Mathematica handles the derivative of the delta function or if I've made a mistake in my analytic calculation. Any help would be much appreciated, I've been staring at this for days!
DiracDelta'[x]==-DiracDelta[x]/x
, which is different from your "fact". $\endgroup$Integrate[ x Derivative[1][DiracDelta][x], {x, 0, Infinity}] == - 1 + HeavisideTheta[0]
. $\endgroup$Integrate[ x^2 Derivative[1][DiracDelta][(x - 1)^2], {x, 0, Infinity}]
. However, presumably when you say `The formula holds for any argument', then also the integration measure would change. I believe this is equivalent to the "fact" I stated above. Note I use quotations around "fact" to leave open the possibility that there may be a mistake there, but I do not see one. $\endgroup$